<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Bradlee Speice</title><link href="https://bspeice.github.io/" rel="alternate"></link><link href="https://bspeice.github.io/feeds/all.atom.xml" rel="self"></link><id>https://bspeice.github.io/</id><updated>2016-02-26T00:00:00-05:00</updated><entry><title>Profitability using the Investment Formula</title><link href="https://bspeice.github.io/profitability-using-the-investment-formula.html" rel="alternate"></link><updated>2016-02-26T00:00:00-05:00</updated><author><name>Bradlee Speice</name></author><id>tag:bspeice.github.io,2016-02-26:profitability-using-the-investment-formula.html</id><summary type="html">&lt;script type="text/x-mathjax-config"&gt;
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
&lt;/script&gt;

&lt;script async src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML'&gt;&lt;/script&gt;

&lt;p&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Profitability-using-the-Investment-Formula"&gt;Profitability using the Investment Formula&lt;a class="anchor-link" href="#Profitability-using-the-Investment-Formula"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;I've previously talked about crafting an &lt;a href="https://bspeice.github.io/guaranteed-money-maker.html"&gt;Investment Formula&lt;/a&gt; that would guarantee making money if you could predict which direction the stock market was going to go. This is going to be the first in a series of posts trying to flesh out what an actual investment strategy based on this formula would look like.&lt;/p&gt;
&lt;p&gt;But first, the formula doesn't take into account two very important things: &lt;strong&gt;leverage&lt;/strong&gt;, and the &lt;strong&gt;number of days invested&lt;/strong&gt;. That's why I want to set up what I'm going to call the &lt;strong&gt;Profitability Score&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The definition is going to be very simple:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;$p$: Profit made once you exit the investment&lt;/li&gt;
&lt;li&gt;$i$: Initial investment into the asset&lt;/li&gt;
&lt;li&gt;$m$: Maximum investment in the asset&lt;/li&gt;
&lt;li&gt;$l = m / i$: The maximum leverage of an investment, as the ratio of maximum invested to initial investment&lt;/li&gt;
&lt;li&gt;$d$: The number of days it takes to turn a profit&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;$s = \frac{1000 p}{i(l + d)} = \frac{1000 p}{m + i\cdot d}$&lt;/p&gt;
&lt;p&gt;Crazy, right? The score is simply the (normalized) profit you made divided by the leverage plus days invested. The $\cdot 1000$ is just to turn the number into something more reasonable - people don't like hearing something with a profitability score of .001 for example.&lt;/p&gt;
&lt;h1 id="Theoretical-Justification"&gt;Theoretical Justification&lt;a class="anchor-link" href="#Theoretical-Justification"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;The formula itself is designed to be simple in principle: I like making a profit, and I want to penalize the leverage you incur and days you have to invest. Ideally, we want to have a stock that goes up all the time. However, the investment formula takes advantage of a different case: trying to profit from highly volatile assets. If we can make money when the investment only has one day up, let's do it!&lt;/p&gt;
&lt;p&gt;Even so, there are two potential issues: First, stocks that trend upward will have a higher profitability score - both leverage and days invested will be 1. To protect against only investing in this trend, I can do things like taking $\log(d)$. I don't want to start biasing the scoring function until I have a practical reason to do so, so right now I'll leave it standing.&lt;/p&gt;
&lt;p&gt;The second issue is how to penalize leverage and days invested relative to each other. As it currently stands, a leverage of 6x with only 1 day invested is the same as leveraging 2x with 3 days invested. In the future, I'd again want to look at making the impact of days invested smaller - I can get over an extra 3 days in the market if it means that I don't have to incur a highly leveraged position.&lt;/p&gt;
&lt;p&gt;So there could be things about the scoring function we change in the future, but I want to run some actual tests before we start worrying about things like that!&lt;/p&gt;
&lt;h1 id="Running-a-simulation"&gt;Running a simulation&lt;a class="anchor-link" href="#Running-a-simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;This won't be an incredibly rigorous backtest, I just want to see some results from the work so far. Let's set up the simulation code again, and start looking into some random stocks. &lt;strong&gt;If you've read the last blog post, you can skip over the code.&lt;/strong&gt; The only difference is that it's been ported to python to make the data-wrangling easier. Julia doesn't yet support some of the multi-index things I'm trying to do.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[19]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;np&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;pd&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;matplotlib.pyplot&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;plt&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;Quandl&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;get&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;qget&lt;/span&gt;
&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="k"&gt;matplotlib&lt;/span&gt; inline
&lt;span class="n"&gt;api_key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;QUJUp-dAKyo2y8DGsCv-&amp;#39;&lt;/span&gt;

&lt;span class="n"&gt;profitability&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;is_profitable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;current_price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;purchase_history&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_history&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;shares&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;purchase_history&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;open_history&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;current_price&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;shares&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;purchase_history&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;daily_investment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;current_open&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;current_close&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;purchase_history&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_history&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;t1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;current_close&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;current_open&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="n"&gt;t2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;purchase_history&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;purchase_history&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;current_close&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;open_history&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;t2&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;t1&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;simulate_day&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;close_vals&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bias&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;invested&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    
    &lt;span class="n"&gt;day&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="n"&gt;profitable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;is_profitable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;close_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt; \
        &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;is_profitable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;

    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;profitable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;expected_close&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;
        &lt;span class="n"&gt;todays_purchase&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;daily_investment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;expected_close&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="n"&gt;invested&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;todays_purchase&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;bias&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="c1"&gt;# expected_profit = expected_close * (invested / open_vals[0:len(invested)]).sum() - invested.sum()&lt;/span&gt;
        &lt;span class="n"&gt;day&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
        &lt;span class="n"&gt;profitable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;is_profitable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;close_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt; \
            &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;is_profitable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;
            
    &lt;span class="n"&gt;shares&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    
    &lt;span class="c1"&gt;# Make sure we can&amp;#39;t see into the future - we know either today&amp;#39;s close or tomorrow&amp;#39;s open&lt;/span&gt;
    &lt;span class="c1"&gt;# will be profitable, but we need to check which one.&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;is_profitable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;close_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)]):&lt;/span&gt;
        &lt;span class="n"&gt;ending_price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;close_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;ending_price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        
    &lt;span class="n"&gt;profit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;shares&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;ending_price&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;profit&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;simulate_ts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;initial&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bias&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;ticker_info&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;qget&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;trim_start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;evaluation_times&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ticker_info&lt;/span&gt;&lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;
    
    &lt;span class="c1"&gt;# Handle Google vs. YFinance data&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Adjusted Close&amp;quot;&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;ticker_info&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;close_column&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Adjusted Close&amp;quot;&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;close_column&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Close&amp;quot;&lt;/span&gt;
        
    &lt;span class="n"&gt;sim&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;simulate_day&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ticker_info&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;:][&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Open&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;ticker_info&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;:][&lt;/span&gt;&lt;span class="n"&gt;close_column&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
                       &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.02&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;evaluation_times&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;sim_series&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Series&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sim&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DataFrame&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;profit&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sim_series&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;max&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sim_series&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;days&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sim_series&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;score&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sim_series&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;profitability&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;])))&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;investments&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sim_series&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;simulate_tickers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;
    &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;ticker&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2015&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;results_df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;simulate_ts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ticker&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2016&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.01&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ticker&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;results_df&lt;/span&gt;
        
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;concat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;values&lt;/span&gt;&lt;span class="p"&gt;()),&lt;/span&gt; &lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;()),&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="And-now-the-interesting-part"&gt;And now the interesting part&lt;a class="anchor-link" href="#And-now-the-interesting-part"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;Let's start looking into the data! FANG stocks have been big over the past year, let's see how they look:&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[7]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;fang_df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;simulate_tickers&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;YAHOO/FB&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;YAHOO/AAPL&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;YAHOO/NFLX&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;YAHOO/GOOG&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[8]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;fang_df&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;days&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hist&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_size_inches&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;suptitle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Distribution of Days Until Profitability&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fontsize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_png output_subarea "&gt;
&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABBgAAAIICAYAAADE513IAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
[encoded data, 33953 characters]
"
&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[10]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;fang_df&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;score&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;plot&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_size_inches&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;suptitle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Profitability score over time&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fontsize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_png output_subarea "&gt;
&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABBEAAAGECAYAAABgaLg8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
[encoded data, 122653 characters]
"
&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Let's think about these graphs. First, the histogram. What we like seeing is a lot of 1's - that means there were a lot of days that the stock went up and we didn't have to worry about actually implementing the strategy - we were able to close the trade at a profit.&lt;/p&gt;
&lt;p&gt;Looking at the profitability score over time though is a bit more interesting. First off, stocks that are more volatile will tend to have a higher profitability score, no two ways about that. However, Netflix consistently outperformed on this metric. We know that 2015 was a good year for Netflix, so that's a (small) sign the strategy is performing as expected.&lt;/p&gt;
&lt;p&gt;The final interesting note happens around the end of August 2015. Around this period, the markets were selling off in a big way due to issues in China (not unlike what's happening now). Even so, all of the FANG stocks saw an uptick in profitability around this time. This is another sign that the strategy being developed performs better during periods of volatility, rather than from riding markets up or down.&lt;/p&gt;
&lt;p&gt;What about FANG vs. some cyclicals?&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[13]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;cyclic_df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;simulate_tickers&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;YAHOO/X&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;YAHOO/CAT&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;YAHOO/NFLX&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;YAHOO/GOOG&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[14]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;cyclic_df&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;days&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hist&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_size_inches&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;suptitle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Distribution of Days Until Profitability&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fontsize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_png output_subarea "&gt;
&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABBgAAAIICAYAAADE513IAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
[encoded data, 35035 characters]
"
&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[15]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;cyclic_df&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;score&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;plot&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_size_inches&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;suptitle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Profitability score over time&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fontsize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_png output_subarea "&gt;
&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABBEAAAGECAYAAABgaLg8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
[encoded data, 133903 characters]
hUKhUCgUpor/A9AnO0PoIItTAAAAAElFTkSuQmCC
"
&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Some more interesting results come from this as well. First off, US Steel (X) has a much smoother distribution of days until profitability - it doesn't have a huge number of values at 1 and then drop off. Intuitively, we're not terribly large fans of this, we want a stock to go up! However, on the profitability score it is the only serious contender to Netflix.&lt;/p&gt;
&lt;p&gt;Second, we see the same trend around August - the algorithm performs well in volatile markets.&lt;/p&gt;
&lt;p&gt;For a final test, let's try some biotech and ETFs!&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[21]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;biotech_df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;simulate_tickers&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;YAHOO/REGN&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;YAHOO/CELG&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;GOOG/NASDAQ_BIB&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;GOOG/NASDAQ_IBB&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[22]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;biotech_df&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;days&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hist&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_size_inches&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;suptitle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Distribution of Days Until Profitability&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fontsize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_png output_subarea "&gt;
&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABBgAAAIICAYAAADE513IAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
[encoded data, 39963 characters]
WKBTQVcCAAAAAElFTkSuQmCC
"
&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[23]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;biotech_df&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;score&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;plot&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_size_inches&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gcf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;suptitle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Profitability score over time&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fontsize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_png output_subarea "&gt;
&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABBEAAAGECAYAAABgaLg8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
[encoded data, 131581 characters]
"
&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;In this example, we don't see a whole lot of interesting things: the scores are all fairly close together with notable exceptions in late August, and mid-October.&lt;/p&gt;
&lt;p&gt;What is interesting is that during the volatile period, the ETF's performed significantly better than the stocks did in terms of profitability. The leveraged ETF (BIB) performed far above anyone else, and it appears that indeed, it is most profitable during volatile periods. Even so, it was far more likely to take multiple days to give a return. Its count of 1-day investments trails the other ETF and both stocks by a decent margin.&lt;/p&gt;
&lt;p&gt;And consider me an OCD freak, but I just really like Celgene's distribution - it looks nice and smooth.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Summary-and-plans-for-the-next-post"&gt;Summary and plans for the next post&lt;a class="anchor-link" href="#Summary-and-plans-for-the-next-post"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;So far I'm really enjoying playing with this strategy - there's a lot of depth here to understand, though the preliminary results seem to indicate that it profits mostly from taking the other side of a volatile trade. I'd be interested to run results later on data from January - It's been a particularly volatile start to the year so it would be neat to see whether this strategy would work then.&lt;/p&gt;
&lt;p&gt;For the next post, I want to start playing with some of the parameters: How do the bias and expected close influence the process? The values have been fairly conservative so far, it will be interesting to see how the simulations respond afterward.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;/p&gt;</summary><category term="algorithmic-trading"></category><category term="python"></category></entry><entry><title>Guaranteed Money Maker</title><link href="https://bspeice.github.io/guaranteed-money-maker.html" rel="alternate"></link><updated>2016-02-03T00:00:00-05:00</updated><author><name>Bradlee Speice</name></author><id>tag:bspeice.github.io,2016-02-03:guaranteed-money-maker.html</id><summary type="html">&lt;script type="text/x-mathjax-config"&gt;
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\(','\)']]}});
&lt;/script&gt;

&lt;script async src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML'&gt;&lt;/script&gt;

&lt;p&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h3 id="If-you-can-see-into-the-future,-that-is."&gt;If you can see into the future, that is.&lt;a class="anchor-link" href="#If-you-can-see-into-the-future,-that-is."&gt;&amp;#182;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;My previous class in Stochastic Calculus covered a lot of interesting topics, and the important one for today
is the &lt;a href="https://en.wikipedia.org/wiki/Gambler's_ruin"&gt;Gambler's Ruin&lt;/a&gt; problem. If you're interested in some of the theory behind it, also make sure to check out
&lt;a href="https://en.wikipedia.org/wiki/Random_walk"&gt;random walks&lt;/a&gt;. The important bit is that we studied the &lt;a href="https://en.wikipedia.org/wiki/Martingale_%28betting_system%29"&gt;Martingale Betting Strategy&lt;/a&gt;, which describes for us
a &lt;strong&gt;guaranteed way&lt;/strong&gt; to &lt;span style='font-size: x-small'&gt;eventually&lt;/span&gt; make money.&lt;/p&gt;
&lt;p&gt;The strategy goes like this: You are going to toss a fair coin with a friend. If you guess heads or tails correctly, you get back double the money you bet. If you guess incorrectly, you lose money. How should you bet?&lt;/p&gt;
&lt;p&gt;The correct answer is that you should double your bet each time you lose. Then when you finally win, you'll be guaranteed to make back everything you lost and then &amp;#36;1 extra! Consider the scenario:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You bet &amp;#36;1, and guess incorrectly. You're 1 dollar in the hole.&lt;/li&gt;
&lt;li&gt;You bet &amp;#36;2, and guess incorrectly. You're 3 dollars in the hole now.&lt;/li&gt;
&lt;li&gt;You bet &amp;#36;4, and guess incorrectly. You're 7 dollars in the hole.&lt;/li&gt;
&lt;li&gt;You bet &amp;#36;8, and guess correctly! You now get back those 8 dollars you bet, plus 8 extra for winning, for a &lt;strong&gt;total profit of one dollar&lt;/strong&gt;!&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Mathematically, we can prove that as long as you have unlimited money to bet, you are guaranteed to make money.&lt;/p&gt;
&lt;h1 id="Applying-the-Martingale-Strategy"&gt;Applying the Martingale Strategy&lt;a class="anchor-link" href="#Applying-the-Martingale-Strategy"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;But we're all realistic people, and once you start talking about "unlimited money" eyebrows should be raised. Even still, this is an interesting strategy to investigate, and I want to apply it to the stock market. As long as we can guarantee there's a single day in which the stock goes up, we should be able to make money right? The question is just how much we have to invest to guarantee this.&lt;/p&gt;
&lt;p&gt;Now it's time for the math. We'll use the following definitions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;$o_i$ = the share price at the opening of day $i$&lt;/li&gt;
&lt;li&gt;$c_i$ = the share price at the close of day $i$&lt;/li&gt;
&lt;li&gt;$d_i$ = the amount of money we want to invest at the beginning of day $i$&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With those definitions in place, I'd like to present the formula that is &lt;strong&gt;guaranteed to make you money&lt;/strong&gt;. I call it &lt;em&gt;Bradlee's Investment Formula&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;$c_n \sum_{i=1}^n \frac{d_i}{o_i} &gt; \sum_{i=1}^{n} d_i$&lt;/p&gt;
&lt;p&gt;It might not look like much, but if you can manage to make it so that this formula holds true, you will be guaranteed to make money. The intuition behind the formula is this: The closing share price times the number of shares you have purchased ends up greater than the amount of money you invested.&lt;/p&gt;
&lt;p&gt;That is, on day $n$, &lt;span style='font-size: x-small'&gt;if you know what the closing price will be&lt;/span&gt; you can set up the amount of money you invest that day to &lt;strong&gt;guarantee you make money&lt;/strong&gt;. I'll even teach you to figure out how much money that is! Take a look:&lt;/p&gt;
&lt;p&gt;$
\begin{align}
c_n \sum_{i=1}^{n-1} \frac{d_i}{o_i} + \frac{c_nd_n}{o_n} &amp;&gt; \sum_{i=1}^{n-1}d_i + d_n\\
\frac{c_nd_n}{o_n} - d_n &amp;&gt; \sum_{i=1}^{n-1}(d_i - \frac{c_nd_i}{o_i})\\
d_n (\frac{c_n - o_n}{o_n}) &amp;&gt; \sum_{i=1}^{n-1} d_i(1 - \frac{c_n}{o_i})\\
d_n &amp;&gt; \frac{o_n}{c_n - o_n} \sum_{i=1}^{n-1} d_i(1 - \frac{1}{o_i})
\end{align}$&lt;/p&gt;
&lt;p&gt;If you invest exactly $d_n$ that day, you'll break even. But if you can make sure the money you invest is greater than that quantity on the right &lt;span style='font-size: x-small'&gt;(which requires that you have a crystal ball tell you the stock's closing price)&lt;/span&gt; you are &lt;strong&gt;guaranteed to make money!&lt;/strong&gt;&lt;/p&gt;
&lt;h1 id="Interesting-Implications"&gt;Interesting Implications&lt;a class="anchor-link" href="#Interesting-Implications"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;On a more serious note though, the formula above tells us a couple of interesting things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;It's impossible to make money without the closing price at some point being greater than the opening price (or vice-versa if you are short selling) - there is no amount of money you can invest that will turn things in your favor.&lt;/li&gt;
&lt;li&gt;Close prices of the past aren't important if you're concerned about the bottom line. While chart technicians use price history to make judgment calls, in the end, the closing price on anything other than the last day is irrelevant.&lt;/li&gt;
&lt;li&gt;It's possible to make money as long as there is a single day where the closing price is greater than the opening price! You might have to invest a lot to do so, but it's possible.&lt;/li&gt;
&lt;li&gt;You must make a prediction about where the stock will close at if you want to know how much to invest. That is, we can set up our investment for the day to make money if the stock goes up 1%, but if it only goes up .5% we'll still lose money.&lt;/li&gt;
&lt;li&gt;It's possible the winning move is to scale back your position. Consider the scenario:&lt;ul&gt;
&lt;li&gt;You invest money and the stock closes down the day .5%&lt;/li&gt;
&lt;li&gt;You invest tomorrow expecting the stock to go up 1%&lt;/li&gt;
&lt;li&gt;The winning investment to break even (assuming a 1% increase) is to scale back the position, since the shares you purchased at the beginning would then be profitable&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h1 id="Running-the-simulation"&gt;Running the simulation&lt;a class="anchor-link" href="#Running-the-simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;So now that we've defined our investment formula,we need to tweak a couple things in order to make an investment strategy we can actually work with. There are two issues we need to address:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The formula only tells us how much to invest if we want to break even ($d_n$). If we actually want to turn a profit, we need to invest more than that, which we will refer to as the &lt;strong&gt;bias&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The formula assumes we know what the closing price will be on any given day. If we don't know this, we can still invest assuming the stock price will close at a level we choose. If the price doesn't meet this objective, we try again tomorrow! This predetermined closing price will be referred to as the &lt;strong&gt;expectation&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now that we've defined our &lt;em&gt;bias&lt;/em&gt; and &lt;em&gt;expectation&lt;/em&gt;, we can actually build a strategy we can simulate. Much like the martingale strategy told you to bet twice your previous bet in order to make money, we've designed a system that tells us how much to bet in order to make money as well.&lt;/p&gt;
&lt;p&gt;Now, let's get to the code!&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[1]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="n"&gt;Quandl&lt;/span&gt;
&lt;span class="n"&gt;api_key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;daily_investment&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;current_open&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;current_close&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;purchase_history&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_history&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c"&gt;# We&amp;#39;re not going to safeguard against divide by 0 - that&amp;#39;s the user&amp;#39;s responsibility&lt;/span&gt;
    &lt;span class="n"&gt;t1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;current_close&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;current_open&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="n"&gt;t2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;purchase_history&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;purchase_history&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;current_close&lt;/span&gt; &lt;span class="o"&gt;./&lt;/span&gt; &lt;span class="n"&gt;open_history&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;t2&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;t1&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;And let's code a way to run simulations quickly:&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[2]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;is_profitable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;current_price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;purchase_history&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_history&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;shares&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;purchase_history&lt;/span&gt; &lt;span class="o"&gt;./&lt;/span&gt; &lt;span class="n"&gt;open_history&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;current_price&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;shares&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;purchase_history&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;simulate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bias&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;ticker_info&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;quandlget&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;from&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;open_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ticker_info&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Open&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;values&lt;/span&gt;
    &lt;span class="n"&gt;close_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ticker_info&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Close&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;values&lt;/span&gt;
    &lt;span class="n"&gt;invested&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    
    &lt;span class="c"&gt;# The simulation stops once we&amp;#39;ve made a profit&lt;/span&gt;
    &lt;span class="n"&gt;day&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="n"&gt;profitable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;is_profitable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;close_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
        &lt;span class="n"&gt;is_profitable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;profitable&lt;/span&gt;
        &lt;span class="n"&gt;expected_close&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;
        &lt;span class="n"&gt;todays_purchase&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;daily_investment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;expected_close&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="n"&gt;invested&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;todays_purchase&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;bias&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="c"&gt;# expected_profit = expected_close * sum(invested ./ open_vals[1:length(invested)]) - sum(invested)&lt;/span&gt;
        &lt;span class="n"&gt;day&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
        &lt;span class="n"&gt;profitable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;is_profitable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;close_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
            &lt;span class="n"&gt;is_profitable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
    
    &lt;span class="n"&gt;shares&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt; &lt;span class="o"&gt;./&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;
    &lt;span class="n"&gt;max_profit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;close_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;open_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="n"&gt;profit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;shares&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;max_profit&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invested&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;profit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;sim_summary&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;investments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;profit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;leverages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;investments&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;investments&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;
    &lt;span class="n"&gt;max_leverage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;maximum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;leverages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;investments&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Max leverage: &lt;/span&gt;&lt;span class="si"&gt;$(max_leverage)&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Days invested: &lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;(length(investments))&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Profit: &lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;profit&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Now, let's get some data and run a simulation! Our first test:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;We'll invest 100 dollars in LMT, and expect that the stock will close up 1% every day. We'll invest $d_n$ + 10 dollars every day that we haven't turned a profit, and end the simulation once we've made a profit.&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[3]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;investments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;profit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;simulate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;YAHOO/LMT&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2015&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;29&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.01&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;sim_summary&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;investments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;profit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;
&lt;div class="output_subarea output_stream output_stdout output_text"&gt;
&lt;pre&gt;Max leverage: 5.590373200042106
Days invested: 5
Profit: 0.6894803101560001
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;The result: We need to invest 5.6x our initial position over a period of 5 days to make approximately .69&amp;#162;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Now let's try the same thing, but we'll assume the stock closes up 2% instead.&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[4]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;investments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;profit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;simulate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;YAHOO/LMT&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2015&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;29&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.02&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;sim_summary&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;investments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;profit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;
&lt;div class="output_subarea output_stream output_stdout output_text"&gt;
&lt;pre&gt;Max leverage: 1.854949900247809
Days invested: 25
Profit: 0.08304813163696423
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;In this example, we only get up to a 1.85x leveraged position, but it takes 25 days to turn a profit of 8&amp;#162;&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Summary"&gt;Summary&lt;a class="anchor-link" href="#Summary"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;We've defined an investment strategy that can tell us how much to invest when we know what the closing position of a stock will be. We can tweak the strategy to actually make money, but plenty of work needs to be done so that we can optimize the money invested.&lt;/p&gt;
&lt;p&gt;In the next post I'm going to post more information about some backtests and strategy tests on this strategy (unless of course this experiment actually produces a significant profit potential, and then I'm keeping it for myself).&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Side-note-and-disclaimer"&gt;Side note and disclaimer&lt;a class="anchor-link" href="#Side-note-and-disclaimer"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;The claims made in this presentation about being able to guarantee making money are intended as a joke and do not constitute investment advice of any sort.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;/p&gt;</summary><category term="martingale"></category><category term="strategy"></category></entry><entry><title>Cloudy in Seattle</title><link href="https://bspeice.github.io/cloudy-in-seattle.html" rel="alternate"></link><updated>2016-01-23T00:00:00-05:00</updated><author><name>Bradlee Speice</name></author><id>tag:bspeice.github.io,2016-01-23:cloudy-in-seattle.html</id><summary type="html">&lt;script type="text/x-mathjax-config"&gt;
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\(','\)']]}});
&lt;/script&gt;

&lt;script async src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML'&gt;&lt;/script&gt;

&lt;p&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[1]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pickle&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;pd&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;np&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;bokeh.plotting&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;output_notebook&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;show&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;bokeh.palettes&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;RdBu4&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;Palette&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;warnings&lt;/span&gt;

&lt;span class="n"&gt;output_notebook&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
    
&lt;script type="text/javascript"&gt;
    /* BEGIN C:\Users\Bradlee Speice\Anaconda3\lib\site-packages\bokeh\server\static\js/bokeh.min.js */
        !function(){var define=void 0;!function t(e,i,n){function r(o,a){if(!i[o]){if(!e[o]){var l="function"==typeof require&amp;&amp;require;if(!a&amp;&amp;l)return l(o,!0);if(s)return s(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var h=i[o]={exports:{}};e[o][0].call(h.exports,function(t){var i=e[o][1][t];return r(i?i:t)},h,h.exports,t,e,i,n)}return i[o].exports}for(var s="function"==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)r(n[o]);return r}({1:[function(t,e,i){var n,r;n={},n.require=t,n.version="0.10.0",n._=t("underscore"),n.$=t("jquery"),t("jquery-ui"),n.Backbone=t("backbone"),n.Backbone.$=n.$,n.Backbone.$.ui=n.$.ui,r=t("./common/logging"),n.logger=r.logger,n.set_log_level=r.set_log_level,window.Float64Array||(n.logger.warn("Float64Array is not supported. Using generic Array instead."),window.Float64Array=Array),n.index=t("./common/base").index,n.Collections=t("./common/base").Collections,n.Config=t("./common/base").Config,n.CartesianFrame=t("./common/cartesian_frame"),n.Canvas=t("./common/canvas"),n.GMapPlot=t("./common/gmap_plot"),n.GeoJSPlot=t("./common/geojs_plot"),n.GridPlot=t("./common/grid_plot"),n.HasParent=t("./common/has_parent"),n.HasProperties=t("./common/has_properties"),n.LayoutBox=t("./common/layout_box"),n.Plot=t("./common/plot"),n.Properties=t("./common/properties"),n.SelectionManager=t("./common/selection_manager"),n.Selector=t("./common/selector"),n.ToolEvents=t("./common/tool_events"),n.build_views=t("./common/build_views"),n.bulk_save=t("./common/bulk_save"),n.ContinuumView=t("./common/continuum_view"),n.load_models=t("./common/load_models"),n.PlotContext=t("./common/plot_context"),n.PlotWidget=t("./common/plot_widget"),n.Random=t("./common/random"),n.SVGColors=t("./common/svg_colors"),n.LinearMapper=t("./mapper/linear_mapper"),n.LogMapper=t("./mapper/log_mapper"),n.CategoricalMapper=t("./mapper/categorical_mapper"),n.GridMapper=t("./mapper/grid_mapper"),n.LinearColorMapper=t("./mapper/linear_color_mapper"),n.Palettes=t("./palettes/palettes"),n.BoxAnnotation=t("./renderer/annotation/box_annotation"),n.Legend=t("./renderer/annotation/legend"),n.Span=t("./renderer/annotation/span"),n.Tooltip=t("./renderer/annotation/tooltip"),n.CategoricalAxis=t("./renderer/guide/categorical_axis"),n.DatetimeAxis=t("./renderer/guide/datetime_axis"),n.Grid=t("./renderer/guide/grid"),n.LinearAxis=t("./renderer/guide/linear_axis"),n.LogAxis=t("./renderer/guide/log_axis"),n.BoxSelection=t("./renderer/overlay/box_selection"),n.PolySelection=t("./renderer/overlay/poly_selection"),n.embed=t("./server/embed"),n.serverutils=t("./server/serverutils"),n.ColumnDataSource=t("./source/column_data_source"),n.AbstractTicker=t("./ticking/abstract_ticker"),n.AdaptiveTicker=t("./ticking/adaptive_ticker"),n.BasicTicker=t("./ticking/basic_ticker"),n.BasicTickFormatter=t("./ticking/basic_tick_formatter"),n.LogTicker=t("./ticking/log_ticker"),n.LogTickFormatter=t("./ticking/log_tick_formatter"),n.CategoricalTicker=t("./ticking/categorical_ticker"),n.CategoricalTickFormatter=t("./ticking/categorical_tick_formatter"),n.CompositeTicker=t("./ticking/composite_ticker"),n.DatetimeTicker=t("./ticking/datetime_ticker"),n.DatetimeTickFormatter=t("./ticking/datetime_tick_formatter"),n.DaysTicker=t("./ticking/days_ticker"),n.MonthsTicker=t("./ticking/months_ticker"),n.SingleIntervalTicker=t("./ticking/single_interval_ticker"),n.YearsTicker=t("./ticking/years_ticker"),n.ActionTool=t("./tool/actions/action_tool"),n.PreviewSaveTool=t("./tool/actions/preview_save_tool"),n.ResetTool=t("./tool/actions/reset_tool"),n.HelpTool=t("./tool/actions/help_tool"),n.BoxSelectTool=t("./tool/gestures/box_select_tool"),n.BoxZoomTool=t("./tool/gestures/box_zoom_tool"),n.LassoSelectTool=t("./tool/gestures/lasso_select_tool"),n.PanTool=t("./tool/gestures/pan_tool"),n.PolySelectTool=t("./tool/gestures/poly_select_tool"),n.ResizeTool=t("./tool/gestures/resize_tool"),n.SelectTool=t("./tool/gestures/select_tool"),n.TapTool=t("./tool/gestures/tap_tool"),n.WheelZoomTool=t("./tool/gestures/wheel_zoom_tool"),n.InspectTool=t("./tool/inspectors/inspect_tool"),n.HoverTool=t("./tool/inspectors/hover_tool"),n.CrosshairTool=t("./tool/inspectors/crosshair_tool"),n.HBox=t("./widget/hbox"),n.VBox=t("./widget/vbox"),n.TextInput=t("./widget/text_input"),t("./api/plugin"),n.Bokeh=n,window.Bokeh=n,e.exports=n},{"./api/plugin":95,"./common/base":99,"./common/build_views":101,"./common/bulk_save":102,"./common/canvas":103,"./common/cartesian_frame":105,"./common/continuum_view":109,"./common/geojs_plot":111,"./common/gmap_plot":112,"./common/grid_plot":113,"./common/has_parent":114,"./common/has_properties":115,"./common/layout_box":117,"./common/load_models":118,"./common/logging":119,"./common/plot":121,"./common/plot_context":122,"./common/plot_widget":125,"./common/properties":126,"./common/random":127,"./common/selection_manager":128,"./common/selector":129,"./common/svg_colors":132,"./common/tool_events":134,"./mapper/categorical_mapper":138,"./mapper/grid_mapper":139,"./mapper/linear_color_mapper":140,"./mapper/linear_mapper":141,"./mapper/log_mapper":142,"./palettes/palettes":143,"./renderer/annotation/box_annotation":147,"./renderer/annotation/legend":148,"./renderer/annotation/span":149,"./renderer/annotation/tooltip":150,"./renderer/guide/categorical_axis":189,"./renderer/guide/datetime_axis":190,"./renderer/guide/grid":191,"./renderer/guide/linear_axis":192,"./renderer/guide/log_axis":193,"./renderer/overlay/box_selection":194,"./renderer/overlay/poly_selection":195,"./server/embed":196,"./server/serverutils":197,"./source/column_data_source":204,"./ticking/abstract_ticker":207,"./ticking/adaptive_ticker":208,"./ticking/basic_tick_formatter":209,"./ticking/basic_ticker":210,"./ticking/categorical_tick_formatter":211,"./ticking/categorical_ticker":212,"./ticking/composite_ticker":213,"./ticking/datetime_tick_formatter":214,"./ticking/datetime_ticker":215,"./ticking/days_ticker":216,"./ticking/log_tick_formatter":218,"./ticking/log_ticker":219,"./ticking/months_ticker":220,"./ticking/single_interval_ticker":223,"./ticking/years_ticker":225,"./tool/actions/action_tool":226,"./tool/actions/help_tool":227,"./tool/actions/preview_save_tool":228,"./tool/actions/reset_tool":230,"./tool/gestures/box_select_tool":233,"./tool/gestures/box_zoom_tool":234,"./tool/gestures/lasso_select_tool":236,"./tool/gestures/pan_tool":237,"./tool/gestures/poly_select_tool":238,"./tool/gestures/resize_tool":239,"./tool/gestures/select_tool":240,"./tool/gestures/tap_tool":241,"./tool/gestures/wheel_zoom_tool":242,"./tool/inspectors/crosshair_tool":243,"./tool/inspectors/hover_tool":244,"./tool/inspectors/inspect_tool":245,"./widget/hbox":267,"./widget/text_input":288,"./widget/vbox":291,backbone:2,jquery:18,"jquery-ui":11,underscore:92}],2:[function(t,e,i){!function(e,n){if("function"==typeof define&amp;&amp;define.amd)define(["underscore","jquery","exports"],function(t,i,r){e.Backbone=n(e,r,t,i)});else if("undefined"!=typeof i){var r=t("underscore");n(e,i,r)}else e.Backbone=n(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(t,e,i,n){var r=t.Backbone,s=[],o=(s.push,s.slice);s.splice;e.VERSION="1.1.2",e.$=n,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,i){if(!u(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var n=this._events[t]||(this._events[t]=[]);return n.push({callback:e,context:i,ctx:i||this}),this},once:function(t,e,n){if(!u(this,"once",t,[e,n])||!e)return this;var r=this,s=i.once(function(){r.off(t,s),e.apply(this,arguments)});return s._callback=e,this.on(t,s,n)},off:function(t,e,n){var r,s,o,a,l,h,c,p;if(!this._events||!u(this,"off",t,[e,n]))return this;if(!t&amp;&amp;!e&amp;&amp;!n)return this._events=void 0,this;for(a=t?[t]:i.keys(this._events),l=0,h=a.length;h&gt;l;l++)if(t=a[l],o=this._events[t]){if(this._events[t]=r=[],e||n)for(c=0,p=o.length;p&gt;c;c++)s=o[c],(e&amp;&amp;e!==s.callback&amp;&amp;e!==s.callback._callback||n&amp;&amp;n!==s.context)&amp;&amp;r.push(s);r.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=o.call(arguments,1);if(!u(this,"trigger",t,e))return this;var i=this._events[t],n=this._events.all;return i&amp;&amp;h(i,e),n&amp;&amp;h(n,arguments),this},stopListening:function(t,e,n){var r=this._listeningTo;if(!r)return this;var s=!e&amp;&amp;!n;n||"object"!=typeof e||(n=this),t&amp;&amp;((r={})[t._listenId]=t);for(var o in r)t=r[o],t.off(e,n,this),(s||i.isEmpty(t._events))&amp;&amp;delete this._listeningTo[o];return this}},l=/\s+/,u=function(t,e,i,n){if(!i)return!0;if("object"==typeof i){for(var r in i)t[e].apply(t,[r,i[r]].concat(n));return!1}if(l.test(i)){for(var s=i.split(l),o=0,a=s.length;a&gt;o;o++)t[e].apply(t,[s[o]].concat(n));return!1}return!0},h=function(t,e){var i,n=-1,r=t.length,s=e[0],o=e[1],a=e[2];switch(e.length){case 0:for(;++n&lt;r;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n&lt;r;)(i=t[n]).callback.call(i.ctx,s);return;case 2:for(;++n&lt;r;)(i=t[n]).callback.call(i.ctx,s,o);return;case 3:for(;++n&lt;r;)(i=t[n]).callback.call(i.ctx,s,o,a);return;default:for(;++n&lt;r;)(i=t[n]).callback.apply(i.ctx,e);return}},c={listenTo:"on",listenToOnce:"once"};i.each(c,function(t,e){a[e]=function(e,n,r){var s=this._listeningTo||(this._listeningTo={}),o=e._listenId||(e._listenId=i.uniqueId("l"));return s[o]=e,r||"object"!=typeof n||(r=this),e[t](n,r,this),this}}),a.bind=a.on,a.unbind=a.off,i.extend(e,a);var p=e.Model=function(t,e){var n=t||{};e||(e={}),this.cid=i.uniqueId("c"),this.attributes={},e.collection&amp;&amp;(this.collection=e.collection),e.parse&amp;&amp;(n=this.parse(n,e)||{}),n=i.defaults({},n,i.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(p.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var r,s,o,a,l,u,h,c;if(null==t)return this;if("object"==typeof t?(s=t,n=e):(s={})[t]=e,n||(n={}),!this._validate(s,n))return!1;o=n.unset,l=n.silent,a=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=i.clone(this.attributes),this.changed={}),c=this.attributes,h=this._previousAttributes,this.idAttribute in s&amp;&amp;(this.id=s[this.idAttribute]);for(r in s)e=s[r],i.isEqual(c[r],e)||a.push(r),i.isEqual(h[r],e)?delete this.changed[r]:this.changed[r]=e,o?delete c[r]:c[r]=e;if(!l){a.length&amp;&amp;(this._pending=n);for(var p=0,d=a.length;d&gt;p;p++)this.trigger("change:"+a[p],this,c[a[p]],n)}if(u)return this;if(!l)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?i.clone(this.changed):!1;var e,n=!1,r=this._changing?this._previousAttributes:this.attributes;for(var s in t)i.isEqual(r[s],e=t[s])||((n||(n={}))[s]=e);return n},previous:function(t){return null!=t&amp;&amp;this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=t?i.clone(t):{},void 0===t.parse&amp;&amp;(t.parse=!0);var e=this,n=t.success;return t.success=function(i){return e.set(e.parse(i,t),t)?(n&amp;&amp;n(e,i,t),void e.trigger("sync",e,i,t)):!1},O(this,t),this.sync("read",this,t)},save:function(t,e,n){var r,s,o,a=this.attributes;if(null==t||"object"==typeof t?(r=t,n=e):(r={})[t]=e,n=i.extend({validate:!0},n),r&amp;&amp;!n.wait){if(!this.set(r,n))return!1}else if(!this._validate(r,n))return!1;r&amp;&amp;n.wait&amp;&amp;(this.attributes=i.extend({},a,r)),void 0===n.parse&amp;&amp;(n.parse=!0);var l=this,u=n.success;return n.success=function(t){l.attributes=a;var e=l.parse(t,n);return n.wait&amp;&amp;(e=i.extend(r||{},e)),i.isObject(e)&amp;&amp;!l.set(e,n)?!1:(u&amp;&amp;u(l,t,n),void l.trigger("sync",l,t,n))},O(this,n),s=this.isNew()?"create":n.patch?"patch":"update","patch"===s&amp;&amp;(n.attrs=r),o=this.sync(s,this,n),r&amp;&amp;n.wait&amp;&amp;(this.attributes=a),o},destroy:function(t){t=t?i.clone(t):{};var e=this,n=t.success,r=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(i){(t.wait||e.isNew())&amp;&amp;r(),n&amp;&amp;n(e,i,t),e.isNew()||e.trigger("sync",e,i,t)},this.isNew())return t.success(),!1;O(this,t);var s=this.sync("delete",this,t);return t.wait||r(),s},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||j();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return n?(this.trigger("invalid",this,n,i.extend(e,{validationError:n})),!1):!0}});var d=["keys","values","pairs","invert","pick","omit"];i.each(d,function(t){p.prototype[t]=function(){var e=o.call(arguments);return e.unshift(this.attributes),i[t].apply(i,e)}});var f=e.Collection=function(t,e){e||(e={}),e.model&amp;&amp;(this.model=e.model),void 0!==e.comparator&amp;&amp;(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&amp;&amp;this.reset(t,i.extend({silent:!0},e))},g={add:!0,remove:!0,merge:!0},m={add:!0,remove:!1};i.extend(f.prototype,a,{model:p,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:!1},e,m))},remove:function(t,e){var n=!i.isArray(t);t=n?[t]:i.clone(t),e||(e={});var r,s,o,a;for(r=0,s=t.length;s&gt;r;r++)a=t[r]=this.get(t[r]),a&amp;&amp;(delete this._byId[a.id],delete this._byId[a.cid],o=this.indexOf(a),this.models.splice(o,1),this.length--,e.silent||(e.index=o,a.trigger("remove",a,this,e)),this._removeReference(a,e));return n?t[0]:t},set:function(t,e){e=i.defaults({},e,g),e.parse&amp;&amp;(t=this.parse(t,e));var n=!i.isArray(t);t=n?t?[t]:[]:i.clone(t);var r,s,o,a,l,u,h,c=e.at,d=this.model,f=this.comparator&amp;&amp;null==c&amp;&amp;e.sort!==!1,m=i.isString(this.comparator)?this.comparator:null,_=[],v=[],y={},b=e.add,w=e.merge,x=e.remove,k=!f&amp;&amp;b&amp;&amp;x?[]:!1;for(r=0,s=t.length;s&gt;r;r++){if(l=t[r]||{},o=l instanceof p?a=l:l[d.prototype.idAttribute||"id"],u=this.get(o))x&amp;&amp;(y[u.cid]=!0),w&amp;&amp;(l=l===a?a.attributes:l,e.parse&amp;&amp;(l=u.parse(l,e)),u.set(l,e),f&amp;&amp;!h&amp;&amp;u.hasChanged(m)&amp;&amp;(h=!0)),t[r]=u;else if(b){if(a=t[r]=this._prepareModel(l,e),!a)continue;_.push(a),this._addReference(a,e)}a=u||a,!k||!a.isNew()&amp;&amp;y[a.id]||k.push(a),y[a.id]=!0}if(x){for(r=0,s=this.length;s&gt;r;++r)y[(a=this.models[r]).cid]||v.push(a);v.length&amp;&amp;this.remove(v,e)}if(_.length||k&amp;&amp;k.length)if(f&amp;&amp;(h=!0),this.length+=_.length,null!=c)for(r=0,s=_.length;s&gt;r;r++)this.models.splice(c+r,0,_[r]);else{k&amp;&amp;(this.models.length=0);var M=k||_;for(r=0,s=M.length;s&gt;r;r++)this.models.push(M[r])}if(h&amp;&amp;this.sort({silent:!0}),!e.silent){for(r=0,s=_.length;s&gt;r;r++)(a=_[r]).trigger("add",a,this,e);(h||k&amp;&amp;k.length)&amp;&amp;this.trigger("sort",this,e)}return n?t[0]:t},reset:function(t,e){e||(e={});for(var n=0,r=this.models.length;r&gt;n;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return o.apply(this.models,arguments)},get:function(t){return null==t?void 0:this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return i.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var i in t)if(t[i]!==e.get(i))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return i.invoke(this.models,"get",t)},fetch:function(t){t=t?i.clone(t):{},void 0===t.parse&amp;&amp;(t.parse=!0);var e=t.success,n=this;return t.success=function(i){var r=t.reset?"reset":"set";n[r](i,t),e&amp;&amp;e(n,i,t),n.trigger("sync",n,i,t)},O(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?i.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var n=this,r=e.success;return e.success=function(t,i){e.wait&amp;&amp;n.add(t,e),r&amp;&amp;r(t,i,e)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof p)return t;e=e?i.clone(e):{},e.collection=this;var n=new this.model(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_addReference:function(t,e){this._byId[t.cid]=t,null!=t.id&amp;&amp;(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&amp;&amp;delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){("add"!==t&amp;&amp;"remove"!==t||i===this)&amp;&amp;("destroy"===t&amp;&amp;this.remove(e,n),e&amp;&amp;t==="change:"+e.idAttribute&amp;&amp;(delete this._byId[e.previous(e.idAttribute)],null!=e.id&amp;&amp;(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var _=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];i.each(_,function(t){f.prototype[t]=function(){var e=o.call(arguments);return e.unshift(this.models),i[t].apply(i,e)}});var v=["groupBy","countBy","sortBy","indexBy"];i.each(v,function(t){f.prototype[t]=function(e,n){var r=i.isFunction(e)?e:function(t){return t.get(e)};return i[t](this.models,r,n)}});var y=e.View=function(t){this.cid=i.uniqueId("view"),t||(t={}),i.extend(this,i.pick(t,w)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},b=/^(\S+)\s*(.*)$/,w=["model","collection","el","id","attributes","className","tagName","events"];i.extend(y.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,i){return this.$el&amp;&amp;this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],i!==!1&amp;&amp;this.delegateEvents(),this},delegateEvents:function(t){if(!t&amp;&amp;!(t=i.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var n=t[e];if(i.isFunction(n)||(n=this[t[e]]),n){var r=e.match(b),s=r[1],o=r[2];n=i.bind(n,this),s+=".delegateEvents"+this.cid,""===o?this.$el.on(s,n):this.$el.on(s,o,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var t=i.extend({},i.result(this,"attributes"));this.id&amp;&amp;(t.id=i.result(this,"id")),this.className&amp;&amp;(t["class"]=i.result(this,"className"));var n=e.$("&lt;"+i.result(this,"tagName")+"&gt;").attr(t);this.setElement(n,!1)}}}),e.sync=function(t,n,r){var s=k[t];i.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var o={type:s,dataType:"json"};if(r.url||(o.url=i.result(n,"url")||j()),null!=r.data||!n||"create"!==t&amp;&amp;"update"!==t&amp;&amp;"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(r.attrs||n.toJSON(r))),r.emulateJSON&amp;&amp;(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),r.emulateHTTP&amp;&amp;("PUT"===s||"DELETE"===s||"PATCH"===s)){o.type="POST",r.emulateJSON&amp;&amp;(o.data._method=s);var a=r.beforeSend;r.beforeSend=function(t){return t.setRequestHeader("X-HTTP-Method-Override",s),a?a.apply(this,arguments):void 0}}"GET"===o.type||r.emulateJSON||(o.processData=!1),"PATCH"===o.type&amp;&amp;x&amp;&amp;(o.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=r.xhr=e.ajax(i.extend(o,r));return n.trigger("request",n,l,r),l};var x=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&amp;&amp;(new XMLHttpRequest).dispatchEvent),k={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var M=e.Router=function(t){t||(t={}),t.routes&amp;&amp;(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},C=/\((.*?)\)/g,D=/(\(\?)?:\w+/g,T=/\*\w+/g,S=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(M.prototype,a,{initialize:function(){},route:function(t,n,r){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&amp;&amp;(r=n,n=""),r||(r=this[n]);var s=this;return e.history.route(t,function(i){var o=s._extractParameters(t,i);s.execute(r,o),s.trigger.apply(s,["route:"+n].concat(o)),s.trigger("route",n,o),e.history.trigger("route",s,n,o)}),this},execute:function(t,e){t&amp;&amp;t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(S,"\\$&amp;").replace(C,"(?:$1)?").replace(D,function(t,e){return e?t:"([^/?]+)"}).replace(T,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return i.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var A=e.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&amp;&amp;(this.location=window.location,this.history=window.history)},P=/^[#\/]|\s+$/g,E=/^\/+|\/+$/g,I=/msie [\w.]+/,N=/\/$/,R=/#.*$/;A.started=!1,i.extend(A.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&amp;/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(N,"");t.indexOf(i)||(t=t.slice(i.length))}else t=this.getHash();return t.replace(P,"")},start:function(t){if(A.started)throw new Error("Backbone.history has already been started");A.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&amp;&amp;this.history&amp;&amp;this.history.pushState);var n=this.getFragment(),r=document.documentMode,s=I.exec(navigator.userAgent.toLowerCase())&amp;&amp;(!r||7&gt;=r);if(this.root=("/"+this.root+"/").replace(E,"/"),s&amp;&amp;this._wantsHashChange){var o=e.$('&lt;iframe src="javascript:0" tabindex="-1"&gt;');this.iframe=o.hide().appendTo("body")[0].contentWindow,this.navigate(n)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&amp;&amp;"onhashchange"in window&amp;&amp;!s?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&amp;&amp;(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n;var a=this.location;if(this._wantsHashChange&amp;&amp;this._wantsPushState){if(!this._hasPushState&amp;&amp;!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&amp;&amp;this.atRoot()&amp;&amp;a.hash&amp;&amp;(this.fragment=this.getHash().replace(P,""),this.history.replaceState({},document.title,this.root+this.fragment))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&amp;&amp;clearInterval(this._checkUrlInterval),A.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&amp;&amp;this.iframe&amp;&amp;(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment?!1:(this.iframe&amp;&amp;this.navigate(e),void this.loadUrl())},loadUrl:function(t){return t=this.fragment=this.getFragment(t),i.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!A.started)return!1;e&amp;&amp;e!==!0||(e={trigger:!!e});var i=this.root+(t=this.getFragment(t||""));if(t=t.replace(R,""),this.fragment!==t){if(this.fragment=t,""===t&amp;&amp;"/"!==i&amp;&amp;(i=i.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,t,e.replace),this.iframe&amp;&amp;t!==this.getFragment(this.getHash(this.iframe))&amp;&amp;(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else t.hash="#"+e}}),e.history=new A;var z=function(t,e){var n,r=this;n=t&amp;&amp;i.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},i.extend(n,r,e);var s=function(){this.constructor=n};return s.prototype=r.prototype,n.prototype=new s,t&amp;&amp;i.extend(n.prototype,t),n.__super__=r.prototype,n};p.extend=f.extend=M.extend=y.extend=A.extend=z;var j=function(){throw new Error('A "url" property or function must be specified')},O=function(t,e){var i=e.error;e.error=function(n){i&amp;&amp;i(t,n,e),t.trigger("error",t,n,e)}};return e})},{underscore:92}],3:[function(t,e,i){!function(t,i,n,r){"use strict";function s(t,e,i){return setTimeout(c(t,i),e)}function o(t,e,i){return Array.isArray(t)?(a(t,i[e],i),!0):!1}function a(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==r)for(n=0;n&lt;t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&amp;&amp;e.call(i,t[n],n,t)}function l(t,e,i){for(var n=Object.keys(e),s=0;s&lt;n.length;)(!i||i&amp;&amp;t[n[s]]===r)&amp;&amp;(t[n[s]]=e[n[s]]),s++;return t}function u(t,e){return l(t,e,!0)}function h(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&amp;&amp;l(n,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function p(t,e){return typeof t==ct?t.apply(e?e[0]||r:r,e):t}function d(t,e){return t===r?e:t}function f(t,e,i){a(v(e),function(e){t.addEventListener(e,i,!1)})}function g(t,e,i){a(v(e),function(e){t.removeEventListener(e,i,!1)})}function m(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function _(t,e){return t.indexOf(e)&gt;-1}function v(t){return t.trim().split(/\s+/g)}function y(t,e,i){if(t.indexOf&amp;&amp;!i)return t.indexOf(e);for(var n=0;n&lt;t.length;){if(i&amp;&amp;t[n][i]==e||!i&amp;&amp;t[n]===e)return n;n++}return-1}function b(t){return Array.prototype.slice.call(t,0)}function w(t,e,i){for(var n=[],r=[],s=0;s&lt;t.length;){var o=e?t[s][e]:t[s];y(r,o)&lt;0&amp;&amp;n.push(t[s]),r[s]=o,s++}return i&amp;&amp;(n=e?n.sort(function(t,i){return t[e]&gt;i[e]}):n.sort()),n}function x(t,e){for(var i,n,s=e[0].toUpperCase()+e.slice(1),o=0;o&lt;ut.length;){if(i=ut[o],n=i?i+s:e,n in t)return n;o++}return r}function k(){return gt++}function M(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function C(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){p(t.options.enable,[t])&amp;&amp;i.handler(e)},this.init()}function D(t){var e,i=t.options.inputClass;return new(e=i?i:vt?H:yt?q:_t?V:L)(t,T)}function T(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,s=e&amp;Ct&amp;&amp;n-r===0,o=e&amp;(Tt|St)&amp;&amp;n-r===0;i.isFirst=!!s,i.isFinal=!!o,s&amp;&amp;(t.session={}),i.eventType=e,S(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function S(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=E(e)),r&gt;1&amp;&amp;!i.firstMultiple?i.firstMultiple=E(e):1===r&amp;&amp;(i.firstMultiple=!1);var s=i.firstInput,o=i.firstMultiple,a=o?o.center:s.center,l=e.center=I(n);e.timeStamp=ft(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=j(a,l),e.distance=z(a,l),A(i,e),e.offsetDirection=R(e.deltaX,e.deltaY),e.scale=o?F(o.pointers,n):1,e.rotation=o?O(o.pointers,n):0,P(i,e);var u=t.element;m(e.srcEvent.target,u)&amp;&amp;(u=e.srcEvent.target),e.target=u}function A(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};(e.eventType===Ct||s.eventType===Tt)&amp;&amp;(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function P(t,e){var i,n,s,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=St&amp;&amp;(l&gt;Mt||a.velocity===r)){var u=a.deltaX-e.deltaX,h=a.deltaY-e.deltaY,c=N(l,u,h);n=c.x,s=c.y,i=dt(c.x)&gt;dt(c.y)?c.x:c.y,o=R(u,h),t.lastInterval=e}else i=a.velocity,n=a.velocityX,s=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=s,e.direction=o}function E(t){for(var e=[],i=0;i&lt;t.pointers.length;)e[i]={clientX:pt(t.pointers[i].clientX),clientY:pt(t.pointers[i].clientY)},i++;return{timeStamp:ft(),pointers:e,center:I(e),deltaX:t.deltaX,deltaY:t.deltaY}}function I(t){var e=t.length;if(1===e)return{x:pt(t[0].clientX),y:pt(t[0].clientY)};for(var i=0,n=0,r=0;e&gt;r;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:pt(i/e),y:pt(n/e)}}function N(t,e,i){return{x:e/t||0,y:i/t||0}}function R(t,e){return t===e?At:dt(t)&gt;=dt(e)?t&gt;0?Pt:Et:e&gt;0?It:Nt}function z(t,e,i){i||(i=Ot);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function j(t,e,i){i||(i=Ot);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function O(t,e){return j(e[1],e[0],Ft)-j(t[1],t[0],Ft)}function F(t,e){return z(e[0],e[1],Ft)/z(t[0],t[1],Ft)}function L(){this.evEl=Ht,this.evWin=Bt,this.allow=!0,this.pressed=!1,C.apply(this,arguments)}function H(){this.evEl=Yt,this.evWin=Vt,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function B(){this.evTarget=Ut,this.evWin=Gt,this.started=!1,C.apply(this,arguments)}function W(t,e){var i=b(t.touches),n=b(t.changedTouches);return e&amp;(Tt|St)&amp;&amp;(i=w(i.concat(n),"identifier",!0)),[i,n]}function q(){this.evTarget=Zt,this.targetIds={},C.apply(this,arguments)}function Y(t,e){var i=b(t.touches),n=this.targetIds;if(e&amp;(Ct|Dt)&amp;&amp;1===i.length)return n[i[0].identifier]=!0,[i,i];var r,s,o=b(t.changedTouches),a=[],l=this.target;if(s=i.filter(function(t){return m(t.target,l)}),e===Ct)for(r=0;r&lt;s.length;)n[s[r].identifier]=!0,r++;for(r=0;r&lt;o.length;)n[o[r].identifier]&amp;&amp;a.push(o[r]),e&amp;(Tt|St)&amp;&amp;delete n[o[r].identifier],r++;return a.length?[w(s.concat(a),"identifier",!0),a]:void 0}function V(){C.apply(this,arguments);var t=c(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new L(this.manager,t)}function $(t,e){this.manager=t,this.set(e)}function U(t){if(_(t,ie))return ie;var e=_(t,ne),i=_(t,re);return e&amp;&amp;i?ne+" "+re:e||i?e?ne:re:_(t,ee)?ee:te}function G(t){this.id=k(),this.manager=null,this.options=u(t||{},this.defaults),this.options.enable=d(this.options.enable,!0),this.state=se,this.simultaneous={},this.requireFail=[]}function X(t){return t&amp;he?"cancel":t&amp;le?"end":t&amp;ae?"move":t&amp;oe?"start":""}function Z(t){return t==Nt?"down":t==It?"up":t==Pt?"left":t==Et?"right":""}function J(t,e){var i=e.manager;return i?i.get(t):t}function Q(){G.apply(this,arguments)}function K(){Q.apply(this,arguments),this.pX=null,this.pY=null}function tt(){Q.apply(this,arguments)}function et(){G.apply(this,arguments),this._timer=null,this._input=null}function it(){Q.apply(this,arguments)}function nt(){Q.apply(this,arguments)}function rt(){G.apply(this,arguments),this.pTime=!1,
        this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function st(t,e){return e=e||{},e.recognizers=d(e.recognizers,st.defaults.preset),new ot(t,e)}function ot(t,e){e=e||{},this.options=u(e,st.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=D(this),this.touchAction=new $(this,this.options.touchAction),at(this,!0),a(e.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&amp;&amp;e.recognizeWith(t[2]),t[3]&amp;&amp;e.requireFailure(t[3])},this)}function at(t,e){var i=t.element;a(t.options.cssProps,function(t,n){i.style[x(i.style,n)]=e?t:""})}function lt(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var ut=["","webkit","moz","MS","ms","o"],ht=i.createElement("div"),ct="function",pt=Math.round,dt=Math.abs,ft=Date.now,gt=1,mt=/mobile|tablet|ip(ad|hone|od)|android/i,_t="ontouchstart"in t,vt=x(t,"PointerEvent")!==r,yt=_t&amp;&amp;mt.test(navigator.userAgent),bt="touch",wt="pen",xt="mouse",kt="kinect",Mt=25,Ct=1,Dt=2,Tt=4,St=8,At=1,Pt=2,Et=4,It=8,Nt=16,Rt=Pt|Et,zt=It|Nt,jt=Rt|zt,Ot=["x","y"],Ft=["clientX","clientY"];C.prototype={handler:function(){},init:function(){this.evEl&amp;&amp;f(this.element,this.evEl,this.domHandler),this.evTarget&amp;&amp;f(this.target,this.evTarget,this.domHandler),this.evWin&amp;&amp;f(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&amp;&amp;g(this.element,this.evEl,this.domHandler),this.evTarget&amp;&amp;g(this.target,this.evTarget,this.domHandler),this.evWin&amp;&amp;g(M(this.element),this.evWin,this.domHandler)}};var Lt={mousedown:Ct,mousemove:Dt,mouseup:Tt},Ht="mousedown",Bt="mousemove mouseup";h(L,C,{handler:function(t){var e=Lt[t.type];e&amp;Ct&amp;&amp;0===t.button&amp;&amp;(this.pressed=!0),e&amp;Dt&amp;&amp;1!==t.which&amp;&amp;(e=Tt),this.pressed&amp;&amp;this.allow&amp;&amp;(e&amp;Tt&amp;&amp;(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:xt,srcEvent:t}))}});var Wt={pointerdown:Ct,pointermove:Dt,pointerup:Tt,pointercancel:St,pointerout:St},qt={2:bt,3:wt,4:xt,5:kt},Yt="pointerdown",Vt="pointermove pointerup pointercancel";t.MSPointerEvent&amp;&amp;(Yt="MSPointerDown",Vt="MSPointerMove MSPointerUp MSPointerCancel"),h(H,C,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=Wt[n],s=qt[t.pointerType]||t.pointerType,o=s==bt,a=y(e,t.pointerId,"pointerId");r&amp;Ct&amp;&amp;(0===t.button||o)?0&gt;a&amp;&amp;(e.push(t),a=e.length-1):r&amp;(Tt|St)&amp;&amp;(i=!0),0&gt;a||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),i&amp;&amp;e.splice(a,1))}});var $t={touchstart:Ct,touchmove:Dt,touchend:Tt,touchcancel:St},Ut="touchstart",Gt="touchstart touchmove touchend touchcancel";h(B,C,{handler:function(t){var e=$t[t.type];if(e===Ct&amp;&amp;(this.started=!0),this.started){var i=W.call(this,t,e);e&amp;(Tt|St)&amp;&amp;i[0].length-i[1].length===0&amp;&amp;(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:bt,srcEvent:t})}}});var Xt={touchstart:Ct,touchmove:Dt,touchend:Tt,touchcancel:St},Zt="touchstart touchmove touchend touchcancel";h(q,C,{handler:function(t){var e=Xt[t.type],i=Y.call(this,t,e);i&amp;&amp;this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:bt,srcEvent:t})}}),h(V,C,{handler:function(t,e,i){var n=i.pointerType==bt,r=i.pointerType==xt;if(n)this.mouse.allow=!1;else if(r&amp;&amp;!this.mouse.allow)return;e&amp;(Tt|St)&amp;&amp;(this.mouse.allow=!0),this.callback(t,e,i)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Jt=x(ht.style,"touchAction"),Qt=Jt!==r,Kt="compute",te="auto",ee="manipulation",ie="none",ne="pan-x",re="pan-y";$.prototype={set:function(t){t==Kt&amp;&amp;(t=this.compute()),Qt&amp;&amp;(this.manager.element.style[Jt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return a(this.manager.recognizers,function(e){p(e.options.enable,[e])&amp;&amp;(t=t.concat(e.getTouchAction()))}),U(t.join(" "))},preventDefaults:function(t){if(!Qt){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var n=this.actions,r=_(n,ie),s=_(n,re),o=_(n,ne);return r||s&amp;&amp;i&amp;Rt||o&amp;&amp;i&amp;zt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var se=1,oe=2,ae=4,le=8,ue=le,he=16,ce=32;G.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&amp;&amp;this.manager.touchAction.update(),this},recognizeWith:function(t){if(o(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=J(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return o(t,"dropRecognizeWith",this)?this:(t=J(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(o(t,"requireFailure",this))return this;var e=this.requireFail;return t=J(t,this),-1===y(e,t)&amp;&amp;(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(o(t,"dropRequireFailure",this))return this;t=J(t,this);var e=y(this.requireFail,t);return e&gt;-1&amp;&amp;this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length&gt;0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(i.options.event+(e?X(n):""),t)}var i=this,n=this.state;le&gt;n&amp;&amp;e(!0),e(),n&gt;=le&amp;&amp;e(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=ce)},canEmit:function(){for(var t=0;t&lt;this.requireFail.length;){if(!(this.requireFail[t].state&amp;(ce|se)))return!1;t++}return!0},recognize:function(t){var e=l({},t);return p(this.options.enable,[this,e])?(this.state&amp;(ue|he|ce)&amp;&amp;(this.state=se),this.state=this.process(e),void(this.state&amp;(oe|ae|le|he)&amp;&amp;this.tryEmit(e))):(this.reset(),void(this.state=ce))},process:function(t){},getTouchAction:function(){},reset:function(){}},h(Q,G,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&amp;(oe|ae),r=this.attrTest(t);return n&amp;&amp;(i&amp;St||!r)?e|he:n||r?i&amp;Tt?e|le:e&amp;oe?e|ae:oe:ce}}),h(K,Q,{defaults:{event:"pan",threshold:10,pointers:1,direction:jt},getTouchAction:function(){var t=this.options.direction,e=[];return t&amp;Rt&amp;&amp;e.push(re),t&amp;zt&amp;&amp;e.push(ne),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&amp;e.direction||(e.direction&amp;Rt?(r=0===s?At:0&gt;s?Pt:Et,i=s!=this.pX,n=Math.abs(t.deltaX)):(r=0===o?At:0&gt;o?It:Nt,i=o!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&amp;&amp;n&gt;e.threshold&amp;&amp;r&amp;e.direction},attrTest:function(t){return Q.prototype.attrTest.call(this,t)&amp;&amp;(this.state&amp;oe||!(this.state&amp;oe)&amp;&amp;this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Z(t.direction);e&amp;&amp;this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),h(tt,Q,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ie]},attrTest:function(t){return this._super.attrTest.call(this,t)&amp;&amp;(Math.abs(t.scale-1)&gt;this.options.threshold||this.state&amp;oe)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale&lt;1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),h(et,G,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[te]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance&lt;e.threshold,r=t.deltaTime&gt;e.time;if(this._input=t,!n||!i||t.eventType&amp;(Tt|St)&amp;&amp;!r)this.reset();else if(t.eventType&amp;Ct)this.reset(),this._timer=s(function(){this.state=ue,this.tryEmit()},e.time,this);else if(t.eventType&amp;Tt)return ue;return ce},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ue&amp;&amp;(t&amp;&amp;t.eventType&amp;Tt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ft(),this.manager.emit(this.options.event,this._input)))}}),h(it,Q,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ie]},attrTest:function(t){return this._super.attrTest.call(this,t)&amp;&amp;(Math.abs(t.rotation)&gt;this.options.threshold||this.state&amp;oe)}}),h(nt,Q,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Rt|zt,pointers:1},getTouchAction:function(){return K.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&amp;(Rt|zt)?e=t.velocity:i&amp;Rt?e=t.velocityX:i&amp;zt&amp;&amp;(e=t.velocityY),this._super.attrTest.call(this,t)&amp;&amp;i&amp;t.direction&amp;&amp;t.distance&gt;this.options.threshold&amp;&amp;dt(e)&gt;this.options.velocity&amp;&amp;t.eventType&amp;Tt},emit:function(t){var e=Z(t.direction);e&amp;&amp;this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(rt,G,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ee]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance&lt;e.threshold,r=t.deltaTime&lt;e.time;if(this.reset(),t.eventType&amp;Ct&amp;&amp;0===this.count)return this.failTimeout();if(n&amp;&amp;r&amp;&amp;i){if(t.eventType!=Tt)return this.failTimeout();var o=this.pTime?t.timeStamp-this.pTime&lt;e.interval:!0,a=!this.pCenter||z(this.pCenter,t.center)&lt;e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&amp;&amp;o?this.count+=1:this.count=1,this._input=t;var l=this.count%e.taps;if(0===l)return this.hasRequireFailures()?(this._timer=s(function(){this.state=ue,this.tryEmit()},e.interval,this),oe):ue}return ce},failTimeout:function(){return this._timer=s(function(){this.state=ce},this.options.interval,this),ce},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ue&amp;&amp;(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),st.VERSION="2.0.4",st.defaults={domEvents:!1,touchAction:Kt,enable:!0,inputTarget:null,inputClass:null,preset:[[it,{enable:!1}],[tt,{enable:!1},["rotate"]],[nt,{direction:Rt}],[K,{direction:Rt},["swipe"]],[rt],[rt,{event:"doubletap",taps:2},["tap"]],[et]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var pe=1,de=2;ot.prototype={set:function(t){return l(this.options,t),t.touchAction&amp;&amp;this.touchAction.update(),t.inputTarget&amp;&amp;(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?de:pe},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,r=e.curRecognizer;(!r||r&amp;&amp;r.state&amp;ue)&amp;&amp;(r=e.curRecognizer=null);for(var s=0;s&lt;n.length;)i=n[s],e.stopped===de||r&amp;&amp;i!=r&amp;&amp;!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&amp;&amp;i.state&amp;(oe|ae|le)&amp;&amp;(r=e.curRecognizer=i),s++}},get:function(t){if(t instanceof G)return t;for(var e=this.recognizers,i=0;i&lt;e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(o(t,"add",this))return this;var e=this.get(t.options.event);return e&amp;&amp;this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(o(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(y(e,t),1),this.touchAction.update(),this},on:function(t,e){var i=this.handlers;return a(v(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this},off:function(t,e){var i=this.handlers;return a(v(t),function(t){e?i[t].splice(y(i[t],e),1):delete i[t]}),this},emit:function(t,e){this.options.domEvents&amp;&amp;lt(t,e);var i=this.handlers[t]&amp;&amp;this.handlers[t].slice();if(i&amp;&amp;i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n&lt;i.length;)i[n](e),n++}},destroy:function(){this.element&amp;&amp;at(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(st,{INPUT_START:Ct,INPUT_MOVE:Dt,INPUT_END:Tt,INPUT_CANCEL:St,STATE_POSSIBLE:se,STATE_BEGAN:oe,STATE_CHANGED:ae,STATE_ENDED:le,STATE_RECOGNIZED:ue,STATE_CANCELLED:he,STATE_FAILED:ce,DIRECTION_NONE:At,DIRECTION_LEFT:Pt,DIRECTION_RIGHT:Et,DIRECTION_UP:It,DIRECTION_DOWN:Nt,DIRECTION_HORIZONTAL:Rt,DIRECTION_VERTICAL:zt,DIRECTION_ALL:jt,Manager:ot,Input:C,TouchAction:$,TouchInput:q,MouseInput:L,PointerEventInput:H,TouchMouseInput:V,SingleTouchInput:B,Recognizer:G,AttrRecognizer:Q,Tap:rt,Pan:K,Swipe:nt,Pinch:tt,Rotate:it,Press:et,on:f,off:g,each:a,merge:u,extend:l,inherit:h,bindFn:c,prefixed:x}),typeof define==ct&amp;&amp;define.amd?define(function(){return st}):"undefined"!=typeof e&amp;&amp;e.exports?e.exports=st:t[n]=st}(window,document,"Hammer")},{}],4:[function(t,e,i){!function(t){"function"==typeof define&amp;&amp;define.amd?define(["jquery"],t):"object"==typeof i?e.exports=t:t(jQuery)}(function(t){function e(e){var o=e||window.event,a=l.call(arguments,1),u=0,c=0,p=0,d=0,f=0,g=0;if(e=t.event.fix(o),e.type="mousewheel","detail"in o&amp;&amp;(p=-1*o.detail),"wheelDelta"in o&amp;&amp;(p=o.wheelDelta),"wheelDeltaY"in o&amp;&amp;(p=o.wheelDeltaY),"wheelDeltaX"in o&amp;&amp;(c=-1*o.wheelDeltaX),"axis"in o&amp;&amp;o.axis===o.HORIZONTAL_AXIS&amp;&amp;(c=-1*p,p=0),u=0===p?c:p,"deltaY"in o&amp;&amp;(p=-1*o.deltaY,u=p),"deltaX"in o&amp;&amp;(c=o.deltaX,0===p&amp;&amp;(u=-1*c)),0!==p||0!==c){if(1===o.deltaMode){var m=t.data(this,"mousewheel-line-height");u*=m,p*=m,c*=m}else if(2===o.deltaMode){var _=t.data(this,"mousewheel-page-height");u*=_,p*=_,c*=_}if(d=Math.max(Math.abs(p),Math.abs(c)),(!s||s&gt;d)&amp;&amp;(s=d,n(o,d)&amp;&amp;(s/=40)),n(o,d)&amp;&amp;(u/=40,c/=40,p/=40),u=Math[u&gt;=1?"floor":"ceil"](u/s),c=Math[c&gt;=1?"floor":"ceil"](c/s),p=Math[p&gt;=1?"floor":"ceil"](p/s),h.settings.normalizeOffset&amp;&amp;this.getBoundingClientRect){var v=this.getBoundingClientRect();f=e.clientX-v.left,g=e.clientY-v.top}return e.deltaX=c,e.deltaY=p,e.deltaFactor=s,e.offsetX=f,e.offsetY=g,e.deltaMode=0,a.unshift(e,u,c,p),r&amp;&amp;clearTimeout(r),r=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,a)}}function i(){s=null}function n(t,e){return h.settings.adjustOldDeltas&amp;&amp;"mousewheel"===t.type&amp;&amp;e%120===0}var r,s,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode&gt;=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var u=o.length;u;)t.event.fixHooks[o[--u]]=t.event.mouseHooks;var h=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=a.length;i;)this.addEventListener(a[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",h.getLineHeight(this)),t.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=a.length;i;)this.removeEventListener(a[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})},{}],5:[function(t,e,i){var n=t("jquery");t("./core"),t("./widget"),t("./position"),t("./menu"),function(t,e){t.widget("ui.autocomplete",{version:"1.10.4",defaultElement:"&lt;input&gt;",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,r=this.element[0].nodeName.toLowerCase(),s="textarea"===r,o="input"===r;this.isMultiLine=s?!0:o?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[s||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var s=t.ui.keyCode;switch(r.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",r);break;case s.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case s.UP:e=!0,this._keyEvent("previous",r);break;case s.DOWN:e=!0,this._keyEvent("next",r);break;case s.ENTER:case s.NUMPAD_ENTER:this.menu.active&amp;&amp;(e=!0,r.preventDefault(),this.menu.select(r));break;case s.TAB:this.menu.active&amp;&amp;this.menu.select(r);break;case s.ESCAPE:this.menu.element.is(":visible")&amp;&amp;(this._value(this.term),this.close(r),r.preventDefault());break;default:i=!0,this._searchTimeout(r)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&amp;&amp;n.preventDefault());if(!i){var r=t.ui.keyCode;switch(n.keyCode){case r.PAGE_UP:this._move("previousPage",n);break;case r.PAGE_DOWN:this._move("nextPage",n);break;case r.UP:this._keyEvent("previous",n);break;case r.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("&lt;ul&gt;").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&amp;&amp;(this.isNewMenu=!1,e.originalEvent&amp;&amp;/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});var n=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:n})?e.originalEvent&amp;&amp;/^key/.test(e.originalEvent.type)&amp;&amp;this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&amp;&amp;(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&amp;&amp;this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("&lt;span&gt;",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&amp;&amp;this._initSource(),"appendTo"===t&amp;&amp;this.menu.element.appendTo(this._appendTo()),"disabled"===t&amp;&amp;e&amp;&amp;this.xhr&amp;&amp;this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&amp;&amp;(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,r){n.xhr&amp;&amp;n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&amp;&amp;(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length&lt;this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&amp;&amp;this.__response(t),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&amp;&amp;(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&amp;&amp;t&amp;&amp;t.length&amp;&amp;!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&amp;&amp;(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&amp;&amp;this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&amp;&amp;e[0].label&amp;&amp;e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&amp;&amp;this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("&lt;li&gt;").append(t("&lt;a&gt;").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&amp;&amp;/^previous/.test(t)||this.menu.isLastItem()&amp;&amp;/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&amp;&amp;(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&amp;")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t&gt;1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&amp;&amp;t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(n)},{"./core":7,"./menu":12,"./position":14,"./widget":17,jquery:18}],6:[function(t,e,i){var n=t("jquery");t("./core"),t("./widget"),function(t,e){var i,n="ui-button ui-widget ui-state-default ui-corner-all",r="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",s=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},o=function(e){var i=e.name,n=e.form,r=t([]);return i&amp;&amp;(i=i.replace(/'/g,"\\'"),r=n?t(n).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),r};t.widget("ui.button",{version:"1.10.4",defaultElement:"&lt;button&gt;",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,s),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,r=this.options,a="checkbox"===this.type||"radio"===this.type,l=a?"":"ui-state-active";null===r.label&amp;&amp;(r.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(n).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){r.disabled||this===i&amp;&amp;t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){r.disabled||t(this).removeClass(l)}).bind("click"+this.eventNamespace,function(t){r.disabled&amp;&amp;(t.preventDefault(),t.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),a&amp;&amp;this.element.bind("change"+this.eventNamespace,function(){e.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return r.disabled?!1:void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(r.disabled)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var i=e.element[0];o(i).not(i).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return r.disabled?!1:(t(this).addClass("ui-state-active"),i=this,void e.document.one("mouseup",function(){i=null}))}).bind("mouseup"+this.eventNamespace,function(){return r.disabled?!1:void t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){return r.disabled?!1:void((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&amp;&amp;t(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&amp;&amp;this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&amp;&amp;t(this).click()})),this._setOption("disabled",r.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&amp;&amp;this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(n+" ui-state-active "+r).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?(this.element.prop("disabled",!!e),void(e&amp;&amp;this.buttonElement.removeClass("ui-state-focus"))):void this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&amp;&amp;this._setOption("disabled",e),"radio"===this.type?o(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&amp;&amp;(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&amp;&amp;this.element.val(this.options.label));var e=this.buttonElement.removeClass(r),i=t("&lt;span&gt;&lt;/span&gt;",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,s=n.primary&amp;&amp;n.secondary,o=[];n.primary||n.secondary?(this.options.text&amp;&amp;o.push("ui-button-text-icon"+(s?"s":n.primary?"-primary":"-secondary")),n.primary&amp;&amp;e.prepend("&lt;span class='ui-button-icon-primary ui-icon "+n.primary+"'&gt;&lt;/span&gt;"),n.secondary&amp;&amp;e.append("&lt;span class='ui-button-icon-secondary ui-icon "+n.secondary+"'&gt;&lt;/span&gt;"),this.options.text||(o.push(s?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):o.push("ui-button-text-only"),e.addClass(o.join(" "))}}),t.widget("ui.buttonset",{version:"1.10.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&amp;&amp;this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(n)},{"./core":7,"./widget":17,jquery:18}],7:[function(t,e,i){var n=t("jquery");!function(t,e){function i(e,i){var r,s,o,a=e.nodeName.toLowerCase();return"area"===a?(r=e.parentNode,s=r.name,e.href&amp;&amp;s&amp;&amp;"map"===r.nodeName.toLowerCase()?(o=t("img[usemap=#"+s+"]")[0],!!o&amp;&amp;n(o)):!1):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a?e.href||i:i)&amp;&amp;n(e)}function n(e){return t.expr.filters.visible(e)&amp;&amp;!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var r=0,s=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&amp;&amp;n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&amp;&amp;/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&amp;&amp;/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,r,s=t(this[0]);s.length&amp;&amp;s[0]!==document;){if(n=s.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&amp;&amp;(r=parseInt(s.css("zIndex"),10),!isNaN(r)&amp;&amp;0!==r))return r;s=s.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++r)})},removeUniqueId:function(){return this.each(function(){s.test(this.id)&amp;&amp;t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),r=isNaN(n);return(r||n&gt;=0)&amp;&amp;i(e,!r)}}),t("&lt;a&gt;").outerWidth(1).jquery||t.each(["Width","Height"],function(i,n){function r(e,i,n,r){return t.each(s,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&amp;&amp;(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),r&amp;&amp;(i-=parseFloat(t.css(e,"margin"+this))||0);
        }),i}var s="Width"===n?["Left","Right"]:["Top","Bottom"],o=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?a["inner"+n].call(this):this.each(function(){t(this).css(o,r(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){t(this).css(o,r(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("&lt;a&gt;").data("a-b","a").removeData("a-b").data("a-b")&amp;&amp;(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var r,s=t.ui[e].prototype;for(r in n)s.plugins[r]=s.plugins[r]||[],s.plugins[r].push([i,n[r]])},call:function(t,e,i){var n,r=t.plugins[e];if(r&amp;&amp;t.element[0].parentNode&amp;&amp;11!==t.element[0].parentNode.nodeType)for(n=0;n&lt;r.length;n++)t.options[r[n][0]]&amp;&amp;r[n][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&amp;&amp;"left"===i?"scrollLeft":"scrollTop",r=!1;return e[n]&gt;0?!0:(e[n]=1,r=e[n]&gt;0,e[n]=0,r)}})}(n)},{jquery:18}],8:[function(t,e,i){var n=t("jquery");t("./core"),function(t,e){function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.dpDiv=n(t("&lt;div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'&gt;&lt;/div&gt;"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&amp;&amp;t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&amp;&amp;t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){t.datepicker._isDisabledDatepicker(s.inline?e.parent()[0]:s.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&amp;&amp;t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&amp;&amp;t(this).addClass("ui-datepicker-next-hover"))})}function r(e,i){t.extend(e,i);for(var n in i)null==i[n]&amp;&amp;(e[n]=i[n]);return e}t.extend(t.ui,{datepicker:{version:"1.10.4"}});var s,o="datepicker";t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return r(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,r,s;n=e.nodeName.toLowerCase(),r="div"===n||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),s=this._newInst(t(e),r),s.settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,s):r&amp;&amp;this._inlineDatepicker(e,s)},_newInst:function(e,i){var r=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("&lt;div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'&gt;&lt;/div&gt;")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,o,i),i.settings.disabled&amp;&amp;this._disableDatepicker(e))},_attachments:function(e,i){var n,r,s,o=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&amp;&amp;i.append.remove(),o&amp;&amp;(i.append=t("&lt;span class='"+this._appendClass+"'&gt;"+o+"&lt;/span&gt;"),e[a?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&amp;&amp;i.trigger.remove(),n=this._get(i,"showOn"),("focus"===n||"both"===n)&amp;&amp;e.focus(this._showDatepicker),("button"===n||"both"===n)&amp;&amp;(r=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("&lt;img/&gt;").addClass(this._triggerClass).attr({src:s,alt:r,title:r}):t("&lt;button type='button'&gt;&lt;/button&gt;").addClass(this._triggerClass).html(s?t("&lt;img/&gt;").attr({src:s,alt:r,title:r}):r)),e[a?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&amp;&amp;t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&amp;&amp;t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&amp;&amp;!t.inline){var e,i,n,r,s=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&amp;&amp;(e=function(t){for(i=0,n=0,r=0;r&lt;t.length;r++)t[r].length&gt;i&amp;&amp;(i=t[r].length,n=r);return n},s.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,o,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&amp;&amp;this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,a){var l,u,h,c,p,d=this._dialogInst;return d||(this.uuid+=1,l="dp"+this.uuid,this._dialogInput=t("&lt;input type='text' id='"+l+"' style='position: absolute; top: -100px; width: 0px;'/&gt;"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],o,d)),r(d.settings,s||{}),i=i&amp;&amp;i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(u=document.documentElement.clientWidth,h=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,p=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[u/2-100+c,h/2-150+p]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&amp;&amp;t.blockUI(this.dpDiv),t.data(this._dialogInput[0],o,d),this},_destroyDatepicker:function(e){var i,n=t(e),r=t.data(e,o);n.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),t.removeData(e,o),"input"===i?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&amp;&amp;n.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,n,r=t(e),s=t.data(e,o);r.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&amp;&amp;(n=r.children("."+this._inlineClass),n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,r=t(e),s=t.data(e,o);r.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&amp;&amp;(n=r.children("."+this._inlineClass),n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e&lt;this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,o)}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,n,s){var o,a,l,u,h=this._getInst(i);return 2===arguments.length&amp;&amp;"string"==typeof n?"defaults"===n?t.extend({},t.datepicker._defaults):h?"all"===n?t.extend({},h.settings):this._get(h,n):null:(o=n||{},"string"==typeof n&amp;&amp;(o={},o[n]=s),void(h&amp;&amp;(this._curInst===h&amp;&amp;this._hideDatepicker(),a=this._getDateDatepicker(i,!0),l=this._getMinMaxDate(h,"min"),u=this._getMinMaxDate(h,"max"),r(h.settings,o),null!==l&amp;&amp;o.dateFormat!==e&amp;&amp;o.minDate===e&amp;&amp;(h.settings.minDate=this._formatDate(h,l)),null!==u&amp;&amp;o.dateFormat!==e&amp;&amp;o.maxDate===e&amp;&amp;(h.settings.maxDate=this._formatDate(h,u)),"disabled"in o&amp;&amp;(o.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),h),this._autoSize(h),this._setDate(h,a),this._updateAlternate(h),this._updateDatepicker(h))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&amp;&amp;this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&amp;&amp;(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&amp;&amp;!i.inline&amp;&amp;this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,r,s=t.datepicker._getInst(e.target),o=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return r=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv),r[0]&amp;&amp;t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,r[0]),i=t.datepicker._get(s,"onSelect"),i?(n=t.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[n,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,a?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&amp;&amp;t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,a?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&amp;&amp;t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&amp;&amp;e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&amp;&amp;(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,r=t.datepicker._getInst(e.target);return t.datepicker._get(r,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(r,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" "&gt;n||!i||i.indexOf(n)&gt;-1):void 0},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&amp;&amp;(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(r){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&amp;&amp;(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&amp;&amp;t.datepicker._lastInput!==e){var i,n,s,o,a,l,u;i=t.datepicker._getInst(e),t.datepicker._curInst&amp;&amp;t.datepicker._curInst!==i&amp;&amp;(t.datepicker._curInst.dpDiv.stop(!0,!0),i&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker._get(i,"beforeShow"),s=n?n.apply(e,[e,i]):{},s!==!1&amp;&amp;(r(i.settings,s),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&amp;&amp;(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each(function(){return o|="fixed"===t(this).css("position"),!o}),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),a=t.datepicker._checkOffset(i,a,o),i.dpDiv.css({position:t.datepicker._inDialog&amp;&amp;t.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),u=t.datepicker._get(i,"duration"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&amp;&amp;t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),u):i.dpDiv[l||"show"](l?u:null),t.datepicker._shouldFocusInput(i)&amp;&amp;i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,s=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,n=this._getNumberOfMonths(e),r=n[1],o=17;e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r&gt;1&amp;&amp;e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",o*r+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;t.datepicker._shouldFocusInput(e)&amp;&amp;e.input.focus(),e.yearshtml&amp;&amp;(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&amp;&amp;e.yearshtml&amp;&amp;e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&amp;&amp;t.input.is(":visible")&amp;&amp;!t.input.is(":disabled")&amp;&amp;!t.input.is(":focus")},_checkOffset:function(e,i,n){var r=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?r-o:0,i.left-=n&amp;&amp;i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&amp;&amp;i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r&gt;l&amp;&amp;l&gt;r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+s&gt;u&amp;&amp;u&gt;s?Math.abs(s+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),r=this._get(n,"isRTL");e&amp;&amp;("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,r,s,a=this._curInst;!a||e&amp;&amp;a!==t.data(e,o)||this._datepickerShowing&amp;&amp;(i=this._get(a,"showAnim"),n=this._get(a,"duration"),r=function(){t.datepicker._tidyDialog(a)},t.effects&amp;&amp;(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,r):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,r),i||r(),this._datepickerShowing=!1,s=this._get(a,"onClose"),s&amp;&amp;s.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&amp;&amp;(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&amp;&amp;(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&amp;&amp;0===i.parents("#"+t.datepicker._mainDivId).length&amp;&amp;!i.hasClass(t.datepicker.markerClassName)&amp;&amp;!i.closest("."+t.datepicker._triggerClass).length&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&amp;&amp;t.datepicker._curInst!==n)&amp;&amp;t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var r=t(e),s=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(s,i+("M"===n?this._get(s,"showCurrentAtPos"):0),n),this._updateDatepicker(s))},_gotoToday:function(e){var i,n=t(e),r=this._getInst(n[0]);this._get(r,"gotoCurrent")&amp;&amp;r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var r=t(e),s=this._getInst(r[0]);s["selected"+("M"===n?"Month":"Year")]=s["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(r)},_selectDay:function(e,i,n,r){var s,o=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(s=this._getInst(o[0]),s.selectedDay=s.currentDay=t("a",r).html(),s.selectedMonth=s.currentMonth=i,s.selectedYear=s.currentYear=n,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,r=t(e),s=this._getInst(r[0]);i=null!=i?i:this._formatDate(s),s.input&amp;&amp;s.input.val(i),this._updateAlternate(s),n=this._get(s,"onSelect"),n?n.apply(s.input?s.input[0]:null,[i,s]):s.input&amp;&amp;s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&amp;&amp;s.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,n,r,s=this._get(e,"altField");s&amp;&amp;(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),r=this.formatDate(i,n,this._getFormatConfig(e)),t(s).each(function(){t(this).val(r)}))},noWeekends:function(t){var e=t.getDay();return[e&gt;0&amp;&amp;6&gt;e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?i.toString():i+"",""===i)return null;var r,s,o,a,l=0,u=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),c=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,d=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,y=!1,b=function(t){var i=r+1&lt;e.length&amp;&amp;e.charAt(r+1)===t;return i&amp;&amp;r++,i},w=function(t){var e=b(t),n="@"===t?14:"!"===t?20:"y"===t&amp;&amp;e?4:"o"===t?3:2,r=new RegExp("^\\d{1,"+n+"}"),s=i.substring(l).match(r);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},x=function(e,n,r){var s=-1,o=t.map(b(e)?r:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(o,function(t,e){var n=e[1];return i.substr(l,n.length).toLowerCase()===n.toLowerCase()?(s=e[0],l+=n.length,!1):void 0}),-1!==s)return s+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==e.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r&lt;e.length;r++)if(y)"'"!==e.charAt(r)||b("'")?k():y=!1;else switch(e.charAt(r)){case"d":_=w("d");break;case"D":x("D",c,p);break;case"o":v=w("o");break;case"m":m=w("m");break;case"M":m=x("M",d,f);break;case"y":g=w("y");break;case"@":a=new Date(w("@")),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case"!":a=new Date((w("!")-this._ticksTo1970)/1e4),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case"'":b("'")?k():y=!0;break;default:k()}if(l&lt;i.length&amp;&amp;(o=i.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===g?g=(new Date).getFullYear():100&gt;g&amp;&amp;(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h&gt;=g?0:-100)),v&gt;-1)for(m=1,_=v;;){if(s=this._getDaysInMonth(g,m-1),s&gt;=_)break;m++,_-=s}if(a=this._daylightSavingAdjust(new Date(g,m-1,_)),a.getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==_)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1&lt;t.length&amp;&amp;t.charAt(n+1)===e;return i&amp;&amp;n++,i},u=function(t,e,i){var n=""+e;if(l(t))for(;n.length&lt;i;)n="0"+n;return n},h=function(t,e,i,n){return l(t)?n[e]:i[e]},c="",p=!1;if(e)for(n=0;n&lt;t.length;n++)if(p)"'"!==t.charAt(n)||l("'")?c+=t.charAt(n):p=!1;else switch(t.charAt(n)){case"d":c+=u("d",e.getDate(),2);break;case"D":c+=h("D",e.getDay(),r,s);break;case"o":c+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=u("m",e.getMonth()+1,2);break;case"M":c+=h("M",e.getMonth(),o,a);break;case"y":c+=l("y")?e.getFullYear():(e.getYear()%100&lt;10?"0":"")+e.getYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?c+="'":p=!0;break;default:c+=t.charAt(n)}return c},_possibleChars:function(t){var e,i="",n=!1,r=function(i){var n=e+1&lt;t.length&amp;&amp;t.charAt(e+1)===i;return n&amp;&amp;e++,n};for(e=0;e&lt;t.length;e++)if(n)"'"!==t.charAt(e)||r("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":r("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),s=r,o=this._getFormatConfig(t);try{s=this.parseDate(i,n,o)||r}catch(a){n=e?"":n}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=n?s.getDate():0,t.currentMonth=n?s.getMonth():0,t.currentYear=n?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var r=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},s=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(n){}for(var r=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=r.getFullYear(),o=r.getMonth(),a=r.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(i);u;){switch(u[2]||"d"){case"d":case"D":a+=parseInt(u[1],10);break;case"w":case"W":a+=7*parseInt(u[1],10);break;case"m":case"M":o+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,o));break;case"y":case"Y":s+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,o))}u=l.exec(i)}return new Date(s,o,a)},o=null==i||""===i?n:"string"==typeof i?s(i):"number"==typeof i?isNaN(i)?n:r(i):new Date(i.getTime());return o=o&amp;&amp;"Invalid Date"===o.toString()?n:o,o&amp;&amp;(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()&gt;12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,r=t.selectedMonth,s=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),r===t.selectedMonth&amp;&amp;s===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&amp;&amp;t.input.val(n?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&amp;&amp;""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F,L,H=new Date,B=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),W=this._get(t,"isRTL"),q=this._get(t,"showButtonPanel"),Y=this._get(t,"hideIfNoPrevNext"),V=this._get(t,"navigationAsDateFormat"),$=this._getNumberOfMonths(t),U=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),X=1!==$[0]||1!==$[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),Q=this._getMinMaxDate(t,"max"),K=t.drawMonth-U,tt=t.drawYear;if(0&gt;K&amp;&amp;(K+=12,tt--),Q)for(e=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-$[0]*$[1]+1,Q.getDate())),e=J&amp;&amp;J&gt;e?J:e;this._daylightSavingAdjust(new Date(tt,K,1))&gt;e;)K--,0&gt;K&amp;&amp;(K=11,tt--);for(t.drawMonth=K,t.drawYear=tt,i=this._get(t,"prevText"),i=V?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,K-G,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,K)?"&lt;a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'&gt;"+i+"&lt;/span&gt;&lt;/a&gt;":Y?"":"&lt;a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'&gt;"+i+"&lt;/span&gt;&lt;/a&gt;",r=this._get(t,"nextText"),r=V?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,K+G,1)),this._getFormatConfig(t)):r,s=this._canAdjustMonth(t,1,tt,K)?"&lt;a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'&gt;"+r+"&lt;/span&gt;&lt;/a&gt;":Y?"":"&lt;a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'&gt;"+r+"&lt;/span&gt;&lt;/a&gt;",o=this._get(t,"currentText"),a=this._get(t,"gotoCurrent")&amp;&amp;t.currentDay?Z:B,o=V?this.formatDate(o,a,this._getFormatConfig(t)):o,l=t.inline?"":"&lt;button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'&gt;"+this._get(t,"closeText")+"&lt;/button&gt;",u=q?"&lt;div class='ui-datepicker-buttonpane ui-widget-content'&gt;"+(W?l:"")+(this._isInRange(t,a)?"&lt;button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'&gt;"+o+"&lt;/button&gt;":"")+(W?"":l)+"&lt;/div&gt;":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,c=this._get(t,"showWeek"),p=this._get(t,"dayNames"),d=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),b="",x=0;x&lt;$[0];x++){for(k="",this.maxRows=4,M=0;M&lt;$[1];M++){if(C=this._daylightSavingAdjust(new Date(tt,K,t.selectedDay)),D=" ui-corner-all",T="",X){if(T+="&lt;div class='ui-datepicker-group",$[1]&gt;1)switch(M){case 0:T+=" ui-datepicker-group-first",D=" ui-corner-"+(W?"right":"left");break;case $[1]-1:T+=" ui-datepicker-group-last",D=" ui-corner-"+(W?"left":"right");break;default:T+=" ui-datepicker-group-middle",D=""}T+="'&gt;"}for(T+="&lt;div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'&gt;"+(/all|left/.test(D)&amp;&amp;0===x?W?s:n:"")+(/all|right/.test(D)&amp;&amp;0===x?W?n:s:"")+this._generateMonthYearHeader(t,K,tt,J,Q,x&gt;0||M&gt;0,f,g)+"&lt;/div&gt;&lt;table class='ui-datepicker-calendar'&gt;&lt;thead&gt;&lt;tr&gt;",S=c?"&lt;th class='ui-datepicker-week-col'&gt;"+this._get(t,"weekHeader")+"&lt;/th&gt;":"",w=0;7&gt;w;w++)A=(w+h)%7,S+="&lt;th"+((w+h+6)%7&gt;=5?" class='ui-datepicker-week-end'":"")+"&gt;&lt;span title='"+p[A]+"'&gt;"+d[A]+"&lt;/span&gt;&lt;/th&gt;";for(T+=S+"&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;",P=this._getDaysInMonth(tt,K),tt===t.selectedYear&amp;&amp;K===t.selectedMonth&amp;&amp;(t.selectedDay=Math.min(t.selectedDay,P)),E=(this._getFirstDayOfMonth(tt,K)-h+7)%7,I=Math.ceil((E+P)/7),N=X&amp;&amp;this.maxRows&gt;I?this.maxRows:I,this.maxRows=N,R=this._daylightSavingAdjust(new Date(tt,K,1-E)),z=0;N&gt;z;z++){for(T+="&lt;tr&gt;",j=c?"&lt;td class='ui-datepicker-week-col'&gt;"+this._get(t,"calculateWeek")(R)+"&lt;/td&gt;":"",w=0;7&gt;w;w++)O=m?m.apply(t.input?t.input[0]:null,[R]):[!0,""],F=R.getMonth()!==K,L=F&amp;&amp;!v||!O[0]||J&amp;&amp;J&gt;R||Q&amp;&amp;R&gt;Q,j+="&lt;td class='"+((w+h+6)%7&gt;=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(R.getTime()===C.getTime()&amp;&amp;K===t.selectedMonth&amp;&amp;t._keyEvent||y.getTime()===R.getTime()&amp;&amp;y.getTime()===C.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&amp;&amp;!_?"":" "+O[1]+(R.getTime()===Z.getTime()?" "+this._currentClass:"")+(R.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(F&amp;&amp;!_||!O[2]?"":" title='"+O[2].replace(/'/g,"&amp;#39;")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+"&gt;"+(F&amp;&amp;!_?"&amp;#xa0;":L?"&lt;span class='ui-state-default'&gt;"+R.getDate()+"&lt;/span&gt;":"&lt;a class='ui-state-default"+(R.getTime()===B.getTime()?" ui-state-highlight":"")+(R.getTime()===Z.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'&gt;"+R.getDate()+"&lt;/a&gt;")+"&lt;/td&gt;",
        R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);T+=j+"&lt;/tr&gt;"}K++,K&gt;11&amp;&amp;(K=0,tt++),T+="&lt;/tbody&gt;&lt;/table&gt;"+(X?"&lt;/div&gt;"+($[0]&gt;0&amp;&amp;M===$[1]-1?"&lt;div class='ui-datepicker-row-break'&gt;&lt;/div&gt;":""):""),k+=T}b+=k}return b+=u,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,r,s,o,a){var l,u,h,c,p,d,f,g,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),y="&lt;div class='ui-datepicker-title'&gt;",b="";if(s||!m)b+="&lt;span class='ui-datepicker-month'&gt;"+o[e]+"&lt;/span&gt;";else{for(l=n&amp;&amp;n.getFullYear()===i,u=r&amp;&amp;r.getFullYear()===i,b+="&lt;select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'&gt;",h=0;12&gt;h;h++)(!l||h&gt;=n.getMonth())&amp;&amp;(!u||h&lt;=r.getMonth())&amp;&amp;(b+="&lt;option value='"+h+"'"+(h===e?" selected='selected'":"")+"&gt;"+a[h]+"&lt;/option&gt;");b+="&lt;/select&gt;"}if(v||(y+=b+(!s&amp;&amp;m&amp;&amp;_?"":"&amp;#xa0;")),!t.yearshtml)if(t.yearshtml="",s||!_)y+="&lt;span class='ui-datepicker-year'&gt;"+i+"&lt;/span&gt;";else{for(c=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),d=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e},f=d(c[0]),g=Math.max(f,d(c[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="&lt;select class='ui-datepicker-year' data-handler='selectYear' data-event='change'&gt;";g&gt;=f;f++)t.yearshtml+="&lt;option value='"+f+"'"+(f===i?" selected='selected'":"")+"&gt;"+f+"&lt;/option&gt;";t.yearshtml+="&lt;/select&gt;",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),v&amp;&amp;(y+=(!s&amp;&amp;m&amp;&amp;_?"":"&amp;#xa0;")+b),y+="&lt;/div&gt;"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),r=t.drawMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,s)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),("M"===i||"Y"===i)&amp;&amp;this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&amp;&amp;i&gt;e?i:e;return n&amp;&amp;r&gt;n?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&amp;&amp;e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(0&gt;e?e:r[0]*r[1]),1));return 0&gt;e&amp;&amp;s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),o=null,a=null,l=this._get(t,"yearRange");return l&amp;&amp;(i=l.split(":"),n=(new Date).getFullYear(),o=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&amp;&amp;(o+=n),i[1].match(/[+\-].*/)&amp;&amp;(a+=n)),(!r||e.getTime()&gt;=r.getTime())&amp;&amp;(!s||e.getTime()&lt;=s.getTime())&amp;&amp;(!o||e.getFullYear()&gt;=o)&amp;&amp;(!a||e.getFullYear()&lt;=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&amp;&amp;t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&amp;&amp;"getDate"!==e&amp;&amp;"widget"!==e?"option"===e&amp;&amp;2===arguments.length&amp;&amp;"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.4"}(n)},{"./core":7,jquery:18}],9:[function(t,e,i){var n=t("jquery");t("./core"),t("./mouse"),t("./widget"),function(t,e){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&amp;&amp;this.element.addClass("ui-draggable"),this.options.disabled&amp;&amp;this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length&gt;0?!1:(this.handle=this._getHandle(e),this.handle?(t(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){t("&lt;div class='ui-draggable-iframeFix' style='background: #fff;'&gt;&lt;/div&gt;").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&amp;&amp;(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&amp;&amp;this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&amp;&amp;!i.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&amp;&amp;(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",e,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&amp;&amp;"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&amp;&amp;"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&amp;&amp;!this.options.dropBehaviour&amp;&amp;(n=t.ui.ddmanager.drop(this,e)),this.dropped&amp;&amp;(n=this.dropped,this.dropped=!1),"original"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&amp;&amp;!n||"valid"===this.options.revert&amp;&amp;n||this.options.revert===!0||t.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&amp;&amp;i._clear()}):this._trigger("stop",e)!==!1&amp;&amp;this._clear(),!1):!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&amp;&amp;(e=e.split(" ")),t.isArray(e)&amp;&amp;(e={left:+e[0],top:+e[1]||0}),"left"in e&amp;&amp;(this.offset.click.left=e.left+this.margins.left),"right"in e&amp;&amp;(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&amp;&amp;(this.offset.click.top=e.top+this.margins.top),"bottom"in e&amp;&amp;(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&amp;&amp;this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])&amp;&amp;(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&amp;&amp;"html"===this.offsetParent[0].tagName.toLowerCase()&amp;&amp;t.ui.ie)&amp;&amp;(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;return r.containment?"window"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&amp;&amp;(r.containment=this.helper[0].parentNode),i=t(r.containment),n=i[0],void(n&amp;&amp;(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,r,s,o=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,u=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&amp;&amp;(this.containment&amp;&amp;(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left&lt;i[0]&amp;&amp;(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top&lt;i[1]&amp;&amp;(u=i[1]+this.offset.click.top),e.pageX-this.offset.click.left&gt;i[2]&amp;&amp;(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top&gt;i[3]&amp;&amp;(u=i[3]+this.offset.click.top)),o.grid&amp;&amp;(r=o.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,u=i?r-this.offset.click.top&gt;=i[1]||r-this.offset.click.top&gt;i[3]?r:r-this.offset.click.top&gt;=i[1]?r-o.grid[1]:r+o.grid[1]:r,s=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?s-this.offset.click.left&gt;=i[0]||s-this.offset.click.left&gt;i[2]?s:s-this.offset.click.left&gt;=i[0]?s-o.grid[0]:s+o.grid[0]:s)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"===e&amp;&amp;(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var n=t(this).data("ui-draggable"),r=n.options,s=t.extend({},i,{item:n.element});n.sortables=[],t(r.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&amp;&amp;!i.options.disabled&amp;&amp;(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,s))})},stop:function(e,i){var n=t(this).data("ui-draggable"),r=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&amp;&amp;(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&amp;&amp;this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,r))})},drag:function(e,i){var n=t(this).data("ui-draggable"),r=this;t.each(n.sortables,function(){var s=!1,o=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&amp;&amp;(s=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==o&amp;&amp;this.instance._intersectsWith(this.instance.containerCache)&amp;&amp;t.contains(o.instance.element[0],this.instance.element[0])&amp;&amp;(s=!1),s})),s?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(r).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&amp;&amp;this.instance._mouseDrag(e)):this.instance.isOver&amp;&amp;(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&amp;&amp;this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&amp;&amp;(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&amp;&amp;t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),r=t(this).data("ui-draggable").options;n.css("opacity")&amp;&amp;(r._opacity=n.css("opacity")),n.css("opacity",r.opacity)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._opacity&amp;&amp;t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&amp;&amp;"HTML"!==e.scrollParent[0].tagName&amp;&amp;(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),n=i.options,r=!1;i.scrollParent[0]!==document&amp;&amp;"HTML"!==i.scrollParent[0].tagName?(n.axis&amp;&amp;"x"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY&lt;n.scrollSensitivity?i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top&lt;n.scrollSensitivity&amp;&amp;(i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&amp;&amp;"y"===n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX&lt;n.scrollSensitivity?i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left&lt;n.scrollSensitivity&amp;&amp;(i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&amp;&amp;"x"===n.axis||(e.pageY-t(document).scrollTop()&lt;n.scrollSensitivity?r=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())&lt;n.scrollSensitivity&amp;&amp;(r=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&amp;&amp;"y"===n.axis||(e.pageX-t(document).scrollLeft()&lt;n.scrollSensitivity?r=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())&lt;n.scrollSensitivity&amp;&amp;(r=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),r!==!1&amp;&amp;t.ui.ddmanager&amp;&amp;!n.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("ui-draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=t(this),n=i.offset();this!==e.element[0]&amp;&amp;e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(e,i){var n,r,s,o,a,l,u,h,c,p,d=t(this).data("ui-draggable"),f=d.options,g=f.snapTolerance,m=i.offset.left,_=m+d.helperProportions.width,v=i.offset.top,y=v+d.helperProportions.height;for(c=d.snapElements.length-1;c&gt;=0;c--)a=d.snapElements[c].left,l=a+d.snapElements[c].width,u=d.snapElements[c].top,h=u+d.snapElements[c].height,a-g&gt;_||m&gt;l+g||u-g&gt;y||v&gt;h+g||!t.contains(d.snapElements[c].item.ownerDocument,d.snapElements[c].item)?(d.snapElements[c].snapping&amp;&amp;d.options.snap.release&amp;&amp;d.options.snap.release.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[c].item})),d.snapElements[c].snapping=!1):("inner"!==f.snapMode&amp;&amp;(n=Math.abs(u-y)&lt;=g,r=Math.abs(h-v)&lt;=g,s=Math.abs(a-_)&lt;=g,o=Math.abs(l-m)&lt;=g,n&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:u-d.helperProportions.height,left:0}).top-d.margins.top),r&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:h,left:0}).top-d.margins.top),s&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:a-d.helperProportions.width}).left-d.margins.left),o&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:l}).left-d.margins.left)),p=n||r||s||o,"outer"!==f.snapMode&amp;&amp;(n=Math.abs(u-v)&lt;=g,r=Math.abs(h-y)&lt;=g,s=Math.abs(a-m)&lt;=g,o=Math.abs(l-_)&lt;=g,n&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:u,left:0}).top-d.margins.top),r&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:h-d.helperProportions.height,left:0}).top-d.margins.top),s&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:a}).left-d.margins.left),o&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:l-d.helperProportions.width}).left-d.margins.left)),!d.snapElements[c].snapping&amp;&amp;(n||r||s||o||p)&amp;&amp;d.options.snap.snap&amp;&amp;d.options.snap.snap.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[c].item})),d.snapElements[c].snapping=n||r||s||o||p)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,n=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});n.length&amp;&amp;(e=parseInt(t(n[0]).css("zIndex"),10)||0,t(n).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+n.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),r=t(this).data("ui-draggable").options;n.css("zIndex")&amp;&amp;(r._zIndex=n.css("zIndex")),n.css("zIndex",r.zIndex)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._zIndex&amp;&amp;t(i.helper).css("zIndex",n._zIndex)}})}(n)},{"./core":7,"./mouse":13,"./widget":17,jquery:18}],10:[function(t,e,i){var n=t("jquery");t("./core"),t("./widget"),t("./mouse"),t("./draggable"),function(t,e){function i(t,e,i){return t&gt;e&amp;&amp;e+i&gt;t}t.widget("ui.droppable",{version:"1.10.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},t.ui.ddmanager.droppables[i.scope]=t.ui.ddmanager.droppables[i.scope]||[],t.ui.ddmanager.droppables[i.scope].push(this),i.addClasses&amp;&amp;this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];e&lt;i.length;e++)i[e]===this&amp;&amp;i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&amp;&amp;(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&amp;&amp;this.element.addClass(this.options.activeClass),i&amp;&amp;this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&amp;&amp;this.element.removeClass(this.options.activeClass),i&amp;&amp;this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&amp;&amp;(i.currentItem||i.element)[0]!==this.element[0]&amp;&amp;this.accept.call(this.element[0],i.currentItem||i.element)&amp;&amp;(this.options.hoverClass&amp;&amp;this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&amp;&amp;(i.currentItem||i.element)[0]!==this.element[0]&amp;&amp;this.accept.call(this.element[0],i.currentItem||i.element)&amp;&amp;(this.options.hoverClass&amp;&amp;this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,r=!1;return n&amp;&amp;(n.currentItem||n.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"ui-droppable");return e.options.greedy&amp;&amp;!e.options.disabled&amp;&amp;e.options.scope===n.options.scope&amp;&amp;e.accept.call(e.element[0],n.currentItem||n.element)&amp;&amp;t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(r=!0,!1):void 0}),r?!1:this.accept.call(this.element[0],n.currentItem||n.element)?(this.options.activeClass&amp;&amp;this.element.removeClass(this.options.activeClass),this.options.hoverClass&amp;&amp;this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,e,n){if(!e.offset)return!1;var r,s,o=(t.positionAbs||t.position.absolute).left,a=(t.positionAbs||t.position.absolute).top,l=o+t.helperProportions.width,u=a+t.helperProportions.height,h=e.offset.left,c=e.offset.top,p=h+e.proportions().width,d=c+e.proportions().height;switch(n){case"fit":return o&gt;=h&amp;&amp;p&gt;=l&amp;&amp;a&gt;=c&amp;&amp;d&gt;=u;case"intersect":return h&lt;o+t.helperProportions.width/2&amp;&amp;l-t.helperProportions.width/2&lt;p&amp;&amp;c&lt;a+t.helperProportions.height/2&amp;&amp;u-t.helperProportions.height/2&lt;d;case"pointer":return r=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,s=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,i(s,c,e.proportions().height)&amp;&amp;i(r,h,e.proportions().width);case"touch":return(a&gt;=c&amp;&amp;d&gt;=a||u&gt;=c&amp;&amp;d&gt;=u||c&gt;a&amp;&amp;u&gt;d)&amp;&amp;(o&gt;=h&amp;&amp;p&gt;=o||l&gt;=h&amp;&amp;p&gt;=l||h&gt;o&amp;&amp;l&gt;p);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var n,r,s=t.ui.ddmanager.droppables[e.options.scope]||[],o=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n&lt;s.length;n++)if(!(s[n].options.disabled||e&amp;&amp;!s[n].accept.call(s[n].element[0],e.currentItem||e.element))){for(r=0;r&lt;a.length;r++)if(a[r]===s[n].element[0]){s[n].proportions().height=0;continue t}s[n].visible="none"!==s[n].element.css("display"),s[n].visible&amp;&amp;("mousedown"===o&amp;&amp;s[n]._activate.call(s[n],i),s[n].offset=s[n].element.offset(),s[n].proportions({width:s[n].element[0].offsetWidth,height:s[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&amp;&amp;(!this.options.disabled&amp;&amp;this.visible&amp;&amp;t.ui.intersect(e,this,this.options.tolerance)&amp;&amp;(n=this._drop.call(this,i)||n),!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.accept.call(this.element[0],e.currentItem||e.element)&amp;&amp;(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&amp;&amp;t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&amp;&amp;!this.greedyChild&amp;&amp;this.visible){var n,r,s,o=t.ui.intersect(e,this,this.options.tolerance),a=!o&amp;&amp;this.isover?"isout":o&amp;&amp;!this.isover?"isover":null;a&amp;&amp;(this.options.greedy&amp;&amp;(r=this.options.scope,s=this.element.parents(":data(ui-droppable)").filter(function(){return t.data(this,"ui-droppable").options.scope===r}),s.length&amp;&amp;(n=t.data(s[0],"ui-droppable"),n.greedyChild="isover"===a)),n&amp;&amp;"isover"===a&amp;&amp;(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&amp;&amp;"isout"===a&amp;&amp;(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(n)},{"./core":7,"./draggable":9,"./mouse":13,"./widget":17,jquery:18}],11:[function(t,e,i){var n=t("jquery");!function(t,e){function i(e,i){var r,s,o,a=e.nodeName.toLowerCase();return"area"===a?(r=e.parentNode,s=r.name,e.href&amp;&amp;s&amp;&amp;"map"===r.nodeName.toLowerCase()?(o=t("img[usemap=#"+s+"]")[0],!!o&amp;&amp;n(o)):!1):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a?e.href||i:i)&amp;&amp;n(e)}function n(e){return t.expr.filters.visible(e)&amp;&amp;!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var r=0,s=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&amp;&amp;n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&amp;&amp;/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&amp;&amp;/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,r,s=t(this[0]);s.length&amp;&amp;s[0]!==document;){if(n=s.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&amp;&amp;(r=parseInt(s.css("zIndex"),10),!isNaN(r)&amp;&amp;0!==r))return r;s=s.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++r)})},removeUniqueId:function(){return this.each(function(){s.test(this.id)&amp;&amp;t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),r=isNaN(n);return(r||n&gt;=0)&amp;&amp;i(e,!r)}}),t("&lt;a&gt;").outerWidth(1).jquery||t.each(["Width","Height"],function(i,n){function r(e,i,n,r){return t.each(s,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&amp;&amp;(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),r&amp;&amp;(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var s="Width"===n?["Left","Right"]:["Top","Bottom"],o=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,
        outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?a["inner"+n].call(this):this.each(function(){t(this).css(o,r(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){t(this).css(o,r(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("&lt;a&gt;").data("a-b","a").removeData("a-b").data("a-b")&amp;&amp;(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var r,s=t.ui[e].prototype;for(r in n)s.plugins[r]=s.plugins[r]||[],s.plugins[r].push([i,n[r]])},call:function(t,e,i){var n,r=t.plugins[e];if(r&amp;&amp;t.element[0].parentNode&amp;&amp;11!==t.element[0].parentNode.nodeType)for(n=0;n&lt;r.length;n++)t.options[r[n][0]]&amp;&amp;r[n][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&amp;&amp;"left"===i?"scrollLeft":"scrollTop",r=!1;return e[n]&gt;0?!0:(e[n]=1,r=e[n]&gt;0,e[n]=0,r)}})}(n),function(t,e){var i=0,n=Array.prototype.slice,r=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(s){}r(e)},t.widget=function(e,i,n){var r,s,o,a,l={},u=e.split(".")[0];e=e.split(".")[1],r=u+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][r.toLowerCase()]=function(e){return!!t.data(e,r)},t[u]=t[u]||{},s=t[u][e],o=t[u][e]=function(t,e){return this._createWidget?void(arguments.length&amp;&amp;this._createWidget(t,e)):new o(t,e)},t.extend(o,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},r=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,s=this._superApply;return this._super=t,this._superApply=r,e=n.apply(this,arguments),this._super=i,this._superApply=s,e}}()):void(l[e]=n)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:s?a.widgetEventPrefix:e},l,{constructor:o,namespace:u,widgetName:e,widgetFullName:r}),s?(t.each(s._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)}),delete s._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o)},t.widget.extend=function(i){for(var r,s,o=n.call(arguments,1),a=0,l=o.length;l&gt;a;a++)for(r in o[a])s=o[a][r],o[a].hasOwnProperty(r)&amp;&amp;s!==e&amp;&amp;(t.isPlainObject(s)?i[r]=t.isPlainObject(i[r])?t.widget.extend({},i[r],s):t.widget.extend({},s):i[r]=s);return i},t.widget.bridge=function(i,r){var s=r.prototype.widgetFullName||i;t.fn[i]=function(o){var a="string"==typeof o,l=n.call(arguments,1),u=this;return o=!a&amp;&amp;l.length?t.widget.extend.apply(null,[o].concat(l)):o,a?this.each(function(){var n,r=t.data(this,s);return r?t.isFunction(r[o])&amp;&amp;"_"!==o.charAt(0)?(n=r[o].apply(r,l),n!==r&amp;&amp;n!==e?(u=n&amp;&amp;n.jquery?u.pushStack(n.get()):n,!1):void 0):t.error("no such method '"+o+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+o+"'")}):this.each(function(){var e=t.data(this,s);e?e.option(o||{})._init():t.data(this,s,new r(o,this))}),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"&lt;div&gt;",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&amp;&amp;(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&amp;&amp;this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var r,s,o,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},r=i.split("."),i=r.shift(),r.length){for(s=a[i]=t.widget.extend({},this.options[i]),o=0;o&lt;r.length-1;o++)s[r[o]]=s[r[o]]||{},s=s[r[o]];if(i=r.pop(),n===e)return s[i]===e?null:s[i];s[i]=n}else{if(n===e)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&amp;&amp;(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,i,n){var r,s=this;"boolean"!=typeof e&amp;&amp;(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,function(n,o){function a(){return e||s.options.disabled!==!0&amp;&amp;!t(this).hasClass("ui-state-disabled")?("string"==typeof o?s[o]:o).apply(s,arguments):void 0}"string"!=typeof o&amp;&amp;(a.guid=o.guid=o.guid||a.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+s.eventNamespace,h=l[2];h?r.delegate(h,u,a):i.bind(u,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var r,s,o=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(r in s)r in i||(i[r]=s[r]);return this.element.trigger(i,n),!(t.isFunction(o)&amp;&amp;o.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,r,s){"string"==typeof r&amp;&amp;(r={effect:r});var o,a=r?r===!0||"number"==typeof r?i:r.effect||i:e;r=r||{},"number"==typeof r&amp;&amp;(r={duration:r}),o=!t.isEmptyObject(r),r.complete=s,r.delay&amp;&amp;n.delay(r.delay),o&amp;&amp;t.effects&amp;&amp;t.effects.effect[a]?n[e](r):a!==e&amp;&amp;n[a]?n[a](r.duration,r.easing,s):n.queue(function(i){t(this)[e](),s&amp;&amp;s.call(n[0]),i()})}})}(n),function(t,e){var i=!1;t(document).mouseup(function(){i=!1}),t.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&amp;&amp;t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&amp;&amp;this._mouseUp(e),this._mouseDownEvent=e;var n=this,r=1===e.which,s="string"==typeof this.options.cancel&amp;&amp;e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return r&amp;&amp;!s&amp;&amp;this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&amp;&amp;this._mouseDelayMet(e)&amp;&amp;(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&amp;&amp;t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&amp;&amp;(!document.documentMode||document.documentMode&lt;9)&amp;&amp;!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&amp;&amp;this._mouseDelayMet(e)&amp;&amp;(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&amp;&amp;(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&amp;&amp;t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))&gt;=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(n),function(t,e){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&amp;&amp;this.element.addClass("ui-draggable"),this.options.disabled&amp;&amp;this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length&gt;0?!1:(this.handle=this._getHandle(e),this.handle?(t(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){t("&lt;div class='ui-draggable-iframeFix' style='background: #fff;'&gt;&lt;/div&gt;").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&amp;&amp;(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&amp;&amp;this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&amp;&amp;!i.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&amp;&amp;(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",e,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&amp;&amp;"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&amp;&amp;"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&amp;&amp;!this.options.dropBehaviour&amp;&amp;(n=t.ui.ddmanager.drop(this,e)),this.dropped&amp;&amp;(n=this.dropped,this.dropped=!1),"original"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&amp;&amp;!n||"valid"===this.options.revert&amp;&amp;n||this.options.revert===!0||t.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&amp;&amp;i._clear()}):this._trigger("stop",e)!==!1&amp;&amp;this._clear(),!1):!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&amp;&amp;(e=e.split(" ")),t.isArray(e)&amp;&amp;(e={left:+e[0],top:+e[1]||0}),"left"in e&amp;&amp;(this.offset.click.left=e.left+this.margins.left),"right"in e&amp;&amp;(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&amp;&amp;(this.offset.click.top=e.top+this.margins.top),"bottom"in e&amp;&amp;(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&amp;&amp;this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])&amp;&amp;(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&amp;&amp;"html"===this.offsetParent[0].tagName.toLowerCase()&amp;&amp;t.ui.ie)&amp;&amp;(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;return r.containment?"window"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&amp;&amp;(r.containment=this.helper[0].parentNode),i=t(r.containment),n=i[0],void(n&amp;&amp;(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,r,s,o=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,u=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&amp;&amp;(this.containment&amp;&amp;(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left&lt;i[0]&amp;&amp;(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top&lt;i[1]&amp;&amp;(u=i[1]+this.offset.click.top),e.pageX-this.offset.click.left&gt;i[2]&amp;&amp;(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top&gt;i[3]&amp;&amp;(u=i[3]+this.offset.click.top)),o.grid&amp;&amp;(r=o.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,u=i?r-this.offset.click.top&gt;=i[1]||r-this.offset.click.top&gt;i[3]?r:r-this.offset.click.top&gt;=i[1]?r-o.grid[1]:r+o.grid[1]:r,s=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?s-this.offset.click.left&gt;=i[0]||s-this.offset.click.left&gt;i[2]?s:s-this.offset.click.left&gt;=i[0]?s-o.grid[0]:s+o.grid[0]:s)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"===e&amp;&amp;(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var n=t(this).data("ui-draggable"),r=n.options,s=t.extend({},i,{item:n.element});n.sortables=[],t(r.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&amp;&amp;!i.options.disabled&amp;&amp;(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,s))})},stop:function(e,i){var n=t(this).data("ui-draggable"),r=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&amp;&amp;(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&amp;&amp;this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,r))})},drag:function(e,i){var n=t(this).data("ui-draggable"),r=this;t.each(n.sortables,function(){var s=!1,o=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&amp;&amp;(s=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==o&amp;&amp;this.instance._intersectsWith(this.instance.containerCache)&amp;&amp;t.contains(o.instance.element[0],this.instance.element[0])&amp;&amp;(s=!1),s})),s?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(r).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&amp;&amp;this.instance._mouseDrag(e)):this.instance.isOver&amp;&amp;(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&amp;&amp;this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&amp;&amp;(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&amp;&amp;t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),r=t(this).data("ui-draggable").options;n.css("opacity")&amp;&amp;(r._opacity=n.css("opacity")),n.css("opacity",r.opacity)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._opacity&amp;&amp;t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&amp;&amp;"HTML"!==e.scrollParent[0].tagName&amp;&amp;(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),n=i.options,r=!1;i.scrollParent[0]!==document&amp;&amp;"HTML"!==i.scrollParent[0].tagName?(n.axis&amp;&amp;"x"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY&lt;n.scrollSensitivity?i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top&lt;n.scrollSensitivity&amp;&amp;(i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&amp;&amp;"y"===n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX&lt;n.scrollSensitivity?i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left&lt;n.scrollSensitivity&amp;&amp;(i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&amp;&amp;"x"===n.axis||(e.pageY-t(document).scrollTop()&lt;n.scrollSensitivity?r=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())&lt;n.scrollSensitivity&amp;&amp;(r=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&amp;&amp;"y"===n.axis||(e.pageX-t(document).scrollLeft()&lt;n.scrollSensitivity?r=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())&lt;n.scrollSensitivity&amp;&amp;(r=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),r!==!1&amp;&amp;t.ui.ddmanager&amp;&amp;!n.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("ui-draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=t(this),n=i.offset();this!==e.element[0]&amp;&amp;e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(e,i){var n,r,s,o,a,l,u,h,c,p,d=t(this).data("ui-draggable"),f=d.options,g=f.snapTolerance,m=i.offset.left,_=m+d.helperProportions.width,v=i.offset.top,y=v+d.helperProportions.height;for(c=d.snapElements.length-1;c&gt;=0;c--)a=d.snapElements[c].left,l=a+d.snapElements[c].width,u=d.snapElements[c].top,h=u+d.snapElements[c].height,a-g&gt;_||m&gt;l+g||u-g&gt;y||v&gt;h+g||!t.contains(d.snapElements[c].item.ownerDocument,d.snapElements[c].item)?(d.snapElements[c].snapping&amp;&amp;d.options.snap.release&amp;&amp;d.options.snap.release.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[c].item})),d.snapElements[c].snapping=!1):("inner"!==f.snapMode&amp;&amp;(n=Math.abs(u-y)&lt;=g,r=Math.abs(h-v)&lt;=g,s=Math.abs(a-_)&lt;=g,o=Math.abs(l-m)&lt;=g,n&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:u-d.helperProportions.height,left:0}).top-d.margins.top),r&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:h,left:0}).top-d.margins.top),s&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:a-d.helperProportions.width}).left-d.margins.left),o&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:l}).left-d.margins.left)),p=n||r||s||o,"outer"!==f.snapMode&amp;&amp;(n=Math.abs(u-v)&lt;=g,r=Math.abs(h-y)&lt;=g,s=Math.abs(a-m)&lt;=g,o=Math.abs(l-_)&lt;=g,n&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:u,left:0}).top-d.margins.top),r&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:h-d.helperProportions.height,left:0}).top-d.margins.top),s&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:a}).left-d.margins.left),o&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:l-d.helperProportions.width}).left-d.margins.left)),!d.snapElements[c].snapping&amp;&amp;(n||r||s||o||p)&amp;&amp;d.options.snap.snap&amp;&amp;d.options.snap.snap.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[c].item})),d.snapElements[c].snapping=n||r||s||o||p)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,n=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});n.length&amp;&amp;(e=parseInt(t(n[0]).css("zIndex"),10)||0,t(n).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+n.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),r=t(this).data("ui-draggable").options;n.css("zIndex")&amp;&amp;(r._zIndex=n.css("zIndex")),n.css("zIndex",r.zIndex)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._zIndex&amp;&amp;t(i.helper).css("zIndex",n._zIndex)}})}(n),function(t,e){function i(t,e,i){return t&gt;e&amp;&amp;e+i&gt;t}t.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&amp;&amp;this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];e&lt;i.length;e++)i[e]===this&amp;&amp;i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&amp;&amp;(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&amp;&amp;this.element.addClass(this.options.activeClass),i&amp;&amp;this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&amp;&amp;this.element.removeClass(this.options.activeClass),i&amp;&amp;this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&amp;&amp;(i.currentItem||i.element)[0]!==this.element[0]&amp;&amp;this.accept.call(this.element[0],i.currentItem||i.element)&amp;&amp;(this.options.hoverClass&amp;&amp;this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&amp;&amp;(i.currentItem||i.element)[0]!==this.element[0]&amp;&amp;this.accept.call(this.element[0],i.currentItem||i.element)&amp;&amp;(this.options.hoverClass&amp;&amp;this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,r=!1;return n&amp;&amp;(n.currentItem||n.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"ui-droppable");return e.options.greedy&amp;&amp;!e.options.disabled&amp;&amp;e.options.scope===n.options.scope&amp;&amp;e.accept.call(e.element[0],n.currentItem||n.element)&amp;&amp;t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(r=!0,!1):void 0}),r?!1:this.accept.call(this.element[0],n.currentItem||n.element)?(this.options.activeClass&amp;&amp;this.element.removeClass(this.options.activeClass),this.options.hoverClass&amp;&amp;this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,e,n){if(!e.offset)return!1;var r,s,o=(t.positionAbs||t.position.absolute).left,a=o+t.helperProportions.width,l=(t.positionAbs||t.position.absolute).top,u=l+t.helperProportions.height,h=e.offset.left,c=h+e.proportions.width,p=e.offset.top,d=p+e.proportions.height;switch(n){case"fit":
        return o&gt;=h&amp;&amp;c&gt;=a&amp;&amp;l&gt;=p&amp;&amp;d&gt;=u;case"intersect":return h&lt;o+t.helperProportions.width/2&amp;&amp;a-t.helperProportions.width/2&lt;c&amp;&amp;p&lt;l+t.helperProportions.height/2&amp;&amp;u-t.helperProportions.height/2&lt;d;case"pointer":return r=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,s=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,i(s,p,e.proportions.height)&amp;&amp;i(r,h,e.proportions.width);case"touch":return(l&gt;=p&amp;&amp;d&gt;=l||u&gt;=p&amp;&amp;d&gt;=u||p&gt;l&amp;&amp;u&gt;d)&amp;&amp;(o&gt;=h&amp;&amp;c&gt;=o||a&gt;=h&amp;&amp;c&gt;=a||h&gt;o&amp;&amp;a&gt;c);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var n,r,s=t.ui.ddmanager.droppables[e.options.scope]||[],o=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n&lt;s.length;n++)if(!(s[n].options.disabled||e&amp;&amp;!s[n].accept.call(s[n].element[0],e.currentItem||e.element))){for(r=0;r&lt;a.length;r++)if(a[r]===s[n].element[0]){s[n].proportions.height=0;continue t}s[n].visible="none"!==s[n].element.css("display"),s[n].visible&amp;&amp;("mousedown"===o&amp;&amp;s[n]._activate.call(s[n],i),s[n].offset=s[n].element.offset(),s[n].proportions={width:s[n].element[0].offsetWidth,height:s[n].element[0].offsetHeight})}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&amp;&amp;(!this.options.disabled&amp;&amp;this.visible&amp;&amp;t.ui.intersect(e,this,this.options.tolerance)&amp;&amp;(n=this._drop.call(this,i)||n),!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.accept.call(this.element[0],e.currentItem||e.element)&amp;&amp;(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&amp;&amp;t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&amp;&amp;!this.greedyChild&amp;&amp;this.visible){var n,r,s,o=t.ui.intersect(e,this,this.options.tolerance),a=!o&amp;&amp;this.isover?"isout":o&amp;&amp;!this.isover?"isover":null;a&amp;&amp;(this.options.greedy&amp;&amp;(r=this.options.scope,s=this.element.parents(":data(ui-droppable)").filter(function(){return t.data(this,"ui-droppable").options.scope===r}),s.length&amp;&amp;(n=t.data(s[0],"ui-droppable"),n.greedyChild="isover"===a)),n&amp;&amp;"isover"===a&amp;&amp;(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&amp;&amp;"isout"===a&amp;&amp;(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(n),function(t,e){function i(t){return parseInt(t,10)||0}function n(t){return!isNaN(parseInt(t,10))}t.widget("ui.resizable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var e,i,n,r,s,o=this,a=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&amp;&amp;(this.element.wrap(t("&lt;div class='ui-wrapper' style='overflow: hidden;'&gt;&lt;/div&gt;").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&amp;&amp;(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;i&lt;e.length;i++)n=t.trim(e[i]),s="ui-resizable-"+n,r=t("&lt;div class='ui-resizable-handle "+s+"'&gt;&lt;/div&gt;"),r.css({zIndex:a.zIndex}),"se"===n&amp;&amp;r.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(r);this._renderAxis=function(e){var i,n,r,s;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String&amp;&amp;(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&amp;&amp;this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&amp;&amp;(n=t(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),r=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(r,s),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&amp;&amp;(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=r&amp;&amp;r[1]?r[1]:"se")}),a.autoHide&amp;&amp;(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){a.disabled||(t(this).removeClass("ui-resizable-autohide"),o._handles.show())}).mouseleave(function(){a.disabled||o.resizing||(t(this).addClass("ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&amp;&amp;(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,r=!1;for(i in this.handles)n=t(this.handles[i])[0],(n===e.target||t.contains(n,e.target))&amp;&amp;(r=!0);return!this.options.disabled&amp;&amp;r},_mouseStart:function(e){var n,r,s,o=this.options,a=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css("position"))?l.css({position:"absolute",top:l.css("top"),left:l.css("left")}):l.is(".ui-draggable")&amp;&amp;l.css({position:"absolute",top:a.top,left:a.left}),this._renderProxy(),n=i(this.helper.css("left")),r=i(this.helper.css("top")),o.containment&amp;&amp;(n+=t(o.containment).scrollLeft()||0,r+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:r},this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:n,top:r},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),l.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n=this.helper,r={},s=this.originalMousePosition,o=this.axis,a=this.position.top,l=this.position.left,u=this.size.width,h=this.size.height,c=e.pageX-s.left||0,p=e.pageY-s.top||0,d=this._change[o];return d?(i=d.apply(this,[e,c,p]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&amp;&amp;(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),this.position.top!==a&amp;&amp;(r.top=this.position.top+"px"),this.position.left!==l&amp;&amp;(r.left=this.position.left+"px"),this.size.width!==u&amp;&amp;(r.width=this.size.width+"px"),this.size.height!==h&amp;&amp;(r.height=this.size.height+"px"),n.css(r),!this._helper&amp;&amp;this._proportionallyResizeElements.length&amp;&amp;this._proportionallyResize(),t.isEmptyObject(r)||this._trigger("resize",e,this.ui()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,n,r,s,o,a,l,u=this.options,h=this;return this._helper&amp;&amp;(i=this._proportionallyResizeElements,n=i.length&amp;&amp;/textarea/i.test(i[0].nodeName),r=n&amp;&amp;t.ui.hasScroll(i[0],"left")?0:h.sizeDiff.height,s=n?0:h.sizeDiff.width,o={width:h.helper.width()-s,height:h.helper.height()-r},a=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||null,l=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null,u.animate||this.element.css(t.extend(o,{top:l,left:a})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&amp;&amp;!u.animate&amp;&amp;this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&amp;&amp;this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,i,r,s,o,a=this.options;o={minWidth:n(a.minWidth)?a.minWidth:0,maxWidth:n(a.maxWidth)?a.maxWidth:1/0,minHeight:n(a.minHeight)?a.minHeight:0,maxHeight:n(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&amp;&amp;(e=o.minHeight*this.aspectRatio,r=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,s=o.maxWidth/this.aspectRatio,e&gt;o.minWidth&amp;&amp;(o.minWidth=e),r&gt;o.minHeight&amp;&amp;(o.minHeight=r),i&lt;o.maxWidth&amp;&amp;(o.maxWidth=i),s&lt;o.maxHeight&amp;&amp;(o.maxHeight=s)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),n(t.left)&amp;&amp;(this.position.left=t.left),n(t.top)&amp;&amp;(this.position.top=t.top),n(t.height)&amp;&amp;(this.size.height=t.height),n(t.width)&amp;&amp;(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,r=this.axis;return n(t.height)?t.width=t.height*this.aspectRatio:n(t.width)&amp;&amp;(t.height=t.width/this.aspectRatio),"sw"===r&amp;&amp;(t.left=e.left+(i.width-t.width),t.top=null),"nw"===r&amp;&amp;(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,r=n(t.width)&amp;&amp;e.maxWidth&amp;&amp;e.maxWidth&lt;t.width,s=n(t.height)&amp;&amp;e.maxHeight&amp;&amp;e.maxHeight&lt;t.height,o=n(t.width)&amp;&amp;e.minWidth&amp;&amp;e.minWidth&gt;t.width,a=n(t.height)&amp;&amp;e.minHeight&amp;&amp;e.minHeight&gt;t.height,l=this.originalPosition.left+this.originalSize.width,u=this.position.top+this.size.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&amp;&amp;(t.width=e.minWidth),a&amp;&amp;(t.height=e.minHeight),r&amp;&amp;(t.width=e.maxWidth),s&amp;&amp;(t.height=e.maxHeight),o&amp;&amp;h&amp;&amp;(t.left=l-e.minWidth),r&amp;&amp;h&amp;&amp;(t.left=l-e.maxWidth),a&amp;&amp;c&amp;&amp;(t.top=u-e.minHeight),s&amp;&amp;c&amp;&amp;(t.top=u-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,n,r,s=this.helper||this.element;for(t=0;t&lt;this._proportionallyResizeElements.length;t++){if(r=this._proportionallyResizeElements[t],!this.borderDif)for(this.borderDif=[],i=[r.css("borderTopWidth"),r.css("borderRightWidth"),r.css("borderBottomWidth"),r.css("borderLeftWidth")],n=[r.css("paddingTop"),r.css("paddingRight"),r.css("paddingBottom"),r.css("paddingLeft")],e=0;e&lt;i.length;e++)this.borderDif[e]=(parseInt(i[e],10)||0)+(parseInt(n[e],10)||0);r.css({height:s.height()-this.borderDif[0]-this.borderDif[2]||0,width:s.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("&lt;div style='overflow:hidden;'&gt;&lt;/div&gt;"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,n=this.originalPosition;return{left:n.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize,r=this.originalPosition;return{top:r.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&amp;&amp;this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("ui-resizable"),n=i.options,r=i._proportionallyResizeElements,s=r.length&amp;&amp;/textarea/i.test(r[0].nodeName),o=s&amp;&amp;t.ui.hasScroll(r[0],"left")?0:i.sizeDiff.height,a=s?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-o},u=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,h&amp;&amp;u?{top:h,left:u}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};r&amp;&amp;r.length&amp;&amp;t(r[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,r,s,o,a,l,u=t(this).data("ui-resizable"),h=u.options,c=u.element,p=h.containment,d=p instanceof t?p.get(0):/parent/.test(p)?c.parent().get(0):p;d&amp;&amp;(u.containerElement=t(d),/document/.test(p)||p===document?(u.containerOffset={left:0,top:0},u.containerPosition={left:0,top:0},u.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),n=[],t(["Top","Right","Left","Bottom"]).each(function(t,r){n[t]=i(e.css("padding"+r))}),u.containerOffset=e.offset(),u.containerPosition=e.position(),u.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},r=u.containerOffset,s=u.containerSize.height,o=u.containerSize.width,a=t.ui.hasScroll(d,"left")?d.scrollWidth:o,l=t.ui.hasScroll(d)?d.scrollHeight:s,u.parentData={element:d,left:r.left,top:r.top,width:a,height:l}))},resize:function(e){var i,n,r,s,o=t(this).data("ui-resizable"),a=o.options,l=o.containerOffset,u=o.position,h=o._aspectRatio||e.shiftKey,c={top:0,left:0},p=o.containerElement;p[0]!==document&amp;&amp;/static/.test(p.css("position"))&amp;&amp;(c=l),u.left&lt;(o._helper?l.left:0)&amp;&amp;(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-c.left),h&amp;&amp;(o.size.height=o.size.width/o.aspectRatio),o.position.left=a.helper?l.left:0),u.top&lt;(o._helper?l.top:0)&amp;&amp;(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),h&amp;&amp;(o.size.width=o.size.height*o.aspectRatio),o.position.top=o._helper?l.top:0),o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top,i=Math.abs((o._helper?o.offset.left-c.left:o.offset.left-c.left)+o.sizeDiff.width),n=Math.abs((o._helper?o.offset.top-c.top:o.offset.top-l.top)+o.sizeDiff.height),r=o.containerElement.get(0)===o.element.parent().get(0),s=/relative|absolute/.test(o.containerElement.css("position")),r&amp;&amp;s&amp;&amp;(i-=o.parentData.left),i+o.size.width&gt;=o.parentData.width&amp;&amp;(o.size.width=o.parentData.width-i,h&amp;&amp;(o.size.height=o.size.width/o.aspectRatio)),n+o.size.height&gt;=o.parentData.height&amp;&amp;(o.size.height=o.parentData.height-n,h&amp;&amp;(o.size.width=o.size.height*o.aspectRatio))},stop:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.containerOffset,r=e.containerPosition,s=e.containerElement,o=t(e.helper),a=o.offset(),l=o.outerWidth()-e.sizeDiff.width,u=o.outerHeight()-e.sizeDiff.height;e._helper&amp;&amp;!i.animate&amp;&amp;/relative/.test(s.css("position"))&amp;&amp;t(this).css({left:a.left-r.left-n.left,width:l,height:u}),e._helper&amp;&amp;!i.animate&amp;&amp;/static/.test(s.css("position"))&amp;&amp;t(this).css({left:a.left-r.left-n.left,width:l,height:u})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,n=function(e){t(e).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?n(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],n(i.alsoResize)):t.each(i.alsoResize,function(t){n(t)})},resize:function(e,i){var n=t(this).data("ui-resizable"),r=n.options,s=n.originalSize,o=n.originalPosition,a={height:n.size.height-s.height||0,width:n.size.width-s.width||0,top:n.position.top-o.top||0,left:n.position.left-o.left||0},l=function(e,n){t(e).each(function(){var e=t(this),r=t(this).data("ui-resizable-alsoresize"),s={},o=n&amp;&amp;n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(r[e]||0)+(a[e]||0);i&amp;&amp;i&gt;=0&amp;&amp;(s[e]=i||null)}),e.css(s)})};"object"!=typeof r.alsoResize||r.alsoResize.nodeType?l(r.alsoResize):t.each(r.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("ui-resizable");e.ghost&amp;&amp;e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("ui-resizable");e.ghost&amp;&amp;e.helper&amp;&amp;e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size,r=e.originalSize,s=e.originalPosition,o=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,u=a[1]||1,h=Math.round((n.width-r.width)/l)*l,c=Math.round((n.height-r.height)/u)*u,p=r.width+h,d=r.height+c,f=i.maxWidth&amp;&amp;i.maxWidth&lt;p,g=i.maxHeight&amp;&amp;i.maxHeight&lt;d,m=i.minWidth&amp;&amp;i.minWidth&gt;p,_=i.minHeight&amp;&amp;i.minHeight&gt;d;i.grid=a,m&amp;&amp;(p+=l),_&amp;&amp;(d+=u),f&amp;&amp;(p-=l),g&amp;&amp;(d-=u),/^(se|s|e)$/.test(o)?(e.size.width=p,e.size.height=d):/^(ne)$/.test(o)?(e.size.width=p,e.size.height=d,e.position.top=s.top-c):/^(sw)$/.test(o)?(e.size.width=p,e.size.height=d,e.position.left=s.left-h):(e.size.width=p,e.size.height=d,e.position.top=s.top-c,e.position.left=s.left-h)}})}(n),function(t,e){t.widget("ui.selectable",t.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e=t(i.options.filter,i.element[0]),e.addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("&lt;div class='ui-selectable-helper'&gt;&lt;/div&gt;")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&amp;&amp;this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,r=t.data(this,"selectable-item");return r?(n=!e.metaKey&amp;&amp;!e.ctrlKey||!r.$element.hasClass("ui-selected"),r.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),r.unselecting=!n,r.selecting=n,r.selected=n,n?i._trigger("selecting",e,{selecting:r.element}):i._trigger("unselecting",e,{unselecting:r.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,r=this.options,s=this.opos[0],o=this.opos[1],a=e.pageX,l=e.pageY;return s&gt;a&amp;&amp;(i=a,a=s,s=i),o&gt;l&amp;&amp;(i=l,l=o,o=i),this.helper.css({left:s,top:o,width:a-s,height:l-o}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),u=!1;i&amp;&amp;i.element!==n.element[0]&amp;&amp;("touch"===r.tolerance?u=!(i.left&gt;a||i.right&lt;s||i.top&gt;l||i.bottom&lt;o):"fit"===r.tolerance&amp;&amp;(u=i.left&gt;s&amp;&amp;i.right&lt;a&amp;&amp;i.top&gt;o&amp;&amp;i.bottom&lt;l),u?(i.selected&amp;&amp;(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&amp;&amp;(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&amp;&amp;((e.metaKey||e.ctrlKey)&amp;&amp;i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&amp;&amp;(i.$element.addClass("ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&amp;&amp;(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}})}(n),function(t,e){function i(t,e,i){return t&gt;e&amp;&amp;e+i&gt;t}function n(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"&gt; *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||n(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t&gt;=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,r=!1,s=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,s.widgetName+"-item")===s?(n=t(this),!1):void 0}),t.data(e.target,s.widgetName+"-item")===s&amp;&amp;(n=t(e.target)),n&amp;&amp;(!this.options.handle||i||(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&amp;&amp;(r=!0)}),r))?(this.currentItem=n,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,i,n){var r,s,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&amp;&amp;this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&amp;&amp;this.currentItem.hide(),this._createPlaceholder(),o.containment&amp;&amp;this._setContainment(),o.cursor&amp;&amp;"auto"!==o.cursor&amp;&amp;(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",o.cursor),this.storedStylesheet=t("&lt;style&gt;*{ cursor: "+o.cursor+" !important; }&lt;/style&gt;").appendTo(s)),o.opacity&amp;&amp;(this.helper.css("opacity")&amp;&amp;(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&amp;&amp;(this.helper.css("zIndex")&amp;&amp;(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==document&amp;&amp;"HTML"!==this.scrollParent[0].tagName&amp;&amp;(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r&gt;=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&amp;&amp;(t.ui.ddmanager.current=this),t.ui.ddmanager&amp;&amp;!o.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,s,o=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&amp;&amp;(this.scrollParent[0]!==document&amp;&amp;"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY&lt;o.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top&lt;o.scrollSensitivity&amp;&amp;(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX&lt;o.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left&lt;o.scrollSensitivity&amp;&amp;(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-t(document).scrollTop()&lt;o.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())&lt;o.scrollSensitivity&amp;&amp;(a=t(document).scrollTop(t(document).scrollTop()+o.scrollSpeed)),e.pageX-t(document).scrollLeft()&lt;o.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())&lt;o.scrollSensitivity&amp;&amp;(a=t(document).scrollLeft(t(document).scrollLeft()+o.scrollSpeed))),a!==!1&amp;&amp;t.ui.ddmanager&amp;&amp;!o.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&amp;&amp;"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&amp;&amp;"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i&gt;=0;i--)if(n=this.items[i],r=n.item[0],s=this._intersectsWithPointer(n),s&amp;&amp;n.instance===this.currentContainer&amp;&amp;r!==this.currentItem[0]&amp;&amp;this.placeholder[1===s?"next":"prev"]()[0]!==r&amp;&amp;!t.contains(this.placeholder[0],r)&amp;&amp;("semi-dynamic"===this.options.type?!t.contains(this.element[0],r):!0)){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&amp;&amp;!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&amp;&amp;!this.options.dropBehaviour&amp;&amp;t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),s=this.options.axis,o={};s&amp;&amp;"x"!==s||(o.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),s&amp;&amp;"y"!==s||(o.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e&gt;=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&amp;&amp;(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&amp;&amp;(this.placeholder[0].parentNode&amp;&amp;this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&amp;&amp;this.helper&amp;&amp;this.helper[0].parentNode&amp;&amp;this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&amp;&amp;e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&amp;&amp;n.push((e.key||i[1]+"[]")+"="+(e.key&amp;&amp;e.expression?i[1]:i[2]))}),!n.length&amp;&amp;e.key&amp;&amp;n.push(e.key+"="),n.join("&amp;")},toArray:function(e){var i=this._getItemsAsjQuery(e&amp;&amp;e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,s=t.left,o=s+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,h=this.offset.click.left,c="x"===this.options.axis||n+u&gt;a&amp;&amp;l&gt;n+u,p="y"===this.options.axis||e+h&gt;s&amp;&amp;o&gt;e+h,d=c&amp;&amp;p;
        return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&amp;&amp;this.helperProportions[this.floating?"width":"height"]&gt;t[this.floating?"width":"height"]?d:s&lt;e+this.helperProportions.width/2&amp;&amp;i-this.helperProportions.width/2&lt;o&amp;&amp;a&lt;n+this.helperProportions.height/2&amp;&amp;r-this.helperProportions.height/2&lt;l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||i(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||i(this.positionAbs.left+this.offset.click.left,t.left,t.width),r=e&amp;&amp;n,s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return r?this.floating?o&amp;&amp;"right"===o||"down"===s?2:1:s&amp;&amp;("down"===s?2:1):!1},_intersectsWithSides:function(t){var e=i(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=i(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),r=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&amp;&amp;s?"right"===s&amp;&amp;n||"left"===s&amp;&amp;!n:r&amp;&amp;("down"===r&amp;&amp;e||"up"===r&amp;&amp;!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&amp;&amp;(t&gt;0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&amp;&amp;(t&gt;0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,r,s,o=[],a=[],l=this._connectWith();if(l&amp;&amp;e)for(i=l.length-1;i&gt;=0;i--)for(r=t(l[i]),n=r.length-1;n&gt;=0;n--)s=t.data(r[n],this.widgetFullName),s&amp;&amp;s!==this&amp;&amp;!s.options.disabled&amp;&amp;a.push([t.isFunction(s.options.items)?s.options.items.call(s.element):t(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);for(a.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i&gt;=0;i--)a[i][0].each(function(){o.push(this)});return t(o)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i&lt;e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,s,o,a,l,u,h=this.items,c=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],p=this._connectWith();if(p&amp;&amp;this.ready)for(i=p.length-1;i&gt;=0;i--)for(r=t(p[i]),n=r.length-1;n&gt;=0;n--)s=t.data(r[n],this.widgetFullName),s&amp;&amp;s!==this&amp;&amp;!s.options.disabled&amp;&amp;(c.push([t.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=c.length-1;i&gt;=0;i--)for(o=c[i][1],a=c[i][0],n=0,u=a.length;u&gt;n;n++)l=t(a[n]),l.data(this.widgetName+"-item",o),h.push({item:l,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&amp;&amp;this.helper&amp;&amp;(this.offset.parent=this._getParentOffset());var i,n,r,s;for(i=this.items.length-1;i&gt;=0;i--)n=this.items[i],n.instance!==this.currentContainer&amp;&amp;this.currentContainer&amp;&amp;n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),s=r.offset(),n.left=s.left,n.top=s.top);if(this.options.custom&amp;&amp;this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i&gt;=0;i--)s=this.containers[i].element.offset(),this.containers[i].containerCache.left=s.left,this.containers[i].containerCache.top=s.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&amp;&amp;n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),r=t("&lt;"+n+"&gt;",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each(function(){t("&lt;td&gt;&amp;#160;&lt;/td&gt;",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(r)}):"img"===n&amp;&amp;r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,r){(!i||n.forcePlaceholderSize)&amp;&amp;(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var r,s,o,a,l,u,h,c,p,d,f=null,g=null;for(r=this.containers.length-1;r&gt;=0;r--)if(!t.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(f&amp;&amp;t.contains(this.containers[r].element[0],f.element[0]))continue;f=this.containers[r],g=r}else this.containers[r].containerCache.over&amp;&amp;(this.containers[r]._trigger("out",e,this._uiHash(this)),this.containers[r].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",e,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(o=1e4,a=null,d=f.floating||n(this.currentItem),l=d?"left":"top",u=d?"width":"height",h=this.positionAbs[l]+this.offset.click[l],s=this.items.length-1;s&gt;=0;s--)t.contains(this.containers[g].element[0],this.items[s].item[0])&amp;&amp;this.items[s].item[0]!==this.currentItem[0]&amp;&amp;(!d||i(this.positionAbs.top+this.offset.click.top,this.items[s].top,this.items[s].height))&amp;&amp;(c=this.items[s].item.offset()[l],p=!1,Math.abs(c-h)&gt;Math.abs(c+this.items[s][u]-h)&amp;&amp;(p=!0,c+=this.items[s][u]),Math.abs(c-h)&lt;o&amp;&amp;(o=Math.abs(c-h),a=this.items[s],this.direction=p?"up":"down"));if(!a&amp;&amp;!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[g].element,!0),this._trigger("change",e,this._uiHash()),this.containers[g]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",e,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&amp;&amp;(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&amp;&amp;n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&amp;&amp;n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&amp;&amp;(e=e.split(" ")),t.isArray(e)&amp;&amp;(e={left:+e[0],top:+e[1]||0}),"left"in e&amp;&amp;(this.offset.click.left=e.left+this.margins.left),"right"in e&amp;&amp;(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&amp;&amp;(this.offset.click.top=e.top+this.margins.top),"bottom"in e&amp;&amp;(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&amp;&amp;this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])&amp;&amp;(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&amp;&amp;"html"===this.offsetParent[0].tagName.toLowerCase()&amp;&amp;t.ui.ie)&amp;&amp;(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;"parent"===r.containment&amp;&amp;(r.containment=this.helper[0].parentNode),("document"===r.containment||"window"===r.containment)&amp;&amp;(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===r.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===r.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=this.options,s=e.pageX,o=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&amp;&amp;(this.containment&amp;&amp;(e.pageX-this.offset.click.left&lt;this.containment[0]&amp;&amp;(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top&lt;this.containment[1]&amp;&amp;(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left&gt;this.containment[2]&amp;&amp;(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top&gt;this.containment[3]&amp;&amp;(o=this.containment[3]+this.offset.click.top)),r.grid&amp;&amp;(i=this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1],o=this.containment?i-this.offset.click.top&gt;=this.containment[1]&amp;&amp;i-this.offset.click.top&lt;=this.containment[3]?i:i-this.offset.click.top&gt;=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/r.grid[0])*r.grid[0],s=this.containment?n-this.offset.click.left&gt;=this.containment[0]&amp;&amp;n-this.offset.click.left&lt;=this.containment[2]?n:n-this.offset.click.left&gt;=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&amp;&amp;this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&amp;&amp;this.currentItem.parent().length&amp;&amp;this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&amp;&amp;(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&amp;&amp;!e&amp;&amp;n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&amp;&amp;this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&amp;&amp;this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&amp;&amp;(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i&gt;=0;i--)e||n.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&amp;&amp;(n.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&amp;&amp;(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&amp;&amp;this.helper.css("opacity",this._storedOpacity),this._storedZIndex&amp;&amp;this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;i&lt;n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&amp;&amp;this.helper.remove(),this.helper=null,!e){for(i=0;i&lt;n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&amp;&amp;this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(n),function(t,e){var i="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var n=c[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0&gt;t?0:n.max&lt;t?n.max:t)}function n(e){var i=u(),n=i._rgba=[];return e=e.toLowerCase(),f(l,function(t,r){var s,o=r.re.exec(e),a=o&amp;&amp;r.parse(o),l=r.space||"rgba";return a?(s=i[l](a),i[h[l].cache]=s[h[l].cache],n=i._rgba=s._rgba,!1):void 0}),n.length?("0,0,0,0"===n.join()&amp;&amp;t.extend(n,s.transparent),i):s[e]}function r(t,e,i){return i=(i+1)%1,1&gt;6*i?t+(e-t)*i*6:1&gt;2*i?e:2&gt;3*i?t+(e-t)*(2/3-i)*6:t}var s,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",a=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],u=t.Color=function(e,i,n,r){return new t.Color.fn.parse(e,i,n,r)},h={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},p=u.support={},d=t("&lt;p&gt;")[0],f=t.each;d.style.cssText="background-color:rgba(1,1,1,.5)",p.rgba=d.style.backgroundColor.indexOf("rgba")&gt;-1,f(h,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),u.fn=t.extend(u.prototype,{parse:function(r,o,a,l){if(r===e)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&amp;&amp;(r=t(r).css(o),o=e);var c=this,p=t.type(r),d=this._rgba=[];return o!==e&amp;&amp;(r=[r,o,a,l],p="array"),"string"===p?this.parse(n(r)||s._default):"array"===p?(f(h.rgba.props,function(t,e){d[e.idx]=i(r[e.idx],e)}),this):"object"===p?(r instanceof u?f(h,function(t,e){r[e.cache]&amp;&amp;(c[e.cache]=r[e.cache].slice())}):f(h,function(e,n){var s=n.cache;f(n.props,function(t,e){if(!c[s]&amp;&amp;n.to){if("alpha"===t||null==r[t])return;c[s]=n.to(c._rgba)}c[s][e.idx]=i(r[t],e,!0)}),c[s]&amp;&amp;t.inArray(null,c[s].slice(0,3))&lt;0&amp;&amp;(c[s][3]=1,n.from&amp;&amp;(c._rgba=n.from(c[s])))}),this):void 0},is:function(t){var e=u(t),i=!0,n=this;return f(h,function(t,r){var s,o=e[r.cache];return o&amp;&amp;(s=n[r.cache]||r.to&amp;&amp;r.to(n._rgba)||[],f(r.props,function(t,e){return null!=o[e.idx]?i=o[e.idx]===s[e.idx]:void 0})),i}),i},_space:function(){var t=[],e=this;return f(h,function(i,n){e[n.cache]&amp;&amp;t.push(i)}),t.pop()},transition:function(t,e){var n=u(t),r=n._space(),s=h[r],o=0===this.alpha()?u("transparent"):this,a=o[s.cache]||s.to(o._rgba),l=a.slice();return n=n[s.cache],f(s.props,function(t,r){var s=r.idx,o=a[s],u=n[s],h=c[r.type]||{};null!==u&amp;&amp;(null===o?l[s]=u:(h.mod&amp;&amp;(u-o&gt;h.mod/2?o+=h.mod:o-u&gt;h.mod/2&amp;&amp;(o-=h.mod)),l[s]=i((u-o)*e+o,r)))}),this[r](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),r=u(e)._rgba;return u(t.map(i,function(t,e){return(1-n)*r[e]+n*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e&gt;2?1:0:t});return 1===i[3]&amp;&amp;(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&amp;&amp;(t=e&gt;2?1:0),e&amp;&amp;3&gt;e&amp;&amp;(t=Math.round(100*t)+"%"),t});return 1===i[3]&amp;&amp;(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&amp;&amp;i.push(~~(255*n)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,h.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,r=t[1]/255,s=t[2]/255,o=t[3],a=Math.max(n,r,s),l=Math.min(n,r,s),u=a-l,h=a+l,c=.5*h;return e=l===a?0:n===a?60*(r-s)/u+360:r===a?60*(s-n)/u+120:60*(n-r)/u+240,i=0===u?0:.5&gt;=c?u/h:u/(2-h),[Math.round(e)%360,i,c,null==o?1:o]},h.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],s=t[3],o=.5&gt;=n?n*(1+i):n+i-n*i,a=2*n-o;return[Math.round(255*r(a,o,e+1/3)),Math.round(255*r(a,o,e)),Math.round(255*r(a,o,e-1/3)),s]},f(h,function(n,r){var s=r.props,o=r.cache,l=r.to,h=r.from;u.fn[n]=function(n){if(l&amp;&amp;!this[o]&amp;&amp;(this[o]=l(this._rgba)),n===e)return this[o].slice();var r,a=t.type(n),c="array"===a||"object"===a?n:arguments,p=this[o].slice();return f(s,function(t,e){var n=c["object"===a?t:e.idx];null==n&amp;&amp;(n=p[e.idx]),p[e.idx]=i(n,e)}),h?(r=u(h(p)),r[o]=p,r):u(p)},f(s,function(e,i){u.fn[e]||(u.fn[e]=function(r){var s,o=t.type(r),l="alpha"===e?this._hsla?"hsla":"rgba":n,u=this[l](),h=u[i.idx];return"undefined"===o?h:("function"===o&amp;&amp;(r=r.call(this,h),o=t.type(r)),null==r&amp;&amp;i.empty?this:("string"===o&amp;&amp;(s=a.exec(r),s&amp;&amp;(r=h+parseFloat(s[2])*("+"===s[1]?1:-1))),u[i.idx]=r,this[l](u)))})})}),u.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,r){var s,o,a="";if("transparent"!==r&amp;&amp;("string"!==t.type(r)||(s=n(r)))){if(r=u(s||r),!p.rgba&amp;&amp;1!==r._rgba[3]){for(o="backgroundColor"===i?e.parentNode:e;(""===a||"transparent"===a)&amp;&amp;o&amp;&amp;o.style;)try{a=t.css(o,"backgroundColor"),o=o.parentNode}catch(l){}r=r.blend(a&amp;&amp;"transparent"!==a?a:"_default")}r=r.toRgbaString()}try{e.style[i]=r}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=u(e.elem,i),e.end=u(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},u.hook(o),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},s=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(n),function(){function i(e){var i,n,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,s={};if(r&amp;&amp;r.length&amp;&amp;r[0]&amp;&amp;r[r[0]])for(n=r.length;n--;)i=r[n],"string"==typeof r[i]&amp;&amp;(s[t.camelCase(i)]=r[i]);else for(i in r)"string"==typeof r[i]&amp;&amp;(s[i]=r[i]);return s}function r(e,i){var n,r,s={};for(n in i)r=i[n],e[n]!==r&amp;&amp;(o[n]||(t.fx.step[n]||!isNaN(parseFloat(r)))&amp;&amp;(s[n]=r));return s}var s=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&amp;&amp;!t.setAttr||1===t.pos&amp;&amp;!t.setAttr)&amp;&amp;(n.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,n,o,a){var l=t.speed(n,o,a);return this.queue(function(){var n,o=t(this),a=o.attr("class")||"",u=l.children?o.find("*").addBack():o;u=u.map(function(){var e=t(this);return{el:e,start:i(this)}}),n=function(){t.each(s,function(t,i){e[i]&amp;&amp;o[i+"Class"](e[i])})},n(),u=u.map(function(){return this.end=i(this.el[0]),this.diff=r(this.start,this.end),this}),o.attr("class",a),u=u.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,u.get()).done(function(){n(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(o[0])})})},t.fn.extend({addClass:function(e){return function(i,n,r,s){return n?t.effects.animateClass.call(this,{add:i},n,r,s):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,r,s){return arguments.length&gt;1?t.effects.animateClass.call(this,{remove:i},n,r,s):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(i){return function(n,r,s,o,a){return"boolean"==typeof r||r===e?s?t.effects.animateClass.call(this,r?{add:n}:{remove:n},s,o,a):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},r,s,o)}}(t.fn.toggleClass),switchClass:function(e,i,n,r,s){return t.effects.animateClass.call(this,{add:i,remove:e},n,r,s)}})}(),function(){function n(e,i,n,r){return t.isPlainObject(e)&amp;&amp;(i=e,e=e.effect),e={effect:e},null==i&amp;&amp;(i={}),t.isFunction(i)&amp;&amp;(r=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&amp;&amp;(r=n,n=i,i={}),t.isFunction(n)&amp;&amp;(r=n,n=null),i&amp;&amp;t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=r||i.complete,e}function r(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}t.extend(t.effects,{version:"1.10.3",save:function(t,e){for(var n=0;n&lt;e.length;n++)null!==e[n]&amp;&amp;t.data(i+e[n],t[0].style[e[n]])},restore:function(t,n){var r,s;for(s=0;s&lt;n.length;s++)null!==n[s]&amp;&amp;(r=t.data(i+n[s]),r===e&amp;&amp;(r=""),t.css(n[s],r))},setMode:function(t,e){return"toggle"===e&amp;&amp;(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},n=t("&lt;div&gt;&lt;/div&gt;").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:e.width(),height:e.height()},s=document.activeElement;try{s.id}catch(o){s=document.body}return e.wrap(n),(e[0]===s||t.contains(e[0],s))&amp;&amp;t(s).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&amp;&amp;(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(r),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&amp;&amp;(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&amp;&amp;t(i).focus()),e},setTransition:function(e,i,n,r){return r=r||{},t.each(i,function(t,i){var s=e.cssUnit(i);s[0]&gt;0&amp;&amp;(r[i]=s[0]*n+s[1])}),r}}),t.fn.extend({effect:function(){function e(e){function n(){t.isFunction(s)&amp;&amp;s.call(r[0]),t.isFunction(e)&amp;&amp;e()}var r=t(this),s=i.complete,a=i.mode;(r.is(":hidden")?"hide"===a:"show"===a)?(r[a](),n()):o.call(r[0],i,n)}var i=n.apply(this,arguments),r=i.mode,s=i.queue,o=t.effects.effect[i.effect];return t.fx.off||!o?r?this[r](i.duration,i.complete):this.each(function(){i.complete&amp;&amp;i.complete.call(this)}):s===!1?this.each(e):this.queue(s||"fx",e)},show:function(t){return function(e){if(r(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(r(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(r(e)||"boolean"==typeof e)return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)&gt;0&amp;&amp;(n=[parseFloat(i),e])}),n}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t&lt;((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5&gt;t?i(2*t)/2:1-i(-2*t+2)/2}})}()}(n),function(t,e){var i=0,n={},r={};n.height=n.paddingTop=n.paddingBottom=n.borderTopWidth=n.borderBottomWidth="hide",r.height=r.paddingTop=r.paddingBottom=r.borderTopWidth=r.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"&gt; li &gt; :first-child,&gt; :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&amp;&amp;null!=e.active||(e.active=0),this._processPanels(),e.active&lt;0&amp;&amp;(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t(),content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&amp;&amp;(t("&lt;span&gt;").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&amp;&amp;this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&amp;&amp;this.removeAttribute("id")}),"content"!==this.options.heightStyle&amp;&amp;t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&amp;&amp;(this.options.event&amp;&amp;this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&amp;&amp;(this._destroyIcons(),e&amp;&amp;this._createIcons()),void("disabled"===t&amp;&amp;this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)))},_keydown:function(e){if(!e.altKey&amp;&amp;!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,r=this.headers.index(e.target),s=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:s=this.headers[(r+1)%n];break;case i.LEFT:case i.UP:s=this.headers[(r-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:s=this.headers[0];break;case i.END:s=this.headers[n-1]}s&amp;&amp;(t(e.target).attr("tabIndex",-1),t(s).attr("tabIndex",0),s.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&amp;&amp;e.ctrlKey&amp;&amp;t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&amp;&amp;e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&amp;&amp;!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),
        this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var e,n=this.options,r=n.heightStyle,s=this.element.parent(),o=this.accordionId="ui-accordion-"+(this.element.attr("id")||++i);this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(e){var i=t(this),n=i.attr("id"),r=i.next(),s=r.attr("id");n||(n=o+"-header-"+e,i.attr("id",n)),s||(s=o+"-panel-"+e,r.attr("id",s)),i.attr("aria-controls",s),r.attr("aria-labelledby",n)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===r?(e=s.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.css("position");"absolute"!==n&amp;&amp;"fixed"!==n&amp;&amp;(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===r&amp;&amp;(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&amp;&amp;(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&amp;&amp;t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),s=r[0]===n[0],o=s&amp;&amp;i.collapsible,a=o?t():r.next(),l=n.next(),u={oldHeader:n,oldPanel:l,newHeader:o?t():r,newPanel:a};e.preventDefault(),s&amp;&amp;!i.collapsible||this._trigger("beforeActivate",e,u)===!1||(i.active=o?!1:this.headers.index(r),this.active=s?t():r,this._toggle(u),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&amp;&amp;n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),s||(r.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&amp;&amp;r.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),r.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-expanded":"false","aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&amp;&amp;n.length?n.prev().attr("tabIndex",-1):i.length&amp;&amp;this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,i){var s,o,a,l=this,u=0,h=t.length&amp;&amp;(!e.length||t.index()&lt;e.index()),c=this.options.animate||{},p=h&amp;&amp;c.down||c,d=function(){l._toggleComplete(i)};return"number"==typeof p&amp;&amp;(a=p),"string"==typeof p&amp;&amp;(o=p),o=o||p.easing||c.easing,a=a||p.duration||c.duration,e.length?t.length?(s=t.show().outerHeight(),e.animate(n,{duration:a,easing:o,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(r,{duration:a,easing:o,complete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?u+=i.now:"content"!==l.options.heightStyle&amp;&amp;(i.now=Math.round(s-e.outerHeight()-u),u=0)}})):e.animate(n,a,o,d):t.animate(r,a,o,d)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&amp;&amp;(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}})}(n),function(t,e){var i=0;t.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"&lt;input&gt;",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,n,r=this.element[0].nodeName.toLowerCase(),s="textarea"===r,o="input"===r;this.isMultiLine=s?!0:o?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[s||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var s=t.ui.keyCode;switch(r.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",r);break;case s.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case s.UP:e=!0,this._keyEvent("previous",r);break;case s.DOWN:e=!0,this._keyEvent("next",r);break;case s.ENTER:case s.NUMPAD_ENTER:this.menu.active&amp;&amp;(e=!0,r.preventDefault(),this.menu.select(r));break;case s.TAB:this.menu.active&amp;&amp;this.menu.select(r);break;case s.ESCAPE:this.menu.element.is(":visible")&amp;&amp;(this._value(this.term),this.close(r),r.preventDefault());break;default:i=!0,this._searchTimeout(r)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&amp;&amp;n.preventDefault());if(!i){var r=t.ui.keyCode;switch(n.keyCode){case r.PAGE_UP:this._move("previousPage",n);break;case r.PAGE_DOWN:this._move("nextPage",n);break;case r.UP:this._keyEvent("previous",n);break;case r.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("&lt;ul&gt;").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&amp;&amp;(this.isNewMenu=!1,e.originalEvent&amp;&amp;/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});var n=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:n})?e.originalEvent&amp;&amp;/^key/.test(e.originalEvent.type)&amp;&amp;this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&amp;&amp;(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&amp;&amp;this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("&lt;span&gt;",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&amp;&amp;this._initSource(),"appendTo"===t&amp;&amp;this.menu.element.appendTo(this._appendTo()),"disabled"===t&amp;&amp;e&amp;&amp;this.xhr&amp;&amp;this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&amp;&amp;(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,r){n.xhr&amp;&amp;n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&amp;&amp;(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length&lt;this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=this,e=++i;return function(n){e===i&amp;&amp;t.__response(n),t.pending--,t.pending||t.element.removeClass("ui-autocomplete-loading")}},__response:function(t){t&amp;&amp;(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&amp;&amp;t&amp;&amp;t.length&amp;&amp;!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&amp;&amp;(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&amp;&amp;this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&amp;&amp;e[0].label&amp;&amp;e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&amp;&amp;this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("&lt;li&gt;").append(t("&lt;a&gt;").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&amp;&amp;/^previous/.test(t)||this.menu.isLastItem()&amp;&amp;/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&amp;&amp;(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&amp;")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t&gt;1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&amp;&amp;t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(n),function(t,e){var i,n,r,s,o="ui-button ui-widget ui-state-default ui-corner-all",a="ui-state-hover ui-state-active ",l="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",u=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},h=function(e){var i=e.name,n=e.form,r=t([]);return i&amp;&amp;(i=i.replace(/'/g,"\\'"),r=n?t(n).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),r};t.widget("ui.button",{version:"1.10.3",defaultElement:"&lt;button&gt;",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,u),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,a=this.options,l="checkbox"===this.type||"radio"===this.type,c=l?"":"ui-state-active",p="ui-state-focus";null===a.label&amp;&amp;(a.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(o).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){a.disabled||this===i&amp;&amp;t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){a.disabled||t(this).removeClass(c)}).bind("click"+this.eventNamespace,function(t){a.disabled&amp;&amp;(t.preventDefault(),t.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){e.buttonElement.addClass(p)}).bind("blur"+this.eventNamespace,function(){e.buttonElement.removeClass(p)}),l&amp;&amp;(this.element.bind("change"+this.eventNamespace,function(){s||e.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(t){a.disabled||(s=!1,n=t.pageX,r=t.pageY)}).bind("mouseup"+this.eventNamespace,function(t){a.disabled||(n!==t.pageX||r!==t.pageY)&amp;&amp;(s=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return a.disabled||s?!1:void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(a.disabled||s)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var i=e.element[0];h(i).not(i).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return a.disabled?!1:(t(this).addClass("ui-state-active"),i=this,void e.document.one("mouseup",function(){i=null}))}).bind("mouseup"+this.eventNamespace,function(){return a.disabled?!1:void t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){return a.disabled?!1:void((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&amp;&amp;t(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&amp;&amp;this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&amp;&amp;t(this).click()})),this._setOption("disabled",a.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&amp;&amp;this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(o+" "+a+" "+l).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?void(e?this.element.prop("disabled",!0):this.element.prop("disabled",!1)):void this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&amp;&amp;this._setOption("disabled",e),"radio"===this.type?h(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&amp;&amp;(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&amp;&amp;this.element.val(this.options.label));var e=this.buttonElement.removeClass(l),i=t("&lt;span&gt;&lt;/span&gt;",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,r=n.primary&amp;&amp;n.secondary,s=[];n.primary||n.secondary?(this.options.text&amp;&amp;s.push("ui-button-text-icon"+(r?"s":n.primary?"-primary":"-secondary")),n.primary&amp;&amp;e.prepend("&lt;span class='ui-button-icon-primary ui-icon "+n.primary+"'&gt;&lt;/span&gt;"),n.secondary&amp;&amp;e.append("&lt;span class='ui-button-icon-secondary ui-icon "+n.secondary+"'&gt;&lt;/span&gt;"),this.options.text||(s.push(r?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):s.push("ui-button-text-only"),e.addClass(s.join(" "))}}),t.widget("ui.buttonset",{version:"1.10.3",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&amp;&amp;this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(n),function(t,e){function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.dpDiv=n(t("&lt;div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'&gt;&lt;/div&gt;"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&amp;&amp;t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&amp;&amp;t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){t.datepicker._isDisabledDatepicker(s.inline?e.parent()[0]:s.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&amp;&amp;t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&amp;&amp;t(this).addClass("ui-datepicker-next-hover"))})}function r(e,i){t.extend(e,i);for(var n in i)null==i[n]&amp;&amp;(e[n]=i[n]);return e}t.extend(t.ui,{datepicker:{version:"1.10.3"}});var s,o="datepicker";t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return r(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,r,s;n=e.nodeName.toLowerCase(),r="div"===n||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),s=this._newInst(t(e),r),s.settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,s):r&amp;&amp;this._inlineDatepicker(e,s)},_newInst:function(e,i){var r=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("&lt;div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'&gt;&lt;/div&gt;")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,o,i),i.settings.disabled&amp;&amp;this._disableDatepicker(e))},_attachments:function(e,i){var n,r,s,o=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&amp;&amp;i.append.remove(),o&amp;&amp;(i.append=t("&lt;span class='"+this._appendClass+"'&gt;"+o+"&lt;/span&gt;"),e[a?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&amp;&amp;i.trigger.remove(),n=this._get(i,"showOn"),("focus"===n||"both"===n)&amp;&amp;e.focus(this._showDatepicker),("button"===n||"both"===n)&amp;&amp;(r=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("&lt;img/&gt;").addClass(this._triggerClass).attr({src:s,alt:r,title:r}):t("&lt;button type='button'&gt;&lt;/button&gt;").addClass(this._triggerClass).html(s?t("&lt;img/&gt;").attr({src:s,alt:r,title:r}):r)),e[a?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&amp;&amp;t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&amp;&amp;t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&amp;&amp;!t.inline){var e,i,n,r,s=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&amp;&amp;(e=function(t){for(i=0,n=0,r=0;r&lt;t.length;r++)t[r].length&gt;i&amp;&amp;(i=t[r].length,n=r);return n},s.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,o,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&amp;&amp;this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,a){var l,u,h,c,p,d=this._dialogInst;return d||(this.uuid+=1,l="dp"+this.uuid,this._dialogInput=t("&lt;input type='text' id='"+l+"' style='position: absolute; top: -100px; width: 0px;'/&gt;"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],o,d)),r(d.settings,s||{}),i=i&amp;&amp;i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(u=document.documentElement.clientWidth,h=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,p=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[u/2-100+c,h/2-150+p]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&amp;&amp;t.blockUI(this.dpDiv),t.data(this._dialogInput[0],o,d),this},_destroyDatepicker:function(e){var i,n=t(e),r=t.data(e,o);n.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),t.removeData(e,o),"input"===i?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&amp;&amp;n.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,n,r=t(e),s=t.data(e,o);r.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&amp;&amp;(n=r.children("."+this._inlineClass),n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,r=t(e),s=t.data(e,o);r.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&amp;&amp;(n=r.children("."+this._inlineClass),n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e&lt;this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,o)}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,n,s){var o,a,l,u,h=this._getInst(i);return 2===arguments.length&amp;&amp;"string"==typeof n?"defaults"===n?t.extend({},t.datepicker._defaults):h?"all"===n?t.extend({},h.settings):this._get(h,n):null:(o=n||{},"string"==typeof n&amp;&amp;(o={},o[n]=s),void(h&amp;&amp;(this._curInst===h&amp;&amp;this._hideDatepicker(),a=this._getDateDatepicker(i,!0),l=this._getMinMaxDate(h,"min"),u=this._getMinMaxDate(h,"max"),r(h.settings,o),null!==l&amp;&amp;o.dateFormat!==e&amp;&amp;o.minDate===e&amp;&amp;(h.settings.minDate=this._formatDate(h,l)),null!==u&amp;&amp;o.dateFormat!==e&amp;&amp;o.maxDate===e&amp;&amp;(h.settings.maxDate=this._formatDate(h,u)),"disabled"in o&amp;&amp;(o.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),h),this._autoSize(h),this._setDate(h,a),this._updateAlternate(h),this._updateDatepicker(h))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&amp;&amp;this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&amp;&amp;(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&amp;&amp;!i.inline&amp;&amp;this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,r,s=t.datepicker._getInst(e.target),o=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return r=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv),r[0]&amp;&amp;t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,r[0]),i=t.datepicker._get(s,"onSelect"),i?(n=t.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[n,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,a?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&amp;&amp;t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,a?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&amp;&amp;t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&amp;&amp;e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&amp;&amp;(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,r=t.datepicker._getInst(e.target);return t.datepicker._get(r,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(r,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" "&gt;n||!i||i.indexOf(n)&gt;-1):void 0},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&amp;&amp;(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(r){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&amp;&amp;(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&amp;&amp;t.datepicker._lastInput!==e){var i,n,s,o,a,l,u;i=t.datepicker._getInst(e),t.datepicker._curInst&amp;&amp;t.datepicker._curInst!==i&amp;&amp;(t.datepicker._curInst.dpDiv.stop(!0,!0),i&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker._get(i,"beforeShow"),s=n?n.apply(e,[e,i]):{},s!==!1&amp;&amp;(r(i.settings,s),i.lastVal=null,
        t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&amp;&amp;(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each(function(){return o|="fixed"===t(this).css("position"),!o}),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),a=t.datepicker._checkOffset(i,a,o),i.dpDiv.css({position:t.datepicker._inDialog&amp;&amp;t.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),u=t.datepicker._get(i,"duration"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&amp;&amp;t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),u):i.dpDiv[l||"show"](l?u:null),t.datepicker._shouldFocusInput(i)&amp;&amp;i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,s=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,n=this._getNumberOfMonths(e),r=n[1],o=17;e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r&gt;1&amp;&amp;e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",o*r+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;t.datepicker._shouldFocusInput(e)&amp;&amp;e.input.focus(),e.yearshtml&amp;&amp;(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&amp;&amp;e.yearshtml&amp;&amp;e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&amp;&amp;t.input.is(":visible")&amp;&amp;!t.input.is(":disabled")&amp;&amp;!t.input.is(":focus")},_checkOffset:function(e,i,n){var r=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?r-o:0,i.left-=n&amp;&amp;i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&amp;&amp;i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r&gt;l&amp;&amp;l&gt;r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+s&gt;u&amp;&amp;u&gt;s?Math.abs(s+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),r=this._get(n,"isRTL");e&amp;&amp;("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,r,s,a=this._curInst;!a||e&amp;&amp;a!==t.data(e,o)||this._datepickerShowing&amp;&amp;(i=this._get(a,"showAnim"),n=this._get(a,"duration"),r=function(){t.datepicker._tidyDialog(a)},t.effects&amp;&amp;(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,r):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,r),i||r(),this._datepickerShowing=!1,s=this._get(a,"onClose"),s&amp;&amp;s.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&amp;&amp;(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&amp;&amp;(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&amp;&amp;0===i.parents("#"+t.datepicker._mainDivId).length&amp;&amp;!i.hasClass(t.datepicker.markerClassName)&amp;&amp;!i.closest("."+t.datepicker._triggerClass).length&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&amp;&amp;t.datepicker._curInst!==n)&amp;&amp;t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var r=t(e),s=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(s,i+("M"===n?this._get(s,"showCurrentAtPos"):0),n),this._updateDatepicker(s))},_gotoToday:function(e){var i,n=t(e),r=this._getInst(n[0]);this._get(r,"gotoCurrent")&amp;&amp;r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var r=t(e),s=this._getInst(r[0]);s["selected"+("M"===n?"Month":"Year")]=s["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(r)},_selectDay:function(e,i,n,r){var s,o=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(s=this._getInst(o[0]),s.selectedDay=s.currentDay=t("a",r).html(),s.selectedMonth=s.currentMonth=i,s.selectedYear=s.currentYear=n,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,r=t(e),s=this._getInst(r[0]);i=null!=i?i:this._formatDate(s),s.input&amp;&amp;s.input.val(i),this._updateAlternate(s),n=this._get(s,"onSelect"),n?n.apply(s.input?s.input[0]:null,[i,s]):s.input&amp;&amp;s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&amp;&amp;s.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,n,r,s=this._get(e,"altField");s&amp;&amp;(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),r=this.formatDate(i,n,this._getFormatConfig(e)),t(s).each(function(){t(this).val(r)}))},noWeekends:function(t){var e=t.getDay();return[e&gt;0&amp;&amp;6&gt;e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?i.toString():i+"",""===i)return null;var r,s,o,a,l=0,u=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),c=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,d=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,y=!1,b=function(t){var i=r+1&lt;e.length&amp;&amp;e.charAt(r+1)===t;return i&amp;&amp;r++,i},w=function(t){var e=b(t),n="@"===t?14:"!"===t?20:"y"===t&amp;&amp;e?4:"o"===t?3:2,r=new RegExp("^\\d{1,"+n+"}"),s=i.substring(l).match(r);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},x=function(e,n,r){var s=-1,o=t.map(b(e)?r:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(o,function(t,e){var n=e[1];return i.substr(l,n.length).toLowerCase()===n.toLowerCase()?(s=e[0],l+=n.length,!1):void 0}),-1!==s)return s+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==e.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r&lt;e.length;r++)if(y)"'"!==e.charAt(r)||b("'")?k():y=!1;else switch(e.charAt(r)){case"d":_=w("d");break;case"D":x("D",c,p);break;case"o":v=w("o");break;case"m":m=w("m");break;case"M":m=x("M",d,f);break;case"y":g=w("y");break;case"@":a=new Date(w("@")),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case"!":a=new Date((w("!")-this._ticksTo1970)/1e4),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case"'":b("'")?k():y=!0;break;default:k()}if(l&lt;i.length&amp;&amp;(o=i.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===g?g=(new Date).getFullYear():100&gt;g&amp;&amp;(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h&gt;=g?0:-100)),v&gt;-1)for(m=1,_=v;;){if(s=this._getDaysInMonth(g,m-1),s&gt;=_)break;m++,_-=s}if(a=this._daylightSavingAdjust(new Date(g,m-1,_)),a.getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==_)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1&lt;t.length&amp;&amp;t.charAt(n+1)===e;return i&amp;&amp;n++,i},u=function(t,e,i){var n=""+e;if(l(t))for(;n.length&lt;i;)n="0"+n;return n},h=function(t,e,i,n){return l(t)?n[e]:i[e]},c="",p=!1;if(e)for(n=0;n&lt;t.length;n++)if(p)"'"!==t.charAt(n)||l("'")?c+=t.charAt(n):p=!1;else switch(t.charAt(n)){case"d":c+=u("d",e.getDate(),2);break;case"D":c+=h("D",e.getDay(),r,s);break;case"o":c+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=u("m",e.getMonth()+1,2);break;case"M":c+=h("M",e.getMonth(),o,a);break;case"y":c+=l("y")?e.getFullYear():(e.getYear()%100&lt;10?"0":"")+e.getYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?c+="'":p=!0;break;default:c+=t.charAt(n)}return c},_possibleChars:function(t){var e,i="",n=!1,r=function(i){var n=e+1&lt;t.length&amp;&amp;t.charAt(e+1)===i;return n&amp;&amp;e++,n};for(e=0;e&lt;t.length;e++)if(n)"'"!==t.charAt(e)||r("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":r("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),s=r,o=this._getFormatConfig(t);try{s=this.parseDate(i,n,o)||r}catch(a){n=e?"":n}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=n?s.getDate():0,t.currentMonth=n?s.getMonth():0,t.currentYear=n?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var r=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},s=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(n){}for(var r=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=r.getFullYear(),o=r.getMonth(),a=r.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(i);u;){switch(u[2]||"d"){case"d":case"D":a+=parseInt(u[1],10);break;case"w":case"W":a+=7*parseInt(u[1],10);break;case"m":case"M":o+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,o));break;case"y":case"Y":s+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,o))}u=l.exec(i)}return new Date(s,o,a)},o=null==i||""===i?n:"string"==typeof i?s(i):"number"==typeof i?isNaN(i)?n:r(i):new Date(i.getTime());return o=o&amp;&amp;"Invalid Date"===o.toString()?n:o,o&amp;&amp;(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()&gt;12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,r=t.selectedMonth,s=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),r===t.selectedMonth&amp;&amp;s===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&amp;&amp;t.input.val(n?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&amp;&amp;""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F,L,H=new Date,B=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),W=this._get(t,"isRTL"),q=this._get(t,"showButtonPanel"),Y=this._get(t,"hideIfNoPrevNext"),V=this._get(t,"navigationAsDateFormat"),$=this._getNumberOfMonths(t),U=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),X=1!==$[0]||1!==$[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),Q=this._getMinMaxDate(t,"max"),K=t.drawMonth-U,tt=t.drawYear;if(0&gt;K&amp;&amp;(K+=12,tt--),Q)for(e=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-$[0]*$[1]+1,Q.getDate())),e=J&amp;&amp;J&gt;e?J:e;this._daylightSavingAdjust(new Date(tt,K,1))&gt;e;)K--,0&gt;K&amp;&amp;(K=11,tt--);for(t.drawMonth=K,t.drawYear=tt,i=this._get(t,"prevText"),i=V?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,K-G,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,K)?"&lt;a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'&gt;"+i+"&lt;/span&gt;&lt;/a&gt;":Y?"":"&lt;a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'&gt;"+i+"&lt;/span&gt;&lt;/a&gt;",r=this._get(t,"nextText"),r=V?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,K+G,1)),this._getFormatConfig(t)):r,s=this._canAdjustMonth(t,1,tt,K)?"&lt;a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'&gt;"+r+"&lt;/span&gt;&lt;/a&gt;":Y?"":"&lt;a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'&gt;"+r+"&lt;/span&gt;&lt;/a&gt;",o=this._get(t,"currentText"),a=this._get(t,"gotoCurrent")&amp;&amp;t.currentDay?Z:B,o=V?this.formatDate(o,a,this._getFormatConfig(t)):o,l=t.inline?"":"&lt;button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'&gt;"+this._get(t,"closeText")+"&lt;/button&gt;",u=q?"&lt;div class='ui-datepicker-buttonpane ui-widget-content'&gt;"+(W?l:"")+(this._isInRange(t,a)?"&lt;button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'&gt;"+o+"&lt;/button&gt;":"")+(W?"":l)+"&lt;/div&gt;":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,c=this._get(t,"showWeek"),p=this._get(t,"dayNames"),d=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),b="",x=0;x&lt;$[0];x++){for(k="",this.maxRows=4,M=0;M&lt;$[1];M++){if(C=this._daylightSavingAdjust(new Date(tt,K,t.selectedDay)),D=" ui-corner-all",T="",X){if(T+="&lt;div class='ui-datepicker-group",$[1]&gt;1)switch(M){case 0:T+=" ui-datepicker-group-first",D=" ui-corner-"+(W?"right":"left");break;case $[1]-1:T+=" ui-datepicker-group-last",D=" ui-corner-"+(W?"left":"right");break;default:T+=" ui-datepicker-group-middle",D=""}T+="'&gt;"}for(T+="&lt;div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'&gt;"+(/all|left/.test(D)&amp;&amp;0===x?W?s:n:"")+(/all|right/.test(D)&amp;&amp;0===x?W?n:s:"")+this._generateMonthYearHeader(t,K,tt,J,Q,x&gt;0||M&gt;0,f,g)+"&lt;/div&gt;&lt;table class='ui-datepicker-calendar'&gt;&lt;thead&gt;&lt;tr&gt;",S=c?"&lt;th class='ui-datepicker-week-col'&gt;"+this._get(t,"weekHeader")+"&lt;/th&gt;":"",w=0;7&gt;w;w++)A=(w+h)%7,S+="&lt;th"+((w+h+6)%7&gt;=5?" class='ui-datepicker-week-end'":"")+"&gt;&lt;span title='"+p[A]+"'&gt;"+d[A]+"&lt;/span&gt;&lt;/th&gt;";for(T+=S+"&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;",P=this._getDaysInMonth(tt,K),tt===t.selectedYear&amp;&amp;K===t.selectedMonth&amp;&amp;(t.selectedDay=Math.min(t.selectedDay,P)),E=(this._getFirstDayOfMonth(tt,K)-h+7)%7,I=Math.ceil((E+P)/7),N=X&amp;&amp;this.maxRows&gt;I?this.maxRows:I,this.maxRows=N,R=this._daylightSavingAdjust(new Date(tt,K,1-E)),z=0;N&gt;z;z++){for(T+="&lt;tr&gt;",j=c?"&lt;td class='ui-datepicker-week-col'&gt;"+this._get(t,"calculateWeek")(R)+"&lt;/td&gt;":"",w=0;7&gt;w;w++)O=m?m.apply(t.input?t.input[0]:null,[R]):[!0,""],F=R.getMonth()!==K,L=F&amp;&amp;!v||!O[0]||J&amp;&amp;J&gt;R||Q&amp;&amp;R&gt;Q,j+="&lt;td class='"+((w+h+6)%7&gt;=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(R.getTime()===C.getTime()&amp;&amp;K===t.selectedMonth&amp;&amp;t._keyEvent||y.getTime()===R.getTime()&amp;&amp;y.getTime()===C.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&amp;&amp;!_?"":" "+O[1]+(R.getTime()===Z.getTime()?" "+this._currentClass:"")+(R.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(F&amp;&amp;!_||!O[2]?"":" title='"+O[2].replace(/'/g,"&amp;#39;")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+"&gt;"+(F&amp;&amp;!_?"&amp;#xa0;":L?"&lt;span class='ui-state-default'&gt;"+R.getDate()+"&lt;/span&gt;":"&lt;a class='ui-state-default"+(R.getTime()===B.getTime()?" ui-state-highlight":"")+(R.getTime()===Z.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'&gt;"+R.getDate()+"&lt;/a&gt;")+"&lt;/td&gt;",R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);T+=j+"&lt;/tr&gt;"}K++,K&gt;11&amp;&amp;(K=0,tt++),T+="&lt;/tbody&gt;&lt;/table&gt;"+(X?"&lt;/div&gt;"+($[0]&gt;0&amp;&amp;M===$[1]-1?"&lt;div class='ui-datepicker-row-break'&gt;&lt;/div&gt;":""):""),k+=T}b+=k}return b+=u,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,r,s,o,a){var l,u,h,c,p,d,f,g,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),y="&lt;div class='ui-datepicker-title'&gt;",b="";if(s||!m)b+="&lt;span class='ui-datepicker-month'&gt;"+o[e]+"&lt;/span&gt;";else{for(l=n&amp;&amp;n.getFullYear()===i,u=r&amp;&amp;r.getFullYear()===i,b+="&lt;select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'&gt;",h=0;12&gt;h;h++)(!l||h&gt;=n.getMonth())&amp;&amp;(!u||h&lt;=r.getMonth())&amp;&amp;(b+="&lt;option value='"+h+"'"+(h===e?" selected='selected'":"")+"&gt;"+a[h]+"&lt;/option&gt;");b+="&lt;/select&gt;"}if(v||(y+=b+(!s&amp;&amp;m&amp;&amp;_?"":"&amp;#xa0;")),!t.yearshtml)if(t.yearshtml="",s||!_)y+="&lt;span class='ui-datepicker-year'&gt;"+i+"&lt;/span&gt;";else{for(c=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),d=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e},f=d(c[0]),g=Math.max(f,d(c[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="&lt;select class='ui-datepicker-year' data-handler='selectYear' data-event='change'&gt;";g&gt;=f;f++)t.yearshtml+="&lt;option value='"+f+"'"+(f===i?" selected='selected'":"")+"&gt;"+f+"&lt;/option&gt;";t.yearshtml+="&lt;/select&gt;",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),v&amp;&amp;(y+=(!s&amp;&amp;m&amp;&amp;_?"":"&amp;#xa0;")+b),y+="&lt;/div&gt;"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),r=t.drawMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,s)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),("M"===i||"Y"===i)&amp;&amp;this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&amp;&amp;i&gt;e?i:e;return n&amp;&amp;r&gt;n?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&amp;&amp;e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(0&gt;e?e:r[0]*r[1]),1));return 0&gt;e&amp;&amp;s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),o=null,a=null,l=this._get(t,"yearRange");return l&amp;&amp;(i=l.split(":"),n=(new Date).getFullYear(),o=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&amp;&amp;(o+=n),i[1].match(/[+\-].*/)&amp;&amp;(a+=n)),(!r||e.getTime()&gt;=r.getTime())&amp;&amp;(!s||e.getTime()&lt;=s.getTime())&amp;&amp;(!o||e.getFullYear()&gt;=o)&amp;&amp;(!a||e.getFullYear()&lt;=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&amp;&amp;t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&amp;&amp;"getDate"!==e&amp;&amp;"widget"!==e?"option"===e&amp;&amp;2===arguments.length&amp;&amp;"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.3"}(n),function(t,e){var i={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},n={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0&gt;i&amp;&amp;t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&amp;&amp;t.fn.draggable&amp;&amp;this._makeDraggable(),this.options.resizable&amp;&amp;t.fn.resizable&amp;&amp;this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&amp;&amp;this.open()},_appendTo:function(){var e=this.options.appendTo;return e&amp;&amp;(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&amp;&amp;this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&amp;&amp;t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&amp;&amp;this._trigger("beforeClose",e)!==!1&amp;&amp;(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||t(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&amp;&amp;!e&amp;&amp;this._trigger("focus",t),i},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&amp;&amp;this._focusTabbable()):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var t=this.element.find("[autofocus]");t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement,i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("&lt;div&gt;").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&amp;&amp;!e.isDefaultPrevented()&amp;&amp;e.keyCode&amp;&amp;e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),r=i.filter(":last");e.target!==r[0]&amp;&amp;e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&amp;&amp;e.target!==this.uiDialog[0]||!e.shiftKey||(r.focus(1),e.preventDefault()):(n.focus(1),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&amp;&amp;this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("&lt;div&gt;").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("&lt;button&gt;&lt;/button&gt;").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("&lt;span&gt;").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&amp;#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("&lt;div&gt;").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("&lt;div&gt;").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&amp;&amp;!i.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(t.each(i,function(i,n){var r,s;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),r=n.click,n.click=function(){r.apply(e.element[0],arguments)},s={icons:n.icons,text:n.showText},delete n.icons,delete n.showText,t("&lt;button&gt;&lt;/button&gt;",n).button(s).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,r){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(r))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(r,s){n.position=[s.position.left-i.document.scrollLeft(),s.position.top-i.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",r,e(s))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,r=n.resizable,s=this.uiDialog.css("position"),o="string"==typeof r?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:o,start:function(n,r){t(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,e(r))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(r,s){n.height=t(this).height(),n.width=t(this).width(),t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",r,e(s))}}).css("position",s)},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var r=this,s=!1,o={};t.each(e,function(t,e){r._setOption(t,e),t in i&amp;&amp;(s=!0),t in n&amp;&amp;(o[t]=e)}),s&amp;&amp;(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&amp;&amp;this.uiDialog.resizable("option",o)},_setOption:function(t,e){var i,n,r=this.uiDialog;"dialogClass"===t&amp;&amp;r.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&amp;&amp;(this._super(t,e),"appendTo"===t&amp;&amp;this.uiDialog.appendTo(this._appendTo()),"buttons"===t&amp;&amp;this._createButtons(),"closeText"===t&amp;&amp;this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&amp;&amp;(i=r.is(":data(ui-draggable)"),i&amp;&amp;!e&amp;&amp;r.draggable("destroy"),!i&amp;&amp;e&amp;&amp;this._makeDraggable()),"position"===t&amp;&amp;this._position(),"resizable"===t&amp;&amp;(n=r.is(":data(ui-resizable)"),n&amp;&amp;!e&amp;&amp;r.resizable("destroy"),n&amp;&amp;"string"==typeof e&amp;&amp;r.resizable("option","handles",e),n||e===!1||this._makeResizable()),"title"===t&amp;&amp;this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth&gt;n.width&amp;&amp;(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&amp;&amp;this.uiDialog.resizable("option","minHeight",this._minHeight());
        },_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("&lt;div&gt;").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&amp;&amp;(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&amp;&amp;this.document.bind("focusin.dialog",function(n){e._allowInteraction(n)||(n.preventDefault(),t(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=t("&lt;div&gt;").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&amp;&amp;this.overlay&amp;&amp;(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,t.uiBackCompat!==!1&amp;&amp;t.widget("ui.dialog",t.ui.dialog,{_position:function(){var e,i=this.options.position,n=[],r=[0,0];i?(("string"==typeof i||"object"==typeof i&amp;&amp;"0"in i)&amp;&amp;(n=i.split?i.split(" "):[i[0],i[1]],1===n.length&amp;&amp;(n[1]=n[0]),t.each(["left","top"],function(t,e){+n[t]===n[t]&amp;&amp;(r[t]=n[t],n[t]=e)}),i={my:n[0]+(r[0]&lt;0?r[0]:"+"+r[0])+" "+n[1]+(r[1]&lt;0?r[1]:"+"+r[1]),at:n.join(" ")}),i=t.extend({},t.ui.dialog.prototype.options.position,i)):i=t.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(i),e||this.uiDialog.hide()}})}(n),function(t,e){var i=/up|down|vertical/,n=/up|left|vertical|horizontal/;t.effects.effect.blind=function(e,r){var s,o,a,l=t(this),u=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(l,e.mode||"hide"),c=e.direction||"up",p=i.test(c),d=p?"height":"width",f=p?"top":"left",g=n.test(c),m={},_="show"===h;l.parent().is(".ui-effects-wrapper")?t.effects.save(l.parent(),u):t.effects.save(l,u),l.show(),s=t.effects.createWrapper(l).css({overflow:"hidden"}),o=s[d](),a=parseFloat(s.css(f))||0,m[d]=_?o:0,g||(l.css(p?"bottom":"right",0).css(p?"top":"left","auto").css({position:"absolute"}),m[f]=_?a:o+a),_&amp;&amp;(s.css(d,0),g||s.css(f,a+o)),s.animate(m,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===h&amp;&amp;l.hide(),t.effects.restore(l,u),t.effects.removeWrapper(l),r()}})}}(n),function(t,e){t.effects.effect.bounce=function(e,i){var n,r,s,o=t(this),a=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(o,e.mode||"effect"),u="hide"===l,h="show"===l,c=e.direction||"up",p=e.distance,d=e.times||5,f=2*d+(h||u?1:0),g=e.duration/f,m=e.easing,_="up"===c||"down"===c?"top":"left",v="up"===c||"left"===c,y=o.queue(),b=y.length;for((h||u)&amp;&amp;a.push("opacity"),t.effects.save(o,a),o.show(),t.effects.createWrapper(o),p||(p=o["top"===_?"outerHeight":"outerWidth"]()/3),h&amp;&amp;(s={opacity:1},s[_]=0,o.css("opacity",0).css(_,v?2*-p:2*p).animate(s,g,m)),u&amp;&amp;(p/=Math.pow(2,d-1)),s={},s[_]=0,n=0;d&gt;n;n++)r={},r[_]=(v?"-=":"+=")+p,o.animate(r,g,m).animate(s,g,m),p=u?2*p:p/2;u&amp;&amp;(r={opacity:0},r[_]=(v?"-=":"+=")+p,o.animate(r,g,m)),o.queue(function(){u&amp;&amp;o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),i()}),b&gt;1&amp;&amp;y.splice.apply(y,[1,0].concat(y.splice(b,f+1))),o.dequeue()}}(n),function(t,e){t.effects.effect.clip=function(e,i){var n,r,s,o=t(this),a=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(o,e.mode||"hide"),u="show"===l,h=e.direction||"vertical",c="vertical"===h,p=c?"height":"width",d=c?"top":"left",f={};t.effects.save(o,a),o.show(),n=t.effects.createWrapper(o).css({overflow:"hidden"}),r="IMG"===o[0].tagName?n:o,s=r[p](),u&amp;&amp;(r.css(p,0),r.css(d,s/2)),f[p]=u?s:0,f[d]=u?0:s/2,r.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){u||o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),i()}})}}(n),function(t,e){t.effects.effect.drop=function(e,i){var n,r=t(this),s=["position","top","bottom","left","right","opacity","height","width"],o=t.effects.setMode(r,e.mode||"hide"),a="show"===o,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l?"pos":"neg",c={opacity:a?1:0};t.effects.save(r,s),r.show(),t.effects.createWrapper(r),n=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0)/2,a&amp;&amp;r.css("opacity",0).css(u,"pos"===h?-n:n),c[u]=(a?"pos"===h?"+=":"-=":"pos"===h?"-=":"+=")+n,r.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&amp;&amp;r.hide(),t.effects.restore(r,s),t.effects.removeWrapper(r),i()}})}}(n),function(t,e){t.effects.effect.explode=function(e,i){function n(){y.push(this),y.length===c*p&amp;&amp;r()}function r(){d.css({visibility:"visible"}),t(y).remove(),g||d.hide(),i()}var s,o,a,l,u,h,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,p=c,d=t(this),f=t.effects.setMode(d,e.mode||"hide"),g="show"===f,m=d.show().css("visibility","hidden").offset(),_=Math.ceil(d.outerWidth()/p),v=Math.ceil(d.outerHeight()/c),y=[];for(s=0;c&gt;s;s++)for(l=m.top+s*v,h=s-(c-1)/2,o=0;p&gt;o;o++)a=m.left+o*_,u=o-(p-1)/2,d.clone().appendTo("body").wrap("&lt;div&gt;&lt;/div&gt;").css({position:"absolute",visibility:"visible",left:-o*_,top:-s*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:_,height:v,left:a+(g?u*_:0),top:l+(g?h*v:0),opacity:g?0:1}).animate({left:a+(g?0:u*_),top:l+(g?0:h*v),opacity:g?1:0},e.duration||500,e.easing,n)}}(n),function(t,e){t.effects.effect.fade=function(e,i){var n=t(this),r=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:r},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}(n),function(t,e){t.effects.effect.fold=function(e,i){var n,r,s=t(this),o=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(s,e.mode||"hide"),l="show"===a,u="hide"===a,h=e.size||15,c=/([0-9]+)%/.exec(h),p=!!e.horizFirst,d=l!==p,f=d?["width","height"]:["height","width"],g=e.duration/2,m={},_={};t.effects.save(s,o),s.show(),n=t.effects.createWrapper(s).css({overflow:"hidden"}),r=d?[n.width(),n.height()]:[n.height(),n.width()],c&amp;&amp;(h=parseInt(c[1],10)/100*r[u?0:1]),l&amp;&amp;n.css(p?{height:0,width:h}:{height:h,width:0}),m[f[0]]=l?r[0]:h,_[f[1]]=l?r[1]:0,n.animate(m,g,e.easing).animate(_,g,e.easing,function(){u&amp;&amp;s.hide(),t.effects.restore(s,o),t.effects.removeWrapper(s),i()})}}(n),function(t,e){t.effects.effect.highlight=function(e,i){var n=t(this),r=["backgroundImage","backgroundColor","opacity"],s=t.effects.setMode(n,e.mode||"show"),o={backgroundColor:n.css("backgroundColor")};"hide"===s&amp;&amp;(o.opacity=0),t.effects.save(n,r),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===s&amp;&amp;n.hide(),t.effects.restore(n,r),i()}})}}(n),function(t,e){t.effects.effect.pulsate=function(e,i){var n,r=t(this),s=t.effects.setMode(r,e.mode||"show"),o="show"===s,a="hide"===s,l=o||"hide"===s,u=2*(e.times||5)+(l?1:0),h=e.duration/u,c=0,p=r.queue(),d=p.length;for((o||!r.is(":visible"))&amp;&amp;(r.css("opacity",0).show(),c=1),n=1;u&gt;n;n++)r.animate({opacity:c},h,e.easing),c=1-c;r.animate({opacity:c},h,e.easing),r.queue(function(){a&amp;&amp;r.hide(),i()}),d&gt;1&amp;&amp;p.splice.apply(p,[1,0].concat(p.splice(d,u+1))),r.dequeue()}}(n),function(t,e){t.effects.effect.puff=function(e,i){var n=t(this),r=t.effects.setMode(n,e.mode||"hide"),s="hide"===r,o=parseInt(e.percent,10)||150,a=o/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:r,complete:i,percent:s?o:100,from:s?l:{height:l.height*a,width:l.width*a,outerHeight:l.outerHeight*a,outerWidth:l.outerWidth*a}}),n.effect(e)},t.effects.effect.scale=function(e,i){var n=t(this),r=t.extend(!0,{},e),s=t.effects.setMode(n,e.mode||"effect"),o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===s?0:100),a=e.direction||"both",l=e.origin,u={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},h={y:"horizontal"!==a?o/100:1,x:"vertical"!==a?o/100:1};r.effect="size",r.queue=!1,r.complete=i,"effect"!==s&amp;&amp;(r.origin=l||["middle","center"],r.restore=!0),r.from=e.from||("show"===s?{height:0,width:0,outerHeight:0,outerWidth:0}:u),r.to={height:u.height*h.y,width:u.width*h.x,outerHeight:u.outerHeight*h.y,outerWidth:u.outerWidth*h.x},r.fade&amp;&amp;("show"===s&amp;&amp;(r.from.opacity=0,r.to.opacity=1),"hide"===s&amp;&amp;(r.from.opacity=1,r.to.opacity=0)),n.effect(r)},t.effects.effect.size=function(e,i){var n,r,s,o=t(this),a=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],u=["width","height","overflow"],h=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],p=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],d=t.effects.setMode(o,e.mode||"effect"),f=e.restore||"effect"!==d,g=e.scale||"both",m=e.origin||["middle","center"],_=o.css("position"),v=f?a:l,y={height:0,width:0,outerHeight:0,outerWidth:0};"show"===d&amp;&amp;o.show(),n={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},"toggle"===e.mode&amp;&amp;"show"===d?(o.from=e.to||y,o.to=e.from||n):(o.from=e.from||("show"===d?y:n),o.to=e.to||("hide"===d?y:n)),s={from:{y:o.from.height/n.height,x:o.from.width/n.width},to:{y:o.to.height/n.height,x:o.to.width/n.width}},("box"===g||"both"===g)&amp;&amp;(s.from.y!==s.to.y&amp;&amp;(v=v.concat(c),o.from=t.effects.setTransition(o,c,s.from.y,o.from),o.to=t.effects.setTransition(o,c,s.to.y,o.to)),s.from.x!==s.to.x&amp;&amp;(v=v.concat(p),o.from=t.effects.setTransition(o,p,s.from.x,o.from),o.to=t.effects.setTransition(o,p,s.to.x,o.to))),("content"===g||"both"===g)&amp;&amp;s.from.y!==s.to.y&amp;&amp;(v=v.concat(h).concat(u),o.from=t.effects.setTransition(o,h,s.from.y,o.from),o.to=t.effects.setTransition(o,h,s.to.y,o.to)),t.effects.save(o,v),o.show(),t.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),m&amp;&amp;(r=t.effects.getBaseline(m,n),o.from.top=(n.outerHeight-o.outerHeight())*r.y,o.from.left=(n.outerWidth-o.outerWidth())*r.x,o.to.top=(n.outerHeight-o.to.outerHeight)*r.y,o.to.left=(n.outerWidth-o.to.outerWidth)*r.x),o.css(o.from),("content"===g||"both"===g)&amp;&amp;(c=c.concat(["marginTop","marginBottom"]).concat(h),p=p.concat(["marginLeft","marginRight"]),u=a.concat(c).concat(p),o.find("*[width]").each(function(){var i=t(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&amp;&amp;t.effects.save(i,u),i.from={height:n.height*s.from.y,width:n.width*s.from.x,outerHeight:n.outerHeight*s.from.y,outerWidth:n.outerWidth*s.from.x},i.to={height:n.height*s.to.y,width:n.width*s.to.x,outerHeight:n.height*s.to.y,outerWidth:n.width*s.to.x},s.from.y!==s.to.y&amp;&amp;(i.from=t.effects.setTransition(i,c,s.from.y,i.from),i.to=t.effects.setTransition(i,c,s.to.y,i.to)),s.from.x!==s.to.x&amp;&amp;(i.from=t.effects.setTransition(i,p,s.from.x,i.from),i.to=t.effects.setTransition(i,p,s.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&amp;&amp;t.effects.restore(i,u)})})),o.animate(o.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===o.to.opacity&amp;&amp;o.css("opacity",o.from.opacity),"hide"===d&amp;&amp;o.hide(),t.effects.restore(o,v),f||("static"===_?o.css({position:"relative",top:o.to.top,left:o.to.left}):t.each(["top","left"],function(t,e){o.css(e,function(e,i){var n=parseInt(i,10),r=t?o.to.left:o.to.top;return"auto"===i?r+"px":n+r+"px"})})),t.effects.removeWrapper(o),i()}})}}(n),function(t,e){t.effects.effect.shake=function(e,i){var n,r=t(this),s=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(r,e.mode||"effect"),a=e.direction||"left",l=e.distance||20,u=e.times||3,h=2*u+1,c=Math.round(e.duration/h),p="up"===a||"down"===a?"top":"left",d="up"===a||"left"===a,f={},g={},m={},_=r.queue(),v=_.length;for(t.effects.save(r,s),r.show(),t.effects.createWrapper(r),f[p]=(d?"-=":"+=")+l,g[p]=(d?"+=":"-=")+2*l,m[p]=(d?"-=":"+=")+2*l,r.animate(f,c,e.easing),n=1;u&gt;n;n++)r.animate(g,c,e.easing).animate(m,c,e.easing);r.animate(g,c,e.easing).animate(f,c/2,e.easing).queue(function(){"hide"===o&amp;&amp;r.hide(),t.effects.restore(r,s),t.effects.removeWrapper(r),i()}),v&gt;1&amp;&amp;_.splice.apply(_,[1,0].concat(_.splice(v,h+1))),r.dequeue()}}(n),function(t,e){t.effects.effect.slide=function(e,i){var n,r=t(this),s=["position","top","bottom","left","right","width","height"],o=t.effects.setMode(r,e.mode||"show"),a="show"===o,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l,c={};t.effects.save(r,s),r.show(),n=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(r).css({overflow:"hidden"}),a&amp;&amp;r.css(u,h?isNaN(n)?"-"+n:-n:n),c[u]=(a?h?"+=":"-=":h?"-=":"+=")+n,r.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&amp;&amp;r.hide(),t.effects.restore(r,s),t.effects.removeWrapper(r),i()}})}}(n),function(t,e){t.effects.effect.transfer=function(e,i){var n=t(this),r=t(e.to),s="fixed"===r.css("position"),o=t("body"),a=s?o.scrollTop():0,l=s?o.scrollLeft():0,u=r.offset(),h={top:u.top-a,left:u.left-l,height:r.innerHeight(),width:r.innerWidth()},c=n.offset(),p=t("&lt;div class='ui-effects-transfer'&gt;&lt;/div&gt;").appendTo(document.body).addClass(e.className).css({top:c.top-a,left:c.left-l,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(h,e.duration,e.easing,function(){p.remove(),i()})}}(n),function(t,e){t.widget("ui.menu",{version:"1.10.3",defaultElement:"&lt;ul&gt;",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&amp;&amp;t.preventDefault()},this)),this.options.disabled&amp;&amp;this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item &gt; a":function(t){t.preventDefault()},"click .ui-state-disabled &gt; a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&amp;&amp;i.not(".ui-state-disabled").length&amp;&amp;(this.mouseHandled=!0,this.select(e),i.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&amp;&amp;1===this.active.parents(".ui-menu").length&amp;&amp;clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&amp;&amp;e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&amp;")}var n,r,s,o,a,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&amp;&amp;!this.active.is(".ui-state-disabled")&amp;&amp;this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,r=this.previousFilter||"",s=String.fromCharCode(e.keyCode),o=!1,clearTimeout(this.filterTimer),s===r?o=!0:s=r+s,a=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())}),n=o&amp;&amp;-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(s=String.fromCharCode(e.keyCode),a=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())})),n.length?(this.focus(e,n),n.length&gt;1?(this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&amp;&amp;e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,n=this.element.find(this.options.menus);n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev("a"),r=t("&lt;span&gt;").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(r),e.attr("aria-labelledby",n.attr("id"))}),e=n.add(this.element),e.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&amp;&amp;!t.contains(this.element[0],this.active[0])&amp;&amp;this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&amp;&amp;this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&amp;&amp;"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&amp;&amp;this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&amp;&amp;"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&amp;&amp;/^mouse/.test(t.type)&amp;&amp;this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,r,s,o,a;this._hasScroll()&amp;&amp;(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-i-n,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=e.height(),0&gt;r?this.activeMenu.scrollTop(s+r):r+a&gt;o&amp;&amp;this.activeMenu.scrollTop(s+r-o+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&amp;&amp;(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&amp;&amp;(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&amp;&amp;e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&amp;&amp;this.active.parent().closest(".ui-menu-item",this.element);e&amp;&amp;e.length&amp;&amp;(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&amp;&amp;this.active.children(".ui-menu ").children(".ui-menu-item").first();e&amp;&amp;e.length&amp;&amp;(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&amp;&amp;!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&amp;&amp;!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&amp;&amp;(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&amp;&amp;n.length&amp;&amp;this.active||(n=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,n)},nextPage:function(e){var i,n,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n-r&lt;0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+r&gt;0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()&lt;this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}})}(n),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}function r(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var s,o=Math.max,a=Math.abs,l=Math.round,u=/left|center|right/,h=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,p=/^\w+/,d=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(s!==e)return s;var i,n,r=t("&lt;div style='display:block;width:50px;height:50px;overflow:hidden;'&gt;&lt;div style='height:100px;width:auto;'&gt;&lt;/div&gt;&lt;/div&gt;"),o=r.children()[0];return t("body").append(r),i=o.offsetWidth,r.css("overflow","scroll"),n=o.offsetWidth,i===n&amp;&amp;(n=r[0].clientWidth),r.remove(),s=i-n},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),n=e.isWindow?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&amp;&amp;e.width&lt;e.element[0].scrollWidth,s="scroll"===n||"auto"===n&amp;&amp;e.height&lt;e.element[0].scrollHeight;return{width:s?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]);return{element:i,isWindow:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var s,d,g,m,_,v,y=t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),x=(e.collision||"flip").split(" "),k={};return v=r(y),y[0].preventDefault&amp;&amp;(e.at="left top"),d=v.width,g=v.height,m=v.offset,_=t.extend({},m),t.each(["my","at"],function(){var t,i,n=(e[this]||"").split(" ");1===n.length&amp;&amp;(n=u.test(n[0])?n.concat(["center"]):h.test(n[0])?["center"].concat(n):["center","center"]),n[0]=u.test(n[0])?n[0]:"center",n[1]=h.test(n[1])?n[1]:"center",t=c.exec(n[0]),i=c.exec(n[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[p.exec(n[0])[0],p.exec(n[1])[0]]}),1===x.length&amp;&amp;(x[1]=x[0]),"right"===e.at[0]?_.left+=d:"center"===e.at[0]&amp;&amp;(_.left+=d/2),"bottom"===e.at[1]?_.top+=g:"center"===e.at[1]&amp;&amp;(_.top+=g/2),s=i(k.at,d,g),_.left+=s[0],_.top+=s[1],this.each(function(){var r,u,h=t(this),c=h.outerWidth(),p=h.outerHeight(),f=n(this,"marginLeft"),v=n(this,"marginTop"),M=c+f+n(this,"marginRight")+w.width,C=p+v+n(this,"marginBottom")+w.height,D=t.extend({},_),T=i(k.my,h.outerWidth(),h.outerHeight());"right"===e.my[0]?D.left-=c:"center"===e.my[0]&amp;&amp;(D.left-=c/2),"bottom"===e.my[1]?D.top-=p:"center"===e.my[1]&amp;&amp;(D.top-=p/2),D.left+=T[0],D.top+=T[1],t.support.offsetFractions||(D.left=l(D.left),D.top=l(D.top)),r={marginLeft:f,marginTop:v},t.each(["left","top"],function(i,n){t.ui.position[x[i]]&amp;&amp;t.ui.position[x[i]][n](D,{targetWidth:d,targetHeight:g,elemWidth:c,elemHeight:p,collisionPosition:r,collisionWidth:M,collisionHeight:C,offset:[s[0]+T[0],s[1]+T[1]],my:e.my,at:e.at,within:b,elem:h})}),e.using&amp;&amp;(u=function(t){var i=m.left-D.left,n=i+d-c,r=m.top-D.top,s=r+g-p,l={target:{element:y,left:m.left,top:m.top,width:d,height:g},element:{element:h,left:D.left,top:D.top,width:c,height:p},horizontal:0&gt;n?"left":i&gt;0?"right":"center",vertical:0&gt;s?"top":r&gt;0?"bottom":"middle"};c&gt;d&amp;&amp;a(i+n)&lt;d&amp;&amp;(l.horizontal="center"),p&gt;g&amp;&amp;a(r+s)&lt;g&amp;&amp;(l.vertical="middle"),o(a(i),a(n))&gt;o(a(r),a(s))?l.important="horizontal":l.important="vertical",e.using.call(this,t,l)}),h.offset(t.extend(D,{using:u}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,a=t.left-e.collisionPosition.marginLeft,l=r-a,u=a+e.collisionWidth-s-r;e.collisionWidth&gt;s?l&gt;0&amp;&amp;0&gt;=u?(i=t.left+l+e.collisionWidth-s-r,t.left+=l-i):u&gt;0&amp;&amp;0&gt;=l?t.left=r:l&gt;u?t.left=r+s-e.collisionWidth:t.left=r:l&gt;0?t.left+=l:u&gt;0?t.left-=u:t.left=o(t.left-a,t.left)},top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=r-a,u=a+e.collisionHeight-s-r;e.collisionHeight&gt;s?l&gt;0&amp;&amp;0&gt;=u?(i=t.top+l+e.collisionHeight-s-r,t.top+=l-i):u&gt;0&amp;&amp;0&gt;=l?t.top=r:l&gt;u?t.top=r+s-e.collisionHeight:t.top=r:l&gt;0?t.top+=l:u&gt;0?t.top-=u:t.top=o(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,s=r.offset.left+r.scrollLeft,o=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-e.collisionPosition.marginLeft,h=u-l,c=u+e.collisionWidth-o-l,p="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,d="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0&gt;h?(i=t.left+p+d+f+e.collisionWidth-o-s,(0&gt;i||i&lt;a(h))&amp;&amp;(t.left+=p+d+f)):c&gt;0&amp;&amp;(n=t.left-e.collisionPosition.marginLeft+p+d+f-l,(n&gt;0||a(n)&lt;c)&amp;&amp;(t.left+=p+d+f))},top:function(t,e){var i,n,r=e.within,s=r.offset.top+r.scrollTop,o=r.height,l=r.isWindow?r.scrollTop:r.offset.top,u=t.top-e.collisionPosition.marginTop,h=u-l,c=u+e.collisionHeight-o-l,p="top"===e.my[1],d=p?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0&gt;h?(n=t.top+d+f+g+e.collisionHeight-o-s,t.top+d+f+g&gt;h&amp;&amp;(0&gt;n||n&lt;a(h))&amp;&amp;(t.top+=d+f+g)):c&gt;0&amp;&amp;(i=t.top-e.collisionPosition.marginTop+d+f+g-l,t.top+d+f+g&gt;c&amp;&amp;(i&gt;0||a(i)&lt;c)&amp;&amp;(t.top+=d+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,r,s,o=document.getElementsByTagName("body")[0],a=document.createElement("div");e=document.createElement(o?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&amp;&amp;t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(s in n)e.style[s]=n[s];e.appendChild(a),i=o||document.documentElement,i.insertBefore(e,i.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",r=t(a).offset().left,t.support.offsetFractions=r&gt;10&amp;&amp;11&gt;r,e.innerHTML="",i.removeChild(e)}()}(n),function(t,e){t.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("&lt;div class='ui-progressbar-value ui-widget-header ui-corner-left'&gt;&lt;/div&gt;").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return t===e?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return t===e&amp;&amp;(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&amp;&amp;(t=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&amp;&amp;(e=Math.max(this.min,e)),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e&gt;this.min).toggleClass("ui-corner-right",e===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("&lt;div class='ui-progressbar-overlay'&gt;&lt;/div&gt;").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&amp;&amp;(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&amp;&amp;(this.oldValue=e,this._trigger("change")),e===this.options.max&amp;&amp;this._trigger("complete")}})}(n),function(t,e){var i=5;t.widget("ui.slider",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,r=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),s="&lt;a class='ui-slider-handle ui-state-default ui-corner-all' href='#'&gt;&lt;/a&gt;",o=[];for(i=n.values&amp;&amp;n.values.length||1,
        r.length&gt;i&amp;&amp;(r.slice(i).remove(),r=r.slice(0,i)),e=r.length;i&gt;e;e++)o.push(s);this.handles=r.add(t(o.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(e.range===!0&amp;&amp;(e.values?e.values.length&amp;&amp;2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&amp;&amp;(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&amp;&amp;this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("&lt;div&gt;&lt;/div&gt;").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):this.range=t([])},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,r,s,o,a,l,u,h=this,c=this.options;return c.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-h.values(e));(r&gt;i||r===i&amp;&amp;(e===h._lastChangedValue||h.values(e)===c.min))&amp;&amp;(r=i,s=t(this),o=e)}),a=this._start(e,o),a===!1?!1:(this._mouseSliding=!0,this._handleIndex=o,s.addClass("ui-state-active").focus(),l=s.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-l.left-s.width()/2,top:e.pageY-l.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,r,s;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/e,n&gt;1&amp;&amp;(n=1),0&gt;n&amp;&amp;(n=0),"vertical"===this.orientation&amp;&amp;(n=1-n),r=this._valueMax()-this._valueMin(),s=this._valueMin()+n*r,this._trimAlignValue(s)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&amp;&amp;this.options.values.length&amp;&amp;(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,r,s;this.options.values&amp;&amp;this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&amp;&amp;this.options.range===!0&amp;&amp;(0===e&amp;&amp;i&gt;n||1===e&amp;&amp;n&gt;i)&amp;&amp;(i=n),i!==this.values(e)&amp;&amp;(r=this.values(),r[e]=i,s=this._trigger("slide",t,{handle:this.handles[e],value:i,values:r}),n=this.values(e?0:1),s!==!1&amp;&amp;this.values(e,i,!0))):i!==this.value()&amp;&amp;(s=this._trigger("slide",t,{handle:this.handles[e],value:i}),s!==!1&amp;&amp;this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&amp;&amp;this.options.values.length&amp;&amp;(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&amp;&amp;!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&amp;&amp;this.options.values.length&amp;&amp;(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,r,s;if(arguments.length&gt;1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&amp;&amp;this.options.values.length?this._values(e):this.value();for(n=this.options.values,r=arguments[0],s=0;s&lt;n.length;s+=1)n[s]=this._trimAlignValue(r[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,i){var n,r=0;switch("range"===e&amp;&amp;this.options.range===!0&amp;&amp;("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&amp;&amp;(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&amp;&amp;(r=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;r&gt;n;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&amp;&amp;this.options.values.length){for(i=this.options.values.slice(),n=0;n&lt;i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t&lt;=this._valueMin())return this._valueMin();if(t&gt;=this._valueMax())return this._valueMax();var e=this.options.step&gt;0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)&gt;=e&amp;&amp;(n+=i&gt;0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,r,s,o=this.options.range,a=this.options,l=this,u=this._animateOff?!1:a.animate,h={};this.options.values&amp;&amp;this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[u?"animate":"css"](h,a.animate),l.options.range===!0&amp;&amp;("horizontal"===l.orientation?(0===n&amp;&amp;l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},a.animate),1===n&amp;&amp;l.range[u?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===n&amp;&amp;l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},a.animate),1===n&amp;&amp;l.range[u?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(n=this.value(),r=this._valueMin(),s=this._valueMax(),i=s!==r?(n-r)/(s-r)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](h,a.animate),"min"===o&amp;&amp;"horizontal"===this.orientation&amp;&amp;this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},a.animate),"max"===o&amp;&amp;"horizontal"===this.orientation&amp;&amp;this.range[u?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:a.animate}),"min"===o&amp;&amp;"vertical"===this.orientation&amp;&amp;this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},a.animate),"max"===o&amp;&amp;"vertical"===this.orientation&amp;&amp;this.range[u?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:a.animate}))},_handleEvents:{keydown:function(e){var n,r,s,o,a=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&amp;&amp;(this._keySliding=!0,t(e.target).addClass("ui-state-active"),n=this._start(e,a),n===!1))return}switch(o=this.options.step,r=s=this.options.values&amp;&amp;this.options.values.length?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:s=this._valueMin();break;case t.ui.keyCode.END:s=this._valueMax();break;case t.ui.keyCode.PAGE_UP:s=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/i);break;case t.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/i);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(r===this._valueMax())return;s=this._trimAlignValue(r+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(r===this._valueMin())return;s=this._trimAlignValue(r-o)}this._slide(e,a,s)},click:function(t){t.preventDefault()},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&amp;&amp;(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}})}(n),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&amp;&amp;this._trigger("change")}}t.widget("ui.spinner",{version:"1.10.3",defaultElement:"&lt;input&gt;",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],function(t,n){var r=i.attr(n);void 0!==r&amp;&amp;r.length&amp;&amp;(e[n]=r)}),e},_events:{keydown:function(t){this._start(t)&amp;&amp;this._keydown(t)&amp;&amp;t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&amp;&amp;this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&amp;&amp;!this._start(t))return!1;this._spin((e&gt;0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&amp;&amp;this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&amp;&amp;this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()&gt;Math.ceil(.5*t.height())&amp;&amp;t.height()&gt;0&amp;&amp;t.height(t.height()),this.options.disabled&amp;&amp;this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"&lt;span class='ui-spinner ui-widget ui-widget-content ui-corner-all'&gt;&lt;/span&gt;"},_buttonHtml:function(){return"&lt;a class='ui-spinner-button ui-spinner-up ui-corner-tr'&gt;&lt;span class='ui-icon "+this.options.icons.up+"'&gt;&amp;#9650;&lt;/span&gt;&lt;/a&gt;&lt;a class='ui-spinner-button ui-spinner-down ui-corner-br'&gt;&lt;span class='ui-icon "+this.options.icons.down+"'&gt;&amp;#9660;&lt;/span&gt;&lt;/a&gt;"},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&amp;&amp;this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&amp;&amp;(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&amp;&amp;t&gt;n.max?n.max:null!==n.min&amp;&amp;t&lt;n.min?n.min:t},_stop:function(t){this.spinning&amp;&amp;(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}("max"===t||"min"===t||"step"===t)&amp;&amp;"string"==typeof e&amp;&amp;(e=this._parse(e)),"icons"===t&amp;&amp;(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&amp;&amp;(e?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_parse:function(t){return"string"==typeof t&amp;&amp;""!==t&amp;&amp;(t=window.Globalize&amp;&amp;this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&amp;&amp;this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(t,e){var i;""!==t&amp;&amp;(i=this._parse(t),null!==i&amp;&amp;(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&amp;&amp;(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&amp;&amp;(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(n),function(t,e){function i(){return++r}function n(t){return t.hash.length&gt;1&amp;&amp;decodeURIComponent(t.href.replace(s,""))===decodeURIComponent(location.href.replace(s,""))}var r=0,s=/#.*$/;t.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav &gt; li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&amp;&amp;e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&amp;&amp;this.blur()}),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&amp;&amp;(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.options.active!==!1&amp;&amp;this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&amp;&amp;this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&amp;&amp;(n&amp;&amp;this.tabs.each(function(i,r){return t(r).attr("aria-controls")===n?(e=i,!1):void 0}),null===e&amp;&amp;(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&amp;&amp;(e=this.tabs.length?0:!1)),e!==!1&amp;&amp;(e=this.tabs.index(this.tabs.eq(e)),-1===e&amp;&amp;(e=i?!1:0)),!i&amp;&amp;e===!1&amp;&amp;this.anchors.length&amp;&amp;(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),r=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:r=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n===this.options.active?!1:n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,r),e.ctrlKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&amp;&amp;e.keyCode===t.ui.keyCode.UP&amp;&amp;(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&amp;&amp;e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&amp;&amp;e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function n(){return e&gt;r&amp;&amp;(e=0),0&gt;e&amp;&amp;(e=r),e}for(var r=this.tabs.length-1;-1!==t.inArray(n(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return"active"===t?void this._activate(e):"disabled"===t?void this._setupDisabled(e):(this._super(t,e),"collapsible"===t&amp;&amp;(this.element.toggleClass("ui-tabs-collapsible",e),e||this.options.active!==!1||this._activate(0)),"event"===t&amp;&amp;this._setupEvents(e),void("heightStyle"===t&amp;&amp;this._setupHeightStyle(e)))},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&amp;'()*+,.\/:;&lt;=&gt;?@\[\]\^`{|}~]/g,"\\$&amp;"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&amp;&amp;this.anchors.length?this.active.length&amp;&amp;!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("&gt; li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,r){var s,o,a,l=t(r).uniqueId().attr("id"),u=t(r).closest("li"),h=u.attr("aria-controls");n(r)?(s=r.hash,o=e.element.find(e._sanitizeSelector(s))):(a=e._tabId(u),s="#"+a,o=e.element.find(s),o.length||(o=e._createPanel(a),o.insertAfter(e.panels[i-1]||e.tablist)),o.attr("aria-live","polite")),o.length&amp;&amp;(e.panels=e.panels.add(o)),h&amp;&amp;u.data("ui-tabs-aria-controls",h),u.attr({"aria-controls":s.substring(1),"aria-labelledby":l}),o.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("&lt;div&gt;").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&amp;&amp;(e.length?e.length===this.anchors.length&amp;&amp;(e=!0):e=!1);for(var i,n=0;i=this.tabs[n];n++)e===!0||-1!==t.inArray(n,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&amp;&amp;t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&amp;&amp;"fixed"!==n&amp;&amp;(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&amp;&amp;(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),s=r.closest("li"),o=s[0]===n[0],a=o&amp;&amp;i.collapsible,l=a?t():this._getPanelForTab(s),u=n.length?this._getPanelForTab(n):t(),h={oldTab:n,oldPanel:u,newTab:a?t():s,newPanel:l};e.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||o&amp;&amp;!i.collapsible||this._trigger("beforeActivate",e,h)===!1||(i.active=a?!1:this.tabs.index(s),this.active=o?t():s,this.xhr&amp;&amp;this.xhr.abort(),u.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&amp;&amp;this.load(this.tabs.index(s),e),this._toggle(e,h))},_toggle:function(e,i){function n(){s.running=!1,s._trigger("activate",e,i)}function r(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&amp;&amp;s.options.show?s._show(o,s.options.show,n):(o.show(),n())}var s=this,o=i.newPanel,a=i.oldPanel;this.running=!0,a.length&amp;&amp;this.options.hide?this._hide(a,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a.hide(),r()),a.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),o.length&amp;&amp;a.length?i.oldTab.attr("tabIndex",-1):o.length&amp;&amp;this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&amp;&amp;(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&amp;&amp;(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&amp;&amp;this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&amp;&amp;this.panels.css("height","")},enable:function(i){var n=this.options.disabled;n!==!1&amp;&amp;(i===e?n=!1:(i=this._getIndex(i),n=t.isArray(n)?t.map(n,function(t){return t!==i?t:null}):t.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(n))},disable:function(i){var n=this.options.disabled;if(n!==!0){if(i===e)n=!0;else{if(i=this._getIndex(i),-1!==t.inArray(i,n))return;n=t.isArray(n)?t.merge([i],n).sort():[i]}this._setupDisabled(n)}},load:function(e,i){e=this._getIndex(e);var r=this,s=this.tabs.eq(e),o=s.find(".ui-tabs-anchor"),a=this._getPanelForTab(s),l={tab:s,panel:a};n(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,l)),this.xhr&amp;&amp;"canceled"!==this.xhr.statusText&amp;&amp;(s.addClass("ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){a.html(t),r._trigger("load",i,l)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&amp;&amp;r.panels.stop(!1,!0),s.removeClass("ui-tabs-loading"),a.removeAttr("aria-busy"),t===r.xhr&amp;&amp;delete r.xhr},1)})))},_ajaxSettings:function(e,i,n){var r=this;return{url:e.attr("href"),beforeSend:function(e,s){return r._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:s},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})}(n),function(t){function e(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))}function i(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),r=t.inArray(i,n);-1!==r&amp;&amp;n.splice(r,1),e.removeData("ui-tooltip-id"),n=t.trim(n.join(" ")),n?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")}var n=0;t.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var e=t(this).attr("title")||"";return t("&lt;a&gt;").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&amp;&amp;this._disable()},_setOption:function(e,i){var n=this;return"disabled"===e?(this[i?"_disable":"_enable"](),void(this.options[e]=i)):(this._super(e,i),void("content"===e&amp;&amp;t.each(this.tooltips,function(t,e){n._updateContent(e)})))},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event("blur");r.target=r.currentTarget=n[0],e.close(r,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is("[title]")&amp;&amp;e.data("ui-tooltip-title",e.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&amp;&amp;e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&amp;&amp;!n.data("ui-tooltip-id")&amp;&amp;(n.attr("title")&amp;&amp;n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&amp;&amp;"mouseover"===e.type&amp;&amp;n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&amp;&amp;(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&amp;&amp;(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,r=this,s=e?e.type:null;return"string"==typeof n?this._open(e,t,n):(i=n.call(t[0],function(i){t.data("ui-tooltip-open")&amp;&amp;r._delay(function(){e&amp;&amp;(e.type=s),this._open(e,t,i)})}),void(i&amp;&amp;this._open(e,t,i)))},_open:function(i,n,r){function s(t){u.of=t,o.is(":hidden")||o.position(u)}var o,a,l,u=t.extend({},this.options.position);if(r){if(o=this._find(n),o.length)return void o.find(".ui-tooltip-content").html(r);n.is("[title]")&amp;&amp;(i&amp;&amp;"mouseover"===i.type?n.attr("title",""):n.removeAttr("title")),o=this._tooltip(n),e(n,o.attr("id")),o.find(".ui-tooltip-content").html(r),this.options.track&amp;&amp;i&amp;&amp;/^mouse/.test(i.type)?(this._on(this.document,{mousemove:s}),s(i)):o.position(t.extend({of:n},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.show&amp;&amp;this.options.show.delay&amp;&amp;(l=this.delayedShow=setInterval(function(){o.is(":visible")&amp;&amp;(s(u.of),clearInterval(l))},t.fx.interval)),this._trigger("open",i,{tooltip:o}),a={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=n[0],this.close(i,!0)}},remove:function(){this._removeTooltip(o)}},i&amp;&amp;"mouseover"!==i.type||(a.mouseleave="close"),i&amp;&amp;"focusin"!==i.type||(a.focusout="close"),this._on(!0,n,a)}},close:function(e){var n=this,r=t(e?e.currentTarget:this.element),s=this._find(r);this.closing||(clearInterval(this.delayedShow),r.data("ui-tooltip-title")&amp;&amp;r.attr("title",r.data("ui-tooltip-title")),i(r),s.stop(!0),this._hide(s,this.options.hide,function(){n._removeTooltip(t(this))}),r.removeData("ui-tooltip-open"),this._off(r,"mouseleave focusout keyup"),r[0]!==this.element[0]&amp;&amp;this._off(r,"remove"),this._off(this.document,"mousemove"),e&amp;&amp;"mouseleave"===e.type&amp;&amp;t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete n.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:s}),this.closing=!1)},_tooltip:function(e){var i="ui-tooltip-"+n++,r=t("&lt;div&gt;").attr({id:i,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("&lt;div&gt;").addClass("ui-tooltip-content").appendTo(r),r.appendTo(this.document[0].body),this.tooltips[i]=e,r},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event("blur");r.target=r.currentTarget=n[0],e.close(r,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&amp;&amp;(n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))})}})}(n)},{jquery:18}],12:[function(t,e,i){var n=t("jquery");t("./core"),t("./widget"),
        t("./position"),function(t,e){t.widget("ui.menu",{version:"1.10.4",defaultElement:"&lt;ul&gt;",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&amp;&amp;t.preventDefault()},this)),this.options.disabled&amp;&amp;this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item &gt; a":function(t){t.preventDefault()},"click .ui-state-disabled &gt; a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&amp;&amp;i.not(".ui-state-disabled").length&amp;&amp;(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&amp;&amp;t(this.document[0].activeElement).closest(".ui-menu").length&amp;&amp;(this.element.trigger("focus",[!0]),this.active&amp;&amp;1===this.active.parents(".ui-menu").length&amp;&amp;clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&amp;&amp;e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&amp;")}var n,r,s,o,a,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&amp;&amp;!this.active.is(".ui-state-disabled")&amp;&amp;this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,r=this.previousFilter||"",s=String.fromCharCode(e.keyCode),o=!1,clearTimeout(this.filterTimer),s===r?o=!0:s=r+s,a=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())}),n=o&amp;&amp;-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(s=String.fromCharCode(e.keyCode),a=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())})),n.length?(this.focus(e,n),n.length&gt;1?(this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&amp;&amp;e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,n=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev("a"),r=t("&lt;span&gt;").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(r),e.attr("aria-labelledby",n.attr("id"))}),e=n.add(this.element),e.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&amp;&amp;!t.contains(this.element[0],this.active[0])&amp;&amp;this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&amp;&amp;this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&amp;&amp;"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&amp;&amp;this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&amp;&amp;"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&amp;&amp;t&amp;&amp;/^mouse/.test(t.type)&amp;&amp;this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,r,s,o,a;this._hasScroll()&amp;&amp;(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-i-n,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=e.height(),0&gt;r?this.activeMenu.scrollTop(s+r):r+a&gt;o&amp;&amp;this.activeMenu.scrollTop(s+r-o+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&amp;&amp;(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&amp;&amp;(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&amp;&amp;e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&amp;&amp;this.active.parent().closest(".ui-menu-item",this.element);e&amp;&amp;e.length&amp;&amp;(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&amp;&amp;this.active.children(".ui-menu ").children(".ui-menu-item").first();e&amp;&amp;e.length&amp;&amp;(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&amp;&amp;!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&amp;&amp;!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&amp;&amp;(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&amp;&amp;n.length&amp;&amp;this.active||(n=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,n)},nextPage:function(e){var i,n,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n-r&lt;0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+r&gt;0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()&lt;this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}})}(n)},{"./core":7,"./position":14,"./widget":17,jquery:18}],13:[function(t,e,i){var n=t("jquery");t("./widget"),function(t,e){var i=!1;t(document).mouseup(function(){i=!1}),t.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&amp;&amp;t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&amp;&amp;this._mouseUp(e),this._mouseDownEvent=e;var n=this,r=1===e.which,s="string"==typeof this.options.cancel&amp;&amp;e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return r&amp;&amp;!s&amp;&amp;this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&amp;&amp;this._mouseDelayMet(e)&amp;&amp;(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&amp;&amp;t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&amp;&amp;(!document.documentMode||document.documentMode&lt;9)&amp;&amp;!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&amp;&amp;this._mouseDelayMet(e)&amp;&amp;(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&amp;&amp;(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&amp;&amp;t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))&gt;=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(n)},{"./widget":17,jquery:18}],14:[function(t,e,i){var n=t("jquery");!function(t,e){function i(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}function r(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var s,o=Math.max,a=Math.abs,l=Math.round,u=/left|center|right/,h=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,p=/^\w+/,d=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(s!==e)return s;var i,n,r=t("&lt;div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'&gt;&lt;div style='height:100px;width:auto;'&gt;&lt;/div&gt;&lt;/div&gt;"),o=r.children()[0];return t("body").append(r),i=o.offsetWidth,r.css("overflow","scroll"),n=o.offsetWidth,i===n&amp;&amp;(n=r[0].clientWidth),r.remove(),s=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&amp;&amp;e.width&lt;e.element[0].scrollWidth,s="scroll"===n||"auto"===n&amp;&amp;e.height&lt;e.element[0].scrollHeight;return{width:s?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),r=!!i[0]&amp;&amp;9===i[0].nodeType;return{element:i,isWindow:n,isDocument:r,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var s,d,g,m,_,v,y=t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),x=(e.collision||"flip").split(" "),k={};return v=r(y),y[0].preventDefault&amp;&amp;(e.at="left top"),d=v.width,g=v.height,m=v.offset,_=t.extend({},m),t.each(["my","at"],function(){var t,i,n=(e[this]||"").split(" ");1===n.length&amp;&amp;(n=u.test(n[0])?n.concat(["center"]):h.test(n[0])?["center"].concat(n):["center","center"]),n[0]=u.test(n[0])?n[0]:"center",n[1]=h.test(n[1])?n[1]:"center",t=c.exec(n[0]),i=c.exec(n[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[p.exec(n[0])[0],p.exec(n[1])[0]]}),1===x.length&amp;&amp;(x[1]=x[0]),"right"===e.at[0]?_.left+=d:"center"===e.at[0]&amp;&amp;(_.left+=d/2),"bottom"===e.at[1]?_.top+=g:"center"===e.at[1]&amp;&amp;(_.top+=g/2),s=i(k.at,d,g),_.left+=s[0],_.top+=s[1],this.each(function(){var r,u,h=t(this),c=h.outerWidth(),p=h.outerHeight(),f=n(this,"marginLeft"),v=n(this,"marginTop"),M=c+f+n(this,"marginRight")+w.width,C=p+v+n(this,"marginBottom")+w.height,D=t.extend({},_),T=i(k.my,h.outerWidth(),h.outerHeight());"right"===e.my[0]?D.left-=c:"center"===e.my[0]&amp;&amp;(D.left-=c/2),"bottom"===e.my[1]?D.top-=p:"center"===e.my[1]&amp;&amp;(D.top-=p/2),D.left+=T[0],D.top+=T[1],t.support.offsetFractions||(D.left=l(D.left),D.top=l(D.top)),r={marginLeft:f,marginTop:v},t.each(["left","top"],function(i,n){t.ui.position[x[i]]&amp;&amp;t.ui.position[x[i]][n](D,{targetWidth:d,targetHeight:g,elemWidth:c,elemHeight:p,collisionPosition:r,collisionWidth:M,collisionHeight:C,offset:[s[0]+T[0],s[1]+T[1]],my:e.my,at:e.at,within:b,elem:h})}),e.using&amp;&amp;(u=function(t){var i=m.left-D.left,n=i+d-c,r=m.top-D.top,s=r+g-p,l={target:{element:y,left:m.left,top:m.top,width:d,height:g},element:{element:h,left:D.left,top:D.top,width:c,height:p},horizontal:0&gt;n?"left":i&gt;0?"right":"center",vertical:0&gt;s?"top":r&gt;0?"bottom":"middle"};c&gt;d&amp;&amp;a(i+n)&lt;d&amp;&amp;(l.horizontal="center"),p&gt;g&amp;&amp;a(r+s)&lt;g&amp;&amp;(l.vertical="middle"),o(a(i),a(n))&gt;o(a(r),a(s))?l.important="horizontal":l.important="vertical",e.using.call(this,t,l)}),h.offset(t.extend(D,{using:u}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,a=t.left-e.collisionPosition.marginLeft,l=r-a,u=a+e.collisionWidth-s-r;e.collisionWidth&gt;s?l&gt;0&amp;&amp;0&gt;=u?(i=t.left+l+e.collisionWidth-s-r,t.left+=l-i):u&gt;0&amp;&amp;0&gt;=l?t.left=r:l&gt;u?t.left=r+s-e.collisionWidth:t.left=r:l&gt;0?t.left+=l:u&gt;0?t.left-=u:t.left=o(t.left-a,t.left)},top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=r-a,u=a+e.collisionHeight-s-r;e.collisionHeight&gt;s?l&gt;0&amp;&amp;0&gt;=u?(i=t.top+l+e.collisionHeight-s-r,t.top+=l-i):u&gt;0&amp;&amp;0&gt;=l?t.top=r:l&gt;u?t.top=r+s-e.collisionHeight:t.top=r:l&gt;0?t.top+=l:u&gt;0?t.top-=u:t.top=o(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,s=r.offset.left+r.scrollLeft,o=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-e.collisionPosition.marginLeft,h=u-l,c=u+e.collisionWidth-o-l,p="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,d="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0&gt;h?(i=t.left+p+d+f+e.collisionWidth-o-s,(0&gt;i||i&lt;a(h))&amp;&amp;(t.left+=p+d+f)):c&gt;0&amp;&amp;(n=t.left-e.collisionPosition.marginLeft+p+d+f-l,(n&gt;0||a(n)&lt;c)&amp;&amp;(t.left+=p+d+f))},top:function(t,e){var i,n,r=e.within,s=r.offset.top+r.scrollTop,o=r.height,l=r.isWindow?r.scrollTop:r.offset.top,u=t.top-e.collisionPosition.marginTop,h=u-l,c=u+e.collisionHeight-o-l,p="top"===e.my[1],d=p?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0&gt;h?(n=t.top+d+f+g+e.collisionHeight-o-s,t.top+d+f+g&gt;h&amp;&amp;(0&gt;n||n&lt;a(h))&amp;&amp;(t.top+=d+f+g)):c&gt;0&amp;&amp;(i=t.top-e.collisionPosition.marginTop+d+f+g-l,t.top+d+f+g&gt;c&amp;&amp;(i&gt;0||a(i)&lt;c)&amp;&amp;(t.top+=d+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,r,s,o=document.getElementsByTagName("body")[0],a=document.createElement("div");e=document.createElement(o?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&amp;&amp;t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(s in n)e.style[s]=n[s];e.appendChild(a),i=o||document.documentElement,i.insertBefore(e,i.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",r=t(a).offset().left,t.support.offsetFractions=r&gt;10&amp;&amp;11&gt;r,e.innerHTML="",i.removeChild(e)}()}(n)},{jquery:18}],15:[function(t,e,i){var n=t("jquery");t("./core"),t("./mouse"),t("./widget"),function(t,e){function i(t,e,i){return t&gt;e&amp;&amp;e+i&gt;t}function n(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"&gt; *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||n(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t&gt;=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,r=!1,s=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,s.widgetName+"-item")===s?(n=t(this),!1):void 0}),t.data(e.target,s.widgetName+"-item")===s&amp;&amp;(n=t(e.target)),n&amp;&amp;(!this.options.handle||i||(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&amp;&amp;(r=!0)}),r))?(this.currentItem=n,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,i,n){var r,s,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&amp;&amp;this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&amp;&amp;this.currentItem.hide(),this._createPlaceholder(),o.containment&amp;&amp;this._setContainment(),o.cursor&amp;&amp;"auto"!==o.cursor&amp;&amp;(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",o.cursor),this.storedStylesheet=t("&lt;style&gt;*{ cursor: "+o.cursor+" !important; }&lt;/style&gt;").appendTo(s)),o.opacity&amp;&amp;(this.helper.css("opacity")&amp;&amp;(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&amp;&amp;(this.helper.css("zIndex")&amp;&amp;(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==document&amp;&amp;"HTML"!==this.scrollParent[0].tagName&amp;&amp;(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r&gt;=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&amp;&amp;(t.ui.ddmanager.current=this),t.ui.ddmanager&amp;&amp;!o.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,s,o=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&amp;&amp;(this.scrollParent[0]!==document&amp;&amp;"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY&lt;o.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top&lt;o.scrollSensitivity&amp;&amp;(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX&lt;o.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left&lt;o.scrollSensitivity&amp;&amp;(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-t(document).scrollTop()&lt;o.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())&lt;o.scrollSensitivity&amp;&amp;(a=t(document).scrollTop(t(document).scrollTop()+o.scrollSpeed)),e.pageX-t(document).scrollLeft()&lt;o.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())&lt;o.scrollSensitivity&amp;&amp;(a=t(document).scrollLeft(t(document).scrollLeft()+o.scrollSpeed))),a!==!1&amp;&amp;t.ui.ddmanager&amp;&amp;!o.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&amp;&amp;"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&amp;&amp;"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i&gt;=0;i--)if(n=this.items[i],r=n.item[0],s=this._intersectsWithPointer(n),s&amp;&amp;n.instance===this.currentContainer&amp;&amp;r!==this.currentItem[0]&amp;&amp;this.placeholder[1===s?"next":"prev"]()[0]!==r&amp;&amp;!t.contains(this.placeholder[0],r)&amp;&amp;("semi-dynamic"===this.options.type?!t.contains(this.element[0],r):!0)){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&amp;&amp;!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&amp;&amp;!this.options.dropBehaviour&amp;&amp;t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),s=this.options.axis,o={};s&amp;&amp;"x"!==s||(o.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),s&amp;&amp;"y"!==s||(o.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e&gt;=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&amp;&amp;(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&amp;&amp;(this.placeholder[0].parentNode&amp;&amp;this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&amp;&amp;this.helper&amp;&amp;this.helper[0].parentNode&amp;&amp;this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&amp;&amp;e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&amp;&amp;n.push((e.key||i[1]+"[]")+"="+(e.key&amp;&amp;e.expression?i[1]:i[2]))}),!n.length&amp;&amp;e.key&amp;&amp;n.push(e.key+"="),n.join("&amp;")},toArray:function(e){var i=this._getItemsAsjQuery(e&amp;&amp;e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,s=t.left,o=s+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,h=this.offset.click.left,c="x"===this.options.axis||n+u&gt;a&amp;&amp;l&gt;n+u,p="y"===this.options.axis||e+h&gt;s&amp;&amp;o&gt;e+h,d=c&amp;&amp;p;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&amp;&amp;this.helperProportions[this.floating?"width":"height"]&gt;t[this.floating?"width":"height"]?d:s&lt;e+this.helperProportions.width/2&amp;&amp;i-this.helperProportions.width/2&lt;o&amp;&amp;a&lt;n+this.helperProportions.height/2&amp;&amp;r-this.helperProportions.height/2&lt;l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||i(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||i(this.positionAbs.left+this.offset.click.left,t.left,t.width),r=e&amp;&amp;n,s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return r?this.floating?o&amp;&amp;"right"===o||"down"===s?2:1:s&amp;&amp;("down"===s?2:1):!1},_intersectsWithSides:function(t){var e=i(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=i(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),r=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&amp;&amp;s?"right"===s&amp;&amp;n||"left"===s&amp;&amp;!n:r&amp;&amp;("down"===r&amp;&amp;e||"up"===r&amp;&amp;!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&amp;&amp;(t&gt;0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&amp;&amp;(t&gt;0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){a.push(this)}var n,r,s,o,a=[],l=[],u=this._connectWith();if(u&amp;&amp;e)for(n=u.length-1;n&gt;=0;n--)for(s=t(u[n]),r=s.length-1;r&gt;=0;r--)o=t.data(s[r],this.widgetFullName),o&amp;&amp;o!==this&amp;&amp;!o.options.disabled&amp;&amp;l.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n&gt;=0;n--)l[n][0].each(i);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i&lt;e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,s,o,a,l,u,h=this.items,c=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],p=this._connectWith();if(p&amp;&amp;this.ready)for(i=p.length-1;i&gt;=0;i--)for(r=t(p[i]),n=r.length-1;n&gt;=0;n--)s=t.data(r[n],this.widgetFullName),s&amp;&amp;s!==this&amp;&amp;!s.options.disabled&amp;&amp;(c.push([t.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=c.length-1;i&gt;=0;i--)for(o=c[i][1],a=c[i][0],n=0,u=a.length;u&gt;n;n++)l=t(a[n]),l.data(this.widgetName+"-item",o),h.push({item:l,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&amp;&amp;this.helper&amp;&amp;(this.offset.parent=this._getParentOffset());var i,n,r,s;for(i=this.items.length-1;i&gt;=0;i--)n=this.items[i],n.instance!==this.currentContainer&amp;&amp;this.currentContainer&amp;&amp;n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),s=r.offset(),n.left=s.left,n.top=s.top);if(this.options.custom&amp;&amp;this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i&gt;=0;i--)s=this.containers[i].element.offset(),this.containers[i].containerCache.left=s.left,this.containers[i].containerCache.top=s.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&amp;&amp;n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),r=t("&lt;"+n+"&gt;",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each(function(){t("&lt;td&gt;&amp;#160;&lt;/td&gt;",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(r)}):"img"===n&amp;&amp;r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,r){(!i||n.forcePlaceholderSize)&amp;&amp;(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)));
        }}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var r,s,o,a,l,u,h,c,p,d,f=null,g=null;for(r=this.containers.length-1;r&gt;=0;r--)if(!t.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(f&amp;&amp;t.contains(this.containers[r].element[0],f.element[0]))continue;f=this.containers[r],g=r}else this.containers[r].containerCache.over&amp;&amp;(this.containers[r]._trigger("out",e,this._uiHash(this)),this.containers[r].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",e,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(o=1e4,a=null,d=f.floating||n(this.currentItem),l=d?"left":"top",u=d?"width":"height",h=this.positionAbs[l]+this.offset.click[l],s=this.items.length-1;s&gt;=0;s--)t.contains(this.containers[g].element[0],this.items[s].item[0])&amp;&amp;this.items[s].item[0]!==this.currentItem[0]&amp;&amp;(!d||i(this.positionAbs.top+this.offset.click.top,this.items[s].top,this.items[s].height))&amp;&amp;(c=this.items[s].item.offset()[l],p=!1,Math.abs(c-h)&gt;Math.abs(c+this.items[s][u]-h)&amp;&amp;(p=!0,c+=this.items[s][u]),Math.abs(c-h)&lt;o&amp;&amp;(o=Math.abs(c-h),a=this.items[s],this.direction=p?"up":"down"));if(!a&amp;&amp;!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[g].element,!0),this._trigger("change",e,this._uiHash()),this.containers[g]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",e,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&amp;&amp;(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&amp;&amp;n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&amp;&amp;n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&amp;&amp;(e=e.split(" ")),t.isArray(e)&amp;&amp;(e={left:+e[0],top:+e[1]||0}),"left"in e&amp;&amp;(this.offset.click.left=e.left+this.margins.left),"right"in e&amp;&amp;(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&amp;&amp;(this.offset.click.top=e.top+this.margins.top),"bottom"in e&amp;&amp;(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&amp;&amp;this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])&amp;&amp;(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&amp;&amp;"html"===this.offsetParent[0].tagName.toLowerCase()&amp;&amp;t.ui.ie)&amp;&amp;(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;"parent"===r.containment&amp;&amp;(r.containment=this.helper[0].parentNode),("document"===r.containment||"window"===r.containment)&amp;&amp;(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===r.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===r.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=this.options,s=e.pageX,o=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&amp;&amp;(this.containment&amp;&amp;(e.pageX-this.offset.click.left&lt;this.containment[0]&amp;&amp;(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top&lt;this.containment[1]&amp;&amp;(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left&gt;this.containment[2]&amp;&amp;(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top&gt;this.containment[3]&amp;&amp;(o=this.containment[3]+this.offset.click.top)),r.grid&amp;&amp;(i=this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1],o=this.containment?i-this.offset.click.top&gt;=this.containment[1]&amp;&amp;i-this.offset.click.top&lt;=this.containment[3]?i:i-this.offset.click.top&gt;=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/r.grid[0])*r.grid[0],s=this.containment?n-this.offset.click.left&gt;=this.containment[0]&amp;&amp;n-this.offset.click.left&lt;=this.containment[2]?n:n-this.offset.click.left&gt;=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&amp;&amp;this.refreshPositions(!n)})},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,r=[];if(!this._noFinalSort&amp;&amp;this.currentItem.parent().length&amp;&amp;this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)("auto"===this._storedCSS[n]||"static"===this._storedCSS[n])&amp;&amp;(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&amp;&amp;!e&amp;&amp;r.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&amp;&amp;this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&amp;&amp;this.domPosition.parent===this.currentItem.parent()[0]||e||r.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&amp;&amp;(e||(r.push(function(t){this._trigger("remove",t,this._uiHash())}),r.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n&gt;=0;n--)e||r.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&amp;&amp;(r.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&amp;&amp;(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&amp;&amp;this.helper.css("opacity",this._storedOpacity),this._storedZIndex&amp;&amp;this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),n=0;n&lt;r.length;n++)r[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&amp;&amp;this.helper.remove(),this.helper=null,!e){for(n=0;n&lt;r.length;n++)r[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&amp;&amp;this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(n)},{"./core":7,"./mouse":13,"./widget":17,jquery:18}],16:[function(t,e,i){var n=t("jquery");t("./core"),t("./widget"),t("./button"),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&amp;&amp;this._trigger("change")}}t.widget("ui.spinner",{version:"1.10.4",defaultElement:"&lt;input&gt;",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&amp;&amp;this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],function(t,n){var r=i.attr(n);void 0!==r&amp;&amp;r.length&amp;&amp;(e[n]=r)}),e},_events:{keydown:function(t){this._start(t)&amp;&amp;this._keydown(t)&amp;&amp;t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&amp;&amp;this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&amp;&amp;!this._start(t))return!1;this._spin((e&gt;0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&amp;&amp;this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&amp;&amp;this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()&gt;Math.ceil(.5*t.height())&amp;&amp;t.height()&gt;0&amp;&amp;t.height(t.height()),this.options.disabled&amp;&amp;this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"&lt;span class='ui-spinner ui-widget ui-widget-content ui-corner-all'&gt;&lt;/span&gt;"},_buttonHtml:function(){return"&lt;a class='ui-spinner-button ui-spinner-up ui-corner-tr'&gt;&lt;span class='ui-icon "+this.options.icons.up+"'&gt;&amp;#9650;&lt;/span&gt;&lt;/a&gt;&lt;a class='ui-spinner-button ui-spinner-down ui-corner-br'&gt;&lt;span class='ui-icon "+this.options.icons.down+"'&gt;&amp;#9660;&lt;/span&gt;&lt;/a&gt;"},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&amp;&amp;this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&amp;&amp;(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&amp;&amp;t&gt;n.max?n.max:null!==n.min&amp;&amp;t&lt;n.min?n.min:t},_stop:function(t){this.spinning&amp;&amp;(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}("max"===t||"min"===t||"step"===t)&amp;&amp;"string"==typeof e&amp;&amp;(e=this._parse(e)),"icons"===t&amp;&amp;(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&amp;&amp;(e?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_parse:function(t){return"string"==typeof t&amp;&amp;""!==t&amp;&amp;(t=window.Globalize&amp;&amp;this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&amp;&amp;this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(t,e){var i;""!==t&amp;&amp;(i=this._parse(t),null!==i&amp;&amp;(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&amp;&amp;(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&amp;&amp;(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(n)},{"./button":6,"./core":7,"./widget":17,jquery:18}],17:[function(t,e,i){var n=t("jquery");!function(t,e){var i=0,n=Array.prototype.slice,r=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(s){}r(e)},t.widget=function(e,i,n){var r,s,o,a,l={},u=e.split(".")[0];e=e.split(".")[1],r=u+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][r.toLowerCase()]=function(e){return!!t.data(e,r)},t[u]=t[u]||{},s=t[u][e],o=t[u][e]=function(t,e){return this._createWidget?void(arguments.length&amp;&amp;this._createWidget(t,e)):new o(t,e)},t.extend(o,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},r=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,s=this._superApply;return this._super=t,this._superApply=r,e=n.apply(this,arguments),this._super=i,this._superApply=s,e}}()):void(l[e]=n)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:s?a.widgetEventPrefix||e:e},l,{constructor:o,namespace:u,widgetName:e,widgetFullName:r}),s?(t.each(s._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)}),delete s._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o)},t.widget.extend=function(i){for(var r,s,o=n.call(arguments,1),a=0,l=o.length;l&gt;a;a++)for(r in o[a])s=o[a][r],o[a].hasOwnProperty(r)&amp;&amp;s!==e&amp;&amp;(t.isPlainObject(s)?i[r]=t.isPlainObject(i[r])?t.widget.extend({},i[r],s):t.widget.extend({},s):i[r]=s);return i},t.widget.bridge=function(i,r){var s=r.prototype.widgetFullName||i;t.fn[i]=function(o){var a="string"==typeof o,l=n.call(arguments,1),u=this;return o=!a&amp;&amp;l.length?t.widget.extend.apply(null,[o].concat(l)):o,a?this.each(function(){var n,r=t.data(this,s);return r?t.isFunction(r[o])&amp;&amp;"_"!==o.charAt(0)?(n=r[o].apply(r,l),n!==r&amp;&amp;n!==e?(u=n&amp;&amp;n.jquery?u.pushStack(n.get()):n,!1):void 0):t.error("no such method '"+o+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+o+"'")}):this.each(function(){var e=t.data(this,s);e?e.option(o||{})._init():t.data(this,s,new r(o,this))}),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"&lt;div&gt;",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&amp;&amp;(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&amp;&amp;this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var r,s,o,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},r=i.split("."),i=r.shift(),r.length){for(s=a[i]=t.widget.extend({},this.options[i]),o=0;o&lt;r.length-1;o++)s[r[o]]=s[r[o]]||{},s=s[r[o]];if(i=r.pop(),1===arguments.length)return s[i]===e?null:s[i];s[i]=n}else{if(1===arguments.length)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&amp;&amp;(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,i,n){var r,s=this;"boolean"!=typeof e&amp;&amp;(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,function(n,o){function a(){return e||s.options.disabled!==!0&amp;&amp;!t(this).hasClass("ui-state-disabled")?("string"==typeof o?s[o]:o).apply(s,arguments):void 0}"string"!=typeof o&amp;&amp;(a.guid=o.guid=o.guid||a.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+s.eventNamespace,h=l[2];h?r.delegate(h,u,a):i.bind(u,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var r,s,o=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(r in s)r in i||(i[r]=s[r]);return this.element.trigger(i,n),!(t.isFunction(o)&amp;&amp;o.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,r,s){"string"==typeof r&amp;&amp;(r={effect:r});var o,a=r?r===!0||"number"==typeof r?i:r.effect||i:e;r=r||{},"number"==typeof r&amp;&amp;(r={duration:r}),o=!t.isEmptyObject(r),r.complete=s,r.delay&amp;&amp;n.delay(r.delay),o&amp;&amp;t.effects&amp;&amp;t.effects.effect[a]?n[e](r):a!==e&amp;&amp;n[a]?n[a](r.duration,r.easing,s):n.queue(function(i){t(this)[e](),s&amp;&amp;s.call(n[0]),i()})}})}(n)},{jquery:18}],18:[function(t,e,i){!function(t,i){"object"==typeof e&amp;&amp;"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=t.length,i=K.type(t);return"function"===i||K.isWindow(t)?!1:1===t.nodeType&amp;&amp;e?!0:"array"===i||0===e||"number"==typeof e&amp;&amp;e&gt;0&amp;&amp;e-1 in t}function n(t,e,i){if(K.isFunction(e))return K.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return K.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(at.test(e))return K.filter(e,t,i);e=K.filter(e,t)}return K.grep(t,function(t){return $.call(e,t)&gt;=0!==i})}function r(t,e){for(;(t=t[e])&amp;&amp;1!==t.nodeType;);return t}function s(t){var e=ft[t]={};return K.each(t.match(dt)||[],function(t,i){e[i]=!0}),e}function o(){J.removeEventListener("DOMContentLoaded",o,!1),t.removeEventListener("load",o,!1),K.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=K.expando+a.uid++}function l(t,e,i){var n;if(void 0===i&amp;&amp;1===t.nodeType)if(n="data-"+e.replace(bt,"-$1").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:yt.test(i)?K.parseJSON(i):i}catch(r){}vt.set(t,e,i)}else i=void 0;return i}function u(){return!0}function h(){return!1}function c(){try{return J.activeElement}catch(t){}}function p(t,e){return K.nodeName(t,"table")&amp;&amp;K.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function d(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function f(t){var e=jt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var i=0,n=t.length;n&gt;i;i++)_t.set(t[i],"globalEval",!e||_t.get(e[i],"globalEval"))}function m(t,e){var i,n,r,s,o,a,l,u;if(1===e.nodeType){if(_t.hasData(t)&amp;&amp;(s=_t.access(t),o=_t.set(e,s),u=s.events)){delete o.handle,o.events={};for(r in u)for(i=0,n=u[r].length;n&gt;i;i++)K.event.add(e,r,u[r][i])}vt.hasData(t)&amp;&amp;(a=vt.access(t),l=K.extend({},a),vt.set(e,l))}}function _(t,e){var i=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&amp;&amp;K.nodeName(t,e)?K.merge([t],i):i}function v(t,e){var i=e.nodeName.toLowerCase();"input"===i&amp;&amp;Mt.test(t.type)?e.checked=t.checked:("input"===i||"textarea"===i)&amp;&amp;(e.defaultValue=t.defaultValue)}function y(e,i){var n,r=K(i.createElement(e)).appendTo(i.body),s=t.getDefaultComputedStyle&amp;&amp;(n=t.getDefaultComputedStyle(r[0]))?n.display:K.css(r[0],"display");return r.detach(),s}function b(t){var e=J,i=Ht[t];return i||(i=y(t,e),"none"!==i&amp;&amp;i||(Lt=(Lt||K("&lt;iframe frameborder='0' width='0' height='0'/&gt;")).appendTo(e.documentElement),e=Lt[0].contentDocument,e.write(),e.close(),i=y(t,e),Lt.detach()),Ht[t]=i),i}function w(t,e,i){var n,r,s,o,a=t.style;return i=i||qt(t),i&amp;&amp;(o=i.getPropertyValue(e)||i[e]),i&amp;&amp;(""!==o||K.contains(t.ownerDocument,t)||(o=K.style(t,e)),Wt.test(o)&amp;&amp;Bt.test(e)&amp;&amp;(n=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=n,a.minWidth=r,a.maxWidth=s)),void 0!==o?o+"":o}function x(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function k(t,e){if(e in t)return e;for(var i=e[0].toUpperCase()+e.slice(1),n=e,r=Xt.length;r--;)if(e=Xt[r]+i,e in t)return e;return n}function M(t,e,i){var n=Vt.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function C(t,e,i,n,r){for(var s=i===(n?"border":"content")?4:"width"===e?1:0,o=0;4&gt;s;s+=2)"margin"===i&amp;&amp;(o+=K.css(t,i+xt[s],!0,r)),n?("content"===i&amp;&amp;(o-=K.css(t,"padding"+xt[s],!0,r)),"margin"!==i&amp;&amp;(o-=K.css(t,"border"+xt[s]+"Width",!0,r))):(o+=K.css(t,"padding"+xt[s],!0,r),"padding"!==i&amp;&amp;(o+=K.css(t,"border"+xt[s]+"Width",!0,r)));return o}function D(t,e,i){var n=!0,r="width"===e?t.offsetWidth:t.offsetHeight,s=qt(t),o="border-box"===K.css(t,"boxSizing",!1,s);if(0&gt;=r||null==r){if(r=w(t,e,s),(0&gt;r||null==r)&amp;&amp;(r=t.style[e]),Wt.test(r))return r;n=o&amp;&amp;(Z.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+C(t,e,i||(o?"border":"content"),n,s)+"px"}function T(t,e){for(var i,n,r,s=[],o=0,a=t.length;a&gt;o;o++)n=t[o],n.style&amp;&amp;(s[o]=_t.get(n,"olddisplay"),i=n.style.display,e?(s[o]||"none"!==i||(n.style.display=""),""===n.style.display&amp;&amp;kt(n)&amp;&amp;(s[o]=_t.access(n,"olddisplay",b(n.nodeName)))):(r=kt(n),"none"===i&amp;&amp;r||_t.set(n,"olddisplay",r?i:K.css(n,"display"))));for(o=0;a&gt;o;o++)n=t[o],n.style&amp;&amp;(e&amp;&amp;"none"!==n.style.display&amp;&amp;""!==n.style.display||(n.style.display=e?s[o]||"":"none"));return t}function S(t,e,i,n,r){return new S.prototype.init(t,e,i,n,r)}function A(){return setTimeout(function(){Zt=void 0}),Zt=K.now()}function P(t,e){var i,n=0,r={height:t};for(e=e?1:0;4&gt;n;n+=2-e)i=xt[n],r["margin"+i]=r["padding"+i]=t;return e&amp;&amp;(r.opacity=r.width=t),r}function E(t,e,i){for(var n,r=(ie[e]||[]).concat(ie["*"]),s=0,o=r.length;o&gt;s;s++)if(n=r[s].call(i,e,t))return n}function I(t,e,i){var n,r,s,o,a,l,u,h,c=this,p={},d=t.style,f=t.nodeType&amp;&amp;kt(t),g=_t.get(t,"fxshow");i.queue||(a=K._queueHooks(t,"fx"),null==a.unqueued&amp;&amp;(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,K.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&amp;&amp;("height"in e||"width"in e)&amp;&amp;(i.overflow=[d.overflow,d.overflowX,d.overflowY],u=K.css(t,"display"),h="none"===u?_t.get(t,"olddisplay")||b(t.nodeName):u,"inline"===h&amp;&amp;"none"===K.css(t,"float")&amp;&amp;(d.display="inline-block")),i.overflow&amp;&amp;(d.overflow="hidden",c.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}));for(n in e)if(r=e[n],Qt.exec(r)){if(delete e[n],s=s||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;f=!0}p[n]=g&amp;&amp;g[n]||K.style(t,n)}else u=void 0;if(K.isEmptyObject(p))"inline"===("none"===u?b(t.nodeName):u)&amp;&amp;(d.display=u);else{g?"hidden"in g&amp;&amp;(f=g.hidden):g=_t.access(t,"fxshow",{}),s&amp;&amp;(g.hidden=!f),f?K(t).show():c.done(function(){K(t).hide()}),c.done(function(){var e;_t.remove(t,"fxshow");for(e in p)K.style(t,e,p[e])});for(n in p)o=E(f?g[n]:0,n,c),n in g||(g[n]=o.start,f&amp;&amp;(o.end=o.start,o.start="width"===n||"height"===n?1:0))}}function N(t,e){var i,n,r,s,o;for(i in t)if(n=K.camelCase(i),r=e[n],s=t[i],K.isArray(s)&amp;&amp;(r=s[1],s=t[i]=s[0]),i!==n&amp;&amp;(t[n]=s,delete t[i]),o=K.cssHooks[n],o&amp;&amp;"expand"in o){s=o.expand(s),delete t[n];for(i in s)i in t||(t[i]=s[i],e[i]=r)}else e[n]=r}function R(t,e,i){var n,r,s=0,o=ee.length,a=K.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Zt||A(),i=Math.max(0,u.startTime+u.duration-e),n=i/u.duration||0,s=1-n,o=0,l=u.tweens.length;l&gt;o;o++)u.tweens[o].run(s);return a.notifyWith(t,[u,s,i]),1&gt;s&amp;&amp;l?i:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:K.extend({},e),opts:K.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Zt||A(),duration:i.duration,tweens:[],createTween:function(e,i){var n=K.Tween(t,u.opts,e,i,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var i=0,n=e?u.tweens.length:0;if(r)return this;for(r=!0;n&gt;i;i++)u.tweens[i].run(1);return e?a.resolveWith(t,[u,e]):a.rejectWith(t,[u,e]),this}}),h=u.props;for(N(h,u.opts.specialEasing);o&gt;s;s++)if(n=ee[s].call(u,t,h,u.opts))return n;return K.map(h,E,u),K.isFunction(u.opts.start)&amp;&amp;u.opts.start.call(t,u),K.fx.timer(K.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function z(t){return function(e,i){"string"!=typeof e&amp;&amp;(i=e,e="*");var n,r=0,s=e.toLowerCase().match(dt)||[];if(K.isFunction(i))for(;n=s[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function j(t,e,i,n){function r(a){var l;return s[a]=!0,K.each(t[a]||[],function(t,a){var u=a(e,i,n);return"string"!=typeof u||o||s[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var s={},o=t===ye;return r(e.dataTypes[0])||!s["*"]&amp;&amp;r("*")}function O(t,e){var i,n,r=K.ajaxSettings.flatOptions||{};
        for(i in e)void 0!==e[i]&amp;&amp;((r[i]?t:n||(n={}))[i]=e[i]);return n&amp;&amp;K.extend(!0,t,n),t}function F(t,e,i){for(var n,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&amp;&amp;(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&amp;&amp;a[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}return s?(s!==l[0]&amp;&amp;l.unshift(s),i[s]):void 0}function L(t,e,i,n){var r,s,o,a,l,u={},h=t.dataTypes.slice();if(h[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(s=h.shift();s;)if(t.responseFields[s]&amp;&amp;(i[t.responseFields[s]]=e),!l&amp;&amp;n&amp;&amp;t.dataFilter&amp;&amp;(e=t.dataFilter(e,t.dataType)),l=s,s=h.shift())if("*"===s)s=l;else if("*"!==l&amp;&amp;l!==s){if(o=u[l+" "+s]||u["* "+s],!o)for(r in u)if(a=r.split(" "),a[1]===s&amp;&amp;(o=u[l+" "+a[0]]||u["* "+a[0]])){o===!0?o=u[r]:u[r]!==!0&amp;&amp;(s=a[0],h.unshift(a[1]));break}if(o!==!0)if(o&amp;&amp;t["throws"])e=o(e);else try{e=o(e)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}function H(t,e,i,n){var r;if(K.isArray(e))K.each(e,function(e,r){i||Me.test(t)?n(t,r):H(t+"["+("object"==typeof r?e:"")+"]",r,i,n)});else if(i||"object"!==K.type(e))n(t,e);else for(r in e)H(t+"["+r+"]",e[r],i,n)}function B(t){return K.isWindow(t)?t:9===t.nodeType&amp;&amp;t.defaultView}var W=[],q=W.slice,Y=W.concat,V=W.push,$=W.indexOf,U={},G=U.toString,X=U.hasOwnProperty,Z={},J=t.document,Q="2.1.3",K=function(t,e){return new K.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,it=/-([\da-z])/gi,nt=function(t,e){return e.toUpperCase()};K.fn=K.prototype={jquery:Q,constructor:K,selector:"",length:0,toArray:function(){return q.call(this)},get:function(t){return null!=t?0&gt;t?this[t+this.length]:this[t]:q.call(this)},pushStack:function(t){var e=K.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return K.each(this,t,e)},map:function(t){return this.pushStack(K.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(q.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0&gt;t?e:0);return this.pushStack(i&gt;=0&amp;&amp;e&gt;i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:V,sort:W.sort,splice:W.splice},K.extend=K.fn.extend=function(){var t,e,i,n,r,s,o=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof o&amp;&amp;(u=o,o=arguments[a]||{},a++),"object"==typeof o||K.isFunction(o)||(o={}),a===l&amp;&amp;(o=this,a--);l&gt;a;a++)if(null!=(t=arguments[a]))for(e in t)i=o[e],n=t[e],o!==n&amp;&amp;(u&amp;&amp;n&amp;&amp;(K.isPlainObject(n)||(r=K.isArray(n)))?(r?(r=!1,s=i&amp;&amp;K.isArray(i)?i:[]):s=i&amp;&amp;K.isPlainObject(i)?i:{},o[e]=K.extend(u,s,n)):void 0!==n&amp;&amp;(o[e]=n));return o},K.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===K.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&amp;&amp;t===t.window},isNumeric:function(t){return!K.isArray(t)&amp;&amp;t-parseFloat(t)+1&gt;=0},isPlainObject:function(t){return"object"!==K.type(t)||t.nodeType||K.isWindow(t)?!1:t.constructor&amp;&amp;!X.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?U[G.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;t=K.trim(t),t&amp;&amp;(1===t.indexOf("use strict")?(e=J.createElement("script"),e.text=t,J.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(et,"ms-").replace(it,nt)},nodeName:function(t,e){return t.nodeName&amp;&amp;t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r,s=0,o=t.length,a=i(t);if(n){if(a)for(;o&gt;s&amp;&amp;(r=e.apply(t[s],n),r!==!1);s++);else for(s in t)if(r=e.apply(t[s],n),r===!1)break}else if(a)for(;o&gt;s&amp;&amp;(r=e.call(t[s],s,t[s]),r!==!1);s++);else for(s in t)if(r=e.call(t[s],s,t[s]),r===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var n=e||[];return null!=t&amp;&amp;(i(Object(t))?K.merge(n,"string"==typeof t?[t]:t):V.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:$.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;i&gt;n;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n,r=[],s=0,o=t.length,a=!i;o&gt;s;s++)n=!e(t[s],s),n!==a&amp;&amp;r.push(t[s]);return r},map:function(t,e,n){var r,s=0,o=t.length,a=i(t),l=[];if(a)for(;o&gt;s;s++)r=e(t[s],s,n),null!=r&amp;&amp;l.push(r);else for(s in t)r=e(t[s],s,n),null!=r&amp;&amp;l.push(r);return Y.apply([],l)},guid:1,proxy:function(t,e){var i,n,r;return"string"==typeof e&amp;&amp;(i=t[e],e=t,t=i),K.isFunction(t)?(n=q.call(arguments,2),r=function(){return t.apply(e||this,n.concat(q.call(arguments)))},r.guid=t.guid=t.guid||K.guid++,r):void 0},now:Date.now,support:Z}),K.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){U["[object "+e+"]"]=e.toLowerCase()});var rt=function(t){function e(t,e,i,n){var r,s,o,a,l,u,c,d,f,g;if((e?e.ownerDocument||e:H)!==I&amp;&amp;E(e),e=e||I,i=i||[],a=e.nodeType,"string"!=typeof t||!t||1!==a&amp;&amp;9!==a&amp;&amp;11!==a)return i;if(!n&amp;&amp;R){if(11!==a&amp;&amp;(r=vt.exec(t)))if(o=r[1]){if(9===a){if(s=e.getElementById(o),!s||!s.parentNode)return i;if(s.id===o)return i.push(s),i}else if(e.ownerDocument&amp;&amp;(s=e.ownerDocument.getElementById(o))&amp;&amp;F(e,s)&amp;&amp;s.id===o)return i.push(s),i}else{if(r[2])return Q.apply(i,e.getElementsByTagName(t)),i;if((o=r[3])&amp;&amp;w.getElementsByClassName)return Q.apply(i,e.getElementsByClassName(o)),i}if(w.qsa&amp;&amp;(!z||!z.test(t))){if(d=c=L,f=e,g=1!==a&amp;&amp;t,1===a&amp;&amp;"object"!==e.nodeName.toLowerCase()){for(u=C(t),(c=e.getAttribute("id"))?d=c.replace(bt,"\\$&amp;"):e.setAttribute("id",d),d="[id='"+d+"'] ",l=u.length;l--;)u[l]=d+p(u[l]);f=yt.test(t)&amp;&amp;h(e.parentNode)||e,g=u.join(",")}if(g)try{return Q.apply(i,f.querySelectorAll(g)),i}catch(m){}finally{c||e.removeAttribute("id")}}}return T(t.replace(lt,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")&gt;x.cacheLength&amp;&amp;delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[L]=!0,t}function r(t){var e=I.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&amp;&amp;e.parentNode.removeChild(e),e=null}}function s(t,e){for(var i=t.split("|"),n=t.length;n--;)x.attrHandle[i[n]]=e}function o(t,e){var i=e&amp;&amp;t,n=i&amp;&amp;1===t.nodeType&amp;&amp;1===e.nodeType&amp;&amp;(~e.sourceIndex||U)-(~t.sourceIndex||U);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&amp;&amp;e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&amp;&amp;e.type===t}}function u(t){return n(function(e){return e=+e,n(function(i,n){for(var r,s=t([],i.length,e),o=s.length;o--;)i[r=s[o]]&amp;&amp;(i[r]=!(n[r]=i[r]))})})}function h(t){return t&amp;&amp;"undefined"!=typeof t.getElementsByTagName&amp;&amp;t}function c(){}function p(t){for(var e=0,i=t.length,n="";i&gt;e;e++)n+=t[e].value;return n}function d(t,e,i){var n=e.dir,r=i&amp;&amp;"parentNode"===n,s=W++;return e.first?function(e,i,s){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,s)}:function(e,i,o){var a,l,u=[B,s];if(o){for(;e=e[n];)if((1===e.nodeType||r)&amp;&amp;t(e,i,o))return!0}else for(;e=e[n];)if(1===e.nodeType||r){if(l=e[L]||(e[L]={}),(a=l[n])&amp;&amp;a[0]===B&amp;&amp;a[1]===s)return u[2]=a[2];if(l[n]=u,u[2]=t(e,i,o))return!0}}}function f(t){return t.length&gt;1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function g(t,i,n){for(var r=0,s=i.length;s&gt;r;r++)e(t,i[r],n);return n}function m(t,e,i,n,r){for(var s,o=[],a=0,l=t.length,u=null!=e;l&gt;a;a++)(s=t[a])&amp;&amp;(!i||i(s,n,r))&amp;&amp;(o.push(s),u&amp;&amp;e.push(a));return o}function _(t,e,i,r,s,o){return r&amp;&amp;!r[L]&amp;&amp;(r=_(r)),s&amp;&amp;!s[L]&amp;&amp;(s=_(s,o)),n(function(n,o,a,l){var u,h,c,p=[],d=[],f=o.length,_=n||g(e||"*",a.nodeType?[a]:a,[]),v=!t||!n&amp;&amp;e?_:m(_,p,t,a,l),y=i?s||(n?t:f||r)?[]:o:v;if(i&amp;&amp;i(v,y,a,l),r)for(u=m(y,d),r(u,[],a,l),h=u.length;h--;)(c=u[h])&amp;&amp;(y[d[h]]=!(v[d[h]]=c));if(n){if(s||t){if(s){for(u=[],h=y.length;h--;)(c=y[h])&amp;&amp;u.push(v[h]=c);s(null,y=[],u,l)}for(h=y.length;h--;)(c=y[h])&amp;&amp;(u=s?tt(n,c):p[h])&gt;-1&amp;&amp;(n[u]=!(o[u]=c))}}else y=m(y===o?y.splice(f,y.length):y),s?s(null,o,y,l):Q.apply(o,y)})}function v(t){for(var e,i,n,r=t.length,s=x.relative[t[0].type],o=s||x.relative[" "],a=s?1:0,l=d(function(t){return t===e},o,!0),u=d(function(t){return tt(e,t)&gt;-1},o,!0),h=[function(t,i,n){var r=!s&amp;&amp;(n||i!==S)||((e=i).nodeType?l(t,i,n):u(t,i,n));return e=null,r}];r&gt;a;a++)if(i=x.relative[t[a].type])h=[d(f(h),i)];else{if(i=x.filter[t[a].type].apply(null,t[a].matches),i[L]){for(n=++a;r&gt;n&amp;&amp;!x.relative[t[n].type];n++);return _(a&gt;1&amp;&amp;f(h),a&gt;1&amp;&amp;p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(lt,"$1"),i,n&gt;a&amp;&amp;v(t.slice(a,n)),r&gt;n&amp;&amp;v(t=t.slice(n)),r&gt;n&amp;&amp;p(t))}h.push(i)}return f(h)}function y(t,i){var r=i.length&gt;0,s=t.length&gt;0,o=function(n,o,a,l,u){var h,c,p,d=0,f="0",g=n&amp;&amp;[],_=[],v=S,y=n||s&amp;&amp;x.find.TAG("*",u),b=B+=null==v?1:Math.random()||.1,w=y.length;for(u&amp;&amp;(S=o!==I&amp;&amp;o);f!==w&amp;&amp;null!=(h=y[f]);f++){if(s&amp;&amp;h){for(c=0;p=t[c++];)if(p(h,o,a)){l.push(h);break}u&amp;&amp;(B=b)}r&amp;&amp;((h=!p&amp;&amp;h)&amp;&amp;d--,n&amp;&amp;g.push(h))}if(d+=f,r&amp;&amp;f!==d){for(c=0;p=i[c++];)p(g,_,o,a);if(n){if(d&gt;0)for(;f--;)g[f]||_[f]||(_[f]=Z.call(l));_=m(_)}Q.apply(l,_),u&amp;&amp;!n&amp;&amp;_.length&gt;0&amp;&amp;d+i.length&gt;1&amp;&amp;e.uniqueSort(l)}return u&amp;&amp;(B=b,S=v),g};return r?n(o):o}var b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F,L="sizzle"+1*new Date,H=t.document,B=0,W=0,q=i(),Y=i(),V=i(),$=function(t,e){return t===e&amp;&amp;(P=!0),0},U=1&lt;&lt;31,G={}.hasOwnProperty,X=[],Z=X.pop,J=X.push,Q=X.push,K=X.slice,tt=function(t,e){for(var i=0,n=t.length;n&gt;i;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt=nt.replace("w","w#"),st="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+it+"*\\]",ot=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",at=new RegExp(it+"+","g"),lt=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),ut=new RegExp("^"+it+"*,"+it+"*"),ht=new RegExp("^"+it+"*([&gt;+~]|"+it+")"+it+"*"),ct=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),pt=new RegExp(ot),dt=new RegExp("^"+rt+"$"),ft={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt.replace("w","w*")+")"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[&gt;+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,_t=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),xt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:0&gt;n?String.fromCharCode(n+65536):String.fromCharCode(n&gt;&gt;10|55296,1023&amp;n|56320)},kt=function(){E()};try{Q.apply(X=K.call(H.childNodes),H.childNodes),X[H.childNodes.length].nodeType}catch(Mt){Q={apply:X.length?function(t,e){J.apply(t,K.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}w=e.support={},M=e.isXML=function(t){var e=t&amp;&amp;(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},E=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:H;return n!==I&amp;&amp;9===n.nodeType&amp;&amp;n.documentElement?(I=n,N=n.documentElement,i=n.defaultView,i&amp;&amp;i!==i.top&amp;&amp;(i.addEventListener?i.addEventListener("unload",kt,!1):i.attachEvent&amp;&amp;i.attachEvent("onunload",kt)),R=!M(n),w.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=r(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=_t.test(n.getElementsByClassName),w.getById=r(function(t){return N.appendChild(t).id=L,!n.getElementsByName||!n.getElementsByName(L).length}),w.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&amp;&amp;R){var i=e.getElementById(t);return i&amp;&amp;i.parentNode?[i]:[]}},x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){var i="undefined"!=typeof t.getAttributeNode&amp;&amp;t.getAttributeNode("id");return i&amp;&amp;i.value===e}}),x.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,s=e.getElementsByTagName(t);if("*"===t){for(;i=s[r++];)1===i.nodeType&amp;&amp;n.push(i);return n}return s},x.find.CLASS=w.getElementsByClassName&amp;&amp;function(t,e){return R?e.getElementsByClassName(t):void 0},j=[],z=[],(w.qsa=_t.test(n.querySelectorAll))&amp;&amp;(r(function(t){N.appendChild(t).innerHTML="&lt;a id='"+L+"'&gt;&lt;/a&gt;&lt;select id='"+L+"-\f]' msallowcapture=''&gt;&lt;option selected=''&gt;&lt;/option&gt;&lt;/select&gt;",t.querySelectorAll("[msallowcapture^='']").length&amp;&amp;z.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||z.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+L+"-]").length||z.push("~="),t.querySelectorAll(":checked").length||z.push(":checked"),t.querySelectorAll("a#"+L+"+*").length||z.push(".#.+[+~]")}),r(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&amp;&amp;z.push("name"+it+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||z.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),z.push(",.*:")})),(w.matchesSelector=_t.test(O=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&amp;&amp;r(function(t){w.disconnectedMatch=O.call(t,"div"),O.call(t,"[s!='']:x"),j.push("!=",ot)}),z=z.length&amp;&amp;new RegExp(z.join("|")),j=j.length&amp;&amp;new RegExp(j.join("|")),e=_t.test(N.compareDocumentPosition),F=e||_t.test(N.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&amp;&amp;e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&amp;&amp;16&amp;t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return P=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&amp;i||!w.sortDetached&amp;&amp;e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===H&amp;&amp;F(H,t)?-1:e===n||e.ownerDocument===H&amp;&amp;F(H,e)?1:A?tt(A,t)-tt(A,e):0:4&amp;i?-1:1)}:function(t,e){if(t===e)return P=!0,0;var i,r=0,s=t.parentNode,a=e.parentNode,l=[t],u=[e];if(!s||!a)return t===n?-1:e===n?1:s?-1:a?1:A?tt(A,t)-tt(A,e):0;if(s===a)return o(t,e);for(i=t;i=i.parentNode;)l.unshift(i);for(i=e;i=i.parentNode;)u.unshift(i);for(;l[r]===u[r];)r++;return r?o(l[r],u[r]):l[r]===H?-1:u[r]===H?1:0},n):I},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==I&amp;&amp;E(t),i=i.replace(ct,"='$1']"),w.matchesSelector&amp;&amp;R&amp;&amp;(!j||!j.test(i))&amp;&amp;(!z||!z.test(i)))try{var n=O.call(t,i);if(n||w.disconnectedMatch||t.document&amp;&amp;11!==t.document.nodeType)return n}catch(r){}return e(i,I,null,[t]).length&gt;0},e.contains=function(t,e){return(t.ownerDocument||t)!==I&amp;&amp;E(t),F(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==I&amp;&amp;E(t);var i=x.attrHandle[e.toLowerCase()],n=i&amp;&amp;G.call(x.attrHandle,e.toLowerCase())?i(t,e,!R):void 0;return void 0!==n?n:w.attributes||!R?t.getAttribute(e):(n=t.getAttributeNode(e))&amp;&amp;n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(P=!w.detectDuplicates,A=!w.sortStable&amp;&amp;t.slice(0),t.sort($),P){for(;e=t[r++];)e===t[r]&amp;&amp;(n=i.push(r));for(;n--;)t.splice(i[n],1)}return A=null,t},k=e.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=k(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=k(e);return i},x=e.selectors={cacheLength:50,createPseudo:n,match:ft,attrHandle:{},find:{},relative:{"&gt;":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,xt),"~="===t[2]&amp;&amp;(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&amp;&amp;e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&amp;&amp;t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&amp;&amp;pt.test(i)&amp;&amp;(e=C(i,!0))&amp;&amp;(e=i.indexOf(")",i.length-e)-i.length)&amp;&amp;(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&amp;&amp;t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&amp;&amp;q(t,function(t){return e.test("string"==typeof t.className&amp;&amp;t.className||"undefined"!=typeof t.getAttribute&amp;&amp;t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(r){var s=e.attr(r,t);return null==s?"!="===i:i?(s+="","="===i?s===n:"!="===i?s!==n:"^="===i?n&amp;&amp;0===s.indexOf(n):"*="===i?n&amp;&amp;s.indexOf(n)&gt;-1:"$="===i?n&amp;&amp;s.slice(-n.length)===n:"~="===i?(" "+s.replace(at," ")+" ").indexOf(n)&gt;-1:"|="===i?s===n||s.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(t,e,i,n,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===n&amp;&amp;0===r?function(t){return!!t.parentNode}:function(e,i,l){var u,h,c,p,d,f,g=s!==o?"nextSibling":"previousSibling",m=e.parentNode,_=a&amp;&amp;e.nodeName.toLowerCase(),v=!l&amp;&amp;!a;if(m){if(s){for(;g;){for(c=e;c=c[g];)if(a?c.nodeName.toLowerCase()===_:1===c.nodeType)return!1;f=g="only"===t&amp;&amp;!f&amp;&amp;"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&amp;&amp;v){for(h=m[L]||(m[L]={}),u=h[t]||[],d=u[0]===B&amp;&amp;u[1],p=u[0]===B&amp;&amp;u[2],c=d&amp;&amp;m.childNodes[d];c=++d&amp;&amp;c&amp;&amp;c[g]||(p=d=0)||f.pop();)if(1===c.nodeType&amp;&amp;++p&amp;&amp;c===e){h[t]=[B,d,p];break}}else if(v&amp;&amp;(u=(e[L]||(e[L]={}))[t])&amp;&amp;u[0]===B)p=u[1];else for(;(c=++d&amp;&amp;c&amp;&amp;c[g]||(p=d=0)||f.pop())&amp;&amp;((a?c.nodeName.toLowerCase()!==_:1!==c.nodeType)||!++p||(v&amp;&amp;((c[L]||(c[L]={}))[t]=[B,p]),c!==e)););return p-=r,p===n||p%n===0&amp;&amp;p/n&gt;=0}}},PSEUDO:function(t,i){var r,s=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return s[L]?s(i):s.length&gt;1?(r=[t,t,"",i],x.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,r=s(t,i),o=r.length;o--;)n=tt(t,r[o]),t[n]=!(e[n]=r[o])}):function(t){return s(t,0,r)}):s}},pseudos:{not:n(function(t){var e=[],i=[],r=D(t.replace(lt,"$1"));return r[L]?n(function(t,e,i,n){for(var s,o=r(t,null,n,[]),a=t.length;a--;)(s=o[a])&amp;&amp;(t[a]=!(e[a]=s))}):function(t,n,s){return e[0]=t,r(e,null,s,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length&gt;0}}),contains:n(function(t){return t=t.replace(wt,xt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)&gt;-1}}),lang:n(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,xt).toLowerCase(),function(e){var i;do if(i=R?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&amp;&amp;1===e.nodeType);return!1}}),target:function(e){var i=t.location&amp;&amp;t.location.hash;return i&amp;&amp;i.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===I.activeElement&amp;&amp;(!I.hasFocus||I.hasFocus())&amp;&amp;!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&amp;&amp;!!t.checked||"option"===e&amp;&amp;!!t.selected},selected:function(t){return t.parentNode&amp;&amp;t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType&lt;6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return gt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&amp;&amp;"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&amp;&amp;"text"===t.type&amp;&amp;(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,i){return[0&gt;i?i+e:i]}),even:u(function(t,e){for(var i=0;e&gt;i;i+=2)t.push(i);return t}),odd:u(function(t,e){for(var i=1;e&gt;i;i+=2)t.push(i);return t}),lt:u(function(t,e,i){for(var n=0&gt;i?i+e:i;--n&gt;=0;)t.push(n);return t}),gt:u(function(t,e,i){for(var n=0&gt;i?i+e:i;++n&lt;e;)t.push(n);return t})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=l(b);return c.prototype=x.filters=x.pseudos,x.setFilters=new c,C=e.tokenize=function(t,i){var n,r,s,o,a,l,u,h=Y[t+" "];if(h)return i?0:h.slice(0);for(a=t,l=[],u=x.preFilter;a;){(!n||(r=ut.exec(a)))&amp;&amp;(r&amp;&amp;(a=a.slice(r[0].length)||a),l.push(s=[])),n=!1,(r=ht.exec(a))&amp;&amp;(n=r.shift(),s.push({value:n,type:r[0].replace(lt," ")}),a=a.slice(n.length));for(o in x.filter)!(r=ft[o].exec(a))||u[o]&amp;&amp;!(r=u[o](r))||(n=r.shift(),s.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):Y(t,l).slice(0)},D=e.compile=function(t,e){var i,n=[],r=[],s=V[t+" "];if(!s){for(e||(e=C(t)),i=e.length;i--;)s=v(e[i]),s[L]?n.push(s):r.push(s);s=V(t,y(r,n)),s.selector=t}return s},T=e.select=function(t,e,i,n){var r,s,o,a,l,u="function"==typeof t&amp;&amp;t,c=!n&amp;&amp;C(t=u.selector||t);if(i=i||[],1===c.length){if(s=c[0]=c[0].slice(0),s.length&gt;2&amp;&amp;"ID"===(o=s[0]).type&amp;&amp;w.getById&amp;&amp;9===e.nodeType&amp;&amp;R&amp;&amp;x.relative[s[1].type]){if(e=(x.find.ID(o.matches[0].replace(wt,xt),e)||[])[0],!e)return i;u&amp;&amp;(e=e.parentNode),t=t.slice(s.shift().value.length)}for(r=ft.needsContext.test(t)?0:s.length;r--&amp;&amp;(o=s[r],!x.relative[a=o.type]);)if((l=x.find[a])&amp;&amp;(n=l(o.matches[0].replace(wt,xt),yt.test(s[0].type)&amp;&amp;h(e.parentNode)||e))){if(s.splice(r,1),t=n.length&amp;&amp;p(s),!t)return Q.apply(i,n),i;break}}return(u||D(t,c))(n,e,!R,i,yt.test(t)&amp;&amp;h(e.parentNode)||e),i},w.sortStable=L.split("").sort($).join("")===L,w.detectDuplicates=!!P,E(),w.sortDetached=r(function(t){return 1&amp;t.compareDocumentPosition(I.createElement("div"))}),r(function(t){return t.innerHTML="&lt;a href='#'&gt;&lt;/a&gt;","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&amp;&amp;r(function(t){return t.innerHTML="&lt;input/&gt;",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||s(et,function(t,e,i){var n;return i?void 0:t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&amp;&amp;n.specified?n.value:null}),e}(t);K.find=rt,K.expr=rt.selectors,K.expr[":"]=K.expr.pseudos,K.unique=rt.uniqueSort,K.text=rt.getText,K.isXMLDoc=rt.isXML,K.contains=rt.contains;var st=K.expr.match.needsContext,ot=/^&lt;(\w+)\s*\/?&gt;(?:&lt;\/\1&gt;|)$/,at=/^.[^:#\[\.,]*$/;K.filter=function(t,e,i){var n=e[0];return i&amp;&amp;(t=":not("+t+")"),1===e.length&amp;&amp;1===n.nodeType?K.find.matchesSelector(n,t)?[n]:[]:K.find.matches(t,K.grep(e,function(t){return 1===t.nodeType}))},K.fn.extend({find:function(t){var e,i=this.length,n=[],r=this;if("string"!=typeof t)return this.pushStack(K(t).filter(function(){for(e=0;i&gt;e;e++)if(K.contains(r[e],this))return!0}));for(e=0;i&gt;e;e++)K.find(t,r[e],n);return n=this.pushStack(i&gt;1?K.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&amp;&amp;st.test(t)?K(t):t||[],!1).length}});var lt,ut=/^(?:\s*(&lt;[\w\W]+&gt;)[^&gt;]*|#([\w-]*))$/,ht=K.fn.init=function(t,e){var i,n;if(!t)return this;if("string"==typeof t){if(i="&lt;"===t[0]&amp;&amp;"&gt;"===t[t.length-1]&amp;&amp;t.length&gt;=3?[null,t,null]:ut.exec(t),!i||!i[1]&amp;&amp;e)return!e||e.jquery?(e||lt).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof K?e[0]:e,K.merge(this,K.parseHTML(i[1],e&amp;&amp;e.nodeType?e.ownerDocument||e:J,!0)),ot.test(i[1])&amp;&amp;K.isPlainObject(e))for(i in e)K.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return n=J.getElementById(i[2]),n&amp;&amp;n.parentNode&amp;&amp;(this.length=1,this[0]=n),this.context=J,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):K.isFunction(t)?"undefined"!=typeof lt.ready?lt.ready(t):t(K):(void 0!==t.selector&amp;&amp;(this.selector=t.selector,this.context=t.context),K.makeArray(t,this))};ht.prototype=K.fn,lt=K(J);var ct=/^(?:parents|prev(?:Until|All))/,pt={children:!0,contents:!0,next:!0,prev:!0};K.extend({dir:function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&amp;&amp;9!==t.nodeType;)if(1===t.nodeType){if(r&amp;&amp;K(t).is(i))break;n.push(t)}return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&amp;&amp;t!==e&amp;&amp;i.push(t);return i}}),K.fn.extend({has:function(t){var e=K(t,this),i=e.length;return this.filter(function(){for(var t=0;i&gt;t;t++)if(K.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,r=this.length,s=[],o=st.test(t)||"string"!=typeof t?K(t,e||this.context):0;r&gt;n;n++)for(i=this[n];i&amp;&amp;i!==e;i=i.parentNode)if(i.nodeType&lt;11&amp;&amp;(o?o.index(i)&gt;-1:1===i.nodeType&amp;&amp;K.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(s.length&gt;1?K.unique(s):s)},index:function(t){return t?"string"==typeof t?$.call(K(t),this[0]):$.call(this,t.jquery?t[0]:t):this[0]&amp;&amp;this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(K.unique(K.merge(this.get(),K(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),K.each({parent:function(t){var e=t.parentNode;return e&amp;&amp;11!==e.nodeType?e:null},parents:function(t){return K.dir(t,"parentNode")},parentsUntil:function(t,e,i){return K.dir(t,"parentNode",i)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return K.dir(t,"nextSibling")},prevAll:function(t){return K.dir(t,"previousSibling")},nextUntil:function(t,e,i){return K.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return K.dir(t,"previousSibling",i)},siblings:function(t){return K.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return K.sibling(t.firstChild)},contents:function(t){return t.contentDocument||K.merge([],t.childNodes)}},function(t,e){K.fn[t]=function(i,n){var r=K.map(this,e,i);return"Until"!==t.slice(-5)&amp;&amp;(n=i),n&amp;&amp;"string"==typeof n&amp;&amp;(r=K.filter(n,r)),this.length&gt;1&amp;&amp;(pt[t]||K.unique(r),ct.test(t)&amp;&amp;r.reverse()),this.pushStack(r)}});var dt=/\S+/g,ft={};K.Callbacks=function(t){t="string"==typeof t?ft[t]||s(t):K.extend({},t);var e,i,n,r,o,a,l=[],u=!t.once&amp;&amp;[],h=function(s){for(e=t.memory&amp;&amp;s,i=!0,a=r||0,r=0,o=l.length,n=!0;l&amp;&amp;o&gt;a;a++)if(l[a].apply(s[0],s[1])===!1&amp;&amp;t.stopOnFalse){e=!1;break}n=!1,l&amp;&amp;(u?u.length&amp;&amp;h(u.shift()):e?l=[]:c.disable())},c={add:function(){if(l){var i=l.length;!function s(e){K.each(e,function(e,i){var n=K.type(i);"function"===n?t.unique&amp;&amp;c.has(i)||l.push(i):i&amp;&amp;i.length&amp;&amp;"string"!==n&amp;&amp;s(i)})}(arguments),n?o=l.length:e&amp;&amp;(r=i,h(e))}return this},remove:function(){return l&amp;&amp;K.each(arguments,function(t,e){for(var i;(i=K.inArray(e,l,i))&gt;-1;)l.splice(i,1),n&amp;&amp;(o&gt;=i&amp;&amp;o--,a&gt;=i&amp;&amp;a--)}),this},has:function(t){return t?K.inArray(t,l)&gt;-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=e=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,e||c.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!l||i&amp;&amp;!u||(e=e||[],e=[t,e.slice?e.slice():e],n?u.push(e):h(e)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},K.extend({Deferred:function(t){var e=[["resolve","done",K.Callbacks("once memory"),"resolved"],["reject","fail",K.Callbacks("once memory"),"rejected"],["notify","progress",K.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return K.Deferred(function(i){K.each(e,function(e,s){var o=K.isFunction(t[e])&amp;&amp;t[e];r[s[1]](function(){var t=o&amp;&amp;o.apply(this,arguments);t&amp;&amp;K.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[s[0]+"With"](this===n?i.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?K.extend(t,n):n}},r={};return n.pipe=n.then,K.each(e,function(t,s){var o=s[2],a=s[3];n[s[1]]=o.add,a&amp;&amp;o.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),r[s[0]]=function(){return r[s[0]+"With"](this===r?n:this,arguments),this},r[s[0]+"With"]=o.fireWith}),n.promise(r),t&amp;&amp;t.call(r,r),r},when:function(t){var e,i,n,r=0,s=q.call(arguments),o=s.length,a=1!==o||t&amp;&amp;K.isFunction(t.promise)?o:0,l=1===a?t:K.Deferred(),u=function(t,i,n){return function(r){i[t]=this,n[t]=arguments.length&gt;1?q.call(arguments):r,n===e?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(o&gt;1)for(e=new Array(o),i=new Array(o),n=new Array(o);o&gt;r;r++)s[r]&amp;&amp;K.isFunction(s[r].promise)?s[r].promise().done(u(r,n,s)).fail(l.reject).progress(u(r,i,e)):--a;return a||l.resolveWith(n,s),l.promise()}});var gt;K.fn.ready=function(t){return K.ready.promise().done(t),this},K.extend({isReady:!1,readyWait:1,holdReady:function(t){t?K.readyWait++:K.ready(!0)},ready:function(t){(t===!0?--K.readyWait:K.isReady)||(K.isReady=!0,t!==!0&amp;&amp;--K.readyWait&gt;0||(gt.resolveWith(J,[K]),K.fn.triggerHandler&amp;&amp;(K(J).triggerHandler("ready"),K(J).off("ready"))))}}),K.ready.promise=function(e){return gt||(gt=K.Deferred(),"complete"===J.readyState?setTimeout(K.ready):(J.addEventListener("DOMContentLoaded",o,!1),t.addEventListener("load",o,!1))),gt.promise(e)},K.ready.promise();var mt=K.access=function(t,e,i,n,r,s,o){var a=0,l=t.length,u=null==i;if("object"===K.type(i)){r=!0;for(a in i)K.access(t,e,a,i[a],!0,s,o)}else if(void 0!==n&amp;&amp;(r=!0,K.isFunction(n)||(o=!0),u&amp;&amp;(o?(e.call(t,n),e=null):(u=e,e=function(t,e,i){return u.call(K(t),i)})),e))for(;l&gt;a;a++)e(t[a],i,o?n:n.call(t[a],a,e(t[a],i)));return r?t:u?e.call(t):l?e(t[0],i):s};K.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},a.uid=1,a.accepts=K.acceptData,a.prototype={key:function(t){if(!a.accepts(t))return 0;var e={},i=t[this.expando];if(!i){i=a.uid++;try{e[this.expando]={value:i},Object.defineProperties(t,e)}catch(n){e[this.expando]=i,K.extend(t,e)}}return this.cache[i]||(this.cache[i]={}),i},set:function(t,e,i){var n,r=this.key(t),s=this.cache[r];if("string"==typeof e)s[e]=i;else if(K.isEmptyObject(s))K.extend(this.cache[r],e);else for(n in e)s[n]=e[n];return s},get:function(t,e){var i=this.cache[this.key(t)];return void 0===e?i:i[e]},access:function(t,e,i){var n;return void 0===e||e&amp;&amp;"string"==typeof e&amp;&amp;void 0===i?(n=this.get(t,e),void 0!==n?n:this.get(t,K.camelCase(e))):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,r,s=this.key(t),o=this.cache[s];if(void 0===e)this.cache[s]={};else{K.isArray(e)?n=e.concat(e.map(K.camelCase)):(r=K.camelCase(e),e in o?n=[e,r]:(n=r,n=n in o?[n]:n.match(dt)||[])),i=n.length;for(;i--;)delete o[n[i]]}},hasData:function(t){return!K.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&amp;&amp;delete this.cache[t[this.expando]]}};var _t=new a,vt=new a,yt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,bt=/([A-Z])/g;K.extend({hasData:function(t){return vt.hasData(t)||_t.hasData(t)},data:function(t,e,i){return vt.access(t,e,i);
        },removeData:function(t,e){vt.remove(t,e)},_data:function(t,e,i){return _t.access(t,e,i)},_removeData:function(t,e){_t.remove(t,e)}}),K.fn.extend({data:function(t,e){var i,n,r,s=this[0],o=s&amp;&amp;s.attributes;if(void 0===t){if(this.length&amp;&amp;(r=vt.get(s),1===s.nodeType&amp;&amp;!_t.get(s,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&amp;&amp;(n=o[i].name,0===n.indexOf("data-")&amp;&amp;(n=K.camelCase(n.slice(5)),l(s,n,r[n])));_t.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){vt.set(this,t)}):mt(this,function(e){var i,n=K.camelCase(t);if(s&amp;&amp;void 0===e){if(i=vt.get(s,t),void 0!==i)return i;if(i=vt.get(s,n),void 0!==i)return i;if(i=l(s,n,void 0),void 0!==i)return i}else this.each(function(){var i=vt.get(this,n);vt.set(this,n,e),-1!==t.indexOf("-")&amp;&amp;void 0!==i&amp;&amp;vt.set(this,t,e)})},null,e,arguments.length&gt;1,null,!0)},removeData:function(t){return this.each(function(){vt.remove(this,t)})}}),K.extend({queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=_t.get(t,e),i&amp;&amp;(!n||K.isArray(i)?n=_t.access(t,e,K.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=K.queue(t,e),n=i.length,r=i.shift(),s=K._queueHooks(t,e),o=function(){K.dequeue(t,e)};"inprogress"===r&amp;&amp;(r=i.shift(),n--),r&amp;&amp;("fx"===e&amp;&amp;i.unshift("inprogress"),delete s.stop,r.call(t,o,s)),!n&amp;&amp;s&amp;&amp;s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return _t.get(t,i)||_t.access(t,i,{empty:K.Callbacks("once memory").add(function(){_t.remove(t,[e+"queue",i])})})}}),K.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&amp;&amp;(e=t,t="fx",i--),arguments.length&lt;i?K.queue(this[0],t):void 0===e?this:this.each(function(){var i=K.queue(this,t,e);K._queueHooks(this,t),"fx"===t&amp;&amp;"inprogress"!==i[0]&amp;&amp;K.dequeue(this,t)})},dequeue:function(t){return this.each(function(){K.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=K.Deferred(),s=this,o=this.length,a=function(){--n||r.resolveWith(s,[s])};for("string"!=typeof t&amp;&amp;(e=t,t=void 0),t=t||"fx";o--;)i=_t.get(s[o],t+"queueHooks"),i&amp;&amp;i.empty&amp;&amp;(n++,i.empty.add(a));return a(),r.promise(e)}});var wt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,xt=["Top","Right","Bottom","Left"],kt=function(t,e){return t=e||t,"none"===K.css(t,"display")||!K.contains(t.ownerDocument,t)},Mt=/^(?:checkbox|radio)$/i;!function(){var t=J.createDocumentFragment(),e=t.appendChild(J.createElement("div")),i=J.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),Z.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="&lt;textarea&gt;x&lt;/textarea&gt;",Z.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ct="undefined";Z.focusinBubbles="onfocusin"in t;var Dt=/^key/,Tt=/^(?:mouse|pointer|contextmenu)|click/,St=/^(?:focusinfocus|focusoutblur)$/,At=/^([^.]*)(?:\.(.+)|)$/;K.event={global:{},add:function(t,e,i,n,r){var s,o,a,l,u,h,c,p,d,f,g,m=_t.get(t);if(m)for(i.handler&amp;&amp;(s=i,i=s.handler,r=s.selector),i.guid||(i.guid=K.guid++),(l=m.events)||(l=m.events={}),(o=m.handle)||(o=m.handle=function(e){return typeof K!==Ct&amp;&amp;K.event.triggered!==e.type?K.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(dt)||[""],u=e.length;u--;)a=At.exec(e[u])||[],d=g=a[1],f=(a[2]||"").split(".").sort(),d&amp;&amp;(c=K.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,c=K.event.special[d]||{},h=K.extend({type:d,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&amp;&amp;K.expr.match.needsContext.test(r),namespace:f.join(".")},s),(p=l[d])||(p=l[d]=[],p.delegateCount=0,c.setup&amp;&amp;c.setup.call(t,n,f,o)!==!1||t.addEventListener&amp;&amp;t.addEventListener(d,o,!1)),c.add&amp;&amp;(c.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,h):p.push(h),K.event.global[d]=!0)},remove:function(t,e,i,n,r){var s,o,a,l,u,h,c,p,d,f,g,m=_t.hasData(t)&amp;&amp;_t.get(t);if(m&amp;&amp;(l=m.events)){for(e=(e||"").match(dt)||[""],u=e.length;u--;)if(a=At.exec(e[u])||[],d=g=a[1],f=(a[2]||"").split(".").sort(),d){for(c=K.event.special[d]||{},d=(n?c.delegateType:c.bindType)||d,p=l[d]||[],a=a[2]&amp;&amp;new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=p.length;s--;)h=p[s],!r&amp;&amp;g!==h.origType||i&amp;&amp;i.guid!==h.guid||a&amp;&amp;!a.test(h.namespace)||n&amp;&amp;n!==h.selector&amp;&amp;("**"!==n||!h.selector)||(p.splice(s,1),h.selector&amp;&amp;p.delegateCount--,c.remove&amp;&amp;c.remove.call(t,h));o&amp;&amp;!p.length&amp;&amp;(c.teardown&amp;&amp;c.teardown.call(t,f,m.handle)!==!1||K.removeEvent(t,d,m.handle),delete l[d])}else for(d in l)K.event.remove(t,d+e[u],i,n,!0);K.isEmptyObject(l)&amp;&amp;(delete m.handle,_t.remove(t,"events"))}},trigger:function(e,i,n,r){var s,o,a,l,u,h,c,p=[n||J],d=X.call(e,"type")?e.type:e,f=X.call(e,"namespace")?e.namespace.split("."):[];if(o=a=n=n||J,3!==n.nodeType&amp;&amp;8!==n.nodeType&amp;&amp;!St.test(d+K.event.triggered)&amp;&amp;(d.indexOf(".")&gt;=0&amp;&amp;(f=d.split("."),d=f.shift(),f.sort()),u=d.indexOf(":")&lt;0&amp;&amp;"on"+d,e=e[K.expando]?e:new K.Event(d,"object"==typeof e&amp;&amp;e),e.isTrigger=r?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:K.makeArray(i,[e]),c=K.event.special[d]||{},r||!c.trigger||c.trigger.apply(n,i)!==!1)){if(!r&amp;&amp;!c.noBubble&amp;&amp;!K.isWindow(n)){for(l=c.delegateType||d,St.test(l+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||J)&amp;&amp;p.push(a.defaultView||a.parentWindow||t)}for(s=0;(o=p[s++])&amp;&amp;!e.isPropagationStopped();)e.type=s&gt;1?l:c.bindType||d,h=(_t.get(o,"events")||{})[e.type]&amp;&amp;_t.get(o,"handle"),h&amp;&amp;h.apply(o,i),h=u&amp;&amp;o[u],h&amp;&amp;h.apply&amp;&amp;K.acceptData(o)&amp;&amp;(e.result=h.apply(o,i),e.result===!1&amp;&amp;e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&amp;&amp;c._default.apply(p.pop(),i)!==!1||!K.acceptData(n)||u&amp;&amp;K.isFunction(n[d])&amp;&amp;!K.isWindow(n)&amp;&amp;(a=n[u],a&amp;&amp;(n[u]=null),K.event.triggered=d,n[d](),K.event.triggered=void 0,a&amp;&amp;(n[u]=a)),e.result}},dispatch:function(t){t=K.event.fix(t);var e,i,n,r,s,o=[],a=q.call(arguments),l=(_t.get(this,"events")||{})[t.type]||[],u=K.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(o=K.event.handlers.call(this,t,l),e=0;(r=o[e++])&amp;&amp;!t.isPropagationStopped();)for(t.currentTarget=r.elem,i=0;(s=r.handlers[i++])&amp;&amp;!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(s.namespace))&amp;&amp;(t.handleObj=s,t.data=s.data,n=((K.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a),void 0!==n&amp;&amp;(t.result=n)===!1&amp;&amp;(t.preventDefault(),t.stopPropagation()));return u.postDispatch&amp;&amp;u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,r,s,o=[],a=e.delegateCount,l=t.target;if(a&amp;&amp;l.nodeType&amp;&amp;(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==t.type){for(n=[],i=0;a&gt;i;i++)s=e[i],r=s.selector+" ",void 0===n[r]&amp;&amp;(n[r]=s.needsContext?K(r,this).index(l)&gt;=0:K.find(r,this,null,[l]).length),n[r]&amp;&amp;n.push(s);n.length&amp;&amp;o.push({elem:l,handlers:n})}return a&lt;e.length&amp;&amp;o.push({elem:this,handlers:e.slice(a)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&amp;&amp;(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,r,s=e.button;return null==t.pageX&amp;&amp;null!=e.clientX&amp;&amp;(i=t.target.ownerDocument||J,n=i.documentElement,r=i.body,t.pageX=e.clientX+(n&amp;&amp;n.scrollLeft||r&amp;&amp;r.scrollLeft||0)-(n&amp;&amp;n.clientLeft||r&amp;&amp;r.clientLeft||0),t.pageY=e.clientY+(n&amp;&amp;n.scrollTop||r&amp;&amp;r.scrollTop||0)-(n&amp;&amp;n.clientTop||r&amp;&amp;r.clientTop||0)),t.which||void 0===s||(t.which=1&amp;s?1:2&amp;s?3:4&amp;s?2:0),t}},fix:function(t){if(t[K.expando])return t;var e,i,n,r=t.type,s=t,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Tt.test(r)?this.mouseHooks:Dt.test(r)?this.keyHooks:{}),n=o.props?this.props.concat(o.props):this.props,t=new K.Event(s),e=n.length;e--;)i=n[e],t[i]=s[i];return t.target||(t.target=J),3===t.target.nodeType&amp;&amp;(t.target=t.target.parentNode),o.filter?o.filter(t,s):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==c()&amp;&amp;this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===c()&amp;&amp;this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&amp;&amp;this.click&amp;&amp;K.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return K.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&amp;&amp;t.originalEvent&amp;&amp;(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var r=K.extend(new K.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?K.event.trigger(r,null,e):K.event.dispatch.call(e,r),r.isDefaultPrevented()&amp;&amp;i.preventDefault()}},K.removeEvent=function(t,e,i){t.removeEventListener&amp;&amp;t.removeEventListener(e,i,!1)},K.Event=function(t,e){return this instanceof K.Event?(t&amp;&amp;t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&amp;&amp;t.returnValue===!1?u:h):this.type=t,e&amp;&amp;K.extend(this,e),this.timeStamp=t&amp;&amp;t.timeStamp||K.now(),void(this[K.expando]=!0)):new K.Event(t,e)},K.Event.prototype={isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=u,t&amp;&amp;t.preventDefault&amp;&amp;t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=u,t&amp;&amp;t.stopPropagation&amp;&amp;t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=u,t&amp;&amp;t.stopImmediatePropagation&amp;&amp;t.stopImmediatePropagation(),this.stopPropagation()}},K.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){K.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,s=t.handleObj;return(!r||r!==n&amp;&amp;!K.contains(n,r))&amp;&amp;(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}}),Z.focusinBubbles||K.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){K.event.simulate(e,t.target,K.event.fix(t),!0)};K.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=_t.access(n,e);r||n.addEventListener(t,i,!0),_t.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=_t.access(n,e)-1;r?_t.access(n,e,r):(n.removeEventListener(t,i,!0),_t.remove(n,e))}}}),K.fn.extend({on:function(t,e,i,n,r){var s,o;if("object"==typeof t){"string"!=typeof e&amp;&amp;(i=i||e,e=void 0);for(o in t)this.on(o,e,i,t[o],r);return this}if(null==i&amp;&amp;null==n?(n=e,i=e=void 0):null==n&amp;&amp;("string"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),n===!1)n=h;else if(!n)return this;return 1===r&amp;&amp;(s=n,n=function(t){return K().off(t),s.apply(this,arguments)},n.guid=s.guid||(s.guid=K.guid++)),this.each(function(){K.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&amp;&amp;t.preventDefault&amp;&amp;t.handleObj)return n=t.handleObj,K(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return(e===!1||"function"==typeof e)&amp;&amp;(i=e,e=void 0),i===!1&amp;&amp;(i=h),this.each(function(){K.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){K.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?K.event.trigger(t,e,i,!0):void 0}});var Pt=/&lt;(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^&gt;]*)\/&gt;/gi,Et=/&lt;([\w:]+)/,It=/&lt;|&amp;#?\w+;/,Nt=/&lt;(?:script|style|link)/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^$|\/(?:java|ecma)script/i,jt=/^true\/(.*)/,Ot=/^\s*&lt;!(?:\[CDATA\[|--)|(?:\]\]|--)&gt;\s*$/g,Ft={option:[1,"&lt;select multiple='multiple'&gt;","&lt;/select&gt;"],thead:[1,"&lt;table&gt;","&lt;/table&gt;"],col:[2,"&lt;table&gt;&lt;colgroup&gt;","&lt;/colgroup&gt;&lt;/table&gt;"],tr:[2,"&lt;table&gt;&lt;tbody&gt;","&lt;/tbody&gt;&lt;/table&gt;"],td:[3,"&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;","&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;"],_default:[0,"",""]};Ft.optgroup=Ft.option,Ft.tbody=Ft.tfoot=Ft.colgroup=Ft.caption=Ft.thead,Ft.th=Ft.td,K.extend({clone:function(t,e,i){var n,r,s,o,a=t.cloneNode(!0),l=K.contains(t.ownerDocument,t);if(!(Z.noCloneChecked||1!==t.nodeType&amp;&amp;11!==t.nodeType||K.isXMLDoc(t)))for(o=_(a),s=_(t),n=0,r=s.length;r&gt;n;n++)v(s[n],o[n]);if(e)if(i)for(s=s||_(t),o=o||_(a),n=0,r=s.length;r&gt;n;n++)m(s[n],o[n]);else m(t,a);return o=_(a,"script"),o.length&gt;0&amp;&amp;g(o,!l&amp;&amp;_(t,"script")),a},buildFragment:function(t,e,i,n){for(var r,s,o,a,l,u,h=e.createDocumentFragment(),c=[],p=0,d=t.length;d&gt;p;p++)if(r=t[p],r||0===r)if("object"===K.type(r))K.merge(c,r.nodeType?[r]:r);else if(It.test(r)){for(s=s||h.appendChild(e.createElement("div")),o=(Et.exec(r)||["",""])[1].toLowerCase(),a=Ft[o]||Ft._default,s.innerHTML=a[1]+r.replace(Pt,"&lt;$1&gt;&lt;/$2&gt;")+a[2],u=a[0];u--;)s=s.lastChild;K.merge(c,s.childNodes),s=h.firstChild,s.textContent=""}else c.push(e.createTextNode(r));for(h.textContent="",p=0;r=c[p++];)if((!n||-1===K.inArray(r,n))&amp;&amp;(l=K.contains(r.ownerDocument,r),s=_(h.appendChild(r),"script"),l&amp;&amp;g(s),i))for(u=0;r=s[u++];)zt.test(r.type||"")&amp;&amp;i.push(r);return h},cleanData:function(t){for(var e,i,n,r,s=K.event.special,o=0;void 0!==(i=t[o]);o++){if(K.acceptData(i)&amp;&amp;(r=i[_t.expando],r&amp;&amp;(e=_t.cache[r]))){if(e.events)for(n in e.events)s[n]?K.event.remove(i,n):K.removeEvent(i,n,e.handle);_t.cache[r]&amp;&amp;delete _t.cache[r]}delete vt.cache[i[vt.expando]]}}}),K.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?K.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&amp;&amp;(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&amp;&amp;this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&amp;&amp;this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?K.filter(t,this):this,r=0;null!=(i=n[r]);r++)e||1!==i.nodeType||K.cleanData(_(i)),i.parentNode&amp;&amp;(e&amp;&amp;K.contains(i.ownerDocument,i)&amp;&amp;g(_(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&amp;&amp;(K.cleanData(_(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return K.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&amp;&amp;1===e.nodeType)return e.innerHTML;if("string"==typeof t&amp;&amp;!Nt.test(t)&amp;&amp;!Ft[(Et.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Pt,"&lt;$1&gt;&lt;/$2&gt;");try{for(;n&gt;i;i++)e=this[i]||{},1===e.nodeType&amp;&amp;(K.cleanData(_(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&amp;&amp;this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,K.cleanData(_(this)),t&amp;&amp;t.replaceChild(e,this)}),t&amp;&amp;(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=Y.apply([],t);var i,n,r,s,o,a,l=0,u=this.length,h=this,c=u-1,p=t[0],g=K.isFunction(p);if(g||u&gt;1&amp;&amp;"string"==typeof p&amp;&amp;!Z.checkClone&amp;&amp;Rt.test(p))return this.each(function(i){var n=h.eq(i);g&amp;&amp;(t[0]=p.call(this,i,n.html())),n.domManip(t,e)});if(u&amp;&amp;(i=K.buildFragment(t,this[0].ownerDocument,!1,this),n=i.firstChild,1===i.childNodes.length&amp;&amp;(i=n),n)){for(r=K.map(_(i,"script"),d),s=r.length;u&gt;l;l++)o=i,l!==c&amp;&amp;(o=K.clone(o,!0,!0),s&amp;&amp;K.merge(r,_(o,"script"))),e.call(this[l],o,l);if(s)for(a=r[r.length-1].ownerDocument,K.map(r,f),l=0;s&gt;l;l++)o=r[l],zt.test(o.type||"")&amp;&amp;!_t.access(o,"globalEval")&amp;&amp;K.contains(a,o)&amp;&amp;(o.src?K._evalUrl&amp;&amp;K._evalUrl(o.src):K.globalEval(o.textContent.replace(Ot,"")))}return this}}),K.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){K.fn[t]=function(t){for(var i,n=[],r=K(t),s=r.length-1,o=0;s&gt;=o;o++)i=o===s?this:this.clone(!0),K(r[o])[e](i),V.apply(n,i.get());return this.pushStack(n)}});var Lt,Ht={},Bt=/^margin/,Wt=new RegExp("^("+wt+")(?!px)[a-z%]+$","i"),qt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(s);var e=t.getComputedStyle(o,null);i="1%"!==e.top,n="4px"===e.width,r.removeChild(s)}var i,n,r=J.documentElement,s=J.createElement("div"),o=J.createElement("div");o.style&amp;&amp;(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",Z.clearCloneStyle="content-box"===o.style.backgroundClip,s.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",s.appendChild(o),t.getComputedStyle&amp;&amp;K.extend(Z,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return null==n&amp;&amp;e(),n},reliableMarginRight:function(){var e,i=o.appendChild(J.createElement("div"));return i.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",o.style.width="1px",r.appendChild(s),e=!parseFloat(t.getComputedStyle(i,null).marginRight),r.removeChild(s),o.removeChild(i),e}}))}(),K.swap=function(t,e,i,n){var r,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];r=i.apply(t,n||[]);for(s in e)t.style[s]=o[s];return r};var Yt=/^(none|table(?!-c[ea]).+)/,Vt=new RegExp("^("+wt+")(.*)$","i"),$t=new RegExp("^([+-])=("+wt+")","i"),Ut={position:"absolute",visibility:"hidden",display:"block"},Gt={letterSpacing:"0",fontWeight:"400"},Xt=["Webkit","O","Moz","ms"];K.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=w(t,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,i,n){if(t&amp;&amp;3!==t.nodeType&amp;&amp;8!==t.nodeType&amp;&amp;t.style){var r,s,o,a=K.camelCase(e),l=t.style;return e=K.cssProps[a]||(K.cssProps[a]=k(l,a)),o=K.cssHooks[e]||K.cssHooks[a],void 0===i?o&amp;&amp;"get"in o&amp;&amp;void 0!==(r=o.get(t,!1,n))?r:l[e]:(s=typeof i,"string"===s&amp;&amp;(r=$t.exec(i))&amp;&amp;(i=(r[1]+1)*r[2]+parseFloat(K.css(t,e)),s="number"),null!=i&amp;&amp;i===i&amp;&amp;("number"!==s||K.cssNumber[a]||(i+="px"),Z.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),o&amp;&amp;"set"in o&amp;&amp;void 0===(i=o.set(t,i,n))||(l[e]=i)),void 0)}},css:function(t,e,i,n){var r,s,o,a=K.camelCase(e);return e=K.cssProps[a]||(K.cssProps[a]=k(t.style,a)),o=K.cssHooks[e]||K.cssHooks[a],o&amp;&amp;"get"in o&amp;&amp;(r=o.get(t,!0,i)),void 0===r&amp;&amp;(r=w(t,e,n)),"normal"===r&amp;&amp;e in Gt&amp;&amp;(r=Gt[e]),""===i||i?(s=parseFloat(r),i===!0||K.isNumeric(s)?s||0:r):r}}),K.each(["height","width"],function(t,e){K.cssHooks[e]={get:function(t,i,n){return i?Yt.test(K.css(t,"display"))&amp;&amp;0===t.offsetWidth?K.swap(t,Ut,function(){return D(t,e,n)}):D(t,e,n):void 0},set:function(t,i,n){var r=n&amp;&amp;qt(t);return M(t,i,n?C(t,e,n,"border-box"===K.css(t,"boxSizing",!1,r),r):0)}}}),K.cssHooks.marginRight=x(Z.reliableMarginRight,function(t,e){return e?K.swap(t,{display:"inline-block"},w,[t,"marginRight"]):void 0}),K.each({margin:"",padding:"",border:"Width"},function(t,e){K.cssHooks[t+e]={expand:function(i){for(var n=0,r={},s="string"==typeof i?i.split(" "):[i];4&gt;n;n++)r[t+xt[n]+e]=s[n]||s[n-2]||s[0];return r}},Bt.test(t)||(K.cssHooks[t+e].set=M)}),K.fn.extend({css:function(t,e){return mt(this,function(t,e,i){var n,r,s={},o=0;if(K.isArray(e)){for(n=qt(t),r=e.length;r&gt;o;o++)s[e[o]]=K.css(t,e[o],!1,n);return s}return void 0!==i?K.style(t,e,i):K.css(t,e)},t,e,arguments.length&gt;1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){kt(this)?K(this).show():K(this).hide()})}}),K.Tween=S,S.prototype={constructor:S,init:function(t,e,i,n,r,s){this.elem=t,this.prop=i,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(K.cssNumber[i]?"":"px")},cur:function(){var t=S.propHooks[this.prop];return t&amp;&amp;t.get?t.get(this):S.propHooks._default.get(this)},run:function(t){var e,i=S.propHooks[this.prop];return this.options.duration?this.pos=e=K.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&amp;&amp;this.options.step.call(this.elem,this.now,this),i&amp;&amp;i.set?i.set(this):S.propHooks._default.set(this),this}},S.prototype.init.prototype=S.prototype,S.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&amp;&amp;null!=t.elem.style[t.prop]?(e=K.css(t.elem,t.prop,""),e&amp;&amp;"auto"!==e?e:0):t.elem[t.prop]},set:function(t){K.fx.step[t.prop]?K.fx.step[t.prop](t):t.elem.style&amp;&amp;(null!=t.elem.style[K.cssProps[t.prop]]||K.cssHooks[t.prop])?K.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},S.propHooks.scrollTop=S.propHooks.scrollLeft={set:function(t){t.elem.nodeType&amp;&amp;t.elem.parentNode&amp;&amp;(t.elem[t.prop]=t.now)}},K.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},K.fx=S.prototype.init,K.fx.step={};var Zt,Jt,Qt=/^(?:toggle|show|hide)$/,Kt=new RegExp("^(?:([+-])=|)("+wt+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[I],ie={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),r=Kt.exec(e),s=r&amp;&amp;r[3]||(K.cssNumber[t]?"":"px"),o=(K.cssNumber[t]||"px"!==s&amp;&amp;+n)&amp;&amp;Kt.exec(K.css(i.elem,t)),a=1,l=20;if(o&amp;&amp;o[3]!==s){s=s||o[3],r=r||[],o=+n||1;do a=a||".5",o/=a,K.style(i.elem,t,o+s);while(a!==(a=i.cur()/n)&amp;&amp;1!==a&amp;&amp;--l)}return r&amp;&amp;(o=i.start=+o||+n||0,i.unit=s,i.end=r[1]?o+(r[1]+1)*r[2]:+r[2]),i}]};K.Animation=K.extend(R,{tweener:function(t,e){K.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,r=t.length;r&gt;n;n++)i=t[n],ie[i]=ie[i]||[],ie[i].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),K.speed=function(t,e,i){var n=t&amp;&amp;"object"==typeof t?K.extend({},t):{complete:i||!i&amp;&amp;e||K.isFunction(t)&amp;&amp;t,duration:t,easing:i&amp;&amp;e||e&amp;&amp;!K.isFunction(e)&amp;&amp;e};return n.duration=K.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in K.fx.speeds?K.fx.speeds[n.duration]:K.fx.speeds._default,(null==n.queue||n.queue===!0)&amp;&amp;(n.queue="fx"),n.old=n.complete,n.complete=function(){K.isFunction(n.old)&amp;&amp;n.old.call(this),n.queue&amp;&amp;K.dequeue(this,n.queue)},n},K.fn.extend({fadeTo:function(t,e,i,n){return this.filter(kt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=K.isEmptyObject(t),s=K.speed(e,i,n),o=function(){var e=R(this,K.extend({},t),s);(r||_t.get(this,"finish"))&amp;&amp;e.stop(!0)};return o.finish=o,r||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&amp;&amp;(i=e,e=t,t=void 0),e&amp;&amp;t!==!1&amp;&amp;this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&amp;&amp;t+"queueHooks",s=K.timers,o=_t.get(this);if(r)o[r]&amp;&amp;o[r].stop&amp;&amp;n(o[r]);else for(r in o)o[r]&amp;&amp;o[r].stop&amp;&amp;te.test(r)&amp;&amp;n(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&amp;&amp;s[r].queue!==t||(s[r].anim.stop(i),e=!1,s.splice(r,1));(e||!i)&amp;&amp;K.dequeue(this,t)})},finish:function(t){return t!==!1&amp;&amp;(t=t||"fx"),this.each(function(){var e,i=_t.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],s=K.timers,o=n?n.length:0;for(i.finish=!0,K.queue(this,t,[]),r&amp;&amp;r.stop&amp;&amp;r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&amp;&amp;s[e].queue===t&amp;&amp;(s[e].anim.stop(!0),s.splice(e,1));for(e=0;o&gt;e;e++)n[e]&amp;&amp;n[e].finish&amp;&amp;n[e].finish.call(this);delete i.finish})}}),K.each(["toggle","show","hide"],function(t,e){var i=K.fn[e];K.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(P(e,!0),t,n,r)}}),K.each({slideDown:P("show"),slideUp:P("hide"),slideToggle:P("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){K.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),K.timers=[],K.fx.tick=function(){var t,e=0,i=K.timers;for(Zt=K.now();e&lt;i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||K.fx.stop(),Zt=void 0},K.fx.timer=function(t){K.timers.push(t),t()?K.fx.start():K.timers.pop()},K.fx.interval=13,K.fx.start=function(){Jt||(Jt=setInterval(K.fx.tick,K.fx.interval))},K.fx.stop=function(){clearInterval(Jt),Jt=null},K.fx.speeds={slow:600,fast:200,_default:400},K.fn.delay=function(t,e){return t=K.fx?K.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},function(){var t=J.createElement("input"),e=J.createElement("select"),i=e.appendChild(J.createElement("option"));t.type="checkbox",Z.checkOn=""!==t.value,Z.optSelected=i.selected,e.disabled=!0,Z.optDisabled=!i.disabled,t=J.createElement("input"),t.value="t",t.type="radio",Z.radioValue="t"===t.value}();var ne,re,se=K.expr.attrHandle;K.fn.extend({attr:function(t,e){return mt(this,K.attr,t,e,arguments.length&gt;1)},removeAttr:function(t){return this.each(function(){K.removeAttr(this,t)})}}),K.extend({attr:function(t,e,i){var n,r,s=t.nodeType;if(t&amp;&amp;3!==s&amp;&amp;8!==s&amp;&amp;2!==s)return typeof t.getAttribute===Ct?K.prop(t,e,i):(1===s&amp;&amp;K.isXMLDoc(t)||(e=e.toLowerCase(),n=K.attrHooks[e]||(K.expr.match.bool.test(e)?re:ne)),void 0===i?n&amp;&amp;"get"in n&amp;&amp;null!==(r=n.get(t,e))?r:(r=K.find.attr(t,e),null==r?void 0:r):null!==i?n&amp;&amp;"set"in n&amp;&amp;void 0!==(r=n.set(t,i,e))?r:(t.setAttribute(e,i+""),i):void K.removeAttr(t,e))},removeAttr:function(t,e){var i,n,r=0,s=e&amp;&amp;e.match(dt);if(s&amp;&amp;1===t.nodeType)for(;i=s[r++];)n=K.propFix[i]||i,K.expr.match.bool.test(i)&amp;&amp;(t[n]=!1),t.removeAttribute(i)},attrHooks:{type:{set:function(t,e){if(!Z.radioValue&amp;&amp;"radio"===e&amp;&amp;K.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&amp;&amp;(t.value=i),e}}}}}),re={set:function(t,e,i){return e===!1?K.removeAttr(t,i):t.setAttribute(i,i),i}},K.each(K.expr.match.bool.source.match(/\w+/g),function(t,e){var i=se[e]||K.find.attr;se[e]=function(t,e,n){var r,s;return n||(s=se[e],se[e]=r,r=null!=i(t,e,n)?e.toLowerCase():null,se[e]=s),r}});var oe=/^(?:input|select|textarea|button)$/i;K.fn.extend({prop:function(t,e){return mt(this,K.prop,t,e,arguments.length&gt;1)},removeProp:function(t){return this.each(function(){delete this[K.propFix[t]||t]})}}),K.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,i){var n,r,s,o=t.nodeType;if(t&amp;&amp;3!==o&amp;&amp;8!==o&amp;&amp;2!==o)return s=1!==o||!K.isXMLDoc(t),s&amp;&amp;(e=K.propFix[e]||e,r=K.propHooks[e]),void 0!==i?r&amp;&amp;"set"in r&amp;&amp;void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&amp;&amp;"get"in r&amp;&amp;null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||oe.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),Z.optSelected||(K.propHooks.selected={get:function(t){var e=t.parentNode;return e&amp;&amp;e.parentNode&amp;&amp;e.parentNode.selectedIndex,null}}),K.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){K.propFix[this.toLowerCase()]=this});var ae=/[\t\r\n\f]/g;K.fn.extend({addClass:function(t){var e,i,n,r,s,o,a="string"==typeof t&amp;&amp;t,l=0,u=this.length;if(K.isFunction(t))return this.each(function(e){K(this).addClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(dt)||[];u&gt;l;l++)if(i=this[l],n=1===i.nodeType&amp;&amp;(i.className?(" "+i.className+" ").replace(ae," "):" ")){for(s=0;r=e[s++];)n.indexOf(" "+r+" ")&lt;0&amp;&amp;(n+=r+" ");o=K.trim(n),i.className!==o&amp;&amp;(i.className=o)}return this},removeClass:function(t){var e,i,n,r,s,o,a=0===arguments.length||"string"==typeof t&amp;&amp;t,l=0,u=this.length;if(K.isFunction(t))return this.each(function(e){K(this).removeClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(dt)||[];u&gt;l;l++)if(i=this[l],n=1===i.nodeType&amp;&amp;(i.className?(" "+i.className+" ").replace(ae," "):"")){for(s=0;r=e[s++];)for(;n.indexOf(" "+r+" ")&gt;=0;)n=n.replace(" "+r+" "," ");o=t?K.trim(n):"",i.className!==o&amp;&amp;(i.className=o)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&amp;&amp;"string"===i?e?this.addClass(t):this.removeClass(t):K.isFunction(t)?this.each(function(i){K(this).toggleClass(t.call(this,i,this.className,e),e)}):this.each(function(){if("string"===i)for(var e,n=0,r=K(this),s=t.match(dt)||[];e=s[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(i===Ct||"boolean"===i)&amp;&amp;(this.className&amp;&amp;_t.set(this,"__className__",this.className),this.className=this.className||t===!1?"":_t.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n&gt;i;i++)if(1===this[i].nodeType&amp;&amp;(" "+this[i].className+" ").replace(ae," ").indexOf(e)&gt;=0)return!0;return!1}});var le=/\r/g;K.fn.extend({val:function(t){var e,i,n,r=this[0];{if(arguments.length)return n=K.isFunction(t),this.each(function(i){var r;1===this.nodeType&amp;&amp;(r=n?t.call(this,i,K(this).val()):t,null==r?r="":"number"==typeof r?r+="":K.isArray(r)&amp;&amp;(r=K.map(r,function(t){return null==t?"":t+""})),e=K.valHooks[this.type]||K.valHooks[this.nodeName.toLowerCase()],e&amp;&amp;"set"in e&amp;&amp;void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=K.valHooks[r.type]||K.valHooks[r.nodeName.toLowerCase()],e&amp;&amp;"get"in e&amp;&amp;void 0!==(i=e.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(le,""):null==i?"":i)}}}),K.extend({valHooks:{option:{get:function(t){var e=K.find.attr(t,"value");return null!=e?e:K.trim(K.text(t))}},select:{get:function(t){for(var e,i,n=t.options,r=t.selectedIndex,s="select-one"===t.type||0&gt;r,o=s?null:[],a=s?r+1:n.length,l=0&gt;r?a:s?r:0;a&gt;l;l++)if(i=n[l],(i.selected||l===r)&amp;&amp;(Z.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&amp;&amp;(!i.parentNode.disabled||!K.nodeName(i.parentNode,"optgroup"))){if(e=K(i).val(),s)return e;o.push(e)}return o},set:function(t,e){for(var i,n,r=t.options,s=K.makeArray(e),o=r.length;o--;)n=r[o],(n.selected=K.inArray(n.value,s)&gt;=0)&amp;&amp;(i=!0);return i||(t.selectedIndex=-1),s}}}}),K.each(["radio","checkbox"],function(){K.valHooks[this]={set:function(t,e){return K.isArray(e)?t.checked=K.inArray(K(t).val(),e)&gt;=0:void 0}},Z.checkOn||(K.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),K.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){K.fn[e]=function(t,i){return arguments.length&gt;0?this.on(e,null,t,i):this.trigger(e)}}),K.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}});var ue=K.now(),he=/\?/;K.parseJSON=function(t){return JSON.parse(t+"")},K.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{i=new DOMParser,e=i.parseFromString(t,"text/xml")}catch(n){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&amp;&amp;K.error("Invalid XML: "+t),e};var ce=/#.*$/,pe=/([?&amp;])_=[^&amp;]*/,de=/^(.*?):[ \t]*([^\r\n]*)$/gm,fe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ge=/^(?:GET|HEAD)$/,me=/^\/\//,_e=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ve={},ye={},be="*/".concat("*"),we=t.location.href,xe=_e.exec(we.toLowerCase())||[];K.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we,type:"GET",isLocal:fe.test(xe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":be,text:"text/plain",html:"text/html",
        xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":K.parseJSON,"text xml":K.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?O(O(t,K.ajaxSettings),e):O(K.ajaxSettings,t)},ajaxPrefilter:z(ve),ajaxTransport:z(ye),ajax:function(t,e){function i(t,e,i,o){var l,h,_,v,b,x=e;2!==y&amp;&amp;(y=2,a&amp;&amp;clearTimeout(a),n=void 0,s=o||"",w.readyState=t&gt;0?4:0,l=t&gt;=200&amp;&amp;300&gt;t||304===t,i&amp;&amp;(v=F(c,w,i)),v=L(c,v,w,l),l?(c.ifModified&amp;&amp;(b=w.getResponseHeader("Last-Modified"),b&amp;&amp;(K.lastModified[r]=b),b=w.getResponseHeader("etag"),b&amp;&amp;(K.etag[r]=b)),204===t||"HEAD"===c.type?x="nocontent":304===t?x="notmodified":(x=v.state,h=v.data,_=v.error,l=!_)):(_=x,(t||!x)&amp;&amp;(x="error",0&gt;t&amp;&amp;(t=0))),w.status=t,w.statusText=(e||x)+"",l?f.resolveWith(p,[h,x,w]):f.rejectWith(p,[w,x,_]),w.statusCode(m),m=void 0,u&amp;&amp;d.trigger(l?"ajaxSuccess":"ajaxError",[w,c,l?h:_]),g.fireWith(p,[w,x]),u&amp;&amp;(d.trigger("ajaxComplete",[w,c]),--K.active||K.event.trigger("ajaxStop")))}"object"==typeof t&amp;&amp;(e=t,t=void 0),e=e||{};var n,r,s,o,a,l,u,h,c=K.ajaxSetup({},e),p=c.context||c,d=c.context&amp;&amp;(p.nodeType||p.jquery)?K(p):K.event,f=K.Deferred(),g=K.Callbacks("once memory"),m=c.statusCode||{},_={},v={},y=0,b="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===y){if(!o)for(o={};e=de.exec(s);)o[e[1].toLowerCase()]=e[2];e=o[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===y?s:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return y||(t=v[i]=v[i]||t,_[t]=e),this},overrideMimeType:function(t){return y||(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(2&gt;y)for(e in t)m[e]=[m[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||b;return n&amp;&amp;n.abort(e),i(0,e),this}};if(f.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,c.url=((t||c.url||we)+"").replace(ce,"").replace(me,xe[1]+"//"),c.type=e.method||e.type||c.method||c.type,c.dataTypes=K.trim(c.dataType||"*").toLowerCase().match(dt)||[""],null==c.crossDomain&amp;&amp;(l=_e.exec(c.url.toLowerCase()),c.crossDomain=!(!l||l[1]===xe[1]&amp;&amp;l[2]===xe[2]&amp;&amp;(l[3]||("http:"===l[1]?"80":"443"))===(xe[3]||("http:"===xe[1]?"80":"443")))),c.data&amp;&amp;c.processData&amp;&amp;"string"!=typeof c.data&amp;&amp;(c.data=K.param(c.data,c.traditional)),j(ve,c,e,w),2===y)return w;u=K.event&amp;&amp;c.global,u&amp;&amp;0===K.active++&amp;&amp;K.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!ge.test(c.type),r=c.url,c.hasContent||(c.data&amp;&amp;(r=c.url+=(he.test(r)?"&amp;":"?")+c.data,delete c.data),c.cache===!1&amp;&amp;(c.url=pe.test(r)?r.replace(pe,"$1_="+ue++):r+(he.test(r)?"&amp;":"?")+"_="+ue++)),c.ifModified&amp;&amp;(K.lastModified[r]&amp;&amp;w.setRequestHeader("If-Modified-Since",K.lastModified[r]),K.etag[r]&amp;&amp;w.setRequestHeader("If-None-Match",K.etag[r])),(c.data&amp;&amp;c.hasContent&amp;&amp;c.contentType!==!1||e.contentType)&amp;&amp;w.setRequestHeader("Content-Type",c.contentType),w.setRequestHeader("Accept",c.dataTypes[0]&amp;&amp;c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+be+"; q=0.01":""):c.accepts["*"]);for(h in c.headers)w.setRequestHeader(h,c.headers[h]);if(c.beforeSend&amp;&amp;(c.beforeSend.call(p,w,c)===!1||2===y))return w.abort();b="abort";for(h in{success:1,error:1,complete:1})w[h](c[h]);if(n=j(ye,c,e,w)){w.readyState=1,u&amp;&amp;d.trigger("ajaxSend",[w,c]),c.async&amp;&amp;c.timeout&gt;0&amp;&amp;(a=setTimeout(function(){w.abort("timeout")},c.timeout));try{y=1,n.send(_,i)}catch(x){if(!(2&gt;y))throw x;i(-1,x)}}else i(-1,"No Transport");return w},getJSON:function(t,e,i){return K.get(t,e,i,"json")},getScript:function(t,e){return K.get(t,void 0,e,"script")}}),K.each(["get","post"],function(t,e){K[e]=function(t,i,n,r){return K.isFunction(i)&amp;&amp;(r=r||n,n=i,i=void 0),K.ajax({url:t,type:e,dataType:r,data:i,success:n})}}),K._evalUrl=function(t){return K.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},K.fn.extend({wrapAll:function(t){var e;return K.isFunction(t)?this.each(function(e){K(this).wrapAll(t.call(this,e))}):(this[0]&amp;&amp;(e=K(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&amp;&amp;e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return K.isFunction(t)?this.each(function(e){K(this).wrapInner(t.call(this,e))}):this.each(function(){var e=K(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=K.isFunction(t);return this.each(function(i){K(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){K.nodeName(this,"body")||K(this).replaceWith(this.childNodes)}).end()}}),K.expr.filters.hidden=function(t){return t.offsetWidth&lt;=0&amp;&amp;t.offsetHeight&lt;=0},K.expr.filters.visible=function(t){return!K.expr.filters.hidden(t)};var ke=/%20/g,Me=/\[\]$/,Ce=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;K.param=function(t,e){var i,n=[],r=function(t,e){e=K.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&amp;&amp;(e=K.ajaxSettings&amp;&amp;K.ajaxSettings.traditional),K.isArray(t)||t.jquery&amp;&amp;!K.isPlainObject(t))K.each(t,function(){r(this.name,this.value)});else for(i in t)H(i,t[i],e,r);return n.join("&amp;").replace(ke,"+")},K.fn.extend({serialize:function(){return K.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=K.prop(this,"elements");return t?K.makeArray(t):this}).filter(function(){var t=this.type;return this.name&amp;&amp;!K(this).is(":disabled")&amp;&amp;Te.test(this.nodeName)&amp;&amp;!De.test(t)&amp;&amp;(this.checked||!Mt.test(t))}).map(function(t,e){var i=K(this).val();return null==i?null:K.isArray(i)?K.map(i,function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}}):{name:e.name,value:i.replace(Ce,"\r\n")}}).get()}}),K.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Se=0,Ae={},Pe={0:200,1223:204},Ee=K.ajaxSettings.xhr();t.attachEvent&amp;&amp;t.attachEvent("onunload",function(){for(var t in Ae)Ae[t]()}),Z.cors=!!Ee&amp;&amp;"withCredentials"in Ee,Z.ajax=Ee=!!Ee,K.ajaxTransport(function(t){var e;return Z.cors||Ee&amp;&amp;!t.crossDomain?{send:function(i,n){var r,s=t.xhr(),o=++Se;if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)s[r]=t.xhrFields[r];t.mimeType&amp;&amp;s.overrideMimeType&amp;&amp;s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(r in i)s.setRequestHeader(r,i[r]);e=function(t){return function(){e&amp;&amp;(delete Ae[o],e=s.onload=s.onerror=null,"abort"===t?s.abort():"error"===t?n(s.status,s.statusText):n(Pe[s.status]||s.status,s.statusText,"string"==typeof s.responseText?{text:s.responseText}:void 0,s.getAllResponseHeaders()))}},s.onload=e(),s.onerror=e("error"),e=Ae[o]=e("abort");try{s.send(t.hasContent&amp;&amp;t.data||null)}catch(a){if(e)throw a}},abort:function(){e&amp;&amp;e()}}:void 0}),K.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return K.globalEval(t),t}}}),K.ajaxPrefilter("script",function(t){void 0===t.cache&amp;&amp;(t.cache=!1),t.crossDomain&amp;&amp;(t.type="GET")}),K.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,r){e=K("&lt;script&gt;").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&amp;&amp;r("error"===t.type?404:200,t.type)}),J.head.appendChild(e[0])},abort:function(){i&amp;&amp;i()}}}});var Ie=[],Ne=/(=)\?(?=&amp;|$)|\?\?/;K.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ie.pop()||K.expando+"_"+ue++;return this[t]=!0,t}}),K.ajaxPrefilter("json jsonp",function(e,i,n){var r,s,o,a=e.jsonp!==!1&amp;&amp;(Ne.test(e.url)?"url":"string"==typeof e.data&amp;&amp;!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&amp;&amp;Ne.test(e.data)&amp;&amp;"data");return a||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=K.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ne,"$1"+r):e.jsonp!==!1&amp;&amp;(e.url+=(he.test(e.url)?"&amp;":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||K.error(r+" was not called"),o[0]},e.dataTypes[0]="json",s=t[r],t[r]=function(){o=arguments},n.always(function(){t[r]=s,e[r]&amp;&amp;(e.jsonpCallback=i.jsonpCallback,Ie.push(r)),o&amp;&amp;K.isFunction(s)&amp;&amp;s(o[0]),o=s=void 0}),"script"):void 0}),K.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&amp;&amp;(i=e,e=!1),e=e||J;var n=ot.exec(t),r=!i&amp;&amp;[];return n?[e.createElement(n[1])]:(n=K.buildFragment([t],e,r),r&amp;&amp;r.length&amp;&amp;K(r).remove(),K.merge([],n.childNodes))};var Re=K.fn.load;K.fn.load=function(t,e,i){if("string"!=typeof t&amp;&amp;Re)return Re.apply(this,arguments);var n,r,s,o=this,a=t.indexOf(" ");return a&gt;=0&amp;&amp;(n=K.trim(t.slice(a)),t=t.slice(0,a)),K.isFunction(e)?(i=e,e=void 0):e&amp;&amp;"object"==typeof e&amp;&amp;(r="POST"),o.length&gt;0&amp;&amp;K.ajax({url:t,type:r,dataType:"html",data:e}).done(function(t){s=arguments,o.html(n?K("&lt;div&gt;").append(K.parseHTML(t)).find(n):t)}).complete(i&amp;&amp;function(t,e){o.each(i,s||[t.responseText,e,t])}),this},K.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){K.fn[e]=function(t){return this.on(e,t)}}),K.expr.filters.animated=function(t){return K.grep(K.timers,function(e){return t===e.elem}).length};var ze=t.document.documentElement;K.offset={setOffset:function(t,e,i){var n,r,s,o,a,l,u,h=K.css(t,"position"),c=K(t),p={};"static"===h&amp;&amp;(t.style.position="relative"),a=c.offset(),s=K.css(t,"top"),l=K.css(t,"left"),u=("absolute"===h||"fixed"===h)&amp;&amp;(s+l).indexOf("auto")&gt;-1,u?(n=c.position(),o=n.top,r=n.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),K.isFunction(e)&amp;&amp;(e=e.call(t,i,a)),null!=e.top&amp;&amp;(p.top=e.top-a.top+o),null!=e.left&amp;&amp;(p.left=e.left-a.left+r),"using"in e?e.using.call(t,p):c.css(p)}},K.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){K.offset.setOffset(this,t,e)});var e,i,n=this[0],r={top:0,left:0},s=n&amp;&amp;n.ownerDocument;if(s)return e=s.documentElement,K.contains(e,n)?(typeof n.getBoundingClientRect!==Ct&amp;&amp;(r=n.getBoundingClientRect()),i=B(s),{top:r.top+i.pageYOffset-e.clientTop,left:r.left+i.pageXOffset-e.clientLeft}):r},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===K.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),K.nodeName(t[0],"html")||(n=t.offset()),n.top+=K.css(t[0],"borderTopWidth",!0),n.left+=K.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-K.css(i,"marginTop",!0),left:e.left-n.left-K.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||ze;t&amp;&amp;!K.nodeName(t,"html")&amp;&amp;"static"===K.css(t,"position");)t=t.offsetParent;return t||ze})}}),K.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var n="pageYOffset"===i;K.fn[e]=function(r){return mt(this,function(e,r,s){var o=B(e);return void 0===s?o?o[i]:e[r]:void(o?o.scrollTo(n?t.pageXOffset:s,n?s:t.pageYOffset):e[r]=s)},e,r,arguments.length,null)}}),K.each(["top","left"],function(t,e){K.cssHooks[e]=x(Z.pixelPosition,function(t,i){return i?(i=w(t,e),Wt.test(i)?K(t).position()[e]+"px":i):void 0})}),K.each({Height:"height",Width:"width"},function(t,e){K.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){K.fn[n]=function(n,r){var s=arguments.length&amp;&amp;(i||"boolean"!=typeof n),o=i||(n===!0||r===!0?"margin":"border");return mt(this,function(e,i,n){var r;return K.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===n?K.css(e,i,o):K.style(e,i,n,o)},e,s?n:void 0,s,null)}})}),K.fn.size=function(){return this.length},K.fn.andSelf=K.fn.addBack,"function"==typeof define&amp;&amp;define.amd&amp;&amp;define("jquery",[],function(){return K});var je=t.jQuery,Oe=t.$;return K.noConflict=function(e){return t.$===K&amp;&amp;(t.$=Oe),e&amp;&amp;t.jQuery===K&amp;&amp;(t.jQuery=je),K},typeof e===Ct&amp;&amp;(t.jQuery=t.$=K),K})},{}],19:[function(t,e,i){function n(t){if(!t)return n.__;Array.prototype.reduce||(Array.prototype.reduce=function(t,e){for(var i=e,n=0;n&lt;this.length;n++)i=t(i,this[n],n,this);return i});var e="",i=("."+t).split(".").reduce(function(t,i,r,s){e?e+="."+i:e=i;var o=t["__"+e];return void 0===o&amp;&amp;(n.Logger.prototype=t,o=new n.Logger(e),t["__"+e]=o),o},n.__);return i}var n,r=this.__extends||function(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&amp;&amp;(t[n]=e[n]);i.prototype=e.prototype,t.prototype=new i};!function(t){function e(t,e,i){return void 0!==e[t]?null===e[t]?void delete i[t]:void(i[t]=e[t]):void 0}function i(e){if(null!=t.enabled&amp;&amp;!t.enabled)return!1;if(null!=t.maxMessages&amp;&amp;t.maxMessages&lt;1)return!1;try{if(e.userAgentRegex&amp;&amp;!new RegExp(e.userAgentRegex).test(navigator.userAgent))return!1}catch(i){}try{if(e.ipRegex&amp;&amp;t.clientIP&amp;&amp;!new RegExp(e.ipRegex).test(t.clientIP))return!1}catch(i){}return!0}function n(t,e){try{if(t.disallow&amp;&amp;new RegExp(t.disallow).test(e))return!1}catch(i){}return!0}function s(t){return"function"==typeof t?t instanceof RegExp?t.toString():t():t}function o(t){var e,i=s(t);switch(typeof i){case"string":return new y(i,null,i);case"number":return e=i.toString(),new y(e,null,e);case"boolean":return e=i.toString(),new y(e,null,e);case"undefined":return new y("undefined",null,"undefined");case"object":return i instanceof RegExp||i instanceof String||i instanceof Number||i instanceof Boolean?(e=i.toString(),new y(e,null,e)):new y(null,i,JSON.stringify(i));default:return new y("unknown",null,"unknown")}}function a(t){return e("enabled",t,this),e("maxMessages",t,this),e("defaultAjaxUrl",t,this),e("clientIP",t,this),e("requestId",t,this),e("defaultBeforeSend",t,this),this}function l(){return-2147483648}function u(){return 1e3}function h(){return 2e3}function c(){return 3e3}function p(){return 4e3}function d(){return 5e3}function f(){return 6e3}function g(){return 2147483647}function m(t){return 1e3&gt;=t?"trace":2e3&gt;=t?"debug":3e3&gt;=t?"info":4e3&gt;=t?"warn":5e3&gt;=t?"error":"fatal"}function _(t){return new k(t)}function v(t){return new M(t)}t.enabled,t.maxMessages,t.defaultAjaxUrl,t.clientIP,t.defaultBeforeSend,t.requestId="";var y=function(){function t(t,e,i){this.msg=t,this.meta=e,this.finalString=i}return t}();t.setOptions=a,t.getAllLevel=l,t.getTraceLevel=u,t.getDebugLevel=h,t.getInfoLevel=c,t.getWarnLevel=p,t.getErrorLevel=d,t.getFatalLevel=f,t.getOffLevel=g;var b=function(){function t(t,e){this.inner=e,this.name="JL.Exception",this.message=o(t).finalString}return t}();t.Exception=b,b.prototype=new Error;var w=function(){function t(t,e,i,n){this.l=t,this.m=e,this.n=i,this.t=n}return t}();t.LogItem=w;var x=function(){function r(e,i){this.appenderName=e,this.sendLogItems=i,this.level=t.getTraceLevel(),this.sendWithBufferLevel=2147483647,this.storeInBufferLevel=-2147483648,this.bufferSize=0,this.batchSize=1,this.buffer=[],this.batchBuffer=[]}return r.prototype.setOptions=function(t){return e("level",t,this),e("ipRegex",t,this),e("userAgentRegex",t,this),e("disallow",t,this),e("sendWithBufferLevel",t,this),e("storeInBufferLevel",t,this),e("bufferSize",t,this),e("batchSize",t,this),this.bufferSize&lt;this.buffer.length&amp;&amp;(this.buffer.length=this.bufferSize),this},r.prototype.log=function(t,e,r,s,o,a,l){var u;if(i(this)&amp;&amp;n(this,a)&amp;&amp;!(o&lt;this.storeInBufferLevel))return u=new w(o,a,l,(new Date).getTime()),o&lt;this.level?void(this.bufferSize&gt;0&amp;&amp;(this.buffer.push(u),this.buffer.length&gt;this.bufferSize&amp;&amp;this.buffer.shift())):(o&lt;this.sendWithBufferLevel?this.batchBuffer.push(u):(this.buffer.length&amp;&amp;(this.batchBuffer=this.batchBuffer.concat(this.buffer),this.buffer.length=0),this.batchBuffer.push(u)),this.batchBuffer.length&gt;=this.batchSize?void this.sendBatch():void 0)},r.prototype.sendBatch=function(){0!=this.batchBuffer.length&amp;&amp;(null!=t.maxMessages&amp;&amp;t.maxMessages&lt;1||(null!=t.maxMessages&amp;&amp;(t.maxMessages-=this.batchBuffer.length),this.sendLogItems(this.batchBuffer),this.batchBuffer.length=0))},r}();t.Appender=x;var k=function(i){function n(t){i.call(this,t,n.prototype.sendLogItemsAjax)}return r(n,i),n.prototype.setOptions=function(t){return e("url",t,this),e("beforeSend",t,this),i.prototype.setOptions.call(this,t),this},n.prototype.sendLogItemsAjax=function(e){try{var i="/jsnlog.logger";null!=t.defaultAjaxUrl&amp;&amp;(i=t.defaultAjaxUrl),this.url&amp;&amp;(i=this.url);var n=JSON.stringify({r:t.requestId,lg:e}),r=this.getXhr(i);"function"==typeof this.beforeSend?this.beforeSend(r):"function"==typeof t.defaultBeforeSend&amp;&amp;t.defaultBeforeSend(r),r.send(n)}catch(s){}},n.prototype.getXhr=function(e){var i=new XMLHttpRequest;if(!("withCredentials"in i)&amp;&amp;"undefined"!=typeof XDomainRequest){var n=new XDomainRequest;return n.open("POST",e),n}return i.open("POST",e),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("JSNLog-RequestId",t.requestId),i},n}(x);t.AjaxAppender=k;var M=function(e){function i(t){e.call(this,t,i.prototype.sendLogItemsConsole)}return r(i,e),i.prototype.clog=function(t){console.log(t)},i.prototype.cerror=function(t){console.error?console.error(t):this.clog(t)},i.prototype.cwarn=function(t){console.warn?console.warn(t):this.clog(t)},i.prototype.cinfo=function(t){console.info?console.info(t):this.clog(t)},i.prototype.cdebug=function(t){console.debug?console.debug(t):this.cinfo(t)},i.prototype.sendLogItemsConsole=function(e){try{if(!console)return;var i;for(i=0;i&lt;e.length;++i){var n=e[i],r=n.n+": "+n.m;"undefined"==typeof window&amp;&amp;(r=new Date(n.t)+" | "+r),n.l&lt;=t.getDebugLevel()?this.cdebug(r):n.l&lt;=t.getInfoLevel()?this.cinfo(r):n.l&lt;=t.getWarnLevel()?this.cwarn(r):this.cerror(r)}}catch(s){}},i}(x);t.ConsoleAppender=M;var C=function(){function t(t){this.loggerName=t,this.seenRegexes=[]}return t.prototype.setOptions=function(t){return e("level",t,this),e("userAgentRegex",t,this),e("disallow",t,this),e("ipRegex",t,this),e("appenders",t,this),e("onceOnly",t,this),this.seenRegexes=[],this},t.prototype.buildExceptionObject=function(t){var e={};return t.stack?e.stack=t.stack:e.e=t,t.message&amp;&amp;(e.message=t.message),t.name&amp;&amp;(e.name=t.name),t.data&amp;&amp;(e.data=t.data),t.inner&amp;&amp;(e.inner=this.buildExceptionObject(t.inner)),e},t.prototype.log=function(t,e,r){var a,l,u=0;if(!this.appenders)return this;if(t&gt;=this.level&amp;&amp;i(this)&amp;&amp;(r?(l=this.buildExceptionObject(r),l.logData=s(e)):l=e,a=o(l),n(this,a.finalString))){if(this.onceOnly)for(u=this.onceOnly.length-1;u&gt;=0;){if(new RegExp(this.onceOnly[u]).test(a.finalString)){if(this.seenRegexes[u])return this;this.seenRegexes[u]=!0}u--}for(a.meta=a.meta||{},a.meta.loggerName=this.loggerName,u=this.appenders.length-1;u&gt;=0;)this.appenders[u].log(m(t),a.msg,a.meta,function(){},t,a.finalString,this.loggerName),u--}return this},t.prototype.trace=function(t){return this.log(u(),t)},t.prototype.debug=function(t){return this.log(h(),t)},t.prototype.info=function(t){return this.log(c(),t)},t.prototype.warn=function(t){return this.log(p(),t)},t.prototype.error=function(t){return this.log(d(),t)},t.prototype.fatal=function(t){return this.log(f(),t)},t.prototype.fatalException=function(t,e){return this.log(f(),t,e)},t}();t.Logger=C,t.createAjaxAppender=_,t.createConsoleAppender=v;var D=new k("");"undefined"==typeof window&amp;&amp;(D=new M("")),t.__=new t.Logger(""),t.__.setOptions({level:t.getDebugLevel(),appenders:[D]})}(n||(n={}));var i;"undefined"!=typeof i&amp;&amp;(i.JL=n);var s;"function"==typeof s&amp;&amp;s.amd&amp;&amp;s("jsnlog",[],function(){return n}),"function"==typeof __jsnlog_configure&amp;&amp;__jsnlog_configure(n)},{}],20:[function(t,e,i){function n(t,e,i){if(!(this instanceof n))return new n(t,e,i);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&amp;&amp;"undefined"==typeof e){var r=t.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=t,this.y=e,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}var r=t("mgrs");n.fromMGRS=function(t){return new n(r.toPoint(t))},n.prototype.toMGRS=function(t){return r.forward([this.x,this.y],t)},e.exports=n},{mgrs:87}],21:[function(t,e,i){function n(t,e){if(!(this instanceof n))return new n(t);e=e||function(t){if(t)throw t};var i=r(t);if("object"!=typeof i)return void e(t);var o=a(i),l=n.projections.get(o.projName);l?(s(this,o),s(this,l),this.init(),e(null,this)):e(t)}var r=t("./parseCode"),s=t("./extend"),o=t("./projections"),a=t("./deriveConstants");n.projections=o,n.projections.start(),e.exports=n},{"./deriveConstants":52,"./extend":53,"./parseCode":57,"./projections":59}],22:[function(t,e,i){e.exports=function(t,e,i){var n,r,s,o=i.x,a=i.y,l=i.z||0;for(s=0;3&gt;s;s++)if(!e||2!==s||void 0!==i.z)switch(0===s?(n=o,r="x"):1===s?(n=a,r="y"):(n=l,r="z"),t.axis[s]){case"e":i[r]=n;break;case"w":i[r]=-n;break;case"n":i[r]=n;break;case"s":i[r]=-n;break;case"u":void 0!==i[r]&amp;&amp;(i.z=n);break;case"d":void 0!==i[r]&amp;&amp;(i.z=-n);break;default:return null}return i}},{}],23:[function(t,e,i){var n=Math.PI/2,r=t("./sign");e.exports=function(t){return Math.abs(t)&lt;n?t:t-r(t)*Math.PI}},{"./sign":40}],24:[function(t,e,i){var n=2*Math.PI,r=3.14159265359,s=t("./sign");e.exports=function(t){return Math.abs(t)&lt;=r?t:t-s(t)*n}},{"./sign":40}],25:[function(t,e,i){e.exports=function(t){return Math.abs(t)&gt;1&amp;&amp;(t=t&gt;1?1:-1),Math.asin(t)}},{}],26:[function(t,e,i){e.exports=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))}},{}],27:[function(t,e,i){e.exports=function(t){return.375*t*(1+.25*t*(1+.46875*t))}},{}],28:[function(t,e,i){e.exports=function(t){return.05859375*t*t*(1+.75*t)}},{}],29:[function(t,e,i){e.exports=function(t){return t*t*t*(35/3072)}},{}],30:[function(t,e,i){e.exports=function(t,e,i){var n=e*i;return t/Math.sqrt(1-n*n)}},{}],31:[function(t,e,i){e.exports=function(t,e,i,n,r){var s,o;s=t/e;for(var a=0;15&gt;a;a++)if(o=(t-(e*s-i*Math.sin(2*s)+n*Math.sin(4*s)-r*Math.sin(6*s)))/(e-2*i*Math.cos(2*s)+4*n*Math.cos(4*s)-6*r*Math.cos(6*s)),s+=o,Math.abs(o)&lt;=1e-10)return s;return NaN}},{}],32:[function(t,e,i){var n=Math.PI/2;e.exports=function(t,e){var i=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-i)&lt;1e-6)return 0&gt;e?-1*n:n;for(var r,s,o,a,l=Math.asin(.5*e),u=0;30&gt;u;u++)if(s=Math.sin(l),o=Math.cos(l),a=t*s,r=Math.pow(1-a*a,2)/(2*o)*(e/(1-t*t)-s/(1-a*a)+.5/t*Math.log((1-a)/(1+a))),l+=r,Math.abs(r)&lt;=1e-10)return l;return NaN}},{}],33:[function(t,e,i){e.exports=function(t,e,i,n,r){return t*r-e*Math.sin(2*r)+i*Math.sin(4*r)-n*Math.sin(6*r)}},{}],34:[function(t,e,i){e.exports=function(t,e,i){var n=t*e;return i/Math.sqrt(1-n*n)}},{}],35:[function(t,e,i){var n=Math.PI/2;e.exports=function(t,e){for(var i,r,s=.5*t,o=n-2*Math.atan(e),a=0;15&gt;=a;a++)if(i=t*Math.sin(o),r=n-2*Math.atan(e*Math.pow((1-i)/(1+i),s))-o,o+=r,Math.abs(r)&lt;=1e-10)return o;return-9999}},{}],36:[function(t,e,i){var n=1,r=.25,s=.046875,o=.01953125,a=.01068115234375,l=.75,u=.46875,h=.013020833333333334,c=.007120768229166667,p=.3645833333333333,d=.005696614583333333,f=.3076171875;e.exports=function(t){var e=[];e[0]=n-t*(r+t*(s+t*(o+t*a))),e[1]=t*(l-t*(s+t*(o+t*a)));var i=t*t;return e[2]=i*(u-t*(h+t*c)),i*=t,e[3]=i*(p-t*d),e[4]=i*t*f,e}},{}],37:[function(t,e,i){var n=t("./pj_mlfn"),r=1e-10,s=20;e.exports=function(t,e,i){for(var o=1/(1-e),a=t,l=s;l;--l){var u=Math.sin(a),h=1-e*u*u;if(h=(n(a,u,Math.cos(a),i)-t)*(h*Math.sqrt(h))*o,a-=h,Math.abs(h)&lt;r)return a}return a}},{"./pj_mlfn":38}],38:[function(t,e,i){e.exports=function(t,e,i,n){return i*=e,e*=e,n[0]*t-i*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}},{}],39:[function(t,e,i){e.exports=function(t,e){var i;return t&gt;1e-7?(i=t*e,(1-t*t)*(e/(1-i*i)-.5/t*Math.log((1-i)/(1+i)))):2*e}},{}],40:[function(t,e,i){e.exports=function(t){return 0&gt;t?-1:1}},{}],41:[function(t,e,i){e.exports=function(t,e){return Math.pow((1-t)/(1+t),e)}},{}],42:[function(t,e,i){e.exports=function(t){var e={x:t[0],y:t[1]};return t.length&gt;2&amp;&amp;(e.z=t[2]),t.length&gt;3&amp;&amp;(e.m=t[3]),e}},{}],43:[function(t,e,i){var n=Math.PI/2;e.exports=function(t,e,i){var r=t*i,s=.5*t;return r=Math.pow((1-r)/(1+r),s),Math.tan(.5*(n-e))/r}},{}],44:[function(t,e,i){i.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},i.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},i.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},i.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},i.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},i.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},i.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},i.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},i.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},i.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},i.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},i.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},i.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},i.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},i.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},i.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},{}],45:[function(t,e,i){i.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},i.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},i.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},i.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},i.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},i.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},i.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},i.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},i.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},i.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl &amp; S. Amer. 1969"},i.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},i.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},i.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},i.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},i.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},i.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},i.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},i.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},i.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},i.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},i.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},i.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},i.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},i.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah &amp; Sarawak)"},i.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},i.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},i.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},i.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},i.hough={a:6378270,rf:297,ellipseName:"Hough"},i.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},i.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},i.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},i.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},i.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},i.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},i.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},i.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},i.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},i.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},i.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},i.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"},i.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"},i.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},{}],46:[function(t,e,i){i.greenwich=0,i.lisbon=-9.131906111111,i.paris=2.337229166667,i.bogota=-74.080916666667,i.madrid=-3.687938888889,i.rome=12.452333333333,i.bern=7.439583333333,i.jakarta=106.807719444444,i.ferro=-17.666666666667,i.brussels=4.367975,i.stockholm=18.058277777778,i.athens=23.7163375,i.oslo=10.722916666667},{}],47:[function(t,e,i){i.ft={to_meter:.3048},i["us-ft"]={to_meter:1200/3937}},{}],48:[function(t,e,i){function n(t,e,i){var n;return Array.isArray(i)?(n=a(t,e,i),3===i.length?[n.x,n.y,n.z]:[n.x,n.y]):a(t,e,i)}function r(t){return t instanceof o?t:t.oProj?t.oProj:o(t)}function s(t,e,i){t=r(t);var s,o=!1;return"undefined"==typeof e?(e=t,t=l,o=!0):("undefined"!=typeof e.x||Array.isArray(e))&amp;&amp;(i=e,e=t,t=l,o=!0),e=r(e),i?n(t,e,i):(s={forward:function(i){return n(t,e,i)},inverse:function(i){return n(e,t,i)}},o&amp;&amp;(s.oProj=e),s)}var o=t("./Proj"),a=t("./transform"),l=o("WGS84");e.exports=s},{"./Proj":21,"./transform":85}],49:[function(t,e,i){var n=Math.PI/2,r=1,s=2,o=3,a=4,l=5,u=484813681109536e-20,h=1.0026,c=.3826834323650898,p=function(t){if(!(this instanceof p))return new p(t);if(this.datum_type=a,t){if(t.datumCode&amp;&amp;"none"===t.datumCode&amp;&amp;(this.datum_type=l),t.datum_params){for(var e=0;e&lt;t.datum_params.length;e++)t.datum_params[e]=parseFloat(t.datum_params[e]);(0!==t.datum_params[0]||0!==t.datum_params[1]||0!==t.datum_params[2])&amp;&amp;(this.datum_type=r),t.datum_params.length&gt;3&amp;&amp;(0!==t.datum_params[3]||0!==t.datum_params[4]||0!==t.datum_params[5]||0!==t.datum_params[6])&amp;&amp;(this.datum_type=s,t.datum_params[3]*=u,t.datum_params[4]*=u,t.datum_params[5]*=u,t.datum_params[6]=t.datum_params[6]/1e6+1)}this.datum_type=t.grids?o:this.datum_type,this.a=t.a,this.b=t.b,this.es=t.es,this.ep2=t.ep2,this.datum_params=t.datum_params,this.datum_type===o&amp;&amp;(this.grids=t.grids)}};p.prototype={compare_datums:function(t){return this.datum_type!==t.datum_type?!1:this.a!==t.a||Math.abs(this.es-t.es)&gt;5e-11?!1:this.datum_type===r?this.datum_params[0]===t.datum_params[0]&amp;&amp;this.datum_params[1]===t.datum_params[1]&amp;&amp;this.datum_params[2]===t.datum_params[2]:this.datum_type===s?this.datum_params[0]===t.datum_params[0]&amp;&amp;this.datum_params[1]===t.datum_params[1]&amp;&amp;this.datum_params[2]===t.datum_params[2]&amp;&amp;this.datum_params[3]===t.datum_params[3]&amp;&amp;this.datum_params[4]===t.datum_params[4]&amp;&amp;this.datum_params[5]===t.datum_params[5]&amp;&amp;this.datum_params[6]===t.datum_params[6]:this.datum_type===o||t.datum_type===o?this.nadgrids===t.nadgrids:!0},geodetic_to_geocentric:function(t){var e,i,r,s,o,a,l,u=t.x,h=t.y,c=t.z?t.z:0,p=0;if(-n&gt;h&amp;&amp;h&gt;-1.001*n)h=-n;else if(h&gt;n&amp;&amp;1.001*n&gt;h)h=n;else if(-n&gt;h||h&gt;n)return null;return u&gt;Math.PI&amp;&amp;(u-=2*Math.PI),o=Math.sin(h),l=Math.cos(h),a=o*o,s=this.a/Math.sqrt(1-this.es*a),e=(s+c)*l*Math.cos(u),i=(s+c)*l*Math.sin(u),r=(s*(1-this.es)+c)*o,t.x=e,t.y=i,t.z=r,p},geocentric_to_geodetic:function(t){var e,i,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y=1e-12,b=y*y,w=30,x=t.x,k=t.y,M=t.z?t.z:0;if(f=!1,e=Math.sqrt(x*x+k*k),i=Math.sqrt(x*x+k*k+M*M),e/this.a&lt;y){if(f=!0,m=0,i/this.a&lt;y)return _=n,void(v=-this.b)}else m=Math.atan2(k,x);r=M/i,s=e/i,o=1/Math.sqrt(1-this.es*(2-this.es)*s*s),u=s*(1-this.es)*o,h=r*o,g=0;do g++,l=this.a/Math.sqrt(1-this.es*h*h),v=e*u+M*h-l*(1-this.es*h*h),a=this.es*l/(l+v),o=1/Math.sqrt(1-a*(2-a)*s*s),c=s*(1-a)*o,p=r*o,d=p*u-c*h,u=c,h=p;while(d*d&gt;b&amp;&amp;w&gt;g);return _=Math.atan(p/Math.abs(c)),t.x=m,t.y=_,t.z=v,t},geocentric_to_geodetic_noniter:function(t){var e,i,r,s,o,a,l,u,p,d,f,g,m,_,v,y,b,w=t.x,x=t.y,k=t.z?t.z:0;if(w=parseFloat(w),x=parseFloat(x),k=parseFloat(k),b=!1,0!==w)e=Math.atan2(x,w);else if(x&gt;0)e=n;else if(0&gt;x)e=-n;else if(b=!0,
        e=0,k&gt;0)i=n;else{if(!(0&gt;k))return i=n,void(r=-this.b);i=-n}return o=w*w+x*x,s=Math.sqrt(o),a=k*h,u=Math.sqrt(a*a+o),d=a/u,g=s/u,f=d*d*d,l=k+this.b*this.ep2*f,y=s-this.a*this.es*g*g*g,p=Math.sqrt(l*l+y*y),m=l/p,_=y/p,v=this.a/Math.sqrt(1-this.es*m*m),r=_&gt;=c?s/_-v:-c&gt;=_?s/-_-v:k/m+v*(this.es-1),b===!1&amp;&amp;(i=Math.atan(m/_)),t.x=e,t.y=i,t.z=r,t},geocentric_to_wgs84:function(t){if(this.datum_type===r)t.x+=this.datum_params[0],t.y+=this.datum_params[1],t.z+=this.datum_params[2];else if(this.datum_type===s){var e=this.datum_params[0],i=this.datum_params[1],n=this.datum_params[2],o=this.datum_params[3],a=this.datum_params[4],l=this.datum_params[5],u=this.datum_params[6],h=u*(t.x-l*t.y+a*t.z)+e,c=u*(l*t.x+t.y-o*t.z)+i,p=u*(-a*t.x+o*t.y+t.z)+n;t.x=h,t.y=c,t.z=p}},geocentric_from_wgs84:function(t){if(this.datum_type===r)t.x-=this.datum_params[0],t.y-=this.datum_params[1],t.z-=this.datum_params[2];else if(this.datum_type===s){var e=this.datum_params[0],i=this.datum_params[1],n=this.datum_params[2],o=this.datum_params[3],a=this.datum_params[4],l=this.datum_params[5],u=this.datum_params[6],h=(t.x-e)/u,c=(t.y-i)/u,p=(t.z-n)/u;t.x=h+l*c-a*p,t.y=-l*h+c+o*p,t.z=a*h-o*c+p}}},e.exports=p},{}],50:[function(t,e,i){var n=1,r=2,s=3,o=5,a=6378137,l=.006694379990141316;e.exports=function(t,e,i){function u(t){return t===n||t===r}var h,c,p;if(t.compare_datums(e))return i;if(t.datum_type===o||e.datum_type===o)return i;var d=t.a,f=t.es,g=e.a,m=e.es,_=t.datum_type;if(_===s)if(0===this.apply_gridshift(t,0,i))t.a=a,t.es=l;else{if(!t.datum_params)return t.a=d,t.es=t.es,i;for(h=1,c=0,p=t.datum_params.length;p&gt;c;c++)h*=t.datum_params[c];if(0===h)return t.a=d,t.es=t.es,i;_=t.datum_params.length&gt;3?r:n}return e.datum_type===s&amp;&amp;(e.a=a,e.es=l),(t.es!==e.es||t.a!==e.a||u(_)||u(e.datum_type))&amp;&amp;(t.geodetic_to_geocentric(i),u(t.datum_type)&amp;&amp;t.geocentric_to_wgs84(i),u(e.datum_type)&amp;&amp;e.geocentric_from_wgs84(i),e.geocentric_to_geodetic(i)),e.datum_type===s&amp;&amp;this.apply_gridshift(e,1,i),t.a=d,t.es=f,e.a=g,e.es=m,i}},{}],51:[function(t,e,i){function n(t){var e=this;if(2===arguments.length){var i=arguments[1];"string"==typeof i?"+"===i.charAt(0)?n[t]=s(arguments[1]):n[t]=o(arguments[1]):n[t]=i}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?n.apply(e,t):n(t)});if("string"==typeof t){if(t in n)return n[t]}else"EPSG"in t?n["EPSG:"+t.EPSG]=t:"ESRI"in t?n["ESRI:"+t.ESRI]=t:"IAU2000"in t?n["IAU2000:"+t.IAU2000]=t:console.log(t);return}}var r=t("./global"),s=t("./projString"),o=t("./wkt");r(n),e.exports=n},{"./global":54,"./projString":58,"./wkt":86}],52:[function(t,e,i){var n=t("./constants/Datum"),r=t("./constants/Ellipsoid"),s=t("./extend"),o=t("./datum"),a=1e-10,l=.16666666666666666,u=.04722222222222222,h=.022156084656084655;e.exports=function(t){if(t.datumCode&amp;&amp;"none"!==t.datumCode){var e=n[t.datumCode];e&amp;&amp;(t.datum_params=e.towgs84?e.towgs84.split(","):null,t.ellps=e.ellipse,t.datumName=e.datumName?e.datumName:t.datumCode)}if(!t.a){var i=r[t.ellps]?r[t.ellps]:r.WGS84;s(t,i)}return t.rf&amp;&amp;!t.b&amp;&amp;(t.b=(1-1/t.rf)*t.a),(0===t.rf||Math.abs(t.a-t.b)&lt;a)&amp;&amp;(t.sphere=!0,t.b=t.a),t.a2=t.a*t.a,t.b2=t.b*t.b,t.es=(t.a2-t.b2)/t.a2,t.e=Math.sqrt(t.es),t.R_A&amp;&amp;(t.a*=1-t.es*(l+t.es*(u+t.es*h)),t.a2=t.a*t.a,t.b2=t.b*t.b,t.es=0),t.ep2=(t.a2-t.b2)/t.b2,t.k0||(t.k0=1),t.axis||(t.axis="enu"),t.datum||(t.datum=o(t)),t}},{"./constants/Datum":44,"./constants/Ellipsoid":45,"./datum":49,"./extend":53}],53:[function(t,e,i){e.exports=function(t,e){t=t||{};var i,n;if(!e)return t;for(n in e)i=e[n],void 0!==i&amp;&amp;(t[n]=i);return t}},{}],54:[function(t,e,i){e.exports=function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}},{}],55:[function(t,e,i){var n=[t("./projections/tmerc"),t("./projections/utm"),t("./projections/sterea"),t("./projections/stere"),t("./projections/somerc"),t("./projections/omerc"),t("./projections/lcc"),t("./projections/krovak"),t("./projections/cass"),t("./projections/laea"),t("./projections/aea"),t("./projections/gnom"),t("./projections/cea"),t("./projections/eqc"),t("./projections/poly"),t("./projections/nzmg"),t("./projections/mill"),t("./projections/sinu"),t("./projections/moll"),t("./projections/eqdc"),t("./projections/vandg"),t("./projections/aeqd")];e.exports=function(t){n.forEach(function(e){t.Proj.projections.add(e)})}},{"./projections/aea":60,"./projections/aeqd":61,"./projections/cass":62,"./projections/cea":63,"./projections/eqc":64,"./projections/eqdc":65,"./projections/gnom":67,"./projections/krovak":68,"./projections/laea":69,"./projections/lcc":70,"./projections/mill":73,"./projections/moll":74,"./projections/nzmg":75,"./projections/omerc":76,"./projections/poly":77,"./projections/sinu":78,"./projections/somerc":79,"./projections/stere":80,"./projections/sterea":81,"./projections/tmerc":82,"./projections/utm":83,"./projections/vandg":84}],56:[function(t,e,i){var n=t("./core");n.defaultDatum="WGS84",n.Proj=t("./Proj"),n.WGS84=new n.Proj("WGS84"),n.Point=t("./Point"),n.toPoint=t("./common/toPoint"),n.defs=t("./defs"),n.transform=t("./transform"),n.mgrs=t("mgrs"),n.version=t("../package.json").version,t("./includedProjections")(n),e.exports=n},{"../package.json":88,"./Point":20,"./Proj":21,"./common/toPoint":42,"./core":48,"./defs":51,"./includedProjections":55,"./transform":85,mgrs:87}],57:[function(t,e,i){function n(t){return"string"==typeof t}function r(t){return t in l}function s(t){var e=["GEOGCS","GEOCCS","PROJCS","LOCAL_CS"];return e.reduce(function(e,i){return e+1+t.indexOf(i)},0)}function o(t){return"+"===t[0]}function a(t){return n(t)?r(t)?l[t]:s(t)?u(t):o(t)?h(t):void 0:t}var l=t("./defs"),u=t("./wkt"),h=t("./projString");e.exports=a},{"./defs":51,"./projString":58,"./wkt":86}],58:[function(t,e,i){var n=.017453292519943295,r=t("./constants/PrimeMeridian"),s=t("./constants/units");e.exports=function(t){var e={},i={};t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).forEach(function(t){var e=t.split("=");e.push(!0),i[e[0].toLowerCase()]=e[1]});var o,a,l,u={proj:"projName",datum:"datumCode",rf:function(t){e.rf=parseFloat(t)},lat_0:function(t){e.lat0=t*n},lat_1:function(t){e.lat1=t*n},lat_2:function(t){e.lat2=t*n},lat_ts:function(t){e.lat_ts=t*n},lon_0:function(t){e.long0=t*n},lon_1:function(t){e.long1=t*n},lon_2:function(t){e.long2=t*n},alpha:function(t){e.alpha=parseFloat(t)*n},lonc:function(t){e.longc=t*n},x_0:function(t){e.x0=parseFloat(t)},y_0:function(t){e.y0=parseFloat(t)},k_0:function(t){e.k0=parseFloat(t)},k:function(t){e.k0=parseFloat(t)},a:function(t){e.a=parseFloat(t)},b:function(t){e.b=parseFloat(t)},r_a:function(){e.R_A=!0},zone:function(t){e.zone=parseInt(t,10)},south:function(){e.utmSouth=!0},towgs84:function(t){e.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){e.to_meter=parseFloat(t)},units:function(t){e.units=t,s[t]&amp;&amp;(e.to_meter=s[t].to_meter)},from_greenwich:function(t){e.from_greenwich=t*n},pm:function(t){e.from_greenwich=(r[t]?r[t]:parseFloat(t))*n},nadgrids:function(t){"@null"===t?e.datumCode="none":e.nadgrids=t},axis:function(t){var i="ewnsud";3===t.length&amp;&amp;-1!==i.indexOf(t.substr(0,1))&amp;&amp;-1!==i.indexOf(t.substr(1,1))&amp;&amp;-1!==i.indexOf(t.substr(2,1))&amp;&amp;(e.axis=t)}};for(o in i)a=i[o],o in u?(l=u[o],"function"==typeof l?l(a):e[l]=a):e[o]=a;return"string"==typeof e.datumCode&amp;&amp;"WGS84"!==e.datumCode&amp;&amp;(e.datumCode=e.datumCode.toLowerCase()),e}},{"./constants/PrimeMeridian":46,"./constants/units":47}],59:[function(t,e,i){function n(t,e){var i=o.length;return t.names?(o[i]=t,t.names.forEach(function(t){s[t.toLowerCase()]=i}),this):(console.log(e),!0)}var r=[t("./projections/merc"),t("./projections/longlat")],s={},o=[];i.add=n,i.get=function(t){if(!t)return!1;var e=t.toLowerCase();return"undefined"!=typeof s[e]&amp;&amp;o[s[e]]?o[s[e]]:void 0},i.start=function(){r.forEach(n)}},{"./projections/longlat":71,"./projections/merc":72}],60:[function(t,e,i){var n=1e-10,r=t("../common/msfnz"),s=t("../common/qsfnz"),o=t("../common/adjust_lon"),a=t("../common/asinz");i.init=function(){Math.abs(this.lat1+this.lat2)&lt;n||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=r(this.e3,this.sin_po,this.cos_po),this.qs1=s(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=r(this.e3,this.sin_po,this.cos_po),this.qs2=s(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=s(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)&gt;n?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},i.forward=function(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var n=s(this.e3,this.sin_phi,this.cos_phi),r=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*o(e-this.long0),l=r*Math.sin(a)+this.x0,u=this.rh-r*Math.cos(a)+this.y0;return t.x=l,t.y=u,t},i.inverse=function(t){var e,i,n,r,s,a;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0&gt;=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),n=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),n=-1),r=0,0!==e&amp;&amp;(r=Math.atan2(n*t.x,n*t.y)),n=e*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(i=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,i)),s=o(r/this.ns0+this.long0),t.x=s,t.y=a,t},i.phi1z=function(t,e){var i,r,s,o,l,u=a(.5*e);if(n&gt;t)return u;for(var h=t*t,c=1;25&gt;=c;c++)if(i=Math.sin(u),r=Math.cos(u),s=t*i,o=1-s*s,l=.5*o*o/r*(e/(1-h)-i/o+.5/t*Math.log((1-s)/(1+s))),u+=l,Math.abs(l)&lt;=1e-7)return u;return null},i.names=["Albers_Conic_Equal_Area","Albers","aea"]},{"../common/adjust_lon":24,"../common/asinz":25,"../common/msfnz":34,"../common/qsfnz":39}],61:[function(t,e,i){var n=t("../common/adjust_lon"),r=Math.PI/2,s=1e-10,o=t("../common/mlfn"),a=t("../common/e0fn"),l=t("../common/e1fn"),u=t("../common/e2fn"),h=t("../common/e3fn"),c=t("../common/gN"),p=t("../common/asinz"),d=t("../common/imlfn");i.init=function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},i.forward=function(t){var e,i,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N=t.x,R=t.y,z=Math.sin(t.y),j=Math.cos(t.y),O=n(N-this.long0);return this.sphere?Math.abs(this.sin_p12-1)&lt;=s?(t.x=this.x0+this.a*(r-R)*Math.sin(O),t.y=this.y0-this.a*(r-R)*Math.cos(O),t):Math.abs(this.sin_p12+1)&lt;=s?(t.x=this.x0+this.a*(r+R)*Math.sin(O),t.y=this.y0+this.a*(r+R)*Math.cos(O),t):(T=this.sin_p12*z+this.cos_p12*j*Math.cos(O),C=Math.acos(T),D=C/Math.sin(C),t.x=this.x0+this.a*D*j*Math.sin(O),t.y=this.y0+this.a*D*(this.cos_p12*z-this.sin_p12*j*Math.cos(O)),t):(e=a(this.es),i=l(this.es),p=u(this.es),d=h(this.es),Math.abs(this.sin_p12-1)&lt;=s?(f=this.a*o(e,i,p,d,r),g=this.a*o(e,i,p,d,R),t.x=this.x0+(f-g)*Math.sin(O),t.y=this.y0-(f-g)*Math.cos(O),t):Math.abs(this.sin_p12+1)&lt;=s?(f=this.a*o(e,i,p,d,r),g=this.a*o(e,i,p,d,R),t.x=this.x0+(f+g)*Math.sin(O),t.y=this.y0+(f+g)*Math.cos(O),t):(m=z/j,_=c(this.a,this.e,this.sin_p12),v=c(this.a,this.e,z),y=Math.atan((1-this.es)*m+this.es*_*this.sin_p12/(v*j)),b=Math.atan2(Math.sin(O),this.cos_p12*Math.tan(y)-this.sin_p12*Math.cos(O)),S=0===b?Math.asin(this.cos_p12*Math.sin(y)-this.sin_p12*Math.cos(y)):Math.abs(Math.abs(b)-Math.PI)&lt;=s?-Math.asin(this.cos_p12*Math.sin(y)-this.sin_p12*Math.cos(y)):Math.asin(Math.sin(O)*Math.cos(y)/Math.sin(b)),w=this.e*this.sin_p12/Math.sqrt(1-this.es),x=this.e*this.cos_p12*Math.cos(b)/Math.sqrt(1-this.es),k=w*x,M=x*x,A=S*S,P=A*S,E=P*S,I=E*S,C=_*S*(1-A*M*(1-M)/6+P/8*k*(1-2*M)+E/120*(M*(4-7*M)-3*w*w*(1-7*M))-I/48*k),t.x=this.x0+C*Math.sin(b),t.y=this.y0+C*Math.cos(b),t))},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,i,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R;if(this.sphere){if(e=Math.sqrt(t.x*t.x+t.y*t.y),e&gt;2*r*this.a)return;return i=e/this.a,f=Math.sin(i),g=Math.cos(i),m=this.long0,Math.abs(e)&lt;=s?_=this.lat0:(_=p(g*this.sin_p12+t.y*f*this.cos_p12/e),v=Math.abs(this.lat0)-r,m=n(Math.abs(v)&lt;=s?this.lat0&gt;=0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y):this.long0+Math.atan2(t.x*f,e*this.cos_p12*g-t.y*this.sin_p12*f))),t.x=m,t.y=_,t}return y=a(this.es),b=l(this.es),w=u(this.es),x=h(this.es),Math.abs(this.sin_p12-1)&lt;=s?(k=this.a*o(y,b,w,x,r),e=Math.sqrt(t.x*t.x+t.y*t.y),M=k-e,_=d(M/this.a,y,b,w,x),m=n(this.long0+Math.atan2(t.x,-1*t.y)),t.x=m,t.y=_,t):Math.abs(this.sin_p12+1)&lt;=s?(k=this.a*o(y,b,w,x,r),e=Math.sqrt(t.x*t.x+t.y*t.y),M=e-k,_=d(M/this.a,y,b,w,x),m=n(this.long0+Math.atan2(t.x,t.y)),t.x=m,t.y=_,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),T=Math.atan2(t.x,t.y),C=c(this.a,this.e,this.sin_p12),S=Math.cos(T),A=this.e*this.cos_p12*S,P=-A*A/(1-this.es),E=3*this.es*(1-P)*this.sin_p12*this.cos_p12*S/(1-this.es),I=e/C,N=I-P*(1+P)*Math.pow(I,3)/6-E*(1+3*P)*Math.pow(I,4)/24,R=1-P*N*N/2-I*N*N*N/6,D=Math.asin(this.sin_p12*Math.cos(N)+this.cos_p12*Math.sin(N)*S),m=n(this.long0+Math.asin(Math.sin(T)*Math.sin(N)/Math.cos(D))),_=Math.atan((1-this.es*R*this.sin_p12/Math.sin(D))*Math.tan(D)/(1-this.es)),t.x=m,t.y=_,t)},i.names=["Azimuthal_Equidistant","aeqd"]},{"../common/adjust_lon":24,"../common/asinz":25,"../common/e0fn":26,"../common/e1fn":27,"../common/e2fn":28,"../common/e3fn":29,"../common/gN":30,"../common/imlfn":31,"../common/mlfn":33}],62:[function(t,e,i){var n=t("../common/mlfn"),r=t("../common/e0fn"),s=t("../common/e1fn"),o=t("../common/e2fn"),a=t("../common/e3fn"),l=t("../common/gN"),u=t("../common/adjust_lon"),h=t("../common/adjust_lat"),c=t("../common/imlfn"),p=Math.PI/2,d=1e-10;i.init=function(){this.sphere||(this.e0=r(this.es),this.e1=s(this.es),this.e2=o(this.es),this.e3=a(this.es),this.ml0=this.a*n(this.e0,this.e1,this.e2,this.e3,this.lat0))},i.forward=function(t){var e,i,r=t.x,s=t.y;if(r=u(r-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(s)*Math.sin(r)),i=this.a*(Math.atan2(Math.tan(s),Math.cos(r))-this.lat0);else{var o=Math.sin(s),a=Math.cos(s),h=l(this.a,this.e,o),c=Math.tan(s)*Math.tan(s),p=r*Math.cos(s),d=p*p,f=this.es*a*a/(1-this.es),g=this.a*n(this.e0,this.e1,this.e2,this.e3,s);e=h*p*(1-d*c*(1/6-(8-c+8*f)*d/120)),i=g-this.ml0+h*o/a*d*(.5+(5-c+6*f)*d/24)}return t.x=e+this.x0,t.y=i+this.y0,t},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,i,n=t.x/this.a,r=t.y/this.a;if(this.sphere){var s=r+this.lat0;e=Math.asin(Math.sin(s)*Math.cos(n)),i=Math.atan2(Math.tan(n),Math.cos(s))}else{var o=this.ml0/this.a+r,a=c(o,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(a)-p)&lt;=d)return t.x=this.long0,t.y=p,0&gt;r&amp;&amp;(t.y*=-1),t;var f=l(this.a,this.e,Math.sin(a)),g=f*f*f/this.a/this.a*(1-this.es),m=Math.pow(Math.tan(a),2),_=n*this.a/f,v=_*_;e=a-f*Math.tan(a)/g*_*_*(.5-(1+3*m)*_*_/24),i=_*(1-v*(m/3+(1+3*m)*m*v/15))/Math.cos(a)}return t.x=u(i+this.long0),t.y=h(e),t},i.names=["Cassini","Cassini_Soldner","cass"]},{"../common/adjust_lat":23,"../common/adjust_lon":24,"../common/e0fn":26,"../common/e1fn":27,"../common/e2fn":28,"../common/e3fn":29,"../common/gN":30,"../common/imlfn":31,"../common/mlfn":33}],63:[function(t,e,i){var n=t("../common/adjust_lon"),r=t("../common/qsfnz"),s=t("../common/msfnz"),o=t("../common/iqsfnz");i.init=function(){this.sphere||(this.k0=s(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},i.forward=function(t){var e,i,s=t.x,o=t.y,a=n(s-this.long0);if(this.sphere)e=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var l=r(this.e,Math.sin(o));e=this.x0+this.a*this.k0*a,i=this.y0+this.a*l*.5/this.k0}return t.x=e,t.y=i,t},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,i;return this.sphere?(e=n(this.long0+t.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=o(this.e,2*t.y*this.k0/this.a),e=n(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=i,t},i.names=["cea"]},{"../common/adjust_lon":24,"../common/iqsfnz":32,"../common/msfnz":34,"../common/qsfnz":39}],64:[function(t,e,i){var n=t("../common/adjust_lon"),r=t("../common/adjust_lat");i.init=function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},i.forward=function(t){var e=t.x,i=t.y,s=n(e-this.long0),o=r(i-this.lat0);return t.x=this.x0+this.a*s*this.rc,t.y=this.y0+this.a*o,t},i.inverse=function(t){var e=t.x,i=t.y;return t.x=n(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=r(this.lat0+(i-this.y0)/this.a),t},i.names=["Equirectangular","Equidistant_Cylindrical","eqc"]},{"../common/adjust_lat":23,"../common/adjust_lon":24}],65:[function(t,e,i){var n=t("../common/e0fn"),r=t("../common/e1fn"),s=t("../common/e2fn"),o=t("../common/e3fn"),a=t("../common/msfnz"),l=t("../common/mlfn"),u=t("../common/adjust_lon"),h=t("../common/adjust_lat"),c=t("../common/imlfn"),p=1e-10;i.init=function(){Math.abs(this.lat1+this.lat2)&lt;p||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=n(this.es),this.e1=r(this.es),this.e2=s(this.es),this.e3=o(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=a(this.e,this.sinphi,this.cosphi),this.ml1=l(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)&lt;p?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=a(this.e,this.sinphi,this.cosphi),this.ml2=l(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=l(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},i.forward=function(t){var e,i=t.x,n=t.y;if(this.sphere)e=this.a*(this.g-n);else{var r=l(this.e0,this.e1,this.e2,this.e3,n);e=this.a*(this.g-r)}var s=this.ns*u(i-this.long0),o=this.x0+e*Math.sin(s),a=this.y0+this.rh-e*Math.cos(s);return t.x=o,t.y=a,t},i.inverse=function(t){t.x-=this.x0,t.y=this.rh-t.y+this.y0;var e,i,n,r;this.ns&gt;=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var s=0;if(0!==i&amp;&amp;(s=Math.atan2(e*t.x,e*t.y)),this.sphere)return r=u(this.long0+s/this.ns),n=h(this.g-i/this.a),t.x=r,t.y=n,t;var o=this.g-i/this.a;return n=c(o,this.e0,this.e1,this.e2,this.e3),r=u(this.long0+s/this.ns),t.x=r,t.y=n,t},i.names=["Equidistant_Conic","eqdc"]},{"../common/adjust_lat":23,"../common/adjust_lon":24,"../common/e0fn":26,"../common/e1fn":27,"../common/e2fn":28,"../common/e3fn":29,"../common/imlfn":31,"../common/mlfn":33,"../common/msfnz":34}],66:[function(t,e,i){var n=Math.PI/4,r=t("../common/srat"),s=Math.PI/2,o=20;i.init=function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+n)/(Math.pow(Math.tan(.5*this.lat0+n),this.C)*r(this.e*t,this.ratexp))},i.forward=function(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+n),this.C)*r(this.e*Math.sin(i),this.ratexp))-s,t.x=this.C*e,t},i.inverse=function(t){for(var e=1e-14,i=t.x/this.C,a=t.y,l=Math.pow(Math.tan(.5*a+n)/this.K,1/this.C),u=o;u&gt;0&amp;&amp;(a=2*Math.atan(l*r(this.e*Math.sin(t.y),-.5*this.e))-s,!(Math.abs(a-t.y)&lt;e));--u)t.y=a;return u?(t.x=i,t.y=a,t):null},i.names=["gauss"]},{"../common/srat":41}],67:[function(t,e,i){var n=t("../common/adjust_lon"),r=1e-10,s=t("../common/asinz");i.init=function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},i.forward=function(t){var e,i,s,o,a,l,u,h,c=t.x,p=t.y;return s=n(c-this.long0),e=Math.sin(p),i=Math.cos(p),o=Math.cos(s),l=this.sin_p14*e+this.cos_p14*i*o,a=1,l&gt;0||Math.abs(l)&lt;=r?(u=this.x0+this.a*a*i*Math.sin(s)/l,h=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*i*o)/l):(u=this.x0+this.infinity_dist*i*Math.sin(s),h=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*o)),t.x=u,t.y=h,t},i.inverse=function(t){var e,i,r,o,a,l;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(o=Math.atan2(e,this.rc),i=Math.sin(o),r=Math.cos(o),l=s(r*this.sin_p14+t.y*i*this.cos_p14/e),a=Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i),a=n(this.long0+a)):(l=this.phic0,a=0),t.x=a,t.y=l,t},i.names=["gnom"]},{"../common/adjust_lon":24,"../common/asinz":25}],68:[function(t,e,i){var n=t("../common/adjust_lon");i.init=function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},i.forward=function(t){var e,i,r,s,o,a,l,u=t.x,h=t.y,c=n(u-this.long0);return e=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/e)-this.s45),r=-c*this.alfa,s=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),o=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(s)),a=this.n*o,l=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(s/2+this.s45),this.n),t.y=l*Math.cos(a)/1,t.x=l*Math.sin(a)/1,this.czech||(t.y*=-1,t.x*=-1),t},i.inverse=function(t){var e,i,n,r,s,o,a,l,u=t.x;t.x=t.y,t.y=u,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),s=Math.atan2(t.y,t.x),r=s/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),i=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(e)),t.x=this.long0-i/this.alfa,a=e,l=0;var h=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)&lt;1e-10&amp;&amp;(l=1),a=t.y,h+=1;while(0===l&amp;&amp;15&gt;h);return h&gt;=15?null:t},i.names=["Krovak","krovak"]},{"../common/adjust_lon":24}],69:[function(t,e,i){var n=Math.PI/2,r=Math.PI/4,s=1e-10,o=t("../common/qsfnz"),a=t("../common/adjust_lon");i.S_POLE=1,i.N_POLE=2,i.EQUIT=3,i.OBLIQ=4,i.init=function(){var t=Math.abs(this.lat0);if(Math.abs(t-n)&lt;s?this.mode=this.lat0&lt;0?this.S_POLE:this.N_POLE:Math.abs(t)&lt;s?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es&gt;0){var e;switch(this.qp=o(this.e,1),this.mmf=.5/(1-this.es),this.apa=this.authset(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=o(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}}else this.mode===this.OBLIQ&amp;&amp;(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},i.forward=function(t){var e,i,l,u,h,c,p,d,f,g,m=t.x,_=t.y;if(m=a(m-this.long0),this.sphere){if(h=Math.sin(_),g=Math.cos(_),l=Math.cos(m),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(i=this.mode===this.EQUIT?1+g*l:1+this.sinph0*h+this.cosph0*g*l,s&gt;=i)return null;i=Math.sqrt(2/i),e=i*g*Math.sin(m),i*=this.mode===this.EQUIT?h:this.cosph0*h-this.sinph0*g*l}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&amp;&amp;(l=-l),Math.abs(_+this.phi0)&lt;s)return null;i=r-.5*_,i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)),e=i*Math.sin(m),i*=l}}else{switch(p=0,d=0,f=0,l=Math.cos(m),u=Math.sin(m),h=Math.sin(_),c=o(this.e,h),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&amp;&amp;(p=c/this.qp,d=Math.sqrt(1-p*p)),this.mode){case this.OBLIQ:f=1+this.sinb1*p+this.cosb1*d*l;break;case this.EQUIT:f=1+d*l;break;case this.N_POLE:f=n+_,c=this.qp-c;break;case this.S_POLE:f=_-n,c=this.qp+c}if(Math.abs(f)&lt;s)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:f=Math.sqrt(2/f),i=this.mode===this.OBLIQ?this.ymf*f*(this.cosb1*p-this.sinb1*d*l):(f=Math.sqrt(2/(1+d*l)))*p*this.ymf,e=this.xmf*f*d*u;break;case this.N_POLE:case this.S_POLE:c&gt;=0?(e=(f=Math.sqrt(c))*u,i=l*(this.mode===this.S_POLE?f:-f)):e=i=0}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,i,r,o,l,u,h,c=t.x/this.a,p=t.y/this.a;if(this.sphere){var d,f=0,g=0;if(d=Math.sqrt(c*c+p*p),i=.5*d,i&gt;1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&amp;&amp;(g=Math.sin(i),f=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(d)&lt;=s?0:Math.asin(p*g/d),c*=g,p=f*d;break;case this.OBLIQ:i=Math.abs(d)&lt;=s?this.phi0:Math.asin(f*this.sinph0+p*g*this.cosph0/d),c*=g*this.cosph0,p=(f-Math.sin(i)*this.sinph0)*d;break;case this.N_POLE:p=-p,i=n-i;break;case this.S_POLE:i-=n}e=0!==p||this.mode!==this.EQUIT&amp;&amp;this.mode!==this.OBLIQ?Math.atan2(c,p):0}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(c/=this.dd,p*=this.dd,u=Math.sqrt(c*c+p*p),s&gt;u)return t.x=0,t.y=this.phi0,t;o=2*Math.asin(.5*u/this.rq),r=Math.cos(o),c*=o=Math.sin(o),this.mode===this.OBLIQ?(h=r*this.sinb1+p*o*this.cosb1/u,l=this.qp*h,p=u*this.cosb1*r-p*this.sinb1*o):(h=p*o/u,l=this.qp*h,p=u*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&amp;&amp;(p=-p),l=c*c+p*p,!l)return t.x=0,t.y=this.phi0,t;h=1-l/this.qp,this.mode===this.S_POLE&amp;&amp;(h=-h)}e=Math.atan2(c,p),i=this.authlat(Math.asin(h),this.apa)}return t.x=a(this.long0+e),t.y=i,t},i.P00=.3333333333333333,i.P01=.17222222222222222,i.P02=.10257936507936508,i.P10=.06388888888888888,i.P11=.0664021164021164,i.P20=.016415012942191543,i.authset=function(t){var e,i=[];return i[0]=t*this.P00,e=t*t,i[0]+=e*this.P01,i[1]=e*this.P10,e*=t,i[0]+=e*this.P02,i[1]+=e*this.P11,i[2]=e*this.P20,i},i.authlat=function(t,e){var i=t+t;return t+e[0]*Math.sin(i)+e[1]*Math.sin(i+i)+e[2]*Math.sin(i+i+i)},i.names=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"]},{"../common/adjust_lon":24,"../common/qsfnz":39}],70:[function(t,e,i){var n=1e-10,r=t("../common/msfnz"),s=t("../common/tsfnz"),o=Math.PI/2,a=t("../common/sign"),l=t("../common/adjust_lon"),u=t("../common/phi2z");i.init=function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)&lt;n)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),i=Math.cos(this.lat1),o=r(this.e,e,i),a=s(this.e,this.lat1,e),l=Math.sin(this.lat2),u=Math.cos(this.lat2),h=r(this.e,l,u),c=s(this.e,this.lat2,l),p=s(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)&gt;n?this.ns=Math.log(o/h)/Math.log(a/c):this.ns=e,isNaN(this.ns)&amp;&amp;(this.ns=e),this.f0=o/(this.ns*Math.pow(a,this.ns)),this.rh=this.a*this.f0*Math.pow(p,this.ns),this.title||(this.title="Lambert Conformal Conic")}},i.forward=function(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)&lt;=n&amp;&amp;(i=a(i)*(o-2*n));var r,u,h=Math.abs(Math.abs(i)-o);if(h&gt;n)r=s(this.e,i,Math.sin(i)),u=this.a*this.f0*Math.pow(r,this.ns);else{if(h=i*this.ns,0&gt;=h)return null;u=0}var c=this.ns*l(e-this.long0);return t.x=this.k0*(u*Math.sin(c))+this.x0,t.y=this.k0*(this.rh-u*Math.cos(c))+this.y0,t},i.inverse=function(t){var e,i,n,r,s,a=(t.x-this.x0)/this.k0,h=this.rh-(t.y-this.y0)/this.k0;this.ns&gt;0?(e=Math.sqrt(a*a+h*h),i=1):(e=-Math.sqrt(a*a+h*h),i=-1);var c=0;if(0!==e&amp;&amp;(c=Math.atan2(i*a,i*h)),0!==e||this.ns&gt;0){if(i=1/this.ns,n=Math.pow(e/(this.a*this.f0),i),r=u(this.e,n),-9999===r)return null}else r=-o;return s=l(c/this.ns+this.long0),t.x=s,t.y=r,t},i.names=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]},{"../common/adjust_lon":24,"../common/msfnz":34,"../common/phi2z":35,"../common/sign":40,"../common/tsfnz":43}],71:[function(t,e,i){function n(t){return t}i.init=function(){},i.forward=n,i.inverse=n,i.names=["longlat","identity"]},{}],72:[function(t,e,i){var n=t("../common/msfnz"),r=Math.PI/2,s=1e-10,o=57.29577951308232,a=t("../common/adjust_lon"),l=Math.PI/4,u=t("../common/tsfnz"),h=t("../common/phi2z");i.init=function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=n(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},i.forward=function(t){var e=t.x,i=t.y;if(i*o&gt;90&amp;&amp;-90&gt;i*o&amp;&amp;e*o&gt;180&amp;&amp;-180&gt;e*o)return null;var n,h;if(Math.abs(Math.abs(i)-r)&lt;=s)return null;if(this.sphere)n=this.x0+this.a*this.k0*a(e-this.long0),h=this.y0+this.a*this.k0*Math.log(Math.tan(l+.5*i));else{var c=Math.sin(i),p=u(this.e,i,c);n=this.x0+this.a*this.k0*a(e-this.long0),h=this.y0-this.a*this.k0*Math.log(p)}return t.x=n,t.y=h,t},i.inverse=function(t){var e,i,n=t.x-this.x0,s=t.y-this.y0;if(this.sphere)i=r-2*Math.atan(Math.exp(-s/(this.a*this.k0)));else{var o=Math.exp(-s/(this.a*this.k0));if(i=h(this.e,o),-9999===i)return null}return e=a(this.long0+n/(this.a*this.k0)),t.x=e,t.y=i,t},i.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{"../common/adjust_lon":24,"../common/msfnz":34,"../common/phi2z":35,"../common/tsfnz":43}],73:[function(t,e,i){var n=t("../common/adjust_lon");i.init=function(){},i.forward=function(t){var e=t.x,i=t.y,r=n(e-this.long0),s=this.x0+this.a*r,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=s,t.y=o,t},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e=n(this.long0+t.x/this.a),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=i,t},i.names=["Miller_Cylindrical","mill"]},{"../common/adjust_lon":24}],74:[function(t,e,i){var n=t("../common/adjust_lon"),r=1e-10;i.init=function(){},i.forward=function(t){for(var e=t.x,i=t.y,s=n(e-this.long0),o=i,a=Math.PI*Math.sin(i),l=0;!0;l++){var u=-(o+Math.sin(o)-a)/(1+Math.cos(o));if(o+=u,Math.abs(u)&lt;r)break}o/=2,Math.PI/2-Math.abs(i)&lt;r&amp;&amp;(s=0);var h=.900316316158*this.a*s*Math.cos(o)+this.x0,c=1.4142135623731*this.a*Math.sin(o)+this.y0;return t.x=h,t.y=c,t},i.inverse=function(t){var e,i;t.x-=this.x0,t.y-=this.y0,i=t.y/(1.4142135623731*this.a),Math.abs(i)&gt;.999999999999&amp;&amp;(i=.999999999999),e=Math.asin(i);var r=n(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));r&lt;-Math.PI&amp;&amp;(r=-Math.PI),r&gt;Math.PI&amp;&amp;(r=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)&gt;1&amp;&amp;(i=1);var s=Math.asin(i);return t.x=r,t.y=s,t},i.names=["Mollweide","moll"]},{"../common/adjust_lon":24}],75:[function(t,e,i){var n=484813681109536e-20;i.iterations=1,i.init=function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,
        this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},i.forward=function(t){var e,i=t.x,r=t.y,s=r-this.lat0,o=i-this.long0,a=s/n*1e-5,l=o,u=1,h=0;for(e=1;10&gt;=e;e++)u*=a,h+=this.A[e]*u;var c,p,d=h,f=l,g=1,m=0,_=0,v=0;for(e=1;6&gt;=e;e++)c=g*d-m*f,p=m*d+g*f,g=c,m=p,_=_+this.B_re[e]*g-this.B_im[e]*m,v=v+this.B_im[e]*g+this.B_re[e]*m;return t.x=v*this.a+this.x0,t.y=_*this.a+this.y0,t},i.inverse=function(t){var e,i,r,s=t.x,o=t.y,a=s-this.x0,l=o-this.y0,u=l/this.a,h=a/this.a,c=1,p=0,d=0,f=0;for(e=1;6&gt;=e;e++)i=c*u-p*h,r=p*u+c*h,c=i,p=r,d=d+this.C_re[e]*c-this.C_im[e]*p,f=f+this.C_im[e]*c+this.C_re[e]*p;for(var g=0;g&lt;this.iterations;g++){var m,_,v=d,y=f,b=u,w=h;for(e=2;6&gt;=e;e++)m=v*d-y*f,_=y*d+v*f,v=m,y=_,b+=(e-1)*(this.B_re[e]*v-this.B_im[e]*y),w+=(e-1)*(this.B_im[e]*v+this.B_re[e]*y);v=1,y=0;var x=this.B_re[1],k=this.B_im[1];for(e=2;6&gt;=e;e++)m=v*d-y*f,_=y*d+v*f,v=m,y=_,x+=e*(this.B_re[e]*v-this.B_im[e]*y),k+=e*(this.B_im[e]*v+this.B_re[e]*y);var M=x*x+k*k;d=(b*x+w*k)/M,f=(w*x-b*k)/M}var C=d,D=f,T=1,S=0;for(e=1;9&gt;=e;e++)T*=C,S+=this.D[e]*T;var A=this.lat0+S*n*1e5,P=this.long0+D;return t.x=P,t.y=A,t},i.names=["New_Zealand_Map_Grid","nzmg"]},{}],76:[function(t,e,i){var n=t("../common/tsfnz"),r=t("../common/adjust_lon"),s=t("../common/phi2z"),o=Math.PI/2,a=Math.PI/4,l=1e-10;i.init=function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&amp;&amp;(this.k0=1);var t=Math.sin(this.lat0),e=Math.cos(this.lat0),i=this.e*t;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(e,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-i*i);var s=n(this.e,this.lat0,t),o=this.bl/e*Math.sqrt((1-this.es)/(1-i*i));1&gt;o*o&amp;&amp;(o=1);var a,l;if(isNaN(this.longc)){var u=n(this.e,this.lat1,Math.sin(this.lat1)),h=n(this.e,this.lat2,Math.sin(this.lat2));this.lat0&gt;=0?this.el=(o+Math.sqrt(o*o-1))*Math.pow(s,this.bl):this.el=(o-Math.sqrt(o*o-1))*Math.pow(s,this.bl);var c=Math.pow(u,this.bl),p=Math.pow(h,this.bl);a=this.el/c,l=.5*(a-1/a);var d=(this.el*this.el-p*c)/(this.el*this.el+p*c),f=(p-c)/(p+c),g=r(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(d*Math.tan(.5*this.bl*g)/f)/this.bl,this.long0=r(this.long0);var m=r(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*m)/l),this.alpha=Math.asin(o*Math.sin(this.gamma0))}else a=this.lat0&gt;=0?o+Math.sqrt(o*o-1):o-Math.sqrt(o*o-1),this.el=a*Math.pow(s,this.bl),l=.5*(a-1/a),this.gamma0=Math.asin(Math.sin(this.alpha)/o),this.long0=this.longc-Math.asin(l*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0&gt;=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(o*o-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(o*o-1),Math.cos(this.alpha))},i.forward=function(t){var e,i,s,u=t.x,h=t.y,c=r(u-this.long0);if(Math.abs(Math.abs(h)-o)&lt;=l)s=h&gt;0?-1:1,i=this.al/this.bl*Math.log(Math.tan(a+s*this.gamma0*.5)),e=-1*s*o*this.al/this.bl;else{var p=n(this.e,h,Math.sin(h)),d=this.el/Math.pow(p,this.bl),f=.5*(d-1/d),g=.5*(d+1/d),m=Math.sin(this.bl*c),_=(f*Math.sin(this.gamma0)-m*Math.cos(this.gamma0))/g;i=Math.abs(Math.abs(_)-1)&lt;=l?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-_)/(1+_))/this.bl,e=Math.abs(Math.cos(this.bl*c))&lt;=l?this.al*this.bl*c:this.al*Math.atan2(f*Math.cos(this.gamma0)+m*Math.sin(this.gamma0),Math.cos(this.bl*c))/this.bl}return this.no_rot?(t.x=this.x0+e,t.y=this.y0+i):(e-=this.uc,t.x=this.x0+i*Math.cos(this.alpha)+e*Math.sin(this.alpha),t.y=this.y0+e*Math.cos(this.alpha)-i*Math.sin(this.alpha)),t},i.inverse=function(t){var e,i;this.no_rot?(i=t.y-this.y0,e=t.x-this.x0):(i=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),e=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),e+=this.uc);var n=Math.exp(-1*this.bl*i/this.al),a=.5*(n-1/n),u=.5*(n+1/n),h=Math.sin(this.bl*e/this.al),c=(h*Math.cos(this.gamma0)+a*Math.sin(this.gamma0))/u,p=Math.pow(this.el/Math.sqrt((1+c)/(1-c)),1/this.bl);return Math.abs(c-1)&lt;l?(t.x=this.long0,t.y=o):Math.abs(c+1)&lt;l?(t.x=this.long0,t.y=-1*o):(t.y=s(this.e,p),t.x=r(this.long0-Math.atan2(a*Math.cos(this.gamma0)-h*Math.sin(this.gamma0),Math.cos(this.bl*e/this.al))/this.bl)),t},i.names=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]},{"../common/adjust_lon":24,"../common/phi2z":35,"../common/tsfnz":43}],77:[function(t,e,i){var n=t("../common/e0fn"),r=t("../common/e1fn"),s=t("../common/e2fn"),o=t("../common/e3fn"),a=t("../common/adjust_lon"),l=t("../common/adjust_lat"),u=t("../common/mlfn"),h=1e-10,c=t("../common/gN"),p=20;i.init=function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=n(this.es),this.e1=r(this.es),this.e2=s(this.es),this.e3=o(this.es),this.ml0=this.a*u(this.e0,this.e1,this.e2,this.e3,this.lat0)},i.forward=function(t){var e,i,n,r=t.x,s=t.y,o=a(r-this.long0);if(n=o*Math.sin(s),this.sphere)Math.abs(s)&lt;=h?(e=this.a*o,i=-1*this.a*this.lat0):(e=this.a*Math.sin(n)/Math.tan(s),i=this.a*(l(s-this.lat0)+(1-Math.cos(n))/Math.tan(s)));else if(Math.abs(s)&lt;=h)e=this.a*o,i=-1*this.ml0;else{var p=c(this.a,this.e,Math.sin(s))/Math.tan(s);e=p*Math.sin(n),i=this.a*u(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+p*(1-Math.cos(n))}return t.x=e+this.x0,t.y=i+this.y0,t},i.inverse=function(t){var e,i,n,r,s,o,l,c,d;if(n=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)&lt;=h)e=a(n/this.a+this.long0),i=0;else{o=this.lat0+r/this.a,l=n*n/this.a/this.a+o*o,c=o;var f;for(s=p;s;--s)if(f=Math.tan(c),d=-1*(o*(c*f+1)-c-.5*(c*c+l)*f)/((c-o)/f-1),c+=d,Math.abs(d)&lt;=h){i=c;break}e=a(this.long0+Math.asin(n*Math.tan(c)/this.a)/Math.sin(i))}else if(Math.abs(r+this.ml0)&lt;=h)i=0,e=a(this.long0+n/this.a);else{o=(this.ml0+r)/this.a,l=n*n/this.a/this.a+o*o,c=o;var g,m,_,v,y;for(s=p;s;--s)if(y=this.e*Math.sin(c),g=Math.sqrt(1-y*y)*Math.tan(c),m=this.a*u(this.e0,this.e1,this.e2,this.e3,c),_=this.e0-2*this.e1*Math.cos(2*c)+4*this.e2*Math.cos(4*c)-6*this.e3*Math.cos(6*c),v=m/this.a,d=(o*(g*v+1)-v-.5*g*(v*v+l))/(this.es*Math.sin(2*c)*(v*v+l-2*o*v)/(4*g)+(o-v)*(g*_-2/Math.sin(2*c))-_),c-=d,Math.abs(d)&lt;=h){i=c;break}g=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=a(this.long0+Math.asin(n*g/this.a)/Math.sin(i))}return t.x=e,t.y=i,t},i.names=["Polyconic","poly"]},{"../common/adjust_lat":23,"../common/adjust_lon":24,"../common/e0fn":26,"../common/e1fn":27,"../common/e2fn":28,"../common/e3fn":29,"../common/gN":30,"../common/mlfn":33}],78:[function(t,e,i){var n=t("../common/adjust_lon"),r=t("../common/adjust_lat"),s=t("../common/pj_enfn"),o=20,a=t("../common/pj_mlfn"),l=t("../common/pj_inv_mlfn"),u=Math.PI/2,h=1e-10,c=t("../common/asinz");i.init=function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=s(this.es)},i.forward=function(t){var e,i,r=t.x,s=t.y;if(r=n(r-this.long0),this.sphere){if(this.m)for(var l=this.n*Math.sin(s),u=o;u;--u){var c=(this.m*s+Math.sin(s)-l)/(this.m+Math.cos(s));if(s-=c,Math.abs(c)&lt;h)break}else s=1!==this.n?Math.asin(this.n*Math.sin(s)):s;e=this.a*this.C_x*r*(this.m+Math.cos(s)),i=this.a*this.C_y*s}else{var p=Math.sin(s),d=Math.cos(s);i=this.a*a(s,p,d,this.en),e=this.a*r*d/Math.sqrt(1-this.es*p*p)}return t.x=e,t.y=i,t},i.inverse=function(t){var e,i,s,o;return t.x-=this.x0,s=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,s/=this.C_x*(this.m+Math.cos(e)),this.m?e=c((this.m*e+Math.sin(e))/this.n):1!==this.n&amp;&amp;(e=c(Math.sin(e)/this.n)),s=n(s+this.long0),e=r(e)):(e=l(t.y/this.a,this.es,this.en),o=Math.abs(e),u&gt;o?(o=Math.sin(e),i=this.long0+t.x*Math.sqrt(1-this.es*o*o)/(this.a*Math.cos(e)),s=n(i)):u&gt;o-h&amp;&amp;(s=this.long0)),t.x=s,t.y=e,t},i.names=["Sinusoidal","sinu"]},{"../common/adjust_lat":23,"../common/adjust_lon":24,"../common/asinz":25,"../common/pj_enfn":36,"../common/pj_inv_mlfn":37,"../common/pj_mlfn":38}],79:[function(t,e,i){i.init=function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),i=this.a,n=this.rf,r=1/n,s=2*r-Math.pow(r,2),o=this.e=Math.sqrt(s);this.R=this.k0*i*Math.sqrt(1-s)/(1-s*Math.pow(e,2)),this.alpha=Math.sqrt(1+s/(1-s)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+t/2)),u=Math.log((1+o*e)/(1-o*e));this.K=a-this.alpha*l+this.alpha*o/2*u},i.forward=function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),n=-this.alpha*(e+i)+this.K,r=2*(Math.atan(Math.exp(n))-Math.PI/4),s=this.alpha*(t.x-this.lambda0),o=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(s));return t.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*o+this.x0,t},i.inverse=function(t){for(var e=t.x-this.x0,i=t.y-this.y0,n=e/this.R,r=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(r))),a=this.lambda0+o/this.alpha,l=0,u=s,h=-1e3,c=0;Math.abs(u-h)&gt;1e-7;){if(++c&gt;20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),h=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=a,t.y=u,t},i.names=["somerc"]},{}],80:[function(t,e,i){var n=Math.PI/2,r=1e-10,s=t("../common/sign"),o=t("../common/msfnz"),a=t("../common/tsfnz"),l=t("../common/phi2z"),u=t("../common/adjust_lon");i.ssfn_=function(t,e,i){return e*=i,Math.tan(.5*(n+t))*Math.pow((1-e)/(1+e),.5*i)},i.init=function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&amp;&amp;!isNaN(this.lat_ts)&amp;&amp;Math.abs(this.coslat0)&lt;=r&amp;&amp;(this.k0=.5*(1+s(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)&lt;=r&amp;&amp;(this.lat0&gt;0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&amp;&amp;!isNaN(this.lat_ts)&amp;&amp;Math.abs(this.coslat0)&lt;=r&amp;&amp;(this.k0=.5*this.cons*o(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/a(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=o(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-n,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},i.forward=function(t){var e,i,s,o,l,h,c=t.x,p=t.y,d=Math.sin(p),f=Math.cos(p),g=u(c-this.long0);return Math.abs(Math.abs(c-this.long0)-Math.PI)&lt;=r&amp;&amp;Math.abs(p+this.lat0)&lt;=r?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*d+this.coslat0*f*Math.cos(g)),t.x=this.a*e*f*Math.sin(g)+this.x0,t.y=this.a*e*(this.coslat0*d-this.sinlat0*f*Math.cos(g))+this.y0,t):(i=2*Math.atan(this.ssfn_(p,d,this.e))-n,o=Math.cos(i),s=Math.sin(i),Math.abs(this.coslat0)&lt;=r?(l=a(this.e,p*this.con,this.con*d),h=2*this.a*this.k0*l/this.cons,t.x=this.x0+h*Math.sin(c-this.long0),t.y=this.y0-this.con*h*Math.cos(c-this.long0),t):(Math.abs(this.sinlat0)&lt;r?(e=2*this.a*this.k0/(1+o*Math.cos(g)),t.y=e*s):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*s+this.cosX0*o*Math.cos(g))),t.y=e*(this.cosX0*s-this.sinX0*o*Math.cos(g))+this.y0),t.x=e*o*Math.sin(g)+this.x0,t))},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,i,s,o,a,h=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var c=2*Math.atan(h/(.5*this.a*this.k0));return e=this.long0,i=this.lat0,r&gt;=h?(t.x=e,t.y=i,t):(i=Math.asin(Math.cos(c)*this.sinlat0+t.y*Math.sin(c)*this.coslat0/h),e=u(Math.abs(this.coslat0)&lt;r?this.lat0&gt;0?this.long0+Math.atan2(t.x,-1*t.y):this.long0+Math.atan2(t.x,t.y):this.long0+Math.atan2(t.x*Math.sin(c),h*this.coslat0*Math.cos(c)-t.y*this.sinlat0*Math.sin(c))),t.x=e,t.y=i,t)}if(Math.abs(this.coslat0)&lt;=r){if(r&gt;=h)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,s=h*this.cons/(2*this.a*this.k0),i=this.con*l(this.e,s),e=this.con*u(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else o=2*Math.atan(h*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,r&gt;=h?a=this.X0:(a=Math.asin(Math.cos(o)*this.sinX0+t.y*Math.sin(o)*this.cosX0/h),e=u(this.long0+Math.atan2(t.x*Math.sin(o),h*this.cosX0*Math.cos(o)-t.y*this.sinX0*Math.sin(o)))),i=-1*l(this.e,Math.tan(.5*(n+a)));return t.x=e,t.y=i,t},i.names=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"]},{"../common/adjust_lon":24,"../common/msfnz":34,"../common/phi2z":35,"../common/sign":40,"../common/tsfnz":43}],81:[function(t,e,i){var n=t("./gauss"),r=t("../common/adjust_lon");i.init=function(){n.init.apply(this),this.rc&amp;&amp;(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},i.forward=function(t){var e,i,s,o;return t.x=r(t.x-this.long0),n.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),s=Math.cos(t.x),o=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*s),t.x=o*i*Math.sin(t.x),t.y=o*(this.cosc0*e-this.sinc0*i*s),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},i.inverse=function(t){var e,i,s,o,a;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,a=Math.sqrt(t.x*t.x+t.y*t.y)){var l=2*Math.atan2(a,this.R2);e=Math.sin(l),i=Math.cos(l),o=Math.asin(i*this.sinc0+t.y*e*this.cosc0/a),s=Math.atan2(t.x*e,a*this.cosc0*i-t.y*this.sinc0*e)}else o=this.phic0,s=0;return t.x=s,t.y=o,n.inverse.apply(this,[t]),t.x=r(t.x+this.long0),t},i.names=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"]},{"../common/adjust_lon":24,"./gauss":66}],82:[function(t,e,i){var n=t("../common/e0fn"),r=t("../common/e1fn"),s=t("../common/e2fn"),o=t("../common/e3fn"),a=t("../common/mlfn"),l=t("../common/adjust_lon"),u=Math.PI/2,h=1e-10,c=t("../common/sign"),p=t("../common/asinz");i.init=function(){this.e0=n(this.es),this.e1=r(this.es),this.e2=s(this.es),this.e3=o(this.es),this.ml0=this.a*a(this.e0,this.e1,this.e2,this.e3,this.lat0)},i.forward=function(t){var e,i,n,r=t.x,s=t.y,o=l(r-this.long0),u=Math.sin(s),h=Math.cos(s);if(this.sphere){var c=h*Math.sin(o);if(Math.abs(Math.abs(c)-1)&lt;1e-10)return 93;i=.5*this.a*this.k0*Math.log((1+c)/(1-c)),e=Math.acos(h*Math.cos(o)/Math.sqrt(1-c*c)),0&gt;s&amp;&amp;(e=-e),n=this.a*this.k0*(e-this.lat0)}else{var p=h*o,d=Math.pow(p,2),f=this.ep2*Math.pow(h,2),g=Math.tan(s),m=Math.pow(g,2);e=1-this.es*Math.pow(u,2);var _=this.a/Math.sqrt(e),v=this.a*a(this.e0,this.e1,this.e2,this.e3,s);i=this.k0*_*p*(1+d/6*(1-m+f+d/20*(5-18*m+Math.pow(m,2)+72*f-58*this.ep2)))+this.x0,n=this.k0*(v-this.ml0+_*g*(d*(.5+d/24*(5-m+9*f+4*Math.pow(f,2)+d/30*(61-58*m+Math.pow(m,2)+600*f-330*this.ep2)))))+this.y0}return t.x=i,t.y=n,t},i.inverse=function(t){var e,i,n,r,s,o,a=6;if(this.sphere){var d=Math.exp(t.x/(this.a*this.k0)),f=.5*(d-1/d),g=this.lat0+t.y/(this.a*this.k0),m=Math.cos(g);e=Math.sqrt((1-m*m)/(1+f*f)),s=p(e),0&gt;g&amp;&amp;(s=-s),o=0===f&amp;&amp;0===m?this.long0:l(Math.atan2(f,m)+this.long0)}else{var _=t.x-this.x0,v=t.y-this.y0;for(e=(this.ml0+v/this.k0)/this.a,i=e,r=0;!0&amp;&amp;(n=(e+this.e1*Math.sin(2*i)-this.e2*Math.sin(4*i)+this.e3*Math.sin(6*i))/this.e0-i,i+=n,!(Math.abs(n)&lt;=h));r++)if(r&gt;=a)return 95;if(Math.abs(i)&lt;u){var y=Math.sin(i),b=Math.cos(i),w=Math.tan(i),x=this.ep2*Math.pow(b,2),k=Math.pow(x,2),M=Math.pow(w,2),C=Math.pow(M,2);e=1-this.es*Math.pow(y,2);var D=this.a/Math.sqrt(e),T=D*(1-this.es)/e,S=_/(D*this.k0),A=Math.pow(S,2);s=i-D*w*A/T*(.5-A/24*(5+3*M+10*x-4*k-9*this.ep2-A/30*(61+90*M+298*x+45*C-252*this.ep2-3*k))),o=l(this.long0+S*(1-A/6*(1+2*M+x-A/20*(5-2*x+28*M-3*k+8*this.ep2+24*C)))/b)}else s=u*c(v),o=this.long0}return t.x=o,t.y=s,t},i.names=["Transverse_Mercator","Transverse Mercator","tmerc"]},{"../common/adjust_lon":24,"../common/asinz":25,"../common/e0fn":26,"../common/e1fn":27,"../common/e2fn":28,"../common/e3fn":29,"../common/mlfn":33,"../common/sign":40}],83:[function(t,e,i){var n=.017453292519943295,r=t("./tmerc");i.dependsOn="tmerc",i.init=function(){this.zone&amp;&amp;(this.lat0=0,this.long0=(6*Math.abs(this.zone)-183)*n,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,r.init.apply(this),this.forward=r.forward,this.inverse=r.inverse)},i.names=["Universal Transverse Mercator System","utm"]},{"./tmerc":82}],84:[function(t,e,i){var n=t("../common/adjust_lon"),r=Math.PI/2,s=1e-10,o=t("../common/asinz");i.init=function(){this.R=this.a},i.forward=function(t){var e,i,a=t.x,l=t.y,u=n(a-this.long0);Math.abs(l)&lt;=s&amp;&amp;(e=this.x0+this.R*u,i=this.y0);var h=o(2*Math.abs(l/Math.PI));(Math.abs(u)&lt;=s||Math.abs(Math.abs(l)-r)&lt;=s)&amp;&amp;(e=this.x0,i=l&gt;=0?this.y0+Math.PI*this.R*Math.tan(.5*h):this.y0+Math.PI*this.R*-Math.tan(.5*h));var c=.5*Math.abs(Math.PI/u-u/Math.PI),p=c*c,d=Math.sin(h),f=Math.cos(h),g=f/(d+f-1),m=g*g,_=g*(2/d-1),v=_*_,y=Math.PI*this.R*(c*(g-v)+Math.sqrt(p*(g-v)*(g-v)-(v+p)*(m-v)))/(v+p);0&gt;u&amp;&amp;(y=-y),e=this.x0+y;var b=p+g;return y=Math.PI*this.R*(_*b-c*Math.sqrt((v+p)*(p+1)-b*b))/(v+p),i=l&gt;=0?this.y0+y:this.y0-y,t.x=e,t.y=i,t},i.inverse=function(t){var e,i,r,o,a,l,u,h,c,p,d,f,g;return t.x-=this.x0,t.y-=this.y0,d=Math.PI*this.R,r=t.x/d,o=t.y/d,a=r*r+o*o,l=-Math.abs(o)*(1+a),u=l-2*o*o+r*r,h=-2*l+1+2*o*o+a*a,g=o*o/h+(2*u*u*u/h/h/h-9*l*u/h/h)/27,c=(l-u*u/3/h)/h,p=2*Math.sqrt(-c/3),d=3*g/c/p,Math.abs(d)&gt;1&amp;&amp;(d=d&gt;=0?1:-1),f=Math.acos(d)/3,i=t.y&gt;=0?(-p*Math.cos(f+Math.PI/3)-u/3/h)*Math.PI:-(-p*Math.cos(f+Math.PI/3)-u/3/h)*Math.PI,e=Math.abs(r)&lt;s?this.long0:n(this.long0+Math.PI*(a-1+Math.sqrt(1+2*(r*r-o*o)+a*a))/2/r),t.x=e,t.y=i,t},i.names=["Van_der_Grinten_I","VanDerGrinten","vandg"]},{"../common/adjust_lon":24,"../common/asinz":25}],85:[function(t,e,i){var n=.017453292519943295,r=57.29577951308232,s=1,o=2,a=t("./datum_transform"),l=t("./adjust_axis"),u=t("./Proj"),h=t("./common/toPoint");e.exports=function c(t,e,i){function p(t,e){return(t.datum.datum_type===s||t.datum.datum_type===o)&amp;&amp;"WGS84"!==e.datumCode}var d;return Array.isArray(i)&amp;&amp;(i=h(i)),t.datum&amp;&amp;e.datum&amp;&amp;(p(t,e)||p(e,t))&amp;&amp;(d=new u("WGS84"),c(t,d,i),t=d),"enu"!==t.axis&amp;&amp;l(t,!1,i),"longlat"===t.projName?(i.x*=n,i.y*=n):(t.to_meter&amp;&amp;(i.x*=t.to_meter,i.y*=t.to_meter),t.inverse(i)),t.from_greenwich&amp;&amp;(i.x+=t.from_greenwich),i=a(t.datum,e.datum,i),e.from_greenwich&amp;&amp;(i.x-=e.from_greenwich),"longlat"===e.projName?(i.x*=r,i.y*=r):(e.forward(i),e.to_meter&amp;&amp;(i.x/=e.to_meter,i.y/=e.to_meter)),"enu"!==e.axis&amp;&amp;l(e,!0,i),i}},{"./Proj":21,"./adjust_axis":22,"./common/toPoint":42,"./datum_transform":50}],86:[function(t,e,i){function n(t,e,i){t[e]=i.map(function(t){var e={};return r(t,e),e}).reduce(function(t,e){return u(t,e)},{})}function r(t,e){var i;return Array.isArray(t)?(i=t.shift(),"PARAMETER"===i&amp;&amp;(i=t.shift()),1===t.length?Array.isArray(t[0])?(e[i]={},r(t[0],e[i])):e[i]=t[0]:t.length?"TOWGS84"===i?e[i]=t:(e[i]={},["UNIT","PRIMEM","VERT_DATUM"].indexOf(i)&gt;-1?(e[i]={name:t[0].toLowerCase(),convert:t[1]},3===t.length&amp;&amp;(e[i].auth=t[2])):"SPHEROID"===i?(e[i]={name:t[0],a:t[1],rf:t[2]},4===t.length&amp;&amp;(e[i].auth=t[3])):["GEOGCS","GEOCCS","DATUM","VERT_CS","COMPD_CS","LOCAL_CS","FITTED_CS","LOCAL_DATUM"].indexOf(i)&gt;-1?(t[0]=["name",t[0]],n(e,i,t)):t.every(function(t){return Array.isArray(t)})?n(e,i,t):r(t,e[i])):e[i]=!0,void 0):void(e[t]=!0)}function s(t,e){var i=e[0],n=e[1];!(i in t)&amp;&amp;n in t&amp;&amp;(t[i]=t[n],3===e.length&amp;&amp;(t[i]=e[2](t[i])))}function o(t){return t*l}function a(t){function e(e){var i=t.to_meter||1;return parseFloat(e,10)*i}"GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.UNIT&amp;&amp;(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&amp;&amp;(t.units="meter"),t.UNIT.convert&amp;&amp;(t.to_meter=parseFloat(t.UNIT.convert,10))),t.GEOGCS&amp;&amp;(t.GEOGCS.DATUM?t.datumCode=t.GEOGCS.DATUM.name.toLowerCase():t.datumCode=t.GEOGCS.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&amp;&amp;(t.datumCode=t.datumCode.slice(2)),("new_zealand_geodetic_datum_1949"===t.datumCode||"new_zealand_1949"===t.datumCode)&amp;&amp;(t.datumCode="nzgd49"),"wgs_1984"===t.datumCode&amp;&amp;("Mercator_Auxiliary_Sphere"===t.PROJECTION&amp;&amp;(t.sphere=!0),t.datumCode="wgs84"),"_ferro"===t.datumCode.slice(-6)&amp;&amp;(t.datumCode=t.datumCode.slice(0,-6)),"_jakarta"===t.datumCode.slice(-8)&amp;&amp;(t.datumCode=t.datumCode.slice(0,-8)),~t.datumCode.indexOf("belge")&amp;&amp;(t.datumCode="rnb72"),t.GEOGCS.DATUM&amp;&amp;t.GEOGCS.DATUM.SPHEROID&amp;&amp;(t.ellps=t.GEOGCS.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&amp;&amp;(t.ellps="intl"),t.a=t.GEOGCS.DATUM.SPHEROID.a,t.rf=parseFloat(t.GEOGCS.DATUM.SPHEROID.rf,10)),~t.datumCode.indexOf("osgb_1936")&amp;&amp;(t.datumCode="osgb36")),t.b&amp;&amp;!isFinite(t.b)&amp;&amp;(t.b=t.a);var i=function(e){return s(t,e)},n=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",o],["longitude_of_center","Longitude_Of_Center"],["longc","longitude_of_center",o],["x0","false_easting",e],["y0","false_northing",e],["long0","central_meridian",o],["lat0","latitude_of_origin",o],["lat0","standard_parallel_1",o],["lat1","standard_parallel_1",o],["lat2","standard_parallel_2",o],["alpha","azimuth",o],["srsCode","name"]];n.forEach(i),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&amp;&amp;"Lambert_Azimuthal_Equal_Area"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||"Stereographic_South_Pole"!==t.projName&amp;&amp;"Polar Stereographic (variant B)"!==t.projName||(t.lat0=o(t.lat1&gt;0?90:-90),t.lat_ts=t.lat1)}var l=.017453292519943295,u=t("./extend");e.exports=function(t,e){var i=JSON.parse((","+t).replace(/\s*\,\s*([A-Z_0-9]+?)(\[)/g,',["$1",').slice(1).replace(/\s*\,\s*([A-Z_0-9]+?)\]/g,',"$1"]').replace(/,\["VERTCS".+/,"")),n=i.shift(),s=i.shift();i.unshift(["name",s]),i.unshift(["type",n]),i.unshift("output");var o={};return r(i,o),a(o.output),u(e,o.output)}},{"./extend":53}],87:[function(t,e,i){function n(t){return t*(Math.PI/180)}function r(t){return 180*(t/Math.PI)}function s(t){var e,i,r,s,o,l,u,h,c,p=t.lat,d=t.lon,f=6378137,g=.00669438,m=.9996,_=n(p),v=n(d);c=Math.floor((d+180)/6)+1,180===d&amp;&amp;(c=60),p&gt;=56&amp;&amp;64&gt;p&amp;&amp;d&gt;=3&amp;&amp;12&gt;d&amp;&amp;(c=32),p&gt;=72&amp;&amp;84&gt;p&amp;&amp;(d&gt;=0&amp;&amp;9&gt;d?c=31:d&gt;=9&amp;&amp;21&gt;d?c=33:d&gt;=21&amp;&amp;33&gt;d?c=35:d&gt;=33&amp;&amp;42&gt;d&amp;&amp;(c=37)),e=6*(c-1)-180+3,h=n(e),i=g/(1-g),r=f/Math.sqrt(1-g*Math.sin(_)*Math.sin(_)),s=Math.tan(_)*Math.tan(_),o=i*Math.cos(_)*Math.cos(_),l=Math.cos(_)*(v-h),u=f*((1-g/4-3*g*g/64-5*g*g*g/256)*_-(3*g/8+3*g*g/32+45*g*g*g/1024)*Math.sin(2*_)+(15*g*g/256+45*g*g*g/1024)*Math.sin(4*_)-35*g*g*g/3072*Math.sin(6*_));var y=m*r*(l+(1-s+o)*l*l*l/6+(5-18*s+s*s+72*o-58*i)*l*l*l*l*l/120)+5e5,b=m*(u+r*Math.tan(_)*(l*l/2+(5-s+9*o+4*o*o)*l*l*l*l/24+(61-58*s+s*s+600*o-330*i)*l*l*l*l*l*l/720));return 0&gt;p&amp;&amp;(b+=1e7),{northing:Math.round(b),easting:Math.round(y),zoneNumber:c,zoneLetter:a(p)}}function o(t){var e=t.northing,i=t.easting,n=t.zoneLetter,s=t.zoneNumber;if(0&gt;s||s&gt;60)return null;var a,l,u,h,c,p,d,f,g,m,_=.9996,v=6378137,y=.00669438,b=(1-Math.sqrt(1-y))/(1+Math.sqrt(1-y)),w=i-5e5,x=e;"N"&gt;n&amp;&amp;(x-=1e7),f=6*(s-1)-180+3,a=y/(1-y),d=x/_,g=d/(v*(1-y/4-3*y*y/64-5*y*y*y/256)),m=g+(3*b/2-27*b*b*b/32)*Math.sin(2*g)+(21*b*b/16-55*b*b*b*b/32)*Math.sin(4*g)+151*b*b*b/96*Math.sin(6*g),l=v/Math.sqrt(1-y*Math.sin(m)*Math.sin(m)),u=Math.tan(m)*Math.tan(m),h=a*Math.cos(m)*Math.cos(m),c=v*(1-y)/Math.pow(1-y*Math.sin(m)*Math.sin(m),1.5),p=w/(l*_);var k=m-l*Math.tan(m)/c*(p*p/2-(5+3*u+10*h-4*h*h-9*a)*p*p*p*p/24+(61+90*u+298*h+45*u*u-252*a-3*h*h)*p*p*p*p*p*p/720);k=r(k);var M=(p-(1+2*u+h)*p*p*p/6+(5-2*h+28*u-3*h*h+8*a+24*u*u)*p*p*p*p*p/120)/Math.cos(m);M=f+r(M);var C;if(t.accuracy){var D=o({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});C={top:D.lat,right:D.lon,bottom:k,left:M}}else C={lat:k,lon:M};return C}function a(t){var e="Z";return 84&gt;=t&amp;&amp;t&gt;=72?e="X":72&gt;t&amp;&amp;t&gt;=64?e="W":64&gt;t&amp;&amp;t&gt;=56?e="V":56&gt;t&amp;&amp;t&gt;=48?e="U":48&gt;t&amp;&amp;t&gt;=40?e="T":40&gt;t&amp;&amp;t&gt;=32?e="S":32&gt;t&amp;&amp;t&gt;=24?e="R":24&gt;t&amp;&amp;t&gt;=16?e="Q":16&gt;t&amp;&amp;t&gt;=8?e="P":8&gt;t&amp;&amp;t&gt;=0?e="N":0&gt;t&amp;&amp;t&gt;=-8?e="M":-8&gt;t&amp;&amp;t&gt;=-16?e="L":-16&gt;t&amp;&amp;t&gt;=-24?e="K":-24&gt;t&amp;&amp;t&gt;=-32?e="J":-32&gt;t&amp;&amp;t&gt;=-40?e="H":-40&gt;t&amp;&amp;t&gt;=-48?e="G":-48&gt;t&amp;&amp;t&gt;=-56?e="F":-56&gt;t&amp;&amp;t&gt;=-64?e="E":-64&gt;t&amp;&amp;t&gt;=-72?e="D":-72&gt;t&amp;&amp;t&gt;=-80&amp;&amp;(e="C"),e}function l(t,e){var i="00000"+t.easting,n="00000"+t.northing;return t.zoneNumber+t.zoneLetter+u(t.easting,t.northing,t.zoneNumber)+i.substr(i.length-5,e)+n.substr(n.length-5,e)}function u(t,e,i){var n=h(i),r=Math.floor(t/1e5),s=Math.floor(e/1e5)%20;return c(r,s,n)}function h(t){var e=t%m;return 0===e&amp;&amp;(e=m),e}function c(t,e,i){var n=i-1,r=_.charCodeAt(n),s=v.charCodeAt(n),o=r+t-1,a=s+e,l=!1;o&gt;k&amp;&amp;(o=o-k+y-1,l=!0),(o===b||b&gt;r&amp;&amp;o&gt;b||(o&gt;b||b&gt;r)&amp;&amp;l)&amp;&amp;o++,(o===w||w&gt;r&amp;&amp;o&gt;w||(o&gt;w||w&gt;r)&amp;&amp;l)&amp;&amp;(o++,o===b&amp;&amp;o++),o&gt;k&amp;&amp;(o=o-k+y-1),a&gt;x?(a=a-x+y-1,l=!0):l=!1,(a===b||b&gt;s&amp;&amp;a&gt;b||(a&gt;b||b&gt;s)&amp;&amp;l)&amp;&amp;a++,(a===w||w&gt;s&amp;&amp;a&gt;w||(a&gt;w||w&gt;s)&amp;&amp;l)&amp;&amp;(a++,a===b&amp;&amp;a++),a&gt;x&amp;&amp;(a=a-x+y-1);var u=String.fromCharCode(o)+String.fromCharCode(a);return u}function p(t){if(t&amp;&amp;0===t.length)throw"MGRSPoint coverting from nothing";for(var e,i=t.length,n=null,r="",s=0;!/[A-Z]/.test(e=t.charAt(s));){if(s&gt;=2)throw"MGRSPoint bad conversion from: "+t;r+=e,s++}var o=parseInt(r,10);if(0===s||s+3&gt;i)throw"MGRSPoint bad conversion from: "+t;var a=t.charAt(s++);if("A"&gt;=a||"B"===a||"Y"===a||a&gt;="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+t;n=t.substring(s,s+=2);for(var l=h(o),u=d(n.charAt(0),l),c=f(n.charAt(1),l);c&lt;g(a);)c+=2e6;var p=i-s;if(p%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var m,_,v,y,b,w=p/2,x=0,k=0;return w&gt;0&amp;&amp;(m=1e5/Math.pow(10,w),_=t.substring(s,s+w),x=parseFloat(_)*m,v=t.substring(s+w),k=parseFloat(v)*m),y=x+u,b=k+c,{easting:y,northing:b,zoneLetter:a,zoneNumber:o,accuracy:m}}function d(t,e){for(var i=_.charCodeAt(e-1),n=1e5,r=!1;i!==t.charCodeAt(0);){if(i++,i===b&amp;&amp;i++,i===w&amp;&amp;i++,i&gt;k){if(r)throw"Bad character: "+t;i=y,r=!0}n+=1e5}return n}function f(t,e){if(t&gt;"V")throw"MGRSPoint given invalid Northing "+t;for(var i=v.charCodeAt(e-1),n=0,r=!1;i!==t.charCodeAt(0);){if(i++,i===b&amp;&amp;i++,i===w&amp;&amp;i++,i&gt;x){if(r)throw"Bad character: "+t;i=y,r=!0}n+=1e5}return n}function g(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e&gt;=0)return e;throw"Invalid zone letter: "+t}var m=6,_="AJSAJS",v="AFAFAF",y=65,b=73,w=79,x=86,k=90;i.forward=function(t,e){return e=e||5,l(s({lat:t[1],lon:t[0]}),e)},i.inverse=function(t){var e=o(p(t.toUpperCase()));return e.lat&amp;&amp;e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]},i.toPoint=function(t){var e=o(p(t.toUpperCase()));return e.lat&amp;&amp;e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}},{}],88:[function(t,e,i){e.exports={name:"proj4",version:"2.3.10",description:"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",main:"lib/index.js",directories:{test:"test",doc:"docs"},scripts:{test:"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},repository:{type:"git",url:"git://github.com/proj4js/proj4js.git"},author:"",license:"MIT",jam:{main:"dist/proj4.js",include:["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},devDependencies:{"grunt-cli":"~0.1.13",grunt:"~0.4.2","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0",chai:"~1.8.1",mocha:"~1.17.1","grunt-mocha-phantomjs":"~0.4.0",browserify:"~3.24.5","grunt-browserify":"~1.3.0","grunt-contrib-uglify":"~0.3.2",curl:"git://github.com/cujojs/curl.git",istanbul:"~0.2.4",tin:"~0.4.0"},dependencies:{mgrs:"~0.0.2"},contributors:[{name:"Mike Adair",email:"madair@dmsolutions.ca"},{name:"Richard Greenwood",email:"rich@greenwoodmap.com"},{name:"Calvin Metcalf",email:"calvin.metcalf@gmail.com"},{name:"Richard Marsden",url:"http://www.winwaed.com"},{name:"T. Mittan"},{name:"D. Steinwand"},{name:"S. Nelson"}],gitHead:"ac03d1439491dc313da80985193f702ca471b3d0",bugs:{url:"https://github.com/proj4js/proj4js/issues"},homepage:"https://github.com/proj4js/proj4js#readme",_id:"proj4@2.3.10",_shasum:"f6e66bdcca332c25a5e3d8ef265cfc9d7b60fd0c",_from:"proj4@&gt;=2.3.10 &lt;3.0.0",_npmVersion:"2.11.2",_nodeVersion:"0.12.5",_npmUser:{name:"ahocevar",email:"andreas.hocevar@gmail.com"},maintainers:[{name:"cwmma",email:"calvin.metcalf@gmail.com"},{name:"ahocevar",email:"andreas.hocevar@gmail.com"}],dist:{shasum:"f6e66bdcca332c25a5e3d8ef265cfc9d7b60fd0c",tarball:"http://registry.npmjs.org/proj4/-/proj4-2.3.10.tgz"},_resolved:"https://registry.npmjs.org/proj4/-/proj4-2.3.10.tgz"}},{}],89:[function(t,e,i){!function(){"use strict";function t(e,i){return this instanceof t?(this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),i&amp;&amp;this._initFormat(i),void this.clear()):new t(e,i)}function i(t,e){t.bbox=n(t,0,t.children.length,e)}function n(t,e,i,n){for(var o,a=r(),l=e;i&gt;l;l++)o=t.children[l],s(a,t.leaf?n(o):o.bbox);return a}function r(){return[1/0,1/0,-(1/0),-(1/0)]}function s(t,e){return t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t}function o(t,e){return t.bbox[0]-e.bbox[0]}function a(t,e){return t.bbox[1]-e.bbox[1]}function l(t){return(t[2]-t[0])*(t[3]-t[1])}function u(t){return t[2]-t[0]+(t[3]-t[1])}function h(t,e){return(Math.max(e[2],t[2])-Math.min(e[0],t[0]))*(Math.max(e[3],t[3])-Math.min(e[1],t[1]))}function c(t,e){var i=Math.max(t[0],e[0]),n=Math.max(t[1],e[1]),r=Math.min(t[2],e[2]),s=Math.min(t[3],e[3]);return Math.max(0,r-i)*Math.max(0,s-n)}function p(t,e){return t[0]&lt;=e[0]&amp;&amp;t[1]&lt;=e[1]&amp;&amp;e[2]&lt;=t[2]&amp;&amp;e[3]&lt;=t[3]}function d(t,e){return e[0]&lt;=t[2]&amp;&amp;e[1]&lt;=t[3]&amp;&amp;e[2]&gt;=t[0]&amp;&amp;e[3]&gt;=t[1]}function f(t,e,i,n,r){for(var s,o=[e,i];o.length;)i=o.pop(),e=o.pop(),n&gt;=i-e||(s=e+Math.ceil((i-e)/n/2)*n,g(t,e,i,s,r),o.push(e,s,s,i))}function g(t,e,i,n,r){for(var s,o,a,l,u,h,c,p,d;i&gt;e;){for(i-e&gt;600&amp;&amp;(s=i-e+1,o=n-e+1,a=Math.log(s),l=.5*Math.exp(2*a/3),u=.5*Math.sqrt(a*l*(s-l)/s)*(0&gt;o-s/2?-1:1),h=Math.max(e,Math.floor(n-o*l/s+u)),c=Math.min(i,Math.floor(n+(s-o)*l/s+u)),g(t,h,c,n,r)),p=t[n],o=e,d=i,m(t,e,n),r(t[i],p)&gt;0&amp;&amp;m(t,e,i);d&gt;o;){for(m(t,o,d),o++,d--;r(t[o],p)&lt;0;)o++;for(;r(t[d],p)&gt;0;)d--}0===r(t[e],p)?m(t,e,d):(d++,m(t,d,i)),n&gt;=d&amp;&amp;(e=d+1),d&gt;=n&amp;&amp;(i=d-1)}}function m(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}t.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!d(t,e.bbox))return i;for(var r,s,o,a,l=[];e;){for(r=0,s=e.children.length;s&gt;r;r++)o=e.children[r],a=e.leaf?n(o):o.bbox,d(t,a)&amp;&amp;(e.leaf?i.push(o):p(t,a)?this._all(o,i):l.push(o));e=l.pop()}return i},load:function(t){if(!t||!t.length)return this;if(t.length&lt;this._minEntries){for(var e=0,i=t.length;i&gt;e;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height&lt;n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(t){
        return t&amp;&amp;this._insert(t,this.data.height-1),this},clear:function(){return this.data={children:[],height:1,bbox:r(),leaf:!0},this},remove:function(t){if(!t)return this;for(var e,i,n,r,s=this.data,o=this.toBBox(t),a=[],l=[];s||a.length;){if(s||(s=a.pop(),i=a[a.length-1],e=l.pop(),r=!0),s.leaf&amp;&amp;(n=s.children.indexOf(t),-1!==n))return s.children.splice(n,1),a.push(s),this._condense(a),this;r||s.leaf||!p(s.bbox,o)?i?(e++,s=i.children[e],r=!1):s=null:(a.push(s),l.push(e),e=0,i=s,s=s.children[0])}return this},toBBox:function(t){return t},compareMinX:function(t,e){return t[0]-e[0]},compareMinY:function(t,e){return t[1]-e[1]},toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var i=[];t;)t.leaf?e.push.apply(e,t.children):i.push.apply(i,t.children),t=i.pop();return e},_build:function(t,e,n,r){var s,o=n-e+1,a=this._maxEntries;if(a&gt;=o)return s={children:t.slice(e,n+1),height:1,bbox:null,leaf:!0},i(s,this.toBBox),s;r||(r=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,r-1))),s={children:[],height:r,bbox:null};var l,u,h,c,p=Math.ceil(o/a),d=p*Math.ceil(Math.sqrt(a));for(f(t,e,n,d,this.compareMinX),l=e;n&gt;=l;l+=d)for(h=Math.min(l+d-1,n),f(t,l,h,p,this.compareMinY),u=l;h&gt;=u;u+=p)c=Math.min(u+p-1,h),s.children.push(this._build(t,u,c,r-1));return i(s,this.toBBox),s},_chooseSubtree:function(t,e,i,n){for(var r,s,o,a,u,c,p,d;;){if(n.push(e),e.leaf||n.length-1===i)break;for(p=d=1/0,r=0,s=e.children.length;s&gt;r;r++)o=e.children[r],u=l(o.bbox),c=h(t,o.bbox)-u,d&gt;c?(d=c,p=p&gt;u?u:p,a=o):c===d&amp;&amp;p&gt;u&amp;&amp;(p=u,a=o);e=a}return e},_insert:function(t,e,i){var n=this.toBBox,r=i?t.bbox:n(t),o=[],a=this._chooseSubtree(r,this.data,e,o);for(a.children.push(t),s(a.bbox,r);e&gt;=0&amp;&amp;o[e].children.length&gt;this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(r,o,e)},_split:function(t,e){var n=t[e],r=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,r);var o={children:n.children.splice(this._chooseSplitIndex(n,s,r)),height:n.height};n.leaf&amp;&amp;(o.leaf=!0),i(n,this.toBBox),i(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(n,o)},_splitRoot:function(t,e){this.data={children:[t,e],height:t.height+1},i(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var r,s,o,a,u,h,p,d;for(h=p=1/0,r=e;i-e&gt;=r;r++)s=n(t,0,r,this.toBBox),o=n(t,r,i,this.toBBox),a=c(s,o),u=l(s)+l(o),h&gt;a?(h=a,d=r,p=p&gt;u?u:p):a===h&amp;&amp;p&gt;u&amp;&amp;(p=u,d=r);return d},_chooseSplitAxis:function(t,e,i){var n=t.leaf?this.compareMinX:o,r=t.leaf?this.compareMinY:a,s=this._allDistMargin(t,e,i,n),l=this._allDistMargin(t,e,i,r);l&gt;s&amp;&amp;t.children.sort(n)},_allDistMargin:function(t,e,i,r){t.children.sort(r);var o,a,l=this.toBBox,h=n(t,0,e,l),c=n(t,i-e,i,l),p=u(h)+u(c);for(o=e;i-e&gt;o;o++)a=t.children[o],s(h,t.leaf?l(a):a.bbox),p+=u(h);for(o=i-e-1;o&gt;=e;o--)a=t.children[o],s(c,t.leaf?l(a):a.bbox),p+=u(c);return p},_adjustParentBBoxes:function(t,e,i){for(var n=i;n&gt;=0;n--)s(e[n].bbox,t)},_condense:function(t){for(var e,n=t.length-1;n&gt;=0;n--)0===t[n].children.length?n&gt;0?(e=t[n-1].children,e.splice(e.indexOf(t[n]),1)):this.clear():i(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return [a"+t.join(", a")+"];")}},"function"==typeof define&amp;&amp;define.amd?define("rbush",function(){return t}):"undefined"!=typeof e?e.exports=t:"undefined"!=typeof self?self.rbush=t:window.rbush=t}()},{}],90:[function(t,e,i){var n=function(){function t(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function e(t,e){for(var i=[];e&gt;0;i[--e]=t);return i.join("")}var i=function(){return i.cache.hasOwnProperty(arguments[0])||(i.cache[arguments[0]]=i.parse(arguments[0])),i.format.call(null,i.cache[arguments[0]],arguments)};return i.object_stringify=function(t,e,n,r){var s="";if(null!=t)switch(typeof t){case"function":return"[Function"+(t.name?": "+t.name:"")+"]";case"object":if(t instanceof Error)return"["+t.toString()+"]";if(e&gt;=n)return"[Object]";if(r&amp;&amp;(r=r.slice(0),r.push(t)),null!=t.length){s+="[";var o=[];for(var a in t)r&amp;&amp;r.indexOf(t[a])&gt;=0?o.push("[Circular]"):o.push(i.object_stringify(t[a],e+1,n,r));s+=o.join(", ")+"]"}else{if("getMonth"in t)return"Date("+t+")";s+="{";var o=[];for(var l in t)t.hasOwnProperty(l)&amp;&amp;(r&amp;&amp;r.indexOf(t[l])&gt;=0?o.push(l+": [Circular]"):o.push(l+": "+i.object_stringify(t[l],e+1,n,r)));s+=o.join(", ")+"}"}return s;case"string":return'"'+t+'"'}return""+t},i.format=function(r,s){var o,a,l,u,h,c,p,d=1,f=r.length,g="",m=[];for(a=0;f&gt;a;a++)if(g=t(r[a]),"string"===g)m.push(r[a]);else if("array"===g){if(u=r[a],u[2])for(o=s[d],l=0;l&lt;u[2].length;l++){if(!o.hasOwnProperty(u[2][l]))throw new Error(n('[sprintf] property "%s" does not exist',u[2][l]));o=o[u[2][l]]}else o=u[1]?s[u[1]]:s[d++];if(/[^sO]/.test(u[8])&amp;&amp;"number"!=t(o))throw new Error(n('[sprintf] expecting number but found %s "'+o+'"',t(o)));switch(u[8]){case"b":o=o.toString(2);break;case"c":o=String.fromCharCode(o);break;case"d":o=parseInt(o,10);break;case"e":o=u[7]?o.toExponential(u[7]):o.toExponential();break;case"f":o=u[7]?parseFloat(o).toFixed(u[7]):parseFloat(o);break;case"O":o=i.object_stringify(o,0,parseInt(u[7])||5);break;case"o":o=o.toString(8);break;case"s":o=(o=String(o))&amp;&amp;u[7]?o.substring(0,u[7]):o;break;case"u":o=Math.abs(o);break;case"x":o=o.toString(16);break;case"X":o=o.toString(16).toUpperCase()}o=/[def]/.test(u[8])&amp;&amp;u[3]&amp;&amp;o&gt;=0?"+"+o:o,c=u[4]?"0"==u[4]?"0":u[4].charAt(1):" ",p=u[6]-String(o).length,h=u[6]?e(c,p):"",m.push(u[5]?o+h:h+o)}return m.join("")},i.cache={},i.parse=function(t){for(var e=t,i=[],n=[],r=0;e;){if(null!==(i=/^[^\x25]+/.exec(e)))n.push(i[0]);else if(null!==(i=/^\x25{2}/.exec(e)))n.push("%");else{if(null===(i=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosOuxX])/.exec(e)))throw new Error("[sprintf] "+e);if(i[2]){r|=1;var s=[],o=i[2],a=[];if(null===(a=/^([a-z_][a-z_\d]*)/i.exec(o)))throw new Error("[sprintf] "+o);for(s.push(a[1]);""!==(o=o.substring(a[0].length));)if(null!==(a=/^\.([a-z_][a-z_\d]*)/i.exec(o)))s.push(a[1]);else{if(null===(a=/^\[(\d+)\]/.exec(o)))throw new Error("[sprintf] "+o);s.push(a[1])}i[2]=s}else r|=2;if(3===r)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push(i)}e=e.substring(i[0].length)}return n},i}(),r=function(t,e){var i=e.slice();return i.unshift(t),n.apply(null,i)};e.exports=n,n.sprintf=n,n.vsprintf=r},{}],91:[function(t,e,i){!function(t){"object"==typeof e&amp;&amp;e.exports?e.exports=t():"function"==typeof define?define(t):this.tz=t()}(function(){function t(t,e,i){var n,r=e.day[1];do n=new Date(Date.UTC(i,e.month,Math.abs(r++)));while(e.day[0]&lt;7&amp;&amp;n.getUTCDay()!=e.day[0]);return n={clock:e.clock,sort:n.getTime(),rule:e,save:6e4*e.save,offset:t.offset},n[n.clock]=n.sort+6e4*e.time,n.posix?n.wallclock=n[n.clock]+(t.offset+e.saved):n.posix=n[n.clock]-(t.offset+e.saved),n}function e(e,i,n){var r,s,o,a,l,u,h,c=e[e.zone],p=[],d=new Date(n).getUTCFullYear(),f=1;for(r=1,s=c.length;s&gt;r&amp;&amp;!(c[r][i]&lt;=n);r++);if(o=c[r],o.rules){for(u=e[o.rules],h=d+1;h&gt;=d-f;--h)for(r=0,s=u.length;s&gt;r;r++)u[r].from&lt;=h&amp;&amp;h&lt;=u[r].to?p.push(t(o,u[r],h)):u[r].to&lt;h&amp;&amp;1==f&amp;&amp;(f=h-u[r].to);for(p.sort(function(t,e){return t.sort-e.sort}),r=0,s=p.length;s&gt;r;r++)n&gt;=p[r][i]&amp;&amp;p[r][p[r].clock]&gt;o[p[r].clock]&amp;&amp;(a=p[r])}return a&amp;&amp;((l=/^(.*)\/(.*)$/.exec(o.format))?a.abbrev=l[a.save?2:1]:a.abbrev=o.format.replace(/%s/,a.rule.letter)),a||o}function i(t,i){return"UTC"==t.zone?i:(t.entry=e(t,"posix",i),i+t.entry.offset+t.entry.save)}function n(t,i){if("UTC"==t.zone)return i;var n,r;return t.entry=n=e(t,"wallclock",i),r=i-n.wallclock,r&gt;0&amp;&amp;r&lt;n.save?null:i-n.offset-n.save}function r(t,e,r){var s,o=+(r[1]+1),a=r[2]*o,l=u.indexOf(r[3].toLowerCase());if(l&gt;9)e+=a*c[l-10];else{if(s=new Date(i(t,e)),7&gt;l)for(;a;)s.setUTCDate(s.getUTCDate()+o),s.getUTCDay()==l&amp;&amp;(a-=o);else 7==l?s.setUTCFullYear(s.getUTCFullYear()+a):8==l?s.setUTCMonth(s.getUTCMonth()+a):s.setUTCDate(s.getUTCDate()+a);null==(e=n(t,s.getTime()))&amp;&amp;(e=n(t,s.getTime()+864e5*o)-864e5*o)}return e}function s(t){if(!t.length)return"0.0.38";var e,s,o,a,l,u=Object.create(this),c=[];for(e=0;e&lt;t.length;e++)if(a=t[e],Array.isArray(a))e||isNaN(a[1])?a.splice.apply(t,[e--,1].concat(a)):l=a;else if(isNaN(a)){if(o=typeof a,"string"==o)~a.indexOf("%")?u.format=a:e||"*"!=a?!e&amp;&amp;(o=/^(\d{4})-(\d{2})-(\d{2})(?:[T\s](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|(([+-])(\d{2}(:\d{2}){0,2})))?)?$/.exec(a))?(l=[],l.push.apply(l,o.slice(1,8)),o[9]?(l.push(o[10]+1),l.push.apply(l,o[11].split(/:/))):o[8]&amp;&amp;l.push(1)):/^\w{2,3}_\w{2}$/.test(a)?u.locale=a:(o=h.exec(a))?c.push(o):u.zone=a:l=a;else if("function"==o){if(o=a.call(u))return o}else if(/^\w{2,3}_\w{2}$/.test(a.name))u[a.name]=a;else if(a.zones){for(o in a.zones)u[o]=a.zones[o];for(o in a.rules)u[o]=a.rules[o]}}else e||(l=a);if(u[u.locale]||delete u.locale,u[u.zone]||delete u.zone,null!=l){if("*"==l)l=u.clock();else if(Array.isArray(l)){for(s=!l[7],e=0;11&gt;e;e++)l[e]=+(l[e]||0);--l[1],l=Date.UTC.apply(Date.UTC,l.slice(0,8))+-l[7]*(36e5*l[8]+6e4*l[9]+1e3*l[10])}else l=Math.floor(l);if(!isNaN(l)){if(s&amp;&amp;(l=n(u,l)),null==l)return l;for(e=0,s=c.length;s&gt;e;e++)l=r(u,l,c[e]);return u.format?(o=new Date(i(u,l)),u.format.replace(/%([-0_^]?)(:{0,3})(\d*)(.)/g,function(t,e,i,n,r){var s,a,h="0";if(s=u[r]){for(t=String(s.call(u,o,l,e,i.length)),"_"==(e||s.style)&amp;&amp;(h=" "),a="-"==e?0:s.pad||0;t.length&lt;a;)t=h+t;for(a="-"==e?0:n||s.pad;t.length&lt;a;)t=h+t;"N"==r&amp;&amp;a&lt;t.length&amp;&amp;(t=t.slice(0,a)),"^"==e&amp;&amp;(t=t.toUpperCase())}return t})):l}}return function(){return u.convert(arguments)}}function o(t,e){var i,n,r;return n=new Date(Date.UTC(t.getUTCFullYear(),0)),i=Math.floor((t.getTime()-n.getTime())/864e5),n.getUTCDay()==e?r=0:(r=7-n.getUTCDay()+e,8==r&amp;&amp;(r=1)),i&gt;=r?Math.floor((i-r)/7)+1:0}function a(t){var e,i,n;return i=t.getUTCFullYear(),e=new Date(Date.UTC(i,0)).getUTCDay(),n=o(t,1)+(e&gt;1&amp;&amp;4&gt;=e?1:0),n?53!=n||4==e||3==e&amp;&amp;29==new Date(i,1,29).getDate()?[n,t.getUTCFullYear()]:[1,t.getUTCFullYear()+1]:(i=t.getUTCFullYear()-1,e=new Date(Date.UTC(i,0)).getUTCDay(),n=4==e||3==e&amp;&amp;29==new Date(i,1,29).getDate()?53:52,[n,t.getUTCFullYear()-1])}var l={clock:function(){return+new Date},zone:"UTC",entry:{abbrev:"UTC",offset:0,save:0},UTC:1,z:function(t,e,i,n){var r,s,o=this.entry.offset+this.entry.save,a=Math.abs(o/1e3),l=[],u=3600;for(r=0;3&gt;r;r++)l.push(("0"+Math.floor(a/u)).slice(-2)),a%=u,u/=60;return"^"!=i||o?("^"==i&amp;&amp;(n=3),3==n?(s=l.join(":"),s=s.replace(/:00$/,""),"^"!=i&amp;&amp;(s=s.replace(/:00$/,""))):n?(s=l.slice(0,n+1).join(":"),"^"==i&amp;&amp;(s=s.replace(/:00$/,""))):s=l.slice(0,2).join(""),s=(0&gt;o?"-":"+")+s,s=s.replace(/([-+])(0)/,{_:" $1","-":"$1"}[i]||"$1$2")):"Z"},"%":function(t){return"%"},n:function(t){return"\n"},t:function(t){return"	"},U:function(t){return o(t,0)},W:function(t){return o(t,1)},V:function(t){return a(t)[0]},G:function(t){return a(t)[1]},g:function(t){return a(t)[1]%100},j:function(t){return Math.floor((t.getTime()-Date.UTC(t.getUTCFullYear(),0))/864e5)+1},s:function(t){return Math.floor(t.getTime()/1e3)},C:function(t){return Math.floor(t.getUTCFullYear()/100)},N:function(t){return t.getTime()%1e3*1e6},m:function(t){return t.getUTCMonth()+1},Y:function(t){return t.getUTCFullYear()},y:function(t){return t.getUTCFullYear()%100},H:function(t){return t.getUTCHours()},M:function(t){return t.getUTCMinutes()},S:function(t){return t.getUTCSeconds()},e:function(t){return t.getUTCDate()},d:function(t){return t.getUTCDate()},u:function(t){return t.getUTCDay()||7},w:function(t){return t.getUTCDay()},l:function(t){return t.getUTCHours()%12||12},I:function(t){return t.getUTCHours()%12||12},k:function(t){return t.getUTCHours()},Z:function(t){return this.entry.abbrev},a:function(t){return this[this.locale].day.abbrev[t.getUTCDay()]},A:function(t){return this[this.locale].day.full[t.getUTCDay()]},h:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},b:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},B:function(t){return this[this.locale].month.full[t.getUTCMonth()]},P:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)].toLowerCase()},p:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)]},R:function(t,e){return this.convert([e,"%H:%M"])},T:function(t,e){return this.convert([e,"%H:%M:%S"])},D:function(t,e){return this.convert([e,"%m/%d/%y"])},F:function(t,e){return this.convert([e,"%Y-%m-%d"])},x:function(t,e){return this.convert([e,this[this.locale].date])},r:function(t,e){return this.convert([e,this[this.locale].time12||"%I:%M:%S"])},X:function(t,e){return this.convert([e,this[this.locale].time24])},c:function(t,e){return this.convert([e,this[this.locale].dateTime])},convert:s,locale:"en_US",en_US:{date:"%m/%d/%Y",time24:"%I:%M:%S %p",time12:"%I:%M:%S %p",dateTime:"%a %d %b %Y %I:%M:%S %p %Z",meridiem:["AM","PM"],month:{abbrev:"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|"),full:"January|February|March|April|May|June|July|August|September|October|November|December".split("|")},day:{abbrev:"Sun|Mon|Tue|Wed|Thu|Fri|Sat".split("|"),full:"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday".split("|")}}},u="Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond",h=new RegExp("^\\s*([+-])(\\d+)\\s+("+u+")s?\\s*$","i"),c=[36e5,6e4,1e3,1];return u=u.toLowerCase().split("|"),"delmHMSUWVgCIky".replace(/./g,function(t){l[t].pad=2}),l.N.pad=9,l.j.pad=3,l.k.style="_",l.l.style="_",l.e.style="_",function(){return l.convert(arguments)}})},{}],92:[function(t,e,i){(function(){function t(t){function e(e,i,n,r,s,o){for(;s&gt;=0&amp;&amp;o&gt;s;s+=t){var a=r?r[s]:s;n=i(n,e[a],a,e)}return n}return function(i,n,r,s){n=w(n,s,4);var o=!S(i)&amp;&amp;b.keys(i),a=(o||i).length,l=t&gt;0?0:a-1;return arguments.length&lt;3&amp;&amp;(r=i[o?o[l]:l],l+=t),e(i,n,r,o,l,a)}}function n(t){return function(e,i,n){i=x(i,n);for(var r=T(e),s=t&gt;0?0:r-1;s&gt;=0&amp;&amp;r&gt;s;s+=t)if(i(e[s],s,e))return s;return-1}}function r(t,e,i){return function(n,r,s){var o=0,a=T(n);if("number"==typeof s)t&gt;0?o=s&gt;=0?s:Math.max(s+a,o):a=s&gt;=0?Math.min(s+1,a):s+a+1;else if(i&amp;&amp;s&amp;&amp;a)return s=i(n,r),n[s]===r?s:-1;if(r!==r)return s=e(p.call(n,o,a),b.isNaN),s&gt;=0?s+o:-1;for(s=t&gt;0?o:a-1;s&gt;=0&amp;&amp;a&gt;s;s+=t)if(n[s]===r)return s;return-1}}function s(t,e){var i=N.length,n=t.constructor,r=b.isFunction(n)&amp;&amp;n.prototype||u,s="constructor";for(b.has(t,s)&amp;&amp;!b.contains(e,s)&amp;&amp;e.push(s);i--;)s=N[i],s in t&amp;&amp;t[s]!==r[s]&amp;&amp;!b.contains(e,s)&amp;&amp;e.push(s)}var o=this,a=o._,l=Array.prototype,u=Object.prototype,h=Function.prototype,c=l.push,p=l.slice,d=u.toString,f=u.hasOwnProperty,g=Array.isArray,m=Object.keys,_=h.bind,v=Object.create,y=function(){},b=function(t){return t instanceof b?t:this instanceof b?void(this._wrapped=t):new b(t)};"undefined"!=typeof i?("undefined"!=typeof e&amp;&amp;e.exports&amp;&amp;(i=e.exports=b),i._=b):o._=b,b.VERSION="1.8.3";var w=function(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)};case 4:return function(i,n,r,s){return t.call(e,i,n,r,s)}}return function(){return t.apply(e,arguments)}},x=function(t,e,i){return null==t?b.identity:b.isFunction(t)?w(t,e,i):b.isObject(t)?b.matcher(t):b.property(t)};b.iteratee=function(t,e){return x(t,e,1/0)};var k=function(t,e){return function(i){var n=arguments.length;if(2&gt;n||null==i)return i;for(var r=1;n&gt;r;r++)for(var s=arguments[r],o=t(s),a=o.length,l=0;a&gt;l;l++){var u=o[l];e&amp;&amp;void 0!==i[u]||(i[u]=s[u])}return i}},M=function(t){if(!b.isObject(t))return{};if(v)return v(t);y.prototype=t;var e=new y;return y.prototype=null,e},C=function(t){return function(e){return null==e?void 0:e[t]}},D=Math.pow(2,53)-1,T=C("length"),S=function(t){var e=T(t);return"number"==typeof e&amp;&amp;e&gt;=0&amp;&amp;D&gt;=e};b.each=b.forEach=function(t,e,i){e=w(e,i);var n,r;if(S(t))for(n=0,r=t.length;r&gt;n;n++)e(t[n],n,t);else{var s=b.keys(t);for(n=0,r=s.length;r&gt;n;n++)e(t[s[n]],s[n],t)}return t},b.map=b.collect=function(t,e,i){e=x(e,i);for(var n=!S(t)&amp;&amp;b.keys(t),r=(n||t).length,s=Array(r),o=0;r&gt;o;o++){var a=n?n[o]:o;s[o]=e(t[a],a,t)}return s},b.reduce=b.foldl=b.inject=t(1),b.reduceRight=b.foldr=t(-1),b.find=b.detect=function(t,e,i){var n;return n=S(t)?b.findIndex(t,e,i):b.findKey(t,e,i),void 0!==n&amp;&amp;-1!==n?t[n]:void 0},b.filter=b.select=function(t,e,i){var n=[];return e=x(e,i),b.each(t,function(t,i,r){e(t,i,r)&amp;&amp;n.push(t)}),n},b.reject=function(t,e,i){return b.filter(t,b.negate(x(e)),i)},b.every=b.all=function(t,e,i){e=x(e,i);for(var n=!S(t)&amp;&amp;b.keys(t),r=(n||t).length,s=0;r&gt;s;s++){var o=n?n[s]:s;if(!e(t[o],o,t))return!1}return!0},b.some=b.any=function(t,e,i){e=x(e,i);for(var n=!S(t)&amp;&amp;b.keys(t),r=(n||t).length,s=0;r&gt;s;s++){var o=n?n[s]:s;if(e(t[o],o,t))return!0}return!1},b.contains=b.includes=b.include=function(t,e,i,n){return S(t)||(t=b.values(t)),("number"!=typeof i||n)&amp;&amp;(i=0),b.indexOf(t,e,i)&gt;=0},b.invoke=function(t,e){var i=p.call(arguments,2),n=b.isFunction(e);return b.map(t,function(t){var r=n?e:t[e];return null==r?r:r.apply(t,i)})},b.pluck=function(t,e){return b.map(t,b.property(e))},b.where=function(t,e){return b.filter(t,b.matcher(e))},b.findWhere=function(t,e){return b.find(t,b.matcher(e))},b.max=function(t,e,i){var n,r,s=-(1/0),o=-(1/0);if(null==e&amp;&amp;null!=t){t=S(t)?t:b.values(t);for(var a=0,l=t.length;l&gt;a;a++)n=t[a],n&gt;s&amp;&amp;(s=n)}else e=x(e,i),b.each(t,function(t,i,n){r=e(t,i,n),(r&gt;o||r===-(1/0)&amp;&amp;s===-(1/0))&amp;&amp;(s=t,o=r)});return s},b.min=function(t,e,i){var n,r,s=1/0,o=1/0;if(null==e&amp;&amp;null!=t){t=S(t)?t:b.values(t);for(var a=0,l=t.length;l&gt;a;a++)n=t[a],s&gt;n&amp;&amp;(s=n)}else e=x(e,i),b.each(t,function(t,i,n){r=e(t,i,n),(o&gt;r||r===1/0&amp;&amp;s===1/0)&amp;&amp;(s=t,o=r)});return s},b.shuffle=function(t){for(var e,i=S(t)?t:b.values(t),n=i.length,r=Array(n),s=0;n&gt;s;s++)e=b.random(0,s),e!==s&amp;&amp;(r[s]=r[e]),r[e]=i[s];return r},b.sample=function(t,e,i){return null==e||i?(S(t)||(t=b.values(t)),t[b.random(t.length-1)]):b.shuffle(t).slice(0,Math.max(0,e))},b.sortBy=function(t,e,i){return e=x(e,i),b.pluck(b.map(t,function(t,i,n){return{value:t,index:i,criteria:e(t,i,n)}}).sort(function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i&gt;n||void 0===i)return 1;if(n&gt;i||void 0===n)return-1}return t.index-e.index}),"value")};var A=function(t){return function(e,i,n){var r={};return i=x(i,n),b.each(e,function(n,s){var o=i(n,s,e);t(r,n,o)}),r}};b.groupBy=A(function(t,e,i){b.has(t,i)?t[i].push(e):t[i]=[e]}),b.indexBy=A(function(t,e,i){t[i]=e}),b.countBy=A(function(t,e,i){b.has(t,i)?t[i]++:t[i]=1}),b.toArray=function(t){return t?b.isArray(t)?p.call(t):S(t)?b.map(t,b.identity):b.values(t):[]},b.size=function(t){return null==t?0:S(t)?t.length:b.keys(t).length},b.partition=function(t,e,i){e=x(e,i);var n=[],r=[];return b.each(t,function(t,i,s){(e(t,i,s)?n:r).push(t)}),[n,r]},b.first=b.head=b.take=function(t,e,i){return null==t?void 0:null==e||i?t[0]:b.initial(t,t.length-e)},b.initial=function(t,e,i){return p.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))},b.last=function(t,e,i){return null==t?void 0:null==e||i?t[t.length-1]:b.rest(t,Math.max(0,t.length-e))},b.rest=b.tail=b.drop=function(t,e,i){return p.call(t,null==e||i?1:e)},b.compact=function(t){return b.filter(t,b.identity)};var P=function(t,e,i,n){for(var r=[],s=0,o=n||0,a=T(t);a&gt;o;o++){var l=t[o];if(S(l)&amp;&amp;(b.isArray(l)||b.isArguments(l))){e||(l=P(l,e,i));var u=0,h=l.length;for(r.length+=h;h&gt;u;)r[s++]=l[u++]}else i||(r[s++]=l)}return r};b.flatten=function(t,e){return P(t,e,!1)},b.without=function(t){return b.difference(t,p.call(arguments,1))},b.uniq=b.unique=function(t,e,i,n){b.isBoolean(e)||(n=i,i=e,e=!1),null!=i&amp;&amp;(i=x(i,n));for(var r=[],s=[],o=0,a=T(t);a&gt;o;o++){var l=t[o],u=i?i(l,o,t):l;e?(o&amp;&amp;s===u||r.push(l),s=u):i?b.contains(s,u)||(s.push(u),r.push(l)):b.contains(r,l)||r.push(l)}return r},b.union=function(){return b.uniq(P(arguments,!0,!0))},b.intersection=function(t){for(var e=[],i=arguments.length,n=0,r=T(t);r&gt;n;n++){var s=t[n];if(!b.contains(e,s)){for(var o=1;i&gt;o&amp;&amp;b.contains(arguments[o],s);o++);o===i&amp;&amp;e.push(s)}}return e},b.difference=function(t){var e=P(arguments,!0,!0,1);return b.filter(t,function(t){return!b.contains(e,t)})},b.zip=function(){return b.unzip(arguments)},b.unzip=function(t){for(var e=t&amp;&amp;b.max(t,T).length||0,i=Array(e),n=0;e&gt;n;n++)i[n]=b.pluck(t,n);return i},b.object=function(t,e){for(var i={},n=0,r=T(t);r&gt;n;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i},b.findIndex=n(1),b.findLastIndex=n(-1),b.sortedIndex=function(t,e,i,n){i=x(i,n,1);for(var r=i(e),s=0,o=T(t);o&gt;s;){var a=Math.floor((s+o)/2);i(t[a])&lt;r?s=a+1:o=a}return s},b.indexOf=r(1,b.findIndex,b.sortedIndex),b.lastIndexOf=r(-1,b.findLastIndex),b.range=function(t,e,i){null==e&amp;&amp;(e=t||0,t=0),i=i||1;for(var n=Math.max(Math.ceil((e-t)/i),0),r=Array(n),s=0;n&gt;s;s++,t+=i)r[s]=t;return r};var E=function(t,e,i,n,r){if(!(n instanceof e))return t.apply(i,r);var s=M(t.prototype),o=t.apply(s,r);return b.isObject(o)?o:s};b.bind=function(t,e){if(_&amp;&amp;t.bind===_)return _.apply(t,p.call(arguments,1));if(!b.isFunction(t))throw new TypeError("Bind must be called on a function");var i=p.call(arguments,2),n=function(){return E(t,n,e,this,i.concat(p.call(arguments)))};return n},b.partial=function(t){var e=p.call(arguments,1),i=function(){for(var n=0,r=e.length,s=Array(r),o=0;r&gt;o;o++)s[o]=e[o]===b?arguments[n++]:e[o];for(;n&lt;arguments.length;)s.push(arguments[n++]);return E(t,i,this,this,s)};return i},b.bindAll=function(t){var e,i,n=arguments.length;if(1&gt;=n)throw new Error("bindAll must be passed function names");for(e=1;n&gt;e;e++)i=arguments[e],t[i]=b.bind(t[i],t);return t},b.memoize=function(t,e){var i=function(n){var r=i.cache,s=""+(e?e.apply(this,arguments):n);return b.has(r,s)||(r[s]=t.apply(this,arguments)),r[s]};return i.cache={},i},b.delay=function(t,e){var i=p.call(arguments,2);return setTimeout(function(){return t.apply(null,i)},e)},b.defer=b.partial(b.delay,b,1),b.throttle=function(t,e,i){var n,r,s,o=null,a=0;i||(i={});var l=function(){a=i.leading===!1?0:b.now(),o=null,s=t.apply(n,r),o||(n=r=null)};return function(){var u=b.now();a||i.leading!==!1||(a=u);var h=e-(u-a);return n=this,r=arguments,0&gt;=h||h&gt;e?(o&amp;&amp;(clearTimeout(o),o=null),a=u,s=t.apply(n,r),o||(n=r=null)):o||i.trailing===!1||(o=setTimeout(l,h)),s}},b.debounce=function(t,e,i){var n,r,s,o,a,l=function(){var u=b.now()-o;e&gt;u&amp;&amp;u&gt;=0?n=setTimeout(l,e-u):(n=null,i||(a=t.apply(s,r),n||(s=r=null)))};return function(){s=this,r=arguments,o=b.now();var u=i&amp;&amp;!n;return n||(n=setTimeout(l,e)),u&amp;&amp;(a=t.apply(s,r),s=r=null),a}},b.wrap=function(t,e){return b.partial(e,t)},b.negate=function(t){return function(){return!t.apply(this,arguments)}},b.compose=function(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}},b.after=function(t,e){return function(){return--t&lt;1?e.apply(this,arguments):void 0}},b.before=function(t,e){var i;return function(){return--t&gt;0&amp;&amp;(i=e.apply(this,arguments)),1&gt;=t&amp;&amp;(e=null),i}},b.once=b.partial(b.before,2);var I=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];b.keys=function(t){if(!b.isObject(t))return[];if(m)return m(t);var e=[];for(var i in t)b.has(t,i)&amp;&amp;e.push(i);return I&amp;&amp;s(t,e),e},b.allKeys=function(t){if(!b.isObject(t))return[];var e=[];for(var i in t)e.push(i);return I&amp;&amp;s(t,e),e},b.values=function(t){for(var e=b.keys(t),i=e.length,n=Array(i),r=0;i&gt;r;r++)n[r]=t[e[r]];return n},b.mapObject=function(t,e,i){e=x(e,i);for(var n,r=b.keys(t),s=r.length,o={},a=0;s&gt;a;a++)n=r[a],o[n]=e(t[n],n,t);return o},b.pairs=function(t){for(var e=b.keys(t),i=e.length,n=Array(i),r=0;i&gt;r;r++)n[r]=[e[r],t[e[r]]];return n},b.invert=function(t){for(var e={},i=b.keys(t),n=0,r=i.length;r&gt;n;n++)e[t[i[n]]]=i[n];return e},b.functions=b.methods=function(t){var e=[];for(var i in t)b.isFunction(t[i])&amp;&amp;e.push(i);return e.sort()},b.extend=k(b.allKeys),b.extendOwn=b.assign=k(b.keys),b.findKey=function(t,e,i){e=x(e,i);for(var n,r=b.keys(t),s=0,o=r.length;o&gt;s;s++)if(n=r[s],e(t[n],n,t))return n},b.pick=function(t,e,i){var n,r,s={},o=t;if(null==o)return s;b.isFunction(e)?(r=b.allKeys(o),n=w(e,i)):(r=P(arguments,!1,!1,1),n=function(t,e,i){return e in i},o=Object(o));for(var a=0,l=r.length;l&gt;a;a++){var u=r[a],h=o[u];n(h,u,o)&amp;&amp;(s[u]=h)}return s},b.omit=function(t,e,i){if(b.isFunction(e))e=b.negate(e);else{var n=b.map(P(arguments,!1,!1,1),String);e=function(t,e){return!b.contains(n,e)}}return b.pick(t,e,i)},b.defaults=k(b.allKeys,!0),b.create=function(t,e){var i=M(t);return e&amp;&amp;b.extendOwn(i,e),i},b.clone=function(t){return b.isObject(t)?b.isArray(t)?t.slice():b.extend({},t):t},b.tap=function(t,e){return e(t),t},b.isMatch=function(t,e){var i=b.keys(e),n=i.length;if(null==t)return!n;for(var r=Object(t),s=0;n&gt;s;s++){var o=i[s];if(e[o]!==r[o]||!(o in r))return!1}return!0};var R=function(t,e,i,n){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof b&amp;&amp;(t=t._wrapped),e instanceof b&amp;&amp;(e=e._wrapped);var r=d.call(t);if(r!==d.call(e))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var s="[object Array]"===r;if(!s){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,a=e.constructor;if(o!==a&amp;&amp;!(b.isFunction(o)&amp;&amp;o instanceof o&amp;&amp;b.isFunction(a)&amp;&amp;a instanceof a)&amp;&amp;"constructor"in t&amp;&amp;"constructor"in e)return!1}i=i||[],n=n||[];for(var l=i.length;l--;)if(i[l]===t)return n[l]===e;if(i.push(t),n.push(e),s){if(l=t.length,l!==e.length)return!1;for(;l--;)if(!R(t[l],e[l],i,n))return!1}else{var u,h=b.keys(t);if(l=h.length,b.keys(e).length!==l)return!1;for(;l--;)if(u=h[l],!b.has(e,u)||!R(t[u],e[u],i,n))return!1}return i.pop(),n.pop(),!0};b.isEqual=function(t,e){return R(t,e)},b.isEmpty=function(t){return null==t?!0:S(t)&amp;&amp;(b.isArray(t)||b.isString(t)||b.isArguments(t))?0===t.length:0===b.keys(t).length},b.isElement=function(t){return!(!t||1!==t.nodeType)},b.isArray=g||function(t){return"[object Array]"===d.call(t)},b.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&amp;&amp;!!t},b.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){b["is"+t]=function(e){return d.call(e)==="[object "+t+"]"}}),b.isArguments(arguments)||(b.isArguments=function(t){return b.has(t,"callee")}),"function"!=typeof/./&amp;&amp;"object"!=typeof Int8Array&amp;&amp;(b.isFunction=function(t){return"function"==typeof t||!1}),b.isFinite=function(t){return isFinite(t)&amp;&amp;!isNaN(parseFloat(t))},b.isNaN=function(t){return b.isNumber(t)&amp;&amp;t!==+t},b.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===d.call(t)},b.isNull=function(t){return null===t},b.isUndefined=function(t){return void 0===t},b.has=function(t,e){return null!=t&amp;&amp;f.call(t,e)},b.noConflict=function(){return o._=a,this},b.identity=function(t){return t},b.constant=function(t){return function(){return t}},b.noop=function(){},b.property=C,b.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},b.matcher=b.matches=function(t){return t=b.extendOwn({},t),function(e){return b.isMatch(e,t)}},b.times=function(t,e,i){var n=Array(Math.max(0,t));e=w(e,i,1);for(var r=0;t&gt;r;r++)n[r]=e(r);return n},b.random=function(t,e){return null==e&amp;&amp;(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},b.now=Date.now||function(){return(new Date).getTime()};var z={"&amp;":"&amp;amp;","&lt;":"&amp;lt;","&gt;":"&amp;gt;",'"':"&amp;quot;","'":"&amp;#x27;","`":"&amp;#x60;"},j=b.invert(z),O=function(t){var e=function(e){return t[e]},i="(?:"+b.keys(t).join("|")+")",n=RegExp(i),r=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(r,e):t}};b.escape=O(z),b.unescape=O(j),b.result=function(t,e,i){var n=null==t?void 0:t[e];return void 0===n&amp;&amp;(n=i),b.isFunction(n)?n.call(t):n};var F=0;b.uniqueId=function(t){var e=++F+"";return t?t+e:e},b.templateSettings={evaluate:/&lt;%([\s\S]+?)%&gt;/g,interpolate:/&lt;%=([\s\S]+?)%&gt;/g,escape:/&lt;%-([\s\S]+?)%&gt;/g};var L=/(.)^/,H={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},B=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+H[t]};b.template=function(t,e,i){!e&amp;&amp;i&amp;&amp;(e=i),e=b.defaults({},e,b.templateSettings);var n=RegExp([(e.escape||L).source,(e.interpolate||L).source,(e.evaluate||L).source].join("|")+"|$","g"),r=0,s="__p+='";t.replace(n,function(e,i,n,o,a){return s+=t.slice(r,a).replace(B,W),r=a+e.length,i?s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":o&amp;&amp;(s+="';\n"+o+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var o=new Function(e.variable||"obj","_",s)}catch(a){throw a.source=s,a}var l=function(t){return o.call(this,t,b)},u=e.variable||"obj";return l.source="function("+u+"){\n"+s+"}",l},b.chain=function(t){var e=b(t);return e._chain=!0,e};var q=function(t,e){return t._chain?b(e).chain():e};b.mixin=function(t){b.each(b.functions(t),function(e){var i=b[e]=t[e];b.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),q(this,i.apply(b,t))}})},b.mixin(b),b.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=l[t];b.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),"shift"!==t&amp;&amp;"splice"!==t||0!==i.length||delete i[0],q(this,i)}}),b.each(["concat","join","slice"],function(t){var e=l[t];b.prototype[t]=function(){return q(this,e.apply(this._wrapped,arguments))}}),b.prototype.value=function(){return this._wrapped},b.prototype.valueOf=b.prototype.toJSON=b.prototype.value,b.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&amp;&amp;define.amd&amp;&amp;define("underscore",[],function(){return b})}).call(this)},{}],93:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D;l=t("underscore"),w=t("../common/base"),o=t("../common/logging"),s=t("../range/factor_range"),a=t("../range/range1d"),r=t("../source/column_data_source"),k="./helpers",n=w.Collections,M=o.logger,h=function(t,e){return null==e?0:l.isNumber(e)?(1&gt;=e&amp;&amp;(M.error("num_minor_ticks must be &gt; 1"),e=0),e):"auto"===e?null!=t==="Log"?10:5:(M.error("unrecognized num_minor_ticks: "+e),0)},u=function(t,e){var i;if(null==t)return null;if("auto"===t){if(e instanceof s.Model)return n("CategoricalAxis");if(e instanceof a.Model){try{return new Date.parse(e.get("start")),n("DatetimeAxis")}catch(r){i=r}return n("LinearAxis")}}try{return n(t+"Axis")}catch(r){return i=r,M.error("unrecognized axis_type: "+t),null}},c=function(t){if(null==t)return n("DataRange1d").create();if(l.isArray(t)){if(l.every(t,l.isString))return n("FactorRange").create({factors:t});if(2===t.length&amp;&amp;l.every(t,l.isNumber))return n("Range1d").create({start:t[0],end:t[1]})}return M.error("Unrecognized range input: "+t.toJSON),null},p=function(t,e){return e instanceof r.Model?e:l.isString(e)?t[e]:n("ColumnDataSource").create({data:e})},d=function(t){var e;return e=[]},m=function(t,e){var i,r,s,o,a,u,h,c;for(h=[],r=0,s=t.length;s&gt;r;r++){o=t[r],l.isString(o)?(c=o+"Tool",a={plot:e}):(c=o.type+"Tool",a=l.omit(o,"type"));try{u=n(c).create(a),h.push(u)}catch(p){i=p,M.error("unrecognized tool: "+o)}}return h},f=function(t,e){var i,r,s,o,a,u,h,c,d,f,g,m,_,v,y,b;for(m=[],a=0,h=t.length;h&gt;a;a++){for(i=t[a],o=i.type,_=p(e,i.source),r=l.omit(i,"source","selection","inspection","nonselection"),s=n(o).create(r),g={data_source:_,glyph:s},d=["selection","inspection","nonselection"],u=0,c=d.length;c&gt;u;u++)v=d[u],null!=i[v]&amp;&amp;(null!=i[v].type?(y=l.omit(i[v],"type"),b=n(i[v].type).create(y)):(b=l.clone(s),b.set(i[v])),g[v]=b);f=n("GlyphRenderer").create(g),m.push(f)}return m},g=function(t,e){var i,r,s,o,a,h,c,p,d,f,g;for(c=[],p=0,d=t.length;d&gt;p;p++){if(h=t[p],f=h.location,"below"===f||"above"===f)o=0,g=e.get("x_range");else{if("left"!==f&amp;&amp;"right"!==f){M.error("unrecognized axis location: "+f);continue}o=1,g=e.get("y_range")}s=u(h.type,g),r=l.omit(h,"type","grid"),r.plot=e,i=s.create(r),c.push(i),h.grid===!0&amp;&amp;(a=n("Grid").create({
        dimension:o,plot:e,ticker:i.get("ticker")}),c.push(a))}return c},C=function(t){var e;return t.x_range=c(t.x_range),t.y_range=c(t.y_range),e=n("Plot").create(t)},D=function(t){var e,i,r;i={};for(e in t)r=t[e],i[e]=n("ColumnDataSource").create({data:r});return i},v=function(t,e,i){return i=f(i,e),t.add_renderers(i)},y=function(t,e){var i,n,r,s,o;for(e=g(e,t),n=0,r=e.length;r&gt;n;n++)i=e[n],o=i.get("location"),null!=o&amp;&amp;(s=t.get(o),s.push(i),t.set(o,s));return t.add_renderers(e)},_=function(t,e){return e=d(e),t.add_renderers(e)},b=function(t,e){var i,n,r;for(e=m(e,t),i=0,n=e.length;n&gt;i;i++)r=e[i],r.set("plot",t);return t.set_obj("tools",e),t.get("tool_manager").set_obj("tools",e),t.get("tool_manager")._init_tools()},x=function(t){var e,i,n,r,s,o,a;return r=t.options,o=t.sources,i=t.glyphs,n=t.guides,e=t.annotations,a=t.tools,null==r&amp;&amp;(r={}),null==o&amp;&amp;(o={}),null==i&amp;&amp;(i=[]),null==n&amp;&amp;(n=[]),null==e&amp;&amp;(e={}),null==a&amp;&amp;(a=[]),s=C(r),o=D(o),v(s,o,i),y(s,n),_(s,e),b(s,a),s},e.exports=x},{"../common/base":99,"../common/logging":119,"../range/factor_range":145,"../range/range1d":146,"../source/column_data_source":204,underscore:92}],94:[function(t,e,i){var n,r,s,o;r=t("underscore"),n=t("../common/logging"),s=n.logger,o=function(t,e){var i;return s.debug("Scheduling render for plot "+e+" on target "+t),i=function(){var i;return i=new e.default_view({model:e}),t.append(i.$el)},r.defer(i)},e.exports={show:o}},{"../common/logging":119,underscore:92}],95:[function(t,e,i){var n,r,s,o,a,l,u,h;s=t("underscore"),n=t("jquery"),r=t("../common/logging"),a=t("./figure"),l=t("./helpers"),u=r.logger,h=l.show,o={figure:a},n.fn.bokeh=function(t,e){var i;return t in o?(i=o[t](e),h(this,i),i):(u.error("Unknown API type '"+t+"'. Recognized API types: "+Object.keys(o)),this)},e.exports=n.fn.bokeh},{"../common/logging":119,"./figure":93,"./helpers":94,jquery:18,underscore:92}],96:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e}(n),s=function(t){var e;return e={},e.Model=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return o(i,e),i.prototype.type=t,i}(r),e},e.exports={AutoEncode:s("AutoEncode"),BinarySegment:s("BinarySegment"),Const:s("Const"),Contour:s("Contour"),Count:s("Count"),CountCategories:s("CountCategories"),Cuberoot:s("Cuberoot"),Encode:s("Encode"),HDAlpha:s("HDAlpha"),Id:s("Id"),Interpolate:s("Interpolate"),InterpolateColor:s("InterpolateColor"),Log:s("Log"),NonZero:s("NonZero"),Ratio:s("Ratio"),Seq:s("Seq"),Spread:s("Spread"),ToCounts:s("ToCounts")}},{"../common/has_properties":115}],97:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty,l=[].slice;s=t("underscore"),r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="CustomJS",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("values",this._make_values,!0),this.add_dependencies("values",this,["args"]),this.register_property("func",this._make_func,!0),this.add_dependencies("func",this,["args","code"])},e.prototype.execute=function(t,e){return this.get("func").apply(null,l.call(this.get("values")).concat([t],[e]))},e.prototype._make_values=function(){return s.map(s.values(this.get("args")),this.resolve_ref)},e.prototype._make_func=function(){return function(t,e,i){i.prototype=t.prototype;var n=new i,r=t.apply(n,e);return Object(r)===r?r:n}(Function,l.call(s.keys(this.get("args"))).concat(["cb_obj"],["cb_data"],[this.get("code")]),function(){})},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{args:{},code:""})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,underscore:92}],98:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("../util/util"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="OpenURL",e.prototype.execute=function(t){var e,i,n,r,o,a,l;for(a=t.get("selected"),i=a["0d"].flag?a["0d"].indices:a["1d"].indices.length&gt;0?a["1d"].indices:a["2d"].indices.length&gt;0?a["2d"].indices:[],o=[],n=0,r=i.length;r&gt;n;n++)e=i[n],l=s.replace_placeholders(this.get("url"),t,e),o.push(window.open(l));return o},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{url:"http://"})},e}(n),e.exports={Model:r}},{"../common/has_properties":115,"../util/util":250,underscore:92}],99:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;o=t("underscore"),n=t("./collection"),("undefined"==typeof f||null===f)&amp;&amp;(f={location:{href:"local"}}),t("./custom").monkey_patch(),s={},d=f.location.href,d.indexOf("/bokeh")&gt;0?s.prefix=d.slice(0,d.lastIndexOf("/bokeh"))+"/":s.prefix="/",console.log("Bokeh: setting prefix to",s.prefix),h={Plot:t("./plot"),GMapPlot:t("./gmap_plot"),GeoJSPlot:t("./geojs_plot"),GridPlot:t("./grid_plot"),PlotContext:t("./plot_context"),PlotList:t("./plot_context"),Canvas:t("./canvas"),LayoutBox:t("./layout_box"),CartesianFrame:t("./cartesian_frame"),SelectionManager:t("./selection_manager"),Selector:t("./selector"),ToolEvents:t("./tool_events"),CustomJS:t("../callback/customjs"),OpenURL:t("../callback/open_url"),CategoricalMapper:t("../mapper/categorical_mapper"),LinearColorMapper:t("../mapper/linear_color_mapper"),LinearMapper:t("../mapper/linear_mapper"),DataRange1d:t("../range/data_range1d"),FactorRange:t("../range/factor_range"),Range1d:t("../range/range1d"),BoxAnnotation:t("../renderer/annotation/box_annotation"),Legend:t("../renderer/annotation/legend"),Span:t("../renderer/annotation/span"),Tooltip:t("../renderer/annotation/tooltip"),GlyphRenderer:t("../renderer/glyph/glyph_renderer"),AnnularWedge:t("../renderer/glyph/annular_wedge"),Annulus:t("../renderer/glyph/annulus"),Arc:t("../renderer/glyph/arc"),Bezier:t("../renderer/glyph/bezier"),Circle:t("../renderer/glyph/circle"),Gear:t("../renderer/glyph/gear"),Image:t("../renderer/glyph/image"),ImageRGBA:t("../renderer/glyph/image_rgba"),ImageURL:t("../renderer/glyph/image_url"),Line:t("../renderer/glyph/line"),MultiLine:t("../renderer/glyph/multi_line"),Oval:t("../renderer/glyph/oval"),Patch:t("../renderer/glyph/patch"),Patches:t("../renderer/glyph/patches"),Quad:t("../renderer/glyph/quad"),Quadratic:t("../renderer/glyph/quadratic"),Ray:t("../renderer/glyph/ray"),Rect:t("../renderer/glyph/rect"),Segment:t("../renderer/glyph/segment"),Text:t("../renderer/glyph/text"),Wedge:t("../renderer/glyph/wedge"),Asterisk:t("../renderer/glyph/marker/asterisk"),CircleCross:t("../renderer/glyph/marker/circle_cross"),CircleX:t("../renderer/glyph/marker/circle_x"),Cross:t("../renderer/glyph/marker/cross"),Diamond:t("../renderer/glyph/marker/diamond"),DiamondCross:t("../renderer/glyph/marker/diamond_cross"),InvertedTriangle:t("../renderer/glyph/marker/inverted_triangle"),Square:t("../renderer/glyph/marker/square"),SquareCross:t("../renderer/glyph/marker/square_cross"),SquareX:t("../renderer/glyph/marker/square_x"),Triangle:t("../renderer/glyph/marker/triangle"),X:t("../renderer/glyph/marker/x"),LinearAxis:t("../renderer/guide/linear_axis"),LogAxis:t("../renderer/guide/log_axis"),CategoricalAxis:t("../renderer/guide/categorical_axis"),DatetimeAxis:t("../renderer/guide/datetime_axis"),Grid:t("../renderer/guide/grid"),BoxSelection:t("../renderer/overlay/box_selection"),PolySelection:t("../renderer/overlay/poly_selection"),ColumnDataSource:t("../source/column_data_source"),ServerDataSource:t("../source/server_data_source"),BlazeDataSource:t("../source/blaze_data_source"),AjaxDataSource:t("../source/ajax_data_source"),AbstractTicker:t("../ticking/abstract_ticker"),AdaptiveTicker:t("../ticking/adaptive_ticker"),BasicTicker:t("../ticking/basic_ticker"),CategoricalTicker:t("../ticking/categorical_ticker"),CompositeTicker:t("../ticking/composite_ticker"),DatetimeTicker:t("../ticking/datetime_ticker"),DaysTicker:t("../ticking/days_ticker"),FixedTicker:t("../ticking/fixed_ticker"),LogTicker:t("../ticking/log_ticker"),MonthsTicker:t("../ticking/months_ticker"),SingleIntervalTicker:t("../ticking/single_interval_ticker"),YearsTicker:t("../ticking/years_ticker"),BasicTickFormatter:t("../ticking/basic_tick_formatter"),LogTickFormatter:t("../ticking/log_tick_formatter"),CategoricalTickFormatter:t("../ticking/categorical_tick_formatter"),DatetimeTickFormatter:t("../ticking/datetime_tick_formatter"),NumeralTickFormatter:t("../ticking/numeral_tick_formatter"),PrintfTickFormatter:t("../ticking/printf_tick_formatter"),ButtonTool:t("../tool/button_tool"),ActionTool:t("../tool/actions/action_tool"),PreviewSaveTool:t("../tool/actions/preview_save_tool"),ResetTool:t("../tool/actions/reset_tool"),HelpTool:t("../tool/actions/help_tool"),BoxSelectTool:t("../tool/gestures/box_select_tool"),BoxZoomTool:t("../tool/gestures/box_zoom_tool"),GestureTool:t("../tool/gestures/gesture_tool"),LassoSelectTool:t("../tool/gestures/lasso_select_tool"),PanTool:t("../tool/gestures/pan_tool"),PolySelectTool:t("../tool/gestures/poly_select_tool"),SelectTool:t("../tool/gestures/select_tool"),ResizeTool:t("../tool/gestures/resize_tool"),TapTool:t("../tool/gestures/tap_tool"),WheelZoomTool:t("../tool/gestures/wheel_zoom_tool"),CrosshairTool:t("../tool/inspectors/crosshair_tool"),HoverTool:t("../tool/inspectors/hover_tool"),InspectTool:t("../tool/inspectors/inspect_tool"),editors:[t("../widget/cell_editors"),"Editor"],formatters:[t("../widget/cell_formatters"),"Formatter"],TableColumn:t("../widget/table_column"),DataTable:t("../widget/data_table"),Paragraph:t("../widget/paragraph"),HBox:t("../widget/hbox"),VBox:t("../widget/vbox"),VBoxForm:t("../widget/vboxform"),TextInput:t("../widget/text_input"),AutocompleteInput:t("../widget/autocomplete_input"),PreText:t("../widget/pretext"),Select:t("../widget/selectbox"),Slider:t("../widget/slider"),CrossFilter:t("../widget/crossfilter"),MultiSelect:t("../widget/multiselect"),DateRangeSlider:t("../widget/date_range_slider"),DatePicker:t("../widget/date_picker"),Panel:t("../widget/panel"),Tabs:t("../widget/tabs"),Dialog:t("../widget/dialog"),Icon:t("../widget/icon"),Button:t("../widget/button"),Toggle:t("../widget/toggle"),Dropdown:t("../widget/dropdown"),CheckboxGroup:t("../widget/checkbox_group"),RadioGroup:t("../widget/radio_group"),CheckboxButtonGroup:t("../widget/checkbox_button_group"),RadioButtonGroup:t("../widget/radio_button_group"),SimpleApp:t("../widget/simpleapp"),AppHBox:t("../widget/layouts/apphbox"),AppVBox:t("../widget/layouts/appvbox"),AppVBoxForm:t("../widget/layouts/appvboxform"),ar_transforms:[t("../ar/transforms")]},l={},p=function(t){var e;return new(e=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return g(i,e),i.prototype.model=t,i}(n))},c=function(t){var e,i,n,r,s,a,l,u,h;s={};for(n in t)if(a=t[n],o.isArray(a)){u=a[0],h=null!=(r=a[1])?r:"";for(l in u)e=u[l],i=l+h,s[i]=e}else s[n]=a;return s},a=null,r=function(t){var e;return null==a&amp;&amp;(a=c(h)),l[t]?l[t]:(e=a[t],null==e.Collection&amp;&amp;(e.Collection=p(e.Model)),e.Collection)},r.register=function(t,e){return l[t]=e},u={},e.exports={collection_overrides:l,locations:h,index:u,Collections:r,Config:s}},{"../ar/transforms":96,"../callback/customjs":97,"../callback/open_url":98,"../mapper/categorical_mapper":138,"../mapper/linear_color_mapper":140,"../mapper/linear_mapper":141,"../range/data_range1d":144,"../range/factor_range":145,"../range/range1d":146,"../renderer/annotation/box_annotation":147,"../renderer/annotation/legend":148,"../renderer/annotation/span":149,"../renderer/annotation/tooltip":150,"../renderer/glyph/annular_wedge":151,"../renderer/glyph/annulus":152,"../renderer/glyph/arc":153,"../renderer/glyph/bezier":154,"../renderer/glyph/circle":156,"../renderer/glyph/gear":157,"../renderer/glyph/glyph_renderer":159,"../renderer/glyph/image":160,"../renderer/glyph/image_rgba":161,"../renderer/glyph/image_url":162,"../renderer/glyph/line":163,"../renderer/glyph/marker/asterisk":164,"../renderer/glyph/marker/circle_cross":165,"../renderer/glyph/marker/circle_x":166,"../renderer/glyph/marker/cross":167,"../renderer/glyph/marker/diamond":168,"../renderer/glyph/marker/diamond_cross":169,"../renderer/glyph/marker/inverted_triangle":170,"../renderer/glyph/marker/square":172,"../renderer/glyph/marker/square_cross":173,"../renderer/glyph/marker/square_x":174,"../renderer/glyph/marker/triangle":175,"../renderer/glyph/marker/x":176,"../renderer/glyph/multi_line":177,"../renderer/glyph/oval":178,"../renderer/glyph/patch":179,"../renderer/glyph/patches":180,"../renderer/glyph/quad":181,"../renderer/glyph/quadratic":182,"../renderer/glyph/ray":183,"../renderer/glyph/rect":184,"../renderer/glyph/segment":185,"../renderer/glyph/text":186,"../renderer/glyph/wedge":187,"../renderer/guide/categorical_axis":189,"../renderer/guide/datetime_axis":190,"../renderer/guide/grid":191,"../renderer/guide/linear_axis":192,"../renderer/guide/log_axis":193,"../renderer/overlay/box_selection":194,"../renderer/overlay/poly_selection":195,"../source/ajax_data_source":202,"../source/blaze_data_source":203,"../source/column_data_source":204,"../source/server_data_source":206,"../ticking/abstract_ticker":207,"../ticking/adaptive_ticker":208,"../ticking/basic_tick_formatter":209,"../ticking/basic_ticker":210,"../ticking/categorical_tick_formatter":211,"../ticking/categorical_ticker":212,"../ticking/composite_ticker":213,"../ticking/datetime_tick_formatter":214,"../ticking/datetime_ticker":215,"../ticking/days_ticker":216,"../ticking/fixed_ticker":217,"../ticking/log_tick_formatter":218,"../ticking/log_ticker":219,"../ticking/months_ticker":220,"../ticking/numeral_tick_formatter":221,"../ticking/printf_tick_formatter":222,"../ticking/single_interval_ticker":223,"../ticking/years_ticker":225,"../tool/actions/action_tool":226,"../tool/actions/help_tool":227,"../tool/actions/preview_save_tool":228,"../tool/actions/reset_tool":230,"../tool/button_tool":231,"../tool/gestures/box_select_tool":233,"../tool/gestures/box_zoom_tool":234,"../tool/gestures/gesture_tool":235,"../tool/gestures/lasso_select_tool":236,"../tool/gestures/pan_tool":237,"../tool/gestures/poly_select_tool":238,"../tool/gestures/resize_tool":239,"../tool/gestures/select_tool":240,"../tool/gestures/tap_tool":241,"../tool/gestures/wheel_zoom_tool":242,"../tool/inspectors/crosshair_tool":243,"../tool/inspectors/hover_tool":244,"../tool/inspectors/inspect_tool":245,"../widget/autocomplete_input":251,"../widget/button":252,"../widget/cell_editors":253,"../widget/cell_formatters":254,"../widget/checkbox_button_group":255,"../widget/checkbox_group":256,"../widget/crossfilter":257,"../widget/data_table":261,"../widget/date_picker":262,"../widget/date_range_slider":263,"../widget/dialog":264,"../widget/dropdown":266,"../widget/hbox":267,"../widget/icon":268,"../widget/layouts/apphbox":269,"../widget/layouts/appvbox":270,"../widget/layouts/appvboxform":271,"../widget/multiselect":273,"../widget/panel":275,"../widget/paragraph":276,"../widget/pretext":277,"../widget/radio_button_group":278,"../widget/radio_group":279,"../widget/selectbox":280,"../widget/simpleapp":282,"../widget/slider":283,"../widget/table_column":285,"../widget/tabs":286,"../widget/text_input":288,"../widget/toggle":290,"../widget/vbox":291,"../widget/vboxform":292,"./canvas":103,"./cartesian_frame":105,"./collection":107,"./custom":110,"./geojs_plot":111,"./gmap_plot":112,"./grid_plot":113,"./layout_box":117,"./plot":121,"./plot_context":122,"./selection_manager":128,"./selector":129,"./tool_events":134,underscore:92}],100:[function(t,e,i){var n,r;n=function(){return[[1/0,-(1/0)],[1/0,-(1/0)]]},r=function(t,e){return t[0][0]=Math.min(t[0][0],e[0][0]),t[0][1]=Math.max(t[0][1],e[0][1]),t[1][0]=Math.min(t[1][0],e[1][0]),t[1][1]=Math.max(t[1][1],e[1][1]),t},e.exports={empty:n,extend:r}},{}],101:[function(t,e,i){var n,r,s;n=t("underscore"),r=function(t,e,i,r){var o,a,l,u,h,c,p,d,f,g,m;for(null==r&amp;&amp;(r=[]),o=[],f=n.filter(e,function(e){return!n.has(t,e.id)}),l=a=0,c=f.length;c&gt;a;l=++a)d=f[l],m=n.extend({},i,{model:d}),l&lt;r.length?t[d.id]=new r[l](m):t[d.id]=new d.default_view(m),t[d.id].$el.find("*[class*='ui-']").each(function(t,e){return e.className=s(e)}),o.push(t[d.id]);for(g=n.difference(n.keys(t),n.pluck(e,"id")),u=0,p=g.length;p&gt;u;u++)h=g[u],t[h].remove(),delete t[h];return o},s=function(t){var e,i;if(null!=t.className)return e=t.className.split(" "),i=n.map(e,function(t){return t=t.trim(),0===t.indexOf("ui-")?"bk-"+t:t}),i.join(" ")},r.jQueryUIPrefixer=s,e.exports=r=r},{underscore:92}],102:[function(t,e,i){var n,r,s,o;r=t("underscore"),n=t("jquery"),o=t("./load_models"),s=function(e){var i,s,a,l,u,h;if(i=t("./base").Config,s=e[0].get("doc"),null==s)throw new Error("Unset 'doc' in "+e[0]);return a=function(){var t,i,n;for(n=[],t=0,i=e.length;i&gt;t;t++)l=e[t],n.push({type:l.type,attributes:r.clone(l.attributes)});return n}(),a=JSON.stringify(a),u=i.prefix+"bokeh/bb/"+s+"/bulkupsert",h=n.ajax({type:"POST",url:u,contentType:"application/json",data:a,header:{client:"javascript"}}),h.done(function(t){return o(t.modelspecs)}),h},e.exports={bulk_save:s}},{"./base":99,"./load_models":118,jquery:18,underscore:92}],103:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;c=t("underscore"),d=null!=i._bokehTest?i._bokehTest.kiwi:t("kiwi"),a=d.Expression,s=d.Constraint,u=d.Operator,p=t("./canvas_template"),o=t("./continuum_view"),l=t("./layout_box"),f=t("./logging").logger,h=t("./solver"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.className="bk-canvas-wrapper",e.prototype.template=p,e.prototype.initialize=function(t){var i,n,r;return e.__super__.initialize.call(this,t),r={map:this.mget("map")},i=this.template(r),this.$el.html(i),this.canvas_wrapper=this.$el,this.canvas=this.$("canvas.bk-canvas"),this.canvas_events=this.$("div.bk-canvas-events"),this.canvas_overlay=this.$("div.bk-canvas-overlays"),this.map_div=null!=(n=this.$("div.bk-canvas-map"))?n:null,this.ctx=this.canvas[0].getContext("2d"),this.ctx.glcanvas=null,f.debug("CanvasView initialized")},e.prototype.render=function(t){var e,i,n,r,s;return null==t&amp;&amp;(t=!1),this.model.new_bounds||t?(this.mget("use_hidpi")?(i=window.devicePixelRatio||1,e=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,r=i/e):r=1,s=this.mget("width"),n=this.mget("height"),this.$el.attr("style","z-index: 50; width:"+s+"px; height:"+n+"px"),this.canvas.attr("style","width:"+s+"px;height:"+n+"px"),this.canvas.attr("width",s*r).attr("height",n*r),this.$el.attr("width",s).attr("height",n),this.canvas_events.attr("style","z-index:100; position:absolute; top:0; left:0; width:"+s+"px; height:"+n+"px;"),this.canvas_overlay.attr("style","z-index:75; position:absolute; top:0; left:0; width:"+s+"px; height:"+n+"px;"),this.ctx.scale(r,r),this.ctx.translate(.5,.5),this._fixup_line_dash(this.ctx),this._fixup_line_dash_offset(this.ctx),this._fixup_image_smoothing(this.ctx),this._fixup_measure_text(this.ctx),this.model.new_bounds=!1):void 0},e.prototype._fixup_line_dash=function(t){return t.setLineDash||(t.setLineDash=function(e){return t.mozDash=e,t.webkitLineDash=e}),t.getLineDash?void 0:t.getLineDash=function(){return t.mozDash}},e.prototype._fixup_line_dash_offset=function(t){return t.setLineDashOffset=function(e){return t.lineDashOffset=e,t.mozDashOffset=e,t.webkitLineDashOffset=e},t.getLineDashOffset=function(){return t.mozDashOffset}},e.prototype._fixup_image_smoothing=function(t){return t.setImageSmoothingEnabled=function(e){return t.imageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.oImageSmoothingEnabled=e,t.webkitImageSmoothingEnabled=e},t.getImageSmoothingEnabled=function(){var e;return null!=(e=t.imageSmoothingEnabled)?e:!0}},e.prototype._fixup_measure_text=function(t){return t.measureText&amp;&amp;null==t.html5MeasureText?(t.html5MeasureText=t.measureText,t.measureText=function(e){var i;return i=t.html5MeasureText(e),i.ascent=1.6*t.html5MeasureText("m").width,i}):void 0},e}(o),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.type="Canvas",e.prototype.default_view=r,e.prototype.initialize=function(t,i){var n;return n=new h,this.set("solver",n),e.__super__.initialize.call(this,t,i),this.new_bounds=!0,n.add_constraint(new s(new a(this._left),u.Eq)),n.add_constraint(new s(new a(this._bottom),u.Eq)),this._set_dims([this.get("canvas_width"),this.get("canvas_height")]),f.debug("Canvas initialized")},e.prototype.vx_to_sx=function(t){return t},e.prototype.vy_to_sy=function(t){return this.get("height")-(t+1)},e.prototype.v_vx_to_sx=function(t){var e,i,n,r;for(i=e=0,n=t.length;n&gt;e;i=++e)r=t[i],t[i]=r;return t},e.prototype.v_vy_to_sy=function(t){var e,i,n,r,s;for(e=this.get("height"),n=i=0,r=t.length;r&gt;i;n=++i)s=t[n],t[n]=e-(s+1);return t},e.prototype.sx_to_vx=function(t){return t},e.prototype.sy_to_vy=function(t){return this.get("height")-(t+1)},e.prototype.v_sx_to_vx=function(t){var e,i,n,r;for(i=e=0,n=t.length;n&gt;e;i=++e)r=t[i],t[i]=r;return t},e.prototype.v_sy_to_vy=function(t){var e,i,n,r,s;for(e=this.get("height"),n=i=0,r=t.length;r&gt;i;n=++i)s=t[n],t[n]=e-(s+1);return t},e.prototype._set_width=function(t,e){return null==e&amp;&amp;(e=!0),null!=this._width_constraint&amp;&amp;this.solver.remove_constraint(this._width_constraint),this._width_constraint=new s(new a(this._width,-t),u.Eq),this.solver.add_constraint(this._width_constraint),e&amp;&amp;this.solver.update_variables(),this.new_bounds=!0},e.prototype._set_height=function(t,e){return null==e&amp;&amp;(e=!0),null!=this._height_constraint&amp;&amp;this.solver.remove_constraint(this._height_constraint),this._height_constraint=new s(new a(this._height,-t),u.Eq),this.solver.add_constraint(this._height_constraint),e&amp;&amp;this.solver.update_variables(),this.new_bounds=!0},e.prototype._set_dims=function(t,e){return null==e&amp;&amp;(e=!0),this._set_width(t[0],!1),this._set_height(t[1],!1),this.solver.update_variables(e)},e.prototype.defaults=function(){return c.extend({},e.__super__.defaults.call(this),{width:300,height:300,map:!1,mousedown_callbacks:[],mousemove_callbacks:[],use_hidpi:!0})},e}(l.Model),e.exports={Model:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./canvas_template":104,"./continuum_view":109,"./layout_box":117,"./logging":119,"./solver":131,kiwi:303,underscore:92}],104:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){this.map&amp;&amp;i.push('\n&lt;div class="bk-canvas-map"&gt;&lt;/div&gt;\n'),i.push('\n&lt;div class="bk-canvas-events" /&gt;\n&lt;div class="bk-canvas-overlays" /&gt;\n&lt;canvas class=\'bk-canvas\'&gt;&lt;/canvas&gt;')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],105:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t("underscore"),o=t("./layout_box"),h=t("./logging").logging,a=t("../mapper/linear_mapper"),l=t("../mapper/log_mapper"),r=t("../mapper/categorical_mapper"),s=t("../mapper/grid_mapper"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="CartesianFrame",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("x_ranges",function(){return this._get_ranges("x")},!0),this.add_dependencies("x_ranges",this,["x_range","extra_x_ranges"]),this.register_property("y_ranges",function(){return this._get_ranges("y")},!0),this.add_dependencies("y_ranges",this,["y_range","extra_y_ranges"]),this.register_property("x_mappers",function(){return this._get_mappers("x",this.get("x_ranges"),this.get("h_range"))},!0),this.add_dependencies("x_ranges",this,["x_ranges","h_range"]),this.register_property("y_mappers",function(){return this._get_mappers("y",this.get("y_ranges"),this.get("v_range"))},!0),this.add_dependencies("y_ranges",this,["y_ranges","v_range"]),this.register_property("mapper",function(){return new s.Model({domain_mapper:this.get("x_mapper"),codomain_mapper:this.get("y_mapper")})},!0),this.add_dependencies("mapper",this,["x_mapper","y_mapper"]),this.listenTo(this.solver,"layout_update",this._update_mappers)},e.prototype.map_to_screen=function(t,e,i,n,r){var s,o,a,l;return null==n&amp;&amp;(n="default"),null==r&amp;&amp;(r="default"),a=this.get("x_mappers")[n].v_map_to_target(t),s=i.v_vx_to_sx(a),l=this.get("y_mappers")[r].v_map_to_target(e),o=i.v_vy_to_sy(l),[s,o]},e.prototype._get_ranges=function(t){var e,i,n,r;if(r={},r["default"]=this.get(t+"_range"),e=this.get("extra_"+t+"_ranges"),null!=e)for(i in e)n=e[i],r[i]=this.resolve_ref(n);return r},e.prototype._get_mappers=function(t,e,i){var n,s,o,u;s={};for(o in e){if(u=e[o],"Range1d"===u.type||"DataRange1d"===u.type)n="log"===this.get(t+"_mapper_type")?l.Model:a.Model;else{if("FactorRange"!==u.type)return logger.warn("unknown range type for range '"+o+"': "+u),null;n=r.Model}s[o]=new n({source_range:u,target_range:i})}return s},e.prototype._update_mappers=function(){var t,e,i,n,r;i=this.get("x_mappers");for(e in i)t=i[e],t.set("target_range",this.get("h_range"));n=this.get("y_mappers"),r=[];for(e in n)t=n[e],r.push(t.set("target_range",this.get("v_range")));return r},e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{extra_x_ranges:{},extra_y_ranges:{}})},e}(o.Model),e.exports={Model:n}},{"../mapper/categorical_mapper":138,"../mapper/grid_mapper":139,"../mapper/linear_mapper":141,"../mapper/log_mapper":142,"./layout_box":117,"./logging":119,underscore:92}],106:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("./continuum_view"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.attributes={"class":"bk-closewrapper"},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t)},e.prototype.events={"click .bk-close":"close"},e.prototype.close=function(t){return this.view.remove(),this.remove()},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.view=t.view,this.render()},e.prototype.render=function(){return this.view.$el.detach(),this.$el.empty(),this.$el.html("&lt;a href='#' class='bk-close'&gt;[x]&lt;/a&gt;"),this.$el.append(this.view.$el)},e}(r),e.exports={View:n}},{"./continuum_view":109,underscore:92}],107:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("backbone"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e}(n.Collection),e.exports=r},{backbone:2}],108:[function(t,e,i){var n,r,s,o;r=function(t){var e;return e=Number(t).toString(16),e=1===e.length?"0"+e:e},s=function(t){var e,i,s;return t+="",0===t.indexOf("#")?t:null!=n[t]?n[t]:0===t.indexOf("rgb")?(i=t.match(/\d+/g),e=function(){var t,e,n;for(n=[],t=0,e=i.length;e&gt;t;t++)s=i[t],n.push(r(s));return n}().join(""),"#"+e.slice(0,8)):t},o=function(t,e){var i,n,r;if(null==e&amp;&amp;(e=1),!t)return[0,0,0,0];for(i=s(t),i=i.replace(/ |#/g,""),i.length&lt;=4&amp;&amp;(i=i.replace(/(.)/g,"$1$1")),i=i.match(/../g),r=function(){var t,e,r;for(r=[],t=0,e=i.length;e&gt;t;t++)n=i[t],r.push(parseInt(n,16)/255);return r}();r.length&lt;3;)r.push(0);return r.length&lt;4&amp;&amp;r.push(e),r.slice(0,4)},n={k:"#000000",w:"#FFFFFF",r:"#FF0000",g:"#00FF00",b:"#0000FF",y:"#FFFF00",m:"#FF00FF",c:"#00FFFF",aqua:"#00ffff",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",black:"#000000",blue:"#0000ff",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgreen:"#006400",darkturquoise:"#00ced1",deepskyblue:"#00bfff",green:"#008000",lime:"#00ff00",mediumblue:"#0000cd",mediumspringgreen:"#00fa9a",navy:"#000080",springgreen:"#00ff7f",teal:"#008080",midnightblue:"#191970",dodgerblue:"#1e90ff",lightseagreen:"#20b2aa",forestgreen:"#228b22",seagreen:"#2e8b57",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",limegreen:"#32cd32",mediumseagreen:"#3cb371",turquoise:"#40e0d0",royalblue:"#4169e1",steelblue:"#4682b4",darkslateblue:"#483d8b",mediumturquoise:"#48d1cc",indigo:"#4b0082",darkolivegreen:"#556b2f",cadetblue:"#5f9ea0",cornflowerblue:"#6495ed",mediumaquamarine:"#66cdaa",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6a5acd",olivedrab:"#6b8e23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7b68ee",lawngreen:"#7cfc00",aquamarine:"#7fffd4",chartreuse:"#7fff00",gray:"#808080",grey:"#808080",maroon:"#800000",olive:"#808000",purple:"#800080",lightskyblue:"#87cefa",skyblue:"#87ceeb",blueviolet:"#8a2be2",darkmagenta:"#8b008b",darkred:"#8b0000",saddlebrown:"#8b4513",darkseagreen:"#8fbc8f",lightgreen:"#90ee90",mediumpurple:"#9370db",darkviolet:"#9400d3",palegreen:"#98fb98",darkorchid:"#9932cc",yellowgreen:"#9acd32",sienna:"#a0522d",brown:"#a52a2a",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",greenyellow:"#adff2f",lightblue:"#add8e6",paleturquoise:"#afeeee",lightsteelblue:"#b0c4de",powderblue:"#b0e0e6",firebrick:"#b22222",darkgoldenrod:"#b8860b",mediumorchid:"#ba55d3",rosybrown:"#bc8f8f",darkkhaki:"#bdb76b",silver:"#c0c0c0",mediumvioletred:"#c71585",indianred:"#cd5c5c",peru:"#cd853f",chocolate:"#d2691e",tan:"#d2b48c",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",thistle:"#d8bfd8",goldenrod:"#daa520",orchid:"#da70d6",palevioletred:"#db7093",crimson:"#dc143c",gainsboro:"#dcdcdc",plum:"#dda0dd",burlywood:"#deb887",lightcyan:"#e0ffff",lavender:"#e6e6fa",darksalmon:"#e9967a",palegoldenrod:"#eee8aa",violet:"#ee82ee",azure:"#f0ffff",honeydew:"#f0fff0",khaki:"#f0e68c",lightcoral:"#f08080",sandybrown:"#f4a460",beige:"#f5f5dc",mintcream:"#f5fffa",wheat:"#f5deb3",whitesmoke:"#f5f5f5",ghostwhite:"#f8f8ff",lightgoldenrodyellow:"#fafad2",linen:"#faf0e6",salmon:"#fa8072",oldlace:"#fdf5e6",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",coral:"#ff7f50",cornsilk:"#fff8dc",darkorange:"#ff8c00",deeppink:"#ff1493",floralwhite:"#fffaf0",fuchsia:"#ff00ff",gold:"#ffd700",hotpink:"#ff69b4",ivory:"#fffff0",lavenderblush:"#fff0f5",lemonchiffon:"#fffacd",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightyellow:"#ffffe0",magenta:"#ff00ff",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",orange:"#ffa500",orangered:"#ff4500",papayawhip:"#ffefd5",peachpuff:"#ffdab9",pink:"#ffc0cb",red:"#ff0000",seashell:"#fff5ee",snow:"#fffafa",tomato:"#ff6347",white:"#ffffff",yellow:"#ffff00"},e.exports={color2hex:s,color2rgba:o}},{}],109:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t;
        }for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("backbone"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t){return s.has(t,"id")?void 0:this.id=s.uniqueId("ContinuumView")},e.prototype.bind_bokeh_events=function(){return"pass"},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t)},e.prototype.remove=function(){var t,i,n;if(s.has(this,"eventers")){t=this.eventers;for(i in t)a.call(t,i)&amp;&amp;(n=t[i],n.off(null,null,this))}return this.trigger("remove",this),e.__super__.remove.call(this)},e.prototype.mget=function(){return this.model.get.apply(this.model,arguments)},e.prototype.mset=function(){return this.model.set.apply(this.model,arguments)},e.prototype.render_end=function(){return"pass"},e}(n.View),e.exports=r},{backbone:2,underscore:92}],110:[function(t,e,i){var n,r;n=t("underscore"),r=function(){return n.uniqueId=function(t){var e,i,n,r,s;for(r=[],e="0123456789ABCDEF",i=n=0;31&gt;=n;i=++n)r[i]=e.substr(Math.floor(16*Math.random()),1);return r[12]="4",r[16]=e.substr(3&amp;r[16]|8,1),s=r.join(""),t?t+"-"+s:s}},n.isNullOrUndefined=function(t){return n.isNull(t)||n.isUndefined(t)},n.setdefault=function(t,e,i){return n.has(t,e)?t[e]:(t[e]=i,i)},e.exports={monkey_patch:r}},{underscore:92}],111:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),o=t("./solver"),s=t("./plot"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,a.defaults(t,this.default_options)),this.zoom_count=null},e.prototype.bind_bokeh_events=function(){var t,i,n,r,s;return e.__super__.bind_bokeh_events.call(this),s=this.frame.get("width"),i=this.frame.get("height"),n=this.canvas.vx_to_sx(this.frame.get("left")),r=this.canvas.vy_to_sy(this.frame.get("top")),this.canvas_view.map_div.attr("style","top: "+r+"px; left: "+n+"px; position: absolute"),this.canvas_view.map_div.attr("style","width:"+s+"px;"),this.canvas_view.map_div.attr("style","height:"+i+"px;"),this.canvas_view.map_div.width(s+"px").height(i+"px"),this.initial_zoom=this.mget("map_options").zoom,t=function(t){return function(){var e,i;return i=t.mget("map_options"),e={center:[i.lat,i.lng],zoom:i.zoom,node:t.canvas_view.map_div[0]},t.map=geo.map(e),t.map.createLayer("osm")}}(this),$.getScript("http://opengeoscience.github.io/geojs/lib/gl-matrix.js",function(){return $.getScript("http://opengeoscience.github.io/geojs/lib/d3.v3.min.js",function(){return $.getScript("http://opengeoscience.github.io/geojs/lib/proj4.js",function(){return $.getScript("http://opengeoscience.github.io/geojs/lib/vgl.js",function(){return $.getScript("http://opengeoscience.github.io/geojs/lib/geo.js",function(){return t()})})})})})},e.prototype._map_hook=function(t,e){var i,n,r,s;return n=e[0],r=e[1],s=e[2],i=e[3],this.canvas_view.map_div.attr("style","top: "+r+"px; left: "+n+"px;"),this.canvas_view.map_div.width(s+"px").height(i+"px")},e.prototype._paint_empty=function(t,e){var i,n,r,s,o,a;return o=this.canvas.get("width"),s=this.canvas.get("height"),r=e[0],a=e[1],n=e[2],i=e[3],t.clearRect(0,0,o,s),t.beginPath(),t.moveTo(0,0),t.lineTo(0,s),t.lineTo(o,s),t.lineTo(o,0),t.lineTo(0,0),t.moveTo(r,a),t.lineTo(r+n,a),t.lineTo(r+n,a+i),t.lineTo(r,a+i),t.lineTo(r,a),t.closePath(),t.fillStyle=this.mget("border_fill"),t.fill()},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="GeoJSPlot",e.prototype.default_view=r,e.prototype.initialize=function(t,i){return this.use_map=!0,e.__super__.initialize.call(this,t,i)},e.prototype.parent_properties=["border_fill","min_border","min_border_top","min_border_bottom","min_border_left","min_border_right"],e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:"GeoJSPlot"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{border_fill:"#fff"})},e}(s.Model),e.exports={Model:n,View:r}},{"./plot":121,"./solver":131,underscore:92}],112:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;a=t("underscore"),o=t("./solver"),s=t("./plot"),l=t("proj4"),u=l.defs("GOOGLE"),r=function(t){function e(){return this.setRanges=h(this.setRanges,this),this.getProjectedBounds=h(this.getProjectedBounds,this),this.getLatLngBounds=h(this.getLatLngBounds,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,a.defaults(t,this.default_options)),this.zoom_count=0},e.prototype.getLatLngBounds=function(){var t,e,i,n,r,s,o;return e=this.map.getBounds(),i=e.getNorthEast(),t=e.getSouthWest(),r=t.lng(),n=i.lng(),o=t.lat(),s=i.lat(),[r,n,o,s]},e.prototype.getProjectedBounds=function(){var t,e,i,n,r,s,o,a,h,c,p;return r=this.getLatLngBounds(),h=r[0],a=r[1],p=r[2],c=r[3],s=l(u,[h,p]),e=s[0],n=s[1],o=l(u,[a,c]),t=o[0],i=o[1],[e,t,n,i]},e.prototype.setRanges=function(){var t,e,i,n,r;return r=this.getProjectedBounds(),e=r[0],t=r[1],n=r[2],i=r[3],this.x_range.set({start:e,end:t,silent:!0}),this.y_range.set({start:n,end:i,silent:!0})},e.prototype.update_range=function(t){var i,n,r,s,o,a,l,u;if(this.pause(),(null!=t.sdx||null!=t.sdy)&amp;&amp;(this.map.panBy(t.sdx,t.sdy),e.__super__.update_range.call(this,t)),null!=t.factor){if(10!==this.zoom_count)return void(this.zoom_count+=1);this.zoom_count=0,e.__super__.update_range.call(this,t),u=t.factor&lt;0?-1:1,n=this.map.getZoom(),i=n+u,i&gt;=2&amp;&amp;(this.map.setZoom(i),l=this.getProjectedBounds(),s=l[0],r=l[1],a=l[2],o=l[3],0&gt;r-s&amp;&amp;this.map.setZoom(n)),this.setRanges()}return this.unpause()},e.prototype.bind_bokeh_events=function(){var t,i,n,r,s,o;return e.__super__.bind_bokeh_events.call(this),o=this.frame.get("width"),i=this.frame.get("height"),n=this.canvas.vx_to_sx(this.frame.get("left")),s=this.canvas.vy_to_sy(this.frame.get("top")),this.canvas_view.map_div.attr("style","top: "+s+"px; left: "+n+"px; position: absolute"),this.canvas_view.map_div.attr("style","width:"+o+"px;"),this.canvas_view.map_div.attr("style","height:"+i+"px;"),this.canvas_view.map_div.width(o+"px").height(i+"px"),this.initial_zoom=this.mget("map_options").zoom,t=function(t){return function(){var e,i,n,r;return n=window.google.maps,i={satellite:n.MapTypeId.SATELLITE,terrain:n.MapTypeId.TERRAIN,roadmap:n.MapTypeId.ROADMAP,hybrid:n.MapTypeId.HYBRID},r=t.mget("map_options"),e={center:new n.LatLng(r.lat,r.lng),zoom:r.zoom,disableDefaultUI:!0,mapTypeId:i[r.map_type]},null!=r.styles&amp;&amp;(e.styles=JSON.parse(r.styles)),t.map=new n.Map(t.canvas_view.map_div[0],e),n.event.addListenerOnce(t.map,"idle",t.setRanges)}}(this),null==window._bokeh_gmap_loads&amp;&amp;(window._bokeh_gmap_loads=[]),null!=window.google&amp;&amp;null!=window.google.maps?a.defer(t):null!=window._bokeh_gmap_callback?window._bokeh_gmap_loads.push(t):(window._bokeh_gmap_loads.push(t),window._bokeh_gmap_callback=function(){return a.each(window._bokeh_gmap_loads,a.defer)},r=document.createElement("script"),r.type="text/javascript",r.src="https://maps.googleapis.com/maps/api/js?v=3&amp;callback=_bokeh_gmap_callback",document.body.appendChild(r))},e.prototype._map_hook=function(t,e){var i,n,r,s;return n=e[0],r=e[1],s=e[2],i=e[3],this.canvas_view.map_div.attr("style","top: "+r+"px; left: "+n+"px;"),this.canvas_view.map_div.width(s+"px").height(i+"px")},e.prototype._paint_empty=function(t,e){var i,n,r,s,o,a;return o=this.canvas.get("width"),s=this.canvas.get("height"),r=e[0],a=e[1],n=e[2],i=e[3],t.clearRect(0,0,o,s),t.beginPath(),t.moveTo(0,0),t.lineTo(0,s),t.lineTo(o,s),t.lineTo(o,0),t.lineTo(0,0),t.moveTo(r,a),t.lineTo(r+n,a),t.lineTo(r+n,a+i),t.lineTo(r,a+i),t.lineTo(r,a),t.closePath(),t.fillStyle=this.mget("border_fill"),t.fill()},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="GMapPlot",e.prototype.default_view=r,e.prototype.initialize=function(t,i){return this.use_map=!0,e.__super__.initialize.call(this,t,i)},e.prototype.parent_properties=["border_fill","min_border","min_border_top","min_border_bottom","min_border_left","min_border_right"],e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:"GMapPlot"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{border_fill:"#fff"})},e}(s.Model),e.exports={Model:n,View:r}},{"./plot":121,"./solver":131,proj4:56,underscore:92}],113:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_=function(t,e){function i(){this.constructor=t}for(var n in e)v.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},v={}.hasOwnProperty,y=function(t,e){return function(){return t.apply(e,arguments)}};n=t("jquery"),d=t("underscore"),r=t("backbone"),f=t("./build_views"),s=t("./continuum_view"),h=t("./has_properties"),g=t("./logging").logger,c=t("./tool_manager"),m=t("./plot_template"),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this,"do",this["do"]),this.listenTo(this,"change:active",this.active),null},e.prototype["do"]=function(){var t,e,i,n;for(i=this.attributes.tools,t=0,e=i.length;e&gt;t;t++)n=i[t],n.trigger("do");return null},e.prototype.active=function(){var t,e,i,n;for(i=this.attributes.tools,t=0,e=i.length;e&gt;t;t++)n=i[t],n.set("active",this.attributes.active);return null},e.prototype.attrs_and_props=function(){return this.attributes.tools[0].attrs_and_props()},e.prototype.get=function(t){return this.attributes.tools[0].get(t)},e.prototype.set=function(t,i){var n,r,s,o;for(e.__super__.set.call(this,t,i),s=this.attributes.tools,n=0,r=s.length;r&gt;n;n++)o=s[n],o.set(t,i);return null},e}(r.Model),l=function(t){function e(){return this._active_change=y(this._active_change,this),e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype._init_tools=function(){var t,e,i,n,r,s,o,a,l,u,h,c,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S;for(s={},t={},i={},m=this.get("tool_managers"),n=0,u=m.length;u&gt;n;n++){M=m[n],_=M.get("gestures");for(e in _){r=_[e],e in i||(i[e]={}),v=r.tools;for(o=0,h=v.length;h&gt;o;o++)D=v[o],D.type in i[e]||(i[e][D.type]=[]),i[e][D.type].push(D)}for(y=M.get("inspectors"),a=0,c=y.length;c&gt;a;a++)D=y[a],D.type in s||(s[D.type]=[]),s[D.type].push(D);for(b=M.get("actions"),l=0,f=b.length;f&gt;l;l++)D=b[l],D.type in t||(t[D.type]=[]),t[D.type].push(D)}for(e in i){w=i[e];for(S in w)T=w[S],T.length===this.get("num_plots")&amp;&amp;(g=new p({tools:T}),this.get("gestures")[e].tools.push(g),this.listenTo(g,"change:active",d.bind(this._active_change,g)))}for(S in t)T=t[S],T.length===this.get("num_plots")&amp;&amp;(g=new p({tools:T}),C=this.get("actions"),C.push(g),this.set("actions",C));for(S in s)T=s[S],T.length===this.get("num_plots")&amp;&amp;(g=new p({tools:T}),C=this.get("inspectors"),C.push(g),this.set("inspectors",C));x=this.get("gestures"),k=[];for(e in x)r=x[e],T=r.tools,0!==T.length&amp;&amp;(r.tools=d.sortBy(T,function(t){return t.get("default_order")}),k.push(r.tools[0].set("active",!0)));return k},e.prototype._active_change=function(t){var e,i,n,r;return i=t.get("event_type"),(e=t.get("active"))?(n=this.get("gestures"),r=n[i].active,null!=r&amp;&amp;(g.debug("GridToolManager: deactivating tool: "+r.type+" (for event type '"+i+"'"),r.set("active",!1)),n[i].active=t,this.set("gestures",n),g.debug("GridToolManager: activating tool: "+t.type+" (for event type '"+i+"'"),null):null},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{tool_manangers:[]})},e}(c.Model),u=function(t){function e(){return this.layout_widths=y(this.layout_widths,this),this.layout_heights=y(this.layout_heights,this),this.setup_layout_properties=y(this.setup_layout_properties,this),e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.setup_layout_properties=function(){var t,e,i,n,r,s;for(this.register_property("layout_heights",this.layout_heights,!1),this.register_property("layout_widths",this.layout_widths,!1),i=this.get("viewstates"),n=[],t=0,e=i.length;e&gt;t;t++)r=i[t],n.push(function(){var t,e,i;for(i=[],t=0,e=r.length;e&gt;t;t++)s=r[t],this.add_dependencies("layout_heights",s,"height"),i.push(this.add_dependencies("layout_widths",s,"width"));return i}.call(this));return n},e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),this.setup_layout_properties(),this.listenTo(this,"change:viewstates",this.setup_layout_properties),n=function(t){return function(){return d.reduce(t.get("layout_heights"),function(t,e){return t+e},0)}}(this),this.register_property("height",n,!1),this.add_dependencies("height",this,"layout_heights"),r=function(t){return function(){return d.reduce(t.get("layout_widths"),function(t,e){return t+e},0)}}(this),this.register_property("width",r,!1),this.add_dependencies("width",this,"layout_widths")},e.prototype.position_child_x=function(t,e){return t},e.prototype.position_child_y=function(t,e){return this.get("height")-t-e},e.prototype.maxdim=function(t,e){return 0===e.length?0:d.max(d.map(e,function(e){return null!=e?e.get(t):0}))},e.prototype.layout_heights=function(){var t,e;return e=function(){var e,i,n,r;for(n=this.get("viewstates"),r=[],e=0,i=n.length;i&gt;e;e++)t=n[e],r.push(this.maxdim("height",t));return r}.call(this)},e.prototype.layout_widths=function(){var t,e,i,n,r,s;return r=this.get("viewstates")[0].length,i=function(){var t,e,i,o;for(i=d.range(r),o=[],t=0,e=i.length;e&gt;t;t++)n=i[t],o.push(function(){var t,e,i,r;for(i=this.get("viewstates"),r=[],t=0,e=i.length;e&gt;t;t++)s=i[t],r.push(s[n]);return r}.call(this));return o}.call(this),e=function(){var e,n,r;for(r=[],e=0,n=i.length;n&gt;e;e++)t=i[e],r.push(this.maxdim("width",t));return r}.call(this)},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{viewstates:[[]],border_space:0})},e}(h),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.className="",e.prototype.template=m,e.prototype.initialize=function(t){var i,n;return e.__super__.initialize.call(this,t),this.viewstate=new u,this.child_views={},this.build_children(),this.bind_bokeh_events(),this.$el.html(this.template()),i=this.mget("toolbar_location"),null!=i&amp;&amp;(n=".bk-plot-"+i,g.debug("attaching toolbar to "+n+" for plot "+this.model.id),this.tm_view=new c.View({model:this.mget("tool_manager"),el:this.$(n)})),this.render(),this},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:children",this.build_children),this.listenTo(this.model,"change",this.render),this.listenTo(this.viewstate,"change",this.render),this.listenTo(this.model,"destroy",this.remove)},e.prototype.build_children=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d,g,m,_,v,y;for(t=[],p=this.mget("children"),e=0,s=p.length;s&gt;e;e++)for(_=p[e],i=0,o=_.length;o&gt;i;i++)c=_[i],null!=c&amp;&amp;(c.set("toolbar_location",null),t.push(c));for(f(this.child_views,t,{}),v=[],d=this.mget("children"),n=0,a=d.length;a&gt;n;n++){for(_=d[n],y=[],r=0,l=_.length;l&gt;r;r++)c=_[r],null!=c&amp;&amp;y.push(this.child_views[c.id].canvas);v.push(y)}for(this.viewstate.set("viewstates",v),g=this.mget("children"),m=[],h=0,u=g.length;u&gt;h;h++)_=g[h],m.push(function(){var t,e,i;for(i=[],e=0,t=_.length;t&gt;e;e++)c=_[e],null!=c&amp;&amp;i.push(this.listenTo(c.solver,"layout_update",this.render));return i}.call(this));return m},e.prototype.render=function(){var t,i,r,s,o,a,l,u,h,p,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I;for(e.__super__.render.call(this),y=d.values(this.child_views),a=0,p=y.length;p&gt;a;a++)T=y[a],T.$el.detach();for(s=n("&lt;div /&gt;"),this.$(".bk-plot-canvas-wrapper").empty(),this.$(".bk-plot-canvas-wrapper").append(s),M=this.mget("toolbar_location"),null!=M&amp;&amp;(C=".bk-plot-"+M,this.tm_view=new c.View({model:this.mget("tool_manager"),el:this.$(C)}),this.tm_view.render()),k=this.viewstate.get("layout_heights"),r=this.viewstate.get("layout_widths"),E=[0],d.reduceRight(k.slice(1),function(t,e){var i;return i=t+e,E.push(i),i},0),E.reverse(),A=[0],d.reduce(r.slice(0),function(t,e){var i;return i=t+e,A.push(i),i},0),_=[],h=null,b=this.mget("children"),w=l=0,f=b.length;f&gt;l;w=++l)for(x=b[w],i=u=0,g=x.length;g&gt;u;i=++u)m=x[i],null!=m&amp;&amp;(T=this.child_views[m.id],I=this.viewstate.position_child_y(E[w],T.canvas.get("height")),P=this.viewstate.position_child_x(A[i],T.canvas.get("width")),v=n("&lt;div class='gp_plotwrapper'&gt;&lt;/div&gt;"),v.attr("style","position: absolute; left:"+P+"px; top:"+I+"px"),v.append(T.$el),s.append(v));return t=function(t,e){return t+e},D=d.reduce(k,t,0),o=D,S=d.reduce(r,t,0),s.attr("style","position:relative; height:"+o+"px;width:"+S+"px")},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.type="GridPlot",e.prototype.default_view=a,e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tool_manager",function(){var t,e,i,n,r;for(t=[],r=d.flatten(this.get("children")),e=0,i=r.length;i&gt;e;e++)n=r[e],null!=n&amp;&amp;t.push(n);return new l({tool_managers:function(){var e,i,r;for(r=[],e=0,i=t.length;i&gt;e;e++)n=t[e],r.push(n.get("tool_manager"));return r}(),toolbar_location:this.get("toolbar_location"),num_plots:t.length})},!0)},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{children:[[]],toolbar_location:"left"})},e}(h),e.exports={Model:o,View:a}},{"./build_views":101,"./continuum_view":109,"./has_properties":115,"./logging":119,"./plot_template":123,"./tool_manager":135,backbone:2,jquery:18,underscore:92}],114:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("./has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._parent=r.prototype.get.apply(this,["parent"])},e.prototype.get=function(t){var i;return this._display_defaults||(this._display_defaults=this.display_defaults()),"parent"===t?this._parent:(i=e.__super__.get.call(this,t),s.isUndefined(i)?this._parent&amp;&amp;s.indexOf(this._parent.parent_properties,t)&gt;=0&amp;&amp;(i=this._parent.get(t),!s.isUndefined(i))?i:this._display_defaults[t]:i)},e.prototype.display_defaults=function(){return{}},e}(r),e.exports=n},{"./has_properties":115,underscore:92}],115:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;n=t("jquery"),o=t("underscore"),r=t("backbone"),l=t("./logging").logger,a=function(t){var e;if(o.isObject(t)){if(e=o.keys(t).sort(),2===e.length)return"id"===e[0]&amp;&amp;"type"===e[1];if(3===e.length)return"id"===e[0]&amp;&amp;"subtype"===e[1]&amp;&amp;"type"===e[2]}return!1},s=function(e){function i(t,e){this.rpc=u(this.rpc,this),this.resolve_ref=u(this.resolve_ref,this),this.convert_to_ref=u(this.convert_to_ref,this);var i;i=t||{},e||(e={}),this.cid=o.uniqueId("c"),this.attributes={},e.collection&amp;&amp;(this.collection=e.collection),e.parse&amp;&amp;(i=this.parse(i,e)||{}),i=o.defaults({},i,o.result(this,"defaults")),this.set(i,e),this.changed={},this._base=!1,this.properties={},this.property_cache={},o.has(i,this.idAttribute)||(this.id=o.uniqueId(this.type),this.attributes[this.idAttribute]=this.id),e.defer_initialization||this.initialize.apply(this,arguments)}return h(i,e),i.prototype.toString=function(){return this.type+"("+this.id+")"},i.prototype.destroy=function(t){return i.__super__.destroy.call(this,t),this.stopListening()},i.prototype.isNew=function(){return!1},i.prototype.attrs_and_props=function(){var t,e,i,n,r;for(t=o.clone(this.attributes),r=o.keys(this.properties),e=0,i=r.length;i&gt;e;e++)n=r[e],t[n]=this.get(n);return t},i.prototype.forceTrigger=function(t){var e,i,n,r,s;for(o.isArray(t)||(t=[t]),s={},i=this._changing,this._changing=!0,t.length&amp;&amp;(this._pending=!0),n=0,r=t.length;r&gt;n;n++)e=t[n],this.trigger("change:"+e,this,this.attributes[e],s);if(i)return this;for(;this._pending;)this._pending=!1,this.trigger("change",this,s);return this._pending=!1,this._changing=!1,this},i.prototype.set_obj=function(t,e,i){var n,r;o.isObject(t)||null===t?(n=t,i=e):(n={},n[t]=e);for(t in n)c.call(n,t)&amp;&amp;(r=n[t],n[t]=this.convert_to_ref(r));return this.set(n,i)},i.prototype.set=function(t,e,n){var r,s,a,l,u;o.isObject(t)||null===t?(r=t,n=e):(r={},r[t]=e),l=[];for(t in r)c.call(r,t)&amp;&amp;(u=r[t],o.has(this,"properties")&amp;&amp;o.has(this.properties,t)&amp;&amp;this.properties[t].setter&amp;&amp;(this.properties[t].setter.call(this,u,t),l.push(t)));if(!o.isEmpty(l))for(r=o.clone(r),s=0,a=l.length;a&gt;s;s++)t=l[s],delete r[t];return o.isEmpty(r)?void 0:i.__super__.set.call(this,r,n)},i.prototype.convert_to_ref=function(t){return o.isArray(t)?o.map(t,this.convert_to_ref):t instanceof i?t.ref():void 0},i.prototype.add_dependencies=function(t,e,i){var n,r,s,a,l;for(o.isArray(i)||(i=[i]),a=this.properties[t],a.dependencies=a.dependencies.concat({obj:e,fields:i}),l=[],r=0,s=i.length;s&gt;r;r++)n=i[r],l.push(this.listenTo(e,"change:"+n,a.callbacks.changedep));return l},i.prototype.register_setter=function(t,e){var i;return i=this.properties[t],i.setter=e},i.prototype.register_property=function(t,e,i){var n,r,s;return o.isUndefined(i)&amp;&amp;(i=!0),o.has(this.properties,t)&amp;&amp;this.remove_property(t),n=function(e){return function(){return e.trigger("changedep:"+t)}}(this),s=function(e){return function(){var i,n,s;return i=!0,r.use_cache&amp;&amp;(s=e.get_cache(t),e.clear_cache(t),n=e.get(t),i=n!==s),i?(e.trigger("change:"+t,e,e.get(t)),e.trigger("change",e)):void 0}}(this),r={getter:e,dependencies:[],use_cache:i,setter:null,callbacks:{changedep:n,propchange:s}},this.properties[t]=r,this.listenTo(this,"changedep:"+t,r.callbacks.propchange),r},i.prototype.remove_property=function(t){var e,i,n,r,s,o,a,l,u,h;for(u=this.properties[t],i=u.dependencies,r=0,o=i.length;o&gt;r;r++)for(e=i[r],l=e.obj,h=e.fields,s=0,a=h.length;a&gt;s;s++)n=h[s],l.off("change:"+n,u.callbacks.changedep,this);return this.off("changedep:"+e),delete this.properties[t],u.use_cache?this.clear_cache(t):void 0},i.prototype.has_cache=function(t){return o.has(this.property_cache,t)},i.prototype.add_cache=function(t,e){return this.property_cache[t]=e},i.prototype.clear_cache=function(t,e){return delete this.property_cache[t]},i.prototype.get_cache=function(t){return this.property_cache[t]},i.prototype.get=function(t,e){var n;return null==e&amp;&amp;(e=!0),o.has(this.properties,t)?this._get_prop(t):(n=i.__super__.get.call(this,t),e?this.resolve_ref(n):n)},i.prototype._get_prop=function(t){var e,i,n;return n=this.properties[t],n.use_cache&amp;&amp;this.has_cache(t)?this.property_cache[t]:(i=n.getter,e=i.apply(this,[t]),this.properties[t].use_cache&amp;&amp;this.add_cache(t,e),e)},i.prototype.ref=function(){return{type:this.type,id:this.id}},i.prototype.resolve_ref=function(t){var e;return o.isUndefined(t)?t:o.isArray(t)?function(){var i,n,r;for(r=[],i=0,n=t.length;n&gt;i;i++)e=t[i],r.push(this.resolve_ref(e));return r}.call(this):a(t)?t.type===this.type&amp;&amp;t.id===this.id?this:this.get_base().Collections(t.type).get(t.id):t},i.prototype.get_base=function(){return this._base||(this._base=t("./base")),this._base},i.prototype.url=function(){var t,e;return t=this.get("doc"),null==t&amp;&amp;l.error("unset 'doc' in "+this),e=this.get_base().Config.prefix+"bokeh/bb/"+t+"/"+this.type+"/",this.isNew()?e:e+this.get("id")+"/"},i.prototype.sync=function(t,e,i){return i.success(e.attributes,null,{})},i.prototype.defaults=function(){return{}},i.prototype.rpc=function(t,e,i){var r,s,o,a,l,u,h;if(a=this.get_base().Config.prefix,s=this.get("doc"),null==s)throw new Error("Unset 'doc' in "+this);return o=this.get("id"),u=this.type,h=a+"bokeh/bb/rpc/"+s+"/"+u+"/"+o+"/"+t+"/",r={args:e,kwargs:i},l=n.ajax({type:"POST",url:h,data:JSON.stringify(r),contentType:"application/json",xhrFields:{withCredentials:!0}})},i}(r.Model),e.exports=s},{"./base":99,"./logging":119,backbone:2,jquery:18,underscore:92}],116:[function(t,e,i){var n,r,s,o,a,l,u;l=function(t,e,i,n){var r,s,o,a,l,u,h,c;for(s=!1,l=i[i.length-1],h=n[n.length-1],r=o=0,a=i.length;a&gt;=0?a&gt;o:o&gt;a;r=a&gt;=0?++o:--o)u=i[r],c=n[r],e&gt;h!=e&gt;c&amp;&amp;t&gt;l+(e-h)/(c-h)*(u-l)&amp;&amp;(s=!s),l=u,h=c;return s},r=function(){var t;return t={"0d":{flag:!1,indices:[]},"1d":{indices:[]},"2d":{indices:[]}}},u=function(t){return t*t},s=function(t,e,i,n){return u(t-i)+u(e-n)},a=function(t,e,i){var n,r;return n=s(e.x,e.y,i.x,i.y),0===n?s(t.x,t.y,e.x,e.y):(r=((t.x-e.x)*(i.x-e.x)+(t.y-e.y)*(i.y-e.y))/n,0&gt;r?s(t.x,t.y,e.x,e.y):r&gt;1?s(t.x,t.y,i.x,i.y):s(t.x,t.y,e.x+r*(i.x-e.x),e.y+r*(i.y-e.y)))},o=function(t,e,i){return Math.sqrt(a(t,e,i))},n=function(t,e,i,n,r,s,o,a){var l,u,h,c,p,d,f;return h=(a-s)*(i-t)-(o-r)*(n-e),0===h?{hit:!1,x:null,y:null}:(l=e-s,u=t-r,c=(o-r)*l-(a-s)*u,p=(i-t)*l-(n-e)*u,l=c/h,u=p/h,d=t+l*(i-t),f=e+l*(n-e),{hit:l&gt;0&amp;&amp;1&gt;l&amp;&amp;u&gt;0&amp;&amp;1&gt;u,x:d,y:f})},e.exports={point_in_poly:l,create_hit_test_result:r,dist_2_pts:s,dist_to_segment:o,check_2_segments_intersect:n}},{}],117:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;d=t("underscore"),null!=i._bokehTest?f={}:(f=t("kiwi"),p=f.Variable,s=f.Expression,n=f.Constraint,h=f.Operator,r=h.Eq,u=h.Le,o=h.Ge),a=t("./has_properties"),c=t("../range/range1d"),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.type="LayoutBox",e.prototype.initialize=function(t,i){var a,l,u,h,d,g,m,_;for(e.__super__.initialize.call(this,t,i),this.solver=this.get("solver"),this.var_constraints={},g=["top","left","width","height"],a=0,u=g.length;u&gt;a;a++)_=g[a],d="_"+_,this[d]=new p(_),this.register_property(_,this._get_var,!1),this.register_setter(_,this._set_var),this.solver.add_edit_variable(this[d],f.Strength.strong);for(m=["right","bottom"],l=0,h=m.length;h&gt;l;l++)_=m[l],d="_"+_,this[d]=new p(_),this.register_property(_,this._get_var,!1);return this.solver.add_constraint(new n(new s(this._top),o)),this.solver.add_constraint(new n(new s(this._bottom),o)),this.solver.add_constraint(new n(new s(this._left),o)),this.solver.add_constraint(new n(new s(this._right),o)),this.solver.add_constraint(new n(new s(this._width),o)),this.solver.add_constraint(new n(new s(this._height),o)),this.solver.add_constraint(new n(new s(this._left,this._width,[-1,this._right]),r)),this.solver.add_constraint(new n(new s(this._bottom,this._height,[-1,this._top]),r)),this._h_range=new c.Model({start:this.get("left"),end:this.get("left")+this.get("width")}),this.register_property("h_range",function(t){return function(){return t._h_range.set("start",t.get("left")),t._h_range.set("end",t.get("left")+t.get("width")),t._h_range}}(this),!1),this.add_dependencies("h_range",this,["left","width"]),this._v_range=new c.Model({start:this.get("bottom"),end:this.get("bottom")+this.get("height")}),this.register_property("v_range",function(t){return function(){return t._v_range.set("start",t.get("bottom")),t._v_range.set("end",t.get("bottom")+t.get("height")),t._v_range}}(this),!1),this.add_dependencies("v_range",this,["bottom","height"]),this._aspect_constraint=null,this.register_property("aspect",function(t){return function(){return t.get("width")/t.get("height")}}(this),!0),this.register_setter("aspect",this._set_aspect),this.add_dependencies("aspect",this,["width","height"])},e.prototype.contains=function(t,e){return t&gt;=this.get("left")&amp;&amp;t&lt;=this.get("right")&amp;&amp;e&gt;=this.get("bottom")&amp;&amp;e&lt;=this.get("top")},e.prototype._set_var=function(t,e){var i,o;return o=this["_"+e],d.isNumber(t)?this.solver.suggest_value(o,t):d.isString(t)?void 0:(i=new n(new s(o,[-1,t]),r),null==this.var_constraints[e]&amp;&amp;(this.var_constraints[e]=[]),this.var_constraints[e].push(i),this.solver.add_constraint(i))},e.prototype._get_var=function(t){return this["_"+t].value()},e.prototype._set_aspect=function(t){var e;return null!=this._aspect_constraint?(this.solver.remove_constraint(this.aspect_constraint),e=new n(new s([t,this._height],[-1,this._width]),r),this._aspect_constraint=e,this.solver.add_constraint(e)):void 0},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{top_strength:f.Strength.strong,bottom_strength:f.Strength.strong,left_strength:f.Strength.strong,right_strength:f.Strength.strong,width_strength:f.Strength.strong,height_strength:f.Strength.strong})},e}(a),e.exports={Model:l}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../range/range1d":146,"./has_properties":115,kiwi:303,underscore:92}],118:[function(t,e,i){var n,r,s;n=t("./base"),s=t("./logging").logger,r=function(e){var i,n,r,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T;for(_=[],v=[],i=t("./base").Collections,s.debug("load_models: start"),o={},l=0,c=e.length;c&gt;l;l++)d=e[l],g=d.type,n=d.attributes,f=n.id,r=i(g),null!=r?r.get(f)?v.push([r,n,g]):f in o?s.warn("load_models: ignoring duplicate "+g+" ("+f+")"):(o[f]=!0,_.push([r,n,g])):s.warn("load_models: no collection for "+g+" ("+f+"), ignoring");for(s.debug("load_models: adding "+_.length+" new models to collections"),a=u=0,y=_.length;y&gt;=0?y&gt;u:u&gt;y;a=y&gt;=0?++u:--u)b=_[a],r=b[0],n=b[1],T=b[2],s.trace("load_models: adding ["+a+"] "+T+" ("+n.id+")"),r.add(n,{silent:!0,defer_initialization:!0});for(s.debug("load_models: finished adding new models to collections"),s.debug("load_models: starting deferred initializations of "+_.length+" new models"),a=h=0,w=_.length;w&gt;=0?w&gt;h:h&gt;w;a=w&gt;=0?++h:--h)x=_[a],r=x[0],n=x[1],T=x[2],d=r.get(n.id),s.trace("load_models: initializing ["+a+"] "+d.type+" ("+n.id+")"),d.initialize(n);for(s.debug("load_models: finished deferred initializations"),a=p=0,k=_.length;k&gt;=0?k&gt;p:p&gt;k;a=k&gt;=0?++p:--p)M=_[a],r=M[0],n=M[1],T=M[2],d=r.get(n.id),d.trigger("add",d,r,{});for(a=m=0,C=v.length;C&gt;=0?C&gt;m:m&gt;C;a=C&gt;=0?++m:--m)D=v[a],r=D[0],n=D[1],T=D[2],r.get(n.id).set(n);return s.debug("load_models: finish"),null},e.exports=r},{"./base":99,"./logging":119}],119:[function(t,e,i){var n,r,s;n=t("jsnlog").JL,r=n("Bokeh"),r.setOptions({appenders:[n.createConsoleAppender("consoleAppender")]}),s=function(t){var e;return e={trace:n.getTraceLevel(),debug:n.getDebugLevel(),info:n.getInfoLevel(),warn:n.getWarnLevel(),error:n.getErrorLevel(),fatal:n.getFatalLevel()},t in e?(console.log("Bokeh: setting log level to: '"+t+"'"),r.setOptions({level:e[t]})):(console.log("Bokeh: Unrecognized logging level '"+t+"' passed to Bokeh.set_log_level, ignoring."),void console.log("Bokeh: Valid log levels are: "+Object.keys(e)))},e.exports={logger:r,set_log_level:s}},{jsnlog:19}],120:[function(t,e,i){var n,r,s;s=function(t){for(;0&gt;t;)t+=2*Math.PI;for(;t&gt;2*Math.PI;)t-=2*Math.PI;return t},r=function(t,e){return Math.abs(s(t-e))},n=function(t,e,i,n){var o;return t=s(t),o=r(e,i),"anticlock"===n?r(e,t)&lt;=o&amp;&amp;r(t,i)&lt;=o:!(r(e,t)&lt;=o&amp;&amp;r(t,i)&lt;=o)},e.exports={angle_norm:s,angle_dist:r,angle_between:n}},{}],121:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A=function(t,e){return function(){return t.apply(e,arguments)}},P=function(t,e){function i(){this.constructor=t}for(var n in e)E.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,
        t.prototype=new i,t.__super__=e.prototype,t},E={}.hasOwnProperty;w=t("underscore"),n=t("jquery"),r=t("backbone"),null!=i._bokehTest?M={}:(M=t("kiwi"),h=M.Expression,a=M.Constraint,g=M.Operator,u=g.Eq,f=g.Le,c=g.Ge),x=t("./build_views"),s=t("./canvas"),o=t("./cartesian_frame"),l=t("./continuum_view"),b=t("./ui_events"),p=t("./has_parent"),d=t("./layout_box"),C=t("./logging").logger,T=t("./plot_utils"),v=t("./solver"),y=t("./tool_manager"),D=t("./plot_template"),S=t("./properties"),k=null,_=function(t){function e(){return this.resize=A(this.resize,this),this.remove=A(this.remove,this),this.request_render=A(this.request_render,this),e.__super__.constructor.apply(this,arguments)}return P(e,t),e.prototype.className="bk-plot",e.prototype.template=D,e.prototype.view_options=function(){return w.extend({plot_model:this.model,plot_view:this},this.options)},e.prototype.pause=function(){return this.is_paused=!0},e.prototype.unpause=function(){return this.is_paused=!1,this.request_render()},e.prototype.request_render=function(){this.is_paused||this.throttled_render(!0)},e.prototype.remove=function(){var t,i,n,r;e.__super__.remove.call(this),i=this.tools,n=[];for(t in i)r=i[t],n.push(r.remove());return n},e.prototype.initialize=function(t){var i,r,s,o,a,l,u,h,c,p;for(e.__super__.initialize.call(this,t),this.pause(),this.model.initialize_layout(this.model.solver),this.frame=this.mget("frame"),this.x_range=this.frame.get("x_ranges")["default"],this.y_range=this.frame.get("y_ranges")["default"],this.xmapper=this.frame.get("x_mappers")["default"],this.ymapper=this.frame.get("y_mappers")["default"],this.$el.html(this.template()),this.canvas=this.mget("canvas"),this.canvas_view=new this.canvas.default_view({model:this.canvas}),this.$(".bk-plot-canvas-wrapper").append(this.canvas_view.el),this.canvas_view.render(),(this.mget("webgl")||window.location.search.indexOf("webgl=1")&gt;0)&amp;&amp;-1===window.location.search.indexOf("webgl=0")&amp;&amp;this.init_webgl(),this.throttled_render=T.throttle_animation(this.render,15),this.outline_props=new S.Line({obj:this.model,prefix:"outline_"}),this.title_props=new S.Text({obj:this.model,prefix:"title_"}),this.renderers={},this.tools={},this.levels={},a=T.LEVELS,r=0,s=a.length;s&gt;r;r++)o=a[r],this.levels[o]={};this.build_levels(),this.bind_bokeh_events(),this.model.add_constraints(this.canvas.solver),this.listenTo(this.canvas.solver,"layout_update",this.request_render),this.ui_event_bus=new b({tool_manager:this.mget("tool_manager"),hit_area:this.canvas_view.$el}),l=this.tools;for(i in l)h=l[i],this.ui_event_bus.register_tool(h);return c=this.mget("toolbar_location"),null!=c&amp;&amp;(p=".bk-plot-"+c,C.debug("attaching toolbar to "+p+" for plot "+this.model.id),this.tm_view=new y.View({model:this.mget("tool_manager"),el:this.$(p)})),this.update_dataranges(),this.mget("responsive")&amp;&amp;(u=w.throttle(this.resize,100),n(window).on("resize",u),n(this.resize)),this.unpause(),C.debug("PlotView initialized"),this},e.prototype.init_webgl=function(){var t,e;return t=k,null==t&amp;&amp;(k=t=document.createElement("canvas"),e={premultipliedAlpha:!0},t.gl=t.getContext("webgl",e)||t.getContext("experimental-webgl",e)),null!=t.gl?this.canvas_view.ctx.glcanvas=t:C.warn("WebGL is not supported, falling back to 2D canvas.")},e.prototype.update_dataranges=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d,f;i=this.model.get("frame"),e={},l=this.renderers;for(r in l)p=l[r],t=null!=(u=p.glyph)&amp;&amp;"function"==typeof u.bounds?u.bounds():void 0,null!=t&amp;&amp;(e[r]=t);for(h=w.values(i.get("x_ranges")),n=0,o=h.length;o&gt;n;n++)d=h[n],"function"==typeof d.update&amp;&amp;d.update(e,0,this);for(c=w.values(i.get("y_ranges")),s=0,a=c.length;a&gt;s;s++)f=c[s],"function"==typeof f.update&amp;&amp;f.update(e,1,this);return this.range_update_timestamp=Date.now()},e.prototype.map_to_screen=function(t,e,i,n){return null==i&amp;&amp;(i="default"),null==n&amp;&amp;(n="default"),this.frame.map_to_screen(t,e,this.canvas,i,n)},e.prototype.update_range=function(t){var e,i,n,r,s,o;null==t&amp;&amp;(t=this.initial_range_info),this.pause(),i=this.frame.get("x_ranges");for(e in i)o=i[e],(o.get("start")!==t.xrs[e].start||o.get("end")!==t.xrs[e].end)&amp;&amp;(o.set(t.xrs[e]),null!=(n=o.get("callback"))&amp;&amp;n.execute(this.model));r=this.frame.get("y_ranges");for(e in r)o=r[e],(o.get("start")!==t.yrs[e].start||o.get("end")!==t.yrs[e].end)&amp;&amp;(o.set(t.yrs[e]),null!=(s=o.get("callback"))&amp;&amp;s.execute(this.model));return this.unpause()},e.prototype.build_levels=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d;for(l=w.keys(this.renderers),d=x(this.renderers,this.mget("renderers"),this.view_options()),u=w.difference(l,w.pluck(this.mget("renderers"),"id")),e=0,n=u.length;n&gt;e;e++)t=u[e],delete this.levels.glyph[t];for(c=x(this.tools,this.mget("tools"),this.view_options()),i=0,r=d.length;r&gt;i;i++)p=d[i],o=p.mget("level"),this.levels[o][p.model.id]=p,p.bind_bokeh_events();for(a=0,s=c.length;s&gt;a;a++)h=c[a],o=h.mget("level"),this.levels[o][h.model.id]=h,h.bind_bokeh_events();return this},e.prototype.bind_bokeh_events=function(){var t,e,i,n;e=this.mget("frame").get("x_ranges");for(t in e)n=e[t],this.listenTo(n,"change",this.request_render);i=this.mget("frame").get("y_ranges");for(t in i)n=i[t],this.listenTo(n,"change",this.request_render);return this.listenTo(this.model,"change:renderers",this.build_levels),this.listenTo(this.model,"change:tool",this.build_levels),this.listenTo(this.model,"change",this.request_render),this.listenTo(this.model,"destroy",function(t){return function(){return t.remove()}}(this))},e.prototype.set_initial_range=function(){var t,e,i,n,r,s,o;t=!0,s={},i=this.frame.get("x_ranges");for(e in i){if(r=i[e],null==r.get("start")||null==r.get("end")||w.isNaN(r.get("start")+r.get("end"))){t=!1;break}s[e]={start:r.get("start"),end:r.get("end")}}if(t){o={},n=this.frame.get("y_ranges");for(e in n){if(r=n[e],null==r.get("start")||null==r.get("end")||w.isNaN(r.get("start")+r.get("end"))){t=!1;break}o[e]={start:r.get("start"),end:r.get("end")}}}return t?(this.initial_range_info={xrs:s,yrs:o},C.debug("initial ranges set")):C.warn("could not set initial ranges")},e.prototype.render=function(t){var i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,D,T;null==t&amp;&amp;(t=!1),C.trace("Plot.render(force_canvas="+t+")"),Date.now()-this.interactive_timestamp&lt;this.mget("lod_interval")?(this.interactive=!0,f=this.mget("lod_timeout"),setTimeout(function(t){return function(){return t.interactive&amp;&amp;Date.now()-t.interactive_timestamp&gt;f&amp;&amp;(t.interactive=!1),t.request_render()}}(this),f)):this.interactive=!1,T=this.mget("plot_width"),l=this.mget("plot_height"),(this.canvas.get("canvas_width")!==T||this.canvas.get("canvas_height")!==l)&amp;&amp;this.canvas._set_dims([T,l],M=!1),e.__super__.render.call(this),this.canvas_view.render(t),null!=this.tm_view&amp;&amp;this.tm_view.render(),n=this.canvas_view.ctx,s=this.model.get("frame"),i=this.model.get("canvas"),m=this.renderers;for(h in m)D=m[h],null!=D.model.update_layout&amp;&amp;D.model.update_layout(D,this.canvas.solver);_=this.renderers;for(h in _)if(D=_[h],D.set_data_timestamp&gt;(null!=this.range_update_timestamp)){this.update_dataranges();break}if(k=this.mget("title"),k&amp;&amp;(this.title_props.set_value(this.canvas_view.ctx),x=n.measureText(this.mget("title")).ascent+this.model.get("title_standoff"),x!==this.model.title_panel.get("height")&amp;&amp;this.model.title_panel.set("height",x)),this.model.get("frame").set("width",i.get("width")-1),this.model.get("frame").set("height",i.get("height")-1),this.canvas.solver.update_variables(!1),this.model.get("frame")._update_mappers(),o=[this.canvas.vx_to_sx(this.frame.get("left")),this.canvas.vy_to_sy(this.frame.get("top")),this.frame.get("width"),this.frame.get("height")],this._map_hook(n,o),this._paint_empty(n,o),n.glcanvas&amp;&amp;(n.glcanvas.width=this.canvas_view.canvas[0].width,n.glcanvas.height=this.canvas_view.canvas[0].height,a=n.glcanvas.gl,a.viewport(0,0,n.glcanvas.width,n.glcanvas.height),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT||a.DEPTH_BUFFER_BIT),a.enable(a.SCISSOR_TEST),r=n.glcanvas.height-(o[1]+o[3]),a.scissor(o[0],r,o[2],o[3]),a.enable(a.BLEND),a.blendFuncSeparate(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA,a.ONE_MINUS_DST_ALPHA,a.ONE)),this.outline_props.do_stroke&amp;&amp;(this.outline_props.set_value(n),n.strokeRect.apply(n,o)),this._render_levels(n,["image","underlay","glyph","annotation"],o),n.glcanvas){for(v=["image","mozImage","webkitImage","msImage"],u=0,p=v.length;p&gt;u;u++)g=v[u],n[g+"SmoothingEnabled"]=!1;for(n.drawImage(n.glcanvas,.1,.1),y=["image","mozImage","webkitImage","msImage"],c=0,d=y.length;d&gt;c;c++)g=y[c],n[g+"SmoothingEnabled"]=!0;C.debug("drawing with WebGL")}return this._render_levels(n,["overlay","tool"]),k&amp;&amp;(b=this.canvas.vx_to_sx(this.canvas.get("width")/2),w=this.canvas.vy_to_sy(this.model.title_panel.get("bottom")+this.model.get("title_standoff")),this.title_props.set_value(n),n.fillText(k,b,w)),null==this.initial_range_info?this.set_initial_range():void 0},e.prototype.resize=function(){var t,e,i,n,r,s;return e=this.canvas.get("height"),i=this.canvas.get("width"),t=i/e,n=this.mget("min_size"),s=Math.max(this.el.clientWidth,n),r=parseInt(s/t),n&gt;r&amp;&amp;(r=100,s=r*t),this.canvas._set_dims([s,r]),null},e.prototype._render_levels=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m;for(t.save(),null!=i&amp;&amp;(t.beginPath(),t.rect.apply(t,i),t.clip(),t.beginPath()),r={},p=this.mget("renderers"),n=s=0,a=p.length;a&gt;s;n=++s)d=p[n],r[d.id]=n;for(m=function(t){return r[t.model.id]},o=0,l=e.length;l&gt;o;o++)for(h=e[o],g=w.sortBy(w.values(this.levels[h]),m),c=0,u=g.length;u&gt;c;c++)f=g[c],f.render();return t.restore()},e.prototype._map_hook=function(t,e){},e.prototype._paint_empty=function(t,e){return t.fillStyle=this.mget("border_fill"),t.fillRect(0,0,this.canvas_view.mget("canvas_width"),this.canvas_view.mget("canvas_height")),t.fillStyle=this.mget("background_fill"),t.fillRect.apply(t,e)},e}(l),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return P(e,t),e.prototype.type="Plot",e.prototype.default_view=_,e.prototype.initialize=function(t,i){var n,r,o,a,l,u,h,c,p,d,f,g,m,_,b;for(e.__super__.initialize.call(this,t,i),d=w.values(this.get("extra_x_ranges")).concat(this.get("x_range")),r=0,a=d.length;a&gt;r;r++)_=d[r],_=this.resolve_ref(_),c=_.get("plots"),w.isArray(c)&amp;&amp;(c=c.concat(this),_.set("plots",c));for(f=w.values(this.get("extra_y_ranges")).concat(this.get("y_range")),o=0,l=f.length;l&gt;o;o++)b=f[o],b=this.resolve_ref(b),c=b.get("plots"),w.isArray(c)&amp;&amp;(c=c.concat(this),b.set("plots",c));for(n=new s.Model({map:null!=(g=this.use_map)?g:!1,canvas_width:this.get("plot_width"),canvas_height:this.get("plot_height"),hidpi:this.get("hidpi"),solver:new v}),this.set("canvas",n),this.solver=n.get("solver"),m=this.get("renderers"),h=0,u=m.length;u&gt;h;h++)p=m[h],p.set("parent",this);return this.set("tool_manager",new y.Model({tools:this.get("tools"),toolbar_location:this.get("toolbar_location"),logo:this.get("logo")})),C.debug("Plot initialized")},e.prototype.initialize_layout=function(t){var e,i,n;return e=this.get("canvas"),n=new o.Model({x_range:this.get("x_range"),extra_x_ranges:this.get("extra_x_ranges"),x_mapper_type:this.get("x_mapper_type"),y_range:this.get("y_range"),extra_y_ranges:this.get("extra_y_ranges"),y_mapper_type:this.get("y_mapper_type"),solver:t}),this.set("frame",n),this.title_panel=new d.Model({solver:t}),this.title_panel._anchor=this.title_panel._bottom,i=this.get("above"),i.push(this.title_panel),this.set("above",i)},e.prototype.add_constraints=function(t){var e,i,n,r,s,o,l,p,g;return s=null!=(o=this.get("min_border_top"))?o:this.get("min_border"),i=null!=(l=this.get("min_border_bottom"))?l:this.get("min_border"),n=null!=(p=this.get("min_border_left"))?p:this.get("min_border"),r=null!=(g=this.get("min_border_right"))?g:this.get("min_border"),e=function(t){return function(e,i,n,r,s,o){var l,p,f,g,m,_,v,y,b,w,x,k;for(g=t.get("canvas"),_=t.get("frame"),l=new d.Model({solver:e}),p="_"+r[0],f="_"+r[1],e.add_constraint(new a(new h(l["_"+s],-i),c),M.Strength.strong),e.add_constraint(new a(new h(_[p],[-1,l[f]]),u)),e.add_constraint(new a(new h(l[p],[-1,g[p]]),u)),y=_,m=t.get(n),v=0,b=m.length;b&gt;v;v++)x=m[v],(null!=(k=x.get("location"))?k:!0)&amp;&amp;x.set("location",n,{silent:!0}),null!=x.initialize_layout&amp;&amp;x.initialize_layout(e),e.add_constraint(new a(new h(y[p],[-1,x[f]]),u),M.Strength.strong),y=x;return w=new d.Model({solver:e}),e.add_constraint(new a(new h(y[p],[-1,w[f]]),u),M.Strength.strong),e.add_constraint(new a(new h(w[p],[-1,g[p]]),u),M.Strength.strong)}}(this),e(t,s,"above",["top","bottom"],"height",f),e(t,i,"below",["bottom","top"],"height",c),e(t,n,"left",["left","right"],"width",c),e(t,r,"right",["right","left"],"width",f)},e.prototype.add_renderers=function(t){var e;return e=this.get("renderers"),e=e.concat(t),this.set("renderers",e)},e.prototype.parent_properties=["background_fill","border_fill","min_border","min_border_top","min_border_bottom","min_border_left","min_border_right"],e.prototype.defaults=function(){return w.extend({},e.__super__.defaults.call(this),{renderers:[],tools:[],h_symmetry:!0,v_symmetry:!1,x_mapper_type:"auto",y_mapper_type:"auto",plot_width:600,plot_height:600,title:"",above:[],below:[],left:[],right:[],toolbar_location:"above",logo:"normal",lod_factor:10,lod_interval:300,lod_threshold:2e3,lod_timeout:500,webgl:!1,responsive:!1,min_size:100})},e.prototype.display_defaults=function(){return w.extend({},e.__super__.display_defaults.call(this),{hidpi:!0,background_fill:"#fff",border_fill:"#fff",min_border:40,title_standoff:8,title_text_font:"helvetica",title_text_font_size:"20pt",title_text_font_style:"normal",title_text_color:"#444444",title_text_alpha:1,title_text_align:"center",title_text_baseline:"alphabetic",outline_line_color:"#aaaaaa",outline_line_width:1,outline_line_alpha:1,outline_line_join:"miter",outline_line_cap:"butt",outline_line_dash:[],outline_line_dash_offset:0})},e}(p),e.exports={Model:m,View:_}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./build_views":101,"./canvas":103,"./cartesian_frame":105,"./continuum_view":109,"./has_parent":114,"./layout_box":117,"./logging":119,"./plot_template":123,"./plot_utils":124,"./properties":126,"./solver":131,"./tool_manager":135,"./ui_events":137,backbone:2,jquery:18,kiwi:303,underscore:92}],122:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),l=t("underscore"),u=t("./build_views"),s=t("./has_parent"),r=t("./continuum_view"),a=function(t){function e(){return this.removeplot=h(this.removeplot,this),this.closeall=h(this.closeall,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t){return this.views={},this.child_models=[],e.__super__.initialize.call(this,t),this.render()},e.prototype.delegateEvents=function(){return this.listenTo(this.model,"destroy",this.remove),this.listenTo(this.model,"change",this.render),e.__super__.delegateEvents.call(this)},e.prototype.build_children=function(){var t;return t=u(this.views,this.mget("children"),{}),window.pc_created_views=t,window.pc_views=this.views,null},e.prototype.size_textarea=function(t){var e;return e=n(t).height(0).prop("scrollHeight"),n(t).height(e)},e.prototype.closeall=function(t){return this.mset("children",[]),this.model.save()},e.prototype.removeplot=function(t){var e,i,r,s,o;return i=parseInt(n(t.currentTarget).parent().attr("data-plot_num")),r=this.mget("children")[i],s=this.views[r.get("id")],s.remove(),e=function(){var t,e,i,n;for(i=this.mget("children"),n=[],t=0,e=i.length;e&gt;t;t++)o=i[t],o.id!==s.model.id&amp;&amp;n.push(o);return n}.call(this),this.mset("children",e),this.model.save(),!1},e.prototype.render=function(){var t,i,r,s,o,a,u,h,c,d,f,g,m;e.__super__.render.call(this),this.build_children(),h=this.views;for(r in h)p.call(h,r)&amp;&amp;(g=h[r],g.$el.detach());for(this.$el.html(""),u=l.keys(this.views).length,f=[],d={},c=this.mget("children"),i=t=0,s=c.length;s&gt;t;i=++t)o=c[i],m=this.views[o.id],a=n("&lt;div class='jsp' data-plot_num='"+i+"'&gt;&lt;/div&gt;"),this.$el.append(a),a.append(m.el);return l.defer(function(t){return function(){var e,i,r,s,o;for(r=t.$el.find(".plottitle"),s=[],e=0,i=r.length;i&gt;e;e++)o=r[e],s.push(t.size_textarea(n(o)));return s}}(this)),null},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="PlotContext",e.prototype.default_view=a,e.prototype.url=function(){return e.__super__.url.call(this)},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{children:[]})},e}(s),e.exports={Model:o,View:a}},{"./build_views":101,"./continuum_view":109,"./has_parent":114,jquery:18,underscore:92}],123:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push("&lt;div class='bk-plot-wrapper'&gt;\n	&lt;table&gt;\n		&lt;tr&gt;\n			&lt;td&gt;&lt;/td&gt;\n			&lt;td class='bk-plot-above'&gt;&lt;/td&gt;\n			&lt;td&gt;&lt;/td&gt;\n		&lt;/tr&gt;\n		&lt;tr&gt;\n			&lt;td class=\"bk-plot-left\"&gt;&lt;/td&gt;\n			&lt;td class='bk-plot-canvas-wrapper'&gt;&lt;/td&gt;\n			&lt;td class=\"bk-plot-right\"&gt;&lt;/td&gt;\n		&lt;/tr&gt;\n		&lt;tr&gt;\n			&lt;td&gt;&lt;/td&gt;\n			&lt;td class='bk-plot-below'&gt;&lt;/td&gt;\n			&lt;td&gt;&lt;/td&gt;\n		&lt;/tr&gt;\n	&lt;/table&gt;\n&lt;/div&gt;\n")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],124:[function(t,e,i){var n,r,s,o;n=["image","underlay","glyph","overlay","annotation","tool"],r=function(t){return t()},s=("undefined"!=typeof window&amp;&amp;null!==window?window.requestAnimationFrame:void 0)||("undefined"!=typeof window&amp;&amp;null!==window?window.mozRequestAnimationFrame:void 0)||("undefined"!=typeof window&amp;&amp;null!==window?window.webkitRequestAnimationFrame:void 0)||("undefined"!=typeof window&amp;&amp;null!==window?window.msRequestAnimationFrame:void 0)||r,o=function(t,e){var i,n,r,o,a,l,u,h;return l=[null,null,null,null],n=l[0],i=l[1],h=l[2],u=l[3],a=0,o=!1,r=function(){return a=new Date,h=null,o=!1,u=t.apply(n,i)},function(){var t,l;return t=new Date,l=e-(t-a),n=this,i=arguments,0&gt;=l&amp;&amp;!o?(clearTimeout(h),o=!0,s(r)):h||(h=setTimeout(function(){return s(r)},l)),u}},e.exports={LEVELS:n,throttle_animation:o}},{}],125:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("./continuum_view"),r=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return s(i,t),i.prototype.tagName="div",i.prototype.initialize=function(t){return this.plot_model=t.plot_model,this.plot_view=t.plot_view},i.prototype.bind_bokeh_events=function(){},i.prototype.request_render=function(){return this.plot_view.request_render()},e.exports=i,i}(n)},{"./continuum_view":109}],126:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D=function(t,e){function i(){this.constructor=t}for(var n in e)T.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},T={}.hasOwnProperty,S=[].indexOf||function(t){for(var e=0,i=this.length;i&gt;e;e++)if(e in this&amp;&amp;this[e]===t)return e;return-1};y=t("underscore"),d=t("./has_properties"),M=t("./svg_colors"),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.obj=this.get("obj"),this.attr=this.get("attr"),this.listenTo(this.obj,"change:"+this.attr,function(){return this._init(),this.obj.trigger("propchange")}),this._init()},e.prototype._init=function(){var t;if(t=this.obj.get(this.attr),y.isObject(t)&amp;&amp;!y.isArray(t))if(this.spec=t,y.isUndefined(this.spec.value)){if(null==this.spec.field)throw new Error("spec for property '"+attr+"' needs one of 'value' or 'field'");this.field=this.spec.field}else this.fixed_value=this.spec.value;else this.fixed_value=t;if(null!=this.field&amp;&amp;!y.isString(this.field))throw new Error("field value for property '"+attr+"' is not a string");return null!=this.fixed_value?this.validate(this.fixed_value,this.attr):void 0},e.prototype.value=function(){var t;return t=null!=this.fixed_value?this.fixed_value:NaN,this.transform([t])[0]},e.prototype.array=function(t){var e,i,n,r;return e=t.get("data"),null!=this.field&amp;&amp;this.field in e?this.transform(t.get_column(this.field)):(n=t.get_length(),null==n&amp;&amp;(n=1),r=this.value(),function(){var t,e,s;for(s=[],i=t=0,e=n;e&gt;=0?e&gt;t:t&gt;e;i=e&gt;=0?++t:--t)s.push(r);return s}())},e.prototype.transform=function(t){return t},e.prototype.validate=function(t,e){return!0},e}(d),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isNumber(t))throw new Error("numeric property '"+e+"' given invalid value: "+t);return!0},e.prototype.transform=function(t){var e,i,n,r;for(r=new Float64Array(t.length),e=i=0,n=t.length;n&gt;=0?n&gt;i:i&gt;n;e=n&gt;=0?++i:--i)r[e]=t[e];return r},e}(m),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r,s,o,a;if(e.__super__.initialize.call(this,t,i),r=this.get("obj"),n=this.get("attr"),this.units=null!=(s=null!=(o=null!=(a=this.spec)?a.units:void 0)?o:r.get(n+"_units"))?s:"rad","deg"!==this.units&amp;&amp;"rad"!==this.units)throw new Error("Angle units must be one of 'deg' or 'rad', given invalid value: "+this.units)},e.prototype.transform=function(t){var i;return"deg"===this.units&amp;&amp;(t=function(){var e,n,r;for(r=[],e=0,n=t.length;n&gt;e;e++)i=t[e],r.push(i*Math.PI/180);return r}()),t=function(){var e,n,r;for(r=[],e=0,n=t.length;n&gt;e;e++)i=t[e],r.push(-i);return r}(),e.__super__.transform.call(this,t)},e}(g),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r,s,o,a;if(e.__super__.initialize.call(this,t,i),r=this.get("obj"),n=this.get("attr"),this.units=null!=(s=null!=(o=null!=(a=this.spec)?a.units:void 0)?o:r.get(n+"_units"))?s:"data","data"!==this.units&amp;&amp;"screen"!==this.units)throw new Error("Distance units must be one of 'data' or 'screen', given invalid value: "+this.units)},e}(g),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isArray(t))throw new Error("array property '"+e+"' given invalid value: "+t);return!0},e}(m),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isBoolean(t))throw new Error("boolean property '"+e+"' given invalid value: "+t);return!0},e}(m),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isNumber(t)&amp;&amp;!y.isString(t))throw new Error("coordinate property '"+e+"' given invalid value: "+t);return!0},e}(m),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(null==M[t.toLowerCase()]&amp;&amp;"#"!==t.substring(0,1)&amp;&amp;!this.valid_rgb(t))throw new Error("color property '"+e+"' given invalid value: "+t);return!0},e.prototype.valid_rgb=function(t){var e,i,n,r;switch(t.substring(0,4)){case"rgba":i={start:"rgba(",len:4,alpha:!0};break;case"rgb(":i={start:"rgb(",len:3,alpha:!1};break;default:return!1}if(new RegExp(".*?(\\.).*(,)").test(t))throw new Error("color expects integers for rgb in rgb/rgba tuple, received "+t);if(e=t.replace(i.start,"").replace(")","").split(",").map(parseFloat),e.length!==i.len)throw new Error("color expects rgba "+expect_len+"-tuple, received "+t);if(i.alpha&amp;&amp;!(0&lt;=(n=e[3])&amp;&amp;1&gt;=n))throw new Error("color expects rgba 4-tuple to have alpha value between 0 and 1");if(S.call(function(){var t,i,n,s;for(n=e.slice(0,3),s=[],t=0,i=n.length;i&gt;t;t++)r=n[t],s.push(r&gt;=0&amp;&amp;255&gt;=r);return s}(),!1)&gt;=0)throw new Error("color expects rgb to have value between 0 and 255");return!0},e}(m),_=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isString(t))throw new Error("string property '"+e+"' given invalid value: "+t);return!0},e}(m),c=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return this.levels=t.values.split(" "),e.__super__.initialize.call(this,t,i)},e.prototype.validate=function(t,e){if(S.call(this.levels,t)&lt;0)throw new Error("enum property '"+e+"' given invalid value: "+t+", valid values are: "+this.levels);return!0},e}(m),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return t.values="anticlock clock",e.__super__.initialize.call(this,t,i)},e.prototype.transform=function(t){var e,i,n,r;for(r=new Uint8Array(t.length),e=i=0,n=t.length;n&gt;=0?n&gt;i:i&gt;n;e=n&gt;=0?++i:--i)switch(t[e]){case"clock":r[e]=!1;break;case"anticlock":r[e]=!0}return r},e}(c),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return this.cache={},e.__super__.initialize.call(this,t,i)},e.prototype.warm_cache=function(t,e){var i,n,r,s,o;for(o=[],n=0,r=e.length;r&gt;n;n++)i=e[n],s=this[i],null!=s.fixed_value?o.push(this.cache[i]=s.fixed_value):o.push(this.cache[i+"_array"]=s.array(t));return o},e.prototype.cache_select=function(t,e){var i;return i=this[t],null!=i.fixed_value?this.cache[t]=i.fixed_value:this.cache[t]=this.cache[t+"_array"][e]},e}(d),f=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,s;return e.__super__.initialize.call(this,t,i),n=this.get("obj"),s=this.get("prefix"),this.color=new o({obj:n,attr:s+"line_color"}),this.width=new g({obj:n,attr:s+"line_width"}),this.alpha=new g({obj:n,attr:s+"line_alpha"}),this.join=new c({obj:n,attr:s+"line_join",values:"miter round bevel"}),this.cap=new c({obj:n,attr:s+"line_cap",values:"butt round square"}),this.dash=new r({obj:n,attr:s+"line_dash"}),this.dash_offset=new g({obj:n,attr:s+"line_dash_offset"}),this.do_stroke=!0,!y.isUndefined(this.color.fixed_value)&amp;&amp;y.isNull(this.color.fixed_value)?this.do_stroke=!1:void 0},e.prototype.warm_cache=function(t){return e.__super__.warm_cache.call(this,t,["color","width","alpha","join","cap","dash","dash_offset"])},e.prototype.set_value=function(t){return t.strokeStyle=this.color.value(),t.globalAlpha=this.alpha.value(),t.lineWidth=this.width.value(),t.lineJoin=this.join.value(),t.lineCap=this.cap.value(),t.setLineDash(this.dash.value()),t.setLineDashOffset(this.dash_offset.value())},e.prototype.set_vectorize=function(t,e){return this.cache_select("color",e),t.strokeStyle!==this.cache.fill&amp;&amp;(t.strokeStyle=this.cache.color),this.cache_select("alpha",e),t.globalAlpha!==this.cache.alpha&amp;&amp;(t.globalAlpha=this.cache.alpha),this.cache_select("width",e),t.lineWidth!==this.cache.width&amp;&amp;(t.lineWidth=this.cache.width),this.cache_select("join",e),t.lineJoin!==this.cache.join&amp;&amp;(t.lineJoin=this.cache.join),this.cache_select("cap",e),t.lineCap!==this.cache.cap&amp;&amp;(t.lineCap=this.cache.cap),this.cache_select("dash",e),t.getLineDash()!==this.cache.dash&amp;&amp;t.setLineDash(this.cache.dash),this.cache_select("dash_offset",e),t.getLineDashOffset()!==this.cache.dash_offset?t.setLineDashOffset(this.cache.dash_offset):void 0},e}(a),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),n=this.get("obj"),r=this.get("prefix"),this.color=new o({obj:n,attr:r+"fill_color"}),this.alpha=new g({obj:n,attr:r+"fill_alpha"}),this.do_fill=!0,!y.isUndefined(this.color.fixed_value)&amp;&amp;y.isNull(this.color.fixed_value)?this.do_fill=!1:void 0},e.prototype.warm_cache=function(t){return e.__super__.warm_cache.call(this,t,["color","alpha"])},e.prototype.set_value=function(t){return t.fillStyle=this.color.value(),t.globalAlpha=this.alpha.value()},e.prototype.set_vectorize=function(t,e){return this.cache_select("color",e),t.fillStyle!==this.cache.fill&amp;&amp;(t.fillStyle=this.cache.color),this.cache_select("alpha",e),t.globalAlpha!==this.cache.alpha?t.globalAlpha=this.cache.alpha:void 0},e}(a),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),n=this.get("obj"),r=this.get("prefix"),this.font=new _({obj:n,attr:r+"text_font"}),this.font_size=new _({obj:n,attr:r+"text_font_size"}),this.font_style=new c({obj:n,attr:r+"text_font_style",values:"normal italic bold"}),this.color=new o({obj:n,attr:r+"text_color"}),this.alpha=new g({obj:n,attr:r+"text_alpha"}),this.align=new c({obj:n,attr:r+"text_align",values:"left right center"}),this.baseline=new c({obj:n,attr:r+"text_baseline",values:"top middle bottom alphabetic hanging"})},e.prototype.warm_cache=function(t){return e.__super__.warm_cache.call(this,t,["font","font_size","font_style","color","alpha","align","baseline"])},e.prototype.cache_select=function(t,i){var n;return"font"===t?(n=e.__super__.cache_select.call(this,"font_style",i)+" "+e.__super__.cache_select.call(this,"font_size",i)+" "+e.__super__.cache_select.call(this,"font",i),this.cache.font=n):e.__super__.cache_select.call(this,t,i)},e.prototype.font_value=function(){var t,e,i;return t=this.font.value(),e=this.font_size.value(),i=this.font_style.value(),i+" "+e+" "+t},e.prototype.set_value=function(t){return t.font=this.font_value(),t.fillStyle=this.color.value(),t.globalAlpha=this.alpha.value(),t.textAlign=this.align.value(),t.textBaseline=this.baseline.value()},e.prototype.set_vectorize=function(t,e){return this.cache_select("font",e),t.font!==this.cache.font&amp;&amp;(t.font=this.cache.font),this.cache_select("color",e),t.fillStyle!==this.cache.color&amp;&amp;(t.fillStyle=this.cache.color),this.cache_select("alpha",e),t.globalAlpha!==this.cache.alpha&amp;&amp;(t.globalAlpha=this.cache.alpha),this.cache_select("align",e),t.textAlign!==this.cache.align&amp;&amp;(t.textAlign=this.cache.align),this.cache_select("baseline",e),t.textBaseline!==this.cache.baseline?t.textBaseline=this.cache.baseline:void 0},e}(a),b=function(t,e){var i,r,s,o,a;for(null==e&amp;&amp;(e="angles"),a={},o=t[e],r=0,s=o.length;s&gt;r;r++)i=o[r],a[i]=new n({obj:t,attr:i});return a},w=function(t,e){var i,n,r,s,o,a,u;for(null==e&amp;&amp;(e="coords"),o={},r=t[e],i=0,n=r.length;n&gt;i;i++)s=r[i],a=s[0],u=s[1],o[a]=new l({obj:t,attr:a}),o[u]=new l({obj:t,attr:u});return o},x=function(t,e){var i,n,r,s,o;for(null==e&amp;&amp;(e="distances"),o={},s=t[e],n=0,r=s.length;r&gt;n;n++)i=s[n],("?"!==i[0]||(i=i.slice(1),null!=t.get(i)))&amp;&amp;(o[i]=new h({obj:t,attr:i}));return o},k=function(t,e){var i,n,a,l,h,p,d,f;for(null==e&amp;&amp;(e="fields"),d={},h=t[e],a=0,l=h.length;l&gt;a;a++)if(n=h[a],f="number",n.indexOf(":")&gt;-1&amp;&amp;(p=n.split(":"),n=p[0],f=p[1],i=p[2]),"?"!==n[0]||(n=n.slice(1),null!=t.attributes[n]))switch(f){case"array":d[n]=new r({obj:t,attr:n});break;case"bool":d[n]=new s({obj:t,attr:n});break;case"color":d[n]=new o({obj:t,attr:n});break;case"direction":d[n]=new u({obj:t,attr:n});break;case"enum":d[n]=new c({obj:t,attr:n,values:i});break;case"number":d[n]=new g({obj:t,attr:n});break;case"string":d[n]=new _({obj:t,attr:n})}return d},C=function(t,e){var i,n,r,s,o,a,l,u;for(null==e&amp;&amp;(e="visuals"),u={},a=t[e],i=0,n=a.length;n&gt;i;i++)switch(o=a[i],s="",o.indexOf(":")&gt;-1&amp;&amp;(l=o.split(":"),o=l[0],s=l[1]),r=""+s+o,o){case"line":u[r]=new f({obj:t,prefix:s});break;case"fill":u[r]=new p({obj:t,prefix:s});break;case"text":u[r]=new v({obj:t,prefix:s})}return u},e.exports={Angle:n,Array:r,Bool:s,Color:o,Coord:l,Direction:u,Distance:h,Enum:c,Numeric:g,Property:m,String:_,Line:f,Fill:p,
        Text:v,factories:{coords:w,distances:x,angles:b,fields:k,visuals:C}}},{"./has_properties":115,"./svg_colors":132,underscore:92}],127:[function(t,e,i){var n;n=function(){function t(t){var e;this.seed=t,this.multiplier=1664525,this.modulo=4294967296,this.offset=1013904223,null!=this.seed&amp;&amp;0&lt;=(e=this.seed)&amp;&amp;e&lt;this.modulo||(this.seed=(new Date).valueOf()*(new Date).getMilliseconds()%this.modulo)}return t.prototype.seed=function(t){return this.seed=t},t.prototype.randn=function(){return this.seed=(this.multiplier*this.seed+this.offset)%this.modulo},t.prototype.randf=function(){return this.randn()/this.modulo},t.prototype.rand=function(t){return Math.floor(this.randf()*t)},t.prototype.rand2=function(t,e){return t+this.rand(e-t)},t}(),e.exports=n},{}],128:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),n=t("./has_properties"),l=t("./logging").logger,s=t("./selector"),a=t("./hittest"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="SelectionManager",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.selectors={}},e.prototype.set_selection=function(t){var e;return this._save_indices(t),e=this.get("source"),e.trigger("select")},e.prototype.select=function(t,e,i,n,r){var s,o,a;return null==r&amp;&amp;(r=!1),a=this.get("source"),a!==e.mget("data_source")&amp;&amp;l.warn("select called with mis-matched data sources"),s=e.hit_test(i),s?(o=this._get_selector(e),o.update(s,n,r),this._save_indices(o.get("indices")),a.trigger("select"),a.trigger("select-"+e.mget("id"))):void 0},e.prototype.inspect=function(t,e,i,n){var r,s;return s=this.get("source"),s!==e.mget("data_source")&amp;&amp;l.warn("inspect called with mis-matched data sources"),r=e.hit_test(i),null!=r?(s.trigger("inspect",r,t,e,s,n),s.trigger("inspect"+e.mget("id"),r,t,e,s,n)):void 0},e.prototype.clear=function(t){var e,i,n,r;if(null!=t)r=this._get_selector(t),r.clear();else{i=this.selectors;for(e in i)n=i[e],n.clear()}return this._save_indices(a.create_hit_test_result())},e.prototype._get_selector=function(t){return o.setdefault(this.selectors,t.model.id,new s),this.selectors[t.model.id]},e.prototype._save_indices=function(t){return this.get("source").save({selected:t},{patch:!0})},e}(n),e.exports=r},{"./has_properties":115,"./hittest":116,"./logging":119,"./selector":129,underscore:92}],129:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t("underscore"),n=t("./has_properties"),o=t("./hittest"),a=t("./logging").logger,r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="Selector",e.prototype.update=function(t,e,i){return this.set("timestamp",new Date),this.set("final",e),i&amp;&amp;(t["0d"].indices=s.union(this.get("indices")["0d"].indices,t["0d"].indices),t["0d"].flag=this.get("indices")["0d"].flag||t["0d"].flag,t["1d"].indices=s.union(this.get("indices")["1d"].indices,t["1d"].indices),t["2d"].indices=s.union(this.get("indices")["2d"].indices,t["2d"].indices)),this.set("indices",t)},e.prototype.clear=function(){return this.set("timestamp",new Date),this.set("final",!0),this.set("indices",o.create_hit_test_result())},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{indices:o.create_hit_test_result()})},e}(n),e.exports=r},{"./has_properties":115,"./hittest":116,"./logging":119,underscore:92}],130:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){return function(){return t.apply(e,arguments)}};n=t("jquery"),a=t("underscore"),r=t("backbone"),s=t("./base").Config,l=t("./load_models"),u=t("./logging").logger,o=function(){function t(t){this.onmessage=c(this.onmessage,this);var e;this.auth={},this.ws_conn_string=t,this._connected=n.Deferred(),this.connected=this._connected.promise();try{window.MozWebSocket?this.s=new MozWebSocket(t):this.s=new WebSocket(t)}catch(i){e=i,u.error("websocket creation failed for connection string: "+t),u.error(" - "+e)}this.s.onopen=function(t){return function(){return t._connected.resolve()}}(this),this.s.onmessage=this.onmessage}return a.extend(t.prototype,r.Events),t.prototype.onmessage=function(t){var e,i,n;return e=t.data,i=e.indexOf(":"),i=e.indexOf(":",i+1),n=e.substring(0,i),e=e.substring(i+1),this.trigger("msg:"+n,e),null},t.prototype.send=function(t){return n.when(this.connected).done(function(e){return function(){return e.s.send(t)}}(this))},t.prototype.subscribe=function(t,e){var i;return this.auth[t]=e,i=JSON.stringify({msgtype:"subscribe",topic:t,auth:e}),this.send(i)},t}(),h=function(t,e,i){return t.subscribe(e,i),t.on("msg:"+e,function(t){var e,i,r,o,a,u,h;if(a=JSON.parse(t),"modelpush"===a.msgtype)l(a.modelspecs);else if("modeldel"===a.msgtype)for(h=a.modelspecs,i=0,r=h.length;r&gt;i;i++)u=h[i],o=resolve_ref(u.type,u.id),o&amp;&amp;o.destroy({local:!0});else"status"===a.msgtype&amp;&amp;"subscribesuccess"===a.status[0]?(e=a.status[2],s.clientid=e,n.ajaxSetup({headers:{"Continuum-Clientid":e}})):log.warn("unknown msgtype '"+a.msgtype+"' for message: "+a);return null})},e.exports={WebSocketWrapper:o,submodels:h}},{"./base":99,"./load_models":118,"./logging":119,backbone:2,jquery:18,underscore:92}],131:[function(t,e,i){(function(i){var n,r,s,o;s=t("underscore"),n=t("backbone"),o=null!=i._bokehTest?i._bokehTest.kiwi:t("kiwi"),r=function(){function t(){this.solver=new o.Solver}return t.prototype.update_variables=function(t){return null==t&amp;&amp;(t=!0),this.solver.updateVariables(),t?this.trigger("layout_update"):void 0},t.prototype.add_constraint=function(t){return this.solver.addConstraint(t)},t.prototype.remove_constraint=function(t){return this.solver.removeConstraint(t)},t.prototype.add_edit_variable=function(t,e){return null==e&amp;&amp;(e=o.Strength.strong),this.solver.addEditVariable(t,e)},t.prototype.suggest_value=function(t,e){return this.solver.suggestValue(t,e)},t}(),s.extend(r.prototype,n.Events),e.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{backbone:2,kiwi:303,underscore:92}],132:[function(t,e,i){e.exports={indianred:"#CD5C5C",lightcoral:"#F08080",salmon:"#FA8072",darksalmon:"#E9967A",lightsalmon:"#FFA07A",crimson:"#DC143C",red:"#FF0000",firebrick:"#B22222",darkred:"#8B0000",pink:"#FFC0CB",lightpink:"#FFB6C1",hotpink:"#FF69B4",deeppink:"#FF1493",mediumvioletred:"#C71585",palevioletred:"#DB7093",coral:"#FF7F50",tomato:"#FF6347",orangered:"#FF4500",darkorange:"#FF8C00",orange:"#FFA500",gold:"#FFD700",yellow:"#FFFF00",lightyellow:"#FFFFE0",lemonchiffon:"#FFFACD",lightgoldenrodyellow:"#FAFAD2",papayawhip:"#FFEFD5",moccasin:"#FFE4B5",peachpuff:"#FFDAB9",palegoldenrod:"#EEE8AA",khaki:"#F0E68C",darkkhaki:"#BDB76B",lavender:"#E6E6FA",thistle:"#D8BFD8",plum:"#DDA0DD",violet:"#EE82EE",orchid:"#DA70D6",fuchsia:"#FF00FF",magenta:"#FF00FF",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",blueviolet:"#8A2BE2",darkviolet:"#9400D3",darkorchid:"#9932CC",darkmagenta:"#8B008B",purple:"#800080",indigo:"#4B0082",slateblue:"#6A5ACD",darkslateblue:"#483D8B",mediumslateblue:"#7B68EE",greenyellow:"#ADFF2F",chartreuse:"#7FFF00",lawngreen:"#7CFC00",lime:"#00FF00",limegreen:"#32CD32",palegreen:"#98FB98",lightgreen:"#90EE90",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",mediumseagreen:"#3CB371",seagreen:"#2E8B57",forestgreen:"#228B22",green:"#008000",darkgreen:"#006400",yellowgreen:"#9ACD32",olivedrab:"#6B8E23",olive:"#808000",darkolivegreen:"#556B2F",mediumaquamarine:"#66CDAA",darkseagreen:"#8FBC8F",lightseagreen:"#20B2AA",darkcyan:"#008B8B",teal:"#008080",aqua:"#00FFFF",cyan:"#00FFFF",lightcyan:"#E0FFFF",paleturquoise:"#AFEEEE",aquamarine:"#7FFFD4",turquoise:"#40E0D0",mediumturquoise:"#48D1CC",darkturquoise:"#00CED1",cadetblue:"#5F9EA0",steelblue:"#4682B4",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",lightblue:"#ADD8E6",skyblue:"#87CEEB",lightskyblue:"#87CEFA",deepskyblue:"#00BFFF",dodgerblue:"#1E90FF",cornflowerblue:"#6495ED",royalblue:"#4169E1",blue:"#0000FF",mediumblue:"#0000CD",darkblue:"#00008B",navy:"#000080",midnightblue:"#191970",cornsilk:"#FFF8DC",blanchedalmond:"#FFEBCD",bisque:"#FFE4C4",navajowhite:"#FFDEAD",wheat:"#F5DEB3",burlywood:"#DEB887",tan:"#D2B48C",rosybrown:"#BC8F8F",sandybrown:"#F4A460",goldenrod:"#DAA520",darkgoldenrod:"#B8860B",peru:"#CD853F",chocolate:"#D2691E",saddlebrown:"#8B4513",sienna:"#A0522D",brown:"#A52A2A",maroon:"#800000",white:"#FFFFFF",snow:"#FFFAFA",honeydew:"#F0FFF0",mintcream:"#F5FFFA",azure:"#F0FFFF",aliceblue:"#F0F8FF",ghostwhite:"#F8F8FF",whitesmoke:"#F5F5F5",seashell:"#FFF5EE",beige:"#F5F5DC",oldlace:"#FDF5E6",floralwhite:"#FFFAF0",ivory:"#FFFFF0",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lavenderblush:"#FFF0F5",mistyrose:"#FFE4E1",gainsboro:"#DCDCDC",lightgrey:"#D3D3D3",silver:"#C0C0C0",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",gray:"#808080",grey:"#808080",dimgray:"#696969",dimgrey:"#696969",lightslategray:"#778899",lightslategrey:"#778899",slategray:"#708090",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",black:"#000000"}},{}],133:[function(t,e,i){var n,r,s;n=t("jquery"),r={},s=function(t){var e,i,s,o,a;if(null!=r[t])return r[t];a=n("&lt;span&gt;Hg&lt;/span&gt;").css({font:t}),e=n('&lt;div style="display: inline-block; width: 1px; height: 0px;"&gt; &lt;/div&gt;'),s=n("&lt;div&gt;&lt;/div&gt;"),s.append(a,e),i=n("body"),i.append(s);try{o={},e.css({verticalAlign:"baseline"}),o.ascent=e.offset().top-a.offset().top,e.css({verticalAlign:"bottom"}),o.height=e.offset().top-a.offset().top,o.descent=o.height-o.ascent}finally{s.remove()}return r[t]=o,o},e.exports={getTextHeight:s}},{jquery:18}],134:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("./has_properties"),s=t("./logging").logger,r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="ToolEvents",e}(n),e.exports={Model:r}},{"./has_properties":115,"./logging":119}],135:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty,v=function(t,e){return function(){return t.apply(e,arguments)}};d=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/dropdown"),o=t("backbone"),s=t("../tool/actions/action_tool"),u=t("../tool/actions/help_tool"),a=t("../tool/gestures/gesture_tool"),h=t("../tool/inspectors/inspect_tool"),f=t("./logging").logger,g=t("./toolbar_template"),l=t("./has_properties"),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.template=g,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"change",this.render),this.render()},e.prototype.render=function(){var t,e,i,r,o,l;this.$el.html(this.template(this.model.attributes)),this.$el.addClass("bk-sidebar"),this.$el.addClass("bk-toolbar-active"),e=this.$(".bk-button-bar-list"),o=this.model.get("inspectors"),e=this.$(".bk-bs-dropdown[type='inspectors']"),0===o.length?e.hide():(t=n('&lt;a href="#" data-bk-bs-toggle="dropdown" class="bk-bs-dropdown-toggle"&gt;inspect &lt;span class="bk-bs-caret"&gt;&lt;/a&gt;'),t.appendTo(e),l=n('&lt;ul class="bk-bs-dropdown-menu" /&gt;'),d.each(o,function(t){var e;return e=n("&lt;li /&gt;"),e.append(new h.ListItemView({model:t}).el),e.appendTo(l)}),l.on("click",function(t){return t.stopPropagation()}),l.appendTo(e),t.dropdown()),e=this.$(".bk-button-bar-list[type='help']"),d.each(this.model.get("help"),function(t){return e.append(new s.ButtonView({model:t}).el)}),e=this.$(".bk-button-bar-list[type='actions']"),d.each(this.model.get("actions"),function(t){return e.append(new s.ButtonView({model:t}).el)}),r=this.model.get("gestures");for(i in r)e=this.$(".bk-button-bar-list[type='"+i+"']"),d.each(r[i].tools,function(t){return e.append(new a.ButtonView({model:t}).el)});return this},e}(o.View),c=function(t){function e(){return this._active_change=v(this._active_change,this),e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._init_tools()},e.prototype._init_tools=function(){var t,e,i,n,r,o,l,c,p,g,m;for(i=this.get("gestures"),c=this.get("tools"),r=0,l=c.length;l&gt;r;r++)if(g=c[r],g instanceof h.Model)o=this.get("inspectors"),o.push(g),this.set("inspectors",o);else if(g instanceof u.Model)n=this.get("help"),n.push(g),this.set("help",n);else if(g instanceof s.Model)t=this.get("actions"),t.push(g),this.set("actions",t);else if(g instanceof a.Model){if(e=g.get("event_type"),!(e in i)){f.warn("ToolManager: unknown event type '"+e+"' for tool: "+g.type+" ("+g.id+")");continue}i[e].tools.push(g),this.listenTo(g,"change:active",d.bind(this._active_change,g))}p=[];for(e in i)m=i[e].tools,0!==m.length&amp;&amp;(i[e].tools=d.sortBy(m,function(t){return t.get("default_order")}),p.push(i[e].tools[0].set("active",!0)));return p},e.prototype._active_change=function(t){var e,i,n,r;return i=t.get("event_type"),(e=t.get("active"))?(n=this.get("gestures"),r=n[i].active,null!=r&amp;&amp;(f.debug("ToolManager: deactivating tool: "+r.type+" ("+r.id+") for event type '"+i+"'"),r.set("active",!1)),n[i].active=t,this.set("gestures",n),f.debug("ToolManager: activating tool: "+t.type+" ("+t.id+") for event type '"+i+"'"),null):null},e.prototype.defaults=function(){return{gestures:{pan:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},press:{tools:[],active:null},rotate:{tools:[],active:null}},actions:[],inspectors:[],help:[]}},e}(l),e.exports={Model:c,View:p}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../tool/actions/action_tool":226,"../tool/actions/help_tool":227,"../tool/gestures/gesture_tool":235,"../tool/inspectors/inspect_tool":245,"./has_properties":115,"./logging":119,"./toolbar_template":136,backbone:2,"bootstrap/dropdown":294,jquery:18,underscore:92}],136:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){null!=this.logo&amp;&amp;"grey"===this.logo?i.push("\n  &lt;a href='http://bokeh.pydata.org/' target='_blank' class='bk-logo bk-logo-small grey'&gt;&lt;/a&gt;\n"):null!=this.logo&amp;&amp;i.push("\n&lt;a href='http://bokeh.pydata.org/' target='_blank' class='bk-logo bk-logo-small'&gt;&lt;/a&gt;\n"),i.push("\n&lt;div class='bk-button-bar'&gt;\n  &lt;ul class='bk-button-bar-list' type=\"pan\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"scroll\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"pinch\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"tap\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"press\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"rotate\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"actions\" /&gt;\n  &lt;div class='bk-button-bar-list bk-bs-dropdown' type=\"inspectors\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"help\" /&gt;\n&lt;/div&gt;\n")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],137:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),r=t("backbone"),null!=i._bokehTest?(h=i._bokehTest,s=h.Hammer,u=h.mousewhweel):(s=t("hammerjs"),l=t("jquery-mousewheel")(n)),a=t("./logging").logger,o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._hammer_element()},e.prototype._hammer_element=function(){var t;return t=this.get("hit_area"),this.hammer=new s(t[0]),this.hammer.get("doubletap").recognizeWith("tap"),this.hammer.get("tap").requireFailure("doubletap"),this.hammer.get("doubletap").dropRequireFailure("tap"),this.hammer.on("doubletap",function(t){return function(e){return t._doubletap(e)}}(this)),this.hammer.on("tap",function(t){return function(e){return t._tap(e)}}(this)),this.hammer.on("press",function(t){return function(e){return t._press(e)}}(this)),this.hammer.get("pan").set({direction:s.DIRECTION_ALL}),this.hammer.on("panstart",function(t){return function(e){return t._pan_start(e)}}(this)),this.hammer.on("pan",function(t){return function(e){return t._pan(e)}}(this)),this.hammer.on("panend",function(t){return function(e){return t._pan_end(e)}}(this)),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("pinchstart",function(t){return function(e){return t._pinch_start(e)}}(this)),this.hammer.on("pinch",function(t){return function(e){return t._pinch(e)}}(this)),this.hammer.on("pinchend",function(t){return function(e){return t._pinch_end(e)}}(this)),this.hammer.get("rotate").set({enable:!0}),this.hammer.on("rotatestart",function(t){return function(e){return t._rotate_start(e)}}(this)),this.hammer.on("rotate",function(t){return function(e){return t._rotate(e)}}(this)),this.hammer.on("rotateend",function(t){return function(e){return t._rotate_end(e)}}(this)),t.mousemove(function(t){return function(e){return t._mouse_move(e)}}(this)),t.mouseenter(function(t){return function(e){return t._mouse_enter(e)}}(this)),t.mouseleave(function(t){return function(e){return t._mouse_exit(e)}}(this)),t.mousewheel(function(t){return function(e,i){return t._mouse_wheel(e,i)}}(this)),n(document).keydown(function(t){return function(e){return t._key_down(e)}}(this)),n(document).keyup(function(t){return function(e){return t._key_up(e)}}(this))},e.prototype.register_tool=function(t){var e,i,n;return e=t.mget("event_type"),i=t.mget("id"),n=t.model.type,null==e?void a.debug("Button tool: "+n):("pan"===e||"pinch"===e||"rotate"===e?(a.debug("Registering tool: "+n+" for event '"+e+"'"),null!=t["_"+e+"_start"]&amp;&amp;t.listenTo(this,e+":start:"+i,t["_"+e+"_start"]),t["_"+e]&amp;&amp;t.listenTo(this,e+":"+i,t["_"+e]),t["_"+e+"_end"]&amp;&amp;t.listenTo(this,e+":end:"+i,t["_"+e+"_end"])):"move"===e?(a.debug("Registering tool: "+n+" for event '"+e+"'"),null!=t._move_enter&amp;&amp;t.listenTo(this,"move:enter",t._move_enter),t.listenTo(this,"move",t._move),null!=t._move_exit&amp;&amp;t.listenTo(this,"move:exit",t._move_exit)):(a.debug("Registering tool: "+n+" for event '"+e+"'"),t.listenTo(this,e+":"+i,t["_"+e])),null!=t._keydown&amp;&amp;(a.debug("Registering tool: "+n+" for event 'keydown'"),t.listenTo(this,"keydown",t._keydown)),null!=t._keyup&amp;&amp;(a.debug("Registering tool: "+n+" for event 'keyup'"),t.listenTo(this,"keyup",t._keyup)),null!=t._doubletap?(a.debug("Registering tool: "+n+" for event 'doubletap'"),t.listenTo(this,"doubletap",t._doubletap)):void 0)},e.prototype._trigger=function(t,e){var i,n,r,s;return s=this.get("tool_manager"),n=t.split(":")[0],r=s.get("gestures"),i=r[n].active,this._trigger_event(t,i,e)},e.prototype._trigger_event=function(t,e,i){return null!=e?("scroll"===t&amp;&amp;(i.preventDefault(),i.stopPropagation()),this.trigger(t+":"+e.id,i)):void 0},e.prototype._bokify_hammer=function(t){var e,i,r,s,o;return"mouse"===t.pointerType?(i=n(t.target).offset(),e=null!=(r=i.left)?r:0,o=null!=(s=i.top)?s:0,t.bokeh={sx:t.srcEvent.pageX-e,sy:t.srcEvent.pageY-o}):t.bokeh={sx:t.center.x,sy:t.center.y}},e.prototype._bokify_jq=function(t){var e,i,r,s,o;return i=n(t.currentTarget).offset(),e=null!=(r=i.left)?r:0,o=null!=(s=i.top)?s:0,t.bokeh={sx:t.pageX-e,sy:t.pageY-o}},e.prototype._tap=function(t){return this._bokify_hammer(t),this._trigger("tap",t)},e.prototype._doubletap=function(t){return this._bokify_hammer(t),this.trigger("doubletap",t)},e.prototype._press=function(t){return this._bokify_hammer(t),this._trigger("press",t)},e.prototype._pan_start=function(t){return this._bokify_hammer(t),t.bokeh.sx-=t.deltaX,t.bokeh.sy-=t.deltaY,this._trigger("pan:start",t)},e.prototype._pan=function(t){return this._bokify_hammer(t),this._trigger("pan",t)},e.prototype._pan_end=function(t){return this._bokify_hammer(t),this._trigger("pan:end",t)},e.prototype._pinch_start=function(t){return this._bokify_hammer(t),this._trigger("pinch:start",t)},e.prototype._pinch=function(t){return this._bokify_hammer(t),this._trigger("pinch",t)},e.prototype._pinch_end=function(t){return this._bokify_hammer(t),this._trigger("pinch:end",t)},e.prototype._rotate_start=function(t){return this._bokify_hammer(t),this._trigger("rotate:start",t)},e.prototype._rotate=function(t){return this._bokify_hammer(t),this._trigger("rotate",t)},e.prototype._rotate_end=function(t){return this._bokify_hammer(t),this._trigger("rotate:end",t)},e.prototype._mouse_enter=function(t){return this._bokify_jq(t),this.trigger("move:enter",t)},e.prototype._mouse_move=function(t){return this._bokify_jq(t),this.trigger("move",t)},e.prototype._mouse_exit=function(t){return this._bokify_jq(t),this.trigger("move:exit",t)},e.prototype._mouse_wheel=function(t,e){return this._bokify_jq(t),t.bokeh.delta=e,this._trigger("scroll",t)},e.prototype._key_down=function(t){return this.trigger("keydown",t)},e.prototype._key_up=function(t){return this.trigger("keyup",t)},e}(r.Model),e.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./logging":119,backbone:2,hammerjs:3,jquery:18,"jquery-mousewheel":4}],138:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("./linear_mapper"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.map_to_target=function(t,i){var n,r,o,a,l,u;return null==i&amp;&amp;(i=!1),s.isNumber(t)?i?t:e.__super__.map_to_target.call(this,t):(a=this.get("source_range"),r=a.get("factors"),t.indexOf(":")&gt;=0?(l=t.split(":"),n=l[0],o=l[1],o=parseFloat(o),u=r.indexOf(n)+.5+a.get("offset")+o):u=r.indexOf(t)+1+a.get("offset"),i?u:e.__super__.map_to_target.call(this,u))},e.prototype.v_map_to_target=function(t,i){var n,r,o,a,l,u,h,c,p,d;if(null==i&amp;&amp;(i=!1),s.isNumber(t[0]))return i?t:e.__super__.v_map_to_target.call(this,t);for(u=this.get("source_range"),r=u.get("factors"),p=Array(t.length),o=a=0,h=t.length;h&gt;=0?h&gt;a:a&gt;h;o=h&gt;=0?++a:--a)d=t[o],d.indexOf(":")&gt;=0?(c=d.split(":"),n=c[0],l=c[1],l=parseFloat(l),p[o]=r.indexOf(n)+.5+u.get("offset")+l):p[o]=r.indexOf(d)+1+u.get("offset");return i?p:e.__super__.v_map_to_target.call(this,p)},e.prototype.map_from_target=function(t,i){var n,r;return null==i&amp;&amp;(i=!1),t=e.__super__.map_from_target.call(this,t),i?t:(r=this.get("source_range"),n=r.get("factors"),n[Math.floor(t-.5-r.get("offset"))])},e.prototype.v_map_from_target=function(t,i){var n,r,s,o,a,l,u,h,c;for(null==i&amp;&amp;(i=!1),c=e.__super__.v_map_from_target.call(this,t),r=s=0,l=c.length;l&gt;=0?l&gt;s:s&gt;l;r=l&gt;=0?++s:--s)c[r]=c[r];if(i)return c;for(h=Array(c),a=this.get("source_range"),n=a.get("factors"),r=o=0,u=t.length;u&gt;=0?u&gt;o:o&gt;u;r=u&gt;=0?++o:--o)h[r]=n[Math.floor(c[r]-.5-a.get("offset"))];return h},e}(r.Model),e.exports={Model:n}},{"./linear_mapper":141,underscore:92}],139:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.map_to_target=function(t,e){var i,n;return i=this.get("domain_mapper").map_to_target(t),n=this.get("codomain_mapper").map_to_target(e),[i,n]},e.prototype.v_map_to_target=function(t,e){var i,n;return i=this.get("domain_mapper").v_map_to_target(t),n=this.get("codomain_mapper").v_map_to_target(e),[i,n]},e.prototype.map_from_target=function(t,e){var i,n;return i=this.get("domain_mapper").map_from_target(t),n=this.get("codomain_mapper").map_from_target(e),[i,n]},e.prototype.v_map_from_target=function(t,e){var i,n;return i=this.get("domain_mapper").v_map_from_target(t),n=this.get("codomain_mapper").v_map_from_target(e),[i,n]},e}(r),e.exports={Model:n}},{"../common/has_properties":115}],140:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.palette=this._build_palette(this.get("palette")),this.little_endian=this._is_little_endian(),null!=this.get("reserve_color")?(this.reserve_color=parseInt(this.get("reserve_color").slice(1),16),this.reserve_val=this.get("reserve_val")):void 0},e.prototype.v_map_screen=function(t){var e,i,n,r,o,a,l,u,h,c,p,d,f,g,m,_;if(i=new ArrayBuffer(4*t.length),n=new Uint32Array(i),h=null!=(p=this.get("low"))?p:s.min(t),o=null!=(d=this.get("high"))?d:s.max(t),e=this.palette.length-1,m=e/(o-h),c=-m*h,this.little_endian)for(a=l=0,f=t.length;f&gt;=0?f&gt;l:l&gt;f;a=f&gt;=0?++l:--l)r=t[a],r===this.reserve_val?_=this.reserve_color:(r&gt;o&amp;&amp;(r=o),h&gt;r&amp;&amp;(r=h),_=this.palette[Math.floor(r*m+c)]),n[a]=255&lt;&lt;24|(16711680&amp;_)&gt;&gt;16|65280&amp;_|(255&amp;_)&lt;&lt;16;else for(a=u=0,g=t.length;g&gt;=0?g&gt;u:u&gt;g;a=g&gt;=0?++u:--u)r=t[a],r===this.reserve_val?_=this.reserve_color:(r&gt;o&amp;&amp;(r=o),h&gt;r&amp;&amp;(r=h),_=this.palette[Math.floor(r*m+c)]),n[a]=_&lt;&lt;8|255;return i},e.prototype._is_little_endian=function(){var t,e,i,n;return t=new ArrayBuffer(4),i=new Uint8ClampedArray(t),e=new Uint32Array(t),e[1]=168496141,n=!0,10===i[4]&amp;&amp;11===i[5]&amp;&amp;12===i[6]&amp;&amp;13===i[7]&amp;&amp;(n=!1),n},e.prototype._build_palette=function(t){var e,i,n,r,o;for(r=new Uint32Array(t.length+1),e=function(t){return s.isNumber(t)?t:parseInt(t.slice(1),16)},i=n=0,o=t.length;o&gt;=0?o&gt;n:n&gt;o;i=o&gt;=0?++n:--n)r[i]=e(t[i]);return r[r.length-1]=e(t[t.length-1]),r},e}(n),e.exports={Model:r}},{"../common/has_properties":115,underscore:92}],141:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("mapper_state",this._mapper_state,!0),this.add_dependencies("mapper_state",this,["source_range","target_range"]),this.add_dependencies("mapper_state",this.get("source_range"),["start","end"]),this.add_dependencies("mapper_state",this.get("target_range"),["start","end"])},e.prototype.map_to_target=function(t){var e,i,n;return i=this.get("mapper_state"),n=i[0],e=i[1],n*t+e},e.prototype.v_map_to_target=function(t){var e,i,n,r,s,o,a,l;for(s=this.get("mapper_state"),a=s[0],r=s[1],o=new Float64Array(t.length),i=e=0,n=t.length;n&gt;e;i=++e)l=t[i],o[i]=a*l+r;return o},e.prototype.map_from_target=function(t){var e,i,n;return i=this.get("mapper_state"),n=i[0],e=i[1],(t-e)/n},e.prototype.v_map_from_target=function(t){var e,i,n,r,s,o,a,l;for(s=this.get("mapper_state"),a=s[0],r=s[1],o=new Float64Array(t.length),i=e=0,n=t.length;n&gt;e;i=++e)l=t[i],o[i]=(l-r)/a;return o},e.prototype._mapper_state=function(){var t,e,i,n,r,s;return n=this.get("source_range").get("start"),i=this.get("source_range").get("end"),s=this.get("target_range").get("start"),r=this.get("target_range").get("end"),e=(r-s)/(i-n),t=-(e*n)+s,[e,t]},e}(n),e.exports={Model:r}},{"../common/has_properties":115}],142:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("mapper_state",this._mapper_state,!0),this.add_dependencies("mapper_state",this,["source_range","target_range"]),this.add_dependencies("mapper_state",this.get("source_range"),["start","end"]),this.add_dependencies("mapper_state",this.get("target_range"),["start","end"])},e.prototype.map_to_target=function(t){var e,i,n,r,s,o,a,l;if(o=this.get("mapper_state"),l=o[0],s=o[1],n=o[2],i=o[3],r=0,a=0,0===n)r=0;else try{if(r=(Math.log(t)-i)/n,isNaN(r))throw new Error("NaN");if(isFinite(r)===!1)throw new Error("Infinite")}catch(u){e=u,r=0}return a=r*l+s},e.prototype.v_map_to_target=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v;if(g=this.get("mapper_state"),_=g[0],f=g[1],s=g[2],r=g[3],o=new Float64Array(t.length),m=new Float64Array(t.length),0===s)o=t.map(function(t){return 0*t});else try{for(p=t.map(function(t){return 0&gt;=t}),d=t.map(function(t){return isNaN(t)}),c=function(){var e,n,r;for(r=[],i=e=0,n=t.length;n&gt;=0?n&gt;e:e&gt;n;i=n&gt;=0?++e:--e)r.push(p[i]|d[i]);return r}(),c=c.reduce(function(t,e){return t||e}),1===c&amp;&amp;(t[c]=1),o=t.map(function(t){return(Math.log(t)-r)/s}),n=a=0,u=o.length;u&gt;a;n=++a){if(v=o[n],isNaN(o[n]))throw new Error("NaN");if(isFinite(o[n])===!1)throw new Error("Infinite")}}catch(y){e=y,o=t.map(function(t){return 0*t})}for(n=l=0,h=t.length;h&gt;l;n=++l)v=t[n],m[n]=o[n]*_+f;return m},e.prototype.map_from_target=function(t){var e,i,n,r,s,o;return s=this.get("mapper_state"),o=s[0],r=s[1],i=s[2],e=s[3],n=(t-r)/o,n=Math.exp(i*n+e)},e.prototype.v_map_from_target=function(t){var e,i,n,r,s,o;return s=this.get("mapper_state"),o=s[0],r=s[1],i=s[2],e=s[3],n=t.map(function(t){return(t-r)/o}),n=n.map(function(t){return Math.exp(i*t+e)})},e.prototype._get_safe_scale=function(t,e){var i,n,r;return r=0&gt;t?0:t,i=0&gt;e?0:e,r===i&amp;&amp;(0===r?(r=1,i=10):(n=Math.log(r)/Math.log(10),r=Math.pow(10,Math.floor(n)),i=Math.ceil(n)!==Math.floor(n)?Math.pow(10,Math.ceil(n)):Math.pow(10,Math.ceil(n)+1))),[r,i]},e.prototype._mapper_state=function(){var t,e,i,n,r,s,o,a,l,u,h,c;return l=this.get("source_range").get("start"),a=this.get("source_range").get("end"),c=this.get("target_range").get("start"),h=this.get("target_range").get("end"),o=h-c,r=this._get_safe_scale(l,a),u=r[0],t=r[1],0===u?(i=Math.log(t),e=0):(i=Math.log(t)-Math.log(u),e=Math.log(u)),s=o,n=c,[s,n,i,e]},e}(n),e.exports={Model:r}},{"../common/has_properties":115}],143:[function(t,e,i){e.exports={YlGn3:[3253076,11394446,16252089],YlGn4:[2327619,7915129,12773017,16777164],YlGn5:[26679,3253076,7915129,12773017,16777164],YlGn6:[26679,3253076,7915129,11394446,14282915,16777164],YlGn7:[23090,2327619,4303709,7915129,11394446,14282915,16777164],YlGn8:[23090,2327619,4303709,7915129,11394446,14282915,16252089,16777189],YlGn9:[17705,26679,2327619,4303709,7915129,11394446,14282915,16252089,16777189],YlGnBu3:[2916280,8375739,15595697],YlGnBu4:[2252456,4306628,10607284,16777164],YlGnBu5:[2438292,2916280,4306628,10607284,16777164],YlGnBu6:[2438292,2916280,4306628,8375739,13101492,16777164],YlGnBu7:[797828,2252456,1937856,4306628,8375739,13101492,16777164],YlGnBu8:[797828,2252456,1937856,4306628,8375739,13101492,15595697,16777177],YlGnBu9:[531800,2438292,2252456,1937856,4306628,8375739,13101492,15595697,16777177],GnBu3:[4432586,11066805,14742491],GnBu4:[2854078,8113348,12248252,15792616],GnBu5:[551084,4432586,8113348,12248252,15792616],GnBu6:[551084,4432586,8113348,11066805,13429701,15792616],GnBu7:[546974,2854078,5157843,8113348,11066805,13429701,15792616],
        GnBu8:[546974,2854078,5157843,8113348,11066805,13429701,14742491,16252144],GnBu9:[540801,551084,2854078,5157843,8113348,11066805,13429701,14742491,16252144],BuGn3:[2925151,10082505,15070713],BuGn4:[2329413,6734500,11723490,15595771],BuGn5:[27948,2925151,6734500,11723490,15595771],BuGn6:[27948,2925151,6734500,10082505,13429990,15595771],BuGn7:[22564,2329413,4304502,6734500,10082505,13429990,15595771],BuGn8:[22564,2329413,4304502,6734500,10082505,13429990,15070713,16252157],BuGn9:[17435,27948,2329413,4304502,6734500,10082505,13429990,15070713,16252157],PuBuGn3:[1872025,10927579,15524592],PuBuGn4:[164234,6793679,12437985,16183287],PuBuGn5:[93273,1872025,6793679,12437985,16183287],PuBuGn6:[93273,1872025,6793679,10927579,13685222,16183287],PuBuGn7:[91216,164234,3576e3,6793679,10927579,13685222,16183287],PuBuGn8:[91216,164234,3576e3,6793679,10927579,13685222,15524592,16775163],PuBuGn9:[83510,93273,164234,3576e3,6793679,10927579,13685222,15524592,16775163],PuBu3:[2854078,10927579,15525874],PuBu4:[356528,7645647,12437985,15855350],PuBu5:[285325,2854078,7645647,12437985,15855350],PuBu6:[285325,2854078,7645647,10927579,13685222,15855350],PuBu7:[216699,356528,3576e3,7645647,10927579,13685222,15855350],PuBu8:[216699,356528,3576e3,7645647,10927579,13685222,15525874,16775163],PuBu9:[145496,285325,356528,3576e3,7645647,10927579,13685222,15525874,16775163],BuPu3:[8935079,10403034,14740724],BuPu4:[8929693,9213638,11783651,15595771],BuPu5:[8458108,8935079,9213638,11783651,15595771],BuPu6:[8458108,8935079,9213638,10403034,12571622,15595771],BuPu7:[7209323,8929693,9202609,9213638,10403034,12571622,15595771],BuPu8:[7209323,8929693,9202609,9213638,10403034,12571622,14740724,16252157],BuPu9:[5046347,8458108,8929693,9202609,9213638,10403034,12571622,14740724,16252157],RdPu3:[12917642,16424885,16638173],RdPu4:[11403646,16214177,16495801,16706530],RdPu5:[7995767,12917642,16214177,16495801,16706530],RdPu6:[7995767,12917642,16214177,16424885,16565696,16706530],RdPu7:[7995767,11403646,14496919,16214177,16424885,16565696,16706530],RdPu8:[7995767,11403646,14496919,16214177,16424885,16565696,16638173,16775155],RdPu9:[4784234,7995767,11403646,14496919,16214177,16424885,16565696,16638173,16775155],PuRd3:[14490743,13210823,15196655],PuRd4:[13505110,14640560,14136792,15855350],PuRd5:[9961539,14490743,14640560,14136792,15855350],PuRd6:[9961539,14490743,14640560,13210823,13941210,15855350],PuRd7:[9502783,13505110,15149450,14640560,13210823,13941210,15855350],PuRd8:[9502783,13505110,15149450,14640560,13210823,13941210,15196655,16250105],PuRd9:[6750239,9961539,13505110,15149450,14640560,13210823,13941210,15196655,16250105],OrRd3:[14895667,16628612,16705736],OrRd4:[14102559,16551257,16632970,16707801],OrRd5:[11730944,14895667,16551257,16632970,16707801],OrRd6:[11730944,14895667,16551257,16628612,16635038,16707801],OrRd7:[10027008,14102559,15689032,16551257,16628612,16635038,16707801],OrRd8:[10027008,14102559,15689032,16551257,16628612,16635038,16705736,16775148],OrRd9:[8323072,11730944,14102559,15689032,16551257,16628612,16635038,16705736,16775148],YlOrRd3:[15743776,16691788,16772512],YlOrRd4:[14883356,16616764,16698460,16777138],YlOrRd5:[12386342,15743776,16616764,16698460,16777138],YlOrRd6:[12386342,15743776,16616764,16691788,16701814,16777138],YlOrRd7:[11599910,14883356,16535082,16616764,16691788,16701814,16777138],YlOrRd8:[11599910,14883356,16535082,16616764,16691788,16701814,16772512,16777164],YlOrRd9:[8388646,12386342,14883356,16535082,16616764,16691788,16701814,16772512,16777164],YlOrBr3:[14245646,16696399,16775100],YlOrBr4:[13388802,16685353,16701838,16777172],YlOrBr5:[10040324,14245646,16685353,16701838,16777172],YlOrBr6:[10040324,14245646,16685353,16696399,16704401,16777172],YlOrBr7:[9186564,13388802,15495188,16685353,16696399,16704401,16777172],YlOrBr8:[9186564,13388802,15495188,16685353,16696399,16704401,16775100,16777189],YlOrBr9:[6694150,10040324,13388802,15495188,16685353,16696399,16704401,16775100,16777189],Purples3:[7695281,12369372,15724021],Purples4:[6967715,10394312,13355490,15921399],Purples5:[5515151,7695281,10394312,13355490,15921399],Purples6:[5515151,7695281,10394312,12369372,14342891,15921399],Purples7:[4854918,6967715,8420794,10394312,12369372,14342891,15921399],Purples8:[4854918,6967715,8420794,10394312,12369372,14342891,15724021,16579581],Purples9:[4128893,5515151,6967715,8420794,10394312,12369372,14342891,15724021,16579581],Blues3:[3244733,10406625,14609399],Blues4:[2191797,7057110,12441575,15725567],Blues5:[545180,3244733,7057110,12441575,15725567],Blues6:[545180,3244733,7057110,10406625,13032431,15725567],Blues7:[542100,2191797,4362950,7057110,10406625,13032431,15725567],Blues8:[542100,2191797,4362950,7057110,10406625,13032431,14609399,16251903],Blues9:[536683,545180,2191797,4362950,7057110,10406625,13032431,14609399,16251903],Greens3:[3253076,10607003,15070688],Greens4:[2329413,7652470,12248243,15595753],Greens5:[27948,3253076,7652470,12248243,15595753],Greens6:[27948,3253076,7652470,10607003,13101504,15595753],Greens7:[23090,2329413,4303709,7652470,10607003,13101504,15595753],Greens8:[23090,2329413,4303709,7652470,10607003,13101504,15070688,16252149],Greens9:[17435,27948,2329413,4303709,7652470,10607003,13101504,15070688,16252149],Oranges3:[15095053,16625259,16705230],Oranges4:[14239489,16616764,16629381,16707038],Oranges5:[10892803,15095053,16616764,16629381,16707038],Oranges6:[10892803,15095053,16616764,16625259,16634018,16707038],Oranges7:[9186564,14239745,15821075,16616764,16625259,16634018,16707038],Oranges8:[9186564,14239745,15821075,16616764,16625259,16634018,16705230,16774635],Oranges9:[8333060,10892803,14239745,15821075,16616764,16625259,16634018,16705230,16774635],Reds3:[14560550,16552562,16703698],Reds4:[13309981,16476746,16559761,16704985],Reds5:[10817301,14560550,16476746,16559761,16704985],Reds6:[10817301,14560550,16476746,16552562,16563105,16704985],Reds7:[10027021,13309981,15678252,16476746,16552562,16563105,16704985],Reds8:[10027021,13309981,15678252,16476746,16552562,16563105,16703698,16774640],Reds9:[6750221,10817301,13309981,15678252,16476746,16552562,16563105,16703698,16774640],Greys3:[6513507,12434877,15790320],Greys4:[5395026,9868950,13421772,16250871],Greys5:[2434341,6513507,9868950,13421772,16250871],Greys6:[2434341,6513507,9868950,12434877,14277081,16250871],Greys7:[2434341,5395026,7566195,9868950,12434877,14277081,16250871],Greys8:[2434341,5395026,7566195,9868950,12434877,14277081,15790320,16777215],Greys9:[0,2434341,5395026,7566195,9868950,12434877,14277081,15790320,16777215],PuOr3:[10063555,16250871,15835968],PuOr4:[6175897,11709394,16627811,15098113],PuOr5:[6175897,11709394,16250871,16627811,15098113],PuOr6:[5515144,10063555,14211819,16703670,15835968,11753478],PuOr7:[5515144,10063555,14211819,16250871,16703670,15835968,11753478],PuOr8:[5515144,8418220,11709394,14211819,16703670,16627811,14713364,11753478],PuOr9:[5515144,8418220,11709394,14211819,16250871,16703670,16627811,14713364,11753478],PuOr10:[2949195,5515144,8418220,11709394,14211819,16703670,16627811,14713364,11753478,8338184],PuOr11:[2949195,5515144,8418220,11709394,14211819,16250871,16703670,16627811,14713364,11753478,8338184],BrBG3:[5944492,16119285,14201701],BrBG4:[99697,8441281,14664317,10903834],BrBG5:[99697,8441281,16119285,14664317,10903834],BrBG6:[91742,5944492,13101797,16181443,14201701,9195786],BrBG7:[91742,5944492,13101797,16119285,16181443,14201701,9195786],BrBG8:[91742,3512207,8441281,13101797,16181443,14664317,12550445,9195786],BrBG9:[91742,3512207,8441281,13101797,16119285,16181443,14664317,12550445,9195786],BrBG10:[15408,91742,3512207,8441281,13101797,16181443,14664317,12550445,9195786,5517317],BrBG11:[15408,91742,3512207,8441281,13101797,16119285,16181443,14664317,12550445,9195786,5517317],PRGn3:[8372091,16250871,11505091],PRGn4:[34871,10935200,12756431,8073876],PRGn5:[34871,10935200,16250871,12756431,8073876],PRGn6:[1800247,8372091,14282963,15193320,11505091,7744131],PRGn7:[1800247,8372091,14282963,16250871,15193320,11505091,7744131],PRGn8:[1800247,5942881,10935200,14282963,15193320,12756431,10055851,7744131],PRGn9:[1800247,5942881,10935200,14282963,16250871,15193320,12756431,10055851,7744131],PRGn10:[17435,1800247,5942881,10935200,14282963,15193320,12756431,10055851,7744131,4194379],PRGn11:[17435,1800247,5942881,10935200,14282963,16250871,15193320,12756431,10055851,7744131,4194379],PiYG3:[10606442,16250871,15311817],PiYG4:[5090342,12116358,15840986,13638795],PiYG5:[5090342,12116358,16250871,15840986,13638795],PiYG6:[5083681,10606442,15136208,16638191,15311817,12917629],PiYG7:[5083681,10606442,15136208,16250871,16638191,15311817,12917629],PiYG8:[5083681,8371265,12116358,15136208,16638191,15840986,14579630,12917629],PiYG9:[5083681,8371265,12116358,15136208,16250871,16638191,15840986,14579630,12917629],PiYG10:[2581529,5083681,8371265,12116358,15136208,16638191,15840986,14579630,12917629,9306450],PiYG11:[2581529,5083681,8371265,12116358,15136208,16250871,16638191,15840986,14579630,12917629,9306450],RdBu3:[6793679,16250871,15698530],RdBu4:[356784,9618910,16033154,13238304],RdBu5:[356784,9618910,16250871,16033154,13238304],RdBu6:[2188972,6793679,13755888,16636871,15698530,11671595],RdBu7:[2188972,6793679,13755888,16250871,16636871,15698530,11671595],RdBu8:[2188972,4428739,9618910,13755888,16636871,16033154,14049357,11671595],RdBu9:[2188972,4428739,9618910,13755888,16250871,16636871,16033154,14049357,11671595],RdBu10:[340065,2188972,4428739,9618910,13755888,16636871,16033154,14049357,11671595,6750239],RdBu11:[340065,2188972,4428739,9618910,13755888,16250871,16636871,16033154,14049357,11671595,6750239],RdGy3:[10066329,16777215,15698530],RdGy4:[4210752,12237498,16033154,13238304],RdGy5:[4210752,12237498,16777215,16033154,13238304],RdGy6:[5066061,10066329,14737632,16636871,15698530,11671595],RdGy7:[5066061,10066329,14737632,16777215,16636871,15698530,11671595],RdGy8:[5066061,8882055,12237498,14737632,16636871,16033154,14049357,11671595],RdGy9:[5066061,8882055,12237498,14737632,16777215,16636871,16033154,14049357,11671595],RdGy10:[1710618,5066061,8882055,12237498,14737632,16636871,16033154,14049357,11671595,6750239],RdGy11:[1710618,5066061,8882055,12237498,14737632,16777215,16636871,16033154,14049357,11671595,6750239],RdYlBu3:[9551835,16777151,16551257],RdYlBu4:[2915254,11262441,16625249,14096668],RdYlBu5:[2915254,11262441,16777151,16625249,14096668],RdYlBu6:[4552116,9551835,14742520,16703632,16551257,14102567],RdYlBu7:[4552116,9551835,14742520,16777151,16703632,16551257,14102567],RdYlBu8:[4552116,7646673,11262441,14742520,16703632,16625249,16018755,14102567],RdYlBu9:[4552116,7646673,11262441,14742520,16777151,16703632,16625249,16018755,14102567],RdYlBu10:[3225237,4552116,7646673,11262441,14742520,16703632,16625249,16018755,14102567,10813478],RdYlBu11:[3225237,4552116,7646673,11262441,14742520,16777151,16703632,16625249,16018755,14102567,10813478],Spectral3:[10081684,16777151,16551257],Spectral4:[2851770,11263396,16625249,14096668],Spectral5:[2851770,11263396,16777151,16625249,14096668],Spectral6:[3311805,10081684,15136152,16703627,16551257,13975119],Spectral7:[3311805,10081684,15136152,16777151,16703627,16551257,13975119],Spectral8:[3311805,6734501,11263396,15136152,16703627,16625249,16018755,13975119],Spectral9:[3311805,6734501,11263396,15136152,16777151,16703627,16625249,16018755,13975119],Spectral10:[6180770,3311805,6734501,11263396,15136152,16703627,16625249,16018755,13975119,10355010],Spectral11:[6180770,3311805,6734501,11263396,15136152,16777151,16703627,16625249,16018755,13975119,10355010],RdYlGn3:[9555808,16777151,16551257],RdYlGn4:[1742401,10934634,16625249,14096668],RdYlGn5:[1742401,10934634,16777151,16625249,14096668],RdYlGn6:[1742928,9555808,14282635,16703627,16551257,14102567],RdYlGn7:[1742928,9555808,14282635,16777151,16703627,16551257,14102567],RdYlGn8:[1742928,6733155,10934634,14282635,16703627,16625249,16018755,14102567],RdYlGn9:[1742928,6733155,10934634,14282635,16777151,16703627,16625249,16018755,14102567],RdYlGn10:[26679,1742928,6733155,10934634,14282635,16703627,16625249,16018755,14102567,10813478],RdYlGn11:[26679,1742928,6733155,10934634,14282635,16777151,16703627,16625249,16018755,14102567,10813478]}},{}],144:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t("underscore"),o=t("../common/bbox"),a=t("../common/logging").logger,r=t("./range1d"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="DataRange1d",e.prototype._get_start=function(){var t;return null!=(t=this.get("_start"))?t:this.get("_auto_start")},e.prototype._set_start=function(t){return this.set("_start",t)},e.prototype._get_end=function(){var t;return null!=(t=this.get("_end"))?t:this.get("_auto_end")},e.prototype._set_end=function(t){return this.set("_end",t)},e.prototype.initialize=function(t,i){return this.register_property("start",this._get_start,!0),this.register_setter("start",this._set_start),this.add_dependencies("start",this,["_start","flipped","_auto_start","range_padding","default_span"]),this.register_property("end",this._get_end,!0),this.register_setter("end",this._set_end),this.add_dependencies("end",this,["_end","flipped","_auto_end","range_padding","default_span"]),null!=(null!=t?t.start:void 0)&amp;&amp;(this.set("start",t.start),delete t.start),null!=(null!=t?t.end:void 0)&amp;&amp;(this.set("end",t.end),delete t.end),e.__super__.initialize.call(this,t,i),this.plot_bounds={}},e.prototype.update=function(t,e,i){var n,r,s,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D;if(w=null!=(m=this.get("renderers"))?m:[],n=[],0===w.length){for(_=this.get("plots"),s=0,u=_.length;u&gt;s;s++)f=_[s],k=f.get("renderers"),k=function(){var t,e,i;for(i=[],t=0,e=k.length;e&gt;t;t++)g=k[t],"GlyphRenderer"===g.type&amp;&amp;i.push(g);return i}(),n=n.concat(k);w=n}for(this.set("renderers",w),x=new o.empty,v=this.get("renderers"),a=0,h=v.length;h&gt;a;a++)g=v[a],null!=t[g.id]&amp;&amp;(x=o.extend(x,t[g.id]));this.plot_bounds[i.model.id]=x,d=new o.empty,y=this.plot_bounds;for(l in y)D=y[l],d=o.extend(d,D);return b=d[e],p=b[0],c=b[1],C=c!==p?(c-p)*(1+this.get("range_padding")):this.get("default_span"),r=(c+p)/2,M=1,this.get("flipped")&amp;&amp;(M=-1),this.set("_auto_start",r-M*C/2),this.set("_auto_end",r+M*C/2)},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{plots:[],sources:[],range_padding:.1,default_span:2,flipped:!1})},e}(r.Model),e.exports={Model:n}},{"../common/bbox":100,"../common/logging":119,"./range1d":146,underscore:92}],145:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="FactorRange",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._init(),this.register_property("min",function(){return this.get("start")},!1),this.add_dependencies("min",this,["factors","offset"]),this.register_property("max",function(){return this.get("end")},!1),this.add_dependencies("max",this,["factors","offset"]),this.listenTo(this,"change:factors",this._init),this.listenTo(this,"change:offset",this._init)},e.prototype._init=function(){return this.set("start",.5+this.get("offset")),this.set("end",this.get("factors").length+this.get("start"))},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{offset:0,factors:[]})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,underscore:92}],146:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="Range1d",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("min",function(){return Math.min(this.get("start"),this.get("end"))},!0),this.add_dependencies("min",this,["start","end"]),this.register_property("max",function(){return Math.max(this.get("start"),this.get("end"))},!0),this.add_dependencies("max",this,["start","end"])},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{start:0,end:1})},e}(n),e.exports={Model:r}},{"../common/has_properties":115,underscore:92}],147:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),s=t("../../common/has_parent"),o=t("../../common/plot_widget"),l=t("../../common/properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.fill_props=new l.Fill({obj:this.model,prefix:""}),this.line_props=new l.Line({obj:this.model,prefix:""})},e.prototype.render=function(){var t,e,i,n,r;return this.frame=this.plot_model.get("frame"),this.canvas=this.plot_model.get("canvas"),this.xmapper=this.plot_view.frame.get("x_mappers")[this.mget("x_range_name")],this.ymapper=this.plot_view.frame.get("y_mappers")[this.mget("y_range_name")],i=this.canvas.vx_to_sx(this._calc_dim("left",this.xmapper,this.frame.get("h_range").get("start"))),n=this.canvas.vx_to_sx(this._calc_dim("right",this.xmapper,this.frame.get("h_range").get("end"))),e=this.canvas.vy_to_sy(this._calc_dim("bottom",this.ymapper,this.frame.get("v_range").get("start"))),r=this.canvas.vy_to_sy(this._calc_dim("top",this.ymapper,this.frame.get("v_range").get("end"))),t=this.plot_view.canvas_view.ctx,t.save(),t.beginPath(),t.rect(i,r,n-i,e-r),this.fill_props.set_value(t),t.fill(),this.line_props.set_value(t),t.stroke(),t.restore()},e.prototype._calc_dim=function(t,e,i){var n;return n=null!=this.mget(t)?"data"===this.mget(t+"_units")?e.map_to_target(this.mget(t)):this.mget(t):i},e}(o),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type="BoxAnnotation",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{x_range_name:"default",y_range_name:"default"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{level:"annotation",left_units:"data",right_units:"data",top_units:"data",bottom_units:"data",fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_width:1,line_alpha:.3,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},e}(s),e.exports={Model:n,View:r}},{"../../common/has_parent":114,"../../common/plot_widget":125,"../../common/properties":126,underscore:92}],148:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t("underscore"),n=t("../../common/has_parent"),o=t("../../common/plot_widget"),l=t("../../common/properties"),u=t("../../common/textutils"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.label_props=new l.Text({obj:this.model,prefix:"label_"}),this.border_props=new l.Line({obj:this.model,prefix:"border_"}),this.background_props=new l.Fill({obj:this.model,prefix:"background_"}),this.need_calc_dims=!0,this.listenTo(this.plot_model.solver,"layout_update",function(){return this.need_calc_dims=!0})},e.prototype.calc_dims=function(t){var e,i,n,r,s,o,l,h,c,p,d,f,g,m,_,v;return l=function(){var t,e,n,r,s;for(n=this.mget("legends"),s=[],t=0,e=n.length;e&gt;t;t++)r=n[t],o=r[0],i=r[1],s.push(o);return s}.call(this),r=this.mget("label_height"),this.glyph_height=this.mget("glyph_height"),s=this.mget("label_width"),this.glyph_width=this.mget("glyph_width"),c=this.mget("legend_spacing"),this.label_height=a.max([u.getTextHeight(this.label_props.font_value()),r,this.glyph_height]),this.legend_height=this.label_height,this.legend_height=l.length*this.legend_height+(1+l.length)*c,e=this.plot_view.canvas_view.ctx,e.save(),this.label_props.set_value(e),g=a.map(l,function(t){return e.measureText(t).width}),e.restore(),f=a.max(g),this.label_width=a.max([f,s]),this.legend_width=this.label_width+this.glyph_width+3*c,p=this.mget("orientation"),h=this.mget("legend_padding"),n=this.plot_view.frame.get("h_range"),m=this.plot_view.frame.get("v_range"),"top_right"===p?(_=n.get("end")-h-this.legend_width,v=m.get("end")-h):"top_left"===p?(_=n.get("start")+h,v=m.get("end")-h):"bottom_left"===p?(_=n.get("start")+h,v=m.get("start")+h+this.legend_height):"bottom_right"===p?(_=n.get("end")-h-this.legend_width,v=m.get("start")+h+this.legend_height):"absolute"===p&amp;&amp;(d=this.absolute_coords,_=d[0],v=d[1]),_=this.plot_view.canvas.vx_to_sx(_),v=this.plot_view.canvas.vy_to_sy(v),this.box_coords=[_,v]},e.prototype.render=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w;for(this.need_calc_dims&amp;&amp;(this.calc_dims(),this.need_calc_dims=!1),t=this.plot_view.canvas_view.ctx,t.save(),t.beginPath(),t.rect(this.box_coords[0],this.box_coords[1],this.legend_width,this.legend_height),this.background_props.set_value(t),t.fill(),this.border_props.do_stroke&amp;&amp;(this.border_props.set_value(t),t.stroke()),o=this.mget("legend_spacing"),u=this.mget("legends"),n=i=0,a=u.length;a&gt;i;n=++i)for(h=u[n],s=h[0],e=h[1],b=n*this.label_height,w=(1+n)*o,_=this.box_coords[1]+this.label_height/2+b+w,f=this.box_coords[0]+o,g=this.box_coords[0]+2*o+this.label_width,m=g+this.glyph_width,v=this.box_coords[1]+b+w,y=v+this.glyph_height,this.label_props.set_value(t),t.fillText(s,f,_),c=this.model.resolve_ref(e),r=0,l=c.length;l&gt;r;r++)p=c[r],d=this.plot_view.renderers[p.id],d.draw_legend(t,g,m,v,y);return t.restore()},e}(o),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.default_view=s,e.prototype.type="Legend",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{legends:[]})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{level:"overlay",border_line_color:"black",border_line_width:1,border_line_alpha:1,border_line_join:"miter",border_line_cap:"butt",border_line_dash:[],border_line_dash_offset:0,background_fill_color:"#fff",background_fill_alpha:1,label_standoff:15,label_text_font:"helvetica",label_text_font_size:"10pt",label_text_font_style:"normal",label_text_color:"#444444",label_text_alpha:1,label_text_align:"left",label_text_baseline:"middle",glyph_height:20,glyph_width:20,label_height:20,label_width:50,legend_padding:10,legend_spacing:3,orientation:"top_right",datapoint:null})},e}(n),e.exports={Model:r,View:s}},{"../../common/has_parent":114,"../../common/plot_widget":125,"../../common/properties":126,"../../common/textutils":133,underscore:92}],149:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),n=t("../../common/has_parent"),r=t("../../common/plot_widget"),l=t("../../common/logging").logger,o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.$el.appendTo(this.plot_view.$el.find("div.bk-canvas-overlays")),this.$el.css({position:"absolute"}),this.$el.hide()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:location",this._draw_span)},e.prototype.render=function(){return this._draw_span()},e.prototype._draw_span=function(){var t,e,i,n,r,s;return null==this.mget("location")?void this.$el.hide():(e=this.plot_model.get("frame"),t=this.plot_model.get("canvas"),"width"===this.mget("dimension")?(r=t.vy_to_sy(this.mget("location")),n=t.vx_to_sx(e.get("left")),s=e.get("width")+"px",i="1px"):(r=t.vy_to_sy(e.get("top")),n=t.vx_to_sx(this.mget("location")),s="1px",i=e.get("height")+"px"),this.$el.css({top:r,left:n,width:s,height:i,"z-index":1e3,"background-color":this.mget("color")}),this.$el.show())},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type="Span",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{level:"overlay",dimension:"width",units:"screen",color:"black"})},e}(n),e.exports={Model:s,View:o}},{"../../common/has_parent":114,"../../common/logging":119,"../../common/plot_widget":125,underscore:92}],150:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;n=t("jquery"),l=t("underscore"),r=t("../../common/has_parent"),s=t("../../common/plot_widget"),u=t("../../common/logging").logger,a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.className="bk-tooltip",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.$el.appendTo(this.plot_view.$el.find("div.bk-canvas-overlays")),this.$el.css({"z-index":1010}),this.$el.hide()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:data",this._draw_tips)},e.prototype.render=function(){return this._draw_tips()},e.prototype._draw_tips=function(){var t,e,i,r,s,o,a,u,h,c,p,d,f,g,m;if(this.$el.empty(),this.$el.hide(),this.$el.toggleClass("bk-tooltip-custom",this.mget("custom")),!l.isEmpty(this.mget("data"))){for(a=this.mget("data"),i=0,s=a.length;s&gt;i;i++)f=a[i],g=f[0],m=f[1],e=f[2],(!this.mget("inner_only")||this.plot_view.frame.contains(g,m))&amp;&amp;(p=n("&lt;div /&gt;").appendTo(this.$el),p.append(e));switch(h=this.plot_view.mget("canvas").vx_to_sx(g),c=this.plot_view.mget("canvas").vy_to_sy(m),u=this.mget("side"),"auto"===u&amp;&amp;(o=this.plot_view.frame.get("width"),u=g-this.plot_view.frame.get("left")&lt;o/2?"right":"left"),this.$el.removeClass("bk-right"),this.$el.removeClass("bk-left"),t=10,u){case"right":this.$el.addClass("bk-left"),r=h+(this.$el.outerWidth()-this.$el.innerWidth())+t;break;case"left":this.$el.addClass("bk-right"),r=h-this.$el.outerWidth()-t}return d=c-this.$el.outerHeight()/2,this.$el.children().length&gt;0?(this.$el.css({top:d,left:r}),this.$el.show()):void 0}},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.default_view=a,e.prototype.type="Tooltip",e.prototype.clear=function(){return this.set("data",[])},e.prototype.add=function(t,e,i){var n;return n=this.get("data"),n.push([t,e,i]),this.set("data",n)},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{level:"overlay",side:"auto",inner_only:!0})},e}(r),e.exports={Model:o,View:a}},{"../../common/has_parent":114,"../../common/logging":119,"../../common/plot_widget":125,jquery:18,underscore:92}],151:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),l=t("../../common/mathutils"),s=t("./glyph"),a=t("../../common/hittest"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){var t,e,i,n;for("data"===this.distances.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xmapper,this.x,this.inner_radius):this.sinner_radius=this.inner_radius,"data"===this.distances.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xmapper,this.x,this.outer_radius):this.souter_radius=this.outer_radius,this.angle=new Float32Array(this.start_angle.length),n=[],t=e=0,i=this.start_angle.length;i&gt;=0?i&gt;e:e&gt;i;t=i&gt;=0?++e:--e)n.push(this.angle[t]=this.end_angle[t]-this.start_angle[t]);return n},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d;for(p=i.sx,d=i.sy,c=i.start_angle,n=i.angle,u=i.sinner_radius,h=i.souter_radius,r=i.direction,l=[],o=0,a=e.length;a&gt;o;o++)s=e[o],isNaN(p[s]+d[s]+u[s]+h[s]+c[s]+n[s]+r[s])||(t.translate(p[s],d[s]),t.rotate(this.start_angle[s]),t.moveTo(h[s],0),t.beginPath(),t.arc(0,0,h[s],0,n[s],r[s]),t.rotate(this.angle[s]),t.lineTo(u[s],0),t.arc(0,0,u[s],0,-n[s],!r[s]),t.closePath(),t.rotate(-n[s]-c[s]),t.translate(-p[s],-d[s]),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,s),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,s),l.push(t.stroke())):l.push(void 0));return l},e.prototype._hit_point=function(t){var e,i,n,r,s,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F,L;for(m=[t.vx,t.vy],S=m[0],E=m[1],R=this.renderer.xmapper.map_from_target(S,!0),O=this.renderer.ymapper.map_from_target(E,!0),"data"===this.distances.outer_radius.units?(z=R-this.max_outer_radius,j=R+this.max_outer_radius,F=O-this.max_outer_radius,L=O+this.max_outer_radius):(A=S-this.max_outer_radius,P=S+this.max_outer_radius,_=this.renderer.xmapper.v_map_from_target([A,P],!0),z=_[0],j=_[1],I=E-this.max_outer_radius,N=E+this.max_outer_radius,v=this.renderer.ymapper.v_map_from_target([I,N],!0),F=v[0],L=v[1]),i=[],y=function(){var t,e,i,n;for(i=this.index.search([z,F,j,L]),n=[],t=0,e=i.length;e&gt;t;t++)g=i[t],n.push(g[4].i);return n}.call(this),h=0,p=y.length;p&gt;h;h++)s=y[h],f=Math.pow(this.souter_radius[s],2),u=Math.pow(this.sinner_radius[s],2),k=this.renderer.xmapper.map_to_target(R,!0),M=this.renderer.xmapper.map_to_target(this.x[s],!0),D=this.renderer.ymapper.map_to_target(O,!0),T=this.renderer.ymapper.map_to_target(this.y[s],!0),n=Math.pow(k-M,2)+Math.pow(D-T,2),f&gt;=n&amp;&amp;n&gt;=u&amp;&amp;i.push([s,n]);for(r=[],c=0,d=i.length;d&gt;c;c++)b=i[c],s=b[0],n=b[1],x=this.renderer.plot_view.canvas.vx_to_sx(S),C=this.renderer.plot_view.canvas.vy_to_sy(E),e=Math.atan2(C-this.sy[s],x-this.sx[s]),l.angle_between(-e,-this.start_angle[s],-this.end_angle[s],this.direction[s])&amp;&amp;r.push([s,n]);return w=a.create_hit_test_result(),w["1d"].indices=o.chain(r).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),w},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type="AnnularWedge",e.prototype.distances=["inner_radius","outer_radius"],e.prototype.angles=["start_angle","end_angle"],e.prototype.fields=["direction:direction"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{direction:"anticlock"})},e}(s.Model),e.exports={Model:n,View:r}},{"../../common/hittest":116,"../../common/mathutils":120,"./glyph":158,underscore:92}],152:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),s=t("./glyph"),a=t("../../common/hittest"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return"data"===this.distances.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xmapper,this.x,this.inner_radius):this.sinner_radius=this.inner_radius,"data"===this.distances.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xmapper,this.x,this.outer_radius):this.souter_radius=this.outer_radius;
        },e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h;for(u=i.sx,h=i.sy,a=i.sinner_radius,l=i.souter_radius,o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(u[n]+h[n]+a[n]+l[n])||(t.beginPath(),t.arc(u[n],h[n],a[n],0,2*Math.PI*2,!1),t.moveTo(u[n]+l[n],h[n]),t.arc(u[n],h[n],l[n],0,2*Math.PI*2,!0),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,n),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,n),o.push(t.stroke())):o.push(void 0));return o},e.prototype._hit_point=function(t){var e,i,n,r,s,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C;for(c=[t.vx,t.vy],v=c[0],y=c[1],b=this.renderer.xmapper.map_from_target(v,!0),w=b-this.max_radius,x=b+this.max_radius,k=this.renderer.ymapper.map_from_target(y,!0),M=k-this.max_radius,C=k+this.max_radius,i=[],p=function(){var t,e,i,n;for(i=this.index.search([w,M,x,C]),n=[],t=0,e=i.length;e&gt;t;t++)h=i[t],n.push(h[4].i);return n}.call(this),s=0,l=p.length;l&gt;s;s++)n=p[s],u=Math.pow(this.souter_radius[n],2),r=Math.pow(this.sinner_radius[n],2),f=this.renderer.xmapper.map_to_target(b),g=this.renderer.xmapper.map_to_target(this.x[n]),m=this.renderer.ymapper.map_to_target(k),_=this.renderer.ymapper.map_to_target(this.y[n]),e=Math.pow(f-g,2)+Math.pow(m-_,2),u&gt;=e&amp;&amp;e&gt;=r&amp;&amp;i.push([n,e]);return d=a.create_hit_test_result(),d["1d"].indices=o.chain(i).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),d},e.prototype.draw_legend=function(t,e,i,n,r){var s,o,a,l,u,h,c,p,d;return u=null!=(l=this.get_reference_point())?l:0,o=[u],p={},p[u]=(e+i)/2,d={},d[u]=(n+r)/2,a=.5*Math.min(Math.abs(i-e),Math.abs(r-n)),h={},h[u]=.4*a,c={},c[u]=.8*a,s={sx:p,sy:d,sinner_radius:h,souter_radius:c},this._render(t,o,s)},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="Annulus",e.prototype.distances=["inner_radius","outer_radius"],e}(s.Model),e.exports={Model:n,View:r}},{"../../common/hittest":116,"./glyph":158,underscore:92}],153:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./glyph"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return"data"===this.distances.radius.units?this.sradius=this.sdist(this.renderer.xmapper,this.x,this.radius):this.sradius=this.radius},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;if(c=i.sx,p=i.sy,u=i.sradius,h=i.start_angle,r=i.end_angle,n=i.direction,this.visuals.line.do_stroke){for(l=[],o=0,a=e.length;a&gt;o;o++)s=e[o],isNaN(c[s]+p[s]+u[s]+h[s]+r[s]+n[s])||(t.beginPath(),t.arc(c[s],p[s],u[s],h[s],r[s],n[s]),this.visuals.line.set_vectorize(t,s),l.push(t.stroke()));return l}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="Arc",e.prototype.visuals=["line"],e.prototype.distances=["radius"],e.prototype.angles=["start_angle","end_angle"],e.prototype.fields=["direction:direction"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{direction:"anticlock"})},e}(s.Model),e.exports={Model:n,View:r}},{"./glyph":158,underscore:92}],154:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),l=t("rbush"),s=t("./glyph"),a=function(t,e,i,n,r,s,o,a){var l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M;for(x=[],c=[[],[]],d=m=0;2&gt;=m;d=++m)if(0===d?(u=6*t-12*i+6*r,l=-3*t+9*i-9*r+3*o,p=3*i-3*t):(u=6*e-12*n+6*s,l=-3*e+9*n-9*s+3*a,p=3*n-3*e),Math.abs(l)&lt;1e-12){if(Math.abs(u)&lt;1e-12)continue;y=-p/u,y&gt;0&amp;&amp;1&gt;y&amp;&amp;x.push(y)}else h=u*u-4*p*l,v=Math.sqrt(h),0&gt;h||(b=(-u+v)/(2*l),b&gt;0&amp;&amp;1&gt;b&amp;&amp;x.push(b),w=(-u-v)/(2*l),w&gt;0&amp;&amp;1&gt;w&amp;&amp;x.push(w));for(f=x.length,g=f;f--;)y=x[f],_=1-y,k=_*_*_*t+3*_*_*y*i+3*_*y*y*r+y*y*y*o,c[0][f]=k,M=_*_*_*e+3*_*_*y*n+3*_*y*y*s+y*y*y*a,c[1][f]=M;return c[0][g]=t,c[1][g]=e,c[0][g+1]=o,c[1][g+1]=a,[Math.min.apply(null,c[0]),Math.max.apply(null,c[1]),Math.max.apply(null,c[0]),Math.min.apply(null,c[1])]},r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){var t,e,i,n,r,s,o,u,h,c;for(e=l(),n=[],t=i=0,r=this.x0.length;r&gt;=0?r&gt;i:i&gt;r;t=r&gt;=0?++i:--i)isNaN(this.x0[t]+this.x1[t]+this.y0[t]+this.y1[t]+this.cx0[t]+this.cy0[t]+this.cx1[t]+this.cy1[t])||(s=a(this.x0[t],this.y0[t],this.x1[t],this.y1[t],this.cx0[t],this.cy0[t],this.cx1[t],this.cy1[t]),o=s[0],h=s[1],u=s[2],c=s[3],n.push([o,h,u,c,{i:t}]));return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g;if(p=i.sx0,f=i.sy0,d=i.sx1,g=i.sy1,a=i.scx,l=i.scx0,h=i.scy0,u=i.scx1,c=i.scy1,this.visuals.line.do_stroke){for(o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(p[n]+f[n]+d[n]+g[n]+l[n]+h[n]+u[n]+c[n])||(t.beginPath(),t.moveTo(p[n],f[n]),t.bezierCurveTo(l[n],h[n],u[n],c[n],d[n],g[n]),this.visuals.line.set_vectorize(t,n),o.push(t.stroke()));return o}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type="Bezier",e.prototype.visuals=["line"],e.prototype.coords=[["x0","y0"],["x1","y1"],["cx0","cy0"],["cx1","cy1"]],e}(s.Model),e.exports={Model:n,View:r}},{"./glyph":158,rbush:89,underscore:92}],155:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty;f=null!=i._bokehTest?void 0:t("gloo2"),h=t("../../common/color"),c=h.color2rgba,g=function(t){return 2&gt;t&amp;&amp;(t=Math.sqrt(2*t)),t},p=function(t,e){var i,n,r,s;for(i=new Float32Array(t),n=r=0,s=t;s&gt;=0?s&gt;r:r&gt;s;n=s&gt;=0?++r:--r)i[n]=e;return i},d=function(t,e,i){var n,r,s,o,a,l,u;for(n=new Float32Array(t*e),r=o=0,l=t;l&gt;=0?l&gt;o:o&gt;l;r=l&gt;=0?++o:--o)for(s=a=0,u=e;u&gt;=0?u&gt;a:a&gt;u;s=u&gt;=0?++a:--a)n[r*e+s]=i[s];return n},u=function(t,e,i,n,r,s){var o;return e.used=!0,null!=r[s].fixed_value?(t.set_attribute(i,"float",null,r[s].fixed_value),e.used=!1):(o=new Float32Array(r.cache[s+"_array"]),e.set_size(4*n),e.set_data(0,o),t.set_attribute(i,"float",[e,0,0])),o},l=function(t,e,i,n,r){var s,o,a,l,u,h,d,f,g,m,_;if(f=4,e.used=!0,null!=r.color.fixed_value&amp;&amp;null!=r.alpha.fixed_value)_=c(r.color.fixed_value,r.alpha.fixed_value),t.set_attribute(i,"vec4",null,_),e.used=!1;else{for(a=null!=r.color.fixed_value?function(){var t,e,i;for(i=[],l=t=0,e=n;e&gt;=0?e&gt;t:t&gt;e;l=e&gt;=0?++t:--t)i.push(r.color.fixed_value);return i}():r.cache.color_array,o=null!=r.alpha.fixed_value?p(n,r.alpha.fixed_value):r.cache.alpha_array,s=new Float32Array(n*f),l=h=0,g=n;g&gt;=0?g&gt;h:h&gt;g;l=g&gt;=0?++h:--h)for(_=c(a[l],o[l]),u=d=0,m=f;m&gt;=0?m&gt;d:d&gt;m;u=m&gt;=0?++d:--d)s[l*f+u]=_[u];e.set_size(n*f*4),e.set_data(0,s),t.set_attribute(i,"vec4",[e,0,0])}return s},n=function(){function t(t,e){this.gl=t,this.glyph=e,this.nvertices=0,this.size_changed=!1,this.data_changed=!1,this.visuals_changed=!1,this.init()}return t.prototype.GLYPH="",t.prototype.VERT="",t.prototype.FRAG="",t.prototype.set_data_changed=function(t){return t!==this.nvertices&amp;&amp;(this.nvertices=t,this.size_changed=!0),this.data_changed=!0},t.prototype.set_visuals_changed=function(){return this.visuals_changed=!0},t}(),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.GLYPH="line",e.prototype.VERT="xxx",e.prototype.FRAG="xxx",e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.VERT="precision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\n//\nuniform vec2 u_canvas_size;\nuniform vec2 u_offset;\nuniform vec2 u_scale;\nuniform float u_antialias;\n//\nattribute float a_x;\nattribute float a_y;\nattribute float a_size;\nattribute float a_angle;  // in radians\nattribute float a_linewidth;\nattribute vec4  a_fg_color;\nattribute vec4  a_bg_color;\n//\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec4  v_fg_color;\nvarying vec4  v_bg_color;\nvarying vec2  v_rotation;\n\nvoid main (void)\n{\n    v_size = a_size;\n    v_linewidth = a_linewidth;\n    v_fg_color = a_fg_color;\n    v_bg_color = a_bg_color;\n    v_rotation = vec2(cos(-a_angle), sin(-a_angle));\n    // Calculate position - the -0.5 is to correct for canvas origin\n    vec2 pos = vec2(a_x, a_y) * u_scale + u_offset - vec2(0.5, 0.5); // in pixels\n    pos /= u_canvas_size;  // in 0..1\n    gl_Position = vec4(pos*2.0-1.0, 0.0, 1.0);\n    gl_Position.y *= -1.0;        \n    gl_PointSize = SQRT_2 * v_size + 2.0 * (a_linewidth + 1.5*u_antialias);\n}",e.prototype.FRAG="precision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\nconst float PI = 3.14159265358979323846264;\n//\nuniform float u_antialias;\n//\nvarying vec4  v_fg_color;\nvarying vec4  v_bg_color;\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec2  v_rotation;\n\nMARKERCODE\n\nvec4 outline(float distance, float linewidth, float antialias, vec4 fg_color, vec4 bg_color)\n{\n    vec4 frag_color;\n    float t = linewidth/2.0 - antialias;\n    float signed_distance = distance;\n    float border_distance = abs(signed_distance) - t;\n    float alpha = border_distance/antialias;\n    alpha = exp(-alpha*alpha);\n    \n    // If fg alpha is zero, it probably means no outline. To avoid a dark outline\n    // shining through due to aa, we set the fg color to the bg color. Avoid if (i.e. branching).\n    float select = float(bool(fg_color.a));\n    fg_color.rgb = select * fg_color.rgb + (1.0  - select) * bg_color.rgb;\n    // Similarly, if we want a transparent bg\n    select = float(bool(bg_color.a));\n    bg_color.rgb = select * bg_color.rgb + (1.0  - select) * fg_color.rgb;\n    \n    if( border_distance &lt; 0.0)\n        frag_color = fg_color;\n    else if( signed_distance &lt; 0.0 ) {\n        frag_color = mix(bg_color, fg_color, sqrt(alpha));\n    } else {\n        if( abs(signed_distance) &lt; (linewidth/2.0 + antialias) ) {\n            frag_color = vec4(fg_color.rgb, fg_color.a * alpha);\n        } else {\n            discard;\n        }\n    }\n    return frag_color;\n}\n\nvoid main()\n{\n    vec2 P = gl_PointCoord.xy - vec2(0.5, 0.5);\n    P = vec2(v_rotation.x*P.x - v_rotation.y*P.y,\n             v_rotation.y*P.x + v_rotation.x*P.y);\n    float point_size = SQRT_2*v_size  + 2.0 * (v_linewidth + 1.5*u_antialias);\n    float distance = marker(P*point_size, v_size);\n    gl_FragColor = outline(distance, v_linewidth, u_antialias, v_fg_color, v_bg_color);\n    //gl_FragColor.rgb *= gl_FragColor.a;  // pre-multiply alpha\n}",e.prototype.MARKERCODE="&lt;defined in subclasses&gt;",e.prototype.init=function(){var t,e;return e=this.gl,t=this.FRAG.replace(/MARKERCODE/,this.MARKERCODE),this.last_trans={},this.prog=new f.Program(e),this.prog.set_shaders(this.VERT,t),this.vbo_x=new f.VertexBuffer(e),this.prog.set_attribute("a_x","float",[this.vbo_x,0,0]),this.vbo_y=new f.VertexBuffer(e),this.prog.set_attribute("a_y","float",[this.vbo_y,0,0]),this.vbo_s=new f.VertexBuffer(e),this.prog.set_attribute("a_size","float",[this.vbo_s,0,0]),this.vbo_a=new f.VertexBuffer(e),this.prog.set_attribute("a_angle","float",[this.vbo_a,0,0]),this.vbo_linewidth=new f.VertexBuffer(e),this.vbo_fg_color=new f.VertexBuffer(e),this.vbo_bg_color=new f.VertexBuffer(e),this.index_buffer=new f.IndexBuffer(e)},e.prototype.draw=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v;if(u=e.glglyph.nvertices,this.data_changed?(this._set_data(u),this.data_changed=!1):null==this.glyph.radius||i.sx===this.last_trans.sx&amp;&amp;i.sy===this.last_trans.sy||(this.last_trans=i,this.vbo_s.set_data(0,new Float32Array(function(){var t,e,i,n;for(i=this.glyph.sradius,n=[],t=0,e=i.length;e&gt;t;t++)m=i[t],n.push(2*m);return n}.call(this)))),this.visuals_changed&amp;&amp;(this._set_visuals(u),this.visuals_changed=!1),this.prog.set_uniform("u_canvas_size","vec2",[i.width,i.height]),this.prog.set_uniform("u_offset","vec2",[i.dx[0],i.dy[0]]),this.prog.set_uniform("u_scale","vec2",[i.sx,i.sy]),this.prog.set_attribute("a_x","float",[e.glglyph.vbo_x,0,0]),this.prog.set_attribute("a_y","float",[e.glglyph.vbo_y,0,0]),this.prog.set_attribute("a_size","float",[e.glglyph.vbo_s,0,0]),this.prog.set_attribute("a_angle","float",[e.glglyph.vbo_a,0,0]),0!==t.length){if(t.length===u)return this.prog.draw(this.gl.POINTS,[0,u]);if(65535&gt;u)return this.index_buffer.set_size(2*t.length),this.index_buffer.set_data(0,new Uint16Array(t)),this.prog.draw(this.gl.POINTS,this.index_buffer);for(s=64e3,r=[],o=a=0,p=Math.ceil(u/s);p&gt;=0?p&gt;a:a&gt;p;o=p&gt;=0?++a:--a)r.push([]);for(o=l=0,d=t.length;d&gt;=0?d&gt;l:l&gt;d;o=d&gt;=0?++l:--l)v=t[o]%s,n=Math.floor(t[o]/s),r[n].push(v);for(g=[],n=h=0,f=r.length;f&gt;=0?f&gt;h:h&gt;f;n=f&gt;=0?++h:--h)_=new Uint16Array(r[n]),c=n*s*4,0!==_.length&amp;&amp;(this.prog.set_attribute("a_x","float",[e.glglyph.vbo_x,0,c]),this.prog.set_attribute("a_y","float",[e.glglyph.vbo_y,0,c]),this.prog.set_attribute("a_size","float",[e.glglyph.vbo_s,0,c]),this.prog.set_attribute("a_angle","float",[e.glglyph.vbo_a,0,c]),this.vbo_linewidth.used&amp;&amp;this.prog.set_attribute("a_linewidth","float",[this.vbo_linewidth,0,c]),this.vbo_fg_color.used&amp;&amp;this.prog.set_attribute("a_fg_color","vec4",[this.vbo_fg_color,0,4*c]),this.vbo_bg_color.used&amp;&amp;this.prog.set_attribute("a_bg_color","vec4",[this.vbo_bg_color,0,4*c]),this.index_buffer.set_size(2*_.length),this.index_buffer.set_data(0,_),g.push(this.prog.draw(this.gl.POINTS,this.index_buffer)));return g}},e.prototype._set_data=function(t){var e,i;return e=4*t,this.vbo_x.set_size(e),this.vbo_y.set_size(e),this.vbo_a.set_size(e),this.vbo_s.set_size(e),this.vbo_x.set_data(0,new Float32Array(this.glyph.x)),this.vbo_y.set_data(0,new Float32Array(this.glyph.y)),null!=this.glyph.angle&amp;&amp;this.vbo_a.set_data(0,new Float32Array(this.glyph.angle)),null!=this.glyph.radius?this.vbo_s.set_data(0,new Float32Array(function(){var t,e,n,r;for(n=this.glyph.sradius,r=[],t=0,e=n.length;e&gt;t;t++)i=n[t],r.push(2*i);return r}.call(this))):this.vbo_s.set_data(0,new Float32Array(this.glyph.size))},e.prototype._set_visuals=function(t){return u(this.prog,this.vbo_linewidth,"a_linewidth",t,this.glyph.visuals.line,"width"),l(this.prog,this.vbo_fg_color,"a_fg_color",t,this.glyph.visuals.line),l(this.prog,this.vbo_bg_color,"a_bg_color",t,this.glyph.visuals.fill),this.prog.set_uniform("u_antialias","float",[.9])},e}(n),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.GLYPH="circle",e.prototype.MARKERCODE="// --- disc\nfloat marker(vec2 P, float size)\n{\n    return length(P) - size/2.0;\n}",e}(o),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.GLYPH="square",e.prototype.MARKERCODE="// --- square\nfloat marker(vec2 P, float size)\n{\n    return max(abs(P.x), abs(P.y)) - size/2.0;\n}",e}(o),e.exports={CircleGLGlyph:r,SquareGLGlyph:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../common/color":108,gloo2:298}],156:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),a=t("./bokehgl"),s=t("./glyph"),l=t("../../common/hittest"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._init_gl=function(t){return this.glglyph=new a.CircleGLGlyph(t,this)},e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){var t,e;return null!=this.radius?"data"===this.distances.radius.units?(t=this.fields.radius_dimension.fixed_value,this.sradius=this.sdist(this.renderer[t+"mapper"],this[t],this.radius)):(this.sradius=this.radius,this.max_size=2*this.max_radius):this.sradius=function(){var t,i,n,r;for(n=this.size,r=[],t=0,i=n.length;i&gt;t;t++)e=n[t],r.push(e/2);return r}.call(this)},e.prototype._mask_data=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_;return e=this.renderer.plot_view.frame.get("h_range"),p=this.renderer.plot_view.frame.get("v_range"),null!=this.radius&amp;&amp;"data"===this.distances.radius.units?(l=e.get("start"),u=e.get("end"),i=this.renderer.xmapper.v_map_from_target([l,u],!0),f=i[0],g=i[1],f-=this.max_radius,g+=this.max_radius,h=p.get("start"),c=p.get("end"),n=this.renderer.ymapper.v_map_from_target([h,c],!0),m=n[0],_=n[1],m-=this.max_radius,_+=this.max_radius):(l=e.get("start")-this.max_size,u=e.get("end")+this.max_size,r=this.renderer.xmapper.v_map_from_target([l,u],!0),f=r[0],g=r[1],h=p.get("start")-this.max_size,c=p.get("end")+this.max_size,s=this.renderer.ymapper.v_map_from_target([h,c],!0),m=s[0],_=s[1]),f&gt;g&amp;&amp;(o=[g,f],f=o[0],g=o[1]),m&gt;_&amp;&amp;(a=[_,m],m=a[0],_=a[1]),function(){var t,e,i,n;for(i=this.index.search([f,m,g,_]),n=[],t=0,e=i.length;e&gt;t;t++)d=i[t],n.push(d[4].i);return n}.call(this)},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u;for(l=i.sx,u=i.sy,a=i.sradius,o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(l[n]+u[n]+a[n])||(t.beginPath(),t.arc(l[n],u[n],a[n],0,2*Math.PI,!1),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,n),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,n),o.push(t.stroke())):o.push(void 0));return o},e.prototype._hit_point=function(t){var e,i,n,r,s,a,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j;if(d=[t.vx,t.vy],C=d[0],S=d[1],E=this.renderer.xmapper.map_from_target(C,!0),R=this.renderer.ymapper.map_from_target(S,!0),null!=this.radius&amp;&amp;"data"===this.distances.radius.units?(I=E-this.max_radius,N=E+this.max_radius,z=R-this.max_radius,j=R+this.max_radius):(D=C-this.max_size,T=C+this.max_size,f=this.renderer.xmapper.v_map_from_target([D,T],!0),I=f[0],N=f[1],g=[Math.min(I,N),Math.max(I,N)],I=g[0],N=g[1],A=S-this.max_size,P=S+this.max_size,m=this.renderer.ymapper.v_map_from_target([A,P],!0),z=m[0],j=m[1],_=[Math.min(z,j),Math.max(z,j)],z=_[0],j=_[1]),e=function(){var t,e,i,n;for(i=this.index.search([I,z,N,j]),n=[],t=0,e=i.length;e&gt;t;t++)c=i[t],n.push(c[4].i);return n}.call(this),n=[],null!=this.radius&amp;&amp;"data"===this.distances.radius.units)for(s=0,u=e.length;u&gt;s;s++)r=e[s],p=Math.pow(this.sradius[r],2),b=this.renderer.xmapper.map_to_target(E,!0),w=this.renderer.xmapper.map_to_target(this.x[r],!0),k=this.renderer.ymapper.map_to_target(R,!0),M=this.renderer.ymapper.map_to_target(this.y[r],!0),i=Math.pow(b-w,2)+Math.pow(k-M,2),p&gt;=i&amp;&amp;n.push([r,i]);else for(y=this.renderer.plot_view.canvas.vx_to_sx(C),x=this.renderer.plot_view.canvas.vy_to_sy(S),a=0,h=e.length;h&gt;a;a++)r=e[a],p=Math.pow(this.sradius[r],2),i=Math.pow(this.sx[r]-y,2)+Math.pow(this.sy[r]-x,2),p&gt;=i&amp;&amp;n.push([r,i]);return n=o.chain(n).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),v=l.create_hit_test_result(),v["1d"].indices=n,v},e.prototype._hit_span=function(t){var e,i,n,r,s,o,a,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k;return n=[t.vx,t.vy],c=n[0],f=n[1],r=this.bounds(),y=r[0],k=r[1],h=l.create_hit_test_result(),"h"===t.direction?(w=k[0],x=k[1],null!=this.radius&amp;&amp;"data"===this.distances.radius.units?(p=c-this.max_radius,d=c+this.max_radius,s=this.renderer.xmapper.v_map_from_target([p,d]),_=s[0],v=s[1]):(i=this.max_size/2,p=c-i,d=c+i,o=this.renderer.xmapper.v_map_from_target([p,d],!0),_=o[0],v=o[1])):(_=y[0],v=y[1],null!=this.radius&amp;&amp;"data"===this.distances.radius.units?(g=f-this.max_radius,m=f+this.max_radius,a=this.renderer.ymapper.v_map_from_target([g,m]),w=a[0],x=a[1]):(i=this.max_size/2,g=f-i,m=f+i,u=this.renderer.ymapper.v_map_from_target([g,m],!0),w=u[0],x=u[1])),e=function(){var t,e,i,n;for(i=this.index.search([_,w,v,x]),n=[],t=0,e=i.length;e&gt;t;t++)b=i[t],n.push(b[4].i);return n}.call(this),h["1d"].indices=e,h},e.prototype._hit_rect=function(t){var e,i,n,r,s,o,a,u;return e=this.renderer.xmapper.v_map_from_target([t.vx0,t.vx1],!0),s=e[0],o=e[1],i=this.renderer.ymapper.v_map_from_target([t.vy0,t.vy1],!0),a=i[0],u=i[1],n=l.create_hit_test_result(),n["1d"].indices=function(){var t,e,i,n;for(i=this.index.search([s,a,o,u]),n=[],t=0,e=i.length;e&gt;t;t++)r=i[t],n.push(r[4].i);return n}.call(this),n},e.prototype._hit_poly=function(t){var e,i,n,r,s,a,u,h,c,p,d,f,g;for(a=[o.clone(t.vx),o.clone(t.vy)],f=a[0],g=a[1],p=this.renderer.plot_view.canvas.v_vx_to_sx(f),d=this.renderer.plot_view.canvas.v_vy_to_sy(g),e=function(){c=[];for(var t=0,e=this.sx.length;e&gt;=0?e&gt;t:t&gt;e;e&gt;=0?t++:t--)c.push(t);return c}.apply(this),i=[],n=s=0,u=e.length;u&gt;=0?u&gt;s:s&gt;u;n=u&gt;=0?++s:--s)r=e[n],l.point_in_poly(this.sx[n],this.sy[n],p,d)&amp;&amp;i.push(r);return h=l.create_hit_test_result(),h["1d"].indices=i,h},e.prototype.draw_legend=function(t,e,i,n,r){var s,o,a,l,u,h,c;return l=null!=(a=this.get_reference_point())?a:0,o=[l],h={},h[l]=(e+i)/2,c={},c[l]=(n+r)/2,u={},u[l]=.2*Math.min(Math.abs(i-e),Math.abs(r-n)),s={sx:h,sy:c,sradius:u},this._render(t,o,s)},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type="Circle",e.prototype.distances=["?radius","?size"],e.prototype.fields=["radius_dimension:string"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{size:4})},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{radius_dimension:"x"})},e}(s.Model),e.exports={Model:n,View:r}},{"../../common/hittest":116,"./bokehgl":155,"./glyph":158,underscore:92}],157:[function(t,e,i){(function(i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t("underscore"),a=t("./glyph"),s=null!=i._bokehTest?void 0:t("gear_utils"),n=t("../../util/bezier"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.smodule=this.sdist(this.renderer.xmapper,this.x,this.module,"edge")},e.prototype._render=function(t,e,i){var n,r,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S;for(M=i.sx,C=i.sy,k=i.smodule,r=i.angle,D=i.teeth,f=i.pressure_angle,x=i.shaft_size,l=i.internal,h=0,p=e.length;p&gt;h;h++)if(a=e[h],!isNaN(M[a]+C[a]+r[a]+k[a]+D[a]+f[a]+x[a]+l[a])){for(d=k[a]*D[a]/2,o=l[a]?s.create_internal_gear_tooth:s.create_gear_tooth,b=o(k[a],D[a],f[a]),g=b.slice(0,3),n=g[0],T=g[1],S=g[2],y=b.slice(3),t.save(),t.translate(M[a],C[a]),t.rotate(r[a]),t.beginPath(),v=2*Math.PI/D[a],t.moveTo(T,S),u=c=0,m=D[a];m&gt;=0?m&gt;c:c&gt;m;u=m&gt;=0?++c:--c)this._render_seq(t,y),t.rotate(v);t.closePath(),l[a]?(_=d+2.75*k[a],t.moveTo(_,0),t.arc(0,0,_,0,2*Math.PI,!0)):x[a]&gt;0&amp;&amp;(w=d*x[a],t.moveTo(w,0),t.arc(0,0,w,0,2*Math.PI,!0)),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,a),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,a),t.stroke()),t.restore()}},e.prototype._render_seq=function(t,e){var i,r,s,o,a,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I;for(u=0;u&lt;e.length;)switch(l.isString(e[u])&amp;&amp;(i=e[u],u+=1),i){case"M":g=e.slice(u,u+2),P=g[0],I=g[1],t.moveTo(P,I),m=[P,I],d=m[0],f=m[1],u+=2;break;case"L":v=e.slice(u,u+2),P=v[0],I=v[1],t.lineTo(P,I),y=[P,I],d=y[0],f=y[1],u+=2;break;case"C":b=e.slice(u,u+6),r=b[0],o=b[1],s=b[2],a=b[3],P=b[4],I=b[5],t.bezierCurveTo(r,o,s,a,P,I),w=[P,I],d=w[0],f=w[1],u+=6;break;case"Q":x=e.slice(u,u+4),r=x[0],o=x[1],P=x[2],I=x[3],t.quadraticCurveTo(r,o,P,I),k=[P,I],d=k[0],f=k[1],u+=4;break;case"A":for(M=e.slice(u,u+7),D=M[0],T=M[1],E=M[2],c=M[3],A=M[4],P=M[5],I=M[6],S=n.arc_to_bezier(d,f,D,T,-E,c,1-A,P,I),h=0,p=S.length;p&gt;h;h++)C=S[h],r=C[0],o=C[1],s=C[2],a=C[3],P=C[4],I=C[5],t.bezierCurveTo(r,o,s,a,P,I);_=[P,I],d=_[0],f=_[1],u+=7;break;default:throw new Error("unexpected command: "+i)}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(a.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type="Gear",e.prototype.angles=["angle"],e.prototype.fields=["module","internal:bool","pressure_angle","shaft_size","teeth"],e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{angle:0,pressure_angle:20,shaft_size:.3,internal:!1})},e}(a.Model),e.exports={Model:r,View:o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../util/bezier":248,"./glyph":158,gear_utils:297,underscore:92}],158:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;l=t("underscore"),d=t("rbush"),u=t("../../common/bbox"),h=t("../../common/logging").logger,a=t("../../common/has_parent"),r=t("../../common/continuum_view"),p=t("../../common/properties"),n=t("../../mapper/categorical_mapper"),c=t("proj4"),f=c.defs("GOOGLE"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.initialize=function(t){var i,n,r,s;e.__super__.initialize.call(this,t),this.renderer=t.renderer,i=this.renderer.plot_view.canvas_view.ctx,null!=i.glcanvas&amp;&amp;this._init_gl(i.glcanvas.gl),s=p.factories;for(r in s)n=s[r],this[r]={},this[r]=l.extend(this[r],n(this.model));return this.warned={},this},e.prototype.render=function(t,e,i){if(this.mget("visible")){if(t.beginPath(),null!=this.glglyph&amp;&amp;this._render_gl(t,e,i))return;return this._render(t,e,i)}},e.prototype._render_gl=function(t,e,i){var n,r,s,o;return s=this.renderer.map_to_screen([0,1,2],[0,1,2]),n=s[0],r=s[1],Math.abs(n[1]-n[0]-(n[2]-n[1]))&gt;1e-6||Math.abs(r[1]-r[0]-(r[2]-r[1]))&gt;1e-6?!1:(o={width:t.glcanvas.width,height:t.glcanvas.height,dx:n,dy:r,sx:n[1]-n[0],sy:r[1]-r[0]},this.glglyph.draw(e,i,o),!0)},e.prototype.map_data=function(){var t,e,i,n,r,s,o,a,u,h,c,p,d,f,g,m,_;for(r=this.model.coords,e=0,n=r.length;n&gt;e;e++)if(s=r[e],m=s[0],_=s[1],d="s"+m,g="s"+_,l.isArray(null!=(o=this[m])?o[0]:void 0))for(a=[[],[]],this[d]=a[0],this[g]=a[1],t=i=0,u=this[m].length;u&gt;=0?u&gt;i:i&gt;u;t=u&gt;=0?++i:--i)h=this.renderer.map_to_screen(this[m][t],this[_][t]),p=h[0],f=h[1],this[d].push(p),this[g].push(f);else c=this.renderer.map_to_screen(this[m],this[_]),this[d]=c[0],this[g]=c[1];return this._map_data()},e.prototype.project_xy=function(t,e){var i,n,r,s,o,a,l,u;for(s=[],a=[],i=n=0,l=t.length;l&gt;=0?l&gt;n:n&gt;l;i=l&gt;=0?++n:--n)u=c(f,[t[i],e[i]]),r=u[0],o=u[1],s[i]=r,a[i]=o;return[s,a]},e.prototype.project_xsys=function(t,e){var i,n,r,s,o,a,l,u;for(s=[],a=[],i=n=0,l=t.length;l&gt;=0?l&gt;n:n&gt;l;i=l&gt;=0?++n:--n)u=this.project_xy(t[i],e[i]),r=u[0],o=u[1],s[i]=r,a[i]=o;return[s,a]},e.prototype.set_data=function(t){var e,i,n,r,s,o,a,l;n=this.coords;for(e in n)i=n[e],this[e]=i.array(t);this.renderer.plot_model.use_map&amp;&amp;(null!=this.x&amp;&amp;(r=this.project_xy(this.x,this.y),this.x=r[0],this.y=r[1]),null!=this.xs&amp;&amp;(s=this.project_xsys(this.xs,this.ys),this.xs=s[0],this.ys=s[1])),o=this.angles;for(e in o)i=o[e],this[e]=i.array(t);a=this.distances;for(e in a)i=a[e],this[e]=i.array(t),this["max_"+e]=Math.max.apply(null,this[e]);l=this.fields;for(e in l)i=l[e],this[e]=i.array(t);return null!=this.glglyph&amp;&amp;this.glglyph.set_data_changed(this.x.length),this._set_data(),this.index=this._index_data()},e.prototype.set_visuals=function(t){var e,i,n;n=this.visuals;for(e in n)i=n[e],i.warm_cache(t);return null!=this.glglyph?this.glglyph.set_visuals_changed():void 0},e.prototype.bounds=function(){var t;return null==this.index?u.empty():(t=this.index.data.bbox,this._bounds([[t[0],t[2]],[t[1],t[3]]]))},e.prototype.scx=function(t){return this.sx[t]},e.prototype.scy=function(t){return this.sy[t]},e.prototype._init_gl=function(){return!1},e.prototype._set_data=function(){return null},e.prototype._map_data=function(){return null},e.prototype._mask_data=function(t){return t},e.prototype._bounds=function(t){return t},e.prototype._xy_index=function(){var t,e,i,r,s,o,a,l,u;for(e=d(),r=[],a=this.renderer.xmapper instanceof n.Model?this.renderer.xmapper.v_map_to_target(this.x,!0):this.x,u=this.renderer.ymapper instanceof n.Model?this.renderer.ymapper.v_map_to_target(this.y,!0):this.y,t=i=0,s=a.length;s&gt;=0?s&gt;i:i&gt;s;t=s&gt;=0?++i:--i)o=a[t],!isNaN(o)&amp;&amp;isFinite(o)&amp;&amp;(l=u[t],!isNaN(l)&amp;&amp;isFinite(l)&amp;&amp;r.push([o,l,o,l,{i:t}]));return e.load(r),e},e.prototype.sdist=function(t,e,i,n,r){var s,o,a,u,h,c,p;return null==n&amp;&amp;(n="edge"),null==r&amp;&amp;(r=!1),l.isString(e[0])&amp;&amp;(e=t.v_map_to_target(e)),"center"===n?(o=function(){var t,e,n;for(n=[],t=0,e=i.length;e&gt;t;t++)s=i[t],n.push(s/2);return n}(),u=function(){var t,i,n;for(n=[],a=t=0,i=e.length;i&gt;=0?i&gt;t:t&gt;i;a=i&gt;=0?++t:--t)n.push(e[a]-o[a]);return n}(),h=function(){var t,i,n;for(n=[],a=t=0,i=e.length;i&gt;=0?i&gt;t:t&gt;i;a=i&gt;=0?++t:--t)n.push(e[a]+o[a]);return n}()):(u=e,h=function(){var t,e,n;for(n=[],a=t=0,e=u.length;e&gt;=0?e&gt;t:t&gt;e;a=e&gt;=0?++t:--t)n.push(u[a]+i[a]);return n}()),c=t.v_map_to_target(u),p=t.v_map_to_target(h),r?function(){var t,e,i;for(i=[],a=t=0,e=c.length;e&gt;=0?e&gt;t:t&gt;e;a=e&gt;=0?++t:--t)i.push(Math.ceil(Math.abs(p[a]-c[a])));return i}():function(){var t,e,i;for(i=[],a=t=0,e=c.length;e&gt;=0?e&gt;t:t&gt;e;a=e&gt;=0?++t:--t)i.push(Math.abs(p[a]-c[a]));return i}()},e.prototype.hit_test=function(t){var e,i;return i=null,e="_hit_"+t.type,null!=this[e]?i=this[e](t):null==this.warned[t.type]&amp;&amp;(h.error("'"+t.type+"' selection not available for "+this.model.type),this.warned[t.type]=!0),i},e.prototype.get_reference_point=function(){var t;return t=this.mget("reference_point"),l.isNumber(t)?this.data[t]:t},e.prototype.draw_legend=function(t,e,i,n,r){return null},e.prototype._generic_line_legend=function(t,e,i,n,r){var s,o;return o=null!=(s=this.get_reference_point())?s:0,t.save(),t.beginPath(),t.moveTo(e,(n+r)/2),t.lineTo(i,(n+r)/2),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,o),t.stroke()),t.restore()},e.prototype._generic_area_legend=function(t,e,i,n,r){var s,o,a,l,u,h,c,p,d,f,g;return h=null!=(u=this.get_reference_point())?u:0,l=[h],g=Math.abs(i-e),o=.1*g,a=Math.abs(r-n),s=.1*a,c=e+o,p=i-o,d=n+s,f=r-s,this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,h),t.fillRect(c,d,p-c,f-d)),this.visuals.line.do_stroke?(t.beginPath(),t.rect(c,d,p-c,f-d),this.visuals.line.set_vectorize(t,h),t.stroke()):void 0},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.visuals=["line","fill"],e.prototype.coords=[["x","y"]],e.prototype.distances=[],e.prototype.angles=[],e.prototype.fields=[],e.prototype.fill_defaults={fill_color:"gray",fill_alpha:1},e.prototype.line_defaults={line_color:"black",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0},e.prototype.text_defaults={text_font:"helvetica",text_font_size:"12pt",text_font_style:"normal",text_color:"#444444",text_alpha:1,text_align:"left",text_baseline:"bottom"},e.prototype.defaults=function(){return l.extend({visible:!0})},e.prototype.display_defaults=function(){var t,i,n,r,s,o;for(o={},s=this.visuals,i=0,n=s.length;n&gt;i;i++){switch(r=s[i]){case"line":t=this.line_defaults;break;case"fill":t=this.fill_defaults;break;case"text":t=this.text_defaults;break;default:h.warn("unknown visual property type '"+r+"'");continue}o=l.extend(o,e.__super__.display_defaults.call(this),t)}return o},e}(a),e.exports={Model:s,View:o}},{"../../common/bbox":100,"../../common/continuum_view":109,"../../common/has_parent":114,"../../common/logging":119,"../../common/properties":126,
        "../../mapper/categorical_mapper":138,proj4:56,rbush:89,underscore:92}],159:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t("underscore"),h=t("../../common/logging").logger,o=t("../../common/has_parent"),a=t("../../common/plot_widget"),n=t("../../range/factor_range"),l=t("../../source/remote_data_source"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t){var i,n,r;return e.__super__.initialize.call(this,t),this.glyph=this.build_glyph_view(this.mget("glyph")),r=this.mget("selection_glyph"),null==r&amp;&amp;(r=this.mget("glyph").clone(),r.set(this.model.selection_defaults,{silent:!0})),this.selection_glyph=this.build_glyph_view(r),n=this.mget("nonselection_glyph"),null==n&amp;&amp;(n=this.mget("glyph").clone(),n.set(this.model.nonselection_defaults,{silent:!0})),this.nonselection_glyph=this.build_glyph_view(n),i=this.mget("glyph").clone(),i.set(this.model.decimated_defaults,{silent:!0}),this.decimated_glyph=this.build_glyph_view(i),this.xmapper=this.plot_view.frame.get("x_mappers")[this.mget("x_range_name")],this.ymapper=this.plot_view.frame.get("y_mappers")[this.mget("y_range_name")],this.set_data(!1),this.mget("data_source")instanceof l.RemoteDataSource?this.mget("data_source").setup(this.plot_view,this.glyph):void 0},e.prototype.build_glyph_view=function(t){return new t.default_view({model:t,renderer:this})},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change",this.request_render),this.listenTo(this.mget("data_source"),"change",this.set_data),this.listenTo(this.mget("data_source"),"select",this.request_render),this.listenTo(this.mget("glyph"),"propchange",function(){return this.glyph.set_visuals(this.mget("data_source")),this.request_render()})},e.prototype.have_selection_glyphs=function(){return!0},e.prototype.setup_server_data=function(){},e.prototype.set_data=function(t,e){var i,n,r,s,o,a,l,u,c;for(null==t&amp;&amp;(t=!0),c=Date.now(),u=this.mget("data_source"),this.glyph.set_data(u,e),this.glyph.set_visuals(u),this.decimated_glyph.set_visuals(u),this.selection_glyph.set_visuals(u),this.nonselection_glyph.set_visuals(u),s=u.get_length(),null==s&amp;&amp;(s=1),this.all_indices=function(){l=[];for(var t=0;s&gt;=0?s&gt;t:t&gt;s;s&gt;=0?t++:t--)l.push(t);return l}.apply(this),o=this.plot_model.get("lod_factor"),this.decimated=[],n=r=0,a=Math.floor(this.all_indices.length/o);a&gt;=0?a&gt;r:r&gt;a;n=a&gt;=0?++r:--r)this.decimated.push(this.all_indices[n*o]);return i=Date.now()-c,h.debug(this.glyph.model.type+" GlyphRenderer ("+this.model.id+"): set_data finished in "+i+"ms"),this.set_data_timestamp=Date.now(),t?this.request_render():void 0},e.prototype.render=function(){var t,e,i,n,r,s,o,a,l,u,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C;if(w=Date.now(),o=this.glyph.glglyph,x=Date.now(),this.glyph.map_data(),e=Date.now()-w,k=Date.now(),u=o?this.all_indices:this.glyph._mask_data(this.all_indices),i=Date.now()-k,t=this.plot_view.canvas_view.ctx,t.save(),v=this.mget("data_source").get("selected"),v=v&amp;&amp;0!==v.length?v["0d"].flag?u:v["1d"].indices.length&gt;0?v["1d"].indices:v["2d"].indices.length&gt;0?v["2d"].indices:[]:[],g=this.plot_model.get("lod_threshold"),this.plot_view.interactive&amp;&amp;!o&amp;&amp;null!=g&amp;&amp;this.all_indices.length&gt;g?(u=this.decimated,a=this.decimated_glyph,_=this.decimated_glyph,b=this.selection_glyph):(a=this.glyph,_=this.nonselection_glyph,b=this.selection_glyph),v.length&amp;&amp;this.have_selection_glyphs()){for(C=Date.now(),y={},c=0,d=v.length;d&gt;c;c++)l=v[c],y[l]=!0;for(v=new Array,m=new Array,p=0,f=u.length;f&gt;p;p++)l=u[p],null!=y[l]?v.push(l):m.push(l);r=Date.now()-C,M=Date.now(),_.render(t,m,this.glyph),b.render(t,v,this.glyph),n=Date.now()-M}else M=Date.now(),a.render(t,u,this.glyph),n=Date.now()-M;return this.last_dtrender=n,s=Date.now()-w,h.debug(this.glyph.model.type+" GlyphRenderer ("+this.model.id+"): render finished in "+s+"ms"),h.trace(" - map_data finished in       : "+e+"ms"),null!=i&amp;&amp;h.trace(" - mask_data finished in      : "+i+"ms"),null!=r&amp;&amp;h.trace(" - selection mask finished in : "+r+"ms"),h.trace(" - glyph renders finished in  : "+n+"ms"),t.restore()},e.prototype.map_to_screen=function(t,e){return this.plot_view.map_to_screen(t,e,this.mget("x_range_name"),this.mget("y_range_name"))},e.prototype.draw_legend=function(t,e,i,n,r){return this.glyph.draw_legend(t,e,i,n,r)},e.prototype.hit_test=function(t){return this.glyph.hit_test(t)},e}(a),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.default_view=s,e.prototype.type="GlyphRenderer",e.prototype.selection_defaults={},e.prototype.decimated_defaults={fill_alpha:.3,line_alpha:.3,fill_color:"grey",line_color:"grey"},e.prototype.nonselection_defaults={fill_alpha:.2,line_alpha:.2},e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{x_range_name:"default",y_range_name:"default",data_source:null})},e.prototype.display_defaults=function(){return u.extend({},e.__super__.display_defaults.call(this),{level:"glyph"})},e}(o),e.exports={Model:r,View:s}},{"../../common/has_parent":114,"../../common/logging":119,"../../common/plot_widget":125,"../../range/factor_range":145,"../../source/remote_data_source":205,underscore:92}],160:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("./glyph"),o=t("../../mapper/linear_color_mapper"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._set_data=function(){var t,e,i,n,r,s,o,l,u,h,c;for((null==this.image_data||this.image_data.length!==this.image.length)&amp;&amp;(this.image_data=new Array(this.image.length)),(null==this.width||this.width.length!==this.image.length)&amp;&amp;(this.width=new Array(this.image.length)),(null==this.height||this.height.length!==this.image.length)&amp;&amp;(this.height=new Array(this.image.length)),c=[],s=u=0,h=this.image.length;h&gt;=0?h&gt;u:u&gt;h;s=h&gt;=0?++u:--u)null!=this.rows?(this.height[s]=this.rows[s],this.width[s]=this.cols[s]):(this.height[s]=this.image[s].length,this.width[s]=this.image[s][0].length),i=document.createElement("canvas"),i.width=this.width[s],i.height=this.height[s],r=i.getContext("2d"),o=r.getImageData(0,0,this.width[s],this.height[s]),n=this.mget("color_mapper"),l=null!=this.rows?this.image[s]:a.flatten(this.image[s]),t=n.v_map_screen(l),e=new Uint8ClampedArray(t),o.data.set(e),r.putImageData(o,0,0),this.image_data[s]=i,this.max_dw=0,"data"===this.dw.units&amp;&amp;(this.max_dw=a.max(this.dw)),this.max_dh=0,"data"===this.dh.units&amp;&amp;(this.max_dh=a.max(this.dh)),c.push(this._xy_index());return c},e.prototype._map_data=function(){return this.sw=this.sdist(this.renderer.xmapper,this.x,this.dw,"edge",this.mget("dilate")),this.sh=this.sdist(this.renderer.ymapper,this.y,this.dh,"edge",this.mget("dilate"))},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;for(r=i.image_data,h=i.sx,c=i.sy,u=i.sw,l=i.sh,a=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),s=0,o=e.length;o&gt;s;s++)n=e[s],null!=r[n]&amp;&amp;(isNaN(h[n]+c[n]+u[n]+l[n])||(p=c[n],t.translate(0,p),t.scale(1,-1),t.translate(0,-p),t.drawImage(r[n],0|h[n],0|c[n],u[n],l[n]),t.translate(0,p),t.scale(1,-1),t.translate(0,-p)));return t.setImageSmoothingEnabled(a)},e.prototype.bounds=function(){var t;return t=this.index.data.bbox,[[t[0],t[2]+this.max_dw],[t[1],t[3]+this.max_dh]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Image",e.prototype.visuals=[],e.prototype.distances=["dw","dh"],e.prototype.fields=["image:array","?rows","?cols","palette:string"],e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{dilate:!1})},e}(n.Model),e.exports={Model:r,View:s}},{"../../mapper/linear_color_mapper":140,"./glyph":158,underscore:92}],161:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._set_data=function(t,e){var i,n,r,s,a,l,u,h,c,p,d,f,g,m;for((null==this.image_data||this.image_data.length!==this.image.length)&amp;&amp;(this.image_data=new Array(this.image.length)),(null==this.width||this.width.length!==this.image.length)&amp;&amp;(this.width=new Array(this.image.length)),(null==this.height||this.height.length!==this.image.length)&amp;&amp;(this.height=new Array(this.image.length)),m=[],u=p=0,f=this.image.length;f&gt;=0?f&gt;p:p&gt;f;u=f&gt;=0?++p:--p)if(null==e||u===e){if(null!=this.rows?(this.height[u]=this.rows[u],this.width[u]=this.cols[u]):(this.height[u]=this.image[u].length,this.width[u]=this.image[u][0].length),r=document.createElement("canvas"),r.width=this.width[u],r.height=this.height[u],a=r.getContext("2d"),h=a.getImageData(0,0,this.width[u],this.height[u]),null!=this.rows)h.data.set(new Uint8ClampedArray(this.image[u]));else{for(l=o.flatten(this.image[u]),i=new ArrayBuffer(4*l.length),s=new Uint32Array(i),c=d=0,g=l.length;g&gt;=0?g&gt;d:d&gt;g;c=g&gt;=0?++d:--d)s[c]=l[c];n=new Uint8ClampedArray(i),h.data.set(n)}a.putImageData(h,0,0),this.image_data[u]=r,this.max_dw=0,"data"===this.dw.units&amp;&amp;(this.max_dw=o.max(this.dw)),this.max_dh=0,"data"===this.dh.units?m.push(this.max_dh=o.max(this.dh)):m.push(void 0)}return m},e.prototype._map_data=function(){return this.sw=this.sdist(this.renderer.xmapper,this.x,this.dw,"edge",this.mget("dilate")),this.sh=this.sdist(this.renderer.ymapper,this.y,this.dh,"edge",this.mget("dilate"))},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;for(r=i.image_data,h=i.sx,c=i.sy,u=i.sw,l=i.sh,a=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),s=0,o=e.length;o&gt;s;s++)n=e[s],isNaN(h[n]+c[n]+u[n]+l[n])||(p=c[n],t.translate(0,p),t.scale(1,-1),t.translate(0,-p),t.drawImage(r[n],0|h[n],0|c[n],u[n],l[n]),t.translate(0,p),t.scale(1,-1),t.translate(0,-p));return t.setImageSmoothingEnabled(a)},e.prototype.bounds=function(){var t;return t=this.index.data.bbox,[[t[0],t[2]+this.max_dw],[t[1],t[3]+this.max_dh]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="ImageRGBA",e.prototype.visuals=[],e.prototype.distances=["dw","dh"],e.prototype.fields=["image:array","?rows","?cols"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{dilate:!1})},e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,underscore:92}],162:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._set_data=function(){var t;return this.image=function(){var e,i,n,r;for(n=this.url,r=[],e=0,i=n.length;i&gt;e;e++)t=n[e],r.push(null);return r}.call(this),this.need_load=function(){var e,i,n,r;for(n=this.url,r=[],e=0,i=n.length;i&gt;e;e++)t=n[e],r.push(!0);return r}.call(this),this.loaded=function(){var e,i,n,r;for(n=this.url,r=[],e=0,i=n.length;i&gt;e;e++)t=n[e],r.push(!1);return r}.call(this),this._xy_index()},e.prototype._map_data=function(){return this.sw=this.sdist(this.renderer.xmapper,this.x,this.w,"edge",this.mget("dilate")),this.sh=this.sdist(this.renderer.ymapper,this.y,this.h,"edge",this.mget("dilate"))},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g;for(g=i.url,s=i.image,u=i.need_load,d=i.sx,f=i.sy,p=i.sw,c=i.sh,n=i.angle,h=[],a=0,l=e.length;l&gt;a;a++)r=e[a],isNaN(d[r]+f[r]+n[r])||(u[r]?(o=new Image,o.onload=function(t){return function(e,i){return function(){return t.loaded[i]=!0,s[i]=e,t.renderer.request_render()}}}(this)(o,r),o.src=g[r],h.push(u[r]=!1)):this.loaded[r]?h.push(this._render_image(t,r,s[r],d,f,p,c,n)):h.push(void 0));return h},e.prototype._final_sx_sy=function(t,e,i,n,r){switch(t){case"top_left":return[e,i];case"top_center":return[e-n/2,i];case"top_right":return[e-n,i];case"right_center":return[e-n,i-r/2];case"bottom_right":return[e-n,i-r];case"bottom_center":return[e-n/2,i-r];case"bottom_left":return[e,i-r];case"left_center":return[e,i-r/2];case"center":return[e-n/2,i-r/2]}},e.prototype._render_image=function(t,e,i,n,r,s,o,a){var l,u;return isNaN(s[e])&amp;&amp;(s[e]=i.width),isNaN(o[e])&amp;&amp;(o[e]=i.height),l=this.mget("anchor")||"top_left",u=this._final_sx_sy(l,n[e],r[e],s[e],o[e]),n=u[0],r=u[1],t.save(),t.globalAlpha=this.mget("global_alpha"),a[e]?(t.translate(n,r),t.rotate(a[e]),t.drawImage(i,0,0,s[e],o[e]),t.rotate(-a[e]),t.translate(-n,-r)):t.drawImage(i,n,r,s[e],o[e]),t.restore()},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="ImageURL",e.prototype.visuals=[],e.prototype.distances=["w","h"],e.prototype.angles=["angle"],e.prototype.fields=["url:string"],e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{angle:0,global_alpha:1})},e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{})},e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,underscore:92}],163:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),a=t("../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._render=function(t,e,i){var n,r,s,o,a,l;for(a=i.sx,l=i.sy,n=!1,this.visuals.line.set_value(t),s=0,o=e.length;o&gt;s;s++)r=e[s],isFinite(a[r]+l[r])||!n?n?t.lineTo(a[r],l[r]):(t.beginPath(),t.moveTo(a[r],l[r]),n=!0):(t.stroke(),t.beginPath(),n=!1);return n?t.stroke():void 0},e.prototype._hit_point=function(t){var e,i,n,r,s,o,l,u,h,c,p,d,f,g,m,_;for(l=[t.vx,t.vy],f=l[0],g=l[1],m=this.renderer.xmapper.map_from_target(f),_=this.renderer.ymapper.map_from_target(g),c=a.create_hit_test_result(),o={x:m,y:_},p=100,d=1,i=n=0,u=this.x.length-1;u&gt;=0?u&gt;n:n&gt;u;i=u&gt;=0?++n:--n)h=[{x:this.x[i],y:this.y[i]},{x:this.x[i+1],y:this.y[i+1]}],r=h[0],s=h[1],e=a.dist_to_segment(o,r,s),d&gt;e&amp;&amp;p&gt;e&amp;&amp;(p=e,c["0d"].flag=!0,c["0d"].indices=[i]);return c},e.prototype._hit_span=function(t){var e,i,n,r,s,o,l,u,h;for(n=[t.vx,t.vy],u=n[0],h=n[1],s=a.create_hit_test_result(),"v"===t.direction?(o=this.renderer.ymapper.map_from_target(h),l=this.y):(o=this.renderer.xmapper.map_from_target(u),l=this.x),e=i=0,r=l.length-1;r&gt;=0?r&gt;i:i&gt;r;e=r&gt;=0?++i:--i)l[e]&lt;=o&amp;&amp;o&lt;=l[e+1]&amp;&amp;(s["0d"].flag=!0,s["0d"].indices.push(e));return s},e.prototype.get_interpolation_hit=function(t,e){var i,n,r,s,o,l,u,h,c,p,d,f,g,m,_,v,y,b,w;return i=[e.vx,e.vy],p=i[0],d=i[1],n=[this.x[t],this.y[t],this.x[t+1],this.y[t+1]],m=n[0],b=n[1],_=n[2],w=n[3],"point"===e.type?(r=this.renderer.ymapper.v_map_from_target([d-1,d+1]),v=r[0],y=r[1],s=this.renderer.xmapper.v_map_from_target([p-1,p+1]),f=s[0],g=s[1]):"v"===e.direction?(o=this.renderer.ymapper.v_map_from_target([d,d]),v=o[0],y=o[1],l=[m,_],f=l[0],g=l[1]):(u=this.renderer.xmapper.v_map_from_target([p,p]),f=u[0],g=u[1],h=[b,w],v=h[0],y=h[1]),c=a.check_2_segments_intersect(f,v,g,y,m,b,_,w),[c.x,c.y]},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Line",e.prototype.visuals=["line"],e}(n.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"./glyph":158,underscore:92}],164:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;for(c=i.sx,p=i.sy,h=i.size,n=i.angle,u=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(c[r]+p[r]+h[r]+n[r])||(a=h[r]/2,l=.65*a,t.beginPath(),t.translate(c[r],p[r]),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),t.moveTo(-l,l),t.lineTo(l,-l),t.moveTo(-l,-l),t.lineTo(l,l),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),t.stroke()),u.push(t.translate(-c[r],-p[r])));return u},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="Asterisk",e.prototype.props=["line"],e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],165:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),t.arc(0,0,a,0,2*Math.PI,!1),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),n[r]&amp;&amp;t.rotate(-n[r]),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="CircleCross",e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],166:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),t.arc(0,0,a,0,2*Math.PI,!1),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(-a,a),t.lineTo(a,-a),t.moveTo(-a,-a),t.lineTo(a,a),n[r]&amp;&amp;t.rotate(-n[r]),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="CircleX",e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],167:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),n[r]&amp;&amp;t.rotate(n[r]),t.stroke(),n[r]&amp;&amp;t.rotate(-n[r])),l.push(t.translate(-h[r],-c[r])));return l},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="Cross",e.prototype.props=["line"],e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],168:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(a/1.5,0),t.lineTo(0,-a),t.lineTo(-a/1.5,0),n[r]&amp;&amp;t.rotate(-n[r]),t.translate(-h[r],-c[r]),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,r),l.push(t.stroke())):l.push(void 0));return l},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="Diamond",e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],169:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(a/1.5,0),t.lineTo(0,-a),t.lineTo(-a/1.5,0),n[r]&amp;&amp;t.rotate(-n[r]),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a/1.5,0),t.lineTo(a/1.5,0),n[r]&amp;&amp;t.rotate(-n[r]),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="DiamondCross",e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],170:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d;for(p=i.sx,d=i.sy,c=i.size,r=i.angle,h=[],a=0,l=e.length;l&gt;a;a++)o=e[a],isNaN(p[o]+d[o]+c[o]+r[o])||(n=c[o]*Math.sqrt(3)/6,u=c[o]/2,s=c[o]*Math.sqrt(3)/2,t.beginPath(),t.translate(p[o],d[o]),r[o]&amp;&amp;t.rotate(r[o]),t.moveTo(-u,-n),t.lineTo(u,-n),t.lineTo(0,-n+s),r[o]&amp;&amp;t.rotate(-r[o]),t.translate(-p[o],-d[o]),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,o),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,o),h.push(t.stroke())):h.push(void 0));return h},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="InvertedTriangle",e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],171:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("../glyph"),a=t("../../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.draw_legend=function(t,e,i,n,r){var s,o,a,l,u,h,c,p;return u=null!=(l=this.get_reference_point())?l:0,a=[u],c={},c[u]=(e+i)/2,p={},p[u]=(n+r)/2,h={},h[u]=.4*Math.min(Math.abs(i-e),Math.abs(r-n)),s={},s[u]=0,o={sx:c,sy:p,size:h,angle:s},this._render(t,a,o)},e.prototype._index_data=function(){return this._xy_index()},e.prototype._mask_data=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g;return e=this.renderer.plot_view.frame.get("h_range"),a=e.get("start")-this.max_size,l=e.get("end")+this.max_size,i=this.renderer.xmapper.v_map_from_target([a,l],!0),p=i[0],d=i[1],n=[Math.min(p,d),Math.max(p,d)],p=n[0],d=n[1],o=this.renderer.plot_view.frame.get("v_range"),u=o.get("start")-this.max_size,h=o.get("end")+this.max_size,r=this.renderer.ymapper.v_map_from_target([u,h],!0),f=r[0],g=r[1],s=[Math.min(f,g),Math.max(f,g)],f=s[0],g=s[1],function(){var t,e,i,n;for(i=this.index.search([p,f,d,g]),n=[],t=0,e=i.length;e&gt;t;t++)c=i[t],n.push(c[4].i);return n}.call(this)},e.prototype._hit_point=function(t){var e,i,n,r,s,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D;for(u=[t.vx,t.vy],m=u[0],y=u[1],f=this.renderer.plot_view.canvas.vx_to_sx(m),g=this.renderer.plot_view.canvas.vy_to_sy(y),_=m-this.max_size,v=m+this.max_size,h=this.renderer.xmapper.v_map_from_target([_,v],!0),k=h[0],M=h[1],b=y-this.max_size,w=y+this.max_size,c=this.renderer.ymapper.v_map_from_target([b,w],!0),C=c[0],D=c[1],e=function(){var t,e,i,n;for(i=this.index.search([k,C,M,D]),n=[],t=0,e=i.length;e&gt;t;t++)x=i[t],n.push(x[4].i);return n}.call(this),n=[],s=0,l=e.length;l&gt;s;s++)r=e[s],d=this.size[r]/2,i=Math.abs(this.sx[r]-f)+Math.abs(this.sy[r]-g),Math.abs(this.sx[r]-f)&lt;=d&amp;&amp;Math.abs(this.sy[r]-g)&lt;=d&amp;&amp;n.push([r,i]);return p=a.create_hit_test_result(),p["1d"].indices=o.chain(n).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),p},e.prototype._hit_rect=function(t){var e,i,n,r,s,o,l,u;return e=this.renderer.xmapper.v_map_from_target([t.vx0,t.vx1],!0),s=e[0],o=e[1],i=this.renderer.ymapper.v_map_from_target([t.vy0,t.vy1],!0),l=i[0],u=i[1],n=a.create_hit_test_result(),n["1d"].indices=function(){var t,e,i,n;for(i=this.index.search([s,l,o,u]),n=[],t=0,e=i.length;e&gt;t;t++)r=i[t],n.push(r[4].i);return n}.call(this),n},e.prototype._hit_poly=function(t){var e,i,n,r,s,o,l,u,h,c,p,d,f;for(o=[t.vx,t.vy],d=o[0],f=o[1],c=this.renderer.plot_view.canvas.v_vx_to_sx(d),p=this.renderer.plot_view.canvas.v_vy_to_sy(f),e=function(){h=[];for(var t=0,e=this.sx.length;e&gt;=0?e&gt;t:t&gt;e;e&gt;=0?t++:t--)h.push(t);return h}.apply(this),i=[],n=s=0,l=e.length;l&gt;=0?l&gt;s:s&gt;l;n=l&gt;=0?++s:--s)r=e[n],a.point_in_poly(this.sx[n],this.sy[n],c,p)&amp;&amp;i.push(r);return u=a.create_hit_test_result(),u["1d"].indices=i,u},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.distances=["size"],e.prototype.angles=["angle"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{size:4,angle:0})},e}(n.Model),e.exports={Model:r,View:s}},{"../../../common/hittest":116,"../glyph":158,underscore:92}],172:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("./marker"),a=t("../bokehgl"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._init_gl=function(t){return this.glglyph=new a.SquareGLGlyph(t,this)},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h;for(u=i.sx,h=i.sy,l=i.size,n=i.angle,a=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(u[r]+h[r]+l[r]+n[r])||(t.beginPath(),t.translate(u[r],h[r]),n[r]&amp;&amp;t.rotate(n[r]),t.rect(-l[r]/2,-l[r]/2,l[r],l[r]),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),t.stroke()),a.push(t.translate(-u[r],-h[r])));return a},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Square",e}(n.Model),e.exports={Model:r,View:s}},{"../bokehgl":155,"./marker":171,underscore:92}],173:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./marker"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.rect(-u[r]/2,-u[r]/2,u[r],u[r]),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),a=u[r]/2,n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),n[r]&amp;&amp;t.rotate(-n[r]),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="SquareCross",e}(n.Model),e.exports={Model:r,View:s}},{"./marker":171,underscore:92}],174:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./marker"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.rect(-u[r]/2,-u[r]/2,u[r],u[r]),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),t.stroke(),a=u[r]/2,n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(-a,a),t.lineTo(a,-a),t.moveTo(-a,-a),t.lineTo(a,a),n[r]&amp;&amp;t.rotate(-n[r]),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="SquareX",e}(n.Model),e.exports={Model:r,View:s}},{"./marker":171,underscore:92}],175:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./marker"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d;for(p=i.sx,d=i.sy,c=i.size,r=i.angle,h=[],a=0,l=e.length;l&gt;a;a++)o=e[a],isNaN(p[o]+d[o]+c[o]+r[o])||(n=c[o]*Math.sqrt(3)/6,u=c[o]/2,s=c[o]*Math.sqrt(3)/2,t.beginPath(),t.translate(p[o],d[o]),r[o]&amp;&amp;t.rotate(r[o]),t.moveTo(-u,n),t.lineTo(u,n),t.lineTo(0,n-s),r[o]&amp;&amp;t.rotate(-r[o]),t.translate(-p[o],-d[o]),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,o),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,o),
        h.push(t.stroke())):h.push(void 0));return h},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="Triangle",e}(n.Model),e.exports={Model:r,View:s}},{"./marker":171,underscore:92}],176:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./marker"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(-a,a),t.lineTo(a,-a),t.moveTo(-a,-a),t.lineTo(a,a),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="X",e.prototype.props=["line"],e}(n.Model),e.exports={Model:r,View:s}},{"./marker":171,underscore:92}],177:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),a=t("rbush"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){var t,e,i,n,r,s,l,u,h;for(e=a(),n=[],t=i=0,r=this.xs.length;r&gt;=0?r&gt;i:i&gt;r;t=r&gt;=0?++i:--i)l=function(){var e,i,n,r;for(n=this.xs[t],r=[],e=0,i=n.length;i&gt;e;e++)s=n[e],o.isNaN(s)||r.push(s);return r}.call(this),h=function(){var e,i,n,r;for(n=this.ys[t],r=[],e=0,i=n.length;i&gt;e;e++)u=n[e],o.isNaN(u)||r.push(u);return r}.call(this),0!==l.length&amp;&amp;n.push([o.min(l),o.min(h),o.max(l),o.max(h),{i:t}]);return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f;for(p=i.sxs,f=i.sys,h=[],s=0,a=e.length;a&gt;s;s++){for(n=e[s],l=[p[n],f[n]],c=l[0],d=l[1],this.visuals.line.set_vectorize(t,n),r=o=0,u=c.length;u&gt;=0?u&gt;o:o&gt;u;r=u&gt;=0?++o:--o)0!==r?isNaN(c[r])||isNaN(d[r])?(t.stroke(),t.beginPath()):t.lineTo(c[r],d[r]):(t.beginPath(),t.moveTo(c[r],d[r]));h.push(t.stroke())}return h},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="MultiLine",e.prototype.visuals=["line"],e.prototype.coords=[["xs","ys"]],e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,rbush:89,underscore:92}],178:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._set_data=function(){return this.max_w2=0,"data"===this.distances.width.units&amp;&amp;(this.max_w2=this.max_width/2),this.max_h2=0,"data"===this.distances.height.units?this.max_h2=this.max_height/2:void 0},e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return"data"===this.distances.width.units?this.sw=this.sdist(this.renderer.xmapper,this.x,this.width,"center"):this.sw=this.width,"data"===this.distances.height.units?this.sh=this.sdist(this.renderer.ymapper,this.y,this.height,"center"):this.sh=this.height},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h;for(u=i.sx,h=i.sy,l=i.sw,a=i.sh,o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(u[n]+h[n]+l[n]+a[n]+this.angle[n])||(t.translate(u[n],h[n]),t.rotate(this.angle[n]),t.beginPath(),t.moveTo(0,-a[n]/2),t.bezierCurveTo(l[n]/2,-a[n]/2,l[n]/2,a[n]/2,0,a[n]/2),t.bezierCurveTo(-l[n]/2,a[n]/2,-l[n]/2,-a[n]/2,0,-a[n]/2),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,n),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,n),t.stroke()),t.rotate(-this.angle[n]),o.push(t.translate(-u[n],-h[n])));return o},e.prototype.draw_legend=function(t,e,i,n,r){var s,o,a,l,u,h,c,p,d;return l=null!=(a=this.get_reference_point())?a:0,o=[l],p={},p[l]=(e+i)/2,d={},d[l]=(n+r)/2,u=this.sw[l]/this.sh[l],s=.8*Math.min(Math.abs(i-e),Math.abs(r-n)),c={},h={},u&gt;1?(c[l]=s,h[l]=s/u):(c[l]=s*u,h[l]=s),this._render(t,o,p,d,c,h)},e.prototype._bounds=function(t){return[[t[0][0]-this.max_w2,t[0][1]+this.max_w2],[t[1][0]-this.max_h2,t[1][1]+this.max_h2]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="Oval",e.prototype.distances=["width","height"],e.prototype.angles=["angle"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{angle:0})},e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,underscore:92}],179:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u;if(l=i.sx,u=i.sy,this.visuals.fill.do_fill){for(this.visuals.fill.set_value(t),r=0,o=e.length;o&gt;r;r++)n=e[r],0!==n?isNaN(l[n]+u[n])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(l[n],u[n]):(t.beginPath(),t.moveTo(l[n],u[n]));t.closePath(),t.fill()}if(this.visuals.line.do_stroke){for(this.visuals.line.set_value(t),s=0,a=e.length;a&gt;s;s++)n=e[s],0!==n?isNaN(l[n]+u[n])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(l[n],u[n]):(t.beginPath(),t.moveTo(l[n],u[n]));return t.closePath(),t.stroke()}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="Patch",e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,underscore:92}],180:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),l=t("rbush"),a=t("../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._build_discontinuous_object=function(t){var e,i,n,r,s,a,l,u,h;for(i={},n=r=0,h=t.length;h&gt;=0?h&gt;r:r&gt;h;n=h&gt;=0?++r:--r)for(i[n]=[],l=o.toArray(t[n]);l.length&gt;0;)s=o.findLastIndex(l,function(t){return o.isNaN(t)}),s&gt;=0?u=l.splice(s):(u=l,l=[]),e=function(){var t,e,i;for(i=[],t=0,e=u.length;e&gt;t;t++)a=u[t],o.isNaN(a)||i.push(a);return i}(),i[n].push(e);return i},e.prototype._index_data=function(){var t,e,i,n,r,s,a,u,h,c,p,d;for(e=l(),s=[],c=this._build_discontinuous_object(this.xs),d=this._build_discontinuous_object(this.ys),t=n=0,a=this.xs.length;a&gt;=0?a&gt;n:n&gt;a;t=a&gt;=0?++n:--n)for(i=r=0,u=c[t].length;u&gt;=0?u&gt;r:r&gt;u;i=u&gt;=0?++r:--r)h=c[t][i],p=d[t][i],0!==h.length&amp;&amp;s.push([o.min(h),o.min(p),o.max(h),o.max(p),{i:t}]);return e.load(s),e},e.prototype._mask_data=function(t){var e,i,n,r,s,o,a,l,u;return o=this.renderer.plot_view.x_range,e=[o.get("min"),o.get("max")],r=e[0],s=e[1],u=this.renderer.plot_view.y_range,i=[u.get("min"),u.get("max")],a=i[0],l=i[1],function(){var t,e,i,o;for(i=this.index.search([r,a,s,l]),o=[],t=0,e=i.length;e&gt;t;t++)n=i[t],o.push(n[4].i);return o}.call(this)},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m;for(f=i.sxs,m=i.sys,this.sxss=this._build_discontinuous_object(f),this.syss=this._build_discontinuous_object(m),p=[],s=0,a=e.length;a&gt;s;s++){if(n=e[s],u=[f[n],m[n]],d=u[0],g=u[1],this.visuals.fill.do_fill){for(this.visuals.fill.set_vectorize(t,n),r=o=0,h=d.length;h&gt;=0?h&gt;o:o&gt;h;r=h&gt;=0?++o:--o)0!==r?isNaN(d[r]+g[r])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(d[r],g[r]):(t.beginPath(),t.moveTo(d[r],g[r]));t.closePath(),t.fill()}if(this.visuals.line.do_stroke){for(this.visuals.line.set_vectorize(t,n),r=l=0,c=d.length;c&gt;=0?c&gt;l:l&gt;c;r=c&gt;=0?++l:--l)0!==r?isNaN(d[r]+g[r])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(d[r],g[r]):(t.beginPath(),t.moveTo(d[r],g[r]));t.closePath(),p.push(t.stroke())}else p.push(void 0)}return p},e.prototype._hit_point=function(t){var e,i,n,r,s,o,l,u,h,c,p,d,f,g,m,_,v,y,b;for(u=[t.vx,t.vy],_=u[0],v=u[1],d=this.renderer.plot_view.canvas.vx_to_sx(_),g=this.renderer.plot_view.canvas.vy_to_sy(v),y=this.renderer.xmapper.map_from_target(_,!0),b=this.renderer.ymapper.map_from_target(v,!0),e=function(){var t,e,i,n;for(i=this.index.search([y,b,y,b]),n=[],t=0,e=i.length;e&gt;t;t++)y=i[t],n.push(y[4].i);return n}.call(this),i=[],n=o=0,h=e.length;h&gt;=0?h&gt;o:o&gt;h;n=h&gt;=0?++o:--o)for(r=e[n],f=this.sxss[r],m=this.syss[r],s=l=0,c=f.length;c&gt;=0?c&gt;l:l&gt;c;s=c&gt;=0?++l:--l)a.point_in_poly(d,g,f[s],m[s])&amp;&amp;i.push(r);return p=a.create_hit_test_result(),p["1d"].indices=i,p},e.prototype._get_snap_coord=function(t){var e,i,n,r;for(r=0,e=0,i=t.length;i&gt;e;e++)n=t[e],r+=n;return r/t.length},e.prototype.scx=function(t,e,i){var n,r,s,o,l;if(1===this.sxss[t].length)return this._get_snap_coord(this.sxs[t]);for(o=this.sxss[t],l=this.syss[t],n=r=0,s=o.length;s&gt;=0?s&gt;r:r&gt;s;n=s&gt;=0?++r:--r)if(a.point_in_poly(e,i,o[n],l[n]))return this._get_snap_coord(o[n]);return null},e.prototype.scy=function(t,e,i){var n,r,s,o,l;if(1===this.syss[t].length)return this._get_snap_coord(this.sys[t]);for(o=this.sxss[t],l=this.syss[t],n=r=0,s=o.length;s&gt;=0?s&gt;r:r&gt;s;n=s&gt;=0?++r:--r)if(a.point_in_poly(e,i,o[n],l[n]))return this._get_snap_coord(l[n])},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type="Patches",e.prototype.coords=[["xs","ys"]],e}(n.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"./glyph":158,rbush:89,underscore:92}],181:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),l=t("rbush"),n=t("./glyph"),a=t("../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){var t,e,i,n,r;for(e=l(),n=[],t=i=0,r=this.left.length;r&gt;=0?r&gt;i:i&gt;r;t=r&gt;=0?++i:--i)isNaN(this.left[t]+this.right[t]+this.top[t]+this.bottom[t])||n.push([this.left[t],this.bottom[t],this.right[t],this.top[t],{i:t}]);return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h;for(l=i.sleft,u=i.sright,h=i.stop,a=i.sbottom,o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(l[n]+h[n]+u[n]+a[n])||(this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,n),t.fillRect(l[n],h[n],u[n]-l[n],a[n]-h[n])),this.visuals.line.do_stroke?(t.beginPath(),t.rect(l[n],h[n],u[n]-l[n],a[n]-h[n]),this.visuals.line.set_vectorize(t,n),o.push(t.stroke())):o.push(void 0));return o},e.prototype._hit_point=function(t){var e,i,n,r,s,o,l;return i=[t.vx,t.vy],r=i[0],s=i[1],o=this.renderer.xmapper.map_from_target(r,!0),l=this.renderer.ymapper.map_from_target(s,!0),e=function(){var t,e,i,n;for(i=this.index.search([o,l,o,l]),n=[],t=0,e=i.length;e&gt;t;t++)o=i[t],n.push(o[4].i);return n}.call(this),n=a.create_hit_test_result(),n["1d"].indices=e,n},e.prototype.scx=function(t){return(this.sleft[t]+this.sright[t])/2},e.prototype.scy=function(t){return(this.stop[t]+this.sbottom[t])/2},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type="Quad",e.prototype.coords=[["right","bottom"],["left","top"]],e}(n.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"./glyph":158,rbush:89,underscore:92}],182:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),l=t("rbush"),n=t("./glyph"),a=function(t,e,i){var n,r;return e===(t+i)/2?[t,i]:(r=(t-e)/(t-2*e+i),n=t*Math.pow(1-r,2)+2*e*(1-r)*r+i*Math.pow(r,2),[Math.min(t,i,n),Math.max(t,i,n)])},s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){var t,e,i,n,r,s,o,u,h,c,p;for(e=l(),n=[],t=i=0,r=this.x0.length;r&gt;=0?r&gt;i:i&gt;r;t=r&gt;=0?++i:--i)isNaN(this.x0[t]+this.x1[t]+this.y0[t]+this.y1[t]+this.cx[t]+this.cy[t])||(s=a(this.x0[t],this.cx[t],this.x1[t]),u=s[0],h=s[1],o=a(this.y0[t],this.cy[t],this.y1[t]),c=o[0],p=o[1],n.push([u,c,h,p,{i:t}]));return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;if(u=i.sx0,c=i.sy0,h=i.sx1,p=i.sy1,a=i.scx,l=i.scy,this.visuals.line.do_stroke){for(o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(u[n]+c[n]+h[n]+p[n]+a[n]+l[n])||(t.beginPath(),t.moveTo(u[n],c[n]),t.quadraticCurveTo(a[n],l[n],h[n],p[n]),this.visuals.line.set_vectorize(t,n),o.push(t.stroke()));return o}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type="Quadratic",e.prototype.visuals=["line"],e.prototype.coords=[["x0","y0"],["x1","y1"],["cx","cy"]],e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,rbush:89,underscore:92}],183:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.slength=this.sdist(this.renderer.xmapper,this.x,this.length)},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g;if(d=i.sx,f=i.sy,p=i.slength,n=i.angle,this.visuals.line.do_stroke){for(g=this.renderer.plot_view.frame.get("width"),r=this.renderer.plot_view.frame.get("height"),o=2*(g+r),s=a=0,h=p.length;h&gt;=0?h&gt;a:a&gt;h;s=h&gt;=0?++a:--a)0===p[s]&amp;&amp;(p[s]=o);for(c=[],l=0,u=e.length;u&gt;l;l++)s=e[l],isNaN(d[s]+f[s]+n[s]+p[s])||(t.translate(d[s],f[s]),t.rotate(n[s]),t.beginPath(),t.moveTo(0,0),t.lineTo(p[s],0),this.visuals.line.set_vectorize(t,s),t.stroke(),t.rotate(-n[s]),c.push(t.translate(-d[s],-f[s])));return c}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="Ray",e.prototype.visuals=["line"],e.prototype.distances=["length"],e.prototype.angles=["angle"],e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,underscore:92}],184:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),a=t("../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._set_data=function(){return this.max_w2=0,"data"===this.distances.width.units&amp;&amp;(this.max_w2=this.max_width/2),this.max_h2=0,"data"===this.distances.height.units?this.max_h2=this.max_height/2:void 0},e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return"data"===this.distances.width.units?this.sw=this.sdist(this.renderer.xmapper,this.x,this.width,"center",this.mget("dilate")):this.sw=this.width,"data"===this.distances.height.units?this.sh=this.sdist(this.renderer.ymapper,this.y,this.height,"center",this.mget("dilate")):this.sh=this.height},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;if(c=i.sx,p=i.sy,h=i.sw,u=i.sh,n=i.angle,this.visuals.fill.do_fill)for(s=0,a=e.length;a&gt;s;s++)r=e[s],isNaN(c[r]+p[r]+h[r]+u[r]+n[r])||(this.visuals.fill.set_vectorize(t,r),n[r]?(t.translate(c[r],p[r]),t.rotate(n[r]),t.fillRect(-h[r]/2,-u[r]/2,h[r],u[r]),t.rotate(-n[r]),t.translate(-c[r],-p[r])):t.fillRect(c[r]-h[r]/2,p[r]-u[r]/2,h[r],u[r]));if(this.visuals.line.do_stroke){for(t.beginPath(),o=0,l=e.length;l&gt;o;o++)r=e[o],isNaN(c[r]+p[r]+h[r]+u[r]+n[r])||0!==h[r]&amp;&amp;0!==u[r]&amp;&amp;(n[r]?(t.translate(c[r],p[r]),t.rotate(n[r]),t.rect(-h[r]/2,-u[r]/2,h[r],u[r]),t.rotate(-n[r]),t.translate(-c[r],-p[r])):t.rect(c[r]-h[r]/2,p[r]-u[r]/2,h[r],u[r]),this.visuals.line.set_vectorize(t,r),t.stroke(),t.beginPath());return t.stroke()}},e.prototype._hit_rect=function(t){var e,i,n,r,s,o,l,u;return e=this.renderer.xmapper.v_map_from_target([t.vx0,t.vx1],!0),s=e[0],o=e[1],i=this.renderer.ymapper.v_map_from_target([t.vy0,t.vy1],!0),l=i[0],u=i[1],n=a.create_hit_test_result(),n["1d"].indices=function(){var t,e,i,n;for(i=this.index.search([s,l,o,u]),n=[],t=0,e=i.length;e&gt;t;t++)r=i[t],n.push(r[4].i);return n}.call(this),n},e.prototype._hit_point=function(t){var e,i,n,r,s,o,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I;for(p=[t.vx,t.vy],b=p[0],k=p[1],T=this.renderer.xmapper.map_from_target(b,!0),P=this.renderer.ymapper.map_from_target(k,!0),"screen"===this.distances.width.units?(w=b-2*this.max_width,x=b+2*this.max_width,d=this.renderer.xmapper.v_map_from_target([w,x],!0),S=d[0],A=d[1]):(S=T-2*this.max_width,A=T+2*this.max_width),"screen"===this.distances.height.units?(M=k-2*this.max_height,C=k+2*this.max_height,f=this.renderer.ymapper.v_map_from_target([M,C],!0),E=f[0],I=f[1]):(E=P-2*this.max_height,I=P+2*this.max_height),r=[],g=function(){var t,e,i,n;for(i=this.index.search([S,E,A,I]),n=[],t=0,e=i.length;e&gt;t;t++)u=i[t],n.push(u[4].i);return n}.call(this),o=0,l=g.length;l&gt;o;o++)s=g[o],v=this.renderer.plot_view.canvas.vx_to_sx(b),y=this.renderer.plot_view.canvas.vy_to_sy(k),this.angle[s]&amp;&amp;(i=Math.sqrt(Math.pow(v-this.sx[s],2)+Math.pow(y-this.sy[s],2)),_=Math.sin(-this.angle[s]),e=Math.cos(-this.angle[s]),h=e*(v-this.sx[s])-_*(y-this.sy[s])+this.sx[s],c=_*(v-this.sx[s])+e*(y-this.sy[s])+this.sy[s],v=h,y=c),D=Math.abs(this.sx[s]-v)&lt;=this.sw[s]/2,n=Math.abs(this.sy[s]-y)&lt;=this.sh[s]/2,n&amp;&amp;D&amp;&amp;r.push(s);return m=a.create_hit_test_result(),m["1d"].indices=r,m},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e.prototype._bounds=function(t){return[[t[0][0]-this.max_w2,t[0][1]+this.max_w2],[t[1][0]-this.max_h2,t[1][1]+this.max_h2]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Rect",e.prototype.distances=["width","height"],e.prototype.angles=["angle"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{angle:0,dilate:!1})},e}(n.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"./glyph":158,underscore:92}],185:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),a=t("rbush"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){var t,e,i,n,r;for(e=a(),n=[],t=i=0,r=this.x0.length;r&gt;=0?r&gt;i:i&gt;r;t=r&gt;=0?++i:--i)isNaN(this.x0[t]+this.x1[t]+this.y0[t]+this.y1[t])||n.push([this.x0[t],this.y0[t],this.x1[t],this.y1[t],{i:t}]);return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h;if(a=i.sx0,u=i.sy0,l=i.sx1,h=i.sy1,this.visuals.line.do_stroke){for(o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(a[n]+u[n]+l[n]+h[n])||(t.beginPath(),t.moveTo(a[n],u[n]),t.lineTo(l[n],h[n]),this.visuals.line.set_vectorize(t,n),o.push(t.stroke()));return o}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Segment",e.prototype.visuals=["line"],e.prototype.coords=[["x0","y0"],["x1","y1"]],e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,rbush:89,underscore:92}],186:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),a=t("../../common/properties"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.text_props=new a.Text({obj:this.model,prefix:""})},e.prototype._index_data=function(){return this._xy_index()},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;for(l=i.sx,u=i.sy,c=i.x_offset,p=i.y_offset,n=i.angle,h=i.text,a=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(l[r]+u[r]+c[r]+p[r]+n[r])||null==h[r]||(t.save(),t.translate(l[r]+c[r],u[r]+p[r]),t.rotate(n[r]),this.visuals.text.set_vectorize(t,r),t.fillText(h[r],0,0),a.push(t.restore()));return a},e.prototype.draw_legend=function(t,e,i,n,r){return t.save(),this.text_props.set_value(t),t.font=this.text_props.font_value(),t.font=t.font.replace(/\b[\d\.]+[\w]+\b/,"10pt"),t.textAlign="right",t.textBaseline="middle",t.fillText("text",i,(n+r)/2),t.restore()},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Text",e.prototype.visuals=["text"],e.prototype.distances=["x_offset","y_offset"],e.prototype.angles=["angle"],e.prototype.fields=["text:string"],e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{angle:0,x_offset:0,y_offset:0})},e}(n.Model),e.exports={Model:r,View:s}},{"../../common/properties":126,"./glyph":158,underscore:92}],187:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),l=t("../../common/mathutils"),n=t("./glyph"),a=t("../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return"data"===this.distances.radius.units?this.sradius=this.sdist(this.renderer.xmapper,this.x,this.radius):this.sradius=this.radius},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;for(c=i.sx,p=i.sy,u=i.sradius,h=i.start_angle,r=i.end_angle,n=i.direction,l=[],o=0,a=e.length;a&gt;o;o++)s=e[o],isNaN(c[s]+p[s]+u[s]+h[s]+r[s]+n[s])||(t.beginPath(),t.arc(c[s],p[s],u[s],h[s],r[s],n[s]),t.lineTo(c[s],p[s]),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,s),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,s),l.push(t.stroke())):l.push(void 0));return l},e.prototype._hit_point=function(t){var e,i,n,r,s,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F;for(g=[t.vx,t.vy],T=g[0],P=g[1],N=this.renderer.xmapper.map_from_target(T,!0),j=this.renderer.ymapper.map_from_target(P,!0),"data"===this.distances.radius.units?(R=N-this.max_radius,z=N+this.max_radius,O=j-this.max_radius,F=j+this.max_radius):(S=T-this.max_radius,A=T+this.max_radius,m=this.renderer.xmapper.v_map_from_target([S,A],!0),R=m[0],z=m[1],E=P-this.max_radius,I=P+this.max_radius,_=this.renderer.ymapper.v_map_from_target([E,I],!0),O=_[0],F=_[1]),i=[],v=function(){var t,e,i,n;for(i=this.index.search([R,O,z,F]),n=[],t=0,e=i.length;e&gt;t;t++)d=i[t],n.push(d[4].i);return n}.call(this),u=0,c=v.length;c&gt;u;u++)s=v[u],f=Math.pow(this.sradius[s],2),x=this.renderer.xmapper.map_to_target(N,!0),k=this.renderer.xmapper.map_to_target(this.x[s],!0),C=this.renderer.ymapper.map_to_target(j,!0),D=this.renderer.ymapper.map_to_target(this.y[s],!0),n=Math.pow(x-k,2)+Math.pow(C-D,2),f&gt;=n&amp;&amp;i.push([s,n]);for(r=[],h=0,p=i.length;p&gt;h;h++)y=i[h],s=y[0],n=y[1],w=this.renderer.plot_view.canvas.vx_to_sx(T),M=this.renderer.plot_view.canvas.vy_to_sy(P),e=Math.atan2(M-this.sy[s],w-this.sx[s]),l.angle_between(-e,-this.start_angle[s],-this.end_angle[s],this.direction[s])&amp;&amp;r.push([s,n]);return b=a.create_hit_test_result(),b["1d"].indices=o.chain(r).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),b},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type="Wedge",e.prototype.distances=["radius"],e.prototype.angles=["start_angle","end_angle"],e.prototype.fields=["direction:direction"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{direction:"anticlock"})},e}(n.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"../../common/mathutils":120,"./glyph":158,underscore:92}],188:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C=function(t,e){function i(){this.constructor=t}for(var n in e)D.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},D={}.hasOwnProperty;f=t("underscore"),w=null!=i._bokehTest?i._bokehTest.kiwi:t("kiwi"),l=t("../../common/has_parent"),h=t("../../common/layout_box"),x=t("../../common/logging").logger,p=t("../../common/plot_widget"),M=t("../../common/properties"),k=Math.PI/2,n="alphabetic",c="middle",a="hanging",u="left",d="right",o="center",v={above:{parallel:0,normal:-k,horizontal:0,vertical:-k},below:{parallel:0,normal:k,horizontal:0,vertical:k},left:{parallel:-k,normal:0,horizontal:0,vertical:-k},right:{parallel:k,normal:0,horizontal:0,vertical:k}},b={above:{parallel:n,normal:c,horizontal:n,vertical:c},below:{parallel:a,normal:c,horizontal:a,vertical:c},left:{parallel:n,normal:c,horizontal:c,vertical:n},right:{parallel:n,normal:c,horizontal:c,vertical:n}},g={above:{parallel:o,normal:u,horizontal:o,vertical:u},below:{parallel:o,normal:u,horizontal:o,vertical:d},left:{parallel:o,normal:d,horizontal:d,vertical:o},right:{parallel:o,normal:u,horizontal:u,vertical:o}},m={above:d,below:u,left:d,right:u},_={above:u,below:d,left:d,right:u},y=function(t,e,i){var n,r;return f.isString(i)?(r=b[e][i],n=g[e][i]):0===i?(r=b[e][i],n=g[e][i]):0&gt;i?(r="middle",n=m[e]):i&gt;0&amp;&amp;(r="middle",n=_[e]),t.textBaseline=r,t.textAlign=n},s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return C(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.rule_props=new M.Line({obj:this.model,prefix:"axis_"}),this.major_tick_props=new M.Line({obj:this.model,prefix:"major_tick_"}),this.minor_tick_props=new M.Line({obj:this.model,prefix:"minor_tick_"}),this.major_label_props=new M.Text({obj:this.model,prefix:"major_label_"}),this.axis_label_props=new M.Text({obj:this.model,prefix:"axis_label_"}),this.x_range_name=this.mget("x_range_name"),this.y_range_name=this.mget("y_range_name")},e.prototype.render=function(){var t;if(this.mget("visible"))return t=this.plot_view.canvas_view.ctx,t.save(),this._draw_rule(t),this._draw_major_ticks(t),this._draw_minor_ticks(t),this._draw_major_labels(t),this._draw_axis_label(t),t.restore()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change",this.plot_view.request_render)},e.prototype._draw_rule=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m;if(this.rule_props.do_stroke){for(o=e=this.mget("rule_coords"),d=o[0],g=o[1],a=this.plot_view.map_to_screen(d,g,this.x_range_name,this.y_range_name),c=a[0],p=a[1],l=this.mget("normals"),r=l[0],s=l[1],u=this.mget("offsets"),f=u[0],m=u[1],this.rule_props.set_value(t),t.beginPath(),t.moveTo(Math.round(c[0]+r*f),Math.round(p[0]+s*m)),i=n=1,h=c.length;h&gt;=1?h&gt;n:n&gt;h;i=h&gt;=1?++n:--n)t.lineTo(Math.round(c[i]+r*f),Math.round(p[i]+s*m));return t.stroke()}},e.prototype._draw_major_ticks=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y;if(this.major_tick_props.do_stroke){for(e=this.mget("tick_coords"),o=e.major,m=o[0],v=o[1],a=this.plot_view.map_to_screen(m,v,this.x_range_name,this.y_range_name),p=a[0],d=a[1],l=this.mget("normals"),r=l[0],s=l[1],u=this.mget("offsets"),_=u[0],y=u[1],f=this.mget("major_tick_in"),g=this.mget("major_tick_out"),this.major_tick_props.set_value(t),c=[],i=n=0,h=p.length;h&gt;=0?h&gt;n:n&gt;h;i=h&gt;=0?++n:--n)t.beginPath(),t.moveTo(Math.round(p[i]+r*g+r*_),Math.round(d[i]+s*g+s*y)),t.lineTo(Math.round(p[i]-r*f+r*_),Math.round(d[i]-s*f+s*y)),c.push(t.stroke());return c}},e.prototype._draw_minor_ticks=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y;if(this.minor_tick_props.do_stroke){for(e=this.mget("tick_coords"),o=e.minor,m=o[0],v=o[1],a=this.plot_view.map_to_screen(m,v,this.x_range_name,this.y_range_name),p=a[0],d=a[1],l=this.mget("normals"),r=l[0],s=l[1],u=this.mget("offsets"),_=u[0],y=u[1],f=this.mget("minor_tick_in"),g=this.mget("minor_tick_out"),this.minor_tick_props.set_value(t),c=[],i=n=0,h=p.length;h&gt;=0?h&gt;n:n&gt;h;i=h&gt;=0?++n:--n)t.beginPath(),t.moveTo(Math.round(p[i]+r*g+r*_),Math.round(d[i]+s*g+s*y)),t.lineTo(Math.round(p[i]-r*f+r*_),Math.round(d[i]-s*f+s*y)),c.push(t.stroke());return c}},e.prototype._draw_major_labels=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,g,m,_,b,w,x,k,M,C,D;for(i=this.mget("tick_coords"),h=i.major,k=h[0],C=h[1],c=this.plot_view.map_to_screen(k,C,this.x_range_name,this.y_range_name),w=c[0],x=c[1],p=this.mget("normals"),a=p[0],l=p[1],d=this.mget("offsets"),M=d[0],D=d[1],n=this.mget("dimension"),_=this.mget("location"),u=this.mget("major_label_orientation"),e=f.isString(u)?v[_][u]:-u,b=this.model._tick_extent(this)+this.mget("major_label_standoff"),o=this.mget("formatter").format(i.major[n]),this.major_label_props.set_value(t),y(t,_,u),m=[],r=s=0,g=w.length;g&gt;=0?g&gt;s:s&gt;g;r=g&gt;=0?++s:--s)e?(t.translate(w[r]+a*b+a*M,x[r]+l*b+l*D),t.rotate(e),t.fillText(o[r],0,0),t.rotate(-e),m.push(t.translate(-w[r]-a*b+a*M,-x[r]-l*b+l*D))):m.push(t.fillText(o[r],Math.round(w[r]+a*b+a*M),Math.round(x[r]+l*b+l*D)));return m},e.prototype._draw_axis_label=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_;return i=this.mget("axis_label"),null!=i?(o=this.mget("rule_coords"),f=o[0],m=o[1],a=this.plot_view.map_to_screen(f,m,this.x_range_name,this.y_range_name),p=a[0],d=a[1],l=this.mget("normals"),n=l[0],r=l[1],u=this.mget("offsets"),g=u[0],_=u[1],h=this.mget("location"),s="parallel",e=v[h][s],c=this.model._tick_extent(this)+this.model._tick_label_extent(this)+this.mget("axis_label_standoff"),p=(p[0]+p[p.length-1])/2,d=(d[0]+d[d.length-1])/2,this.axis_label_props.set_value(t),y(t,h,s),e?(t.translate(p+n*c+n*g,d+r*c+r*_),t.rotate(e),t.fillText(i,0,0),t.rotate(-e),t.translate(-p-n*c+n*g,-d-r*c+r*_)):t.fillText(i,p+n*c+n*g,d+r*c+r*_)):void 0},e}(p),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return C(e,t),e.prototype.default_view=s,e.prototype.type="Axis",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("computed_bounds",this._computed_bounds,!1),this.add_dependencies("computed_bounds",this,["bounds"]),this.add_dependencies("computed_bounds",this.get("plot"),["x_range","y_range"]),
        this.register_property("rule_coords",this._rule_coords,!1),this.add_dependencies("rule_coords",this,["computed_bounds","side"]),this.register_property("tick_coords",this._tick_coords,!1),this.add_dependencies("tick_coords",this,["computed_bounds","location"]),this.register_property("ranges",this._ranges,!0),this.register_property("normals",function(){return this._normals},!0),this.register_property("dimension",function(){return this._dim},!0),this.register_property("offsets",this._offsets,!0)},e.prototype.initialize_layout=function(t){var e,i;return e=new h.Model({solver:t}),this.panel=e,this._top=e._top,this._bottom=e._bottom,this._left=e._left,this._right=e._right,this._width=e._width,this._height=e._height,i=this.get("location"),"above"===i?(this._dim=0,this._normals=[0,-1],this._size=e._height,this._anchor=e._bottom):"below"===i?(this._dim=0,this._normals=[0,1],this._size=e._height,this._anchor=e._top):"left"===i?(this._dim=1,this._normals=[-1,0],this._size=e._width,this._anchor=e._right):"right"===i?(this._dim=1,this._normals=[1,0],this._size=e._width,this._anchor=e._left):x.error("unrecognized side: '"+i+"'")},e.prototype.update_layout=function(t,e){var i;return i=this.get("visible")?this._tick_extent(t)+this._tick_label_extent(t)+this._axis_label_extent(t):0,null==this._last_size&amp;&amp;(this._last_size=-1),i!==this._last_size?(this._last_size=i,null!=this._size_constraint&amp;&amp;e.remove_constraint(this._size_constraint),this._size_constraint=new w.Constraint(new w.Expression(this._size,-i),w.Operator.Eq),e.add_constraint(this._size_constraint)):void 0},e.prototype._offsets=function(){var t,e,i,n,r;return i=this.get("location"),e=[0,0],n=e[0],r=e[1],t=this.get("plot").get("frame"),"below"===i?r=Math.abs(this.panel.get("top")-t.get("bottom")):"above"===i?r=Math.abs(this.panel.get("bottom")-t.get("top")):"right"===i?n=Math.abs(this.panel.get("left")-t.get("right")):"left"===i&amp;&amp;(n=Math.abs(this.panel.get("right")-t.get("left"))),[n,r]},e.prototype._ranges=function(){var t,e,i,n;return e=this.get("dimension"),i=(e+1)%2,t=this.get("plot").get("frame"),n=[t.get("x_ranges")[this.get("x_range_name")],t.get("y_ranges")[this.get("y_range_name")]],[n[e],n[i]]},e.prototype._computed_bounds=function(){var t,e,i,n,r,s,o,a;return r=this.get("ranges"),i=r[0],t=r[1],a=null!=(s=this.get("bounds"))?s:"auto",n=[i.get("min"),i.get("max")],"auto"===a?n:f.isArray(a)?(Math.abs(a[0]-a[1])&gt;Math.abs(n[0]-n[1])?(o=Math.max(Math.min(a[0],a[1]),n[0]),e=Math.min(Math.max(a[0],a[1]),n[1])):(o=Math.min(a[0],a[1]),e=Math.max(a[0],a[1])),[o,e]):(x.error("user bounds '"+a+"' not understood"),null)},e.prototype._rule_coords=function(){var t,e,i,n,r,s,o,a,l,u,h,c;return n=this.get("dimension"),r=(n+1)%2,a=this.get("ranges"),o=a[0],e=a[1],l=this.get("computed_bounds"),u=l[0],i=l[1],h=new Array(2),c=new Array(2),t=[h,c],s=this._get_loc(e),t[n][0]=Math.max(u,o.get("min")),t[n][1]=Math.min(i,o.get("max")),t[n][0]&gt;t[n][1]&amp;&amp;(t[n][0]=t[n][1]=NaN),t[r][0]=s,t[r][1]=s,t},e.prototype._tick_coords=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T;if(n=this.get("dimension"),s=(n+1)%2,v=this.get("ranges"),g=v[0],e=v[1],y=this.get("computed_bounds"),M=y[0],i=y[1],C=this.get("ticker").get_ticks(M,i,g,{}),h=C.major,f=C.minor,l=this._get_loc(e),D=[],T=[],t=[D,T],p=[],d=[],c=[p,d],"FactorRange"===g.type)for(r=o=0,b=h.length;b&gt;=0?b&gt;o:o&gt;b;r=b&gt;=0?++o:--o)t[n].push(h[r]),t[s].push(l);else{for(w=[g.get("min"),g.get("max")],_=w[0],m=w[1],r=a=0,x=h.length;x&gt;=0?x&gt;a:a&gt;x;r=x&gt;=0?++a:--a)h[r]&lt;_||h[r]&gt;m||(t[n].push(h[r]),t[s].push(l));for(r=u=0,k=f.length;k&gt;=0?k&gt;u:u&gt;k;r=k&gt;=0?++u:--u)f[r]&lt;_||f[r]&gt;m||(c[n].push(f[r]),c[s].push(l))}return{major:t,minor:c}},e.prototype._get_loc=function(t){var e,i,n,r;return i=t.get("start"),e=t.get("end"),r=this.get("location"),"left"===r||"below"===r?n="start":("right"===r||"above"===r)&amp;&amp;(n="end"),t.get(n)},e.prototype._tick_extent=function(t){return this.get("major_tick_out")},e.prototype._tick_label_extent=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,g,m,_,y,b,w;for(o=0,s=this.get("dimension"),r=t.plot_view.canvas_view.ctx,n=this.get("tick_coords").major,_=this.get("location"),d=this.get("major_label_orientation"),p=this.get("formatter").format(n[s]),t.major_label_props.set_value(r),f.isString(d)?(u=1,e=v[_][d]):(u=2,e=-d),e=Math.abs(e),i=Math.cos(e),m=Math.sin(e),"above"===_||"below"===_?(w=m,l=i):(w=i,l=m),h=c=0,g=p.length;g&gt;=0?g&gt;c:c&gt;g;h=g&gt;=0?++c:--c)null!=p[h]&amp;&amp;(b=1.1*r.measureText(p[h]).width,a=.9*r.measureText(p[h]).ascent,y=b*w+a/u*l,y&gt;o&amp;&amp;(o=y));return o&gt;0&amp;&amp;(o+=this.get("major_label_standoff")),o},e.prototype._axis_label_extent=function(t){var e,i,n,r,s,o,a,l,u;return r=0,l=this.get("location"),o="parallel",n=t.plot_view.canvas_view.ctx,t.axis_label_props.set_value(n),e=Math.abs(v[l][o]),i=Math.cos(e),a=Math.sin(e),this.get("axis_label")&amp;&amp;(r+=this.get("axis_label_standoff"),t.axis_label_props.set_value(n),u=1.1*n.measureText(this.get("axis_label")).width,s=.9*n.measureText(this.get("axis_label")).ascent,r+="above"===l||"below"===l?u*a+s*i:u*i+s*a),r},e.prototype.defaults=function(){return f.extend({},e.__super__.defaults.call(this),{x_range_name:"default",y_range_name:"default"})},e.prototype.display_defaults=function(){return f.extend({},e.__super__.display_defaults.call(this),{level:"overlay",visible:!0,axis_line_color:"black",axis_line_width:1,axis_line_alpha:1,axis_line_join:"miter",axis_line_cap:"butt",axis_line_dash:[],axis_line_dash_offset:0,major_tick_in:2,major_tick_out:6,major_tick_line_color:"black",major_tick_line_width:1,major_tick_line_alpha:1,major_tick_line_join:"miter",major_tick_line_cap:"butt",major_tick_line_dash:[],major_tick_line_dash_offset:0,minor_tick_in:0,minor_tick_out:4,minor_tick_line_color:"black",minor_tick_line_width:1,minor_tick_line_alpha:1,minor_tick_line_join:"miter",minor_tick_line_cap:"butt",minor_tick_line_dash:[],minor_tick_line_dash_offset:0,major_label_standoff:5,major_label_orientation:"horizontal",major_label_text_font:"helvetica",major_label_text_font_size:"10pt",major_label_text_font_style:"normal",major_label_text_color:"#444444",major_label_text_alpha:1,major_label_text_align:"center",major_label_text_baseline:"alphabetic",axis_label:"",axis_label_standoff:5,axis_label_text_font:"helvetica",axis_label_text_font_size:"16pt",axis_label_text_font_style:"normal",axis_label_text_color:"#444444",axis_label_text_alpha:1,axis_label_text_align:"center",axis_label_text_baseline:"alphabetic"})},e}(l),e.exports={Model:r,View:s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../common/has_parent":114,"../../common/layout_box":117,"../../common/logging":119,"../../common/plot_widget":125,"../../common/properties":126,kiwi:303,underscore:92}],189:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("../../common/logging").logger,n=t("./axis"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(n.View),r=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return a(i,e),i.prototype.default_view=s,i.prototype.type="CategoricalAxis",i.prototype.initialize=function(e,n){var r;return i.__super__.initialize.call(this,e,n),r=t("../../common/base").Collections,null==this.get("ticker")&amp;&amp;this.set_obj("ticker",r("CategoricalTicker").create()),null==this.get("formatter")?this.set_obj("formatter",r("CategoricalTickFormatter").create()):void 0},i.prototype._computed_bounds=function(){var t,e,i,n,r,s;return n=this.get("ranges"),e=n[0],t=n[1],s=null!=(r=this.get("bounds"))?r:"auto",i=[e.get("min"),e.get("max")],"auto"!==s&amp;&amp;o.warn("Categorical Axes only support user_bounds='auto', ignoring"),i},i}(n.Model),e.exports={Model:r,View:s}},{"../../common/base":99,"../../common/logging":119,"./axis":188}],190:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;r=t("../../common/base").Collections,l=t("../../ticking/datetime_ticker"),a=t("../../ticking/datetime_tick_formatter"),n=t("./axis"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e}(n.View),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type="DatetimeAxis",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),null==this.get("ticker")&amp;&amp;this.set_obj("ticker",r("DatetimeTicker").create()),null==this.get("formatter")?this.set_obj("formatter",r("DatetimeTickFormatter").create()):void 0},e}(n.Model),e.exports={Model:s,View:o}},{"../../common/base":99,"../../ticking/datetime_tick_formatter":214,"../../ticking/datetime_ticker":215,"./axis":188}],191:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),s=t("../../common/has_parent"),o=t("../../common/plot_widget"),l=t("../../common/properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.grid_props=new l.Line({obj:this.model,prefix:"grid_"}),this.minor_grid_props=new l.Line({obj:this.model,prefix:"minor_grid_"}),this.band_props=new l.Fill({obj:this.model,prefix:"band_"}),this.x_range_name=this.mget("x_range_name"),this.y_range_name=this.mget("y_range_name")},e.prototype.render=function(){var t;return t=this.plot_view.canvas_view.ctx,t.save(),this._draw_regions(t),this._draw_minor_grids(t),this._draw_grids(t),t.restore()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change",this.request_render)},e.prototype._draw_regions=function(t){var e,i,n,r,s,o,a,l,u,h,c,p;if(this.band_props.do_fill)for(n=this.mget("grid_coords"),c=n[0],p=n[1],this.band_props.set_value(t),e=i=0,r=c.length-1;r&gt;=0?r&gt;i:i&gt;r;e=r&gt;=0?++i:--i)e%2===1&amp;&amp;(s=this.plot_view.map_to_screen(c[e],p[e],this.x_range_name,this.y_range_name),a=s[0],u=s[1],o=this.plot_view.map_to_screen(c[e+1],p[e+1],this.x_range_name,this.y_range_name),l=o[0],h=o[1],t.fillRect(a[0],u[0],l[1]-a[0],h[1]-u[0]),t.fill())},e.prototype._draw_grids=function(t){var e,i,n;if(this.grid_props.do_stroke)return e=this.mget("grid_coords"),i=e[0],n=e[1],this._draw_grid_helper(t,this.grid_props,i,n)},e.prototype._draw_minor_grids=function(t){var e,i,n;if(this.minor_grid_props.do_stroke)return e=this.mget("minor_grid_coords"),i=e[0],n=e[1],this._draw_grid_helper(t,this.minor_grid_props,i,n)},e.prototype._draw_grid_helper=function(t,e,i,n){var r,s,o,a,l,u,h,c;for(e.set_value(t),r=s=0,a=i.length;a&gt;=0?a&gt;s:s&gt;a;r=a&gt;=0?++s:--s){for(l=this.plot_view.map_to_screen(i[r],n[r],this.x_range_name,this.y_range_name),h=l[0],c=l[1],t.beginPath(),t.moveTo(Math.round(h[0]),Math.round(c[0])),r=o=1,u=h.length;u&gt;=1?u&gt;o:o&gt;u;r=u&gt;=1?++o:--o)t.lineTo(Math.round(h[r]),Math.round(c[r]));t.stroke()}},e}(o),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type="Grid",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("computed_bounds",this._bounds,!1),this.add_dependencies("computed_bounds",this,["bounds"]),this.register_property("grid_coords",this._grid_coords,!1),this.add_dependencies("grid_coords",this,["computed_bounds","dimension","ticker"]),this.register_property("minor_grid_coords",this._minor_grid_coords,!1),this.add_dependencies("minor_grid_coords",this,["computed_bounds","dimension","ticker"]),this.register_property("ranges",this._ranges,!0)},e.prototype._ranges=function(){var t,e,i,n;return e=this.get("dimension"),i=(e+1)%2,t=this.get("plot").get("frame"),n=[t.get("x_ranges")[this.get("x_range_name")],t.get("y_ranges")[this.get("y_range_name")]],[n[e],n[i]]},e.prototype._bounds=function(){var t,e,i,n,r,s,o,l;return r=this.get("ranges"),i=r[0],t=r[1],l=null!=(s=this.get("bounds"))?s:"auto",n=[i.get("min"),i.get("max")],a.isArray(l)?(o=Math.min(l[0],l[1]),e=Math.max(l[0],l[1]),o&lt;n[0]?o=n[0]:o&gt;n[1]&amp;&amp;(o=null),e&gt;n[1]?e=n[1]:e&lt;n[0]&amp;&amp;(e=null)):(o=n[0],e=n[1]),[o,e]},e.prototype._grid_coords=function(){return this._grid_coords_helper("major")},e.prototype._minor_grid_coords=function(){return this._grid_coords_helper("minor")},e.prototype._grid_coords_helper=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C;for(u=this.get("dimension"),c=(u+1)%2,y=this.get("ranges"),v=y[0],s=y[1],b=this.get("computed_bounds"),k=b[0],l=b[1],C=Math.min(k,l),l=Math.max(k,l),k=C,M=this.get("ticker").get_ticks(k,l,v,{})[t],m=v.get("min"),g=v.get("max"),n=s.get("min"),i=s.get("max"),r=[[],[]],h=p=0,w=M.length;w&gt;=0?w&gt;p:p&gt;w;h=w&gt;=0?++p:--p)if(M[h]!==m&amp;&amp;M[h]!==g){for(o=[],a=[],e=2,_=d=0,x=e;x&gt;=0?x&gt;d:d&gt;x;_=x&gt;=0?++d:--d)f=n+(i-n)/(e-1)*_,o.push(M[h]),a.push(f);r[u].push(o),r[c].push(a)}return r},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{x_range_name:"default",y_range_name:"default"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{level:"underlay",band_fill_color:null,band_fill_alpha:0,grid_line_color:"#cccccc",grid_line_width:1,grid_line_alpha:1,grid_line_join:"miter",grid_line_cap:"butt",grid_line_dash:[],grid_line_dash_offset:0,minor_grid_line_color:null,minor_grid_line_width:1,minor_grid_line_alpha:1,minor_grid_line_join:"miter",minor_grid_line_cap:"butt",minor_grid_line_dash:[],minor_grid_line_dash_offset:0})},e}(s),e.exports={Model:n,View:r}},{"../../common/has_parent":114,"../../common/plot_widget":125,"../../common/properties":126,underscore:92}],192:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("./axis"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e}(n.View),r=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return o(i,e),i.prototype.default_view=s,i.prototype.type="LinearAxis",i.prototype.initialize=function(e,n){var r;return i.__super__.initialize.call(this,e,n),r=t("../../common/base").Collections,null==this.get("ticker")&amp;&amp;this.set_obj("ticker",r("BasicTicker").create()),null==this.get("formatter")?this.set_obj("formatter",r("BasicTickFormatter").create()):void 0},i}(n.Model),e.exports={Model:r,View:s}},{"../../common/base":99,"./axis":188}],193:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("./axis"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e}(n.View),r=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return o(i,e),i.prototype.default_view=s,i.prototype.type="LogAxis",i.prototype.initialize=function(e,n){var r;return i.__super__.initialize.call(this,e,n),r=t("../../common/base").Collections,null==this.get("ticker")&amp;&amp;this.set_obj("ticker",r("LogTicker").create()),null==this.get("formatter")?this.set_obj("formatter",r("LogTickFormatter").create()):void 0},i}(n.Model),e.exports={Model:r,View:s}},{"../../common/base":99,"./axis":188}],194:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),s=t("../../common/has_parent"),o=t("../../common/plot_widget"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.$el.appendTo(this.plot_view.$el.find("div.bk-canvas-overlays")),this.$el.addClass("shading"),this.$el.hide()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:data",this._draw_box)},e.prototype.render=function(){return this._draw_box(),this},e.prototype._draw_box=function(){var t,e,i,n,r,s,o,l,u;return e=this.mget("data"),a.isEmpty(e)?void this.$el.hide():(l=e.vxlim,u=e.vylim,t=this.plot_view.canvas,s=Math.min(t.vx_to_sx(l[0]),t.vx_to_sx(l[1])),o=Math.min(t.vy_to_sy(u[0]),t.vy_to_sy(u[1])),r=Math.abs(l[1]-l[0]),i=Math.abs(u[1]-u[0]),n="left:"+s+"px; width:"+r+"px; top:"+o+"px; height:"+i+"px",this.$el.attr("style",n),this.$el.show())},e}(o),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="BoxSelection",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{level:"overlay",data:{}})},e}(s),e.exports={Model:n,View:r}},{"../../common/has_parent":114,"../../common/plot_widget":125,underscore:92}],195:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),n=t("../../common/has_parent"),r=t("../../common/plot_widget"),l=t("../../common/properties"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.line=new l.Line({obj:this.model,prefix:""}),this.fill=new l.Fill({obj:this.model,prefix:""})},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:data",this.plot_view.request_render)},e.prototype.render=function(t){var e,i,n,r,s,o,l;if(i=a.clone(this.mget("data")),a.isEmpty(i)||null==i)return null;for(e=this.plot_view.canvas,t=this.plot_view.canvas_view.ctx,n=r=0,s=i.vx.length;s&gt;=0?s&gt;r:r&gt;s;n=s&gt;=0?++r:--r)o=e.vx_to_sx(i.vx[n]),l=e.vy_to_sy(i.vy[n]),0===n?(t.beginPath(),t.moveTo(o,l)):t.lineTo(o,l);return this.mget("auto_close")&amp;&amp;t.closePath(),this.line.do_stroke&amp;&amp;(this.line.set_value(t),t.stroke()),this.fill.do_fill&amp;&amp;this.mget("auto_close")?(this.fill.set_value(t),t.fill()):void 0},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type="PolySelection",e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{fill_color:null,fill_alpha:.2,line_color:"grey",line_width:3,line_alpha:.8,line_join:"miter",line_cap:"butt",line_dash:[4],line_dash_offset:0})},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{level:"overlay",auto_close:!0,data:{}})},e}(n),e.exports={Model:s,View:o}},{"../../common/has_parent":114,"../../common/plot_widget":125,"../../common/properties":126,underscore:92}],196:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x;n=t("jquery"),o=t("underscore"),r=t("backbone"),p=t("../common/base"),s=t("../common/has_properties"),_=t("../common/load_models"),v=t("../common/logging").logger,w=t("./serverutils"),x=t("./usercontext/usercontext"),f=p.index,y=function(){var e,i;return e=t("../common/base").Config,i=e.prefix+"bokeh/ping",n.get(i).success(function(){return v.info("reloading"),window.location.reload()}).fail(o.delay(function(){return y()},1e3)),null},g=function(t){var e;return e=n("&lt;link href='"+t+"' rel='stylesheet' type='text/css'&gt;"),n("body").append(e)},c=function(t,e,i,r){var s,a;return _(r),s=p.Collections(i).get(e),a=new s.default_view({model:s}),e in f||(f[e]=a),o.delay(function(){return n(t).replaceWith(a.$el)})},d={},h=function(t,e,i,r){var s;return s=w.utility.load_one_object_chain(e,i,r),s.done(function(e){var r,s,a;return r=p.Collections(e.type).get(i),s=new r.default_view({model:r}),o.delay(function(){return n(t).replaceWith(s.$el)}),i in f||(f[i]=s),a=w.wswrapper,a.subscribe("debug:debug",""),a.on("msg:debug:debug",function(t){return"reload"===t?y():void 0})})},m=function(t,e){var i,r,s;if(s=n("#"+t),0===s.length)throw new Error("Error injecting plot: could not find script tag with id: "+t);if(s.length&gt;1)throw new Error("Error injecting plot: found too many script tags with id: "+t);if(!document.body.contains(s[0]))throw new Error("Error injecting plot: autoload script tag may only be under &lt;body&gt;");if(r=s.data(),Bokeh.set_log_level(r.bokehLoglevel),v.info("Injecting plot for script tag with id: #"+t),p.Config.prefix=r.bokehRootUrl,i=n("&lt;div&gt;",{"class":"bokeh-container"}),i.insertBefore(s),"static"===r.bokehData)return v.info("  - using static data"),c(i,r.bokehModelid,r.bokehModeltype,e);if("server"===r.bokehData)return v.info("  - using server data"),h(i,r.bokehDocid,r.bokehModelid,r.bokehPublic);throw new Error("Unknown bokehData value for inject_plot: "+r.bokehData)},b=function(t){return s.prototype.sync=r.sync,n(function(){var e;return e=w.utility.make_websocket(),e.then(function(){var e,i,n;return n=w.wswrapper,i=new x.UserDocs,i.subscribe(n,"defaultuser"),e=i.fetch(),e.done(function(){return null!=t?u(i,t):l(i)}),v.info("subscribing to debug"),n.subscribe("debug:debug",""),n.on("msg:debug:debug",function(t){return"reload"===t?y():void 0})})})},l=function(t){var e;return e=new x.UserDocsView({collection:t}),a(e.el)},u=function(t,e){var i,n;return i=t.find(function(t){return t.get("title")===e}),null!=i?(i.on("loaded",function(){var t,e;return t=i.get("plot_context"),e=new t.default_view({model:t}),a(e.el)}),i.load()):(n="Document '"+e+"' wasn't found on this server.",a(n),v.error(n))},a=function(t){return n("#PlotPane").append(t)},e.exports={inject_css:g,inject_plot:m,add_plot_server:h,add_plot_static:c,server_page:b}},{"../common/base":99,"../common/has_properties":115,"../common/load_models":118,"../common/logging":119,"./serverutils":197,"./usercontext/usercontext":199,backbone:2,jquery:18,underscore:92}],197:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_;n=t("jquery"),u=t("underscore"),r=t("backbone"),h=t("../common/base"),g=t("../common/socket"),l=g.WebSocketWrapper,m=g.submodels,d=t("../common/load_models"),f=t("../common/logging").logger,o=t("../common/has_properties"),s={},a={},s._doc_loaded=n.Deferred(),s._doc_requested=n.Deferred(),a.doc_loaded=s._doc_loaded.promise(),a.doc_requested=s._doc_requested.promise(),a.doc_promises={},p={},i.wswrapper=null,i.plotcontext=null,i.plotcontextview=null,i.Promises=a,p={},_={load_one_object_chain:function(e,s,a){var l,h,c,g;return a&amp;&amp;(p[e]||(p[e]=u.uniqueId("temporary")),g=p[e],h="temporary-"+e,l={},l[h]=g,n.ajaxSetup({headers:l})),o.prototype.sync=r.sync,c=_.make_websocket(),c=c.then(function(){var i,r;return i=t("../common/base").Config,r=i.prefix+"bokeh/objinfo/"+e+"/"+s,f.debug("load one object chain: "+r),c=n.get(r)}),c.done(function(t){var n,r;return n=t.all_models,d(n),r=t.apikey,m(i.wswrapper,"bokehplot:"+e,r),a?m(i.wswrapper,"bokehplot:"+g,null):void 0}),c},load_user:function(){var t;return t=n.get("/bokeh/userinfo/",{})},load_doc_by_title:function(e){var r,s;return r=t("../common/base").Config,s=n.get(r.prefix+"bokeh/doc",{title:e}).done(function(t){var e,n,r;return e=t.all_models,d(e),n=t.apikey,r=t.docid,m(i.wswrapper,"bokehplot:"+r,n)})},load_doc_static:function(t,e){" loads data without making a websocket connection ";var i;return load_data(e.all_models),i=jQuery.Deferred(),i.resolve(),i},load_doc:function(e){var r;return r=_.make_websocket(),r=r.then(function(){var i;return i=t("../common/base").Config,n.get(i.prefix+("bokeh/bokehinfo/"+e+"/"),{})}),r.done(function(t){var n,r;return n=t.all_models,d(n),r=t.apikey,m(i.wswrapper,"bokehplot:"+e,r)}),r},make_websocket:function(){var e,r;return null!=i.wswrapper?i._wswrapper_deferred:(e=t("../common/base").Config,i._wswrapper_deferred=n.get(e.prefix+"bokeh/wsurl/"),r=i._wswrapper_deferred,r.done(function(n){var r;return e=t("../common/base").Config,c(n,null),r=new l(e.ws_conn_string),i.wswrapper=r}),r)},render_plots:function(e,n,r){var s,o,a,l;return null==n&amp;&amp;(n=null),null==r&amp;&amp;(r={}),s=t("../common/base").Collections,a=s(e.type).get(e.id),n||(n=a.default_view),o=u.extend(r,{model:a}),l=new n(o),a=a,l=l,l.render(),i.plotcontext=a,i.plotcontextview=l},bokeh_connection:function(t,e,i){return u.isUndefined(i)&amp;&amp;(i="https"),"pending"===a.doc_requested.state()?(s._doc_requested.resolve(),n.get(i+"://"+t+"/bokeh/publicbokehinfo/"+e,{},function(t){return f.debug("instantiate_doc_single "+e),t=JSON.parse(t),d(t.all_models),s._doc_loaded.resolve(t)})):void 0}},c=function(e,i){var n;return n=t("../common/base").Config,e&amp;&amp;(n.ws_conn_string=e,f.debug("setting ws_conn_string to: "+n.ws_conn_string)),i&amp;&amp;(n.prefix=i,f.debug("setting prefix to "+n.prefix)),null},i.utility=_,i.configure_server=c,e.exports=i},{"../common/base":99,"../common/has_properties":115,"../common/load_models":118,"../common/logging":119,"../common/socket":130,backbone:2,jquery:18,underscore:92}],198:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push("&lt;p&gt;\n  &lt;b&gt;\n    You have no Plots. Follow the instructions below to create some.\n  &lt;/b&gt;\n&lt;/p&gt;\n")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],199:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y=function(t,e){function i(){this.constructor=t}for(var n in e)b.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},b={}.hasOwnProperty;c=t("underscore"),n=t("jquery"),p=t("../../common/base"),d=t("../../common/build_views"),s=t("../../common/continuum_view"),r=t("../../common/collection"),l=t("../../common/has_parent"),g=t("../../common/load_models"),f=t("./documentationtemplate"),_=t("../serverutils").utility,m=t("./userdocstemplate"),v=t("./wrappertemplate"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.template=v,e.prototype.attributes={"class":"panel-group"},e.prototype.events={"click .bokehdoclabel":"loaddoc","click .bokehdelete":"deldoc"},e.prototype.deldoc=function(t){return t.preventDefault(),this.model.destroy(),!1},e.prototype.loaddoc=function(){return this.model.load()},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render_init()},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t),this.listenTo(this.model,"loaded",this.render)},e.prototype.render_init=function(){var t;return t=this.template({model:this.model,bodyid:c.uniqueId()}),this.$el.html(t)},e.prototype.render=function(){var t;return t=this.model.get("plot_context"),this.plot_context_view=new t.default_view({model:t}),this.$el.find(".plots").append(this.plot_context_view.el),!0},e}(s),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.initialize=function(t){return this.docs=t.docs,this.collection=t.collection,this.views={},e.__super__.initialize.call(this,t),this.render()},e.prototype.attributes={"class":"usercontext"},e.prototype.events={"click .bokehrefresh":function(){return this.collection.fetch({update:!0})}},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t),this.listenTo(this.collection,"add",this.render),this.listenTo(this.collection,"remove",this.render),this.listenTo(this.collection,"add",function(t){return function(e,i,n){return t.listenTo(e,"loaded",function(){return t.listenTo(e.get("plot_context"),"change",function(){return t.trigger("show")})})}}(this)),this.listenTo(this.collection,"remove",function(t){return function(e,i,n){return t.stopListening(e)}}(this))},e.prototype.render_docs=function(){return this.$el.html(f()),this.$el.append(this.docs)},e.prototype.render=function(){var t,e,i,n,r;if(0===this.collection.models.length&amp;&amp;this.docs)return this.render_docs();for(t=m(),c.map(c.values(this.views),function(t){return t.$el.detach()}),r=this.collection.models.slice().reverse(),d(this.views,r,{}),this.$el.html(t),e=0,i=r.length;i&gt;e;e++)n=r[e],this.$el.find(".accordion").append(this.views[n.id].el);return this},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.default_view=a,e.prototype.idAttribute="docid",e.prototype.defaults=function(){return c.extend({},e.__super__.defaults.call(this),{docid:null,title:null,plot_context:null,apikey:null})},e.prototype.sync=function(){},e.prototype.destroy=function(t){return e.__super__.destroy.call(this,t),n.ajax({url:"/bokeh/doc/"+this.get("docid")+"/",type:"delete"})},e.prototype.load=function(t){var e,i,n;if(!this.loaded)return t?(n=this.get("title"),i=_.load_doc_by_title(n)):(e=this.get("docid"),i=_.load_doc(e)),i.done(function(t){return function(e){return t.set("docid",e.docid),t.set("apikey",e.apikey),t.set("plot_context",e.plot_context_ref),t.trigger("loaded"),t.loaded=!0}}(this))},e}(l),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.model=o,e.prototype.subscribe=function(t,e){return t.subscribe("bokehuser:"+e,null),this.listenTo(t,"msg:bokehuser:"+e,function(t){return t=JSON.parse(t),"docchange"===t.msgtype?this.fetch({update:!0}):void 0})},e.prototype.fetch=function(t){var e,i,r;return c.isUndefined(t)&amp;&amp;(t={}),r=p.Config.prefix+"bokeh/userinfo/",e=i=n.get(r,{}),e.done(function(e){return function(i){var n;return n=i.docs,t.update?e.set(n,t):e.reset(n,t)}}(this)),e},e}(r),e.exports={UserDocs:u,UserDocsView:h,Doc:o,DocView:a}},{"../../common/base":99,"../../common/build_views":101,"../../common/collection":107,"../../common/continuum_view":109,"../../common/has_parent":114,"../../common/load_models":118,"../serverutils":197,"./documentationtemplate":198,"./userdocstemplate":200,"./wrappertemplate":201,jquery:18,underscore:92}],200:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;div class="accordion"&gt;\n&lt;/div&gt;\n')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],201:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;div class="panel panel-default"&gt;\n  &lt;div class="panel-heading"&gt;\n    &lt;h4 class="panel-title"&gt;\n      &lt;a class="bokehdoclabel" href="#'),i.push(n(this.bodyid)),i.push('" data-toggle="collapse"&gt;\n        Document: '),i.push(n(this.model.get("title"))),i.push(' &lt;span class="bokehdelete glyphicon glyphicon-trash"&gt;&lt;/i&gt;\n      &lt;/a&gt;\n    &lt;/h4&gt;\n  &lt;/div&gt;\n  &lt;div id="'),i.push(n(this.bodyid)),i.push('" class="panel-collapse collapse"&gt;\n    &lt;div class="panel-body plots"&gt;&lt;/div&gt;\n  &lt;/div&gt;\n&lt;/div&gt;\n')}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],202:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,
        t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),l=t("underscore"),o=t("backbone"),u=t("../common/logging").logger,a=t("./remote_data_source"),r=function(t){function e(){return this.defaults=h(this.defaults,this),this.get_data=h(this.get_data,this),this.setup=h(this.setup,this),this.destroy=h(this.destroy,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="AjaxDataSource",e.prototype.destroy=function(){return null!=this.interval?clearInterval(this.interval):void 0},e.prototype.setup=function(t,e){return this.pv=t,this.get_data(this.get("mode")),this.get("polling_interval")?this.interval=setInterval(this.get_data,this.get("polling_interval"),this.get("mode"),this.get("max_size"),this.get("if_modified")):void 0},e.prototype.get_data=function(t,e,i){return null==e&amp;&amp;(e=0),null==i&amp;&amp;(i=!1),n.ajax({dataType:"json",ifModified:i,url:this.get("data_url"),xhrField:{withCredentials:!0},method:this.get("method"),contentType:"application/json"}).done(function(i){return function(n){var r,s,o,a,l;if("replace"===t)i.set("data",n);else if("append"===t){for(a=i.get("data"),l=i.columns(),s=0,o=l.length;o&gt;s;s++)r=l[s],n[r]=a[r].concat(n[r]).slice(-e);i.set("data",n)}else u.error("unsupported mode: "+t);return u.trace(n),null}}(this)).error(function(){return u.error(arguments)}),null},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{mode:"replace"})},e}(a.RemoteDataSource),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.model=r,e.prototype.defaults={url:"",expr:null},e}(o.Collection),e.exports={Model:r,Collection:new s}},{"../common/logging":119,"./remote_data_source":205,backbone:2,jquery:18,underscore:92}],203:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),l=t("underscore"),r=t("backbone"),u=t("../common/logging").logger,a=t("./remote_data_source"),s=function(t){function e(){return this.update=h(this.update,this),this.setup=h(this.setup,this),this.destroy=h(this.destroy,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="BlazeDataSource",e.prototype.destroy=function(){return null!=this.interval?clearInterval(this.interval):void 0},e.prototype.setup=function(t,e){return this.pv=t,this.update(),this.get("polling_interval")?this.interval=setInterval(this.update,this.get("polling_interval")):void 0},e.prototype.update=function(){var t;return t=JSON.stringify({expr:this.get("expr"),namespace:this.get("namespace")}),n.ajax({dataType:"json",url:this.get("data_url"),data:t,xhrField:{withCredentials:!0},method:"POST",contentType:"application/json"}).done(function(t){return function(e){var i,n,r,s,o,a,u,h;for(n=l.zip.apply(l,e.data),r={},h=e.names,o=s=0,a=h.length;a&gt;s;o=++s)i=h[o],r[i]=n[o];return u=l.clone(t.get("data")),l.extend(u,r),t.set("data",u),null}}(this))},e}(a.RemoteDataSource),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.model=s,e.prototype.defaults={url:"",expr:null},e}(r.Collection),e.exports={Model:s,Collection:new o}},{"../common/logging":119,"./remote_data_source":205,backbone:2,jquery:18,underscore:92}],204:[function(t,e,i){var n,r,s,o,a,l=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),r=t("../common/has_properties"),s=t("../common/selection_manager"),a=t("../common/hittest"),n=function(t){function e(){return this.defaults=l(this.defaults,this),e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="ColumnDataSource",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this,"change:selected",function(t){return function(){var e;return null!=(e=t.get("callback"))?e.execute(t):void 0}}(this))},e.prototype.get_column=function(t){var e;return null!=(e=this.get("data")[t])?e:null},e.prototype.get_length=function(){var t,e,i,n;return t=this.get("data"),0===o.keys(t).length?null:(i=o.uniq(function(){var i;i=[];for(e in t)n=t[e],i.push(n.length);return i}()),i[0])},e.prototype.columns=function(){return o.keys(this.get("data"))},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{data:{},selection_manager:new s({source:this}),selected:a.create_hit_test_result()})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,"../common/hittest":116,"../common/selection_manager":128,underscore:92}],205:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("backbone"),r=t("./column_data_source"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(r.Model),e.exports={RemoteDataSource:s}},{"./column_data_source":204,backbone:2,underscore:92}],206:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_=function(t,e){function i(){this.constructor=t}for(var n in e)v.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},v={}.hasOwnProperty,y=function(t,e){return function(){return t.apply(e,arguments)}};n=t("jquery"),f=t("underscore"),s=t("backbone"),a=t("../common/has_properties"),m=t("../common/logging").logger,h=t("../range/range1d"),o=t("../range/data_range1d"),c=t("./remote_data_source"),g=function(t){var e,i,n,r;return e=!1,r=null,n=!1,i=function(){return e?n?m.debug("already bound, ignoring"):(m.debug("busy, so doing it later"),n=!0,r.done(function(){return n=!1,i()})):(m.debug("executing"),e=!0,r=t(),r.done(function(){return m.debug("done, setting to false"),e=!1,r=null}))}},d=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.callbacks=[],this.plot_state={data_x:i.data_x,data_y:i.data_y,screen_x:i.screen_x,screen_y:i.screen_y},this.glyph=i.glyph,this.data_source=i.data_source,this.render_state=i.render_state,this.auto_bounds=i.data_source.get("transform").auto_bounds},e.prototype.stoplistening_for_updates=function(){var t,e,i,n,r;for(n=this.callbacks,r=[],e=0,i=n.length;i&gt;e;e++)t=n[e],r.push(this.stopListening.apply(this,t));return r},e.prototype.listen_for_updates=function(){var t,e,i,n,r;for(this.stoplistening_for_updates(),t=g(function(t){return function(){return t.update()}}(this)),t=f.debounce(t,100),t(),r=[this.plot_state.data_x,this.plot_state.data_x,this.plot_state.screen_x,this.plot_state.screen_y],e=0,i=r.length;i&gt;e;e++)n=r[e],this.listenTo(n,"change",t),this.callbacks.push([n,"change",t]);return null},e.prototype.update=function(){return null},e.prototype.plot_state_json=function(){var t,e,i,n,r;r={},n=this.plot_state;for(e in n)t=n[e],i=new h.Model,i.set("start",t.get("start")),i.set("end",t.get("end")),r[e]=i;return r},e.prototype.update_url=function(){var t,e,i,n,r,s;return i=this.glyph,this.get("data_url")?(s=data_url,t=s.replace("/compute.json","/render")):t=i.get_base().Config.prefix+"render",e=this.glyph.get("doc"),r=this.data_source.get("id"),n=i.get("id"),s=t+"/"+e+"/"+r+"/"+n},e}(s.Model),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get("start")===e.screen_x.get("end")||e.screen_y.get("start")===e.screen_y.get("end")?(m.debug("skipping due to under-defined view state"),n.ajax()):(m.debug("Sent render State",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:"POST",dataType:"json",url:this.update_url(),xhrField:{withCredentials:!0},contentType:"application/json",data:JSON.stringify(t),success:function(t){return function(i){var n;return"NO UPDATE"===i.render_state?void m.info("No update"):(t.auto_bounds&amp;&amp;(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug("New render State:",i.render_state),n=f.clone(t.data_source.get("data")),f.extend(n,i.data),t.data_source.set("data",n),null)}}(this)}))},e}(d),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get("start")===e.screen_x.get("end")||e.screen_y.get("start")===e.screen_y.get("end")?(m.debug("skipping due to under-defined view state"),n.ajax()):(m.debug("Sent render State",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:"POST",dataType:"json",url:this.update_url(),xhrField:{withCredentials:!0},contentType:"application/json",data:JSON.stringify(t),success:function(t){return function(i){var n;return"NO UPDATE"===i.render_state?void m.info("No update"):(t.auto_bounds&amp;&amp;(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug("New render State:",i.render_state),n=f.clone(t.data_source.get("data")),f.extend(n,i.data),t.data_source.set("data",n),null)}}(this)}))},e}(d),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get("start")===e.screen_x.get("end")||e.screen_y.get("start")===e.screen_y.get("end")?(m.debug("skipping due to under-defined view state"),n.ajax()):(m.debug("Sent render State",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:"POST",dataType:"json",url:this.update_url(),xhrField:{withCredentials:!0},contentType:"application/json",data:JSON.stringify(t),success:function(t){return function(i){var n;return"NO UPDATE"===i.render_state?void m.info("No update"):(t.auto_bounds&amp;&amp;(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug("New render State:",i.render_state),n=f.clone(t.data_source.get("data")),f.extend(n,i.data),t.data_source.set("data",n),null)}}(this)}))},e}(d),p=function(t){function e(){return this.setup_proxy=y(this.setup_proxy,this),this.setup=y(this.setup,this),this.initialize=y(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.type="ServerDataSource",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i)},e.prototype.setup=function(t,e){var i,n,r,s,o;return s=o=i=n=r={data_x:t.x_range,data_y:t.y_range,screen_x:t.frame.get("h_range"),screen_y:t.frame.get("v_range"),glyph:e.model},this.setup_proxy(r)},e.prototype.setup_proxy=function(t){return t.data_source=this,"abstract rendering"===this.get("transform").resample?this.proxy=new r({},t):"line1d"===this.get("transform").resample?this.proxy=new u({},t):"heatmap"===this.get("transform").resample&amp;&amp;(this.proxy=new l({},t)),this.proxy.listen_for_updates()},e}(c.RemoteDataSource),e.exports={Model:p}},{"../common/has_properties":115,"../common/logging":119,"../range/data_range1d":144,"../range/range1d":146,"./remote_data_source":205,backbone:2,jquery:18,underscore:92}],207:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),s=t("../common/has_properties"),a=function(t){var e,i,n,r,s;return null===t?"null":null==t?"undefined":t.constructor===Array?(i=function(){var i,n,r;for(r=[],i=0,n=t.length;n&gt;i;i++)e=t[i],r.push(a(e));return r}().join(", "),"["+i+"]"):t.constructor===Object?(s=function(){var e;e=[];for(n in t)e.push(n+": "+a(t[n]));return e}().join(", "),"{"+s+"}"):t.constructor===String?'"'+t+'"':t.constructor===Function?"&lt;Function: "+t.name+"&gt;":(r=t.toString(),"[object Object]"===r?"&lt;"+t.constructor.name+"&gt;":r)},r=6,n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="AbstractTicker",e.prototype.get_ticks=function(t,e,i,n){var r;return r=n.desired_n_ticks,this.get_ticks_no_defaults(t,e,this.get("desired_num_ticks"))},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,s,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x;if(l=this.get_interval(t,e,i),y=Math.floor(t/l),n=Math.ceil(e/l),s=o.isNaN(y)||o.isNaN(n)?[]:o.range(y,n+1),w=function(){var t,e,i;for(i=[],t=0,e=s.length;e&gt;t;t++)r=s[t],i.push(r*l);return i}(),v=this.get("num_minor_ticks"),_=[],v&gt;1){for(g=l/v,m=function(){var t,e,i;for(i=[],a=t=1,e=v;e&gt;=1?e&gt;=t:t&gt;=e;a=e&gt;=1?++t:--t)i.push(a*g);return i}(),u=0,p=m.length;p&gt;u;u++)x=m[u],_.push(w[0]-x);for(h=0,d=w.length;d&gt;h;h++)for(b=w[h],c=0,f=m.length;f&gt;c;c++)x=m[c],_.push(b+x)}return{major:w,minor:_}},e.prototype.get_interval=void 0,e.prototype.get_min_interval=function(){return this.get("min_interval")},e.prototype.get_max_interval=function(){return this.get("max_interval")},e.prototype.toString=function(){var t,e,i,n;return t=typeof this,n=this.get("toString_properties"),i=function(){var t,i,r;for(r=[],t=0,i=n.length;i&gt;t;t++)e=n[t],r.push(e+"="+a(this[e]));return r}.call(this).join(", "),t+"("+i+")"},e.prototype.get_ideal_interval=function(t,e,i){var n;return n=e-t,n/i},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{toString_properties:[],num_minor_ticks:5,desired_num_ticks:r})},e}(s),e.exports={Model:n}},{"../common/has_properties":115,underscore:92}],208:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;s=t("underscore"),n=t("./abstract_ticker"),o=t("./util").argmin,a=function(t,e,i){return Math.max(e,Math.min(i,t))},l=function(t,e){return null==e&amp;&amp;(e=Math.E),Math.log(t)/Math.log(e)},r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="AdaptiveTicker",e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),n=s.last(this.get("mantissas"))/this.get("base"),r=s.first(this.get("mantissas"))*this.get("base"),this.extended_mantissas=s.flatten([n,this.get("mantissas"),r]),this.base_factor=0===this.get("min_interval")?1:this.get("min_interval")},e.prototype.get_interval=function(t,e,i){var n,r,s,u,h,c,p,d,f;return s=e-t,h=this.get_ideal_interval(t,e,i),f=Math.floor(l(h/this.base_factor,this.get("base"))),c=Math.pow(this.get("base"),f)*this.base_factor,p=h/c,r=this.extended_mantissas,u=r.map(function(t){return Math.abs(i-s/(t*c))}),n=r[o(u)],d=n*c,a(d,this.get("min_interval"),this.get("max_interval"))},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{toString_properties:["mantissas","base","min_magnitude","max_magnitude"],base:10,mantissas:[2,5,10],min_interval:0,max_interval:1/0})},e}(n.Model),e.exports={Model:r}},{"./abstract_ticker":207,"./util":224,underscore:92}],209:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="BasicTickFormatter",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("scientific_limit_low",function(){return Math.pow(10,this.get("power_limit_low"))},!0),this.add_dependencies("scientific_limit_low",this,["power_limit_low"]),this.register_property("scientific_limit_high",function(){return Math.pow(10,this.get("power_limit_high"))},!0),this.add_dependencies("scientific_limit_high",this,["power_limit_high"]),this.last_precision=3},e.prototype.format=function(t){var e,i,n,r,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x;if(0===t.length)return[];if(x=0,t.length&gt;=2&amp;&amp;(x=Math.abs(t[1]-t[0])/1e4),c=!1,this.get("use_scientific"))for(n=0,l=t.length;l&gt;n;n++)if(y=t[n],b=Math.abs(y),b&gt;x&amp;&amp;(b&gt;=this.get("scientific_limit_high")||b&lt;=this.get("scientific_limit_low"))){c=!0;break}if(d=this.get("precision"),null==d||s.isNumber(d)){if(a=new Array(t.length),c)for(e=r=0,f=t.length;f&gt;=0?f&gt;r:r&gt;f;e=f&gt;=0?++r:--r)a[e]=t[e].toExponential(d||void 0);else for(e=o=0,g=t.length;g&gt;=0?g&gt;o:o&gt;g;e=g&gt;=0?++o:--o)a[e]=t[e].toFixed(d||void 0).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");return a}if("auto"===d)for(a=new Array(t.length),w=u=m=this.last_precision;15&gt;=m?15&gt;=u:u&gt;=15;w=15&gt;=m?++u:--u){if(i=!0,c){for(e=h=0,_=t.length;_&gt;=0?_&gt;h:h&gt;_;e=_&gt;=0?++h:--h)if(a[e]=t[e].toExponential(w),e&gt;0&amp;&amp;a[e]===a[e-1]){i=!1;break}if(i)break}else{for(e=p=0,v=t.length;v&gt;=0?v&gt;p:p&gt;v;e=v&gt;=0?++p:--p)if(a[e]=t[e].toFixed(w).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,""),e&gt;0&amp;&amp;a[e]===a[e-1]){i=!1;break}if(i)break}if(i)return this.last_precision=w,a}return a},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{precision:"auto",use_scientific:!0,power_limit_high:5,power_limit_low:-3})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,underscore:92}],210:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("./adaptive_ticker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="BasicTicker",e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{mantissas:[1,2,5]})},e}(n.Model),e.exports={Model:r}},{"./adaptive_ticker":208,underscore:92}],211:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type="CategoricalTickFormatter",e.prototype.format=function(t){return t},e}(r),e.exports={Model:n}},{"../common/has_properties":115}],212:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type="CategoricalTicker",e.prototype.get_ticks=function(t,e,i,n){var r,s,o,a,l,u,h;for(r=n.desired_n_ticks,u=[],s=i.get("factors"),o=l=0,h=s.length;h&gt;=0?h&gt;l:l&gt;h;o=h&gt;=0?++l:--l)a=o+i.get("offset"),a+1&gt;t&amp;&amp;e&gt;a+1&amp;&amp;u.push(s[o]);return{major:u,minor:[]}},e}(r),e.exports={Model:n}},{"../common/has_properties":115}],213:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t("underscore"),n=t("./abstract_ticker"),o=t("./util").argmin,r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="CompositeTicker",e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),n=this.get("tickers"),this.register_property("min_intervals",function(){return s.invoke(n,"get_min_interval")},!0),this.add_dependencies("min_intervals",this,["tickers"]),this.register_property("max_intervals",function(){return s.invoke(n,"get_max_interval")},!0),this.add_dependencies("max_intervals",this,["tickers"]),this.register_property("min_interval",function(){return s.first(this.get("min_intervals"))},!0),this.add_dependencies("min_interval",this,["min_intervals"]),this.register_property("max_interval",function(){return s.first(this.get("max_intervals"))},!0),this.add_dependencies("max_interval",this,["max_interval"])},e.prototype.get_best_ticker=function(t,e,i){var n,r,a,l,u,h,c,p;return l=e-t,h=this.get_ideal_interval(t,e,i),p=[s.sortedIndex(this.get("min_intervals"),h)-1,s.sortedIndex(this.get("max_intervals"),h)],c=[this.get("min_intervals")[p[0]],this.get("max_intervals")[p[1]]],u=c.map(function(t){return Math.abs(i-l/t)}),n=o(u),n===1/0?this.get("tickers")[0]:(a=p[n],r=this.get("tickers")[a])},e.prototype.get_interval=function(t,e,i){var n;return n=this.get_best_ticker(t,e,i),n.get_interval(t,e,i)},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r;return n=this.get_best_ticker(t,e,i),r=n.get_ticks_no_defaults(t,e,i)},e}(n.Model),e.exports={Model:r}},{"./abstract_ticker":207,"./util":224,underscore:92}],214:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f=function(t,e){function i(){this.constructor=t}for(var n in e)g.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},g={}.hasOwnProperty;o=t("underscore"),s=t("sprintf"),d=t("timezone"),r=t("../common/has_properties"),p=t("../common/logging").logger,c=function(t){return Math.round(t/1e3%1*1e6)},h=function(t){var e,i;return e=new Date(t),i=e.getFullYear(),e.getMonth()&gt;=7&amp;&amp;(i+=1),s.sprintf("'%02d",i%100)},l=function(t){var e,i;return e=new Date(t),i=e.getFullYear(),e.getMonth()&gt;=7&amp;&amp;(i+=1),s.sprintf("%d",i)},a=function(t){return d(t,"%Y %m %d %H %M %S").split(/\s+/).map(function(t){return parseInt(t,10)})},u=function(t,e){var i;return o.isFunction(e)?e(t):(i=s.sprintf("$1%06d",c(t)),e=e.replace(/((^|[^%])(%%)*)%f/,i),-1===e.indexOf("%")?e:d(t,e))},n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,t),e.prototype.type="DatetimeTickFormatter",e.prototype.format_order=["microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"],e.prototype._formats={microseconds:["%fus"],milliseconds:["%3Nms","%S.%3Ns"],seconds:["%Ss"],minsec:[":%M:%S"],minutes:[":%M","%Mm"],hourmin:["%H:%M"],hours:["%Hh","%H:%M"],days:["%m/%d","%a%d"],months:["%m/%Y","%b%y"],years:["%Y",h,l]},e.prototype.strip_leading_zeros=!0,e.prototype.initialize=function(t,i){var n,r,s,a,l,h,c,p;e.__super__.initialize.call(this,t,i),n=o.extend({},this._formats,this.get("formats")),l=d(new Date),this.formats={},h=[];for(r in n)a=n[r],c=function(){var t,e,i;for(i=[],t=0,e=a.length;e&gt;t;t++)s=a[t],i.push(u(l,s).length);return i}(),p=o.sortBy(o.zip(c,a),function(t){var e,i;return i=t[0],e=t[1],i}),h.push(this.formats[r]=o.zip.apply(o,p));return h},e.prototype._get_resolution_str=function(t,e){var i,n;return i=1.1*t,n=.001&gt;i?"microseconds":1&gt;i?"milliseconds":60&gt;i?e&gt;=60?"minsec":"seconds":3600&gt;i?e&gt;=3600?"hourmin":"minutes":86400&gt;i?"hours":2678400&gt;i?"days":31536e3&gt;i?"months":"years"},e.prototype.format=function(t,e,i,n,r){var s,l,h,c,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j;if(null==e&amp;&amp;(e=null),null==i&amp;&amp;(i=null),null==n&amp;&amp;(n=.3),null==r&amp;&amp;(r=null),0===t.length)return[];if(E=Math.abs(t[t.length-1]-t[0])/1e3,M=r?r.resolution:E/(t.length-1),S=this._get_resolution_str(M,E),C=this.formats[S],j=C[0],c=C[1],h=c[0],i){for(d=[],g=m=0,D=j.length;D&gt;=0?D&gt;m:m&gt;D;g=D&gt;=0?++m:--m)j[g]*t.length&lt;n*i&amp;&amp;d.push(this.formats[g]);d.length&gt;0&amp;&amp;(h=o.last(d))}for(y=[],A=this.format_order.indexOf(S),R={},T=this.format_order,_=0,b=T.length;b&gt;_;_++)l=T[_],R[l]=0;for(R.seconds=5,R.minsec=4,R.minutes=4,R.hourmin=3,R.hours=3,v=0,w=t.length;w&gt;v;v++){N=t[v];try{z=a(N),P=u(N,h)}catch(O){s=O,p.warn("unable to format tick for timestamp value "+N),p.warn(" - "+s),y.push("ERR");continue}for(f=!1,k=A;0===z[R[this.format_order[k]]]&amp;&amp;(k+=1,k!==this.format_order.length);){if(("minsec"===S||"hourmin"===S)&amp;&amp;!f){if("minsec"===S&amp;&amp;0===z[4]&amp;&amp;0!==z[5]||"hourmin"===S&amp;&amp;0===z[3]&amp;&amp;0!==z[4]){x=this.formats[this.format_order[A-1]][1][0],P=u(N,x);break}f=!0}x=this.formats[this.format_order[k]][1][0],P=u(N,x)}this.strip_leading_zeros?(I=P.replace(/^0+/g,""),I!==P&amp;&amp;isNaN(parseInt(I))&amp;&amp;(I="0"+I),y.push(I)):y.push(P)}return y},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{formats:{}})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,"../common/logging":119,sprintf:90,timezone:91,underscore:92}],215:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty;f=t("underscore"),n=t("./adaptive_ticker"),r=t("./composite_ticker"),o=t("./days_ticker"),a=t("./months_ticker"),d=t("./years_ticker"),g=t("./util"),u=g.ONE_MILLI,p=g.ONE_SECOND,h=g.ONE_MINUTE,l=g.ONE_HOUR,c=g.ONE_MONTH,s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.type="DatetimeTicker",e.prototype.defaults=function(){return f.extend({},e.__super__.defaults.call(this),{num_minor_ticks:0,tickers:[new n.Model({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*u,num_minor_ticks:0}),new n.Model({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:p,max_interval:30*h,num_minor_ticks:0}),new n.Model({mantissas:[1,2,4,6,8,12],base:24,min_interval:l,max_interval:12*l,num_minor_ticks:0}),new o.Model({days:f.range(1,32)}),new o.Model({days:f.range(1,31,3)}),new o.Model({days:[1,8,15,22]}),new o.Model({days:[1,15]}),new a.Model({months:f.range(0,12,1)}),new a.Model({months:f.range(0,12,2)}),new a.Model({months:f.range(0,12,4)}),new a.Model({months:f.range(0,12,6)}),new d.Model({})]})},e}(r.Model),e.exports={Model:s}},{"./adaptive_ticker":208,"./composite_ticker":213,"./days_ticker":216,"./months_ticker":220,"./util":224,"./years_ticker":225,underscore:92}],216:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;o=t("underscore"),s=t("./single_interval_ticker"),h=t("./util"),a=h.copy_date,u=h.last_month_no_later_than,r=h.ONE_DAY,l=function(t,e){var i,n,r,s,o;for(o=u(new Date(t)),r=u(new Date(e)),s=a(r),r.setUTCMonth(r.getUTCMonth()+1),n=[],i=o;;)if(n.push(a(i)),i.setUTCMonth(i.getUTCMonth()+1),i&gt;r)break;return n},n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="DaysTicker",e.prototype.initialize=function(t,i){var n,s;return t.num_minor_ticks=0,e.__super__.initialize.call(this,t,i),n=this.get("days"),s=n.length&gt;1?(n[1]-n[0])*r:31*r,this.set("interval",s)},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,s,u,h,c,p,d;return p=l(t,e),u=this.get("days"),h=function(t){return function(t,e){var i,n,r,s,o,l;for(i=[],o=0,l=u.length;l&gt;o;o++)n=u[o],r=a(t),r.setUTCDate(n),s=new Date(r.getTime()+e/2),s.getUTCMonth()===t.getUTCMonth()&amp;&amp;i.push(r);return i}}(this),c=this.get("interval"),s=o.flatten(function(){var t,e,i;for(i=[],t=0,e=p.length;e&gt;t;t++)r=p[t],i.push(h(r,c));return i}()),n=o.invoke(s,"getTime"),d=o.filter(n,function(i){return i&gt;=t&amp;&amp;e&gt;=i}),{major:d,minor:[]}},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{toString_properties:["days"]})},e}(s.Model),e.exports={Model:n}},{"./single_interval_ticker":223,"./util":224,underscore:92}],217:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("./abstract_ticker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="FixedTicker",e.prototype.get_ticks_no_defaults=function(t,e,i){return{major:this.get("ticks"),minor:[]}},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{ticks:[]})},e}(n.Model),e.exports={Model:r}},{"./abstract_ticker":207,underscore:92}],218:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),r=t("../common/has_properties"),a=t("../common/logging").logger,n=t("./basic_tick_formatter"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="LogTickFormatter",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.basic_formatter=new n.Model,null==this.get("ticker")?a.warn("LogTickFormatter not configured with a ticker, using default base of 10 (labels will be incorrect if ticker base is not 10)"):void 0},e.prototype.format=function(t){var e,i,n,r,s,o;if(0===t.length)return[];for(e=null!=this.get("ticker")?this.get("ticker").get("base"):10,o=!1,r=new Array(t.length),i=n=0,s=t.length;s&gt;=0?s&gt;n:n&gt;s;i=s&gt;=0?++n:--n)if(r[i]=e+"^"+Math.round(Math.log(t[i])/Math.log(e)),i&gt;0&amp;&amp;r[i]===r[i-1]){o=!0;break}return o&amp;&amp;(r=this.basic_formatter.format(t)),r},e}(r),e.exports={Model:s}},{"../common/has_properties":115,"../common/logging":119,"./basic_tick_formatter":209,underscore:92}],219:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t("underscore"),n=t("./adaptive_ticker"),o=function(t,e,i){var n,r;if(s.isUndefined(e)&amp;&amp;(e=t,t=0),s.isUndefined(i)&amp;&amp;(i=1),i&gt;0&amp;&amp;t&gt;=e||0&gt;i&amp;&amp;e&gt;=t)return[];for(r=[],n=t;i&gt;0?e&gt;n:n&gt;e;)r.push(n),n+=i;return r},r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="LogTicker",e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j;if(A=this.get("num_minor_ticks"),T=[],0&gt;=t&amp;&amp;(t=1),t&gt;e&amp;&amp;(E=[e,t],t=E[0],e=E[1]),n=this.get("base"),k=Math.log(t)/Math.log(n),w=Math.log(e)/Math.log(n),x=w-k,2&gt;x){if(c=this.get_interval(t,e,i),I=Math.floor(t/c),r=Math.ceil(e/c),u=s.isNaN(I)||s.isNaN(r)?[]:s.range(I,r+1),z=function(){var t,e,i;for(i=[],t=0,e=u.length;e&gt;t;t++)l=u[t],0!==l&amp;&amp;i.push(l*c);return i}(),A&gt;1){for(C=c/A,D=function(){var t,e,i;for(i=[],h=t=1,e=A;e&gt;=1?e&gt;=t:t&gt;=e;h=e&gt;=1?++t:--t)i.push(h*C);return i}(),p=0,g=D.length;g&gt;p;p++)j=D[p],T.push(z[0]-j);for(d=0,m=z.length;m&gt;d;d++)for(R=z[d],f=0,_=D.length;_&gt;f;f++)j=D[f],T.push(R+j)}}else if(N=Math.ceil(k),a=Math.floor(w),c=Math.ceil((a-N)/9),z=o(N,a,c),(a-N)%c===0&amp;&amp;(z=z.concat([a])),z=z.map(function(t){return Math.pow(n,t)}),A&gt;1){for(C=Math.pow(n,c)/A,D=function(){var t,e,i;for(i=[],h=t=1,e=A;e&gt;=1?e&gt;=t:t&gt;=e;h=e&gt;=1?++t:--t)i.push(h*C);return i}(),M=0,v=D.length;v&gt;M;M++)j=D[M],T.push(z[0]/j);for(S=0,y=z.length;y&gt;S;S++)for(R=z[S],P=0,b=D.length;b&gt;P;P++)j=D[P],T.push(R*j)}return{major:z,minor:T}},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{mantissas:[1,5]})},e}(n.Model),e.exports={Model:r}},{"./adaptive_ticker":208,underscore:92}],220:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;o=t("underscore"),s=t("./single_interval_ticker"),h=t("./util"),a=h.copy_date,u=h.last_year_no_later_than,r=h.ONE_MONTH,l=function(t,e){var i,n,r,s;for(s=u(new Date(t)),r=u(new Date(e)),r.setUTCFullYear(r.getUTCFullYear()+1),n=[],i=s;;)if(n.push(a(i)),i.setUTCFullYear(i.getUTCFullYear()+1),i&gt;r)break;return n},n=function(t){function e(){
        return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="MonthsTicker",e.prototype.initialize=function(t,i){var n,s;return e.__super__.initialize.call(this,t,i),s=this.get("months"),n=s.length&gt;1?(s[1]-s[0])*r:12*r,this.set("interval",n)},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,s,u,h,c,p;return p=l(t,e),u=this.get("months"),h=function(t){return u.map(function(e){var i;return i=a(t),i.setUTCMonth(e),i})},s=o.flatten(function(){var t,e,i;for(i=[],t=0,e=p.length;e&gt;t;t++)r=p[t],i.push(h(r));return i}()),n=o.invoke(s,"getTime"),c=o.filter(n,function(i){return i&gt;=t&amp;&amp;e&gt;=i}),{major:c,minor:[]}},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{toString_properties:["months"]})},e}(s.Model),e.exports={Model:n}},{"./single_interval_ticker":223,"./util":224,underscore:92}],221:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),r=t("../../vendor/numeral.js-1.5.3/numeral.js"),n=t("../common/has_properties"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="NumeralTickFormatter",e.prototype.format=function(t){var e,i,n,s,o;return e=this.get("format"),n=this.get("language"),s=function(){switch(this.get("rounding")){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}.call(this),i=function(){var i,a,l;for(l=[],i=0,a=t.length;a&gt;i;i++)o=t[i],l.push(r.format(o,e,n,s));return l}()},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{format:"0,0",language:"en",rounding:"round"})},e}(n),e.exports={Model:s}},{"../../vendor/numeral.js-1.5.3/numeral.js":304,"../common/has_properties":115,underscore:92}],222:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("sprintf"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="PrintfTickFormatter",e.prototype.format=function(t){var e,i,n;return e=this.get("format"),i=function(){var i,r,o;for(o=[],i=0,r=t.length;r&gt;i;i++)n=t[i],o.push(s.sprintf(e,n));return o}()},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{format:"%s"})},e}(n),e.exports={Model:r}},{"../common/has_properties":115,sprintf:90,underscore:92}],223:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("./abstract_ticker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="SingleIntervalTicker",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("min_interval",function(){return this.get("interval")},!0),this.add_dependencies("min_interval",this,["interval"]),this.register_property("max_interval",function(){return this.get("interval")},!0),this.add_dependencies("max_interval",this,["interval"])},e.prototype.get_interval=function(t,e,i){return this.get("interval")},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{toString_properties:["interval"]})},e}(n.Model),e.exports={Model:r}},{"./abstract_ticker":207,underscore:92}],224:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f;h=t("underscore"),s=1,l=1e3,o=60*l,r=60*o,n=24*r,a=30*n,u=365*n,c=function(t){var e;return e=h.min(h.range(t.length),function(e){return t[e]})},p=function(t){return new Date(t.getTime())},d=function(t){return t=p(t),t.setUTCDate(1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t},f=function(t){return t=d(t),t.setUTCMonth(0),t},e.exports={argmin:c,copy_date:p,last_month_no_later_than:d,last_year_no_later_than:f,ONE_MILLI:s,ONE_SECOND:l,ONE_MINUTE:o,ONE_HOUR:r,ONE_DAY:n,ONE_MONTH:a,ONE_YEAR:u}},{underscore:92}],225:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t("underscore"),n=t("./basic_ticker"),s=t("./single_interval_ticker"),u=t("./util"),l=u.last_year_no_later_than,r=u.ONE_YEAR,o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="YearsTicker",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.set("interval",r),this.basic_ticker=new n.Model({num_minor_ticks:0})},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,s,o,u,h;return s=l(new Date(t)).getUTCFullYear(),r=l(new Date(e)).getUTCFullYear(),h=this.basic_ticker.get_ticks_no_defaults(s,r,i).major,n=function(){var t,e,i;for(i=[],t=0,e=h.length;e&gt;t;t++)u=h[t],i.push(Date.UTC(u,0,1));return i}(),o=a.filter(n,function(i){return i&gt;=t&amp;&amp;e&gt;=i}),{major:o,minor:[]}},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{toString_properties:["years"]})},e}(s.Model),e.exports={Model:o}},{"./basic_ticker":210,"./single_interval_ticker":223,"./util":224,underscore:92}],226:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("../button_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._clicked=function(){return this.model.trigger("do")},e}(o.ButtonView),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"do",this["do"])},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(o.Model),e.exports={Model:n,View:s,ButtonView:r}},{"../button_tool":231}],227:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./action_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype["do"]=function(){return window.open(this.mget("redirect"))},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="HelpTool",e.prototype.tool_name="Help",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhDRjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhDRTIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTdFQUZCRjQ4NjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6QBYrgAAABb0lEQVR42ozTwUeEQRjH8W3bKEs6JkpESqfVpS4RHaJL2b2sLepUh3To0KFVIjp0iegQUdG21WmVvUWsKBGRlIiU7Q+IVaT0ffi9eY33peFj7cw8zzvzzEzV7v5hxGltGEUvutR3hwvs4ck/OeoET6KACrJolaz6Cprz12L6rcEOajGEFyfxtRxhDX0Yx5e3ggV8IqlgW/4J3vCKddRrLKm5894KOjGCHiVrwDZ+sKKvpRQ0pzkzuETeEqSxpT1aa8ezCmbyuEW3b0sVxaQtQT+mfINXGPT9T+n3xqnLKTYsQQseI8FtWnstYdEZs9o0eqdQZxUNSWD9YwHj36i2UyijOWQFVvmPkOR2P8qW4AwDIQma0BEyZjGlqCo9gXjA1+0ePAQExxWTtwT3KOqG/bfZ3GOL9W7ikrIe6FSsvQdswcZymrvsf0xWpIzqYauZRcIXmFBfUUea8Qobc5a2qQtiz3nVec7nGHaf868AAwDKW1RIPmvhEQAAAABJRU5ErkJggg==",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this.get("help_tooltip")})},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{help_tooltip:"Click the question mark to learn more about Bokeh plot tools.",redirect:"http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html"})},e}(n.Model),e.exports={Model:r,View:s}},{"./action_tool":226,underscore:92}],228:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;l=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/modal"),s=t("./action_tool"),u=t("./preview_save_tool_template"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.className="bk-bs-modal",e.prototype.template=u,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){return this.$el.empty(),this.$el.html(this.template()),this.$el.attr("tabindex","-1"),this.$el.on("hidden",function(t){return function(){return t.$el.modal("hide")}}(this)),this.$el.modal({show:!1})},e.prototype["do"]=function(){var t;return t=this.plot_view.canvas_view.canvas[0],this.$(".bk-bs-modal-body img").attr("src",t.toDataURL()),this.$el.modal("show")},e}(s.View),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.default_view=a,e.prototype.type="PreviewSaveTool",e.prototype.tool_name="Preview/Save",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhENjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhENzIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQ0MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjMyMUREOEQ1MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+h5hT8AAAAKBJREFUeNpiWbhs5QcGBgZ+hgECTAwDDGAO+AjEjGj4Lw5xUrAAkl3ocr8IhQAzjT3PRu0o+I+EHw65NDDqgJHrABYC8t9JMIuRmiHACS2IKC0LOKH0X1JDAOTzs0BsBs3XlIKz5KSBRCA+RQXLjwNxNDlp4BoQm9Mo7fGPZsNRB4w6YNQBI94BfwfaAV9G08CoA9DbA/xUavkMvRAACDAAaPgYViexODkAAAAASUVORK5CYII=",e}(s.Model),e.exports={Model:o,View:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./action_tool":226,"./preview_save_tool_template":229,"bootstrap/modal":295,jquery:18,underscore:92}],229:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;div class="bk-bs-modal-dialog"&gt;\n  &lt;div class="bk-bs-modal-content"&gt;\n    &lt;div class="bk-bs-modal-header"&gt;\n      &lt;button type="button" class="bk-bs-close" data-bk-bs-dismiss="modal"&gt;&amp;times;&lt;/button&gt;\n      &lt;h4 class="bk-bs-modal-title"&gt;Image Preview (right click -&gt; \'Save As\' to save PNG)&lt;/h4&gt;\n    &lt;/div&gt;\n    &lt;div class="bk-bs-modal-body"&gt;\n      &lt;img style="max-height: 300px; max-width: 400px"&gt;\n    &lt;/div&gt;\n    &lt;div class="bk-bs-modal-footer"&gt;\n      &lt;button type="button" class="bk-bs-btn bk-bs-btn-primary" data-bk-bs-dismiss="modal"&gt;Close&lt;/button&gt;\n    &lt;/div&gt;\n  &lt;/div&gt;\n&lt;/div&gt;')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],230:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("./action_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype["do"]=function(){return this.plot_view.update_range()},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.default_view=s,e.prototype.type="ResetTool",e.prototype.tool_name="Reset",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhFMDIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyOUMzNDE3NDIwQkIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOERFMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOERGMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+kFHGtQAAAm1JREFUeNrMmE9ExFEQx3+7ZYmlLrEsUUTHaEV0iESJVqduXaJr1xKlFB1bdYqoQ9GlFBFdikgpIhLd0rLqUsQqrW2G7+YZr+2993vaHT6H3583M795897M+0U2t3cCR6kh+kA3rtvx7IYoEGfEMSi4GIk4OJgg5ogRot5wzBvBhmaJnI2xqMW7dcQC8UCMWzgX4N1xjF2ALq8OctROiGkiHrhLHDpOoNOLg5xXF0Sn5lmWWCUGiBRRC1K4t4p3pLCuKyVnnXMwAUVJcT+HfFo3SH5ePGPI24TmA1Pl8rJcBGPEvsa5I6KVWDNcmQW824qxqiRhI+bi4IxmWjOYuneH/HvH2Ixmumd8bjNhhad8lxgSzrfp8jUa/L/wlI8KZ3h1T4bdB30Kb9zz4t6YbgurlIMBdoBHUQiGTBx8JYoKPqVe0ftFNInnW8J20SSCjRWM8k8E1S+TNfbZYyQ59yJEg0kjw1QyB42k1iI6ReXLfEWSK8iHJnJVsYqN8jtammuFc/FOr3juU7Ia+39uM7fiuq8aVrEqp+J6BPWzahw8IPLKdTPKUNU4yJ3Fhqb1inu0y7qeRNVYsWkWFkXPl0QZ8iVbohFmW0s2DmY1jSUX8mUPzi1rmoLML2eXsvsgR/FO3JtAix53nNZ96FDlDrasW35eKGniRRPJeywck9VdOjTdayL3Ahv5MC1/xy+Hp1Iq7BGHMHatjOEqMUgMlxmbVsaEOpMk4GSnp0VyCedyLtuMTlhRD1ZaPoRjeejoMf1HE7VUPkW04Jz7Ztm9rGHslM1Hhjl2xlCn+4muQP/77RyHdf799uli5FuAAQC+l5Sj5nEBdwAAAABJRU5ErkJggg==",e}(n.Model),e.exports={Model:r,View:s}},{"./action_tool":226}],231:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;l=t("underscore"),n=t("backbone"),a=t("./tool"),u=t("./button_tool_template"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="li",e.prototype.template=u,e.prototype.events=function(){return"ontouchstart"in document?{"touchstart .bk-toolbar-button":"_clicked"}:{"click .bk-toolbar-button":"_clicked"}},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.$el.html(this.template(this.model.attrs_and_props())),this.listenTo(this.model,"change:active",this.render),this.render()},e.prototype.render=function(){return this.model.get("active")?this.$el.children("button").addClass("active"):this.$el.children("button").removeClass("active"),this},e.prototype._clicked=function(t){},e}(n.View),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e}(a.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this.get("tool_name")})},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:!1,tool_name:this.tool_name,icon:this.icon})},e}(a.Model),e.exports={Model:r,View:o,ButtonView:s}},{"./button_tool_template":232,"./tool":247,backbone:2,underscore:92}],232:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;button type="button" class="bk-toolbar-button hover"&gt;\n  &lt;img class=\'bk-btn-icon\' src='),i.push(n(this.icon)),i.push(" /&gt;\n  &lt;span class='tip'&gt;"),i.push(n(this.tooltip)),i.push("&lt;/span&gt;\n&lt;/button&gt;\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],233:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),s=t("../../renderer/overlay/box_selection"),o=t("./select_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this._baseboint=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],null},e.prototype._pan=function(t){var e,i,n,r,s,o,a,l,u;return i=this.plot_view.canvas,n=[i.sx_to_vx(t.bokeh.sx),i.sy_to_vy(t.bokeh.sy)],s=this.plot_model.get("frame"),r=this.mget("dimensions"),o=this.model._get_dim_limits(this._baseboint,n,s,r),l=o[0],u=o[1],this.mget("overlay").set("data",{vxlim:l,vylim:u}),this.mget("select_every_mousemove")&amp;&amp;(e=null!=(a=t.srcEvent.shiftKey)?a:!1,this._select(l,u,!1,e)),null},e.prototype._pan_end=function(t){var e,i,n,r,s,o,a,l,u;return i=this.plot_view.canvas,n=[i.sx_to_vx(t.bokeh.sx),i.sy_to_vy(t.bokeh.sy)],s=this.plot_model.get("frame"),r=this.mget("dimensions"),o=this.model._get_dim_limits(this._baseboint,n,s,r),l=o[0],u=o[1],e=null!=(a=t.srcEvent.shiftKey)?a:!1,this._select(l,u,!0,e),this.mget("overlay").set("data",{}),this._baseboint=null,null},e.prototype._select=function(t,e,i,n){var r,s,o,a,l,u,h,c,p,d,f;for(c=t[0],p=t[1],d=e[0],f=e[1],null==n&amp;&amp;(n=!1),s={type:"rect",vx0:c,vx1:p,vy0:d,vy1:f},u=this.mget("renderers"),o=0,a=u.length;a&gt;o;o++)l=u[o],r=l.get("data_source"),h=r.get("selection_manager"),h.select(this,this.plot_view.renderers[l.id],s,i,n);return null!=this.mget("callback")&amp;&amp;this._emit_callback(s),this._save_geometry(s,i,n),null},e.prototype._emit_callback=function(t){var e,i,n,r,s;n=this.mget("renderers")[0],e=this.plot_model.get("canvas"),i=this.plot_model.get("frame"),t.sx0=e.vx_to_sx(t.vx0),t.sx1=e.vx_to_sx(t.vx1),t.sy0=e.vy_to_sy(t.vy0),t.sy1=e.vy_to_sy(t.vy1),r=i.get("x_mappers")[n.get("x_range_name")],s=i.get("y_mappers")[n.get("y_range_name")],t.x0=r.map_from_target(t.vx0),t.x1=r.map_from_target(t.vx1),t.y0=s.map_from_target(t.vy0),t.y1=s.map_from_target(t.vy1),this.mget("callback").execute(this.model,{geometry:t})},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="BoxSelectTool",e.prototype.tool_name="Box Select",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCRjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBDMDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE4NUM0MEJEMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJFMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+hdQ7dQAAAJdJREFUeNpiXLhs5X8GBPgIxAJQNjZxfiD+wIAKGCkUZ0SWZGIYZIAF3YVoPkEHH6kojhUMyhD6jydEaAlgaWnwh9BAgf9DKpfxDxYHjeay0Vw2bHMZw2guG81lwyXKRnMZWlt98JdDTFAX/x9NQwPkIH6kGMAVEyjyo7lstC4jouc69Moh9L42rlyBTZyYXDS00xBAgAEAqsguPe03+cYAAAAASUVORK5CYII=",e.prototype.event_type="pan",e.prototype.default_order=30,e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip(this.get("tool_name"),this._check_dims(this.get("dimensions"),"box select tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"]),this.set("overlay",new s.Model),n=this.get("plot").get("renderers"),n.push(this.get("overlay")),this.get("plot").set("renderers",n)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"],select_every_mousemove:!1})},e}(o.Model),e.exports={Model:n,View:r}},{"../../renderer/overlay/box_selection":194,"./select_tool":240,underscore:92}],234:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../../renderer/overlay/box_selection"),o=t("./gesture_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this._baseboint=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],null},e.prototype._pan=function(t){var e,i,n,r,s,o,a;return e=this.plot_view.canvas,i=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],r=this.plot_model.get("frame"),n=this.mget("dimensions"),s=this.model._get_dim_limits(this._baseboint,i,r,n),o=s[0],a=s[1],this.mget("overlay").set("data",{vxlim:o,vylim:a}),null},e.prototype._pan_end=function(t){var e,i,n,r,s,o,a;return e=this.plot_view.canvas,i=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],r=this.plot_model.get("frame"),n=this.mget("dimensions"),s=this.model._get_dim_limits(this._baseboint,i,r,n),o=s[0],a=s[1],this._update(o,a),this.mget("overlay").set("data",{}),this._baseboint=null,null},e.prototype._update=function(t,e){var i,n,r,s,o,a,l,u,h,c,p;if(!(Math.abs(t[1]-t[0])&lt;=5||Math.abs(e[1]-e[0])&lt;=5)){h={},s=this.plot_view.frame.get("x_mappers");for(r in s)n=s[r],o=n.v_map_from_target(t,!0),u=o[0],i=o[1],h[r]={start:u,end:i};c={},a=this.plot_view.frame.get("y_mappers");for(r in a)n=a[r],l=n.v_map_from_target(e,!0),u=l[0],i=l[1],c[r]={start:u,end:i};return p={xrs:h,yrs:c},this.plot_view.update_range(p)}},e}(o.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="BoxZoomTool",e.prototype.tool_name="Box Zoom",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhEMjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhEMzIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQwMjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjMyMUREOEQxMjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+a2Q0KAAAAmVJREFUeNq8V19EpFEUvzOtmKfpJSJKDL2WiLJExKaUEq0eeikiaolZLT2lVUpPydqHqIlIo1ilFOmphxj1miKWWHppnobIt7+zeyZ3jjvz/bnf9OPHd8/9d77z3XN+94ts7ew6SqksWKX+w1GFiLjYdVSAfeAQ2Ag2sf0GvAXT4C/wle1x3lt9UOGBNk6BrYa+FuYIeAWOsmNviGqe6W+q081OmAGvizgh0cpjZ3RjGBFZBpMG+xn4wM8NYJfWFwNXwXrwS96RiIUTwwYn6AxMgb+FvQ5c4zOUxzR4Ce5GLZyo5LfSsQP2G5xQbKO+bWFfoLWinA1OAEcoM2rFRpMe5sloJWgtm4j0iPZcPhVdkOWxBWvZONIi2uc+5sqxbTaO1Ij2o4+5T6JdGy1SF4Kg2mLsi01E/oh2l4+5HTKaNlmTEe0ka40XyNqTsYnIkWiTwC16rMRNci0bR0hJ7w1veizqy9uB5D4ZDZKBtI3WvLCCJoT9E3jHny4j1DdmWOcbrWWjNYuGoqaL2kdmKayTztio7yzTJprz4A/9PuI3a8YMh5IKVC9fetxAY5rB79pNzXdESMJ/GrSjm8/DCTjAgpjQZCDDh5I+w4HuQBBHOsE9USty4KB2KF85m9J+v5XX9KXr3T7fQZS26WefYlcU+ayJlxhDIT40jBnn21hQOPrfgFtEqAhdGETqK7gZ4h/Av4g4Jf5TUoYquQSuqJDhFpEJca3b4EoYOtyyhrSkHTzlcj4R4t4FZ9NL+j6yMzlT/ocZES9aky3D3r6y5t2gaw3xWXgs7XFhdyzsgSpr2fFXgAEAmp2J9DuX/WgAAAAASUVORK5CYII=",e.prototype.event_type="pan",e.prototype.default_order=20,e.prototype.initialize=function(t,i){var r;return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip(this.get("tool_name"),this._check_dims(this.get("dimensions"),"box zoom tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"]),this.set("overlay",new n.Model),r=this.get("plot").get("renderers"),r.push(this.get("overlay")),this.get("plot").set("renderers",r)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"]})},e}(o.Model),e.exports={Model:r,View:s}},{"../../renderer/overlay/box_selection":194,"./gesture_tool":235,underscore:92}],235:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../button_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._clicked=function(){return this.model.set("active",!0)},e}(n.ButtonView),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{event_type:this.event_type,default_order:this.default_order})},e}(n.Model),e.exports={Model:r,View:o,ButtonView:s}},{"../button_tool":231,underscore:92}],236:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),s=t("../../renderer/overlay/poly_selection"),o=t("./select_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"change:active",this._active_change),this.data=null},e.prototype._active_change=function(){return this.mget("active")?void 0:this._clear_overlay()},e.prototype._keyup=function(t){return 13===t.keyCode?this._clear_overlay():void 0},e.prototype._pan_start=function(t){var e,i,n;return e=this.plot_view.canvas,i=e.sx_to_vx(t.bokeh.sx),n=e.sy_to_vy(t.bokeh.sy),this.data={vx:[i],vy:[n]},null},e.prototype._pan=function(t){var e,i,n,r,s,o,l;return i=this.plot_view.canvas,o=i.sx_to_vx(t.bokeh.sx),l=i.sy_to_vy(t.bokeh.sy),this.data.vx.push(o),this.data.vy.push(l),r=this.mget("overlay"),n={},n.vx=a.clone(this.data.vx),n.vy=a.clone(this.data.vy),r.set("data",n),this.mget("select_every_mousemove")?(e=null!=(s=t.srcEvent.shiftKey)?s:!1,this._select(this.data.vx,this.data.vy,!1,e)):void 0},e.prototype._pan_end=function(t){var e,i;return this._clear_overlay(),e=null!=(i=t.srcEvent.shiftKey)?i:!1,this._select(this.data.vx,this.data.vy,!0,e)},e.prototype._clear_overlay=function(){return this.mget("overlay").set("data",null)},e.prototype._select=function(t,e,i,n){var r,s,o,a,l,u,h;for(s={type:"poly",vx:t,vy:e},u=this.mget("renderers"),o=0,a=u.length;a&gt;o;o++)l=u[o],r=l.get("data_source"),h=r.get("selection_manager"),h.select(this,this.plot_view.renderers[l.id],s,i,n);return this._save_geometry(s,i,n),null},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="LassoSelectTool",e.prototype.tool_name="Lasso Select",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAQCAYAAAAbBi9cAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGlSURBVDiNldNNiM1hFMfxz/3PHQqxoCgWYmNDk0jyUqwsuP/719xnPVkQStl4mYWpsVXKQkYpL1m4qWmyYElZkDLKyiSbkdKYNBovo8m1uM+d/nPd/2TO6nn5nW+/c57zlCwQ9eGRBPuwF7uxAUswjme4V6tWxqFUAFiLXlSxDaswiz9RkqAL79Ffq1YeldoAXTiNs9iIn3iN0Zj0OULWYycORU1fKQdZh5s4ggncxX28DVk6W+D8MG5hrJQr5Ql68AADIUvfFTZvPuw5VpZjOVcjZCBk6eD/ACJkF7ZgMMEJVHB7kZDNeIhXGEpwEg3cWASkFy9i3vFatTJTxvJ4sAcvo3ANpkOW/sold+MgTsUKRlGbm6P68Mh59GvOSR2/cVTzqYfifisOYDtm4vmlkKVTjUZDC5TgIi5gBX7gG7qxVHNuluEjHuN6yNI3LadzoJz1HejDMXzP3X2Njp+GLJ1o79c/oBzwGgK+YHV0cyVk6eV27YKgCNuEKZzBubjeH7J0rAiUdAKFLP0QsnQSdzCp+Wl7Omlb0RGUi0+YRlmz+YXxF2YZkqkolYwKAAAAAElFTkSuQmCC",e.prototype.event_type="pan",e.prototype.default_order=12,e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.set("overlay",new s.Model({line_width:2})),n=this.get("plot").get("renderers"),n.push(this.get("overlay")),this.get("plot").set("renderers",n)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{select_every_mousemove:!0})},e}(o.Model),e.exports={Model:n,View:r}},{"../../renderer/overlay/poly_selection":195,"./select_tool":240,underscore:92}],237:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),
        n=t("./gesture_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._pan_start=function(t){var e,i,n,r,s,o;return this.last_dx=0,this.last_dy=0,e=this.plot_view.canvas,i=this.plot_view.frame,s=e.sx_to_vx(t.bokeh.sx),o=e.sy_to_vy(t.bokeh.sy),i.contains(s,o)||(n=i.get("h_range"),r=i.get("v_range"),(s&lt;n.get("start")||s&gt;n.get("end"))&amp;&amp;(this.v_axis_only=!0),(o&lt;r.get("start")||o&gt;r.get("end"))&amp;&amp;(this.h_axis_only=!0)),this.plot_view.interactive_timestamp=Date.now()},e.prototype._pan=function(t){return this._update(t.deltaX,-t.deltaY),this.plot_view.interactive_timestamp=Date.now()},e.prototype._pan_end=function(t){return this.h_axis_only=!1,this.v_axis_only=!1},e.prototype._update=function(t,e){var i,n,r,s,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A;r=this.plot_view.frame,u=t-this.last_dx,h=e-this.last_dy,s=o.clone(r.get("h_range")),x=s.get("start")-u,w=s.get("end")-u,T=o.clone(r.get("v_range")),D=T.get("start")-h,C=T.get("end")-h,i=this.mget("dimensions"),i.indexOf("width")&gt;-1&amp;&amp;!this.v_axis_only?(y=x,b=w,m=-u):(y=s.get("start"),b=s.get("end"),m=0),i.indexOf("height")&gt;-1&amp;&amp;!this.h_axis_only?(k=D,M=C,_=h):(k=T.get("start"),M=T.get("end"),_=0),this.last_dx=t,this.last_dy=e,S={},p=r.get("x_mappers");for(l in p)a=p[l],d=a.v_map_from_target([y,b],!0),v=d[0],n=d[1],S[l]={start:v,end:n};A={},f=r.get("y_mappers");for(l in f)a=f[l],g=a.v_map_from_target([k,M],!0),v=g[0],n=g[1],A[l]={start:v,end:n};return c={xrs:S,yrs:A,sdx:m,sdy:_},this.plot_view.update_range(c),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="PanTool",e.prototype.tool_name="Pan",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhEODIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCRTI5MDhEOTIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOEQ2MjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOEQ3MjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+OXzPwwAAAKNJREFUeNrsVsEKgCAM3cyj0f8fuwT9XdEHrLyVIOKYY4kPPDim0+fenF+3HZi4nhFec+Rs4oCPAALwjDVUsKMWA6DNAFX6YXcMYIERdRWIYBzAZbKYGsSKex6mVUAK8Za0TphgoFTbpSvlx3/I0EQOILO2i/ibegLk/mgVONM4JvuBVizgkGH3XTGrR/xlV0ycbO8qCeMN54wdtVQwSTFwCzAATqEZUn8W8W4AAAAASUVORK5CYII=",e.prototype.event_type="pan",e.prototype.default_order=10,e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip("Pan",this._check_dims(this.get("dimensions"),"pan tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"])},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"]})},e}(n.Model),e.exports={Model:r,View:s}},{"./gesture_tool":235,underscore:92}],238:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),s=t("../../renderer/overlay/poly_selection"),o=t("./select_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"change:active",this._active_change),this.data=null},e.prototype._active_change=function(){return this.mget("active")?void 0:this._clear_data()},e.prototype._keyup=function(t){return 13===t.keyCode?this._clear_data():void 0},e.prototype._doubletap=function(t){var e,i;return e=null!=(i=t.srcEvent.shiftKey)?i:!1,this._select(this.data.vx,this.data.vy,!0,e),this._clear_data()},e.prototype._clear_data=function(){return this.data=null,this.mget("overlay").set("data",null)},e.prototype._tap=function(t){var e,i,n,r,s;return e=this.plot_view.canvas,r=e.sx_to_vx(t.bokeh.sx),s=e.sy_to_vy(t.bokeh.sy),null==this.data?(this.data={vx:[r],vy:[s]},null):(this.data.vx.push(r),this.data.vy.push(s),n=this.mget("overlay"),i={},i.vx=a.clone(this.data.vx),i.vy=a.clone(this.data.vy),n.set("data",i))},e.prototype._select=function(t,e,i,n){var r,s,o,a,l,u,h;for(s={type:"poly",vx:t,vy:e},u=this.mget("renderers"),o=0,a=u.length;a&gt;o;o++)l=u[o],r=l.get("data_source"),h=r.get("selection_manager"),h.select(this,this.plot_view.renderers[l.id],s,i,n);return this._save_geometry(s,i,n),null},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="PolySelectTool",e.prototype.tool_name="Poly Select",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAQCAYAAAAbBi9cAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGdSURBVDiNjdO/axRBGMbxT8IiwSBBi4AiBBVRJE3UIqIIilrYLGuxMYo/AimsrNTCWkH/AbFR78Dc5dZiWW3SKQaVaKWlIFEiithooaiIZ7EbPM7b3D0wzLzzvvOdZ5iZviTNmnKN4gE2YSteYjW24A2+Yh/ux1G4uVij2cyXB0V8AYuYwBq8x5Ei/wEH8LNoHRVgWxyFr4v4RUvuScv4ESRpFhTQ/9SPmSTNdpbt1KZhXCsD7cZQj6AB7OqUCDCCTz2C3mF/maNnGOsRtB53y0BD/t1eN32T32pH0HY870ZI0mwMFZwvA73F+AqA4STNduCS3PlSpdbY0F4XFKAfJZA9mMO9OAonl+crtcZcpdaYP3ti4mqro0Py79AKOJqk2TwGMRVH4XTbHqtwpVJrVKv1ZGDZ0SIO4mGSZqNYh2m8wtM4Cr93MPur6E9jY7WenAvkz38pSbO9eIzrcRQe63TUFg3iDz7iIj73Yxa3i4LxOAovr0S4MzPbhzoOYy1GzkzGXwLcxC0sxFH4u4sTUyePN3EDKrXGAk4h/QvU5XGB9rRYawAAAABJRU5ErkJggg==",e.prototype.event_type="tap",e.prototype.default_order=11,e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.set("overlay",new s.Model),n=this.get("plot").get("renderers"),n.push(this.get("overlay")),this.get("plot").set("renderers",n)},e}(o.Model),e.exports={Model:n,View:r}},{"../../renderer/overlay/poly_selection":195,"./select_tool":240,underscore:92}],239:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./gesture_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.className="bk-resize-popup",e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),i=this.plot_view.$el.find("div.bk-canvas-wrapper"),this.$el.appendTo(i),this.$el.hide(),this.active=!1,null},e.prototype.activate=function(){return this.active=!0,this.render(),null},e.prototype.deactivate=function(){return this.active=!1,this.render(),null},e.prototype.render=function(t){var e,i,n,r;return this.active?(e=this.plot_view.canvas,i=this.plot_view.frame,n=e.vx_to_sx(i.get("h_range").get("end")-40),r=e.vy_to_sy(i.get("v_range").get("start")+40),this.$el.attr("style","position:absolute; top:"+r+"px; left:"+n+"px;"),this.$el.show()):this.$el.hide(),this},e.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this.ch=e.get("height"),this.cw=e.get("width"),this.plot_view.interactive_timestamp=Date.now(),null},e.prototype._pan=function(t){return this._update(t.deltaX,t.deltaY),this.plot_view.interactive_timestamp=Date.now(),null},e.prototype._update=function(t,e){var i;return this.plot_view.pause(),i=this.plot_view.canvas,i._set_dims([this.cw+t,this.ch+e]),this.plot_view.unpause(),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="ResizeTool",e.prototype.tool_name="Resize",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCQjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBCQzIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQ4MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJBMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+nIbQ0AAAAIJJREFUeNpiXLhs5X8G7ICRgTYAq31MDIMEwBzyERoCyJhWAN2ej4MqRFiIjUMahczgSyMsNE4PxACBQZlrcAFsuYkcLECpQwZNiIw6ZNQhow4ZdcioQ0YdMuoQerRZkQE/vdqwgypqQD7+MIBuANn9f1CnEcbRXIMjd4zM0QCAAAMAbdAPQaze1JcAAAAASUVORK5CYII=",e.prototype.event_type="pan",e.prototype.default_order=40,e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{level:"overlay",data:{}})},e}(n.Model),e.exports={Model:r,View:s}},{"./gesture_tool":235,underscore:92}],240:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),a=t("../../common/logging").logger,n=t("./gesture_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._keyup=function(t){var e,i,n,r,s,o,a;if(27===t.keyCode){for(s=this.mget("renderers"),o=[],i=0,n=s.length;n&gt;i;i++)r=s[i],e=r.get("data_source"),a=e.get("selection_manager"),o.push(a.clear());return o}},e.prototype._save_geometry=function(t,e,i){var n,r,s,l,u,h,c,p;if(n=o.clone(t),c=this.plot_view.frame.get("x_mappers")["default"],p=this.plot_view.frame.get("y_mappers")["default"],"point"===n.type)n.x=c.map_from_target(n.vx),n.y=p.map_from_target(n.vy);else if("rect"===n.type)n.x0=c.map_from_target(n.vx0),n.y0=p.map_from_target(n.vy0),n.x1=c.map_from_target(n.vx1),n.y1=p.map_from_target(n.vy1);else if("poly"===n.type)for(n.x=new Array(n.vx.length),n.y=new Array(n.vy.length),s=l=0,u=n.vx.length;u&gt;=0?u&gt;l:l&gt;u;s=u&gt;=0?++l:--l)n.x[s]=c.map_from_target(n.vx[s]),n.y[s]=p.map_from_target(n.vy[s]);else a.debug("Unrecognized selection geometry type: '"+n.type+"'");return e&amp;&amp;(h=this.plot_model.get("tool_events"),i?(r=h.get("geometries"),r.push(n)):r=[n],h.set("geometries",r),h.save()),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t,i){var n,r,s,o,l,u;for(e.__super__.initialize.call(this,t,i),o=this.get("names"),u=this.get("renderers"),0===u.length&amp;&amp;(n=this.get("plot").get("renderers"),u=function(){var t,e,i;for(i=[],t=0,e=n.length;e&gt;t;t++)l=n[t],"GlyphRenderer"===l.type&amp;&amp;i.push(l);return i}()),o.length&gt;0&amp;&amp;(u=function(){var t,e,i;for(i=[],t=0,e=u.length;e&gt;t;t++)l=u[t],o.indexOf(l.get("name"))&gt;=0&amp;&amp;i.push(l);return i}()),this.set("renderers",u),a.debug("setting "+u.length+" renderers for "+this.type+" "+this.id),r=0,s=u.length;s&gt;r;r++)l=u[r],a.debug(" - "+l.type+" "+l.id);return null},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{renderers:[],names:[],multi_select_modifier:"shift"})},e}(n.Model),e.exports={Model:r,View:s}},{"../../common/logging":119,"./gesture_tool":235,underscore:92}],241:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./select_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._tap=function(t){var e,i,n,r,s;return i=this.plot_view.canvas,r=i.sx_to_vx(t.bokeh.sx),s=i.sy_to_vy(t.bokeh.sy),e=null!=(n=t.srcEvent.shiftKey)?n:!1,this._select(r,s,!0,e)},e.prototype._select=function(t,e,i,n){var r,s,o,a,l,u,h,c;for(o={type:"point",vx:t,vy:e},r=this.mget("callback"),h=this.mget("renderers"),a=0,l=h.length;l&gt;a;a++)u=h[a],s=u.get("data_source"),c=s.get("selection_manager"),c.select(this,this.plot_view.renderers[u.id],o,i,n),null!=r&amp;&amp;r.execute(s);return this._save_geometry(o,i,n),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="TapTool",e.prototype.tool_name="Tap",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAHWSURBVDiNbdJfaI9RGAfwz/7JNlLGjdxLyDU2u0EIx6uc7UIpF5pIU1OSGzfkUhvSiuSCvZbXGxeT0IxcSYlIiVxSJmqZzbj4nbafcer0nM75Ps/5Pt/vU2PWyouyAbsRsTJdv0SOGzELE9X4mlnJ7TiOtentV3qqS/EJTsUsDP9TIC/KvTiHZgyhwHP8Tkx2Ygd+4EDMwpXpAnlRtuJu+vFozMLF2a0lXAfOowkbYxYe1+RF2Yhb2IT9MQv9eVHOxTGsSwxGcCZm4WdelLuSHg8QatGZeh5KyQtxB/NwCIfRgtt5US6IWbiJgZTTWZ/UrsG1xLQHL2IWeqrYd+dF2YdunMRVBMRaLMckXiVwK3r/I0E/tqXzW0xgdX0VYCrFOjO2Va+PuJTO4/iE8Xq8RhuWqdj2FAdxpDo7ZmEUF/KiXIwxrMJUvYqibSrTdx2nUeZFeRaX8SFm4Suk5PcYiVnYAtU2bkBHzMJgXpTNOIHtqfdeLMUS3Mcz7GFmkNbjHr6jK2ZhsJp+XpQt6ec6jKIB86cLJNA+9GFOamsAb1Qc+qJic2PSagzv/iqQirQn6mvS1SQ+Y0WawkXJjUcxC5uhdpbSw9iKLjzEt7QnE6QpxWmb/wA4250STmTc7QAAAABJRU5ErkJggg==",e.prototype.event_type="tap",e.prototype.default_order=10,e}(n.Model),e.exports={Model:r,View:s}},{"./select_tool":240,underscore:92}],242:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("./gesture_tool"),("undefined"==typeof a||null===a)&amp;&amp;(a={}),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._pinch=function(t){var e;return e=t.scale&gt;=1?20*(t.scale-1):-20/t.scale,t.bokeh.delta=e,this._scroll(t)},e.prototype._scroll=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E;s=this.plot_model.get("frame"),a=s.get("h_range"),x=s.get("v_range"),k=this.plot_view.canvas.sx_to_vx(t.bokeh.sx),D=this.plot_view.canvas.sy_to_vy(t.bokeh.sy),(k&lt;a.get("start")||k&gt;a.get("end"))&amp;&amp;(w=!0),(D&lt;x.get("start")||D&gt;x.get("end"))&amp;&amp;(o=!0),u=navigator.userAgent.toLowerCase().indexOf("firefox")&gt;-1?20:1,e=null!=(null!=(c=t.originalEvent)?c.deltaY:void 0)?-t.originalEvent.deltaY*u:t.bokeh.delta,r=this.mget("speed")*e,r&gt;.9?r=.9:-.9&gt;r&amp;&amp;(r=-.9),C=a.get("start"),M=a.get("end"),S=x.get("start"),T=x.get("end"),i=this.mget("dimensions"),i.indexOf("width")&gt;-1&amp;&amp;!w?(_=C-(C-k)*r,v=M-(M-k)*r):(_=C,v=M),i.indexOf("height")&gt;-1&amp;&amp;!o?(y=S-(S-D)*r,b=T-(T-D)*r):(y=S,b=T),A={},p=s.get("x_mappers");for(h in p)l=p[h],d=l.v_map_from_target([_,v],!0),m=d[0],n=d[1],A[h]={start:m,end:n};P={},f=s.get("y_mappers");for(h in f)l=f[h],g=l.v_map_from_target([y,b],!0),m=g[0],n=g[1],P[h]={start:m,end:n};return E={xrs:A,yrs:P,factor:r},this.plot_view.update_range(E),this.plot_view.interactive_timestamp=Date.now(),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="WheelZoomTool",e.prototype.tool_name="Wheel Zoom",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAgCAYAAABpRpp6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhEQzIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCRTI5MDhERDIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOERBMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOERCMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+sFLapAAAA8xJREFUeNq8WH9k1VEU/+67ecTYxKM8xlJiifKIMUqUKMvy1CqbEmUxJZbSlGXTLBuJpYi18dpqStOzacT+WcTXpkiRUjziETEeY9bnzHm5O53vj/te7fDx3r3fc+/9fM/3nHPPvWWP0mOOIlVAC3AQqOc2SRZ4A9Cg58CSNrj1+FEnSIYfPynHTyOQArYCO/jRPPAJGAcmMM9f87vKfG3AF+AucMAgS5LgRZ4CH/mFrARkieAs8Aw4ASSBckaS++jZLOv6El4HjAKDwPoIa28GXgLdFmQv4WcO2BVBnXTmeIxK+D5wzLGXa8D1CGT78NPPhjFlGnjAmBbPSLefx65IBf+eZZ81hfznIfsr+W0eaACa2G3MhbuAt8CUD1kyRIfongDa4affhW4Nu2Oj0d2Bfg+6Y2UIukr2x4ShkAMOMQlNyLcmgVqj7z2wk17UDDosFOOYMOdPQ+dkyBcZFkb8DGxz2ckTwrKHA8g6HMn7gQWjbzsHqZSUmJ8sej6Cq7WzrhkzKVeYnmSEXSBM6I17RZ+WNWRfJ6z7K2xy1umUc7lGDizIkDL+AsNRXs6U3YpOUrRfWwS01K2noIuLzg+iTcFSiFLKlQPi8+aNAIwri24QlstaEM6JdoIsHBOdiyJl9RntfiXazUljEdJb3IKw1F10Q/Krtin0KaSD5Ido77MYK10sG0S4ByjzwW2LRT3pYlxLRBFpGM91/r9kRJuC/FbEnVEmhEwQYRqw7IMuC8LjnAKllSeBhEI0Qc8U636luWinWxYPqoFCnuxmX16VR9ldCvINqOH/NK5alpe8NY8qL5Nnl/GMFJhU6g2SZtqaw1xCkrss2pGEFhLp0CxuGow83+BDdoDn+FP8hJFeYusNlODL9LI/ubKLRRxDKfamuaNWRBx4o9TI49NDD9yjSdn9NKFa5jTGrdrIKpw1FJCtU8h6Rp/HwbVyBNOOSGtKGHJKtGdAao/NBO4aWrecS9mwQiuU8KLoi1nOEfepQ6TsFXVxnnO0NWFZEdVZjK8RaSgXoHtGbihwh4ViCM+LvhaL8VJ3xscdqnwOCk4xhDNKYNRHPOZfCakbzGOS+SWyloX8KsIj4lNScLwIuTsgsq+ASnFkmor4JdJayopKeEHZGOJ8OzMoatIkF0XvxIm5cGhcUtyhVqlrh4rNNoU8fI+jOCUs3cYIk14L63py9yo2D7fyBZ+t3AGuWgTmiFOCuCIvHuHFo6QbCpxm4GLIxZ+880j/K8Lm593EVZqnXF9N8UXIFt7zgwoeunDZCJzju44M+nKlEP4twAAD1RclkNDukAAAAABJRU5ErkJggg==",e.prototype.event_type="ontouchstart"in a?"pinch":"scroll",e.prototype.default_order=10,e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip(this.get("tool_name"),this._check_dims(this.get("dimensions"),"wheel zoom tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"])},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"],speed:1/600})},e}(n.Model),e.exports={Model:r,View:s}},{"./gesture_tool":235,underscore:92}],243:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),o=t("../../renderer/annotation/span"),s=t("./inspect_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._move=function(t){var e,i,n,r,s,o,a,l,u,h;if(this.mget("active")){for(n=this.plot_model.get("frame"),e=this.plot_model.get("canvas"),u=e.sx_to_vx(t.bokeh.sx),h=e.sy_to_vy(t.bokeh.sy),o=this.mget("dimensions"),a=[],r=0,s=o.length;s&gt;r;r++)i=o[r],l=this.mget("spans")[i],n.contains(u,h)?"width"===i?a.push(l.set("location",h)):a.push(l.set("location",u)):a.push(l.unset("location"));return a}},e.prototype._move_exit=function(t){var e,i,n,r,s,o;for(r=this.mget("dimensions"),s=[],i=0,n=r.length;n&gt;i;i++)e=r[i],o=this.mget("spans")[e],s.push(o.unset("location"));return s},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="CrosshairTool",e.prototype.tool_name="Crosshair",e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip("Crosshair",this._check_dims(this.get("dimensions"),"crosshair tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"]),this.set("spans",{width:new o.Model({dimension:"width"}),height:new o.Model({dimension:"height"})}),n=this.get("plot").get("renderers"),n.push(this.get("spans").width),n.push(this.get("spans").height),this.get("plot").set("renderers",n)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"]})},e}(s.Model),e.exports={Model:n,View:r}},{"../../renderer/annotation/span":149,"./inspect_tool":245,underscore:92}],244:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),a=t("../../renderer/annotation/tooltip"),l=t("../../util/util"),o=t("./inspect_tool"),c=t("../../common/hittest"),h=function(t){var e,i,n,r,s;return"#"===t.substr(0,1)?t:(i=/(.*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t),r=parseInt(i[2]),n=parseInt(i[3]),e=parseInt(i[4]),s=e|n&lt;&lt;8|r&lt;&lt;16,i[1]+"#"+s.toString(16))},s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.bind_bokeh_events=function(){var t,e,i,n;for(n=this.mget("renderers"),t=0,e=n.length;e&gt;t;t++)i=n[t],this.listenTo(i.get("data_source"),"inspect",this._update);return this.plot_view.canvas_view.canvas_wrapper.css("cursor","crosshair")},e.prototype._move=function(t){var e,i,n,r,s,o;if(this.mget("active")){if(e=this.plot_view.canvas,s=e.sx_to_vx(t.bokeh.sx),o=e.sy_to_vy(t.bokeh.sy),this.plot_view.frame.contains(s,o))return this._inspect(s,o);i=this.mget("ttmodels");for(n in i)r=i[n],r.clear()}},e.prototype._move_exit=function(){var t,e,i,n;t=this.mget("ttmodels"),e=[];for(i in t)n=t[i],e.push(n.clear());return e},e.prototype._inspect=function(t,e,i){var n,r,s,o,a,l,u,h;for(n={type:"point",vx:t,vy:e},"mouse"===this.mget("mode")?n.type="point":(n.type="span","vline"===this.mget("mode")?n.direction="h":n.direction="v"),r=[],s=[],u=this.mget("renderers"),o=0,a=u.length;a&gt;o;o++)l=u[o],h=l.get("data_source").get("selection_manager"),h.inspect(this,this.plot_view.renderers[l.id],n,{geometry:n});null!=this.mget("callback")&amp;&amp;this._emit_callback(n)},e.prototype._update=function(t,e,i,n,r){var s,o,a,l,u,h,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F,L,H,B,W,q,Y,V,$,U,G;if(m=r.geometry,B=null!=(M=this.mget("ttmodels")[i.model.id])?M:null,null!=B&amp;&amp;(B.clear(),C=[t["1d"].indices,t["2d"].indices],v=C[0],y=C[1],t["0d"].flag!==!1||0!==v.length||0!==y.length)){for(q=m.vx,Y=m.vy,s=this.plot_model.get("canvas"),g=this.plot_model.get("frame"),L=s.vx_to_sx(q),H=s.vy_to_sy(Y),$=g.get("x_mappers")[i.mget("x_range_name")],G=g.get("y_mappers")[i.mget("y_range_name")],V=$.map_from_target(q),U=G.map_from_target(Y),T=t["0d"].indices,b=0,x=T.length;x&gt;b;b++)_=T[b],h=i.glyph.x[_+1],p=i.glyph.y[_+1],"interp"===this.mget("line_policy")?(S=i.glyph.get_interpolation_hit(_,m),h=S[0],p=S[1],z=$.map_to_target(h),j=G.map_to_target(p)):"prev"===this.mget("line_policy")?(z=s.sx_to_vx(i.glyph.sx[_]),j=s.sy_to_vy(i.glyph.sy[_])):"next"===this.mget("line_policy")?(z=s.sx_to_vx(i.glyph.sx[_+1]),j=s.sy_to_vy(i.glyph.sy[_+1])):"nearest"===this.mget("line_policy")?(o=i.glyph.sx[_],a=i.glyph.sy[_],d=c.dist_2_pts(o,a,L,H),l=i.glyph.sx[_+1],u=i.glyph.sy[_+1],f=c.dist_2_pts(l,u,L,H),f&gt;d?(A=[o,a],O=A[0],F=A[1]):(P=[l,u],O=P[0],F=P[1],_+=1),h=i.glyph.x[_],p=i.glyph.y[_],z=s.sx_to_vx(O),j=s.sy_to_vy(F)):(E=[q,Y],z=E[0],j=E[1]),W={index:_,x:V,y:U,vx:q,vy:Y,sx:L,sy:H,data_x:h,data_y:p,rx:z,ry:j},B.add(z,j,this._render_tooltips(n,_,W));for(I=t["1d"].indices,w=0,k=I.length;k&gt;w;w++)_=I[w],h=null!=(N=i.glyph.x)?N[_]:void 0,p=null!=(R=i.glyph.y)?R[_]:void 0,"snap_to_data"===this.mget("point_policy")?(z=s.sx_to_vx(i.glyph.scx(_,L,H)),j=s.sy_to_vy(i.glyph.scy(_,L,H))):(D=[q,Y],z=D[0],j=D[1]),W={index:_,x:V,y:U,vx:q,vy:Y,sx:L,sy:H,data_x:h,data_y:p},B.add(z,j,this._render_tooltips(n,_,W));return null}},e.prototype._emit_callback=function(t){var e,i,n,r,s,o;r=this.mget("renderers")[0],n=this.plot_view.renderers[r.id].hit_test(t),e=this.plot_model.get("canvas"),i=this.plot_model.get("frame"),t.sx=e.vx_to_sx(t.vx),t.sy=e.vy_to_sy(t.vy),s=i.get("x_mappers")[r.get("x_range_name")],o=i.get("y_mappers")[r.get("y_range_name")],t.x=s.map_from_target(t.vx),t.y=o.map_from_target(t.vy),this.mget("callback").execute(this.model,{index:n,geometry:t})},e.prototype._render_tooltips=function(t,e,i){var r,s,o,a,c,p,d,f,g,m,_,v,y,b,w,x,k,M;if(k=this.mget("tooltips"),u.isString(k))return n("&lt;div&gt;").html(l.replace_placeholders(k,t,e,i));for(w=n("&lt;table&gt;&lt;/table&gt;"),c=0,d=k.length;d&gt;c;c++){if(m=k[c],p=m[0],M=m[1],v=n("&lt;tr&gt;&lt;/tr&gt;"),v.append(n("&lt;td class='bk-tooltip-row-label'&gt;").text(p+": ")),x=n("&lt;td class='bk-tooltip-row-value'&gt;&lt;/td&gt;"),M.indexOf("$color")&gt;=0){if(_=M.match(/\$color(\[.*\])?:(\w*)/),f=_[0],g=_[1],r=_[2],o=t.get_column(r),null==o){y=n("&lt;span&gt;").text(r+" unknown"),x.append(y);continue}if(a=(null!=g?g.indexOf("hex"):void 0)&gt;=0,b=(null!=g?g.indexOf("swatch"):void 0)&gt;=0,s=o[e],null==s){y=n("&lt;span&gt;(null)&lt;/span&gt;"),x.append(y);continue}a&amp;&amp;(s=h(s)),y=n("&lt;span&gt;").text(s),x.append(y),b&amp;&amp;(y=n("&lt;span class='bk-tooltip-color-block'&gt; &lt;/span&gt;"),y.css({backgroundColor:s})),x.append(y)}else M=M.replace("$~","$data_"),M=l.replace_placeholders(M,t,e,i),x.append(n("&lt;span&gt;").html(M));v.append(x),w.append(v)}return w},e}(o.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}var i;return p(e,t),e.prototype.default_view=s,e.prototype.type="HoverTool",e.prototype.tool_name="Hover Tool",i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA8ElEQVQ4T42T0Q2CMBCGaQjPxgmMG/jelIQN3ECZQEfADRwBJzBuQCC81wlkBHxvqP8lmhTsUfpSWvp/vfvvKiJn1HVdpml6dPdC38I90DSNxVobYzKMPiSm/z5AZK3t4zjOpJQ6BPECfiKAcqRUzkFmASQEhHzJOUgQ8BWyviwFsL4sBnC+LAE84YMWQnSAVCixdkvMAiB6Q7TCfJtrLq4PHkmSnHHbi0LHvOYa6w/g3kitjSgOYFyUUoWvlCPA9C1gvQfgDmiHNLZBgO8A3geZt+G6chQBA7hi/0QVQBrZ9EwQ0LbtbhgGghQAVFPAB25HmRH8b2/nAAAAAElFTkSuQmCC",e.prototype.initialize=function(t,i){var n,r,s,o,l,h,c,p;if(e.__super__.initialize.call(this,t,i),p={},l=this.get("plot").get("renderers"),c=this.get("tooltips"))for(o=this.get("renderers"),n=0,r=o.length;r&gt;n;n++)s=o[n],h=new a.Model,h.set("custom",u.isString(c)),p[s.id]=h,l.push(h);this.set("ttmodels",p),this.get("plot").set("renderers",l)},e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{tooltips:[["index","$index"],["data (x, y)","($x, $y)"],["canvas (x, y)","($sx, $sy)"]],mode:"mouse",point_policy:"snap_to_data",line_policy:"prev"})},e}(o.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"../../renderer/annotation/tooltip":150,"../../util/util":250,"./inspect_tool":245,jquery:18,underscore:92}],245:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;l=t("underscore"),n=t("backbone"),h=t("../../common/logging").logger,a=t("../tool"),u=t("./inspect_tool_list_item_template"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.className="bk-toolbar-inspector",e.prototype.template=u,e.prototype.events={'click [type="checkbox"]':"_clicked"},e.prototype.initialize=function(t){return this.listenTo(this.model,"change:active",this.render),this.render()},e.prototype.render=function(){return this.$el.html(this.template(this.model.attrs_and_props())),this},e.prototype._clicked=function(t){var e;return e=this.model.get("active"),this.model.set("active",!e)},e}(n.View),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e}(a.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.event_type="move",e.prototype.initialize=function(t,i){var n,r,s,o,a,l,u;for(e.__super__.initialize.call(this,t,i),o=this.get("names"),l=this.get("renderers"),0===l.length&amp;&amp;(n=this.get("plot").get("renderers"),l=function(){var t,e,i;for(i=[],t=0,e=n.length;e&gt;t;t++)a=n[t],"GlyphRenderer"===a.type&amp;&amp;i.push(a);return i}()),o.length&gt;0&amp;&amp;(l=function(){var t,e,i;for(i=[],t=0,e=l.length;e&gt;t;t++)a=l[t],o.indexOf(a.get("name"))&gt;=0&amp;&amp;i.push(a);return i}()),this.set("renderers",l),h.debug("setting "+l.length+" renderers for "+this.type+" "+this.id),u=[],r=0,s=l.length;s&gt;r;r++)a=l[r],u.push(h.debug(" - "+a.type+" "+a.id));return u},e.prototype.bind_bokeh_events=function(){return e.__super__.bind_bokeh_events.call(this),this.listenTo(events,"move",this._inspect)},e.prototype._inspect=function(t,e,i){},e.prototype._exit_inner=function(){},e.prototype._exit_outer=function(){},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{renderers:[],names:[],inner_only:!0,active:!0,event_type:"move"})},e}(a.Model),e.exports={Model:r,View:o,ListItemView:s}},{"../../common/logging":119,"../tool":247,"./inspect_tool_list_item_template":246,backbone:2,underscore:92}],246:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;input type="checkbox" '),this.active&amp;&amp;i.push("checked"),i.push("&gt;"),i.push(n(this.tool_name)),i.push("&lt;/input&gt;\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],247:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),n=t("../common/has_properties"),l=t("../common/logging").logger,r=t("../common/plot_widget"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:active",function(t){return function(){return t.mget("active")?t.activate():t.deactivate()}}(this))},e.prototype.activate=function(){},e.prototype.deactivate=function(){},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._check_dims=function(t,e){var i,n,r;return n=[!1,!1],r=n[0],i=n[1],0===t.length?l.warn(e+" given empty dimensions"):1===t.length?"width"!==t[0]&amp;&amp;"height"!==t[0]&amp;&amp;l.warn(e+" given unrecognized dimensions: "+t):2===t.length?(t.indexOf("width")&lt;0||t.indexOf("height")&lt;0)&amp;&amp;l.warn(e+" given unrecognized dimensions: "+t):l.warn(e+" given more than two dimensions: "+t),t.indexOf("width")&gt;=0&amp;&amp;(r=!0),t.indexOf("height")&gt;=0&amp;&amp;(i=!0),[r,i]},e.prototype._get_dim_tooltip=function(t,e){var i,n;return n=e[0],i=e[1],n&amp;&amp;!i?t+" (x-axis)":i&amp;&amp;!n?t+" (y-axis)":t},e.prototype._get_dim_limits=function(t,e,i,n){var r,s,o,l,u,h,c,p;return o=t[0],h=t[1],l=e[0],c=e[1],r=i.get("h_range"),n.indexOf("width")&gt;=0?(u=[a.min([o,l]),a.max([o,l])],
        u=[a.max([u[0],r.get("min")]),a.min([u[1],r.get("max")])]):u=[r.get("min"),r.get("max")],s=i.get("v_range"),n.indexOf("height")&gt;=0?(p=[a.min([h,c]),a.max([h,c])],p=[a.max([p[0],s.get("min")]),a.min([p[1],s.get("max")])]):p=[s.get("min"),s.get("max")],[u,p]},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{tool_name:this.tool_name,level:"overlay"})},e}(n),e.exports={Model:s,View:o}},{"../common/has_properties":115,"../common/logging":119,"../common/plot_widget":125,underscore:92}],248:[function(t,e,i){var n,r;r=function(t,e,i,n,r,s,o,a){var l,u,h,c,p,d,f,g,m,_,v,y;return l=a*r,u=-o*s,h=o*r,c=a*s,d=.5*(n-i),p=8/3*Math.sin(.5*d)*Math.sin(.5*d)/Math.sin(d),f=t+Math.cos(i)-p*Math.sin(i),_=e+Math.sin(i)+p*Math.cos(i),m=t+Math.cos(n),y=e+Math.sin(n),g=m+p*Math.sin(n),v=y-p*Math.cos(n),[l*f+u*_,h*f+c*_,l*g+u*v,h*g+c*v,l*m+u*y,h*m+c*y]},n=function(t,e,i,n,s,o,a,l,u){var h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F;return T=s*(Math.PI/180),D=Math.sin(T),f=Math.cos(T),w=Math.abs(i),x=Math.abs(n),v=f*(t-l)*.5+D*(e-u)*.5,y=f*(e-u)*.5-D*(t-l)*.5,_=v*v/(w*w)+y*y/(x*x),_&gt;1&amp;&amp;(_=Math.sqrt(_),w*=_,x*=_),h=f/w,c=D/w,p=-D/x,d=f/x,N=h*t+c*e,j=p*t+d*e,R=h*l+c*u,O=p*l+d*u,g=(R-N)*(R-N)+(O-j)*(O-j),C=1/g-.25,0&gt;C&amp;&amp;(C=0),M=Math.sqrt(C),a===o&amp;&amp;(M=-M),z=.5*(N+R)-M*(O-j),F=.5*(j+O)+M*(R-N),S=Math.atan2(j-F,N-z),A=Math.atan2(O-F,R-z),I=A-S,0&gt;I&amp;&amp;1===a?I+=2*Math.PI:I&gt;0&amp;&amp;0===a&amp;&amp;(I-=2*Math.PI),k=Math.ceil(Math.abs(I/(.5*Math.PI+.001))),b=function(){var t,e,i;for(i=[],m=t=0,e=k;e&gt;=0?e&gt;t:t&gt;e;m=e&gt;=0?++t:--t)P=S+m*I/k,E=S+(m+1)*I/k,i.push(r(z,F,P,E,w,x,D,f));return i}()},e.exports={arc_to_bezier:n,segment_to_bezier:r}},{}],249:[function(t,e,i){var n,r,s;r=t("underscore"),n=t("jquery"),s=function(t,e){var i,r;return i=function(i){return function(){return n.contains(document.documentElement,t)?(clearInterval(r),e()):void 0}}(this),r=setInterval(i,50)},e.exports={waitForElement:s}},{jquery:18,underscore:92}],250:[function(t,e,i){var n,r,s,o,a;s=t("underscore"),r=t("sprintf"),n=t("../../vendor/numeral.js-1.5.3/numeral.js"),o=function(t){var e;return s.isNumber(t)?(e=function(){switch(!1){case Math.floor(t)!==t:return"%d";case!(Math.abs(t)&gt;.1&amp;&amp;Math.abs(t)&lt;1e3):return"%0.3f";default:return"%0.3e"}}(),r.sprintf(e,t)):""+t},a=function(t,e,i,r){return null==r&amp;&amp;(r={}),t=t.replace(/(^|[^\$])\$(\w+)/g,function(t){return function(t,e,i){return e+"@$"+i}}(this)),t=t.replace(/(^|[^@])@(?:(\$?\w+)|{([^{}]+)})(?:{([^{}]+)})?/g,function(t){return function(t,a,l,u,h){var c,p,d;return l=null!=u?u:l,d="$"===l[0]?r[l.substring(1)]:null!=(c=e.get_column(l))?c[i]:void 0,p=null==d?"???":null!=h?n.format(d,h):o(d),""+a+s.escape(p)}}(this))},e.exports={replace_placeholders:a}},{"../../vendor/numeral.js-1.5.3/numeral.js":304,sprintf:90,underscore:92}],251:[function(t,e,i){(function(i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=null!=i._bokehTest?void 0:t("jquery-ui/autocomplete"),o=t("./text_input"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t;return e.__super__.render.call(this),t=this.$el.find("input"),t.autocomplete({source:this.mget("completions")}),t.autocomplete("widget").addClass("bk-autocomplete-input"),this},e}(o.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="AutocompleteInput",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{completions:[]})},e}(o.Model),e.exports={View:s,Model:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./text_input":288,"jquery-ui/autocomplete":5,underscore:92}],252:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),s=t("../common/continuum_view"),o=t("../common/has_parent"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="button",e.prototype.events={click:"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,n,r;if(t=this.mget("icon"),null!=t){l(this.views,[t]),n=this.views;for(e in n)h.call(n,e)&amp;&amp;(r=n[e],r.$el.detach())}return this.$el.empty(),this.$el.addClass("bk-bs-btn"),this.$el.addClass("bk-bs-btn-"+this.mget("type")),this.mget("disabled")&amp;&amp;this.$el.attr("disabled","disabled"),i=this.mget("label"),null!=t&amp;&amp;(this.$el.append(this.views[t.id].$el),i=" "+i),this.$el.append(document.createTextNode(i)),this},e.prototype.change_input=function(){var t;return this.mset("clicks",this.mget("clicks")+1),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e}(s),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="Button",e.prototype.default_view=r,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{clicks:0,label:"Button",icon:null,type:"default",disabled:!1})},e}(o),e.exports={Model:n,View:r}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],253:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A=function(t,e){function i(){this.constructor=t}for(var n in e)P.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},P={}.hasOwnProperty;S=t("underscore"),n=t("jquery"),null!=i._bokehTest?(r=void 0,s=void 0):(r=t("jquery-ui/autocomplete"),s=t("jquery-ui/spinner")),h=t("../common/continuum_view"),d=t("../common/has_properties"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.editorDefaults={},e.prototype.defaults=function(){return S.extend({},e.__super__.defaults.call(this),this.editorDefaults)},e}(d),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.tagName="div",e.prototype.className="bk-cell-editor",e.prototype.input=null,e.prototype.emptyValue=null,e.prototype.defaultValue=null,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,{}),this.args=t,this.model=this.args.column.editor,this.render()},e.prototype.render=function(){return this.$el.appendTo(this.args.container),this.$input=n(this.input),this.$el.append(this.$input),this.renderEditor(),this.disableNavigation(),this},e.prototype.renderEditor=function(){},e.prototype.disableNavigation=function(){return this.$input.keydown(function(t){return function(t){var e;switch(e=function(){return t.stopImmediatePropagation()},t.keyCode){case n.ui.keyCode.LEFT:return e();case n.ui.keyCode.RIGHT:return e();case n.ui.keyCode.UP:return e();case n.ui.keyCode.DOWN:return e();case n.ui.keyCode.PAGE_UP:return e();case n.ui.keyCode.PAGE_DOWN:return e()}}}(this))},e.prototype.destroy=function(){return this.remove()},e.prototype.focus=function(){return this.$input.focus()},e.prototype.show=function(){},e.prototype.hide=function(){},e.prototype.position=function(){},e.prototype.getValue=function(){return this.$input.val()},e.prototype.setValue=function(t){return this.$input.val(t)},e.prototype.serializeValue=function(){return this.getValue()},e.prototype.isValueChanged=function(){return!(""===this.getValue()&amp;&amp;null==this.defaultValue)&amp;&amp;this.getValue()!==this.defaultValue},e.prototype.applyValue=function(t,e){return this.args.grid.getData().setField(t.index,this.args.column.field,e)},e.prototype.loadValue=function(t){var e;return e=t[this.args.column.field],this.defaultValue=null!=e?e:this.emptyValue,this.setValue(this.defaultValue)},e.prototype.validateValue=function(t){var e;return this.args.column.validator&amp;&amp;(e=this.args.column.validator(t),!e.valid)?e:{valid:!0,msg:null}},e.prototype.validate=function(){return this.validateValue(this.getValue())},e}(h),k=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.emptyValue="",e.prototype.input='&lt;input type="text" /&gt;',e.prototype.renderEditor=function(){var t;return t=this.model.get("completions"),S.isEmpty(t)||(this.$input.autocomplete({source:t}),this.$input.autocomplete("widget").addClass("bk-cell-editor-completion")),this.$input.focus().select()},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input[0].defaultValue=this.defaultValue,this.$input.select()},e}(a),x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="StringEditor",e.prototype.default_view=k,e.prototype.editorDefaults={completions:[]},e}(o),C=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e}(a),M=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="TextEditor",e.prototype.default_view=C,e}(o),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input="&lt;select /&gt;",e.prototype.renderEditor=function(){var t,e,i,r;for(r=this.model.get("options"),t=0,e=r.length;e&gt;t;t++)i=r[t],this.$input.append(n("&lt;option&gt;").attr({value:i}).text(i));return this.focus()},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input.select()},e}(a),b=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="SelectEditor",e.prototype.default_view=w,e.prototype.editorDefaults={options:[]},e}(o),y=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e}(a),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="PercentEditor",e.prototype.default_view=y,e}(o),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input='&lt;input type="checkbox" value="true" /&gt;',e.prototype.renderEditor=function(){return this.focus()},e.prototype.loadValue=function(t){return this.defaultValue=!!t[this.args.column.field],this.$input.prop("checked",this.defaultValue)},e.prototype.serializeValue=function(){return this.$input.prop("checked")},e}(a),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="CheckboxEditor",e.prototype.default_view=u,e}(o),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input='&lt;input type="text" /&gt;',e.prototype.renderEditor=function(){return this.$input.spinner({step:this.model.get("step")}),this.$input.focus().select()},e.prototype.remove=function(){return this.$input.spinner("destroy"),e.__super__.remove.call(this)},e.prototype.serializeValue=function(){return parseInt(this.getValue(),10)||0},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input[0].defaultValue=this.defaultValue,this.$input.select()},e.prototype.validateValue=function(t){return isNaN(t)?{valid:!1,msg:"Please enter a valid integer"}:e.__super__.validateValue.call(this,t)},e}(a),f=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="IntEditor",e.prototype.default_view=g,e.prototype.editorDefaults={step:1},e}(o),_=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input='&lt;input type="text" /&gt;',e.prototype.renderEditor=function(){return this.$input.spinner({step:this.model.get("step")}),this.$input.focus().select()},e.prototype.remove=function(){return this.$input.spinner("destroy"),e.__super__.remove.call(this)},e.prototype.serializeValue=function(){return parseFloat(this.getValue())||0},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input[0].defaultValue=this.defaultValue,this.$input.select()},e.prototype.validateValue=function(t){return isNaN(t)?{valid:!1,msg:"Please enter a valid number"}:e.__super__.validateValue.call(this,t)},e}(a),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="NumberEditor",e.prototype.default_view=_,e.prototype.editorDefaults={step:.01},e}(o),T=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e}(a),D=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="TimeEditor",e.prototype.default_view=T,e}(o),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.emptyValue=new Date,e.prototype.input='&lt;input type="text" /&gt;',e.prototype.renderEditor=function(){return this.calendarOpen=!1,this.$input.datepicker({showOn:"button",buttonImageOnly:!0,beforeShow:function(t){return function(){return t.calendarOpen=!0}}(this),onClose:function(t){return function(){return t.calendarOpen=!1}}(this)}),this.$input.siblings(".bk-ui-datepicker-trigger").css({"vertical-align":"middle"}),this.$input.width(this.$input.width()-26),this.$input.focus().select()},e.prototype.destroy=function(){return n.datepicker.dpDiv.stop(!0,!0),this.$input.datepicker("hide"),this.$input.datepicker("destroy"),e.__super__.destroy.call(this)},e.prototype.show=function(){return this.calendarOpen&amp;&amp;n.datepicker.dpDiv.stop(!0,!0).show(),e.__super__.show.call(this)},e.prototype.hide=function(){return this.calendarOpen&amp;&amp;n.datepicker.dpDiv.stop(!0,!0).hide(),e.__super__.hide.call(this)},e.prototype.position=function(t){return this.calendarOpen&amp;&amp;n.datepicker.dpDiv.css({top:t.top+30,left:t.left}),e.__super__.position.call(this)},e.prototype.getValue=function(){return this.$input.datepicker("getDate").getTime()},e.prototype.setValue=function(t){return this.$input.datepicker("setDate",new Date(t))},e}(a),c=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="DateEditor",e.prototype.default_view=p,e}(o),e.exports={String:{Model:x,View:k},Text:{Model:M,View:C},Select:{Model:b,View:w},Percent:{Model:v,View:y},Checkbox:{Model:l,View:u},Int:{Model:f,View:g},Number:{Model:m,View:_},Time:{Model:D,View:T},Date:{Model:c,View:p}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,jquery:18,"jquery-ui/autocomplete":5,"jquery-ui/spinner":16,underscore:92}],254:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;c=t("underscore"),n=t("jquery"),u=t("../../vendor/numeral.js-1.5.3/numeral.js"),a=t("../common/has_properties"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.formatterDefaults={},e.prototype.format=function(t,e,i,n,r){return null===i?"":(i+"").replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;")},e.prototype.defaults=function(){return c.extend({},e.__super__.defaults.call(this),this.formatterDefaults)},e}(a),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="StringFormatter",e.prototype.formatterDefaults={font_style:null,text_align:null,text_color:null},e.prototype.format=function(t,i,r,s,o){var a,l,u,h;if(l=e.__super__.format.call(this,t,i,r,s,o),a=this.get("font_style"),u=this.get("text_align"),h=this.get("text_color"),null!=a||null!=u||null!=h){switch(l=n("&lt;span&gt;"+l+"&lt;/span&gt;"),a){case"bold":l=l.css("font-weight","bold");break;case"italic":l=l.css("font-style","italic")}null!=u&amp;&amp;(l=l.css("text-align",u)),null!=h&amp;&amp;(l=l.css("color",h)),l=l.prop("outerHTML")}return l},e}(s),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="NumberFormatter",e.prototype.formatterDefaults={font_style:null,text_align:null,text_color:null,format:"0,0",language:"en",rounding:"round"},e.prototype.format=function(t,i,n,r,s){var o,a,l;return o=this.get("format"),a=this.get("language"),l=function(){switch(this.get("rounding")){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}.call(this),n=u.format(n,o,a,l),e.__super__.format.call(this,t,i,n,r,s)},e}(h),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="BooleanFormatter",e.prototype.formatterDefaults={icon:"check"},e.prototype.format=function(t,e,i,r,s){return i?n("&lt;i&gt;").addClass(this.get("icon")).html():""},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="DateFormatter",e.prototype.formatterDefaults={format:"yy M d"},e.prototype.getFormat=function(){var t,e;return t=this.get("format"),e=function(){switch(t){case"ATOM":case"W3C":case"RFC-3339":case"ISO-8601":return"ISO-8601";case"COOKIE":return"COOKIE";case"RFC-850":return"RFC-850";case"RFC-1036":return"RFC-1036";case"RFC-1123":return"RFC-1123";case"RFC-2822":return"RFC-2822";case"RSS":case"RFC-822":return"RFC-822";case"TICKS":return"TICKS";case"TIMESTAMP":return"TIMESTAMP";default:return null}}(),null!=e?n.datepicker[e]:t},e.prototype.format=function(t,i,r,s,o){var a;return r=c.isString(r)?parseInt(r,10):r,a=n.datepicker.formatDate(this.getFormat(),new Date(r)),e.__super__.format.call(this,t,i,a,s,o)},e}(s),e.exports={String:{Model:h},Number:{Model:l},Boolean:{Model:r},Date:{Model:o}}},{"../../vendor/numeral.js-1.5.3/numeral.js":304,"../common/has_properties":115,jquery:18,underscore:92}],255:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty,p=[].indexOf||function(t){for(var e=0,i=this.length;i&gt;e;e++)if(e in this&amp;&amp;this[e]===t)return e;return-1};u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/button"),a=t("../common/continuum_view"),l=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="div",e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l;for(this.$el.empty(),this.$el.addClass("bk-bs-btn-group"),this.$el.attr("data-bk-bs-toggle","buttons"),i=this.mget("active"),l=this.mget("labels"),r=s=0,a=l.length;a&gt;s;r=++s)o=l[r],t=n('&lt;input type="checkbox"&gt;').attr({value:""+r}),p.call(i,r)&gt;=0&amp;&amp;t.prop("checked",!0),e=n('&lt;label class="bk-bs-btn"&gt;&lt;/label&gt;'),e.text(o).prepend(t),e.addClass("bk-bs-btn-"+this.mget("type")),p.call(i,r)&gt;=0&amp;&amp;e.addClass("bk-bs-active"),this.$el.append(e);return this},e.prototype.change_input=function(){var t,e,i,n;return t=function(){var t,n,r,s;for(r=this.$("input"),s=[],i=t=0,n=r.length;n&gt;t;i=++t)e=r[i],e.checked&amp;&amp;s.push(i);return s}.call(this),this.mset("active",t),this.model.save(),null!=(n=this.mget("callback"))?n.execute(this.model):void 0},e}(a),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="CheckboxButtonGroup",e.prototype.default_view=o,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{active:[],labels:[],type:"default",disabled:!1})},e}(l),e.exports={Model:s,View:o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_parent":114,"bootstrap/button":293,jquery:18,underscore:92}],256:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty,c=[].indexOf||function(t){for(var e=0,i=this.length;i&gt;e;e++)if(e in this&amp;&amp;this[e]===t)return e;return-1};l=t("underscore"),n=t("jquery"),o=t("../common/continuum_view"),a=t("../common/has_parent"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="div",e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l,u;for(this.$el.empty(),r=this.mget("active"),u=this.mget("labels"),s=o=0,l=u.length;l&gt;o;s=++o)a=u[s],e=n('&lt;input type="checkbox"&gt;').attr({value:""+s}),this.mget("disabled")&amp;&amp;e.prop("disabled",!0),c.call(r,s)&gt;=0&amp;&amp;e.prop("checked",!0),i=n("&lt;label&gt;&lt;/label&gt;").text(a).prepend(e),this.mget("inline")?(i.addClass("bk-bs-checkbox-inline"),this.$el.append(i)):(t=n('&lt;div class="bk-bs-checkbox"&gt;&lt;/div&gt;').append(i),this.$el.append(t));return this},e.prototype.change_input=function(){var t,e,i,n;return t=function(){var t,n,r,s;for(r=this.$("input"),s=[],i=t=0,n=r.length;n&gt;t;i=++t)e=r[i],e.checked&amp;&amp;s.push(i);return s}.call(this),this.mset("active",t),this.model.save(),null!=(n=this.mget("callback"))?n.execute(this.model):void 0},e}(o),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="CheckboxGroup",e.prototype.default_view=s,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:[],labels:[],inline:!1,disabled:!1})},e}(a),e.exports={Model:r,View:s}},{"../common/continuum_view":109,"../common/has_parent":114,jquery:18,underscore:92}],257:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I=function(t,e){function i(){this.constructor=t}for(var n in e)N.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},N={}.hasOwnProperty,R=function(t,e){return function(){return t.apply(e,arguments)}};M=t("underscore"),null!=i._bokehTest?(P=void 0,E=void 0):(P=t("jquery-ui/draggable"),E=t("jquery-ui/droppable")),C=t("../common/build_views"),n=t("../common/close_wrapper"),r=t("../common/collection"),h=t("../common/continuum_view"),y=t("../common/has_parent"),b=t("../common/has_properties"),A=t("./crossfilter_template"),T=t("./crossfilter_column_template"),S=t("./crossfilter_facet_template"),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.tag="div",e.prototype.attributes={"class":"bk-crossfilter"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.listenTo(this.model,"change:plot",this.render_plot),this.render(),this.render_plot()},e.prototype.render_plot=function(){var t;return null!=this.plot_view&amp;&amp;this.plot_view.remove(),t=this.mget("plot"),this.plot_view=new t.default_view({model:t}),this.$el.find(".bk-crossfilter-plot").empty(),this.$el.find(".bk-crossfilter-plot").append(this.plot_view.$el),this},e.prototype.render=function(){var t;return null!=this.columnview&amp;&amp;this.columnview.$el.detach(),this.$el.empty(),t=A(),this.$el.html(t),this.filterview=new v({el:this.$(".bk-filters"),collection:this.model.columns,model:this.model}),this.facetsview=new _({el:this.$el,model:this.model}),this.plotattributeview=new w({el:this.$el,model:this.model}),this.columnview=new a({collection:this.model.columns}),this.$(".bk-column-list").append(this.columnview.el),this.$(".bk-crossfilter-configuration").height(this.mget("height")),this.$(".bk-crossfilter-configuration").width(400),this},e}(h),c=function(t){function e(){return this._set_columns=R(this._set_columns,this),e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.default_view=p,e.prototype.type="CrossFilter",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.columns=new s,this._set_columns(),this.listenTo(this,"change:columns",this._set_columns)},e.prototype._set_columns=function(){return this.columns.reset(this.get("columns"))},e.prototype.defaults=function(){return M.extend({},e.__super__.defaults.call(this),{height:700,width:1300})},e}(y),d=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.model=c,e}(r),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"change:plot_selector",M.bind(this.render_selector,"plot")),this.listenTo(this.model,"change:x_selector",M.bind(this.render_selector,"x")),this.listenTo(this.model,"change:y_selector",M.bind(this.render_selector,"y")),this.listenTo(this.model,"change:agg_selector",M.bind(this.render_selector,"agg")),this.render_selector("plot"),this.render_selector("x"),this.render_selector("y"),this.render_selector("agg")},e.prototype.render_selector=function(t){var e,i;return i=this.$(".bk-"+t+"-selector").empty(),e=this.mget(t+"_selector"),this.plot_selector_view=new e.default_view({model:e}),i.append(this.plot_selector_view.$el)},e}(h),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.listenTo(this.collection,"all",this.render),this.render()},e.prototype.render=function(){return M.map(this.views,function(t){return t.$el.detach()}),C(this.views,this.collection.models),M.map(this.collection.models,function(t){return function(e){return t.$el.append(t.views[e.id].$el)}}(this)),this},e}(h),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.tagName="span",e.prototype.attributes={"class":"bk-facet-label"},e.prototype.events={click:"remove"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.name=t.name,this.render()},e.prototype.render=function(){return this.$el.html(S({name:this.name})),this},e}(h),_=function(t){function e(){return this.drop_tab=R(this.drop_tab,this),this.drop_y=R(this.drop_y,this),this.drop_x=R(this.drop_x,this),this.drop=R(this.drop,this),this.add_facet=R(this.add_facet,this),this.remove_facet=R(this.remove_facet,this),e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render_init(),this.render_all_facets(),this.listenTo(this.model,"change:facet_x",this.render_all_facets),this.listenTo(this.model,"change:facet_y",this.render_all_facets),this.listenTo(this.model,"change:facet_tab",this.render_all_facets)},e.prototype.render_init=function(){return this.facet_x_node=this.$(".bk-facet-x"),this.facet_y_node=this.$(".bk-facet-y"),this.facet_tab_node=this.$(".bk-facet-tab"),this.facet_x_node.droppable({drop:this.drop_x,tolerance:"pointer",hoverClass:"bk-droppable-hover"}),this.facet_y_node.droppable({drop:this.drop_y,tolerance:"pointer",hoverClass:"bk-droppable-hover"}),this.facet_tab_node.droppable({drop:this.drop_tab,tolerance:"pointer",hoverClass:"bk-droppable-hover"})},e.prototype.render_all_facets=function(){this.render_facets(this.facet_x_node,"facet_x",this.model.get("facet_x")),this.render_facets(this.facet_y_node,"facet_y",this.model.get("facet_y")),this.render_facets(this.facet_tab_node,"facet_tab",this.model.get("facet_tab"))},e.prototype.render_facets=function(t,e,i){var n,r,s,o,a;for(t=t.find(".bk-facets-selections"),t.empty(),o=[],r=0,s=i.length;s&gt;r;r++)n=i[r],a=new m({name:n}),this.listenTo(a,"remove",function(){var t;return this.remove_facet(n,t=!0)}),o.push(t.append(a.$el));return o},e.prototype.remove_facet=function(t,e){var i,n,r,s,o,a;for(null==e&amp;&amp;(e=!0),s=["facet_x","facet_y","facet_tab"],n=0,r=s.length;r&gt;n;n++)o=s[n],i=M.clone(this.model.get(o)),i=function(){var e,n,r;for(r=[],e=0,n=i.length;n&gt;e;e++)a=i[e],a!==t&amp;&amp;r.push(a);return r}(),this.model.set(o,i);return e?this.model.save():void 0},e.prototype.add_facet=function(t,e){var i,n;return this.remove_facet(e,n=!1),i=M.clone(this.model.get(t)),i.indexOf(e)&lt;0&amp;&amp;(i.push(e),this.model.set(t,i)),this.model.save()},e.prototype.drop=function(t,e,i){var n,r;return n=i.helper.data("model"),r=n.get("name"),this.add_facet(t,r)},e.prototype.drop_x=function(t,e){return this.drop("facet_x",t,e)},e.prototype.drop_y=function(t,e){return this.drop("facet_y",t,e)},e.prototype.drop_tab=function(t,e){return this.drop("facet_tab",t,e)},e}(h),v=function(t){function e(){return this.drop=R(this.drop,this),e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.render_columns_selectors,this.listenTo(this.model,"change:filter_widgets",this.render_column_selectors)},e.prototype.drop=function(t,e){var i,n;return i=e.helper.data("model"),n=M.clone(this.model.get("filtering_columns")),n.push(i.get("name")),this.model.set("filtering_columns",n),this.model.save()},e.prototype.render=function(){return this.$el.droppable({drop:this.drop,tolerance:"pointer",hoverClass:"bk-droppable-hover"}),this},e.prototype.render_column_selectors=function(){var t,e,i,r,s,o,a,l;M.map(this.views,function(t){return t.$el.detach()}),this.$el.find(".bk-filters-selections").empty(),e={},a=this.mget("filter_widgets");for(s in a)N.call(a,s)&amp;&amp;(l=a[s],e[s]=this.model.resolve_ref(l));return r=this.mget("filtering_columns"),i=function(){var i,n,s;for(s=[],i=0,n=r.length;n&gt;i;i++)t=r[i],null!=e[t]&amp;&amp;s.push(e[t]);return s}(),o=C(this.views,i),M.map(o,function(t){return function(e){return t.listenTo(e,"remove",t.child_remove)}}(this)),M.map(i,function(t){return function(e){var i;return i=new n.View({view:t.views[e.id]}),t.$el.find(".bk-filters-selections").append(i.$el)}}(this))},e.prototype.child_remove=function(t){var e,i,n,r,s,o;r=this.mget("filter_widgets");for(e in r)if(N.call(r,e)&amp;&amp;(o=r[e],i=this.model.resolve_ref(o),i===t.model)){s=e;break}return n=M.filter(this.mget("filtering_columns"),function(t){return t!==s}),this.mset("filtering_columns",n),this.model.save()},e}(h),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.template=T,e.prototype.attributes={"class":"bk-crossfilter-column-entry bk-bs-panel bk-bs-panel-primary"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){return this.$el.html(this.template(this.model.attributes)),this.$el.draggable({appendTo:"body",containment:"document",helper:"clone",start:function(t){return function(e,i){return i.helper.data("model",t.model)}}(this)}),this},e}(h),k=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e}(o),x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.default_view=k,e.prototype.defaults=function(){return M.extend({},e.__super__.defaults.call(this),{type:"TimeColumn",label:"Time",name:"",fields:["count","unique","first","last"],count:0,unique:0,first:0,last:0})},e}(b),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e}(o),f=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.default_view=g,e.prototype.defaults=function(){return M.extend({},e.__super__.defaults.call(this),{type:"DiscreteColumn",label:"Factor",name:"",fields:["count","unique","top","freq"],count:0,unique:0,top:0,freq:0})},e}(b),u=function(t){
        function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e}(o),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.default_view=u,e.prototype.defaults=function(){return M.extend({},e.__super__.defaults.call(this),{type:"ContinuousColumn",label:"Continuous",name:"",fields:["count","mean","std","min","max"],count:0,mean:0,std:0,min:0,max:0})},e}(b),D={DiscreteColumn:f,TimeColumn:x,ContinuousColumn:l},s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.model=function(t,e){return t.type in D?new D[t.type](t):(console.log("Unknown column type: '"+t.type+"'"),null)},e}(r),e.exports={Model:c,View:p,Collection:new d}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/build_views":101,"../common/close_wrapper":106,"../common/collection":107,"../common/continuum_view":109,"../common/has_parent":114,"../common/has_properties":115,"./crossfilter_column_template":258,"./crossfilter_facet_template":259,"./crossfilter_template":260,"jquery-ui/draggable":9,"jquery-ui/droppable":10,underscore:92}],258:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){var t,e,r,s;for("Continuous"===this.label?i.push('\n&lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading bk-crossfilter-panel-continuous-heading"&gt;\n'):i.push('\n&lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading bk-crossfilter-panel-factor-heading"&gt;\n'),i.push("\n  "),i.push(n(this.name)),i.push(' &lt;span style="font-size:x-small;"&gt;('),i.push(n(this.label)),i.push(')&lt;/span&gt;\n&lt;/div&gt;\n\n\n&lt;div class="bk-bs-panel-body"&gt;\n\n  &lt;table class="bk-table"&gt;\n\n    &lt;tbody&gt;\n\n      '),s=this.fields,e=0,r=s.length;r&gt;e;e++)t=s[e],i.push("\n      &lt;tr&gt; &lt;td&gt; "),i.push(n(t)),i.push("  &lt;/td&gt; &lt;td&gt; "),i.push(n(this[t])),i.push("  &lt;/td&gt; &lt;/tr&gt;\n      ");i.push("\n\n    &lt;/tbody&gt;\n\n  &lt;/table&gt;\n\n&lt;/div&gt;")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],259:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push(n(this.name)),i.push(" &amp;nbsp; [x]")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],260:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;div class="bk-crossfilter-container"&gt;\n\n  &lt;table&gt;\n\n    &lt;tr&gt;\n\n      &lt;td class="aligntable"&gt;\n\n        &lt;div class="bk-crossfilter-configuration bk-bs-container"&gt;\n\n          &lt;div class="bk-crossfilter-row"&gt;\n\n            &lt;div class="col-md-5 bk-column-list" /&gt;\n\n            &lt;div class="col-md-7 bk-filters-facets"&gt;\n\n              &lt;div class="bk-bs-panel bk-bs-panel-primary bk-filters"&gt;\n                &lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading"&gt; Filter &lt;/div&gt;\n                &lt;div class="bk-bs-panel-body bk-filters-selections" /&gt;\n              &lt;/div&gt;\n\n              &lt;div class="bk-bs-panel bk-bs-panel-primary bk-facet bk-facet-x"&gt;\n                &lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading"&gt; Facet X &lt;/div&gt;\n                &lt;div class="bk-facets-selections " /&gt;\n              &lt;/div&gt;\n\n              &lt;div class="bk-bs-panel bk-bs-panel-primary bk-facet bk-facet-y"&gt;\n                &lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading"&gt; Facet Y &lt;/div&gt;\n                &lt;div class="bk-facets-selections " /&gt;\n              &lt;/div&gt;\n\n              &lt;div class="bk-bs-panel bk-bs-panel-primary bk-facet bk-facet-tab"&gt;\n                &lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading"&gt; Facet Tab &lt;/div&gt;\n                &lt;div class="bk-facets-selections " /&gt;\n              &lt;/div&gt;\n\n            &lt;/div&gt;\n\n          &lt;/div&gt;\n\n        &lt;/div&gt;\n\n      &lt;/td&gt;\n\n      &lt;td class="aligntable"&gt;\n\n        &lt;div class="bk-plot-selection"&gt;\n\n          &lt;form class="bk-widget-form"&gt;\n            &lt;ul class="bk-crossfilter-selector"&gt;\n              &lt;li class="bk-plot-selector col-md-3"&gt; &lt;/li&gt;\n              &lt;li class="bk-x-selector col-md-3"&gt; &lt;/li&gt;\n              &lt;li class="bk-y-selector col-md-3"&gt; &lt;/li&gt;\n              &lt;li class="bk-agg-selector col-md-3"&gt; &lt;/li&gt;\n            &lt;/ul&gt;\n          &lt;/form&gt;\n\n        &lt;/div&gt;\n\n        &lt;div class="bk-crossfilter-plot" /&gt;\n      &lt;/td&gt;\n\n    &lt;/tr&gt;\n\n  &lt;/table&gt;\n\n&lt;/div&gt;\n')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],261:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty;f=t("underscore"),n=t("jquery"),null!=i._bokehTest?(r=void 0,d=void 0,p=void 0,s=void 0):(r=t("jquery-ui/sortable"),d=t("slick_grid/slick.grid"),p=t("slick_grid/plugins/slick.rowselectionmodel"),s=t("slick_grid/plugins/slick.checkboxselectcolumn")),o=t("../common/continuum_view"),c=t("../common/has_properties"),a=t("../util/dom_util"),g=t("../common/hittest"),l=function(){function t(t){var e;this.source=t,this.data=this.source.get("data"),this.fields=f.keys(this.data),f.contains(this.fields,"index")||(this.data.index=function(){e=[];for(var t=0,i=this.getLength();i&gt;=0?i&gt;t:t&gt;i;i&gt;=0?t++:t--)e.push(t);return e}.apply(this),this.fields.push("index"))}return t.prototype.getLength=function(){return this.source.get_length()},t.prototype.getItem=function(t){var e,i,n,r,s;for(i={index:t},s=this.fields,n=0,r=s.length;r&gt;n;n++)e=s[n],i[e]=this.data[e][t];return i},t.prototype._setItem=function(t,e){var i,n;for(i in e)n=e[i],this.data[i][t]=n},t.prototype.setItem=function(t,e){return this._setItem(t,e),this.updateSource()},t.prototype.getField=function(t,e){return this.data[e][t]},t.prototype._setField=function(t,e,i){this.data[e][t]=i},t.prototype.setField=function(t,e,i){return this._setField(t,e,i),this.updateSource()},t.prototype.updateSource=function(){return this.source.forceTrigger("data")},t.prototype.getItemMetadata=function(t){return null},t.prototype.getRecords=function(){var t;return function(){var e,i,n;for(n=[],t=e=0,i=this.getLength();i&gt;=0?i&gt;e:e&gt;i;t=i&gt;=0?++e:--e)n.push(this.getItem(t));return n}.call(this)},t.prototype.sort=function(t){var e,i,n,r,s,o,a;for(e=function(){var e,n,r;for(r=[],e=0,n=t.length;n&gt;e;e++)i=t[e],r.push([i.sortCol.field,i.sortAsc?1:-1]);return r}(),f.isEmpty(e)&amp;&amp;(e=[["index",1]]),a=this.getRecords(),a.sort(function(t,i){var n,r,s,o,a,l,u,h;for(r=0,s=e.length;s&gt;r;r++)if(o=e[r],n=o[0],l=o[1],u=t[n],h=i[n],a=u===h?0:u&gt;h?l:-l,0!==a)return a;return 0}),n=r=0,s=a.length;s&gt;r;n=++r)o=a[n],this._setItem(n,o);return this.updateSource()},t}(),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.attributes={"class":"bk-data-table"},e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),a.waitForElement(this.el,function(t){return function(){return t.render()}}(this)),this.listenTo(this.model,"change",function(t){return function(){return t.render()}}(this)),i=this.mget("source"),this.listenTo(i,"change:data",function(t){return function(){return t.updateGrid()}}(this)),this.listenTo(i,"change:selected",function(t){return function(){return t.updateSelection()}}(this))},e.prototype.updateGrid=function(){return this.data=new l(this.mget("source")),this.grid.setData(this.data),this.grid.render()},e.prototype.updateSelection=function(){var t;return t=this.mget("source").get("selected"),this.grid.setSelectedRows(t["1d"].indices)},e.prototype.newIndexColumn=function(){return{id:f.uniqueId(),name:"#",field:"index",width:40,behavior:"select",cannotTriggerInsert:!0,resizable:!1,selectable:!1,sortable:!0,cssClass:"bk-cell-index"}},e.prototype.render=function(){var t,e,i,n,r,o;return i=function(){var t,i,n,r;for(n=this.mget("columns"),r=[],t=0,i=n.length;i&gt;t;t++)e=n[t],r.push(e.toColumn());return r}.call(this),"checkbox"===this.mget("selectable")&amp;&amp;(t=new s({cssClass:"bk-cell-select"}),i.unshift(t.getColumnDefinition())),this.mget("row_headers")&amp;&amp;null!=this.mget("source").get_column("index")&amp;&amp;i.unshift(this.newIndexColumn()),o=this.mget("width"),n=this.mget("height"),r={enableCellNavigation:this.mget("selectable")!==!1,enableColumnReorder:!0,forceFitColumns:this.mget("fit_columns"),autoHeight:"auto"===n,multiColumnSort:this.mget("sortable"),editable:this.mget("editable"),autoEdit:!1},null!=o&amp;&amp;this.$el.css({width:this.mget("width")+"px"}),null!=n&amp;&amp;"auto"!==n&amp;&amp;this.$el.css({height:this.mget("height")+"px"}),this.data=new l(this.mget("source")),this.grid=new d(this.el,this.data,i,r),this.grid.onSort.subscribe(function(t){return function(e,n){return i=n.sortCols,t.data.sort(i),t.grid.invalidate(),t.grid.render()}}(this)),this.mget("selectable")!==!1&amp;&amp;(this.grid.setSelectionModel(new p({selectActiveRow:null==t})),null!=t&amp;&amp;this.grid.registerPlugin(t),this.grid.onSelectedRowsChanged.subscribe(function(t){return function(e,i){var n;return n=g.create_hit_test_result(),n["1d"].indices=i.rows,t.mget("source").set("selected",n)}}(this))),this},e}(o),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.type="DataTable",e.prototype.default_view=h,e.prototype.defaults=function(){return f.extend({},e.__super__.defaults.call(this),{columns:[],width:null,height:400,fit_columns:!0,sortable:!0,editable:!1,selectable:!0,row_headers:!0})},e}(c),e.exports={Model:u,View:h}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,"../common/hittest":116,"../util/dom_util":249,jquery:18,"jquery-ui/sortable":15,"slick_grid/plugins/slick.checkboxselectcolumn":305,"slick_grid/plugins/slick.rowselectionmodel":306,"slick_grid/slick.grid":308,underscore:92}],262:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("jquery-ui/datepicker"),s=t("../common/continuum_view"),l=t("../common/has_properties"),a=function(t){function e(){return this.onSelect=h(this.onSelect,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t,e;return this.$el.empty(),e=n("&lt;label&gt;").text(this.mget("title")),t=n("&lt;div&gt;").datepicker({defaultDate:new Date(this.mget("value")),minDate:null!=this.mget("min_date")?new Date(this.mget("min_date")):null,maxDate:null!=this.mget("max_date")?new Date(this.mget("max_date")):null,onSelect:this.onSelect}),this.$el.append([e,t]),this},e.prototype.onSelect=function(t,e){var i;return this.mset("value",new Date(t)),this.model.save(),null!=(i=this.mget("callback"))?i.execute(this.model):void 0},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="DatePicker",e.prototype.default_view=a,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{value:Date.now()})},e}(l),e.exports={Model:o,View:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,jquery:18,"jquery-ui/datepicker":8,underscore:92}],263:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("jqrangeslider/jQDateRangeSlider"),s=t("../common/continuum_view"),l=t("../common/has_properties"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",function(t){return function(){return t.render}}(this))},e.prototype.render=function(){var t,e,i,n,r,s,o,a,l;return this.$el.empty(),r=this.mget("value"),l=r[0],a=r[1],s=this.mget("range"),n=s[0],i=s[1],o=this.mget("bounds"),e=o[0],t=o[1],this.$el.dateRangeSlider({defaultValues:{min:new Date(l),max:new Date(a)},bounds:{min:new Date(e),max:new Date(t)},range:{min:u.isObject(n)?n:!1,max:u.isObject(i)?i:!1},step:this.mget("step")||{},enabled:this.mget("enabled"),arrows:this.mget("arrows"),valueLabels:this.mget("value_labels"),wheelMode:this.mget("wheel_mode")}),this.$el.on("userValuesChanged",function(t){return function(e,i){var n;return t.mset("value",[i.values.min,i.values.max]),t.model.save(),null!=(n=t.mget("callback"))?n.execute(t.model):void 0}}(this)),this},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="DateRangeSlider",e.prototype.default_view=a,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{})},e}(l),e.exports={Model:o,View:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,"jqrangeslider/jQDateRangeSlider":299,jquery:18,underscore:92}],264:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c=function(t,e){return function(){return t.apply(e,arguments)}},p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/modal"),s=t("../common/continuum_view"),l=t("../common/has_properties"),h=t("./dialog_template"),a=function(t){function e(){return this.change_content=c(this.change_content,this),this.change_visibility=c(this.change_visibility,this),this.onHide=c(this.onHide,this),e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.render_content(),this.render_buttons(),this.listenTo(this.model,"destroy",this.remove),this.listenTo(this.model,"change:visible",this.change_visibility),this.listenTo(this.model,"change:content",this.change_content)},e.prototype.render_content=function(){var t;return null!=this.content_view&amp;&amp;this.content_view.remove(),t=this.mget("content"),null!=t&amp;&amp;("object"==typeof t?(this.content_view=new t.default_view({model:t}),this.$el.find(".bk-dialog-content").empty(),this.$el.find(".bk-dialog-content").append(this.content_view.$el)):(this.$el.find(".bk-dialog-content").empty(),this.$el.find(".bk-dialog-content").text(t))),this},e.prototype.render_buttons=function(){var t;return null!=this.buttons_box_view&amp;&amp;this.buttons_box_view.remove(),t=this.mget("buttons_box"),null!=t&amp;&amp;(this.buttons_box_view=new t.default_view({model:t}),this.$el.find(".bk-dialog-buttons_box").empty(),this.$el.find(".bk-dialog-buttons_box").append(this.buttons_box_view.$el)),this},e.prototype.render=function(){return this.$modal=n(h(this.model.attributes)),this.$modal.modal({show:this.mget("visible")}),this.$modal.on("hidden.bk-bs.modal",this.onHide),this.$el.html(this.$modal),this},e.prototype.onHide=function(t){return this.mset("visible",!1,{silent:!0})},e.prototype.change_visibility=function(){return this.$modal.modal(this.mget("visible")?"show":"hide")},e.prototype.change_content=function(){return this.render_content()},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="Dialog",e.prototype.default_view=a,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{visible:!1,closable:!0,title:"",content:"",buttons:[],buttons_box:null})},e}(l),e.exports={Model:o,View:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,"./dialog_template":265,"bootstrap/modal":295,jquery:18,underscore:92}],265:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;div class="bk-bs-modal" tabindex="-1"&gt;\n  &lt;div class="bk-bs-modal-dialog"&gt;\n    &lt;div class="bk-bs-modal-content"&gt;\n      &lt;div class="bk-bs-modal-header"&gt;\n        '),this.closable&amp;&amp;i.push('\n          &lt;button type="button" class="bk-bs-close" data-bk-bs-dismiss="modal"&gt;&amp;times;&lt;/button&gt;\n        '),i.push('\n        &lt;h4 class="bk-bs-modal-title"&gt;'),i.push(n(this.title)),i.push('&lt;/h4&gt;\n      &lt;/div&gt;\n      &lt;div class="bk-bs-modal-body"&gt;\n        &lt;div class="bk-dialog-content" /&gt;\n      &lt;/div&gt;\n      &lt;div class="bk-bs-modal-footer"&gt;\n        &lt;div class="bk-dialog-buttons_box" /&gt;\n      &lt;/div&gt;\n    &lt;/div&gt;\n  &lt;/div&gt;\n&lt;/div&gt;\n')}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],266:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t("underscore"),n=t("jquery"),r=t("../common/continuum_view"),a=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="div",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l,u,h,c,p,d,f,g;for(this.$el.empty(),d=null!=this.mget("default_value"),e=n("&lt;button&gt;&lt;/button&gt;"),e.addClass("bk-bs-btn"),e.addClass("bk-bs-btn-"+this.mget("type")),e.text(this.mget("label")),i=n('&lt;span class="bk-bs-caret"&gt;&lt;/span&gt;'),d?(e.click(function(t){return function(){return t.change_input(t.mget("default_value"))}}(this)),a=n("&lt;button&gt;&lt;/button&gt;"),a.addClass("bk-bs-btn"),a.addClass("bk-bs-btn-"+this.mget("type")),a.addClass("bk-bs-dropdown-toggle"),a.attr("data-bk-bs-toggle","dropdown"),a.append(i)):(e.addClass("bk-bs-dropdown-toggle"),e.attr("data-bk-bs-toggle","dropdown"),e.append(document.createTextNode(" ")),e.append(i),a=n("")),o=n('&lt;ul class="bk-bs-dropdown-menu"&gt;&lt;/ul&gt;'),r=n('&lt;li class="bk-bs-divider"&gt;&lt;/li&gt;'),p=this.mget("menu"),l=0,c=p.length;c&gt;l;l++)u=p[l],s=null!=u?(h=u[0],g=u[1],u,t=n("&lt;a&gt;&lt;/a&gt;").text(h).data("value",g),f=this,t.click(function(t){return f.change_input(n(this).data("value"))}),n("&lt;li&gt;&lt;/li&gt;").append(t)):r,o.append(s);return this.$el.addClass("bk-bs-btn-group"),this.$el.append([e,a,o]),this},e.prototype.change_input=function(t){var e;return this.mset("value",t),this.model.save(),null!=(e=this.mget("callback"))?e.execute(this.model):void 0},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="Dropdown",e.prototype.default_view=o,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{value:null,default_value:null,label:"Dropdown",icon:null,type:"default",menu:[],disabled:!1})},e}(a),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,jquery:18,underscore:92}],267:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),n=t("../common/continuum_view"),o=t("../common/has_parent"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tag="div",e.prototype.attributes={"class":"bk-hbox"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,n,r,s,o,a,u;e=this.model.children(),l(this.views,e),o=this.views;for(r in o)h.call(o,r)&amp;&amp;(a=o[r],a.$el.detach());for(this.$el.empty(),u=this.mget("width"),null!=u&amp;&amp;this.$el.css({width:u+"px"}),i=this.mget("height"),null!=i&amp;&amp;this.$el.css({height:i+"px"}),n=0,s=e.length;s&gt;n;n++)t=e[n],this.$el.append(this.views[t.id].$el);return this},e}(n),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="HBox",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{children:[]})},e.prototype.children=function(){return this.get("children")},e}(o),e.exports={Model:r,View:s}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],268:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName="i",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e;return this.$el.empty(),this.$el.addClass("bk-fa"),this.$el.addClass("bk-fa-"+this.mget("name")),e=this.mget("size"),null!=e&amp;&amp;this.$el.css({"font-size":e+"em"}),t=this.mget("flip"),null!=t&amp;&amp;this.$el.addClass("bk-fa-flip-"+t),this.mget("spin")&amp;&amp;this.$el.addClass("bk-fa-spin"),this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="Icon",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{name:"",size:null,flip:null,spin:!1})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],269:[function(t,e,i){var n,r;r=t("../hbox"),n=t("./base"),e.exports=n("AppHBox",r)},{"../hbox":267,"./base":272}],270:[function(t,e,i){var n,r;r=t("../vbox"),n=t("./base"),e.exports=n("AppVBox",r)},{"../vbox":291,"./base":272}],271:[function(t,e,i){var n;n=t("../vboxform"),e.exports=t("./base")("AppVBoxForm",n)},{"../vboxform":292,"./base":272}],272:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t("underscore"),o=t("../../common/build_views"),n=t("../../common/continuum_view"),r=t("../../common/has_parent"),e.exports=function(t,e){var i,n;return n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),i=this.mget("app"),this.listenTo(i,"change:objects",this.render)},e}(e.View),i=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return a(i,e),i.prototype.type=t,i.prototype.default_view=n,i.prototype.children=function(){var t,e,i,n;return t=this.get("app"),n=this.get("children"),i=t.get("objects"),e=s.map(n,function(t){return function(e){return s.isString(e)?t.resolve_ref(i[e]):e}}(this))},i}(r),{Model:i,View:n}}},{"../../common/build_views":101,"../../common/continuum_view":109,"../../common/has_parent":114,underscore:92}],273:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;l=t("jquery"),n=t("underscore"),r=t("../common/continuum_view"),s=t("../common/has_parent"),u=t("./multiselecttemplate"),a=function(t){function e(){return this.render_selection=h(this.render_selection,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName="div",e.prototype.template=u,e.prototype.events={"change select":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change:value",this.render_selection),this.listenTo(this.model,"change:options",this.render),this.listenTo(this.model,"change:name",this.render),this.listenTo(this.model,"change:title",this.render)},e.prototype.render=function(){var t;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),this.render_selection(),this},e.prototype.render_selection=function(){var t;return t={},l.map(this.mget("value"),function(e){return t[e]=!0}),this.$("option").each(function(e){return function(i){return i=e.$(i),t[i.attr("value")]?i.attr("selected","selected"):void 0}}(this))},e.prototype.change_input=function(){var t;return this.mset("value",this.$("select").val(),{silent:!0}),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="MultiSelect",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{title:"",value:[],options:[]})},e}(s),e.exports={Model:o,View:a}},{"../common/continuum_view":109,"../common/has_parent":114,"./multiselecttemplate":274,jquery:18,underscore:92}],274:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){var t,e,r,s;for(i.push('&lt;label for="'),i.push(n(this.id)),i.push('"&gt; '),i.push(n(this.title)),i.push(' &lt;/label&gt;\n&lt;select multiple class="bk-widget-form-input" id="'),i.push(n(this.id)),i.push('" name="'),i.push(n(this.name)),i.push('"&gt;\n  '),s=this.options,t=0,e=s.length;e&gt;t;t++)r=s[t],i.push("\n  "),r.value===this.value?(i.push('\n  &lt;option selected="selected" value="'),i.push(n(r.value)),i.push('"&gt;'),i.push(n(r.name)),i.push("&lt;/option&gt;\n  ")):(i.push('\n  &lt;option value="'),i.push(n(r.value)),i.push('"&gt;'),i.push(n(r.name)),i.push("&lt;/option&gt; \n  ")),i.push("\n\n  ");i.push("\n&lt;/select&gt;\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],275:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t("underscore"),n=t("jquery"),r=t("../common/continuum_view"),s=t("../common/has_properties"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){return this.$el.empty(),this},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="Panel",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{title:"",child:null,closable:!1})},e}(s),e.exports={Model:o,View:a}},{"../common/continuum_view":109,"../common/has_properties":115,jquery:18,underscore:92}],276:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName="p",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){return this.mget("height")&amp;&amp;this.$el.height(this.mget("height")),this.mget("width")&amp;&amp;this.$el.width(this.mget("width")),this.$el.text(this.mget("text")),this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="Paragraph",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{text:""})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],277:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./paragraph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.tagName="pre",e.prototype.attributes={style:"overflow:scroll"},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="PreText",e.prototype.default_view=s,e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{text:"",height:400,width:400})},e}(n.Model),e.exports={Model:r,View:s}},{"./paragraph":276,underscore:92}],278:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/button"),s=t("../common/continuum_view"),o=t("../common/has_parent"),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="div",e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l,h;for(this.$el.empty(),this.$el.addClass("bk-bs-btn-group"),this.$el.attr("data-bk-bs-toggle","buttons"),l=u.uniqueId("RadioButtonGroup"),i=this.mget("active"),h=this.mget("labels"),r=s=0,a=h.length;a&gt;s;r=++s)o=h[r],t=n('&lt;input type="radio"&gt;').attr({name:l,value:""+r}),r===i&amp;&amp;t.prop("checked",!0),e=n('&lt;label class="bk-bs-btn"&gt;&lt;/label&gt;'),e.text(o).prepend(t),e.addClass("bk-bs-btn-"+this.mget("type")),r===i&amp;&amp;e.addClass("bk-bs-active"),this.$el.append(e);return this},e.prototype.change_input=function(){var t,e,i,n;
        return t=function(){var t,n,r,s;for(r=this.$("input"),s=[],e=t=0,n=r.length;n&gt;t;e=++t)i=r[e],i.checked&amp;&amp;s.push(e);return s}.call(this),this.mset("active",t[0]),this.model.save(),null!=(n=this.mget("callback"))?n.execute(this.model):void 0},e}(s),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="RadioButtonGroup",e.prototype.default_view=l,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{active:null,labels:[],type:"default",disabled:!1})},e}(o),e.exports={Model:a,View:l}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_parent":114,"bootstrap/button":293,jquery:18,underscore:92}],279:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t("underscore"),n=t("jquery"),r=t("../common/continuum_view"),s=t("../common/has_parent"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="div",e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,u,h,c;for(this.$el.empty(),h=l.uniqueId("RadioGroup"),r=this.mget("active"),c=this.mget("labels"),s=o=0,u=c.length;u&gt;o;s=++o)a=c[s],e=n('&lt;input type="radio"&gt;').attr({name:h,value:""+s}),this.mget("disabled")&amp;&amp;e.prop("disabled",!0),s===r&amp;&amp;e.prop("checked",!0),i=n("&lt;label&gt;&lt;/label&gt;").text(a).prepend(e),this.mget("inline")?(i.addClass("bk-bs-radio-inline"),this.$el.append(i)):(t=n('&lt;div class="bk-bs-radio"&gt;&lt;/div&gt;').append(i),this.$el.append(t));return this},e.prototype.change_input=function(){var t,e,i;return t=function(){var t,n,r,s;for(r=this.$("input"),s=[],e=t=0,n=r.length;n&gt;t;e=++t)i=r[e],i.checked&amp;&amp;s.push(e);return s}.call(this),this.mset("active",t[0]),this.model.save()},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="RadioGroup",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:null,labels:[],inline:!1,disabled:!1})},e}(s),e.exports={Model:o,View:a}},{"../common/continuum_view":109,"../common/has_parent":114,jquery:18,underscore:92}],280:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),l=t("../common/logging").logger,u=t("./selecttemplate"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="div",e.prototype.template=u,e.prototype.events={"change select":"change_input"},e.prototype.change_input=function(){var t,e;return e=this.$("select").val(),l.debug("selectbox: value = "+e),this.mset("value",e),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="Select",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:"",value:"",options:[]})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,"../common/logging":119,"./selecttemplate":281,underscore:92}],281:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){var t,e,r,s;for(i.push('&lt;label for="'),i.push(n(this.id)),i.push('"&gt; '),i.push(n(this.title)),i.push(' &lt;/label&gt;\n&lt;select class="bk-widget-form-input" id="'),i.push(n(this.id)),i.push('" name="'),i.push(n(this.name)),i.push('"&gt;\n  '),s=this.options,t=0,e=s.length;e&gt;t;t++)r=s[t],i.push("\n    "),"string"==typeof r?(i.push("\n      &lt;option "),i.push(n(r===this.value?i.push('selected="selected"'):void 0)),i.push(' value="'),i.push(n(r)),i.push('"&gt;'),i.push(n(r)),i.push("&lt;/option&gt;\n    ")):(i.push("\n      &lt;option "),i.push(n(r.value===this.value?i.push('selected="selected"'):void 0)),i.push(' value="'),i.push(n(r.value)),i.push('"&gt;'),i.push(n(r.name)),i.push("&lt;/option&gt;\n    ")),i.push("\n  ");i.push("\n&lt;/select&gt;\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],282:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t;return this.$el.html(""),t=this.mget("layout"),this.layout_view=new t.default_view({model:t}),this.$el.append(this.layout_view.$el),this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="SimpleApp",e.prototype.default_view=o,e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114}],283:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),l=t("../common/logging").logger,u=t("./slidertemplate"),o=function(t){function e(){return this.slide=h(this.slide,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName="div",e.prototype.template=u,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t,e,i,n;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),e=this.mget("end"),i=this.mget("start"),n=this.mget("step")||(e-i)/50,l.debug("slider render: min, max, step = ("+i+", "+e+", "+n+")"),this.$(".slider").slider({orientation:this.mget("orientation"),animate:"fast",slide:a.throttle(this.slide,200),value:this.mget("value"),min:i,max:e,step:n}),this.$("#"+this.mget("id")).val(this.$(".slider").slider("value")),this},e.prototype.slide=function(t,e){var i,n;return n=e.value,l.debug("slide value = "+n),this.$("#"+this.mget("id")).val(e.value),this.mset("value",n),this.model.save(),null!=(i=this.mget("callback"))?i.execute(this.model):void 0},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="Slider",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:"",value:.5,start:0,end:1,step:0,orientation:"horizontal"})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,"../common/logging":119,"./slidertemplate":284,underscore:92}],284:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;label for="'),i.push(n(this.id)),i.push('"&gt; '),i.push(n(this.title)),i.push(': &lt;/label&gt;\n&lt;input type="text" id="'),i.push(n(this.id)),i.push('" readonly style="border:0; color:#f6931f; font-weight:bold;"&gt;\n&lt;div class="bk-slider-'),i.push(n(this.orientation)),i.push('"&gt;\n  &lt;div class="slider " id="'),i.push(n(this.id)),i.push('"&gt;\n&lt;/div&gt;\n')}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],285:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="TableColumn",e.prototype.default_view=null,e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{field:null,title:null,width:300,formatter:null,editor:null,sortable:!0,default_sort:"ascending"})},e.prototype.toColumn=function(){return{id:s.uniqueId(),field:this.get("field"),name:this.get("title"),width:this.get("width"),formatter:this.get("formatter"),editor:this.get("editor"),sortable:this.get("sortable"),defaultSortAsc:"ascending"===this.get("default_sort")}},e}(n),e.exports={Model:r}},{"../common/has_properties":115,underscore:92}],286:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/tab"),h=t("../common/build_views"),s=t("../common/continuum_view"),o=t("../common/has_properties"),c=t("./tabs_template"),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l,p,f,g,m,_,v,y,b;f=this.views;for(a in f)d.call(f,a)&amp;&amp;(b=f[a],b.$el.detach());for(this.$el.empty(),v=this.mget("tabs"),e=this.mget("active"),r=function(){var t,e,i;for(i=[],t=0,e=v.length;e&gt;t;t++)_=v[t],i.push(_.get("child"));return i}(),h(this.views,r),s=n(c({tabs:v,active:function(t){return t===e?"bk-bs-active":""}})),y=this,s.find("&gt; li &gt; a").click(function(t){var e,i,r;return t.preventDefault(),n(this).tab("show"),e=n(this).attr("href").replace("#tab-",""),v=y.model.get("tabs"),i=u.indexOf(v,u.find(v,function(t){return t.id===e})),y.model.save("active",i),null!=(r=y.model.get("callback"))?r.execute(y.model):void 0}),t=s.children(".bk-bs-tab-pane"),g=u.zip(r,t),o=0,l=g.length;l&gt;o;o++)m=g[o],i=m[0],p=m[1],n(p).html(this.views[i.id].$el);return this.$el.append(s),this.$el.tabs,this},e}(s),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="Tabs",e.prototype.default_view=l,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{tabs:[],active:0})},e}(o),e.exports={Model:a,View:l}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_properties":115,"./tabs_template":287,"bootstrap/tab":296,jquery:18,underscore:92}],287:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){var t,e,r,s,o,a,l,u;for(i.push('&lt;ul class="bk-bs-nav bk-bs-nav-tabs"&gt;\n  '),a=this.tabs,t=e=0,s=a.length;s&gt;e;t=++e)u=a[t],i.push('\n    &lt;li class="'),i.push(n(this.active(t))),i.push('"&gt;\n      &lt;a href="#tab-'),i.push(n(u.get("id"))),i.push('"&gt;'),i.push(n(u.get("title"))),i.push("&lt;/a&gt;\n    &lt;/li&gt;\n  ");for(i.push('\n&lt;/ul&gt;\n&lt;div class="bk-bs-tab-content"&gt;\n  '),l=this.tabs,t=r=0,o=l.length;o&gt;r;t=++r)u=l[t],i.push('\n    &lt;div class="bk-bs-tab-pane '),i.push(n(this.active(t))),i.push('" id="tab-'),i.push(n(u.get("id"))),i.push('"&gt;&lt;/div&gt;\n  ');i.push("\n&lt;/div&gt;\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],288:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),n=t("../common/continuum_view"),r=t("../common/has_parent"),u=t("../common/logging").logger,h=t("./text_input_template"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName="div",e.prototype.attributes={"class":"bk-widget-form-group"},e.prototype.template=h,e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){return this.$el.html(this.template(this.model.attributes)),this},e.prototype.change_input=function(){var t,e;return e=this.$("input").val(),u.debug("widget/text_input: value = "+e),this.mset("value",e),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="TextInput",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{name:"",value:"",title:""})},e}(r),e.exports={Model:s,View:o}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,"../common/logging":119,"./text_input_template":289,underscore:92}],289:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;label for="'),i.push(n(this.id)),i.push('"&gt; '),i.push(n(this.title)),i.push(' &lt;/label&gt;\n&lt;input class="bk-widget-form-input" type="text" id="'),i.push(n(this.id)),i.push('" name="'),i.push(n(this.name)),i.push('" value="'),i.push(n(this.value)),i.push('"/&gt;\n')}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],290:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName="button",e.prototype.events={click:"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,n,r;if(t=this.mget("icon"),null!=t){build_views(this.views,[t]),n=this.views;for(e in n)u.call(n,e)&amp;&amp;(r=n[e],r.$el.detach())}return this.$el.empty(),this.$el.addClass("bk-bs-btn"),this.$el.addClass("bk-bs-btn-"+this.mget("type")),this.mget("disabled")&amp;&amp;this.$el.attr("disabled","disabled"),i=this.mget("label"),null!=t&amp;&amp;(this.$el.append(this.views[t.id].$el),i=" "+i),this.$el.append(document.createTextNode(i)),this.mget("active")&amp;&amp;this.$el.addClass("bk-bs-active"),this.$el.attr("data-bk-bs-toggle","button"),this},e.prototype.change_input=function(){var t;return this.mset("active",this.$el.hasClass("bk-bs-active")),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="Toggle",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{active:!1,label:"Toggle",icon:null,type:"default",disabled:!1})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],291:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tag="div",e.prototype.attributes={"class":"bk-vbox"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,n,r,s,o,a,u;e=this.model.children(),l(this.views,e),o=this.views;for(r in o)h.call(o,r)&amp;&amp;(a=o[r],a.$el.detach());for(this.$el.empty(),u=this.mget("width"),null!=u&amp;&amp;this.$el.css({width:u+"px"}),i=this.mget("height"),null!=i&amp;&amp;this.$el.css({height:i+"px"}),n=0,s=e.length;s&gt;n;n++)t=e[n],this.$el.append(this.views[t.id].$el);return this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="VBox",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{children:[]})},e.prototype.children=function(){return this.get("children")},e}(r),e.exports={Model:s,View:o}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],292:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="form",e.prototype.attributes={"class":"bk-widget-form",role:"form"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render()},e.prototype.render=function(){var t,e,i,n,r,s,o;e=this.model.children(),l(this.views,e),s=this.views;for(n in s)h.call(s,n)&amp;&amp;(o=s[n],o.$el.detach());for(this.$el.empty(),i=0,r=e.length;r&gt;i;i++)t=e[i],this.$el.append("&lt;br/"),this.$el.append(this.views[t.id].$el);return this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="VBoxForm",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{children:[]})},e.prototype.children=function(){return this.get("children")},e}(r),e.exports={Model:s,View:o}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],293:[function(t,e,i){var n=t("jquery"),r=function(t,e){this.$element=n(t),this.options=n.extend({},r.DEFAULTS,e),this.isLoading=!1};r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(t){var e="bk-bs-disabled",i=this.$element,r=i.is("input")?"val":"html",s=i.data();t+="Text",s.resetText||i.data("resetText",i[r]()),i[r](s[t]||this.options[t]),setTimeout(n.proxy(function(){"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e)):this.isLoading&amp;&amp;(this.isLoading=!1,i.removeClass(e).removeAttr(e))},this),0)},r.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-bk-bs-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&amp;&amp;(i.prop("checked")&amp;&amp;this.$element.hasClass("bk-bs-active")?t=!1:e.find(".bk-bs-active").removeClass("bk-bs-active")),t&amp;&amp;i.prop("checked",!this.$element.hasClass("bk-bs-active")).trigger("change")}t&amp;&amp;this.$element.toggleClass("bk-bs-active")};var s=n.fn.button;n.fn.button=function(t){return this.each(function(){var e=n(this),i=e.data("bk-bs.button"),s="object"==typeof t&amp;&amp;t;i||e.data("bk-bs.button",i=new r(this,s)),"toggle"==t?i.toggle():t&amp;&amp;i.setState(t)})},n.fn.button.Constructor=r,n.fn.button.noConflict=function(){return n.fn.button=s,this},n(document).on("click.bk-bs.button.data-api","[data-bk-bs-toggle^=button]",function(t){var e=n(t.target);e.hasClass("bk-bs-btn")||(e=e.closest(".bk-bs-btn")),e.button("toggle"),t.preventDefault()})},{jquery:18}],294:[function(t,e,i){function n(t){s(o).remove(),s(a).each(function(){var e=r(s(this)),i={relatedTarget:this};e.hasClass("bk-bs-open")&amp;&amp;(e.trigger(t=s.Event("hide.bk-bs.dropdown",i)),t.isDefaultPrevented()||e.removeClass("bk-bs-open").trigger("hidden.bk-bs.dropdown",i))})}function r(t){var e=t.attr("data-bk-bs-target");e||(e=t.attr("href"),e=e&amp;&amp;/#[A-Za-z]/.test(e)&amp;&amp;e.replace(/.*(?=#[^\s]*$)/,""));var i=e&amp;&amp;s(e);return i&amp;&amp;i.length?i:t.parent()}var s=t("jquery"),o=".bk-bs-dropdown-backdrop",a="[data-bk-bs-toggle=dropdown]",l=function(t){s(t).on("click.bk-bs.dropdown",this.toggle)};l.prototype.toggle=function(t){var e=s(this);if(!e.is(".bk-bs-disabled, :disabled")){var i=r(e),o=i.hasClass("bk-bs-open");if(n(),!o){"ontouchstart"in document.documentElement&amp;&amp;!i.closest(".bk-bs-navbar-nav").length&amp;&amp;s('&lt;div class="bk-bs-dropdown-backdrop"/&gt;').insertAfter(s(this)).on("click",n);var a={relatedTarget:this};if(i.trigger(t=s.Event("show.bk-bs.dropdown",a)),t.isDefaultPrevented())return;i.toggleClass("bk-bs-open").trigger("shown.bk-bs.dropdown",a),e.focus()}return!1}},l.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var e=s(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".bk-bs-disabled, :disabled")){var i=r(e),n=i.hasClass("bk-bs-open");if(!n||n&amp;&amp;27==t.keyCode)return 27==t.which&amp;&amp;i.find(a).focus(),e.click();var o=" li:not(.bk-bs-divider):visible a",l=i.find("[role=menu]"+o+", [role=listbox]"+o);if(l.length){var u=l.index(l.filter(":focus"));38==t.keyCode&amp;&amp;u&gt;0&amp;&amp;u--,40==t.keyCode&amp;&amp;u&lt;l.length-1&amp;&amp;u++,~u||(u=0),l.eq(u).focus()}}}};var u=s.fn.dropdown;s.fn.dropdown=function(t){return this.each(function(){var e=s(this),i=e.data("bk-bs.dropdown");i||e.data("bk-bs.dropdown",i=new l(this)),"string"==typeof t&amp;&amp;i[t].call(e)})},s.fn.dropdown.Constructor=l,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=u,this},s(document).on("click.bk-bs.dropdown.data-api",n).on("click.bk-bs.dropdown.data-api",".bk-bs-dropdown form",function(t){t.stopPropagation()}).on("click.bk-bs.dropdown.data-api",a,l.prototype.toggle).on("keydown.bk-bs.dropdown.data-api",a+", [role=menu], [role=listbox]",l.prototype.keydown)},{jquery:18}],295:[function(t,e,i){var n=t("jquery"),r=function(t,e){this.options=e,this.$element=n(t),this.$backdrop=this.isShown=null,this.options.remote&amp;&amp;this.$element.find(".bk-bs-modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bk-bs.modal")},this))};r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this[this.isShown?"hide":"show"](t)},r.prototype.show=function(t){var e=this,i=n.Event("show.bk-bs.modal",{relatedTarget:t});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bk-bs.modal",'[data-bk-bs-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var i=n.support.transition&amp;&amp;e.$element.hasClass("bk-bs-fade");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show().scrollTop(0),i&amp;&amp;e.$element[0].offsetWidth,e.$element.addClass("bk-bs-in").attr("aria-hidden",!1),e.enforceFocus();var r=n.Event("shown.bk-bs.modal",{relatedTarget:t});i?e.$element.find(".bk-bs-modal-dialog").one(n.support.transition.end,function(){e.$element.focus().trigger(r)}).emulateTransitionEnd(300):e.$element.focus().trigger(r)}))},r.prototype.hide=function(t){t&amp;&amp;t.preventDefault(),t=n.Event("hide.bk-bs.modal"),this.$element.trigger(t),this.isShown&amp;&amp;!t.isDefaultPrevented()&amp;&amp;(this.isShown=!1,this.escape(),n(document).off("focusin.bk-bs.modal"),this.$element.removeClass("bk-bs-in").attr("aria-hidden",!0).off("click.dismiss.bk-bs.modal"),n.support.transition&amp;&amp;this.$element.hasClass("bk-bs-fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},r.prototype.enforceFocus=function(){n(document).off("focusin.bk-bs.modal").on("focusin.bk-bs.modal",n.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},r.prototype.escape=function(){this.isShown&amp;&amp;this.options.keyboard?this.$element.on("keyup.dismiss.bk-bs.modal",n.proxy(function(t){27==t.which&amp;&amp;this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bk-bs.modal")},r.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden.bk-bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&amp;&amp;this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var e=this.$element.hasClass("bk-bs-fade")?"bk-bs-fade":"";if(this.isShown&amp;&amp;this.options.backdrop){var i=n.support.transition&amp;&amp;e;if(this.$backdrop=n('&lt;div class="bk-bs-modal-backdrop '+e+'" /&gt;').appendTo(document.body),this.$element.on("click.dismiss.bk-bs.modal",n.proxy(function(t){t.target===t.currentTarget&amp;&amp;("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&amp;&amp;this.$backdrop[0].offsetWidth,this.$backdrop.addClass("bk-bs-in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&amp;&amp;this.$backdrop?(this.$backdrop.removeClass("bk-bs-in"),n.support.transition&amp;&amp;this.$element.hasClass("bk-bs-fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&amp;&amp;t()};var s=n.fn.modal;n.fn.modal=function(t,e){return this.each(function(){var i=n(this),s=i.data("bk-bs.modal"),o=n.extend({},r.DEFAULTS,i.data(),"object"==typeof t&amp;&amp;t);s||i.data("bk-bs.modal",s=new r(this,o)),"string"==typeof t?s[t](e):o.show&amp;&amp;s.show(e)})},n.fn.modal.Constructor=r,n.fn.modal.noConflict=function(){return n.fn.modal=s,this},n(document).on("click.bk-bs.modal.data-api",'[data-bk-bs-toggle="modal"]',function(t){var e=n(this),i=e.attr("href"),r=n(e.attr("data-bk-bs-target")||i&amp;&amp;i.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("bk-bs.modal")?"toggle":n.extend({remote:!/#/.test(i)&amp;&amp;i},r.data(),e.data());e.is("a")&amp;&amp;t.preventDefault(),r.modal(s,this).one("hide",function(){e.is(":visible")&amp;&amp;e.focus()})}),n(document).on("show.bk-bs.modal",".bk-bs-modal",function(){n(document.body).addClass("bk-bs-modal-open")}).on("hidden.bk-bs.modal",".bk-bs-modal",function(){n(document.body).removeClass("bk-bs-modal-open")})},{jquery:18}],296:[function(t,e,i){var n=t("jquery"),r=function(t){this.element=n(t)};r.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.bk-bs-dropdown-menu)"),i=t.data("bk-bs-target");if(i||(i=t.attr("href"),i=i&amp;&amp;i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("bk-bs-active")){var r=e.find(".bk-bs-active:last a")[0],s=n.Event("show.bk-bs.tab",{relatedTarget:r});if(t.trigger(s),!s.isDefaultPrevented()){var o=n(i);this.activate(t.parent("li"),e),this.activate(o,o.parent(),function(){t.trigger({type:"shown.bk-bs.tab",relatedTarget:r})})}}},r.prototype.activate=function(t,e,i){function r(){s.removeClass("bk-bs-active").find("&gt; .bk-bs-dropdown-menu &gt; .bk-bs-active").removeClass("bk-bs-active"),t.addClass("bk-bs-active"),o?(t[0].offsetWidth,t.addClass("bk-bs-in")):t.removeClass("bk-bs-fade"),t.parent(".bk-bs-dropdown-menu")&amp;&amp;t.closest("li.bk-bs-dropdown").addClass("bk-bs-active"),i&amp;&amp;i()}var s=e.find("&gt; .bk-bs-active"),o=i&amp;&amp;n.support.transition&amp;&amp;s.hasClass("bk-bs-fade");o?s.one(n.support.transition.end,r).emulateTransitionEnd(150):r(),s.removeClass("bk-bs-in")};var s=n.fn.tab;n.fn.tab=function(t){return this.each(function(){var e=n(this),i=e.data("bk-bs.tab");i||e.data("bk-bs.tab",i=new r(this)),"string"==typeof t&amp;&amp;i[t]()})},n.fn.tab.Constructor=r,n.fn.tab.noConflict=function(){return n.fn.tab=s,this},n(document).on("click.bk-bs.tab.data-api",'[data-bk-bs-toggle="tab"], [data-bk-bs-toggle="pill"]',function(t){t.preventDefault(),n(this).tab("show")})},{jquery:18}],297:[function(t,e,i){var n,r,s;!function(){"use strict";n=function(t,e,i,n,r,s){function o(t,e){var i,n=50,r=0;for(i=1;n&gt;=i;i++)r+=e(Math.cos(m*(i-.5)/n))*Math.cos(m*t*(i-.5)/n);return 2*r/n}function a(t,e){var i,n,r,s,a=[],l=[],u=[[],[]];for(i=0;t+1&gt;i;i++)u[0][i]=0,u[1][i]=0;for(u[0][0]=1,u[1][1]=1,r=1;t+1&gt;r;r++){for(u[r+1]=[0],n=0;n&lt;u[r].length-1;n++)u[r+1][n+1]=2*u[r][n];for(n=0;n&lt;u[r-1].length;n++)u[r+1][n]-=u[r-1][n]}for(r=0;t&gt;=r;r++)l[r]=o(r,e),a[r]=0;for(r=0;t&gt;=r;r++)for(s=0;t&gt;=s;s++)a[s]+=l[r]*u[r][s];return a[0]-=o(0,e)/2,a}function l(t){var e=2*t-1,i=e*(p-d)/2+(d+p)/2;return y*(Math.cos(i)+i*Math.sin(i))}function u(t){var e=2*t-1,i=e*(p-d)/2+(d+p)/2;return y*(Math.sin(i)-i*Math.cos(i))}function h(t,e){var i,n=1;for(i=t-e+1;t&gt;=i;i++)n*=i;for(i=1;e&gt;=i;i++)n/=i;return n}function c(t,e){var i,n,r=a(w,e);for(i=0,n=0;t&gt;=n;n++)i+=h(t,n)*r[n]/h(w,n);return i}var p,d,f,g,m=Math.PI,_=t*e/2,v=i||20,y=_*Math.cos(v*m/180),b=_+t,w=n||3,x=Math.sqrt(b*b-y*y)/y,k=s||1,M=.01,C=[];for(void 0!==r&amp;&amp;k&gt;r&amp;&amp;(M=r),p=Math.sqrt(k)*x,d=Math.sqrt(M)*x,f=0;w&gt;=f;f++)g={},g.x=c(f,l),g.y=c(f,u),C.push(g);return C},r=function(t,e,i){function r(t,e){return Math.sqrt(e*e-t*t)/t-Math.acos(t/e)}function s(t,e){var i=Math.sin(e),n=Math.cos(e);return{x:t.x*n-t.y*i,y:t.x*i+t.y*n}}function o(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}}var a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k=t,M=e,C=i||20,D=k,T=1.25*k,S=T-D,A=M*k/2,P=A*Math.cos(C*Math.PI/180),E=A+D,I=A-T,N=1.5*S,R=2*Math.PI/M,z=r(P,A),j=z,O=Math.atan(N/(N+I));for(a=Math.sqrt((I+N)*(I+N)-N*N),a&gt;P&amp;&amp;(a=I+S),a&gt;P&amp;&amp;(j-=r(P,a)),l=1,u=.01,a&gt;P&amp;&amp;(u=(a*a-P*P)/(E*E-P*P)),h=u+(l-u)/4,c=n(k,M,C,3,u,h),p=n(k,M,C,3,h,l),d=c.concat(p.slice(1)),f=[],w=0;w&lt;d.length;w++)b=s(d[w],-z-R/4),d[w]=b,f[w]={x:b.x,y:-b.y};return g=o(a,-R/4-j),m={x:g.x,y:-g.y},v=o(I,R/4+j+O),y=o(I,3*R/4-j-O),_=s(g,R),x=[],x.push("M",g.x,g.y),P&gt;a&amp;&amp;x.push("L",d[0].x,d[0].y),x.push("C",d[1].x,d[1].y,d[2].x,d[2].y,d[3].x,d[3].y,d[4].x,d[4].y,d[5].x,d[5].y,d[6].x,d[6].y),x.push("A",E,E,0,0,0,f[6].x,f[6].y),x.push("C",f[5].x,f[5].y,f[4].x,f[4].y,f[3].x,f[3].y,f[2].x,f[2].y,f[1].x,f[1].y,f[0].x,f[0].y),P&gt;a&amp;&amp;x.push("L",m.x,m.y),y.y&gt;v.y&amp;&amp;(x.push("A",N,N,0,0,1,v.x,v.y),x.push("A",I,I,0,0,0,y.x,y.y)),x.push("A",N,N,0,0,1,_.x,_.y),x},s=function(t,e,i){function r(t,e){return Math.sqrt(e*e-t*t)/t-Math.acos(t/e)}function s(t,e){var i=Math.sin(e),n=Math.cos(e);return{x:t.x*n-t.y*i,y:t.x*i+t.y*n}}function o(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}}var a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S=t,A=e,P=i||20,E=.6*S,I=1.25*S,N=A*S/2,R=N*Math.cos(P*Math.PI/180),z=N-E,j=N+I,O=.25*S,F=j-O,L=1.5*O;for(a=2*Math.PI/A,l=r(R,N),u=l,z&gt;R&amp;&amp;(u-=r(R,z)),h=r(R,F)-l,c=1.414*O/F,p=1,d=.01,z&gt;R&amp;&amp;(d=(z*z-R*R)/(F*F-R*R)),f=d+(p-d)/4,g=n(S,A,P,3,d,f),m=n(S,A,P,3,f,p),v=g.concat(m.slice(1)),_=[],b=0;b&lt;v.length;b++)y=s(v[b],a/4-l),v[b]=y,_[b]={x:y.x,y:-y.y};return x={x:_[6].x,y:_[6].y},M=o(z,-a/4+u),C={x:M.x,y:-M.y},D=o(j,a/4+h+c),
        T=o(j,3*a/4-h-c),k=s(x,a),w=[],w.push("M",_[6].x,_[6].y),w.push("C",_[5].x,_[5].y,_[4].x,_[4].y,_[3].x,_[3].y,_[2].x,_[2].y,_[1].x,_[1].y,_[0].x,_[0].y),R&gt;z&amp;&amp;w.push("L",M.x,M.y),w.push("A",z,z,0,0,0,C.x,C.y),R&gt;z&amp;&amp;w.push("L",v[0].x,v[0].y),w.push("C",v[1].x,v[1].y,v[2].x,v[2].y,v[3].x,v[3].y,v[4].x,v[4].y,v[5].x,v[5].y,v[6].x,v[6].y),D.y&lt;T.y&amp;&amp;(w.push("A",L,L,0,0,0,D.x,D.y),w.push("A",j,j,0,0,0,T.x,T.y)),w.push("A",L,L,0,0,0,k.x,k.y),w}}(),e.exports={create_gear_tooth:r,create_internal_gear_tooth:s}},{}],298:[function(t,e,i){!function(t,n){"function"==typeof define&amp;&amp;define.amd?define([],n):"undefined"!=typeof i?(e.exports=n(),"undefined"==typeof window&amp;&amp;(t.gloo2=e.exports)):t.gloo2=n()}(this,function(){var t,e,i,n,r,s,o;return o=function(t,e){var i,n,r,s,o,a,l,u;for(e=void 0===e?"periodic check":e,l=[];;){if(o=t.getError(),o==t.NO_ERROR||l&amp;&amp;o==l[l.length-1])break;(l.append||l.push).apply(l,[o])}if(l.length){for(u="",i=l,"object"!=typeof i||Array.isArray(i)||(i=Object.keys(i)),r=i.length,n=0;r&gt;n;n+=1)s=i[n],u+=s;throw a=new Error("RuntimeError:"+("OpenGL got errors ("+e+"): "+u)),a.name="RuntimeError",a}},e=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},e.prototype._base_class=Object,e.prototype.__init__=function(t){if(this._gl=t,this._handle=null,this._create(),null===this._handle)throw"AssertionError: this._handle !== null"},e.prototype._create=function(){var t;throw t=new Error("NotImplementedError:"),t.name="NotImplementedError",t},n=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},n.prototype=Object.create(e.prototype),n.prototype._base_class=e.prototype,n.prototype.UTYPEMAP={"float":"uniform1fv",vec2:"uniform2fv",vec3:"uniform3fv",vec4:"uniform4fv","int":"uniform1iv",ivec2:"uniform2iv",ivec3:"uniform3iv",ivec4:"uniform4iv",bool:"uniform1iv",bvec2:"uniform2iv",bvec3:"uniform3iv",bvec4:"uniform4iv",mat2:"uniformMatrix2fv",mat3:"uniformMatrix3fv",mat4:"uniformMatrix4fv",sampler1D:"uniform1i",sampler2D:"uniform1i",sampler3D:"uniform1i"},n.prototype.ATYPEMAP={"float":"vertexAttrib1f",vec2:"vertexAttrib2f",vec3:"vertexAttrib3f",vec4:"vertexAttrib4f"},n.prototype.ATYPEINFO={"float":[1,5126],vec2:[2,5126],vec3:[3,5126],vec4:[4,5126]},n.prototype._create=function(){this._handle=this._gl.createProgram(),this._handles=[],this._unset_variables=[],this._validated=!1,this._samplers={},this._attributes={},this._known_invalid=[]},n.prototype["delete"]=function(){this._gl.deleteProgram(this._handle)},n.prototype.activate=function(){this._gl.useProgram(this._handle)},n.prototype.deactivate=function(){this._gl.useProgram(0)},n.prototype.set_shaders=function(t,e){var i,n,r,s,o,a,l,u,h,c,p,d,f;for(l=this._gl,this._linked=!1,f=l.createShader(l.VERTEX_SHADER),a=l.createShader(l.FRAGMENT_SHADER),p=[[t,f,"vertex"],[e,a,"fragment"]],h=0;2&gt;h;h+=1)if(n=p[h],i=n[0],u=n[1],d=n[2],l.shaderSource(u,i),l.compileShader(u),c=l.getShaderParameter(u,l.COMPILE_STATUS),!c)throw o=l.getShaderInfoLog(u),s=new Error("RuntimeError:"+("errors in "+d+" shader:\n"+o)),s.name="RuntimeError",s;if(l.attachShader(this._handle,f),l.attachShader(this._handle,a),l.linkProgram(this._handle),!l.getProgramParameter(this._handle,l.LINK_STATUS))throw r=new Error("RuntimeError:Program link error:\n"+l.getProgramInfoLog(this._handle)),r.name="RuntimeError",r;l.detachShader(this._handle,f),l.detachShader(this._handle,a),l.deleteShader(f),l.deleteShader(a),this._unset_variables=this._get_active_attributes_and_uniforms(),this._handles={},this._known_invalid=[],this._linked=!0},n.prototype._get_active_attributes_and_uniforms=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M;for(m=this._gl,w=new RegExp("(\\w+)\\s*(\\[(\\d+)\\])\\s*"),r=m.getProgramParameter(this._handle,m.ACTIVE_UNIFORMS),e=m.getProgramParameter(this._handle,m.ACTIVE_ATTRIBUTES),t=[],x=[],c=[[t,e,m.getActiveAttrib],[x,r,m.getActiveUniform]],"object"!=typeof c||Array.isArray(c)||(c=Object.keys(c)),d=c.length,p=0;d&gt;p;p+=1)for(M=c[p],h=M,i=h[0],n=h[1],g=h[2],_=0;n&gt;_;_+=1)if(v=g.call(m,this._handle,_),b=v.name,y=b.match(w))for(b=y.group(0),_=0;_&lt;v.size;_+=1)(i.append||i.push).apply(i,[[""+b+"["+_+"]",v.type]]);else(i.append||i.push).apply(i,[[b,v.type]]);for(M=[],f=t,"object"!=typeof f||Array.isArray(f)||(f=Object.keys(f)),o=f.length,s=0;o&gt;s;s+=1)k=f[s],(M.append||M.push).apply(M,[k[0]]);for(a=x,"object"!=typeof a||Array.isArray(a)||(a=Object.keys(a)),u=a.length,l=0;u&gt;l;l+=1)k=a[l],(M.append||M.push).apply(M,[k[0]]);return M},n.prototype.set_texture=function(t,e){var i,n,r,s,o,a,l;if(!this._linked)throw o=new Error("RuntimeError:Cannot set uniform when program has no code"),o.name="RuntimeError",o;if(a="function"==typeof(i=this._handles).get?i.get(t,-1):i[t]||-1,0&gt;a){if(((n=this._known_invalid).indexOf?n:Object.keys(n)).indexOf(t)&gt;=0)return;if(a=this._gl.getUniformLocation(this._handle,t),((r=this._unset_variables).indexOf?r:Object.keys(r)).indexOf(t)&gt;=0&amp;&amp;(this._unset_variables.remove||function(t){this.splice(this.indexOf(t),1)}).apply(this._unset_variables,[t]),this._handles[t]=a,0&gt;a)return(this._known_invalid.append||this._known_invalid.push).apply(this._known_invalid,[t]),void console.log("Variable "+t+" is not an active uniform")}this.activate(),l=Object.keys(this._samplers).length,((s=this._samplers).indexOf?s:Object.keys(s)).indexOf(t)&gt;=0&amp;&amp;(l=this._samplers[t][this._samplers[t].length-1]),this._samplers[t]=[e._target,e._handle,l],this._gl.uniform1i(a,l)},n.prototype.set_uniform=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d;if(!this._linked)throw u=new Error("RuntimeError:Cannot set uniform when program has no code"),u.name="RuntimeError",u;if(c="function"==typeof(r=this._handles).get?r.get(t,-1):r[t]||-1,n=1,0&gt;c){if(((s=this._known_invalid).indexOf?s:Object.keys(s)).indexOf(t)&gt;=0)return;if(c=this._gl.getUniformLocation(this._handle,t),((o=this._unset_variables).indexOf?o:Object.keys(o)).indexOf(t)&gt;=0&amp;&amp;(this._unset_variables.remove||function(t){this.splice(this.indexOf(t),1)}).apply(this._unset_variables,[t]),0!=e.indexOf("mat")&amp;&amp;(n=Math.floor(i.length/this.ATYPEINFO[e][0])),n&gt;1)for(p=0;n&gt;p;p+=1)((a=this._unset_variables).indexOf?a:Object.keys(a)).indexOf(""+t+"["+p+"]")&gt;=0&amp;&amp;(d=""+t+"["+p+"]",((l=this._unset_variables).indexOf?l:Object.keys(l)).indexOf(d)&gt;=0&amp;&amp;(this._unset_variables.remove||function(t){this.splice(this.indexOf(t),1)}).apply(this._unset_variables,[d]));if(this._handles[t]=c,0&gt;c)return this._known_invalid.add(t),void logger.info("Variable "+t+" is not an active uniform")}h=this.UTYPEMAP[e],this.activate(),this._gl[h](c,i)},n.prototype.set_attribute=function(t,e,i,n){var r,s,o,a,l,u,h,c,p,d,f,g,m,_;if(n=void 0===n?null:n,!this._linked)throw h=new Error("RuntimeError:Cannot set attribute when program has no code"),h.name="RuntimeError",h;if(d="function"==typeof(s=this._handles).get?s.get(t,-1):s[t]||-1,0&gt;d){if(((o=this._known_invalid).indexOf?o:Object.keys(o)).indexOf(t)&gt;=0)return;if(d=this._gl.getAttribLocation(this._handle,t),((a=this._unset_variables).indexOf?a:Object.keys(a)).indexOf(t)&gt;=0&amp;&amp;(this._unset_variables.remove||function(t){this.splice(this.indexOf(t),1)}).apply(this._unset_variables,[t]),this._handles[t]=d,0&gt;d){if((this._known_invalid.append||this._known_invalid.push).apply(this._known_invalid,[t]),i&amp;&amp;0!=i[0]&amp;&amp;i[2]&gt;0)return;return void console.log("Variable "+t+" is not an active attribute")}}this.activate(),null===i?(c=this.ATYPEMAP[e],this._attributes[t]=[0,d,c,n]):(l=i,_=l[0],m=l[1],f=l[2],u=this.ATYPEINFO[e],g=u[0],p=u[1],c="vertexAttribPointer",r=[g,p,this._gl.FALSE,m,f],this._attributes[t]=[_._handle,d,c,r])},n.prototype._pre_draw=function(){var t,e,i,n,r,s,o,a,l,u,h,c;this.activate(),n=this._samplers;for(c in n)n.hasOwnProperty(c)&amp;&amp;(c=n[c],i=c,l=i[0],a=i[1],u=i[2],this._gl.activeTexture(this._gl.TEXTURE0+u),this._gl.bindTexture(l,a));s=this._attributes;for(c in s)s.hasOwnProperty(c)&amp;&amp;(c=s[c],r=c,h=r[0],e=r[1],o=r[2],t=r[3],h?(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,h),this._gl.enableVertexAttribArray(e),this._gl[o].apply(this._gl,[e].concat(t))):(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,null),this._gl.disableVertexAttribArray(e),this._gl[o].apply(this._gl,[e].concat(t))));this._validated||(this._validated=!0,this._validate())},n.prototype._validate=function(){var t;if(this._unset_variables.length&amp;&amp;console.log("Program has unset variables: "+this._unset_variables),this._gl.validateProgram(this._handle),!this._gl.getProgramParameter(this._handle,this._gl.VALIDATE_STATUS))throw console.log(this._gl.getProgramInfoLog(this._handle)),t=new Error("RuntimeError:Program validation error"),t.name="RuntimeError",t},n.prototype.draw=function(t,e){var n,r,s,a,l,u;if(!this._linked)throw a=new Error("RuntimeError:Cannot draw program if code has not been set"),a.name="RuntimeError",a;o(this._gl,"before draw"),e instanceof i?(this._pre_draw(),e.activate(),n=e._buffer_size/2,u=this._gl.UNSIGNED_SHORT,this._gl.drawElements(t,n,u,0),e.deactivate()):(r=e,l=r[0],n=r[1],n&amp;&amp;(this._pre_draw(),this._gl.drawArrays(t,l,n))),s=this._gl.getError(),o(this._gl,"after draw")},t=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},t.prototype=Object.create(e.prototype),t.prototype._base_class=e.prototype,t.prototype._target=null,t.prototype._usage=35048,t.prototype._create=function(){this._handle=this._gl.createBuffer(),this._buffer_size=0},t.prototype["delete"]=function(){this._gl.deleteBuffer(this._handle)},t.prototype.activate=function(){this._gl.bindBuffer(this._target,this._handle)},t.prototype.deactivate=function(){this._gl.bindBuffer(this._target,null)},t.prototype.set_size=function(t){t!=this._buffer_size&amp;&amp;(this.activate(),this._gl.bufferData(this._target,t,this._usage),this._buffer_size=t)},t.prototype.set_data=function(t,e){var i;this.activate(),i=e.length*e.BYTES_PER_ELEMENT,this._gl.bufferSubData(this._target,t,e)},s=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},s.prototype=Object.create(t.prototype),s.prototype._base_class=t.prototype,s.prototype._target=34962,i=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},i.prototype=Object.create(t.prototype),i.prototype._base_class=t.prototype,i.prototype._target=34963,r=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},r.prototype=Object.create(e.prototype),r.prototype._base_class=e.prototype,r.prototype._target=3553,r.prototype._types={Int8Array:5120,Uint8Array:5121,Int16Array:5122,Uint16Array:5123,Int32Array:5124,Int32Array:5125,Float32Array:5126},r.prototype._create=function(){this._handle=this._gl.createTexture(),this._shape_format=null},r.prototype["delete"]=function(){this._gl.deleteTexture(this._handle)},r.prototype.activate=function(){this._gl.bindTexture(this._target,this._handle)},r.prototype.deactivate=function(){this._gl.bindTexture(this._target,0)},r.prototype._get_alignment=function(t){var e,i,n,r,s;for(i=[4,8,2,1],n=i,"object"!=typeof n||Array.isArray(n)||(n=Object.keys(n)),s=n.length,r=0;s&gt;r;r+=1)if(e=n[r],t%e==0)return e},r.prototype.set_wrapping=function(t,e){this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_S,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_T,e)},r.prototype.set_interpolation=function(t,e){this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_MIN_FILTER,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_MAG_FILTER,e)},r.prototype.set_size=function(t,e){var i,n,r;i=t,n=i[0],r=i[1],[n,r,e]!=this._shape_format&amp;&amp;(this._shape_format=[n,r,e],this.activate(),this._gl.texImage2D(this._target,0,e,r,n,0,e,this._gl.UNSIGNED_BYTE,null))},r.prototype.set_data=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d;if(this.activate(),l=this._shape_format[2],r=e,h=r[0],c=r[1],s=t,d=s[0],p=s[1],u="function"==typeof(o=this._types).get?o.get(i.constructor.name,null):o[i.constructor.name]||null,null===u)throw a=new Error("ValueError:"+("Type "+i.constructor.name+" not allowed for texture")),a.name="ValueError",a;n=this._get_alignment(e[e.length-2]*e[e.length-1]),4!=n&amp;&amp;this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,n),this._gl.texSubImage2D(this._target,0,p,d,c,h,l,u,i),4!=n&amp;&amp;this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,4)},{Buffer:t,GlooObject:e,IndexBuffer:i,Program:n,Texture2D:r,VertexBuffer:s,check_error:o}})},{}],299:[function(t,e,i){var n=t("jquery");t("./jQRangeSlider"),e.exports=n.widget("ui.dateRangeSlider",n.ui.rangeSlider,{options:{bounds:{min:new Date(2010,0,1).valueOf(),max:new Date(2012,0,1).valueOf()},defaultValues:{min:new Date(2010,1,11).valueOf(),max:new Date(2011,1,11).valueOf()}},_create:function(){n.ui.rangeSlider.prototype._create.apply(this),this.element.addClass("bk-ui-dateRangeSlider")},destroy:function(){this.element.removeClass("bk-ui-dateRangeSlider"),n.ui.rangeSlider.prototype.destroy.apply(this)},_setDefaultValues:function(){this._values={min:this.options.defaultValues.min.valueOf(),max:this.options.defaultValues.max.valueOf()}},_setRulerParameters:function(){this.ruler.ruler({min:new Date(this.options.bounds.min),max:new Date(this.options.bounds.max),scales:this.options.scales})},_setOption:function(t,e){("defaultValues"===t||"bounds"===t)&amp;&amp;"undefined"!=typeof e&amp;&amp;null!==e&amp;&amp;this._isValidDate(e.min)&amp;&amp;this._isValidDate(e.max)?n.ui.rangeSlider.prototype._setOption.apply(this,[t,{min:e.min.valueOf(),max:e.max.valueOf()}]):n.ui.rangeSlider.prototype._setOption.apply(this,this._toArray(arguments))},_handleType:function(){return"dateRangeSliderHandle"},option:function(t){if("bounds"===t||"defaultValues"===t){var e=n.ui.rangeSlider.prototype.option.apply(this,arguments);return{min:new Date(e.min),max:new Date(e.max)}}return n.ui.rangeSlider.prototype.option.apply(this,this._toArray(arguments))},_defaultFormatter:function(t){var e=t.getMonth()+1,i=t.getDate();return""+t.getFullYear()+"-"+(10&gt;e?"0"+e:e)+"-"+(10&gt;i?"0"+i:i)},_getFormatter:function(){var t=this.options.formatter;return(this.options.formatter===!1||null===this.options.formatter)&amp;&amp;(t=this._defaultFormatter),function(t){return function(e){return t(new Date(e))}}(t)},values:function(t,e){var i=null;return i=this._isValidDate(t)&amp;&amp;this._isValidDate(e)?n.ui.rangeSlider.prototype.values.apply(this,[t.valueOf(),e.valueOf()]):n.ui.rangeSlider.prototype.values.apply(this,this._toArray(arguments)),{min:new Date(i.min),max:new Date(i.max)}},min:function(t){return this._isValidDate(t)?new Date(n.ui.rangeSlider.prototype.min.apply(this,[t.valueOf()])):new Date(n.ui.rangeSlider.prototype.min.apply(this))},max:function(t){return this._isValidDate(t)?new Date(n.ui.rangeSlider.prototype.max.apply(this,[t.valueOf()])):new Date(n.ui.rangeSlider.prototype.max.apply(this))},bounds:function(t,e){var i;return i=this._isValidDate(t)&amp;&amp;this._isValidDate(e)?n.ui.rangeSlider.prototype.bounds.apply(this,[t.valueOf(),e.valueOf()]):n.ui.rangeSlider.prototype.bounds.apply(this,this._toArray(arguments)),{min:new Date(i.min),max:new Date(i.max)}},_isValidDate:function(t){return"undefined"!=typeof t&amp;&amp;t instanceof Date},_toArray:function(t){return Array.prototype.slice.call(t)}})},{"./jQRangeSlider":300,jquery:18}],300:[function(t,e,i){var n=t("jquery");t("jquery-ui/core"),t("jquery-ui/widget"),t("jquery-ui/mouse"),t("jquery-mousewheel"),e.exports=n.widget("ui.rangeSlider",{options:{bounds:{min:0,max:100},defaultValues:{min:20,max:50},wheelMode:null,wheelSpeed:4,arrows:!0,valueLabels:"show",formatter:null,durationIn:0,durationOut:400,delayOut:200,range:{min:!1,max:!1},step:!1,scales:!1,enabled:!0,symmetricPositionning:!1},_values:null,_valuesChanged:!1,_initialized:!1,bar:null,leftHandle:null,rightHandle:null,innerBar:null,container:null,arrows:null,labels:null,changing:{min:!1,max:!1},changed:{min:!1,max:!1},ruler:null,_create:function(){this._setDefaultValues(),this.labels={left:null,right:null,leftDisplayed:!0,rightDisplayed:!0},this.arrows={left:null,right:null},this.changing={min:!1,max:!1},this.changed={min:!1,max:!1},this._createElements(),this._bindResize(),setTimeout(n.proxy(this.resize,this),1),setTimeout(n.proxy(this._initValues,this),1)},_setDefaultValues:function(){this._values={min:this.options.defaultValues.min,max:this.options.defaultValues.max}},_bindResize:function(){var t=this;this._resizeProxy=function(e){t.resize(e)},n(window).resize(this._resizeProxy)},_initWidth:function(){this.container.css("width",this.element.width()-this.container.outerWidth(!0)+this.container.width()),this.innerBar.css("width",this.container.width()-this.innerBar.outerWidth(!0)+this.innerBar.width())},_initValues:function(){this._initialized=!0,this.values(this._values.min,this._values.max)},_setOption:function(t,e){this._setWheelOption(t,e),this._setArrowsOption(t,e),this._setLabelsOption(t,e),this._setLabelsDurations(t,e),this._setFormatterOption(t,e),this._setBoundsOption(t,e),this._setRangeOption(t,e),this._setStepOption(t,e),this._setScalesOption(t,e),this._setEnabledOption(t,e),this._setPositionningOption(t,e)},_validProperty:function(t,e,i){return null===t||"undefined"==typeof t[e]?i:t[e]},_setStepOption:function(t,e){"step"===t&amp;&amp;(this.options.step=e,this._leftHandle("option","step",e),this._rightHandle("option","step",e),this._changed(!0))},_setScalesOption:function(t,e){"scales"===t&amp;&amp;(e===!1||null===e?(this.options.scales=!1,this._destroyRuler()):e instanceof Array&amp;&amp;(this.options.scales=e,this._updateRuler()))},_setRangeOption:function(t,e){"range"===t&amp;&amp;(this._bar("option","range",e),this.options.range=this._bar("option","range"),this._changed(!0))},_setBoundsOption:function(t,e){"bounds"===t&amp;&amp;"undefined"!=typeof e.min&amp;&amp;"undefined"!=typeof e.max&amp;&amp;this.bounds(e.min,e.max)},_setWheelOption:function(t,e){("wheelMode"===t||"wheelSpeed"===t)&amp;&amp;(this._bar("option",t,e),this.options[t]=this._bar("option",t))},_setLabelsOption:function(t,e){if("valueLabels"===t){if("hide"!==e&amp;&amp;"show"!==e&amp;&amp;"change"!==e)return;this.options.valueLabels=e,"hide"!==e?(this._createLabels(),this._leftLabel("update"),this._rightLabel("update")):this._destroyLabels()}},_setFormatterOption:function(t,e){"formatter"===t&amp;&amp;null!==e&amp;&amp;"function"==typeof e&amp;&amp;"hide"!==this.options.valueLabels&amp;&amp;(this._leftLabel("option","formatter",e),this.options.formatter=this._rightLabel("option","formatter",e))},_setArrowsOption:function(t,e){"arrows"!==t||e!==!0&amp;&amp;e!==!1||e===this.options.arrows||(e===!0?(this.element.removeClass("bk-ui-rangeSlider-noArrow").addClass("bk-ui-rangeSlider-withArrows"),this.arrows.left.css("display","block"),this.arrows.right.css("display","block"),this.options.arrows=!0):e===!1&amp;&amp;(this.element.addClass("bk-ui-rangeSlider-noArrow").removeClass("bk-ui-rangeSlider-withArrows"),this.arrows.left.css("display","none"),this.arrows.right.css("display","none"),this.options.arrows=!1),this._initWidth())},_setLabelsDurations:function(t,e){if("durationIn"===t||"durationOut"===t||"delayOut"===t){if(parseInt(e,10)!==e)return;null!==this.labels.left&amp;&amp;this._leftLabel("option",t,e),null!==this.labels.right&amp;&amp;this._rightLabel("option",t,e),this.options[t]=e}},_setEnabledOption:function(t,e){"enabled"===t&amp;&amp;this.toggle(e)},_setPositionningOption:function(t,e){"symmetricPositionning"===t&amp;&amp;(this._rightHandle("option",t,e),this.options[t]=this._leftHandle("option",t,e))},_createElements:function(){"absolute"!==this.element.css("position")&amp;&amp;this.element.css("position","relative"),this.element.addClass("bk-ui-rangeSlider"),this.container=n("&lt;div class='bk-ui-rangeSlider-container' /&gt;").css("position","absolute").appendTo(this.element),this.innerBar=n("&lt;div class='bk-ui-rangeSlider-innerBar' /&gt;").css("position","absolute").css("top",0).css("left",0),this._createHandles(),this._createBar(),this.container.prepend(this.innerBar),this._createArrows(),"hide"!==this.options.valueLabels?this._createLabels():this._destroyLabels(),this._updateRuler(),this.options.enabled||this._toggle(this.options.enabled)},_createHandle:function(t){return n("&lt;div /&gt;")[this._handleType()](t).bind("sliderDrag",n.proxy(this._changing,this)).bind("stop",n.proxy(this._changed,this))},_createHandles:function(){this.leftHandle=this._createHandle({isLeft:!0,bounds:this.options.bounds,value:this._values.min,step:this.options.step,symmetricPositionning:this.options.symmetricPositionning}).appendTo(this.container),this.rightHandle=this._createHandle({isLeft:!1,bounds:this.options.bounds,value:this._values.max,step:this.options.step,symmetricPositionning:this.options.symmetricPositionning}).appendTo(this.container)},_createBar:function(){this.bar=n("&lt;div /&gt;").prependTo(this.container).bind("sliderDrag scroll zoom",n.proxy(this._changing,this)).bind("stop",n.proxy(this._changed,this)),this._bar({leftHandle:this.leftHandle,rightHandle:this.rightHandle,values:{min:this._values.min,max:this._values.max},type:this._handleType(),range:this.options.range,wheelMode:this.options.wheelMode,wheelSpeed:this.options.wheelSpeed}),this.options.range=this._bar("option","range"),this.options.wheelMode=this._bar("option","wheelMode"),this.options.wheelSpeed=this._bar("option","wheelSpeed")},_createArrows:function(){this.arrows.left=this._createArrow("left"),this.arrows.right=this._createArrow("right"),this.options.arrows?this.element.addClass("bk-ui-rangeSlider-withArrows"):(this.arrows.left.css("display","none"),this.arrows.right.css("display","none"),this.element.addClass("bk-ui-rangeSlider-noArrow"))},_createArrow:function(t){var e,i=n("&lt;div class='bk-ui-rangeSlider-arrow' /&gt;").append("&lt;div class='bk-ui-rangeSlider-arrow-inner' /&gt;").addClass("bk-ui-rangeSlider-"+t+"Arrow").css("position","absolute").css(t,0).appendTo(this.element);return e="right"===t?n.proxy(this._scrollRightClick,this):n.proxy(this._scrollLeftClick,this),i.bind("mousedown touchstart",e),i},_proxy:function(t,e,i){var n=Array.prototype.slice.call(i);return t&amp;&amp;t[e]?t[e].apply(t,n):null},_handleType:function(){return"rangeSliderHandle"},_barType:function(){return"rangeSliderBar"},_bar:function(){return this._proxy(this.bar,this._barType(),arguments)},_labelType:function(){return"rangeSliderLabel"},_leftLabel:function(){return this._proxy(this.labels.left,this._labelType(),arguments)},_rightLabel:function(){return this._proxy(this.labels.right,this._labelType(),arguments)},_leftHandle:function(){return this._proxy(this.leftHandle,this._handleType(),arguments)},_rightHandle:function(){return this._proxy(this.rightHandle,this._handleType(),arguments)},_getValue:function(t,e){return e===this.rightHandle&amp;&amp;(t-=e.outerWidth()),t*(this.options.bounds.max-this.options.bounds.min)/(this.container.innerWidth()-e.outerWidth(!0))+this.options.bounds.min},_trigger:function(t){var e=this;setTimeout(function(){e.element.trigger(t,{label:e.element,values:e.values()})},1)},_changing:function(){this._updateValues()&amp;&amp;(this._trigger("valuesChanging"),this._valuesChanged=!0)},_deactivateLabels:function(){"change"===this.options.valueLabels&amp;&amp;(this._leftLabel("option","show","hide"),this._rightLabel("option","show","hide"))},_reactivateLabels:function(){"change"===this.options.valueLabels&amp;&amp;(this._leftLabel("option","show","change"),this._rightLabel("option","show","change"))},_changed:function(t){t===!0&amp;&amp;this._deactivateLabels(),(this._updateValues()||this._valuesChanged)&amp;&amp;(this._trigger("valuesChanged"),t!==!0&amp;&amp;this._trigger("userValuesChanged"),this._valuesChanged=!1),t===!0&amp;&amp;this._reactivateLabels()},_updateValues:function(){var t=this._leftHandle("value"),e=this._rightHandle("value"),i=this._min(t,e),n=this._max(t,e),r=i!==this._values.min||n!==this._values.max;return this._values.min=this._min(t,e),this._values.max=this._max(t,e),r},_min:function(t,e){return Math.min(t,e)},_max:function(t,e){return Math.max(t,e)},_createLabel:function(t,e){var i;return null===t?(i=this._getLabelConstructorParameters(t,e),t=n("&lt;div /&gt;").appendTo(this.element)[this._labelType()](i)):(i=this._getLabelRefreshParameters(t,e),t[this._labelType()](i)),t},_getLabelConstructorParameters:function(t,e){return{handle:e,handleType:this._handleType(),formatter:this._getFormatter(),show:this.options.valueLabels,durationIn:this.options.durationIn,durationOut:this.options.durationOut,delayOut:this.options.delayOut}},_getLabelRefreshParameters:function(){return{formatter:this._getFormatter(),show:this.options.valueLabels,durationIn:this.options.durationIn,durationOut:this.options.durationOut,delayOut:this.options.delayOut}},_getFormatter:function(){return this.options.formatter===!1||null===this.options.formatter?this._defaultFormatter:this.options.formatter},_defaultFormatter:function(t){return Math.round(t)},_destroyLabel:function(t){return null!==t&amp;&amp;(t[this._labelType()]("destroy"),t.remove(),t=null),t},_createLabels:function(){this.labels.left=this._createLabel(this.labels.left,this.leftHandle),this.labels.right=this._createLabel(this.labels.right,this.rightHandle),this._leftLabel("pair",this.labels.right)},_destroyLabels:function(){this.labels.left=this._destroyLabel(this.labels.left),this.labels.right=this._destroyLabel(this.labels.right)},_stepRatio:function(){return this._leftHandle("stepRatio")},_scrollRightClick:function(t){return this.options.enabled?(t.preventDefault(),this._bar("startScroll"),this._bindStopScroll(),void this._continueScrolling("scrollRight",4*this._stepRatio(),1)):!1},_continueScrolling:function(t,e,i,n){if(!this.options.enabled)return!1;this._bar(t,i),n=n||5,n--;var r=this,s=16,o=Math.max(1,4/this._stepRatio());this._scrollTimeout=setTimeout(function(){0===n&amp;&amp;(e&gt;s?e=Math.max(s,e/1.5):i=Math.min(o,2*i),n=5),r._continueScrolling(t,e,i,n)},e)},_scrollLeftClick:function(t){return this.options.enabled?(t.preventDefault(),this._bar("startScroll"),this._bindStopScroll(),void this._continueScrolling("scrollLeft",4*this._stepRatio(),1)):!1},_bindStopScroll:function(){var t=this;this._stopScrollHandle=function(e){e.preventDefault(),t._stopScroll()},n(document).bind("mouseup touchend",this._stopScrollHandle)},_stopScroll:function(){n(document).unbind("mouseup touchend",this._stopScrollHandle),this._stopScrollHandle=null,this._bar("stopScroll"),clearTimeout(this._scrollTimeout)},_createRuler:function(){this.ruler=n("&lt;div class='bk-ui-rangeSlider-ruler' /&gt;").appendTo(this.innerBar)},_setRulerParameters:function(){this.ruler.ruler({min:this.options.bounds.min,max:this.options.bounds.max,scales:this.options.scales})},_destroyRuler:function(){null!==this.ruler&amp;&amp;n.fn.ruler&amp;&amp;(this.ruler.ruler("destroy"),this.ruler.remove(),this.ruler=null)},_updateRuler:function(){this._destroyRuler(),this.options.scales!==!1&amp;&amp;n.fn.ruler&amp;&amp;(this._createRuler(),this._setRulerParameters())},values:function(t,e){var i;if("undefined"!=typeof t&amp;&amp;"undefined"!=typeof e){if(!this._initialized)return this._values.min=t,this._values.max=e,this._values;this._deactivateLabels(),i=this._bar("values",t,e),this._changed(!0),this._reactivateLabels()}else i=this._bar("values",t,e);return i},min:function(t){return this._values.min=this.values(t,this._values.max).min,this._values.min},max:function(t){return this._values.max=this.values(this._values.min,t).max,this._values.max},bounds:function(t,e){return this._isValidValue(t)&amp;&amp;this._isValidValue(e)&amp;&amp;e&gt;t&amp;&amp;(this._setBounds(t,e),this._updateRuler(),this._changed(!0)),this.options.bounds},_isValidValue:function(t){return"undefined"!=typeof t&amp;&amp;parseFloat(t)===t},_setBounds:function(t,e){this.options.bounds={min:t,max:e},this._leftHandle("option","bounds",this.options.bounds),this._rightHandle("option","bounds",this.options.bounds),this._bar("option","bounds",this.options.bounds)},zoomIn:function(t){this._bar("zoomIn",t)},zoomOut:function(t){this._bar("zoomOut",t)},scrollLeft:function(t){this._bar("startScroll"),this._bar("scrollLeft",t),this._bar("stopScroll")},scrollRight:function(t){this._bar("startScroll"),this._bar("scrollRight",t),this._bar("stopScroll")},resize:function(){this._initWidth(),this._leftHandle("update"),this._rightHandle("update"),this._bar("update")},enable:function(){this.toggle(!0)},disable:function(){this.toggle(!1)},toggle:function(t){void 0===t&amp;&amp;(t=!this.options.enabled),this.options.enabled!==t&amp;&amp;this._toggle(t)},_toggle:function(t){this.options.enabled=t,this.element.toggleClass("bk-ui-rangeSlider-disabled",!t);var e=t?"enable":"disable";this._bar(e),this._leftHandle(e),this._rightHandle(e),this._leftLabel(e),this._rightLabel(e)},destroy:function(){this.element.removeClass("bk-ui-rangeSlider-withArrows bk-ui-rangeSlider-noArrow bk-ui-rangeSlider-disabled"),this._destroyWidgets(),this._destroyElements(),this.element.removeClass("bk-ui-rangeSlider"),this.options=null,n(window).unbind("resize",this._resizeProxy),this._resizeProxy=null,this._bindResize=null,n.Widget.prototype.destroy.apply(this,arguments)},_destroyWidget:function(t){this["_"+t]("destroy"),this[t].remove(),this[t]=null},_destroyWidgets:function(){this._destroyWidget("bar"),this._destroyWidget("leftHandle"),this._destroyWidget("rightHandle"),this._destroyRuler(),this._destroyLabels()},_destroyElements:function(){this.container.remove(),this.container=null,this.innerBar.remove(),this.innerBar=null,this.arrows.left.remove(),this.arrows.right.remove(),this.arrows=null}})},{jquery:18,"jquery-mousewheel":4,"jquery-ui/core":7,"jquery-ui/mouse":13,"jquery-ui/widget":17}],301:[function(t,e,i){var n=t("jquery");n.fn.drag=function(t,e,i){var r="string"==typeof t?t:"",s=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==r.indexOf("drag")&amp;&amp;(r="drag"+r),i=(t==s?e:i)||{},s?this.bind(r,i,s):this.trigger(r)};var r=n.event,s=r.special,o=s.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(t){var e=n.data(this,o.datakey),i=t.data||{};e.related+=1,n.each(o.defaults,function(t,n){void 0!==i[t]&amp;&amp;(e[t]=i[t])})},remove:function(){n.data(this,o.datakey).related-=1},setup:function(){if(!n.data(this,o.datakey)){var t=n.extend({related:0},o.defaults);n.data(this,o.datakey,t),r.add(this,"touchstart mousedown",o.init,t),this.attachEvent&amp;&amp;this.attachEvent("ondragstart",o.dontstart)}},teardown:function(){var t=n.data(this,o.datakey)||{};t.related||(n.removeData(this,o.datakey),r.remove(this,"touchstart mousedown",o.init),o.textselect(!0),this.detachEvent&amp;&amp;this.detachEvent("ondragstart",o.dontstart))},init:function(t){if(!o.touched){var e,i=t.data;if(!(0!=t.which&amp;&amp;i.which&gt;0&amp;&amp;t.which!=i.which)&amp;&amp;!n(t.target).is(i.not)&amp;&amp;(!i.handle||n(t.target).closest(i.handle,t.currentTarget).length)&amp;&amp;(o.touched="touchstart"==t.type?this:null,i.propagates=1,i.mousedown=this,i.interactions=[o.interaction(this,i)],i.target=t.target,i.pageX=t.pageX,i.pageY=t.pageY,i.dragging=null,e=o.hijack(t,"draginit",i),i.propagates))return e=o.flatten(e),e&amp;&amp;e.length&amp;&amp;(i.interactions=[],n.each(e,function(){i.interactions.push(o.interaction(this,i))})),i.propagates=i.interactions.length,i.drop!==!1&amp;&amp;s.drop&amp;&amp;s.drop.handler(t,i),o.textselect(!1),o.touched?r.add(o.touched,"touchmove touchend",o.handler,i):r.add(document,"mousemove mouseup",o.handler,i),!o.touched||i.live?!1:void 0}},interaction:function(t,e){var i=n(t)[e.relative?"position":"offset"]()||{top:0,left:0};return{drag:t,callback:new o.callback,droppable:[],offset:i}},handler:function(t){var e=t.data;switch(t.type){case!e.dragging&amp;&amp;"touchmove":t.preventDefault();case!e.dragging&amp;&amp;"mousemove":if(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2)&lt;Math.pow(e.distance,2))break;t.target=e.target,o.hijack(t,"dragstart",e),e.propagates&amp;&amp;(e.dragging=!0);case"touchmove":t.preventDefault();case"mousemove":if(e.dragging){if(o.hijack(t,"drag",e),e.propagates){e.drop!==!1&amp;&amp;s.drop&amp;&amp;s.drop.handler(t,e);break}t.type="mouseup"}case"touchend":case"mouseup":default:o.touched?r.remove(o.touched,"touchmove touchend",o.handler):r.remove(document,"mousemove mouseup",o.handler),e.dragging&amp;&amp;(e.drop!==!1&amp;&amp;s.drop&amp;&amp;s.drop.handler(t,e),o.hijack(t,"dragend",e)),o.textselect(!0),e.click===!1&amp;&amp;e.dragging&amp;&amp;n.data(e.mousedown,"suppress.click",(new Date).getTime()+5),e.dragging=o.touched=!1}},hijack:function(t,e,i,s,a){if(i){var l,u,h,c={event:t.originalEvent,type:t.type},p=e.indexOf("drop")?"drag":"drop",d=s||0,f=isNaN(s)?i.interactions.length:s;t.type=e,t.originalEvent=null,i.results=[];do if(u=i.interactions[d]){if("dragend"!==e&amp;&amp;u.cancelled)continue;h=o.properties(t,i,u),
        u.results=[],n(a||u[p]||i.droppable).each(function(s,a){return h.target=a,t.isPropagationStopped=function(){return!1},l=a?r.dispatch.call(a,t,h):null,l===!1?("drag"==p&amp;&amp;(u.cancelled=!0,i.propagates-=1),"drop"==e&amp;&amp;(u[p][s]=null)):"dropinit"==e&amp;&amp;u.droppable.push(o.element(l)||a),"dragstart"==e&amp;&amp;(u.proxy=n(o.element(l)||u.drag)[0]),u.results.push(l),delete t.result,"dropinit"!==e?l:void 0}),i.results[d]=o.flatten(u.results),"dropinit"==e&amp;&amp;(u.droppable=o.flatten(u.droppable)),"dragstart"!=e||u.cancelled||h.update()}while(++d&lt;f);return t.type=c.type,t.originalEvent=c.event,o.flatten(i.results)}},properties:function(t,e,i){var n=i.callback;return n.drag=i.drag,n.proxy=i.proxy||i.drag,n.startX=e.pageX,n.startY=e.pageY,n.deltaX=t.pageX-e.pageX,n.deltaY=t.pageY-e.pageY,n.originalX=i.offset.left,n.originalY=i.offset.top,n.offsetX=n.originalX+n.deltaX,n.offsetY=n.originalY+n.deltaY,n.drop=o.flatten((i.drop||[]).slice()),n.available=o.flatten((i.droppable||[]).slice()),n},element:function(t){return t&amp;&amp;(t.jquery||1==t.nodeType)?t:void 0},flatten:function(t){return n.map(t,function(t){return t&amp;&amp;t.jquery?n.makeArray(t):t&amp;&amp;t.length?o.flatten(t):t})},textselect:function(t){n(document)[t?"unbind":"bind"]("selectstart",o.dontstart).css("MozUserSelect",t?"":"none"),document.unselectable=t?"off":"on"},dontstart:function(){return!1},callback:function(){}};o.callback.prototype={update:function(){s.drop&amp;&amp;this.available.length&amp;&amp;n.each(this.available,function(t){s.drop.locate(this,t)})}};var a=r.dispatch;r.dispatch=function(t){return n.data(this,"suppress."+t.type)-(new Date).getTime()&gt;0?void n.removeData(this,"suppress."+t.type):a.apply(this,arguments)};var l=r.fixHooks.touchstart=r.fixHooks.touchmove=r.fixHooks.touchend=r.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(t,e){if(e){var i=e.touches&amp;&amp;e.touches[0]||e.changedTouches&amp;&amp;e.changedTouches[0]||null;i&amp;&amp;n.each(l.props,function(e,n){t[n]=i[n]})}return t}};s.draginit=s.dragstart=s.dragend=o},{jquery:18}],302:[function(t,e,i){var n=t("jquery");t("jquery_event_drag");n.fn.drop=function(t,e,i){var r="string"==typeof t?t:"",s=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==r.indexOf("drop")&amp;&amp;(r="drop"+r),i=(t==s?e:i)||{},s?this.bind(r,i,s):this.trigger(r)},n.drop=function(t){t=t||{},o.multi=t.multi===!0?1/0:t.multi===!1?1:isNaN(t.multi)?o.multi:t.multi,o.delay=t.delay||o.delay,o.tolerance=n.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:o.tolerance,o.mode=t.mode||o.mode||"intersect"};var r=n.event,s=r.special,o=n.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(t){var e=n.data(this,o.datakey);e.related+=1},remove:function(){n.data(this,o.datakey).related-=1},setup:function(){if(!n.data(this,o.datakey)){var t={related:0,active:[],anyactive:0,winner:0,location:{}};n.data(this,o.datakey,t),o.targets.push(this)}},teardown:function(){var t=n.data(this,o.datakey)||{};if(!t.related){n.removeData(this,o.datakey);var e=this;o.targets=n.grep(o.targets,function(t){return t!==e})}},handler:function(t,e){var i;if(e)switch(t.type){case"mousedown":case"touchstart":i=n(o.targets),"string"==typeof e.drop&amp;&amp;(i=i.filter(e.drop)),i.each(function(){var t=n.data(this,o.datakey);t.active=[],t.anyactive=0,t.winner=0}),e.droppable=i,s.drag.hijack(t,"dropinit",e);break;case"mousemove":case"touchmove":o.event=t,o.timer||o.tolerate(e);break;case"mouseup":case"touchend":o.timer=clearTimeout(o.timer),e.propagates&amp;&amp;(s.drag.hijack(t,"drop",e),s.drag.hijack(t,"dropend",e))}},locate:function(t,e){var i=n.data(t,o.datakey),r=n(t),s=r.offset()||{},a=r.outerHeight(),l=r.outerWidth(),u={elem:t,width:l,height:a,top:s.top,left:s.left,right:s.left+l,bottom:s.top+a};return i&amp;&amp;(i.location=u,i.index=e,i.elem=t),u},contains:function(t,e){return(e[0]||e.left)&gt;=t.left&amp;&amp;(e[0]||e.right)&lt;=t.right&amp;&amp;(e[1]||e.top)&gt;=t.top&amp;&amp;(e[1]||e.bottom)&lt;=t.bottom},modes:{intersect:function(t,e,i){return this.contains(i,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,i){return Math.max(0,Math.min(i.bottom,e.bottom)-Math.max(i.top,e.top))*Math.max(0,Math.min(i.right,e.right)-Math.max(i.left,e.left))},fit:function(t,e,i){return this.contains(i,e)?1:0},middle:function(t,e,i){return this.contains(i,[e.left+.5*e.width,e.top+.5*e.height])?1:0}},sort:function(t,e){return e.winner-t.winner||t.index-e.index},tolerate:function(t){var e,i,r,a,l,u,h,c,p=0,d=t.interactions.length,f=[o.event.pageX,o.event.pageY],g=o.tolerance||o.modes[o.mode];do if(c=t.interactions[p]){if(!c)return;c.drop=[],l=[],u=c.droppable.length,g&amp;&amp;(r=o.locate(c.proxy)),e=0;do if(h=c.droppable[e]){if(a=n.data(h,o.datakey),i=a.location,!i)continue;a.winner=g?g.call(o,o.event,r,i):o.contains(i,f)?1:0,l.push(a)}while(++e&lt;u);l.sort(o.sort),e=0;do(a=l[e])&amp;&amp;(a.winner&amp;&amp;c.drop.length&lt;o.multi?(a.active[p]||a.anyactive||(s.drag.hijack(o.event,"dropstart",t,p,a.elem)[0]!==!1?(a.active[p]=1,a.anyactive+=1):a.winner=0),a.winner&amp;&amp;c.drop.push(a.elem)):a.active[p]&amp;&amp;1==a.anyactive&amp;&amp;(s.drag.hijack(o.event,"dropend",t,p,a.elem),a.active[p]=0,a.anyactive-=1));while(++e&lt;u)}while(++p&lt;d);o.last&amp;&amp;f[0]==o.last.pageX&amp;&amp;f[1]==o.last.pageY?delete o.timer:o.timer=setTimeout(function(){o.tolerate(t)},o.delay),o.last=o.event}};s.dropinit=s.dropstart=s.dropend=o},{jquery:18,jquery_event_drag:301}],303:[function(t,e,i){var n;!function(t){function e(t){return t instanceof Array?new l(t):t.__iter__()}function i(t){return t instanceof Array?new u(t):t.__reversed__()}function n(t){return t.__next__()}function r(t){if(t instanceof Array)return t.slice();for(var e,i=[],n=t.__iter__();void 0!==(e=n.__next__());)i.push(e);return i}function s(t,e){if(t instanceof Array){for(var i=0,n=t.length;n&gt;i;++i)if(e(t[i])===!1)return}else for(var r,s=t.__iter__();void 0!==(r=s.__next__());)if(e(r)===!1)return}function o(t,e){var i=[];if(t instanceof Array)for(var n=0,r=t.length;r&gt;n;++n)i.push(e(t[n]));else for(var s,o=t.__iter__();void 0!==(s=o.__next__());)i.push(e(s));return i}function a(t,e){var i,n=[];if(t instanceof Array)for(var r=0,s=t.length;s&gt;r;++r)i=t[r],e(i)&amp;&amp;n.push(i);else for(var o=t.__iter__();void 0!==(i=o.__next__());)e(i)&amp;&amp;n.push(i);return n}var l=function(){function t(t,e){"undefined"==typeof e&amp;&amp;(e=0),this._array=t,this._index=Math.max(0,Math.min(e,t.length))}return t.prototype.__next__=function(){return this._array[this._index++]},t.prototype.__iter__=function(){return this},t}();t.ArrayIterator=l;var u=function(){function t(t,e){"undefined"==typeof e&amp;&amp;(e=t.length),this._array=t,this._index=Math.max(0,Math.min(e,t.length))}return t.prototype.__next__=function(){return this._array[--this._index]},t.prototype.__iter__=function(){return this},t}();t.ReverseArrayIterator=u,t.iter=e,t.reversed=i,t.next=n,t.asArray=r,t.forEach=s,t.map=o,t.filter=a}(n||(n={}));var n;!function(t){var e=function(){function t(t,e){this.first=t,this.second=e}return t.prototype.copy=function(){return new t(this.first,this.second)},t}();t.Pair=e}(n||(n={}));var n;!function(t){function e(t,e,i){for(var n,r,s=0,o=t.length;o&gt;0;)n=o&gt;&gt;1,r=s+n,i(t[r],e)&lt;0?(s=r+1,o-=n+1):o=n;return s}function i(t,i,n){var r=e(t,i,n);if(r===t.length)return-1;var s=t[r];return 0!==n(s,i)?-1:r}function n(t,i,n){var r=e(t,i,n);if(r===t.length)return void 0;var s=t[r];return 0!==n(s,i)?void 0:s}function r(e,i){var n=t.asArray(e),r=n.length;if(1&gt;=r)return n;n.sort(i);for(var s=[n[0]],o=1,a=0;r&gt;o;++o){var l=n[o];0!==i(s[a],l)&amp;&amp;(s.push(l),++a)}return s}function s(t,e,i){for(var n=0,r=0,s=t.length,o=e.length;s&gt;n&amp;&amp;o&gt;r;){var a=i(t[n],e[r]);if(0&gt;a)++n;else{if(!(a&gt;0))return!1;++r}}return!0}function o(t,e,i){var n=t.length,r=e.length;if(n&gt;r)return!1;for(var s=0,o=0;n&gt;s&amp;&amp;r&gt;o;){var a=i(t[s],e[o]);if(0&gt;a)return!1;a&gt;0?++o:(++s,++o)}return n&gt;s?!1:!0}function a(t,e,i){for(var n=0,r=0,s=t.length,o=e.length,a=[];s&gt;n&amp;&amp;o&gt;r;){var l=t[n],u=e[r],h=i(l,u);0&gt;h?(a.push(l),++n):h&gt;0?(a.push(u),++r):(a.push(l),++n,++r)}for(;s&gt;n;)a.push(t[n]),++n;for(;o&gt;r;)a.push(e[r]),++r;return a}function l(t,e,i){for(var n=0,r=0,s=t.length,o=e.length,a=[];s&gt;n&amp;&amp;o&gt;r;){var l=t[n],u=e[r],h=i(l,u);0&gt;h?++n:h&gt;0?++r:(a.push(l),++n,++r)}return a}function u(t,e,i){for(var n=0,r=0,s=t.length,o=e.length,a=[];s&gt;n&amp;&amp;o&gt;r;){var l=t[n],u=e[r],h=i(l,u);0&gt;h?(a.push(l),++n):h&gt;0?++r:(++n,++r)}for(;s&gt;n;)a.push(t[n]),++n;return a}function h(t,e,i){for(var n=0,r=0,s=t.length,o=e.length,a=[];s&gt;n&amp;&amp;o&gt;r;){var l=t[n],u=e[r],h=i(l,u);0&gt;h?(a.push(l),++n):h&gt;0?(a.push(u),++r):(++n,++r)}for(;s&gt;n;)a.push(t[n]),++n;for(;o&gt;r;)a.push(e[r]),++r;return a}t.lowerBound=e,t.binarySearch=i,t.binaryFind=n,t.asSet=r,t.setIsDisjoint=s,t.setIsSubset=o,t.setUnion=a,t.setIntersection=l,t.setDifference=u,t.setSymmetricDifference=h}(n||(n={}));var n;!function(t){var e=function(){function e(){this._array=[]}return e.prototype.size=function(){return this._array.length},e.prototype.empty=function(){return 0===this._array.length},e.prototype.itemAt=function(t){return this._array[t]},e.prototype.takeAt=function(t){return this._array.splice(t,1)[0]},e.prototype.clear=function(){this._array=[]},e.prototype.swap=function(t){var e=this._array;this._array=t._array,t._array=e},e.prototype.__iter__=function(){return t.iter(this._array)},e.prototype.__reversed__=function(){return t.reversed(this._array)},e}();t.ArrayBase=e}(n||(n={}));var n,r=this.__extends||function(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&amp;&amp;(t[n]=e[n]);i.prototype=e.prototype,t.prototype=new i};!function(t){function e(t){return function(e,i){return t(e.first,i)}}function i(t,e,i){for(var n=0,r=0,s=t.length,o=e.length,a=[];s&gt;n&amp;&amp;o&gt;r;){var l=t[n],u=e[r],h=i(l.first,u.first);0&gt;h?(a.push(l.copy()),++n):h&gt;0?(a.push(u.copy()),++r):(a.push(u.copy()),++n,++r)}for(;s&gt;n;)a.push(t[n].copy()),++n;for(;o&gt;r;)a.push(e[r].copy()),++r;return a}var n=function(n){function s(t){n.call(this),this._compare=t,this._wrapped=e(t)}return r(s,n),s.prototype.comparitor=function(){return this._compare},s.prototype.indexOf=function(e){return t.binarySearch(this._array,e,this._wrapped)},s.prototype.contains=function(e){return t.binarySearch(this._array,e,this._wrapped)&gt;=0},s.prototype.find=function(e){return t.binaryFind(this._array,e,this._wrapped)},s.prototype.setDefault=function(e,i){var n=this._array,r=t.lowerBound(n,e,this._wrapped);if(r===n.length){var s=new t.Pair(e,i());return n.push(s),s}var o=n[r];if(0!==this._compare(o.first,e)){var s=new t.Pair(e,i());return n.splice(r,0,s),s}return o},s.prototype.insert=function(e,i){var n=this._array,r=t.lowerBound(n,e,this._wrapped);if(r===n.length){var s=new t.Pair(e,i);return n.push(s),s}var o=n[r];if(0!==this._compare(o.first,e)){var s=new t.Pair(e,i);return n.splice(r,0,s),s}return o.second=i,o},s.prototype.update=function(e){var n=this;if(e instanceof s){var r=e;this._array=i(this._array,r._array,this._compare)}else t.forEach(e,function(t){n.insert(t.first,t.second)})},s.prototype.erase=function(e){var i=this._array,n=t.binarySearch(i,e,this._wrapped);return 0&gt;n?void 0:i.splice(n,1)[0]},s.prototype.copy=function(){for(var t=new s(this._compare),e=t._array,i=this._array,n=0,r=i.length;r&gt;n;++n)e.push(i[n].copy());return t},s}(t.ArrayBase);t.AssociativeArray=n}(n||(n={}));var n;!function(t){function e(e,n){return e instanceof i?e._array:t.asSet(e,n)}var i=function(i){function n(t){i.call(this),this._compare=t}return r(n,i),n.prototype.comparitor=function(){return this._compare},n.prototype.indexOf=function(e){return t.binarySearch(this._array,e,this._compare)},n.prototype.contains=function(e){return t.binarySearch(this._array,e,this._compare)&gt;=0},n.prototype.insert=function(e){var i=this._array,n=t.lowerBound(i,e,this._compare);return n===i.length?(i.push(e),!0):0!==this._compare(i[n],e)?(i.splice(n,0,e),!0):!1},n.prototype.erase=function(e){var i=this._array,n=t.binarySearch(i,e,this._compare);return 0&gt;n?!1:(i.splice(n,1),!0)},n.prototype.copy=function(){var t=new n(this._compare);return t._array=this._array.slice(),t},n.prototype.isDisjoint=function(i){var n=this._compare,r=e(i,n);return t.setIsDisjoint(this._array,r,n)},n.prototype.isSubset=function(i){var n=this._compare,r=e(i,n);return t.setIsSubset(this._array,r,n)},n.prototype.isSuperset=function(i){var n=this._compare,r=e(i,n);return t.setIsSubset(r,this._array,n)},n.prototype.union=function(i){var r=this._compare,s=new n(r),o=e(i,r);return s._array=t.setUnion(this._array,o,r),s},n.prototype.intersection=function(i){var r=this._compare,s=new n(r),o=e(i,r);return s._array=t.setIntersection(this._array,o,r),s},n.prototype.difference=function(i){var r=this._compare,s=new n(r),o=e(i,r);return s._array=t.setDifference(this._array,o,r),s},n.prototype.symmetricDifference=function(i){var r=this._compare,s=new n(r),o=e(i,r);return s._array=t.setSymmetricDifference(this._array,o,r),s},n.prototype.unionUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setUnion(this._array,r,n)},n.prototype.intersectionUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setIntersection(this._array,r,n)},n.prototype.differenceUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setDifference(this._array,r,n)},n.prototype.symmetricDifferenceUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setSymmetricDifference(this._array,r,n)},n}(t.ArrayBase);t.UniqueArray=i}(n||(n={}));var s;!function(t){!function(t){t[t.Le=0]="Le",t[t.Ge=1]="Ge",t[t.Eq=2]="Eq"}(t.Operator||(t.Operator={}));var e=(t.Operator,function(){function e(e,n,r){"undefined"==typeof r&amp;&amp;(r=t.Strength.required),this._id=i++,this._operator=n,this._expression=e,this._strength=t.Strength.clip(r)}return e.Compare=function(t,e){return t.id()-e.id()},e.prototype.id=function(){return this._id},e.prototype.expression=function(){return this._expression},e.prototype.op=function(){return this._operator},e.prototype.strength=function(){return this._strength},e}());t.Constraint=e;var i=0}(s||(s={}));var s;!function(t){function e(t){return new n.AssociativeArray(t)}t.createMap=e}(s||(s={}));var s;!function(t){var e=function(){function t(t){"undefined"==typeof t&amp;&amp;(t=""),this._value=0,this._context=null,this._id=i++,this._name=t}return t.Compare=function(t,e){return t.id()-e.id()},t.prototype.id=function(){return this._id},t.prototype.name=function(){return this._name},t.prototype.setName=function(t){this._name=t},t.prototype.context=function(){return this._context},t.prototype.setContext=function(t){this._context=t},t.prototype.value=function(){return this._value},t.prototype.setValue=function(t){this._value=t},t}();t.Variable=e;var i=0}(s||(s={}));var s;!function(t){function e(e){for(var i=0,n=function(){return 0},r=t.createMap(t.Variable.Compare),s=0,o=e.length;o&gt;s;++s){var a=e[s];if("number"==typeof a)i+=a;else if(a instanceof t.Variable)r.setDefault(a,n).second+=1;else{if(!(a instanceof Array))throw new Error("invalid Expression argument: "+a);if(2!==a.length)throw new Error("array must have length 2");var l=a[0],u=a[1];if("number"!=typeof l)throw new Error("array item 0 must be a number");if(!(u instanceof t.Variable))throw new Error("array item 1 must be a variable");r.setDefault(u,n).second+=l}}return{terms:r,constant:i}}var i=function(){function t(){var t=e(arguments);this._terms=t.terms,this._constant=t.constant}return t.prototype.terms=function(){return this._terms},t.prototype.constant=function(){return this._constant},t.prototype.value=function(){var t=this._constant;return n.forEach(this._terms,function(e){t+=e.first.value()*e.second}),t},t}();t.Expression=i}(s||(s={}));var s;!function(t){!function(t){function e(t,e,i,n){"undefined"==typeof n&amp;&amp;(n=1);var r=0;return r+=1e6*Math.max(0,Math.min(1e3,t*n)),r+=1e3*Math.max(0,Math.min(1e3,e*n)),r+=Math.max(0,Math.min(1e3,i*n))}function i(e){return Math.max(0,Math.min(t.required,e))}t.create=e,t.required=e(1e3,1e3,1e3),t.strong=e(1,0,0),t.medium=e(0,1,0),t.weak=e(0,0,1),t.clip=i}(t.Strength||(t.Strength={}));t.Strength}(s||(s={}));var s;!function(t){function e(t){var e=1e-8;return 0&gt;t?e&gt;-t:e&gt;t}function i(){return t.createMap(t.Constraint.Compare)}function n(){return t.createMap(l.Compare)}function r(){return t.createMap(t.Variable.Compare)}function s(){return t.createMap(t.Variable.Compare)}var o=function(){function o(){this._cnMap=i(),this._rowMap=n(),this._varMap=r(),this._editMap=s(),this._infeasibleRows=[],this._objective=new h,this._artificial=null,this._idTick=0}return o.prototype.addConstraint=function(t){var i=this._cnMap.find(t);if(void 0!==i)throw new Error("duplicate constraint");var n=this._createRow(t),r=n.row,s=n.tag,o=this._chooseSubject(r,s);if(0===o.type()&amp;&amp;r.allDummies()){if(!e(r.constant()))throw new Error("unsatifiable constraint");o=s.marker}if(0===o.type()){if(!this._addWithArtificialVariable(r))throw new Error("unsatisfiable constraint")}else r.solveFor(o),this._substitute(o,r),this._rowMap.insert(o,r);this._cnMap.insert(t,s),this._optimize(this._objective)},o.prototype.removeConstraint=function(t){var e=this._cnMap.erase(t);if(void 0===e)throw new Error("unknown constraint");this._removeConstraintEffects(t,e.second);var i=e.second.marker,n=this._rowMap.erase(i);if(void 0===n){var r=this._getMarkerLeavingSymbol(i);if(0===r.type())throw new Error("failed to find leaving row");n=this._rowMap.erase(r),n.second.solveForEx(r,i),this._substitute(i,n.second)}this._optimize(this._objective)},o.prototype.hasConstraint=function(t){return this._cnMap.contains(t)},o.prototype.addEditVariable=function(e,i){var n=this._editMap.find(e);if(void 0!==n)throw new Error("duplicate edit variable");if(i=t.Strength.clip(i),i===t.Strength.required)throw new Error("bad required strength");var r=new t.Expression(e),s=new t.Constraint(r,2,i);this.addConstraint(s);var o=this._cnMap.find(s).second,a={tag:o,constraint:s,constant:0};this._editMap.insert(e,a)},o.prototype.removeEditVariable=function(t){var e=this._editMap.erase(t);if(void 0===e)throw new Error("unknown edit variable");this.removeConstraint(e.second.constraint)},o.prototype.hasEditVariable=function(t){return this._editMap.contains(t)},o.prototype.suggestValue=function(t,e){var i=this._editMap.find(t);if(void 0===i)throw new Error("unknown edit variable");var n=this._rowMap,r=i.second,s=e-r.constant;r.constant=e;var o=r.tag.marker,a=n.find(o);if(void 0!==a)return a.second.add(-s)&lt;0&amp;&amp;this._infeasibleRows.push(o),void this._dualOptimize();var l=r.tag.other,a=n.find(l);if(void 0!==a)return a.second.add(s)&lt;0&amp;&amp;this._infeasibleRows.push(l),void this._dualOptimize();for(var u=0,h=n.size();h&gt;u;++u){var a=n.itemAt(u),c=a.second,p=c.coefficientFor(o);0!==p&amp;&amp;c.add(s*p)&lt;0&amp;&amp;1!==a.first.type()&amp;&amp;this._infeasibleRows.push(a.first)}this._dualOptimize()},o.prototype.updateVariables=function(){for(var t=this._varMap,e=this._rowMap,i=0,n=t.size();n&gt;i;++i){var r=t.itemAt(i),s=e.find(r.second);void 0!==s?r.first.setValue(s.second.constant()):r.first.setValue(0)}},o.prototype._getVarSymbol=function(t){var e=this,i=function(){return e._makeSymbol(1)};return this._varMap.setDefault(t,i).second},o.prototype._createRow=function(i){for(var n=i.expression(),r=new h(n.constant()),s=n.terms(),o=0,a=s.size();a&gt;o;++o){var l=s.itemAt(o);if(!e(l.second)){var c=this._getVarSymbol(l.first),p=this._rowMap.find(c);void 0!==p?r.insertRow(p.second,l.second):r.insertSymbol(c,l.second)}}var d=this._objective,f=i.strength(),g={marker:u,other:u};switch(i.op()){case 0:case 1:var m=0===i.op()?1:-1,_=this._makeSymbol(2);if(g.marker=_,r.insertSymbol(_,m),f&lt;t.Strength.required){var v=this._makeSymbol(3);g.other=v,r.insertSymbol(v,-m),d.insertSymbol(v,f)}break;case 2:if(f&lt;t.Strength.required){var y=this._makeSymbol(3),b=this._makeSymbol(3);g.marker=y,g.other=b,r.insertSymbol(y,-1),r.insertSymbol(b,1),d.insertSymbol(y,f),d.insertSymbol(b,f)}else{var w=this._makeSymbol(4);g.marker=w,r.insertSymbol(w)}}return r.constant()&lt;0&amp;&amp;r.reverseSign(),{row:r,tag:g}},o.prototype._chooseSubject=function(t,e){for(var i=t.cells(),n=0,r=i.size();r&gt;n;++n){var s=i.itemAt(n);if(1===s.first.type())return s.first}var o=e.marker.type();return(2===o||3===o)&amp;&amp;t.coefficientFor(e.marker)&lt;0?e.marker:(o=e.other.type(),(2===o||3===o)&amp;&amp;t.coefficientFor(e.other)&lt;0?e.other:u)},o.prototype._addWithArtificialVariable=function(t){var i=this._makeSymbol(2);this._rowMap.insert(i,t.copy()),this._artificial=t.copy(),this._optimize(this._artificial);var n=e(this._artificial.constant());this._artificial=null;var r=this._rowMap.erase(i);if(void 0!==r){var s=r.second;if(s.isConstant())return n;var o=this._anyPivotableSymbol(s);if(0===o.type())return!1;s.solveForEx(i,o),this._substitute(o,s),this._rowMap.insert(o,s)}for(var a=this._rowMap,l=0,u=a.size();u&gt;l;++l)a.itemAt(l).second.removeSymbol(i);return this._objective.removeSymbol(i),n},o.prototype._substitute=function(t,e){for(var i=this._rowMap,n=0,r=i.size();r&gt;n;++n){var s=i.itemAt(n);s.second.substitute(t,e),s.second.constant()&lt;0&amp;&amp;1!==s.first.type()&amp;&amp;this._infeasibleRows.push(s.first)}this._objective.substitute(t,e),this._artificial&amp;&amp;this._artificial.substitute(t,e)},o.prototype._optimize=function(t){for(;;){var e=this._getEnteringSymbol(t);if(0===e.type())return;var i=this._getLeavingSymbol(e);if(0===i.type())throw new Error("the objective is unbounded");var n=this._rowMap.erase(i).second;n.solveForEx(i,e),this._substitute(e,n),this._rowMap.insert(e,n)}},o.prototype._dualOptimize=function(){for(var t=this._rowMap,e=this._infeasibleRows;0!==e.length;){var i=e.pop(),n=t.find(i);if(void 0!==n&amp;&amp;n.second.constant()&lt;0){var r=this._getDualEnteringSymbol(n.second);if(0===r.type())throw new Error("dual optimize failed");var s=n.second;t.erase(i),s.solveForEx(i,r),this._substitute(r,s),t.insert(r,s)}}},o.prototype._getEnteringSymbol=function(t){for(var e=t.cells(),i=0,n=e.size();n&gt;i;++i){var r=e.itemAt(i),s=r.first;if(r.second&lt;0&amp;&amp;4!==s.type())return s}return u},o.prototype._getDualEnteringSymbol=function(t){for(var e=Number.MAX_VALUE,i=u,n=t.cells(),r=0,s=n.size();s&gt;r;++r){var o=n.itemAt(r),a=o.first,l=o.second;if(l&gt;0&amp;&amp;4!==a.type()){var h=this._objective.coefficientFor(a),c=h/l;e&gt;c&amp;&amp;(e=c,i=a)}}return i},o.prototype._getLeavingSymbol=function(t){for(var e=Number.MAX_VALUE,i=u,n=this._rowMap,r=0,s=n.size();s&gt;r;++r){var o=n.itemAt(r),a=o.first;if(1!==a.type()){var l=o.second,h=l.coefficientFor(t);if(0&gt;h){var c=-l.constant()/h;e&gt;c&amp;&amp;(e=c,i=a)}}}return i},o.prototype._getMarkerLeavingSymbol=function(t){for(var e=Number.MAX_VALUE,i=e,n=e,r=u,s=r,o=r,a=r,l=this._rowMap,h=0,c=l.size();c&gt;h;++h){var p=l.itemAt(h),d=p.second,f=d.coefficientFor(t);if(0!==f){var g=p.first;if(1===g.type())a=g;else if(0&gt;f){var m=-d.constant()/f;i&gt;m&amp;&amp;(i=m,s=g)}else{var m=d.constant()/f;n&gt;m&amp;&amp;(n=m,o=g)}}}return s!==r?s:o!==r?o:a},o.prototype._removeConstraintEffects=function(t,e){3===e.marker.type()&amp;&amp;this._removeMarkerEffects(e.marker,t.strength()),3===e.other.type()&amp;&amp;this._removeMarkerEffects(e.other,t.strength())},o.prototype._removeMarkerEffects=function(t,e){var i=this._rowMap.find(t);void 0!==i?this._objective.insertRow(i.second,-e):this._objective.insertSymbol(t,-e)},o.prototype._anyPivotableSymbol=function(t){for(var e=t.cells(),i=0,n=e.size();n&gt;i;++i){var r=e.itemAt(i),s=r.first.type();if(2===s||3===s)return r.first}return u},o.prototype._makeSymbol=function(t){return new l(t,this._idTick++)},o}();t.Solver=o;var a;!function(t){t[t.Invalid=0]="Invalid",t[t.External=1]="External",t[t.Slack=2]="Slack",t[t.Error=3]="Error",t[t.Dummy=4]="Dummy"}(a||(a={}));var l=function(){function t(t,e){this._id=e,this._type=t}return t.Compare=function(t,e){return t.id()-e.id()},t.prototype.id=function(){return this._id},t.prototype.type=function(){return this._type},t}(),u=new l(0,-1),h=function(){function i(e){"undefined"==typeof e&amp;&amp;(e=0),this._cellMap=t.createMap(l.Compare),this._constant=e}return i.prototype.cells=function(){return this._cellMap},i.prototype.constant=function(){return this._constant},i.prototype.isConstant=function(){return this._cellMap.empty()},i.prototype.allDummies=function(){for(var t=this._cellMap,e=0,i=t.size();i&gt;e;++e){var n=t.itemAt(e);if(4!==n.first.type())return!1}return!0},i.prototype.copy=function(){var t=new i(this._constant);return t._cellMap=this._cellMap.copy(),t},i.prototype.add=function(t){return this._constant+=t},i.prototype.insertSymbol=function(t,i){"undefined"==typeof i&amp;&amp;(i=1);var n=this._cellMap.setDefault(t,function(){return 0});e(n.second+=i)&amp;&amp;this._cellMap.erase(t)},i.prototype.insertRow=function(t,e){"undefined"==typeof e&amp;&amp;(e=1),this._constant+=t._constant*e;for(var i=t._cellMap,n=0,r=i.size();r&gt;n;++n){var s=i.itemAt(n);this.insertSymbol(s.first,s.second*e)}},i.prototype.removeSymbol=function(t){this._cellMap.erase(t)},i.prototype.reverseSign=function(){this._constant=-this._constant;for(var t=this._cellMap,e=0,i=t.size();i&gt;e;++e){var n=t.itemAt(e);n.second=-n.second}},i.prototype.solveFor=function(t){var e=this._cellMap,i=e.erase(t),n=-1/i.second;this._constant*=n;for(var r=0,s=e.size();s&gt;r;++r)e.itemAt(r).second*=n},i.prototype.solveForEx=function(t,e){this.insertSymbol(t,-1),this.solveFor(e)},i.prototype.coefficientFor=function(t){var e=this._cellMap.find(t);return void 0!==e?e.second:0},i.prototype.substitute=function(t,e){var i=this._cellMap.erase(t);void 0!==i&amp;&amp;this.insertRow(e,i.second)},i}()}(s||(s={})),e.exports=s},{}],304:[function(t,e,i){function n(t,e,i,n){var r,s,o=Math.pow(10,e);return s=(i(t*o)/o).toFixed(e),n&amp;&amp;(r=new RegExp("0{1,"+n+"}$"),s=s.replace(r,"")),s}function r(t,e,i,n){var r;return r=e.indexOf("$")&gt;-1?s(t,e,i,n):e.indexOf("%")&gt;-1?o(t,e,i,n):e.indexOf(":")&gt;-1?a(t,e,i):l(t,e,i,n)}function s(t,e,i,n){var r,s,o=e.indexOf("$"),a=e.indexOf("("),u=e.indexOf("-"),h="";return e.indexOf(" $")&gt;-1?(h=" ",e=e.replace(" $","")):e.indexOf("$ ")&gt;-1?(h=" ",e=e.replace("$ ","")):e=e.replace("$",""),s=l(t,e,i,n),1&gt;=o?s.indexOf("(")&gt;-1||s.indexOf("-")&gt;-1?(s=s.split(""),r=1,(a&gt;o||u&gt;o)&amp;&amp;(r=0),s.splice(r,0,i.currency.symbol+h),s=s.join("")):s=i.currency.symbol+h+s:s.indexOf(")")&gt;-1?(s=s.split(""),s.splice(-1,0,h+i.currency.symbol),s=s.join("")):s=s+h+i.currency.symbol,s}function o(t,e,i,n){var r,s="",t=100*t;return e.indexOf(" %")&gt;-1?(s=" ",e=e.replace(" %","")):e=e.replace("%",""),r=l(t,e,i,n),r.indexOf(")")&gt;-1?(r=r.split(""),r.splice(-1,0,s+"%"),r=r.join("")):r=r+s+"%",r}function a(t,e){var i=Math.floor(t/60/60),n=Math.floor((t-60*i*60)/60),r=Math.round(t-60*i*60-60*n);return i+":"+(10&gt;n?"0"+n:n)+":"+(10&gt;r?"0"+r:r)}function l(t,e,i,r){var s,o,a,l,u,h,c=!1,p=!1,d=!1,f="",g=!1,m=!1,_=!1,v=!1,y=!1,b="",w="",x=Math.abs(t),k=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],M="",C=!1;if(e.indexOf("(")&gt;-1?(c=!0,e=e.slice(1,-1)):e.indexOf("+")&gt;-1&amp;&amp;(p=!0,e=e.replace(/\+/g,"")),e.indexOf("a")&gt;-1&amp;&amp;(g=e.indexOf("aK")&gt;=0,m=e.indexOf("aM")&gt;=0,_=e.indexOf("aB")&gt;=0,v=e.indexOf("aT")&gt;=0,y=g||m||_||v,e.indexOf(" a")&gt;-1?(f=" ",e=e.replace(" a","")):e=e.replace("a",""),x&gt;=Math.pow(10,12)&amp;&amp;!y||v?(f+=i.abbreviations.trillion,t/=Math.pow(10,12)):x&lt;Math.pow(10,12)&amp;&amp;x&gt;=Math.pow(10,9)&amp;&amp;!y||_?(f+=i.abbreviations.billion,t/=Math.pow(10,9)):x&lt;Math.pow(10,9)&amp;&amp;x&gt;=Math.pow(10,6)&amp;&amp;!y||m?(f+=i.abbreviations.million,t/=Math.pow(10,6)):(x&lt;Math.pow(10,6)&amp;&amp;x&gt;=Math.pow(10,3)&amp;&amp;!y||g)&amp;&amp;(f+=i.abbreviations.thousand,t/=Math.pow(10,3))),e.indexOf("b")&gt;-1)for(e.indexOf(" b")&gt;-1?(b=" ",e=e.replace(" b","")):e=e.replace("b",""),a=0;a&lt;=k.length;a++)if(s=Math.pow(1024,a),o=Math.pow(1024,a+1),t&gt;=s&amp;&amp;o&gt;t){b+=k[a],s&gt;0&amp;&amp;(t/=s);break}return e.indexOf("o")&gt;-1&amp;&amp;(e.indexOf(" o")&gt;-1?(w=" ",e=e.replace(" o","")):e=e.replace("o",""),w+=i.ordinal(t)),e.indexOf("[.]")&gt;-1&amp;&amp;(d=!0,e=e.replace("[.]",".")),l=t.toString().split(".")[0],u=e.split(".")[1],h=e.indexOf(","),u?(u.indexOf("[")&gt;-1?(u=u.replace("]",""),u=u.split("["),M=n(t,u[0].length+u[1].length,r,u[1].length)):M=n(t,u.length,r),l=M.split(".")[0],M=M.split(".")[1].length?i.delimiters.decimal+M.split(".")[1]:"",d&amp;&amp;0===Number(M.slice(1))&amp;&amp;(M="")):l=n(t,null,r),l.indexOf("-")&gt;-1&amp;&amp;(l=l.slice(1),C=!0),h&gt;-1&amp;&amp;(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i.delimiters.thousands)),0===e.indexOf(".")&amp;&amp;(l=""),(c&amp;&amp;C?"(":"")+(!c&amp;&amp;C?"-":"")+(!C&amp;&amp;p?"+":"")+l+M+(w?w:"")+(f?f:"")+(b?b:"")+(c&amp;&amp;C?")":"")}function u(t,e){p[t]=e}function h(t,e,i,n){return r(Number(t),c.isString(e)?e:d,c.isString(i)?p[i]:p[f],c.isUndefined(n)?Math.round:n)}var c=t("underscore"),p={},d="0,0",f="en";u("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$"}}),e.exports={format:h}},{underscore:92}],305:[function(t,e,i){function n(t){function e(t){p=t,d.subscribe(p.onSelectedRowsChanged,n).subscribe(p.onClick,a).subscribe(p.onHeaderClick,u).subscribe(p.onKeyDown,o)}function i(){d.unsubscribeAll()}function n(t,e){var i,n,r=p.getSelectedRows(),s={};for(n=0;n&lt;r.length;n++)i=r[n],s[i]=!0,s[i]!==f[i]&amp;&amp;(p.invalidateRow(i),delete f[i]);for(n in f)p.invalidateRow(n);f=s,p.render(),r.length&amp;&amp;r.length==p.getDataLength()?p.updateColumnHeader(m.columnId,"&lt;input type='checkbox' checked='checked'&gt;",m.toolTip):p.updateColumnHeader(m.columnId,"&lt;input type='checkbox'&gt;",m.toolTip)}function o(t,e){32==t.which&amp;&amp;p.getColumns()[e.cell].id===m.columnId&amp;&amp;((!p.getEditorLock().isActive()||p.getEditorLock().commitCurrentEdit())&amp;&amp;l(e.row),t.preventDefault(),t.stopImmediatePropagation())}function a(t,e){if(p.getColumns()[e.cell].id===m.columnId&amp;&amp;r(t.target).is(":checkbox")){if(p.getEditorLock().isActive()&amp;&amp;!p.getEditorLock().commitCurrentEdit())return t.preventDefault(),void t.stopImmediatePropagation();l(e.row),t.stopPropagation(),t.stopImmediatePropagation()}}function l(t){f[t]?p.setSelectedRows(r.grep(p.getSelectedRows(),function(e){return e!=t})):p.setSelectedRows(p.getSelectedRows().concat(t))}function u(t,e){if(e.column.id==m.columnId&amp;&amp;r(t.target).is(":checkbox")){if(p.getEditorLock().isActive()&amp;&amp;!p.getEditorLock().commitCurrentEdit())return t.preventDefault(),void t.stopImmediatePropagation();if(r(t.target).is(":checked")){for(var i=[],n=0;n&lt;p.getDataLength();n++)i.push(n);p.setSelectedRows(i)}else p.setSelectedRows([]);t.stopPropagation(),t.stopImmediatePropagation()}}function h(){return{id:m.columnId,name:"&lt;input type='checkbox'&gt;",toolTip:m.toolTip,field:"sel",width:m.width,resizable:!1,sortable:!1,cssClass:m.cssClass,formatter:c}}function c(t,e,i,n,r){return r?f[t]?"&lt;input type='checkbox' checked='checked'&gt;":"&lt;input type='checkbox'&gt;":null}var p,d=new s.EventHandler,f={},g={columnId:"_checkbox_selector",cssClass:null,toolTip:"Select/Deselect All",width:30},m=r.extend(!0,{},g,t);r.extend(this,{init:e,destroy:i,getColumnDefinition:h})}var r=t("jquery"),s=t("../slick.core");e.exports=n},{"../slick.core":307,jquery:18}],306:[function(t,e,i){function n(t){function e(e){v=r.extend(!0,{},x,t),m=e,w.subscribe(m.onActiveCellChanged,n(d)),w.subscribe(m.onKeyDown,n(f)),w.subscribe(m.onClick,n(g))}function i(){w.unsubscribeAll()}function n(t){return function(){_||(_=!0,t.apply(this,arguments),_=!1)}}function o(t){for(var e=[],i=0;i&lt;t.length;i++)for(var n=t[i].fromRow;n&lt;=t[i].toRow;n++)e.push(n);return e}function a(t){for(var e=[],i=m.getColumns().length-1,n=0;n&lt;t.length;n++)e.push(new s.Range(t[n],0,t[n],i));return e}function l(t,e){var i,n=[];for(i=t;e&gt;=i;i++)n.push(i);for(i=e;t&gt;i;i++)n.push(i);return n}function u(){return o(y)}function h(t){c(a(t))}function c(t){y=t,b.onSelectedRangesChanged.notify(y)}function p(){return y}function d(t,e){v.selectActiveRow&amp;&amp;null!=e.row&amp;&amp;c([new s.Range(e.row,0,e.row,m.getColumns().length-1)])}function f(t){var e=m.getActiveCell();if(e&amp;&amp;t.shiftKey&amp;&amp;!t.ctrlKey&amp;&amp;!t.altKey&amp;&amp;!t.metaKey&amp;&amp;(38==t.which||40==t.which)){var i=u();i.sort(function(t,e){return t-e}),i.length||(i=[e.row]);var n,r=i[0],s=i[i.length-1];n=40==t.which?e.row&lt;s||r==s?++s:++r:e.row&lt;s?--s:--r,n&gt;=0&amp;&amp;n&lt;m.getDataLength()&amp;&amp;(m.scrollRowIntoView(n),y=a(l(r,s)),c(y)),t.preventDefault(),t.stopPropagation()}}function g(t){var e=m.getCellFromEvent(t);if(!e||!m.canCellBeActive(e.row,e.cell))return!1;if(!m.getOptions().multiSelect||!t.ctrlKey&amp;&amp;!t.shiftKey&amp;&amp;!t.metaKey)return!1;var i=o(y),n=r.inArray(e.row,i);if(-1===n&amp;&amp;(t.ctrlKey||t.metaKey))i.push(e.row),
        m.setActiveCell(e.row,e.cell);else if(-1!==n&amp;&amp;(t.ctrlKey||t.metaKey))i=r.grep(i,function(t,i){return t!==e.row}),m.setActiveCell(e.row,e.cell);else if(i.length&amp;&amp;t.shiftKey){var s=i.pop(),l=Math.min(e.row,s),u=Math.max(e.row,s);i=[];for(var h=l;u&gt;=h;h++)h!==s&amp;&amp;i.push(h);i.push(s),m.setActiveCell(e.row,e.cell)}return y=a(i),c(y),t.stopImmediatePropagation(),!0}var m,_,v,y=[],b=this,w=new s.EventHandler,x={selectActiveRow:!0};r.extend(this,{getSelectedRows:u,setSelectedRows:h,getSelectedRanges:p,setSelectedRanges:c,init:e,destroy:i,onSelectedRangesChanged:new s.Event})}var r=t("jquery"),s=t("../slick.core");e.exports=n},{"../slick.core":307,jquery:18}],307:[function(t,e,i){function n(){var t=!1,e=!1;this.stopPropagation=function(){t=!0},this.isPropagationStopped=function(){return t},this.stopImmediatePropagation=function(){e=!0},this.isImmediatePropagationStopped=function(){return e}}function r(){var t=[];this.subscribe=function(e){t.push(e)},this.unsubscribe=function(e){for(var i=t.length-1;i&gt;=0;i--)t[i]===e&amp;&amp;t.splice(i,1)},this.notify=function(e,i,r){i=i||new n,r=r||this;for(var s,o=0;o&lt;t.length&amp;&amp;!i.isPropagationStopped()&amp;&amp;!i.isImmediatePropagationStopped();o++)s=t[o].call(r,i,e);return s}}function s(){var t=[];this.subscribe=function(e,i){return t.push({event:e,handler:i}),e.subscribe(i),this},this.unsubscribe=function(e,i){for(var n=t.length;n--;)if(t[n].event===e&amp;&amp;t[n].handler===i)return t.splice(n,1),void e.unsubscribe(i);return this},this.unsubscribeAll=function(){for(var e=t.length;e--;)t[e].event.unsubscribe(t[e].handler);return t=[],this}}function o(t,e,i,n){void 0===i&amp;&amp;void 0===n&amp;&amp;(i=t,n=e),this.fromRow=Math.min(t,i),this.fromCell=Math.min(e,n),this.toRow=Math.max(t,i),this.toCell=Math.max(e,n),this.isSingleRow=function(){return this.fromRow==this.toRow},this.isSingleCell=function(){return this.fromRow==this.toRow&amp;&amp;this.fromCell==this.toCell},this.contains=function(t,e){return t&gt;=this.fromRow&amp;&amp;t&lt;=this.toRow&amp;&amp;e&gt;=this.fromCell&amp;&amp;e&lt;=this.toCell},this.toString=function(){return this.isSingleCell()?"("+this.fromRow+":"+this.fromCell+")":"("+this.fromRow+":"+this.fromCell+" - "+this.toRow+":"+this.toCell+")"}}function a(){this.__nonDataRow=!0}function l(){this.__group=!0,this.level=0,this.count=0,this.value=null,this.title=null,this.collapsed=!1,this.totals=null,this.rows=[],this.groups=null,this.groupingKey=null}function u(){this.__groupTotals=!0,this.group=null,this.initialized=!1}function h(){var t=null;this.isActive=function(e){return e?t===e:null!==t},this.activate=function(e){if(e!==t){if(null!==t)throw"SlickGrid.EditorLock.activate: an editController is still active, can't activate another editController";if(!e.commitCurrentEdit)throw"SlickGrid.EditorLock.activate: editController must implement .commitCurrentEdit()";if(!e.cancelCurrentEdit)throw"SlickGrid.EditorLock.activate: editController must implement .cancelCurrentEdit()";t=e}},this.deactivate=function(e){if(t!==e)throw"SlickGrid.EditorLock.deactivate: specified editController is not the currently active one";t=null},this.commitCurrentEdit=function(){return t?t.commitCurrentEdit():!0},this.cancelCurrentEdit=function(){return t?t.cancelCurrentEdit():!0}}var c=(t("jquery"),{Event:r,EventData:n,EventHandler:s,Range:o,NonDataRow:a,Group:l,GroupTotals:u,EditorLock:h,GlobalEditorLock:new h});l.prototype=new a,l.prototype.equals=function(t){return this.value===t.value&amp;&amp;this.count===t.count&amp;&amp;this.collapsed===t.collapsed&amp;&amp;this.title===t.title},u.prototype=new a,e.exports=c},{jquery:18}],308:[function(require,module,exports){function SlickGrid(container,data,columns,options){function init(){if($container=$(container),$container.length&lt;1)throw new Error("SlickGrid requires a valid container, "+container+" does not exist in the DOM.");maxSupportedCssHeight=maxSupportedCssHeight||getMaxSupportedCssHeight(),scrollbarDimensions=scrollbarDimensions||measureScrollbar(),options=$.extend({},defaults,options),validateAndEnforceOptions(),columnDefaults.width=options.defaultColumnWidth,columnsById={};for(var t=0;t&lt;columns.length;t++){var e=columns[t]=$.extend({},columnDefaults,columns[t]);columnsById[e.id]=t,e.minWidth&amp;&amp;e.width&lt;e.minWidth&amp;&amp;(e.width=e.minWidth),e.maxWidth&amp;&amp;e.width&gt;e.maxWidth&amp;&amp;(e.width=e.maxWidth)}if(options.enableColumnReorder&amp;&amp;!$.fn.sortable)throw new Error("SlickGrid's 'enableColumnReorder = true' option requires jquery-ui.sortable module to be loaded");editController={commitCurrentEdit:commitCurrentEdit,cancelCurrentEdit:cancelCurrentEdit},$container.empty().css("overflow","hidden").css("outline",0).addClass(uid).addClass("bk-ui-widget"),/relative|absolute|fixed/.test($container.css("position"))||$container.css("position","relative"),$focusSink=$("&lt;div tabIndex='0' hideFocus style='position:fixed;width:0;height:0;top:0;left:0;outline:0;'&gt;&lt;/div&gt;").appendTo($container),$headerScroller=$("&lt;div class='bk-slick-header bk-ui-state-default' style='overflow:hidden;position:relative;' /&gt;").appendTo($container),$headers=$("&lt;div class='bk-slick-header-columns' style='left:-1000px' /&gt;").appendTo($headerScroller),$headers.width(getHeadersWidth()),$headerRowScroller=$("&lt;div class='bk-slick-headerrow bk-ui-state-default' style='overflow:hidden;position:relative;' /&gt;").appendTo($container),$headerRow=$("&lt;div class='bk-slick-headerrow-columns' /&gt;").appendTo($headerRowScroller),$headerRowSpacer=$("&lt;div style='display:block;height:1px;position:absolute;top:0;left:0;'&gt;&lt;/div&gt;").css("width",getCanvasWidth()+scrollbarDimensions.width+"px").appendTo($headerRowScroller),$topPanelScroller=$("&lt;div class='bk-slick-top-panel-scroller bk-ui-state-default' style='overflow:hidden;position:relative;' /&gt;").appendTo($container),$topPanel=$("&lt;div class='bk-slick-top-panel' style='width:10000px' /&gt;").appendTo($topPanelScroller),options.showTopPanel||$topPanelScroller.hide(),options.showHeaderRow||$headerRowScroller.hide(),$viewport=$("&lt;div class='bk-slick-viewport' style='width:100%;overflow:auto;outline:0;position:relative;;'&gt;").appendTo($container),$viewport.css("overflow-y",options.autoHeight?"hidden":"auto"),$canvas=$("&lt;div class='grid-canvas' /&gt;").appendTo($viewport),$focusSink2=$focusSink.clone().appendTo($container),options.explicitInitialization||finishInitialization()}function finishInitialization(){initialized||(initialized=!0,viewportW=parseFloat($.css($container[0],"width",!0)),measureCellPaddingAndBorder(),disableSelection($headers),options.enableTextSelectionOnCells||$viewport.bind("selectstart.ui",function(t){return $(t.target).is("input,textarea")}),updateColumnCaches(),createColumnHeaders(),setupColumnSort(),createCssRules(),resizeCanvas(),bindAncestorScrollEvents(),$container.bind("resize.bk-slickgrid",resizeCanvas),$viewport.bind("scroll",handleScroll),$headerScroller.bind("contextmenu",handleHeaderContextMenu).bind("click",handleHeaderClick).delegate(".bk-slick-header-column","mouseenter",handleHeaderMouseEnter).delegate(".bk-slick-header-column","mouseleave",handleHeaderMouseLeave),$headerRowScroller.bind("scroll",handleHeaderRowScroll),$focusSink.add($focusSink2).bind("keydown",handleKeyDown),$canvas.bind("keydown",handleKeyDown).bind("click",handleClick).bind("dblclick",handleDblClick).bind("contextmenu",handleContextMenu).bind("draginit",handleDragInit).bind("dragstart",{distance:3},handleDragStart).bind("drag",handleDrag).bind("dragend",handleDragEnd).delegate(".bk-slick-cell","mouseenter",handleMouseEnter).delegate(".bk-slick-cell","mouseleave",handleMouseLeave),navigator.userAgent.toLowerCase().match(/webkit/)&amp;&amp;navigator.userAgent.toLowerCase().match(/macintosh/)&amp;&amp;$canvas.bind("mousewheel",handleMouseWheel))}function registerPlugin(t){plugins.unshift(t),t.init(self)}function unregisterPlugin(t){for(var e=plugins.length;e&gt;=0;e--)if(plugins[e]===t){plugins[e].destroy&amp;&amp;plugins[e].destroy(),plugins.splice(e,1);break}}function setSelectionModel(t){selectionModel&amp;&amp;(selectionModel.onSelectedRangesChanged.unsubscribe(handleSelectedRangesChanged),selectionModel.destroy&amp;&amp;selectionModel.destroy()),selectionModel=t,selectionModel&amp;&amp;(selectionModel.init(self),selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged))}function getSelectionModel(){return selectionModel}function getCanvasNode(){return $canvas[0]}function measureScrollbar(){var t=$("&lt;div style='position:absolute; top:-10000px; left:-10000px; width:100px; height:100px; overflow:scroll;'&gt;&lt;/div&gt;").appendTo("body"),e={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),e}function getHeadersWidth(){for(var t=0,e=0,i=columns.length;i&gt;e;e++){var n=columns[e].width;t+=n}return t+=scrollbarDimensions.width,Math.max(t,viewportW)+1e3}function getCanvasWidth(){for(var t=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW,e=0,i=columns.length;i--;)e+=columns[i].width;return options.fullWidthRows?Math.max(e,t):e}function updateCanvasWidth(t){var e=canvasWidth;canvasWidth=getCanvasWidth(),canvasWidth!=e&amp;&amp;($canvas.width(canvasWidth),$headerRow.width(canvasWidth),$headers.width(getHeadersWidth()),viewportHasHScroll=canvasWidth&gt;viewportW-scrollbarDimensions.width),$headerRowSpacer.width(canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0)),(canvasWidth!=e||t)&amp;&amp;applyColumnWidths()}function disableSelection(t){t&amp;&amp;t.jquery&amp;&amp;t.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return!1})}function getMaxSupportedCssHeight(){for(var t=1e6,e=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,i=$("&lt;div style='display:none' /&gt;").appendTo(document.body);;){var n=2*t;if(i.css("height",n),n&gt;e||i.height()!==n)break;t=n}return i.remove(),t}function bindAncestorScrollEvents(){for(var t=$canvas[0];(t=t.parentNode)!=document.body&amp;&amp;null!=t;)if(t==$viewport[0]||t.scrollWidth!=t.clientWidth||t.scrollHeight!=t.clientHeight){var e=$(t);$boundAncestors=$boundAncestors?$boundAncestors.add(e):e,e.bind("scroll."+uid,handleActiveCellPositionChange)}}function unbindAncestorScrollEvents(){$boundAncestors&amp;&amp;($boundAncestors.unbind("scroll."+uid),$boundAncestors=null)}function updateColumnHeader(t,e,i){if(initialized){var n=getColumnIndex(t);if(null!=n){var r=columns[n],s=$headers.children().eq(n);s&amp;&amp;(void 0!==e&amp;&amp;(columns[n].name=e),void 0!==i&amp;&amp;(columns[n].toolTip=i),trigger(self.onBeforeHeaderCellDestroy,{node:s[0],column:r}),s.attr("title",i||"").children().eq(0).html(e),trigger(self.onHeaderCellRendered,{node:s[0],column:r}))}}}function getHeaderRow(){return $headerRow[0]}function getHeaderRowColumn(t){var e=getColumnIndex(t),i=$headerRow.children().eq(e);return i&amp;&amp;i[0]}function createColumnHeaders(){function t(){$(this).addClass("bk-ui-state-hover")}function e(){$(this).removeClass("bk-ui-state-hover")}$headers.find(".bk-slick-header-column").each(function(){var t=$(this).data("column");t&amp;&amp;trigger(self.onBeforeHeaderCellDestroy,{node:this,column:t})}),$headers.empty(),$headers.width(getHeadersWidth()),$headerRow.find(".bk-slick-headerrow-column").each(function(){var t=$(this).data("column");t&amp;&amp;trigger(self.onBeforeHeaderRowCellDestroy,{node:this,column:t})}),$headerRow.empty();for(var i=0;i&lt;columns.length;i++){var n=columns[i],r=$("&lt;div class='bk-ui-state-default bk-slick-header-column' /&gt;").html("&lt;span class='bk-slick-column-name'&gt;"+n.name+"&lt;/span&gt;").width(n.width-headerColumnWidthDiff).attr("id",""+uid+n.id).attr("title",n.toolTip||"").data("column",n).addClass(n.headerCssClass||"").appendTo($headers);if((options.enableColumnReorder||n.sortable)&amp;&amp;r.on("mouseenter",t).on("mouseleave",e),n.sortable&amp;&amp;(r.addClass("bk-slick-header-sortable"),r.append("&lt;span class='bk-slick-sort-indicator' /&gt;")),trigger(self.onHeaderCellRendered,{node:r[0],column:n}),options.showHeaderRow){var s=$("&lt;div class='bk-ui-state-default bk-slick-headerrow-column l"+i+" r"+i+"'&gt;&lt;/div&gt;").data("column",n).appendTo($headerRow);trigger(self.onHeaderRowCellRendered,{node:s[0],column:n})}}setSortColumns(sortColumns),setupColumnResize(),options.enableColumnReorder&amp;&amp;setupColumnReorder()}function setupColumnSort(){$headers.click(function(t){if(t.metaKey=t.metaKey||t.ctrlKey,!$(t.target).hasClass("bk-slick-resizable-handle")){var e=$(t.target).closest(".bk-slick-header-column");if(e.length){var i=e.data("column");if(i.sortable){if(!getEditorLock().commitCurrentEdit())return;for(var n=null,r=0;r&lt;sortColumns.length;r++)if(sortColumns[r].columnId==i.id){n=sortColumns[r],n.sortAsc=!n.sortAsc;break}t.metaKey&amp;&amp;options.multiColumnSort?n&amp;&amp;sortColumns.splice(r,1):((t.shiftKey||t.metaKey)&amp;&amp;options.multiColumnSort||(sortColumns=[]),n?0==sortColumns.length&amp;&amp;sortColumns.push(n):(n={columnId:i.id,sortAsc:i.defaultSortAsc},sortColumns.push(n))),setSortColumns(sortColumns),options.multiColumnSort?trigger(self.onSort,{multiColumnSort:!0,sortCols:$.map(sortColumns,function(t){return{sortCol:columns[getColumnIndex(t.columnId)],sortAsc:t.sortAsc}})},t):trigger(self.onSort,{multiColumnSort:!1,sortCol:i,sortAsc:n.sortAsc},t)}}}})}function setupColumnReorder(){$headers.filter(":ui-sortable").sortable("destroy"),$headers.sortable({containment:"parent",distance:3,axis:"x",cursor:"default",tolerance:"intersection",helper:"clone",placeholder:"bk-slick-sortable-placeholder bk-ui-state-default bk-slick-header-column",start:function(t,e){e.placeholder.width(e.helper.outerWidth()-headerColumnWidthDiff),$(e.helper).addClass("bk-slick-header-column-active")},beforeStop:function(t,e){$(e.helper).removeClass("bk-slick-header-column-active")},stop:function(t){if(!getEditorLock().commitCurrentEdit())return void $(this).sortable("cancel");for(var e=$headers.sortable("toArray"),i=[],n=0;n&lt;e.length;n++)i.push(columns[getColumnIndex(e[n].replace(uid,""))]);setColumns(i),trigger(self.onColumnsReordered,{}),t.stopPropagation(),setupColumnResize()}})}function setupColumnResize(){var t,e,i,n,r,s,o,a,l;r=$headers.children(),r.find(".bk-slick-resizable-handle").remove(),r.each(function(t,e){columns[t].resizable&amp;&amp;(void 0===a&amp;&amp;(a=t),l=t)}),void 0!==a&amp;&amp;r.each(function(u,h){a&gt;u||options.forceFitColumns&amp;&amp;u&gt;=l||(t=$(h),$("&lt;div class='bk-slick-resizable-handle' /&gt;").appendTo(h).bind("dragstart",function(t,a){if(!getEditorLock().commitCurrentEdit())return!1;n=t.pageX,$(this).parent().addClass("bk-slick-header-column-active");var l=null,h=null;if(r.each(function(t,e){columns[t].previousWidth=$(e).outerWidth()}),options.forceFitColumns)for(l=0,h=0,e=u+1;e&lt;r.length;e++)i=columns[e],i.resizable&amp;&amp;(null!==h&amp;&amp;(i.maxWidth?h+=i.maxWidth-i.previousWidth:h=null),l+=i.previousWidth-Math.max(i.minWidth||0,absoluteColumnMinWidth));var c=0,p=0;for(e=0;u&gt;=e;e++)i=columns[e],i.resizable&amp;&amp;(null!==p&amp;&amp;(i.maxWidth?p+=i.maxWidth-i.previousWidth:p=null),c+=i.previousWidth-Math.max(i.minWidth||0,absoluteColumnMinWidth));null===l&amp;&amp;(l=1e5),null===c&amp;&amp;(c=1e5),null===h&amp;&amp;(h=1e5),null===p&amp;&amp;(p=1e5),o=n+Math.min(l,p),s=n-Math.min(c,h)}).bind("drag",function(t,a){var l,h,c=Math.min(o,Math.max(s,t.pageX))-n;if(0&gt;c){for(h=c,e=u;e&gt;=0;e--)i=columns[e],i.resizable&amp;&amp;(l=Math.max(i.minWidth||0,absoluteColumnMinWidth),h&amp;&amp;i.previousWidth+h&lt;l?(h+=i.previousWidth-l,i.width=l):(i.width=i.previousWidth+h,h=0));if(options.forceFitColumns)for(h=-c,e=u+1;e&lt;r.length;e++)i=columns[e],i.resizable&amp;&amp;(h&amp;&amp;i.maxWidth&amp;&amp;i.maxWidth-i.previousWidth&lt;h?(h-=i.maxWidth-i.previousWidth,i.width=i.maxWidth):(i.width=i.previousWidth+h,h=0))}else{for(h=c,e=u;e&gt;=0;e--)i=columns[e],i.resizable&amp;&amp;(h&amp;&amp;i.maxWidth&amp;&amp;i.maxWidth-i.previousWidth&lt;h?(h-=i.maxWidth-i.previousWidth,i.width=i.maxWidth):(i.width=i.previousWidth+h,h=0));if(options.forceFitColumns)for(h=-c,e=u+1;e&lt;r.length;e++)i=columns[e],i.resizable&amp;&amp;(l=Math.max(i.minWidth||0,absoluteColumnMinWidth),h&amp;&amp;i.previousWidth+h&lt;l?(h+=i.previousWidth-l,i.width=l):(i.width=i.previousWidth+h,h=0))}applyColumnHeaderWidths(),options.syncColumnCellResize&amp;&amp;applyColumnWidths()}).bind("dragend",function(t,n){var s;for($(this).parent().removeClass("bk-slick-header-column-active"),e=0;e&lt;r.length;e++)i=columns[e],s=$(r[e]).outerWidth(),i.previousWidth!==s&amp;&amp;i.rerenderOnResize&amp;&amp;invalidateAllRows();updateCanvasWidth(!0),render(),trigger(self.onColumnsResized,{})}))})}function getVBoxDelta(t){var e=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],i=0;return $.each(e,function(e,n){i+=parseFloat(t.css(n))||0}),i}function measureCellPaddingAndBorder(){var t,e=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],i=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];t=$("&lt;div class='bk-ui-state-default bk-slick-header-column' style='visibility:hidden'&gt;-&lt;/div&gt;").appendTo($headers),headerColumnWidthDiff=headerColumnHeightDiff=0,"border-box"!=t.css("box-sizing")&amp;&amp;"border-box"!=t.css("-moz-box-sizing")&amp;&amp;"border-box"!=t.css("-webkit-box-sizing")&amp;&amp;($.each(e,function(e,i){headerColumnWidthDiff+=parseFloat(t.css(i))||0}),$.each(i,function(e,i){headerColumnHeightDiff+=parseFloat(t.css(i))||0})),t.remove();var n=$("&lt;div class='bk-slick-row' /&gt;").appendTo($canvas);t=$("&lt;div class='bk-slick-cell' id='' style='visibility:hidden'&gt;-&lt;/div&gt;").appendTo(n),cellWidthDiff=cellHeightDiff=0,"border-box"!=t.css("box-sizing")&amp;&amp;"border-box"!=t.css("-moz-box-sizing")&amp;&amp;"border-box"!=t.css("-webkit-box-sizing")&amp;&amp;($.each(e,function(e,i){cellWidthDiff+=parseFloat(t.css(i))||0}),$.each(i,function(e,i){cellHeightDiff+=parseFloat(t.css(i))||0})),n.remove(),absoluteColumnMinWidth=Math.max(headerColumnWidthDiff,cellWidthDiff)}function createCssRules(){$style=$("&lt;style type='text/css' rel='stylesheet' /&gt;").appendTo($("head"));for(var t=options.rowHeight-cellHeightDiff,e=["."+uid+" .bk-slick-header-column { left: 1000px; }","."+uid+" .bk-slick-top-panel { height:"+options.topPanelHeight+"px; }","."+uid+" .bk-slick-headerrow-columns { height:"+options.headerRowHeight+"px; }","."+uid+" .bk-slick-cell { height:"+t+"px; }","."+uid+" .bk-slick-row { height:"+options.rowHeight+"px; }"],i=0;i&lt;columns.length;i++)e.push("."+uid+" .l"+i+" { }"),e.push("."+uid+" .r"+i+" { }");$style[0].styleSheet?$style[0].styleSheet.cssText=e.join(" "):$style[0].appendChild(document.createTextNode(e.join(" ")))}function getColumnCssRules(t){if(!stylesheet){for(var e=document.styleSheets,i=0;i&lt;e.length;i++)if((e[i].ownerNode||e[i].owningElement)==$style[0]){stylesheet=e[i];break}if(!stylesheet)throw new Error("Cannot find stylesheet.");columnCssRulesL=[],columnCssRulesR=[];for(var n,r,s=stylesheet.cssRules||stylesheet.rules,i=0;i&lt;s.length;i++){var o=s[i].selectorText;(n=/\.l\d+/.exec(o))?(r=parseInt(n[0].substr(2,n[0].length-2),10),columnCssRulesL[r]=s[i]):(n=/\.r\d+/.exec(o))&amp;&amp;(r=parseInt(n[0].substr(2,n[0].length-2),10),columnCssRulesR[r]=s[i])}}return{left:columnCssRulesL[t],right:columnCssRulesR[t]}}function removeCssRules(){$style.remove(),stylesheet=null}function destroy(){getEditorLock().cancelCurrentEdit(),trigger(self.onBeforeDestroy,{});for(var t=plugins.length;t--;)unregisterPlugin(plugins[t]);options.enableColumnReorder&amp;&amp;$headers.filter(":ui-sortable").sortable("destroy"),unbindAncestorScrollEvents(),$container.unbind(".bk-slickgrid"),removeCssRules(),$canvas.unbind("draginit dragstart dragend drag"),$container.empty().removeClass(uid)}function trigger(t,e,i){return i=i||new Slick.EventData,e=e||{},e.grid=self,t.notify(e,i,self)}function getEditorLock(){return options.editorLock}function getEditController(){return editController}function getColumnIndex(t){return columnsById[t]}function autosizeColumns(){var t,e,i,n=[],r=0,s=0,o=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW;for(t=0;t&lt;columns.length;t++)e=columns[t],n.push(e.width),s+=e.width,e.resizable&amp;&amp;(r+=e.width-Math.max(e.minWidth,absoluteColumnMinWidth));for(i=s;s&gt;o&amp;&amp;r;){var a=(s-o)/r;for(t=0;t&lt;columns.length&amp;&amp;s&gt;o;t++){e=columns[t];var l=n[t];if(!(!e.resizable||l&lt;=e.minWidth||absoluteColumnMinWidth&gt;=l)){var u=Math.max(e.minWidth,absoluteColumnMinWidth),h=Math.floor(a*(l-u))||1;h=Math.min(h,l-u),s-=h,r-=h,n[t]-=h}}if(s&gt;=i)break;i=s}for(i=s;o&gt;s;){var c=o/s;for(t=0;t&lt;columns.length&amp;&amp;o&gt;s;t++){e=columns[t];var p,d=n[t];p=!e.resizable||e.maxWidth&lt;=d?0:Math.min(Math.floor(c*d)-d,e.maxWidth-d||1e6)||1,s+=p,n[t]+=p}if(i&gt;=s)break;i=s}var f=!1;for(t=0;t&lt;columns.length;t++)columns[t].rerenderOnResize&amp;&amp;columns[t].width!=n[t]&amp;&amp;(f=!0),columns[t].width=n[t];applyColumnHeaderWidths(),updateCanvasWidth(!0),f&amp;&amp;(invalidateAllRows(),render())}function applyColumnHeaderWidths(){if(initialized){for(var t,e=0,i=$headers.children(),n=i.length;n&gt;e;e++)t=$(i[e]),t.width()!==columns[e].width-headerColumnWidthDiff&amp;&amp;t.width(columns[e].width-headerColumnWidthDiff);updateColumnCaches()}}function applyColumnWidths(){for(var t,e,i=0,n=0;n&lt;columns.length;n++)t=columns[n].width,e=getColumnCssRules(n),e.left.style.left=i+"px",e.right.style.right=canvasWidth-i-t+"px",i+=columns[n].width}function setSortColumn(t,e){setSortColumns([{columnId:t,sortAsc:e}])}function setSortColumns(t){sortColumns=t;var e=$headers.children();e.removeClass("bk-slick-header-column-sorted").find(".bk-slick-sort-indicator").removeClass("bk-slick-sort-indicator-asc bk-slick-sort-indicator-desc"),$.each(sortColumns,function(t,i){null==i.sortAsc&amp;&amp;(i.sortAsc=!0);var n=getColumnIndex(i.columnId);null!=n&amp;&amp;e.eq(n).addClass("bk-slick-header-column-sorted").find(".bk-slick-sort-indicator").addClass(i.sortAsc?"bk-slick-sort-indicator-asc":"bk-slick-sort-indicator-desc")})}function getSortColumns(){return sortColumns}function handleSelectedRangesChanged(t,e){selectedRows=[];for(var i={},n=0;n&lt;e.length;n++)for(var r=e[n].fromRow;r&lt;=e[n].toRow;r++){i[r]||(selectedRows.push(r),i[r]={});for(var s=e[n].fromCell;s&lt;=e[n].toCell;s++)canCellBeSelected(r,s)&amp;&amp;(i[r][columns[s].id]=options.selectedCellCssClass)}setCellCssStyles(options.selectedCellCssClass,i),trigger(self.onSelectedRowsChanged,{rows:getSelectedRows()},t)}function getColumns(){return columns}function updateColumnCaches(){columnPosLeft=[],columnPosRight=[];for(var t=0,e=0,i=columns.length;i&gt;e;e++)columnPosLeft[e]=t,columnPosRight[e]=t+columns[e].width,t+=columns[e].width}function setColumns(t){columns=t,columnsById={};for(var e=0;e&lt;columns.length;e++){var i=columns[e]=$.extend({},columnDefaults,columns[e]);columnsById[i.id]=e,i.minWidth&amp;&amp;i.width&lt;i.minWidth&amp;&amp;(i.width=i.minWidth),i.maxWidth&amp;&amp;i.width&gt;i.maxWidth&amp;&amp;(i.width=i.maxWidth)}updateColumnCaches(),initialized&amp;&amp;(invalidateAllRows(),createColumnHeaders(),removeCssRules(),createCssRules(),resizeCanvas(),applyColumnWidths(),handleScroll())}function getOptions(){return options}function setOptions(t){getEditorLock().commitCurrentEdit()&amp;&amp;(makeActiveCellNormal(),options.enableAddRow!==t.enableAddRow&amp;&amp;invalidateRow(getDataLength()),options=$.extend(options,t),validateAndEnforceOptions(),$viewport.css("overflow-y",options.autoHeight?"hidden":"auto"),render())}function validateAndEnforceOptions(){options.autoHeight&amp;&amp;(options.leaveSpaceForNewRows=!1)}function setData(t,e){data=t,invalidateAllRows(),updateRowCount(),e&amp;&amp;scrollTo(0)}function getData(){return data}function getDataLength(){return data.getLength?data.getLength():data.length}function getDataLengthIncludingAddNew(){return getDataLength()+(options.enableAddRow?1:0)}function getDataItem(t){return data.getItem?data.getItem(t):data[t]}function getTopPanel(){return $topPanel[0]}function setTopPanelVisibility(t){options.showTopPanel!=t&amp;&amp;(options.showTopPanel=t,t?$topPanelScroller.slideDown("fast",resizeCanvas):$topPanelScroller.slideUp("fast",resizeCanvas))}function setHeaderRowVisibility(t){options.showHeaderRow!=t&amp;&amp;(options.showHeaderRow=t,t?$headerRowScroller.slideDown("fast",resizeCanvas):$headerRowScroller.slideUp("fast",resizeCanvas))}function getContainerNode(){return $container.get(0)}function getRowTop(t){return options.rowHeight*t-offset}function getRowFromPosition(t){return Math.floor((t+offset)/options.rowHeight)}function scrollTo(t){t=Math.max(t,0),t=Math.min(t,th-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0));var e=offset;page=Math.min(n-1,Math.floor(t/ph)),offset=Math.round(page*cj);var i=t-offset;if(offset!=e){var r=getVisibleRange(i);cleanupRows(r),updateRowPositions()}prevScrollTop!=i&amp;&amp;(vScrollDir=i+offset&gt;prevScrollTop+e?1:-1,$viewport[0].scrollTop=lastRenderedScrollTop=scrollTop=prevScrollTop=i,trigger(self.onViewportChanged,{}))}function defaultFormatter(t,e,i,n,r){return null==i?"":(i+"").replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;")}function getFormatter(t,e){function i(t,e,i,n,r){return o.format(t,e,i,n,r)}var n=data.getItemMetadata&amp;&amp;data.getItemMetadata(t),r=n&amp;&amp;n.columns&amp;&amp;(n.columns[e.id]||n.columns[getColumnIndex(e.id)]),s=r&amp;&amp;r.formatter||n&amp;&amp;n.formatter||e.formatter||options.formatterFactory&amp;&amp;options.formatterFactory.getFormatter(e)||options.defaultFormatter;if(void 0!==s.format){var o=s;s=i}return s}function getEditor(t,e){var i,n=columns[e],r=data.getItemMetadata&amp;&amp;data.getItemMetadata(t),s=r&amp;&amp;r.columns;return i=s&amp;&amp;s[n.id]&amp;&amp;void 0!==s[n.id].editor?s[n.id].editor:s&amp;&amp;s[e]&amp;&amp;void 0!==s[e].editor?s[e].editor:n.editor||options.editorFactory&amp;&amp;options.editorFactory.getEditor(n),void 0!==i.default_view&amp;&amp;(i=i.default_view),i}function getDataItemValueForColumn(t,e){return options.dataItemColumnValueExtractor?options.dataItemColumnValueExtractor(t,e):t[e.field]}function appendRowHtml(t,e,i,n){var r=getDataItem(e),s=n&gt;e&amp;&amp;!r,o="bk-slick-row"+(s?" loading":"")+(e===activeRow?" active":"")+(e%2==1?" odd":" even");r||(o+=" "+options.addNewRowCssClass);var a=data.getItemMetadata&amp;&amp;data.getItemMetadata(e);a&amp;&amp;a.cssClasses&amp;&amp;(o+=" "+a.cssClasses),t.push("&lt;div class='bk-ui-widget-content "+o+"' style='top:"+getRowTop(e)+"px'&gt;");for(var l,u,h=0,c=columns.length;c&gt;h;h++){if(u=columns[h],l=1,a&amp;&amp;a.columns){var p=a.columns[u.id]||a.columns[h];l=p&amp;&amp;p.colspan||1,"*"===l&amp;&amp;(l=c-h)}if(columnPosRight[Math.min(c-1,h+l-1)]&gt;i.leftPx){if(columnPosLeft[h]&gt;i.rightPx)break;appendCellHtml(t,e,h,l,r)}l&gt;1&amp;&amp;(h+=l-1)}t.push("&lt;/div&gt;")}function appendCellHtml(t,e,i,n,r){var s=columns[i],o="bk-slick-cell l"+i+" r"+Math.min(columns.length-1,i+n-1)+(s.cssClass?" "+s.cssClass:"");e===activeRow&amp;&amp;i===activeCell&amp;&amp;(o+=" active");for(var a in cellCssClasses)cellCssClasses[a][e]&amp;&amp;cellCssClasses[a][e][s.id]&amp;&amp;(o+=" "+cellCssClasses[a][e][s.id]);if(t.push("&lt;div class='"+o+"'&gt;"),r){var l=getDataItemValueForColumn(r,s);t.push(getFormatter(e,s)(e,i,l,s,r))}t.push("&lt;/div&gt;"),rowsCache[e].cellRenderQueue.push(i),rowsCache[e].cellColSpans[i]=n}function cleanupRows(t){for(var e in rowsCache)(e=parseInt(e,10))!==activeRow&amp;&amp;(e&lt;t.top||e&gt;t.bottom)&amp;&amp;removeRowFromCache(e)}function invalidate(){updateRowCount(),invalidateAllRows(),render()}function invalidateAllRows(){currentEditor&amp;&amp;makeActiveCellNormal();for(var t in rowsCache)removeRowFromCache(t)}function removeRowFromCache(t){var e=rowsCache[t];e&amp;&amp;(rowNodeFromLastMouseWheelEvent==e.rowNode?(e.rowNode.style.display="none",zombieRowNodeFromLastMouseWheelEvent=rowNodeFromLastMouseWheelEvent):$canvas[0].removeChild(e.rowNode),delete rowsCache[t],delete postProcessedRows[t],renderedRows--,counter_rows_removed++)}function invalidateRows(t){var e,i;if(t&amp;&amp;t.length)for(vScrollDir=0,e=0,i=t.length;i&gt;e;e++)currentEditor&amp;&amp;activeRow===t[e]&amp;&amp;makeActiveCellNormal(),rowsCache[t[e]]&amp;&amp;removeRowFromCache(t[e])}function invalidateRow(t){invalidateRows([t])}function updateCell(t,e){var i=getCellNode(t,e);if(i){var n=columns[e],r=getDataItem(t);currentEditor&amp;&amp;activeRow===t&amp;&amp;activeCell===e?currentEditor.loadValue(r):(i.innerHTML=r?getFormatter(t,n)(t,e,getDataItemValueForColumn(r,n),n,r):"",invalidatePostProcessingResults(t))}}function updateRow(t){var e=rowsCache[t];if(e){ensureCellNodesInRowsCache(t);var i=getDataItem(t);for(var n in e.cellNodesByColumnIdx)if(e.cellNodesByColumnIdx.hasOwnProperty(n)){n=0|n;var r=columns[n],s=e.cellNodesByColumnIdx[n];t===activeRow&amp;&amp;n===activeCell&amp;&amp;currentEditor?currentEditor.loadValue(i):i?s.innerHTML=getFormatter(t,r)(t,n,getDataItemValueForColumn(i,r),r,i):s.innerHTML=""}invalidatePostProcessingResults(t)}}function getViewportHeight(){return parseFloat($.css($container[0],"height",!0))-parseFloat($.css($container[0],"paddingTop",!0))-parseFloat($.css($container[0],"paddingBottom",!0))-parseFloat($.css($headerScroller[0],"height"))-getVBoxDelta($headerScroller)-(options.showTopPanel?options.topPanelHeight+getVBoxDelta($topPanelScroller):0)-(options.showHeaderRow?options.headerRowHeight+getVBoxDelta($headerRowScroller):0)}function resizeCanvas(){initialized&amp;&amp;(viewportH=options.autoHeight?options.rowHeight*getDataLengthIncludingAddNew():getViewportHeight(),numVisibleRows=Math.ceil(viewportH/options.rowHeight),viewportW=parseFloat($.css($container[0],"width",!0)),options.autoHeight||$viewport.height(viewportH),options.forceFitColumns&amp;&amp;autosizeColumns(),updateRowCount(),handleScroll(),lastRenderedScrollLeft=-1,render())}function updateRowCount(){if(initialized){var t=getDataLengthIncludingAddNew(),e=t+(options.leaveSpaceForNewRows?numVisibleRows-1:0),i=viewportHasVScroll;viewportHasVScroll=!options.autoHeight&amp;&amp;e*options.rowHeight&gt;viewportH,makeActiveCellNormal();var r=t-1;for(var s in rowsCache)s&gt;=r&amp;&amp;removeRowFromCache(s);activeCellNode&amp;&amp;activeRow&gt;r&amp;&amp;resetActiveCell();var o=h;th=Math.max(options.rowHeight*e,viewportH-scrollbarDimensions.height),maxSupportedCssHeight&gt;th?(h=ph=th,n=1,cj=0):(h=maxSupportedCssHeight,ph=h/100,n=Math.floor(th/ph),cj=(th-h)/(n-1)),h!==o&amp;&amp;($canvas.css("height",h),scrollTop=$viewport[0].scrollTop);var a=th-viewportH&gt;=scrollTop+offset;0==th||0==scrollTop?page=offset=0:scrollTo(a?scrollTop+offset:th-viewportH),h!=o&amp;&amp;options.autoHeight&amp;&amp;resizeCanvas(),options.forceFitColumns&amp;&amp;i!=viewportHasVScroll&amp;&amp;autosizeColumns(),updateCanvasWidth(!1)}}function getVisibleRange(t,e){return null==t&amp;&amp;(t=scrollTop),null==e&amp;&amp;(e=scrollLeft),{top:getRowFromPosition(t),bottom:getRowFromPosition(t+viewportH)+1,leftPx:e,rightPx:e+viewportW}}function getRenderedRange(t,e){var i=getVisibleRange(t,e),n=Math.round(viewportH/options.rowHeight),r=3;return-1==vScrollDir?(i.top-=n,i.bottom+=r):1==vScrollDir?(i.top-=r,i.bottom+=n):(i.top-=r,i.bottom+=r),i.top=Math.max(0,i.top),i.bottom=Math.min(getDataLengthIncludingAddNew()-1,i.bottom),i.leftPx-=viewportW,i.rightPx+=viewportW,i.leftPx=Math.max(0,i.leftPx),i.rightPx=Math.min(canvasWidth,i.rightPx),i}function ensureCellNodesInRowsCache(t){var e=rowsCache[t];if(e&amp;&amp;e.cellRenderQueue.length)for(var i=e.rowNode.lastChild;e.cellRenderQueue.length;){var n=e.cellRenderQueue.pop();e.cellNodesByColumnIdx[n]=i,i=i.previousSibling}}function cleanUpCells(t,e){var i=0,n=rowsCache[e],r=[];for(var s in n.cellNodesByColumnIdx)if(n.cellNodesByColumnIdx.hasOwnProperty(s)){s=0|s;var o=n.cellColSpans[s];(columnPosLeft[s]&gt;t.rightPx||columnPosRight[Math.min(columns.length-1,s+o-1)]&lt;t.leftPx)&amp;&amp;(e!=activeRow||s!=activeCell)&amp;&amp;r.push(s)}for(var a;null!=(a=r.pop());)n.rowNode.removeChild(n.cellNodesByColumnIdx[a]),delete n.cellColSpans[a],delete n.cellNodesByColumnIdx[a],postProcessedRows[e]&amp;&amp;delete postProcessedRows[e][a],i++}function cleanUpAndRenderCells(t){for(var e,i,n,r=[],s=[],o=0,a=t.top,l=t.bottom;l&gt;=a;a++)if(e=rowsCache[a]){ensureCellNodesInRowsCache(a),cleanUpCells(t,a),i=0;var u=data.getItemMetadata&amp;&amp;data.getItemMetadata(a);u=u&amp;&amp;u.columns;for(var h=getDataItem(a),c=0,p=columns.length;p&gt;c&amp;&amp;!(columnPosLeft[c]&gt;t.rightPx);c++)if(null==(n=e.cellColSpans[c])){if(n=1,u){var d=u[columns[c].id]||u[c];n=d&amp;&amp;d.colspan||1,"*"===n&amp;&amp;(n=p-c)}columnPosRight[Math.min(p-1,c+n-1)]&gt;t.leftPx&amp;&amp;(appendCellHtml(r,a,c,n,h),i++),c+=n&gt;1?n-1:0}else c+=n&gt;1?n-1:0;i&amp;&amp;(o+=i,s.push(a))}if(r.length){var f=document.createElement("div");f.innerHTML=r.join("");for(var g,m;null!=(g=s.pop());){e=rowsCache[g];for(var _;null!=(_=e.cellRenderQueue.pop());)m=f.lastChild,e.rowNode.appendChild(m),e.cellNodesByColumnIdx[_]=m}}}function renderRows(t){for(var e=$canvas[0],i=[],n=[],r=!1,s=getDataLength(),o=t.top,a=t.bottom;a&gt;=o;o++)rowsCache[o]||(renderedRows++,n.push(o),rowsCache[o]={rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]},appendRowHtml(i,o,t,s),activeCellNode&amp;&amp;activeRow===o&amp;&amp;(r=!0),counter_rows_rendered++);if(n.length){var l=document.createElement("div");l.innerHTML=i.join("");for(var o=0,a=n.length;a&gt;o;o++)rowsCache[n[o]].rowNode=e.appendChild(l.firstChild);
        r&amp;&amp;(activeCellNode=getCellNode(activeRow,activeCell))}}function startPostProcessing(){options.enableAsyncPostRender&amp;&amp;(clearTimeout(h_postrender),h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}function invalidatePostProcessingResults(t){delete postProcessedRows[t],postProcessFromRow=Math.min(postProcessFromRow,t),postProcessToRow=Math.max(postProcessToRow,t),startPostProcessing()}function updateRowPositions(){for(var t in rowsCache)rowsCache[t].rowNode.style.top=getRowTop(t)+"px"}function render(){if(initialized){var t=getVisibleRange(),e=getRenderedRange();cleanupRows(e),lastRenderedScrollLeft!=scrollLeft&amp;&amp;cleanUpAndRenderCells(e),renderRows(e),postProcessFromRow=t.top,postProcessToRow=Math.min(getDataLengthIncludingAddNew()-1,t.bottom),startPostProcessing(),lastRenderedScrollTop=scrollTop,lastRenderedScrollLeft=scrollLeft,h_render=null}}function handleHeaderRowScroll(){var t=$headerRowScroller[0].scrollLeft;t!=$viewport[0].scrollLeft&amp;&amp;($viewport[0].scrollLeft=t)}function handleScroll(){scrollTop=$viewport[0].scrollTop,scrollLeft=$viewport[0].scrollLeft;var t=Math.abs(scrollTop-prevScrollTop),e=Math.abs(scrollLeft-prevScrollLeft);if(e&amp;&amp;(prevScrollLeft=scrollLeft,$headerScroller[0].scrollLeft=scrollLeft,$topPanelScroller[0].scrollLeft=scrollLeft,$headerRowScroller[0].scrollLeft=scrollLeft),t)if(vScrollDir=scrollTop&gt;prevScrollTop?1:-1,prevScrollTop=scrollTop,viewportH&gt;t)scrollTo(scrollTop+offset);else{var i=offset;page=h==viewportH?0:Math.min(n-1,Math.floor(scrollTop*((th-viewportH)/(h-viewportH))*(1/ph))),offset=Math.round(page*cj),i!=offset&amp;&amp;invalidateAllRows()}(e||t)&amp;&amp;(h_render&amp;&amp;clearTimeout(h_render),(Math.abs(lastRenderedScrollTop-scrollTop)&gt;20||Math.abs(lastRenderedScrollLeft-scrollLeft)&gt;20)&amp;&amp;(options.forceSyncScrolling||Math.abs(lastRenderedScrollTop-scrollTop)&lt;viewportH&amp;&amp;Math.abs(lastRenderedScrollLeft-scrollLeft)&lt;viewportW?render():h_render=setTimeout(render,50),trigger(self.onViewportChanged,{}))),trigger(self.onScroll,{scrollLeft:scrollLeft,scrollTop:scrollTop})}function asyncPostProcessRows(){for(var t=getDataLength();postProcessToRow&gt;=postProcessFromRow;){var e=vScrollDir&gt;=0?postProcessFromRow++:postProcessToRow--,i=rowsCache[e];if(i&amp;&amp;!(e&gt;=t)){postProcessedRows[e]||(postProcessedRows[e]={}),ensureCellNodesInRowsCache(e);for(var n in i.cellNodesByColumnIdx)if(i.cellNodesByColumnIdx.hasOwnProperty(n)){n=0|n;var r=columns[n];if(r.asyncPostRender&amp;&amp;!postProcessedRows[e][n]){var s=i.cellNodesByColumnIdx[n];s&amp;&amp;r.asyncPostRender(s,e,getDataItem(e),r),postProcessedRows[e][n]=!0}}return void(h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}}}function updateCellCssStylesOnRenderedRows(t,e){var i,n,r,s;for(var o in rowsCache){if(s=e&amp;&amp;e[o],r=t&amp;&amp;t[o],s)for(n in s)r&amp;&amp;s[n]==r[n]||(i=getCellNode(o,getColumnIndex(n)),i&amp;&amp;$(i).removeClass(s[n]));if(r)for(n in r)s&amp;&amp;s[n]==r[n]||(i=getCellNode(o,getColumnIndex(n)),i&amp;&amp;$(i).addClass(r[n]))}}function addCellCssStyles(t,e){if(cellCssClasses[t])throw"addCellCssStyles: cell CSS hash with key '"+t+"' already exists.";cellCssClasses[t]=e,updateCellCssStylesOnRenderedRows(e,null),trigger(self.onCellCssStylesChanged,{key:t,hash:e})}function removeCellCssStyles(t){cellCssClasses[t]&amp;&amp;(updateCellCssStylesOnRenderedRows(null,cellCssClasses[t]),delete cellCssClasses[t],trigger(self.onCellCssStylesChanged,{key:t,hash:null}))}function setCellCssStyles(t,e){var i=cellCssClasses[t];cellCssClasses[t]=e,updateCellCssStylesOnRenderedRows(e,i),trigger(self.onCellCssStylesChanged,{key:t,hash:e})}function getCellCssStyles(t){return cellCssClasses[t]}function flashCell(t,e,i){function n(t){t&amp;&amp;setTimeout(function(){r.queue(function(){r.toggleClass(options.cellFlashingCssClass).dequeue(),n(t-1)})},i)}if(i=i||100,rowsCache[t]){var r=$(getCellNode(t,e));n(4)}}function handleMouseWheel(t){var e=$(t.target).closest(".bk-slick-row")[0];e!=rowNodeFromLastMouseWheelEvent&amp;&amp;(zombieRowNodeFromLastMouseWheelEvent&amp;&amp;zombieRowNodeFromLastMouseWheelEvent!=e&amp;&amp;($canvas[0].removeChild(zombieRowNodeFromLastMouseWheelEvent),zombieRowNodeFromLastMouseWheelEvent=null),rowNodeFromLastMouseWheelEvent=e)}function handleDragInit(t,e){var i=getCellFromEvent(t);if(!i||!cellExists(i.row,i.cell))return!1;var n=trigger(self.onDragInit,e,t);return t.isImmediatePropagationStopped()?n:!1}function handleDragStart(t,e){var i=getCellFromEvent(t);if(!i||!cellExists(i.row,i.cell))return!1;var n=trigger(self.onDragStart,e,t);return t.isImmediatePropagationStopped()?n:!1}function handleDrag(t,e){return trigger(self.onDrag,e,t)}function handleDragEnd(t,e){trigger(self.onDragEnd,e,t)}function handleKeyDown(t){trigger(self.onKeyDown,{row:activeRow,cell:activeCell},t);var e=t.isImmediatePropagationStopped();if(!e)if(t.shiftKey||t.altKey||t.ctrlKey)9!=t.which||!t.shiftKey||t.ctrlKey||t.altKey||(e=navigatePrev());else if(27==t.which){if(!getEditorLock().isActive())return;cancelEditAndSetFocus()}else 34==t.which?(navigatePageDown(),e=!0):33==t.which?(navigatePageUp(),e=!0):37==t.which?e=navigateLeft():39==t.which?e=navigateRight():38==t.which?e=navigateUp():40==t.which?e=navigateDown():9==t.which?e=navigateNext():13==t.which&amp;&amp;(options.editable&amp;&amp;(currentEditor?activeRow===getDataLength()?navigateDown():commitEditAndSetFocus():getEditorLock().commitCurrentEdit()&amp;&amp;makeActiveCellEditable()),e=!0);if(e){t.stopPropagation(),t.preventDefault();try{t.originalEvent.keyCode=0}catch(i){}}}function handleClick(t){currentEditor||(t.target!=document.activeElement||$(t.target).hasClass("bk-slick-cell"))&amp;&amp;setFocus();var e=getCellFromEvent(t);!e||null!==currentEditor&amp;&amp;activeRow==e.row&amp;&amp;activeCell==e.cell||(trigger(self.onClick,{row:e.row,cell:e.cell},t),t.isImmediatePropagationStopped()||activeCell==e.cell&amp;&amp;activeRow==e.row||!canCellBeActive(e.row,e.cell)||(!getEditorLock().isActive()||getEditorLock().commitCurrentEdit())&amp;&amp;(scrollRowIntoView(e.row,!1),setActiveCellInternal(getCellNode(e.row,e.cell))))}function handleContextMenu(t){var e=$(t.target).closest(".bk-slick-cell",$canvas);0!==e.length&amp;&amp;(activeCellNode!==e[0]||null===currentEditor)&amp;&amp;trigger(self.onContextMenu,{},t)}function handleDblClick(t){var e=getCellFromEvent(t);!e||null!==currentEditor&amp;&amp;activeRow==e.row&amp;&amp;activeCell==e.cell||(trigger(self.onDblClick,{row:e.row,cell:e.cell},t),t.isImmediatePropagationStopped()||options.editable&amp;&amp;gotoCell(e.row,e.cell,!0))}function handleHeaderMouseEnter(t){trigger(self.onHeaderMouseEnter,{column:$(this).data("column")},t)}function handleHeaderMouseLeave(t){trigger(self.onHeaderMouseLeave,{column:$(this).data("column")},t)}function handleHeaderContextMenu(t){var e=$(t.target).closest(".bk-slick-header-column",".bk-slick-header-columns"),i=e&amp;&amp;e.data("column");trigger(self.onHeaderContextMenu,{column:i},t)}function handleHeaderClick(t){var e=$(t.target).closest(".bk-slick-header-column",".bk-slick-header-columns"),i=e&amp;&amp;e.data("column");i&amp;&amp;trigger(self.onHeaderClick,{column:i},t)}function handleMouseEnter(t){trigger(self.onMouseEnter,{},t)}function handleMouseLeave(t){trigger(self.onMouseLeave,{},t)}function cellExists(t,e){return!(0&gt;t||t&gt;=getDataLength()||0&gt;e||e&gt;=columns.length)}function getCellFromPoint(t,e){for(var i=getRowFromPosition(e),n=0,r=0,s=0;s&lt;columns.length&amp;&amp;t&gt;r;s++)r+=columns[s].width,n++;return 0&gt;n&amp;&amp;(n=0),{row:i,cell:n-1}}function getCellFromNode(t){var e=/l\d+/.exec(t.className);if(!e)throw"getCellFromNode: cannot get cell - "+t.className;return parseInt(e[0].substr(1,e[0].length-1),10)}function getRowFromNode(t){for(var e in rowsCache)if(rowsCache[e].rowNode===t)return 0|e;return null}function getCellFromEvent(t){var e=$(t.target).closest(".bk-slick-cell",$canvas);if(!e.length)return null;var i=getRowFromNode(e[0].parentNode),n=getCellFromNode(e[0]);return null==i||null==n?null:{row:i,cell:n}}function getCellNodeBox(t,e){if(!cellExists(t,e))return null;for(var i=getRowTop(t),n=i+options.rowHeight-1,r=0,s=0;e&gt;s;s++)r+=columns[s].width;var o=r+columns[e].width;return{top:i,left:r,bottom:n,right:o}}function resetActiveCell(){setActiveCellInternal(null,!1)}function setFocus(){-1==tabbingDirection?$focusSink[0].focus():$focusSink2[0].focus()}function scrollCellIntoView(t,e,i){scrollRowIntoView(t,i);var n=getColspan(t,e),r=columnPosLeft[e],s=columnPosRight[e+(n&gt;1?n-1:0)],o=scrollLeft+viewportW;scrollLeft&gt;r?($viewport.scrollLeft(r),handleScroll(),render()):s&gt;o&amp;&amp;($viewport.scrollLeft(Math.min(r,s-$viewport[0].clientWidth)),handleScroll(),render())}function setActiveCellInternal(t,e){null!==activeCellNode&amp;&amp;(makeActiveCellNormal(),$(activeCellNode).removeClass("active"),rowsCache[activeRow]&amp;&amp;$(rowsCache[activeRow].rowNode).removeClass("active"));var i=activeCellNode!==t;activeCellNode=t,null!=activeCellNode?(activeRow=getRowFromNode(activeCellNode.parentNode),activeCell=activePosX=getCellFromNode(activeCellNode),null==e&amp;&amp;(e=activeRow==getDataLength()||options.autoEdit),$(activeCellNode).addClass("active"),$(rowsCache[activeRow].rowNode).addClass("active"),options.editable&amp;&amp;e&amp;&amp;isCellPotentiallyEditable(activeRow,activeCell)&amp;&amp;(clearTimeout(h_editorLoader),options.asyncEditorLoading?h_editorLoader=setTimeout(function(){makeActiveCellEditable()},options.asyncEditorLoadDelay):makeActiveCellEditable())):activeRow=activeCell=null,i&amp;&amp;trigger(self.onActiveCellChanged,getActiveCell())}function clearTextSelection(){if(document.selection&amp;&amp;document.selection.empty)try{document.selection.empty()}catch(t){}else if(window.getSelection){var e=window.getSelection();e&amp;&amp;e.removeAllRanges&amp;&amp;e.removeAllRanges()}}function isCellPotentiallyEditable(t,e){var i=getDataLength();return i&gt;t&amp;&amp;!getDataItem(t)?!1:columns[e].cannotTriggerInsert&amp;&amp;t&gt;=i?!1:getEditor(t,e)?!0:!1}function makeActiveCellNormal(){if(currentEditor){if(trigger(self.onBeforeCellEditorDestroy,{editor:currentEditor}),currentEditor.destroy(),currentEditor=null,activeCellNode){var t=getDataItem(activeRow);if($(activeCellNode).removeClass("editable invalid"),t){var e=columns[activeCell],i=getFormatter(activeRow,e);activeCellNode.innerHTML=i(activeRow,activeCell,getDataItemValueForColumn(t,e),e,t),invalidatePostProcessingResults(activeRow)}}navigator.userAgent.toLowerCase().match(/msie/)&amp;&amp;clearTextSelection(),getEditorLock().deactivate(editController)}}function makeActiveCellEditable(t){if(activeCellNode){if(!options.editable)throw"Grid : makeActiveCellEditable : should never get called when options.editable is false";if(clearTimeout(h_editorLoader),isCellPotentiallyEditable(activeRow,activeCell)){var e=columns[activeCell],i=getDataItem(activeRow);if(trigger(self.onBeforeEditCell,{row:activeRow,cell:activeCell,item:i,column:e})===!1)return void setFocus();getEditorLock().activate(editController),$(activeCellNode).addClass("editable"),t||(activeCellNode.innerHTML=""),currentEditor=new(t||getEditor(activeRow,activeCell))({grid:self,gridPosition:absBox($container[0]),position:absBox(activeCellNode),container:activeCellNode,column:e,item:i||{},commitChanges:commitEditAndSetFocus,cancelChanges:cancelEditAndSetFocus}),i&amp;&amp;currentEditor.loadValue(i),serializedEditorValue=currentEditor.serializeValue(),currentEditor.position&amp;&amp;handleActiveCellPositionChange()}}}function commitEditAndSetFocus(){getEditorLock().commitCurrentEdit()&amp;&amp;(setFocus(),options.autoEdit&amp;&amp;navigateDown())}function cancelEditAndSetFocus(){getEditorLock().cancelCurrentEdit()&amp;&amp;setFocus()}function absBox(t){var e={top:t.offsetTop,left:t.offsetLeft,bottom:0,right:0,width:$(t).outerWidth(),height:$(t).outerHeight(),visible:!0};e.bottom=e.top+e.height,e.right=e.left+e.width;for(var i=t.offsetParent;(t=t.parentNode)!=document.body;)e.visible&amp;&amp;t.scrollHeight!=t.offsetHeight&amp;&amp;"visible"!=$(t).css("overflowY")&amp;&amp;(e.visible=e.bottom&gt;t.scrollTop&amp;&amp;e.top&lt;t.scrollTop+t.clientHeight),e.visible&amp;&amp;t.scrollWidth!=t.offsetWidth&amp;&amp;"visible"!=$(t).css("overflowX")&amp;&amp;(e.visible=e.right&gt;t.scrollLeft&amp;&amp;e.left&lt;t.scrollLeft+t.clientWidth),e.left-=t.scrollLeft,e.top-=t.scrollTop,t===i&amp;&amp;(e.left+=t.offsetLeft,e.top+=t.offsetTop,i=t.offsetParent),e.bottom=e.top+e.height,e.right=e.left+e.width;return e}function getActiveCellPosition(){return absBox(activeCellNode)}function getGridPosition(){return absBox($container[0])}function handleActiveCellPositionChange(){if(activeCellNode&amp;&amp;(trigger(self.onActiveCellPositionChanged,{}),currentEditor)){var t=getActiveCellPosition();currentEditor.show&amp;&amp;currentEditor.hide&amp;&amp;(t.visible?currentEditor.show():currentEditor.hide()),currentEditor.position&amp;&amp;currentEditor.position(t)}}function getCellEditor(){return currentEditor}function getActiveCell(){return activeCellNode?{row:activeRow,cell:activeCell}:null}function getActiveCellNode(){return activeCellNode}function scrollRowIntoView(t,e){var i=t*options.rowHeight,n=(t+1)*options.rowHeight-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0);(t+1)*options.rowHeight&gt;scrollTop+viewportH+offset?(scrollTo(e?i:n),render()):t*options.rowHeight&lt;scrollTop+offset&amp;&amp;(scrollTo(e?n:i),render())}function scrollRowToTop(t){scrollTo(t*options.rowHeight),render()}function scrollPage(t){var e=t*numVisibleRows;if(scrollTo((getRowFromPosition(scrollTop)+e)*options.rowHeight),render(),options.enableCellNavigation&amp;&amp;null!=activeRow){var i=activeRow+e,n=getDataLengthIncludingAddNew();i&gt;=n&amp;&amp;(i=n-1),0&gt;i&amp;&amp;(i=0);for(var r=0,s=null,o=activePosX;activePosX&gt;=r;)canCellBeActive(i,r)&amp;&amp;(s=r),r+=getColspan(i,r);null!==s?(setActiveCellInternal(getCellNode(i,s)),activePosX=o):resetActiveCell()}}function navigatePageDown(){scrollPage(1)}function navigatePageUp(){scrollPage(-1)}function getColspan(t,e){var i=data.getItemMetadata&amp;&amp;data.getItemMetadata(t);if(!i||!i.columns)return 1;var n=i.columns[columns[e].id]||i.columns[e],r=n&amp;&amp;n.colspan;return r="*"===r?columns.length-e:r||1}function findFirstFocusableCell(t){for(var e=0;e&lt;columns.length;){if(canCellBeActive(t,e))return e;e+=getColspan(t,e)}return null}function findLastFocusableCell(t){for(var e=0,i=null;e&lt;columns.length;)canCellBeActive(t,e)&amp;&amp;(i=e),e+=getColspan(t,e);return i}function gotoRight(t,e,i){if(e&gt;=columns.length)return null;do e+=getColspan(t,e);while(e&lt;columns.length&amp;&amp;!canCellBeActive(t,e));return e&lt;columns.length?{row:t,cell:e,posX:e}:null}function gotoLeft(t,e,i){if(0&gt;=e)return null;var n=findFirstFocusableCell(t);if(null===n||n&gt;=e)return null;for(var r,s={row:t,cell:n,posX:n};;){if(r=gotoRight(s.row,s.cell,s.posX),!r)return null;if(r.cell&gt;=e)return s;s=r}}function gotoDown(t,e,i){for(var n,r=getDataLengthIncludingAddNew();;){if(++t&gt;=r)return null;for(n=e=0;i&gt;=e;)n=e,e+=getColspan(t,e);if(canCellBeActive(t,n))return{row:t,cell:n,posX:i}}}function gotoUp(t,e,i){for(var n;;){if(--t&lt;0)return null;for(n=e=0;i&gt;=e;)n=e,e+=getColspan(t,e);if(canCellBeActive(t,n))return{row:t,cell:n,posX:i}}}function gotoNext(t,e,i){if(null==t&amp;&amp;null==e&amp;&amp;(t=e=i=0,canCellBeActive(t,e)))return{row:t,cell:e,posX:e};var n=gotoRight(t,e,i);if(n)return n;for(var r=null,s=getDataLengthIncludingAddNew();++t&lt;s;)if(r=findFirstFocusableCell(t),null!==r)return{row:t,cell:r,posX:r};return null}function gotoPrev(t,e,i){if(null==t&amp;&amp;null==e&amp;&amp;(t=getDataLengthIncludingAddNew()-1,e=i=columns.length-1,canCellBeActive(t,e)))return{row:t,cell:e,posX:e};for(var n,r;!n&amp;&amp;!(n=gotoLeft(t,e,i));){if(--t&lt;0)return null;e=0,r=findLastFocusableCell(t),null!==r&amp;&amp;(n={row:t,cell:r,posX:r})}return n}function navigateRight(){return navigate("right")}function navigateLeft(){return navigate("left")}function navigateDown(){return navigate("down")}function navigateUp(){return navigate("up")}function navigateNext(){return navigate("next")}function navigatePrev(){return navigate("prev")}function navigate(t){if(!options.enableCellNavigation)return!1;if(!activeCellNode&amp;&amp;"prev"!=t&amp;&amp;"next"!=t)return!1;if(!getEditorLock().commitCurrentEdit())return!0;setFocus();var e={up:-1,down:1,left:-1,right:1,prev:-1,next:1};tabbingDirection=e[t];var i={up:gotoUp,down:gotoDown,left:gotoLeft,right:gotoRight,prev:gotoPrev,next:gotoNext},n=i[t],r=n(activeRow,activeCell,activePosX);if(r){var s=r.row==getDataLength();return scrollCellIntoView(r.row,r.cell,!s),setActiveCellInternal(getCellNode(r.row,r.cell)),activePosX=r.posX,!0}return setActiveCellInternal(getCellNode(activeRow,activeCell)),!1}function getCellNode(t,e){return rowsCache[t]?(ensureCellNodesInRowsCache(t),rowsCache[t].cellNodesByColumnIdx[e]):null}function setActiveCell(t,e){initialized&amp;&amp;(t&gt;getDataLength()||0&gt;t||e&gt;=columns.length||0&gt;e||options.enableCellNavigation&amp;&amp;(scrollCellIntoView(t,e,!1),setActiveCellInternal(getCellNode(t,e),!1)))}function canCellBeActive(t,e){if(!options.enableCellNavigation||t&gt;=getDataLengthIncludingAddNew()||0&gt;t||e&gt;=columns.length||0&gt;e)return!1;var i=data.getItemMetadata&amp;&amp;data.getItemMetadata(t);if(i&amp;&amp;"boolean"==typeof i.focusable)return i.focusable;var n=i&amp;&amp;i.columns;return n&amp;&amp;n[columns[e].id]&amp;&amp;"boolean"==typeof n[columns[e].id].focusable?n[columns[e].id].focusable:n&amp;&amp;n[e]&amp;&amp;"boolean"==typeof n[e].focusable?n[e].focusable:columns[e].focusable}function canCellBeSelected(t,e){if(t&gt;=getDataLength()||0&gt;t||e&gt;=columns.length||0&gt;e)return!1;var i=data.getItemMetadata&amp;&amp;data.getItemMetadata(t);if(i&amp;&amp;"boolean"==typeof i.selectable)return i.selectable;var n=i&amp;&amp;i.columns&amp;&amp;(i.columns[columns[e].id]||i.columns[e]);return n&amp;&amp;"boolean"==typeof n.selectable?n.selectable:columns[e].selectable}function gotoCell(t,e,i){if(initialized&amp;&amp;canCellBeActive(t,e)&amp;&amp;getEditorLock().commitCurrentEdit()){scrollCellIntoView(t,e,!1);var n=getCellNode(t,e);setActiveCellInternal(n,i||t===getDataLength()||options.autoEdit),currentEditor||setFocus()}}function commitCurrentEdit(){var t=getDataItem(activeRow),e=columns[activeCell];if(currentEditor){if(currentEditor.isValueChanged()){var i=currentEditor.validate();if(i.valid){if(activeRow&lt;getDataLength()){var n={row:activeRow,cell:activeCell,editor:currentEditor,serializedValue:currentEditor.serializeValue(),prevSerializedValue:serializedEditorValue,execute:function(){this.editor.applyValue(t,this.serializedValue),updateRow(this.row),trigger(self.onCellChange,{row:activeRow,cell:activeCell,item:t})},undo:function(){this.editor.applyValue(t,this.prevSerializedValue),updateRow(this.row),trigger(self.onCellChange,{row:activeRow,cell:activeCell,item:t})}};options.editCommandHandler?(makeActiveCellNormal(),options.editCommandHandler(t,e,n)):(n.execute(),makeActiveCellNormal())}else{var r={};currentEditor.applyValue(r,currentEditor.serializeValue()),makeActiveCellNormal(),trigger(self.onAddNewRow,{item:r,column:e})}return!getEditorLock().isActive()}return $(activeCellNode).removeClass("invalid"),$(activeCellNode).width(),$(activeCellNode).addClass("invalid"),trigger(self.onValidationError,{editor:currentEditor,cellNode:activeCellNode,validationResults:i,row:activeRow,cell:activeCell,column:e}),currentEditor.focus(),!1}makeActiveCellNormal()}return!0}function cancelCurrentEdit(){return makeActiveCellNormal(),!0}function rowsToRanges(t){for(var e=[],i=columns.length-1,n=0;n&lt;t.length;n++)e.push(new Slick.Range(t[n],0,t[n],i));return e}function getSelectedRows(){if(!selectionModel)throw"Selection model is not set";return selectedRows}function setSelectedRows(t){if(!selectionModel)throw"Selection model is not set";selectionModel.setSelectedRanges(rowsToRanges(t))}var defaults={explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,enableCellNavigation:!0,enableColumnReorder:!0,asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,autoHeight:!1,editorLock:Slick.GlobalEditorLock,showHeaderRow:!1,headerRowHeight:25,showTopPanel:!1,topPanelHeight:25,formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",selectedCellCssClass:"selected",multiSelect:!0,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,fullWidthRows:!1,multiColumnSort:!1,defaultFormatter:defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row"},columnDefaults={name:"",resizable:!0,sortable:!1,minWidth:30,rerenderOnResize:!1,headerCssClass:null,defaultSortAsc:!0,focusable:!0,selectable:!0},th,h,ph,n,cj,page=0,offset=0,vScrollDir=1,initialized=!1,$container,uid="slickgrid_"+Math.round(1e6*Math.random()),self=this,$focusSink,$focusSink2,$headerScroller,$headers,$headerRow,$headerRowScroller,$headerRowSpacer,$topPanelScroller,$topPanel,$viewport,$canvas,$style,$boundAncestors,stylesheet,columnCssRulesL,columnCssRulesR,viewportH,viewportW,canvasWidth,viewportHasHScroll,viewportHasVScroll,headerColumnWidthDiff=0,headerColumnHeightDiff=0,cellWidthDiff=0,cellHeightDiff=0,absoluteColumnMinWidth,tabbingDirection=1,activePosX,activeRow,activeCell,activeCellNode=null,currentEditor=null,serializedEditorValue,editController,rowsCache={},renderedRows=0,numVisibleRows,prevScrollTop=0,scrollTop=0,lastRenderedScrollTop=0,lastRenderedScrollLeft=0,prevScrollLeft=0,scrollLeft=0,selectionModel,selectedRows=[],plugins=[],cellCssClasses={},columnsById={},sortColumns=[],columnPosLeft=[],columnPosRight=[],h_editorLoader=null,h_render=null,h_postrender=null,postProcessedRows={},postProcessToRow=null,postProcessFromRow=null,counter_rows_rendered=0,counter_rows_removed=0,rowNodeFromLastMouseWheelEvent,zombieRowNodeFromLastMouseWheelEvent;this.debug=function(){var t="";t+="\ncounter_rows_rendered:  "+counter_rows_rendered,t+="\ncounter_rows_removed:  "+counter_rows_removed,t+="\nrenderedRows:  "+renderedRows,t+="\nnumVisibleRows:  "+numVisibleRows,t+="\nmaxSupportedCssHeight:  "+maxSupportedCssHeight,t+="\nn(umber of pages):  "+n,t+="\n(current) page:  "+page,t+="\npage height (ph):  "+ph,t+="\nvScrollDir:  "+vScrollDir,alert(t)},this.eval=function(expr){return eval(expr)},$.extend(this,{slickGridVersion:"2.1",onScroll:new Slick.Event,onSort:new Slick.Event,onHeaderMouseEnter:new Slick.Event,onHeaderMouseLeave:new Slick.Event,onHeaderContextMenu:new Slick.Event,onHeaderClick:new Slick.Event,onHeaderCellRendered:new Slick.Event,onBeforeHeaderCellDestroy:new Slick.Event,onHeaderRowCellRendered:new Slick.Event,onBeforeHeaderRowCellDestroy:new Slick.Event,onMouseEnter:new Slick.Event,onMouseLeave:new Slick.Event,onClick:new Slick.Event,onDblClick:new Slick.Event,onContextMenu:new Slick.Event,onKeyDown:new Slick.Event,onAddNewRow:new Slick.Event,onValidationError:new Slick.Event,onViewportChanged:new Slick.Event,onColumnsReordered:new Slick.Event,onColumnsResized:new Slick.Event,onCellChange:new Slick.Event,onBeforeEditCell:new Slick.Event,onBeforeCellEditorDestroy:new Slick.Event,onBeforeDestroy:new Slick.Event,onActiveCellChanged:new Slick.Event,onActiveCellPositionChanged:new Slick.Event,onDragInit:new Slick.Event,onDragStart:new Slick.Event,onDrag:new Slick.Event,onDragEnd:new Slick.Event,onSelectedRowsChanged:new Slick.Event,onCellCssStylesChanged:new Slick.Event,registerPlugin:registerPlugin,unregisterPlugin:unregisterPlugin,getColumns:getColumns,setColumns:setColumns,getColumnIndex:getColumnIndex,updateColumnHeader:updateColumnHeader,setSortColumn:setSortColumn,setSortColumns:setSortColumns,getSortColumns:getSortColumns,autosizeColumns:autosizeColumns,getOptions:getOptions,setOptions:setOptions,getData:getData,getDataLength:getDataLength,getDataItem:getDataItem,setData:setData,getSelectionModel:getSelectionModel,setSelectionModel:setSelectionModel,getSelectedRows:getSelectedRows,setSelectedRows:setSelectedRows,getContainerNode:getContainerNode,render:render,invalidate:invalidate,invalidateRow:invalidateRow,invalidateRows:invalidateRows,invalidateAllRows:invalidateAllRows,updateCell:updateCell,updateRow:updateRow,getViewport:getVisibleRange,getRenderedRange:getRenderedRange,resizeCanvas:resizeCanvas,updateRowCount:updateRowCount,scrollRowIntoView:scrollRowIntoView,scrollRowToTop:scrollRowToTop,scrollCellIntoView:scrollCellIntoView,getCanvasNode:getCanvasNode,focus:setFocus,getCellFromPoint:getCellFromPoint,getCellFromEvent:getCellFromEvent,getActiveCell:getActiveCell,setActiveCell:setActiveCell,getActiveCellNode:getActiveCellNode,getActiveCellPosition:getActiveCellPosition,resetActiveCell:resetActiveCell,editActiveCell:makeActiveCellEditable,getCellEditor:getCellEditor,getCellNode:getCellNode,getCellNodeBox:getCellNodeBox,canCellBeSelected:canCellBeSelected,canCellBeActive:canCellBeActive,navigatePrev:navigatePrev,navigateNext:navigateNext,navigateUp:navigateUp,navigateDown:navigateDown,navigateLeft:navigateLeft,navigateRight:navigateRight,navigatePageUp:navigatePageUp,navigatePageDown:navigatePageDown,gotoCell:gotoCell,getTopPanel:getTopPanel,setTopPanelVisibility:setTopPanelVisibility,setHeaderRowVisibility:setHeaderRowVisibility,getHeaderRow:getHeaderRow,getHeaderRowColumn:getHeaderRowColumn,getGridPosition:getGridPosition,flashCell:flashCell,addCellCssStyles:addCellCssStyles,setCellCssStyles:setCellCssStyles,removeCellCssStyles:removeCellCssStyles,getCellCssStyles:getCellCssStyles,init:finishInitialization,destroy:destroy,getEditorLock:getEditorLock,getEditController:getEditController}),init()}var $=require("jquery"),$1=require("jquery_event_drag"),$2=require("jquery_event_drop"),Slick=require("./slick.core"),scrollbarDimensions,maxSupportedCssHeight;module.exports=SlickGrid},{"./slick.core":307,jquery:18,jquery_event_drag:301,jquery_event_drop:302}]},{},[1])}();
        //# sourceMappingURL=bokeh.min.js.map
        /* END C:\Users\Bradlee Speice\Anaconda3\lib\site-packages\bokeh\server\static\js/bokeh.min.js */
&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    Bokeh.set_log_level("info");
&lt;/script&gt;
    
&lt;style&gt;
    /* BEGIN C:\Users\Bradlee Speice\Anaconda3\lib\site-packages\bokeh\server\static\css/bokeh.min.css */
        .bk-bs-container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media(min-width:768px){.bk-bs-container{width:750px}}@media(min-width:992px){.bk-bs-container{width:970px}}@media(min-width:1200px){.bk-bs-container{width:1170px}}.bk-bs-container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.bk-bs-row{margin-left:-15px;margin-right:-15px}.bk-bs-col-xs-1,.bk-bs-col-sm-1,.bk-bs-col-md-1,.bk-bs-col-lg-1,.bk-bs-col-xs-2,.bk-bs-col-sm-2,.bk-bs-col-md-2,.bk-bs-col-lg-2,.bk-bs-col-xs-3,.bk-bs-col-sm-3,.bk-bs-col-md-3,.bk-bs-col-lg-3,.bk-bs-col-xs-4,.bk-bs-col-sm-4,.bk-bs-col-md-4,.bk-bs-col-lg-4,.bk-bs-col-xs-5,.bk-bs-col-sm-5,.bk-bs-col-md-5,.bk-bs-col-lg-5,.bk-bs-col-xs-6,.bk-bs-col-sm-6,.bk-bs-col-md-6,.bk-bs-col-lg-6,.bk-bs-col-xs-7,.bk-bs-col-sm-7,.bk-bs-col-md-7,.bk-bs-col-lg-7,.bk-bs-col-xs-8,.bk-bs-col-sm-8,.bk-bs-col-md-8,.bk-bs-col-lg-8,.bk-bs-col-xs-9,.bk-bs-col-sm-9,.bk-bs-col-md-9,.bk-bs-col-lg-9,.bk-bs-col-xs-10,.bk-bs-col-sm-10,.bk-bs-col-md-10,.bk-bs-col-lg-10,.bk-bs-col-xs-11,.bk-bs-col-sm-11,.bk-bs-col-md-11,.bk-bs-col-lg-11,.bk-bs-col-xs-12,.bk-bs-col-sm-12,.bk-bs-col-md-12,.bk-bs-col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.bk-bs-col-xs-1,.bk-bs-col-xs-2,.bk-bs-col-xs-3,.bk-bs-col-xs-4,.bk-bs-col-xs-5,.bk-bs-col-xs-6,.bk-bs-col-xs-7,.bk-bs-col-xs-8,.bk-bs-col-xs-9,.bk-bs-col-xs-10,.bk-bs-col-xs-11,.bk-bs-col-xs-12{float:left}.bk-bs-col-xs-12{width:100%}.bk-bs-col-xs-11{width:91.66666667%}.bk-bs-col-xs-10{width:83.33333333%}.bk-bs-col-xs-9{width:75%}.bk-bs-col-xs-8{width:66.66666667%}.bk-bs-col-xs-7{width:58.33333333%}.bk-bs-col-xs-6{width:50%}.bk-bs-col-xs-5{width:41.66666667%}.bk-bs-col-xs-4{width:33.33333333%}.bk-bs-col-xs-3{width:25%}.bk-bs-col-xs-2{width:16.66666667%}.bk-bs-col-xs-1{width:8.33333333%}.bk-bs-col-xs-pull-12{right:100%}.bk-bs-col-xs-pull-11{right:91.66666667%}.bk-bs-col-xs-pull-10{right:83.33333333%}.bk-bs-col-xs-pull-9{right:75%}.bk-bs-col-xs-pull-8{right:66.66666667%}.bk-bs-col-xs-pull-7{right:58.33333333%}.bk-bs-col-xs-pull-6{right:50%}.bk-bs-col-xs-pull-5{right:41.66666667%}.bk-bs-col-xs-pull-4{right:33.33333333%}.bk-bs-col-xs-pull-3{right:25%}.bk-bs-col-xs-pull-2{right:16.66666667%}.bk-bs-col-xs-pull-1{right:8.33333333%}.bk-bs-col-xs-pull-0{right:0}.bk-bs-col-xs-push-12{left:100%}.bk-bs-col-xs-push-11{left:91.66666667%}.bk-bs-col-xs-push-10{left:83.33333333%}.bk-bs-col-xs-push-9{left:75%}.bk-bs-col-xs-push-8{left:66.66666667%}.bk-bs-col-xs-push-7{left:58.33333333%}.bk-bs-col-xs-push-6{left:50%}.bk-bs-col-xs-push-5{left:41.66666667%}.bk-bs-col-xs-push-4{left:33.33333333%}.bk-bs-col-xs-push-3{left:25%}.bk-bs-col-xs-push-2{left:16.66666667%}.bk-bs-col-xs-push-1{left:8.33333333%}.bk-bs-col-xs-push-0{left:0}.bk-bs-col-xs-offset-12{margin-left:100%}.bk-bs-col-xs-offset-11{margin-left:91.66666667%}.bk-bs-col-xs-offset-10{margin-left:83.33333333%}.bk-bs-col-xs-offset-9{margin-left:75%}.bk-bs-col-xs-offset-8{margin-left:66.66666667%}.bk-bs-col-xs-offset-7{margin-left:58.33333333%}.bk-bs-col-xs-offset-6{margin-left:50%}.bk-bs-col-xs-offset-5{margin-left:41.66666667%}.bk-bs-col-xs-offset-4{margin-left:33.33333333%}.bk-bs-col-xs-offset-3{margin-left:25%}.bk-bs-col-xs-offset-2{margin-left:16.66666667%}.bk-bs-col-xs-offset-1{margin-left:8.33333333%}.bk-bs-col-xs-offset-0{margin-left:0}@media(min-width:768px){.bk-bs-col-sm-1,.bk-bs-col-sm-2,.bk-bs-col-sm-3,.bk-bs-col-sm-4,.bk-bs-col-sm-5,.bk-bs-col-sm-6,.bk-bs-col-sm-7,.bk-bs-col-sm-8,.bk-bs-col-sm-9,.bk-bs-col-sm-10,.bk-bs-col-sm-11,.bk-bs-col-sm-12{float:left}.bk-bs-col-sm-12{width:100%}.bk-bs-col-sm-11{width:91.66666667%}.bk-bs-col-sm-10{width:83.33333333%}.bk-bs-col-sm-9{width:75%}.bk-bs-col-sm-8{width:66.66666667%}.bk-bs-col-sm-7{width:58.33333333%}.bk-bs-col-sm-6{width:50%}.bk-bs-col-sm-5{width:41.66666667%}.bk-bs-col-sm-4{width:33.33333333%}.bk-bs-col-sm-3{width:25%}.bk-bs-col-sm-2{width:16.66666667%}.bk-bs-col-sm-1{width:8.33333333%}.bk-bs-col-sm-pull-12{right:100%}.bk-bs-col-sm-pull-11{right:91.66666667%}.bk-bs-col-sm-pull-10{right:83.33333333%}.bk-bs-col-sm-pull-9{right:75%}.bk-bs-col-sm-pull-8{right:66.66666667%}.bk-bs-col-sm-pull-7{right:58.33333333%}.bk-bs-col-sm-pull-6{right:50%}.bk-bs-col-sm-pull-5{right:41.66666667%}.bk-bs-col-sm-pull-4{right:33.33333333%}.bk-bs-col-sm-pull-3{right:25%}.bk-bs-col-sm-pull-2{right:16.66666667%}.bk-bs-col-sm-pull-1{right:8.33333333%}.bk-bs-col-sm-pull-0{right:0}.bk-bs-col-sm-push-12{left:100%}.bk-bs-col-sm-push-11{left:91.66666667%}.bk-bs-col-sm-push-10{left:83.33333333%}.bk-bs-col-sm-push-9{left:75%}.bk-bs-col-sm-push-8{left:66.66666667%}.bk-bs-col-sm-push-7{left:58.33333333%}.bk-bs-col-sm-push-6{left:50%}.bk-bs-col-sm-push-5{left:41.66666667%}.bk-bs-col-sm-push-4{left:33.33333333%}.bk-bs-col-sm-push-3{left:25%}.bk-bs-col-sm-push-2{left:16.66666667%}.bk-bs-col-sm-push-1{left:8.33333333%}.bk-bs-col-sm-push-0{left:0}.bk-bs-col-sm-offset-12{margin-left:100%}.bk-bs-col-sm-offset-11{margin-left:91.66666667%}.bk-bs-col-sm-offset-10{margin-left:83.33333333%}.bk-bs-col-sm-offset-9{margin-left:75%}.bk-bs-col-sm-offset-8{margin-left:66.66666667%}.bk-bs-col-sm-offset-7{margin-left:58.33333333%}.bk-bs-col-sm-offset-6{margin-left:50%}.bk-bs-col-sm-offset-5{margin-left:41.66666667%}.bk-bs-col-sm-offset-4{margin-left:33.33333333%}.bk-bs-col-sm-offset-3{margin-left:25%}.bk-bs-col-sm-offset-2{margin-left:16.66666667%}.bk-bs-col-sm-offset-1{margin-left:8.33333333%}.bk-bs-col-sm-offset-0{margin-left:0}}@media(min-width:992px){.bk-bs-col-md-1,.bk-bs-col-md-2,.bk-bs-col-md-3,.bk-bs-col-md-4,.bk-bs-col-md-5,.bk-bs-col-md-6,.bk-bs-col-md-7,.bk-bs-col-md-8,.bk-bs-col-md-9,.bk-bs-col-md-10,.bk-bs-col-md-11,.bk-bs-col-md-12{float:left}.bk-bs-col-md-12{width:100%}.bk-bs-col-md-11{width:91.66666667%}.bk-bs-col-md-10{width:83.33333333%}.bk-bs-col-md-9{width:75%}.bk-bs-col-md-8{width:66.66666667%}.bk-bs-col-md-7{width:58.33333333%}.bk-bs-col-md-6{width:50%}.bk-bs-col-md-5{width:41.66666667%}.bk-bs-col-md-4{width:33.33333333%}.bk-bs-col-md-3{width:25%}.bk-bs-col-md-2{width:16.66666667%}.bk-bs-col-md-1{width:8.33333333%}.bk-bs-col-md-pull-12{right:100%}.bk-bs-col-md-pull-11{right:91.66666667%}.bk-bs-col-md-pull-10{right:83.33333333%}.bk-bs-col-md-pull-9{right:75%}.bk-bs-col-md-pull-8{right:66.66666667%}.bk-bs-col-md-pull-7{right:58.33333333%}.bk-bs-col-md-pull-6{right:50%}.bk-bs-col-md-pull-5{right:41.66666667%}.bk-bs-col-md-pull-4{right:33.33333333%}.bk-bs-col-md-pull-3{right:25%}.bk-bs-col-md-pull-2{right:16.66666667%}.bk-bs-col-md-pull-1{right:8.33333333%}.bk-bs-col-md-pull-0{right:0}.bk-bs-col-md-push-12{left:100%}.bk-bs-col-md-push-11{left:91.66666667%}.bk-bs-col-md-push-10{left:83.33333333%}.bk-bs-col-md-push-9{left:75%}.bk-bs-col-md-push-8{left:66.66666667%}.bk-bs-col-md-push-7{left:58.33333333%}.bk-bs-col-md-push-6{left:50%}.bk-bs-col-md-push-5{left:41.66666667%}.bk-bs-col-md-push-4{left:33.33333333%}.bk-bs-col-md-push-3{left:25%}.bk-bs-col-md-push-2{left:16.66666667%}.bk-bs-col-md-push-1{left:8.33333333%}.bk-bs-col-md-push-0{left:0}.bk-bs-col-md-offset-12{margin-left:100%}.bk-bs-col-md-offset-11{margin-left:91.66666667%}.bk-bs-col-md-offset-10{margin-left:83.33333333%}.bk-bs-col-md-offset-9{margin-left:75%}.bk-bs-col-md-offset-8{margin-left:66.66666667%}.bk-bs-col-md-offset-7{margin-left:58.33333333%}.bk-bs-col-md-offset-6{margin-left:50%}.bk-bs-col-md-offset-5{margin-left:41.66666667%}.bk-bs-col-md-offset-4{margin-left:33.33333333%}.bk-bs-col-md-offset-3{margin-left:25%}.bk-bs-col-md-offset-2{margin-left:16.66666667%}.bk-bs-col-md-offset-1{margin-left:8.33333333%}.bk-bs-col-md-offset-0{margin-left:0}}@media(min-width:1200px){.bk-bs-col-lg-1,.bk-bs-col-lg-2,.bk-bs-col-lg-3,.bk-bs-col-lg-4,.bk-bs-col-lg-5,.bk-bs-col-lg-6,.bk-bs-col-lg-7,.bk-bs-col-lg-8,.bk-bs-col-lg-9,.bk-bs-col-lg-10,.bk-bs-col-lg-11,.bk-bs-col-lg-12{float:left}.bk-bs-col-lg-12{width:100%}.bk-bs-col-lg-11{width:91.66666667%}.bk-bs-col-lg-10{width:83.33333333%}.bk-bs-col-lg-9{width:75%}.bk-bs-col-lg-8{width:66.66666667%}.bk-bs-col-lg-7{width:58.33333333%}.bk-bs-col-lg-6{width:50%}.bk-bs-col-lg-5{width:41.66666667%}.bk-bs-col-lg-4{width:33.33333333%}.bk-bs-col-lg-3{width:25%}.bk-bs-col-lg-2{width:16.66666667%}.bk-bs-col-lg-1{width:8.33333333%}.bk-bs-col-lg-pull-12{right:100%}.bk-bs-col-lg-pull-11{right:91.66666667%}.bk-bs-col-lg-pull-10{right:83.33333333%}.bk-bs-col-lg-pull-9{right:75%}.bk-bs-col-lg-pull-8{right:66.66666667%}.bk-bs-col-lg-pull-7{right:58.33333333%}.bk-bs-col-lg-pull-6{right:50%}.bk-bs-col-lg-pull-5{right:41.66666667%}.bk-bs-col-lg-pull-4{right:33.33333333%}.bk-bs-col-lg-pull-3{right:25%}.bk-bs-col-lg-pull-2{right:16.66666667%}.bk-bs-col-lg-pull-1{right:8.33333333%}.bk-bs-col-lg-pull-0{right:0}.bk-bs-col-lg-push-12{left:100%}.bk-bs-col-lg-push-11{left:91.66666667%}.bk-bs-col-lg-push-10{left:83.33333333%}.bk-bs-col-lg-push-9{left:75%}.bk-bs-col-lg-push-8{left:66.66666667%}.bk-bs-col-lg-push-7{left:58.33333333%}.bk-bs-col-lg-push-6{left:50%}.bk-bs-col-lg-push-5{left:41.66666667%}.bk-bs-col-lg-push-4{left:33.33333333%}.bk-bs-col-lg-push-3{left:25%}.bk-bs-col-lg-push-2{left:16.66666667%}.bk-bs-col-lg-push-1{left:8.33333333%}.bk-bs-col-lg-push-0{left:0}.bk-bs-col-lg-offset-12{margin-left:100%}.bk-bs-col-lg-offset-11{margin-left:91.66666667%}.bk-bs-col-lg-offset-10{margin-left:83.33333333%}.bk-bs-col-lg-offset-9{margin-left:75%}.bk-bs-col-lg-offset-8{margin-left:66.66666667%}.bk-bs-col-lg-offset-7{margin-left:58.33333333%}.bk-bs-col-lg-offset-6{margin-left:50%}.bk-bs-col-lg-offset-5{margin-left:41.66666667%}.bk-bs-col-lg-offset-4{margin-left:33.33333333%}.bk-bs-col-lg-offset-3{margin-left:25%}.bk-bs-col-lg-offset-2{margin-left:16.66666667%}.bk-bs-col-lg-offset-1{margin-left:8.33333333%}.bk-bs-col-lg-offset-0{margin-left:0}}table{max-width:100%;background-color:transparent}th{text-align:left}.bk-bs-table{width:100%;margin-bottom:20px}.bk-bs-table&gt;thead&gt;tr&gt;th,.bk-bs-table&gt;tbody&gt;tr&gt;th,.bk-bs-table&gt;tfoot&gt;tr&gt;th,.bk-bs-table&gt;thead&gt;tr&gt;td,.bk-bs-table&gt;tbody&gt;tr&gt;td,.bk-bs-table&gt;tfoot&gt;tr&gt;td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.bk-bs-table&gt;thead&gt;tr&gt;th{vertical-align:bottom;border-bottom:2px solid #ddd}.bk-bs-table&gt;caption+thead&gt;tr:first-child&gt;th,.bk-bs-table&gt;colgroup+thead&gt;tr:first-child&gt;th,.bk-bs-table&gt;thead:first-child&gt;tr:first-child&gt;th,.bk-bs-table&gt;caption+thead&gt;tr:first-child&gt;td,.bk-bs-table&gt;colgroup+thead&gt;tr:first-child&gt;td,.bk-bs-table&gt;thead:first-child&gt;tr:first-child&gt;td{border-top:0}.bk-bs-table&gt;tbody+tbody{border-top:2px solid #ddd}.bk-bs-table .bk-bs-table{background-color:#fff}.bk-bs-table-condensed&gt;thead&gt;tr&gt;th,.bk-bs-table-condensed&gt;tbody&gt;tr&gt;th,.bk-bs-table-condensed&gt;tfoot&gt;tr&gt;th,.bk-bs-table-condensed&gt;thead&gt;tr&gt;td,.bk-bs-table-condensed&gt;tbody&gt;tr&gt;td,.bk-bs-table-condensed&gt;tfoot&gt;tr&gt;td{padding:5px}.bk-bs-table-bordered{border:1px solid #ddd}.bk-bs-table-bordered&gt;thead&gt;tr&gt;th,.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th,.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th,.bk-bs-table-bordered&gt;thead&gt;tr&gt;td,.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td,.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td{border:1px solid #ddd}.bk-bs-table-bordered&gt;thead&gt;tr&gt;th,.bk-bs-table-bordered&gt;thead&gt;tr&gt;td{border-bottom-width:2px}.bk-bs-table-striped&gt;tbody&gt;tr:nth-child(odd)&gt;td,.bk-bs-table-striped&gt;tbody&gt;tr:nth-child(odd)&gt;th{background-color:#f9f9f9}.bk-bs-table-hover&gt;tbody&gt;tr:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr:hover&gt;th{background-color:#f5f5f5}table col[class*="col-"]{position:static;float:none;display:table-column}table td[class*="col-"],table th[class*="col-"]{position:static;float:none;display:table-cell}.bk-bs-table&gt;thead&gt;tr&gt;td.active,.bk-bs-table&gt;tbody&gt;tr&gt;td.active,.bk-bs-table&gt;tfoot&gt;tr&gt;td.active,.bk-bs-table&gt;thead&gt;tr&gt;th.active,.bk-bs-table&gt;tbody&gt;tr&gt;th.active,.bk-bs-table&gt;tfoot&gt;tr&gt;th.active,.bk-bs-table&gt;thead&gt;tr.active&gt;td,.bk-bs-table&gt;tbody&gt;tr.active&gt;td,.bk-bs-table&gt;tfoot&gt;tr.active&gt;td,.bk-bs-table&gt;thead&gt;tr.active&gt;th,.bk-bs-table&gt;tbody&gt;tr.active&gt;th,.bk-bs-table&gt;tfoot&gt;tr.active&gt;th{background-color:#f5f5f5}.bk-bs-table-hover&gt;tbody&gt;tr&gt;td.active:hover,.bk-bs-table-hover&gt;tbody&gt;tr&gt;th.active:hover,.bk-bs-table-hover&gt;tbody&gt;tr.active:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr.active:hover&gt;th{background-color:#e8e8e8}.bk-bs-table&gt;thead&gt;tr&gt;td.success,.bk-bs-table&gt;tbody&gt;tr&gt;td.success,.bk-bs-table&gt;tfoot&gt;tr&gt;td.success,.bk-bs-table&gt;thead&gt;tr&gt;th.success,.bk-bs-table&gt;tbody&gt;tr&gt;th.success,.bk-bs-table&gt;tfoot&gt;tr&gt;th.success,.bk-bs-table&gt;thead&gt;tr.success&gt;td,.bk-bs-table&gt;tbody&gt;tr.success&gt;td,.bk-bs-table&gt;tfoot&gt;tr.success&gt;td,.bk-bs-table&gt;thead&gt;tr.success&gt;th,.bk-bs-table&gt;tbody&gt;tr.success&gt;th,.bk-bs-table&gt;tfoot&gt;tr.success&gt;th{background-color:#dff0d8}.bk-bs-table-hover&gt;tbody&gt;tr&gt;td.success:hover,.bk-bs-table-hover&gt;tbody&gt;tr&gt;th.success:hover,.bk-bs-table-hover&gt;tbody&gt;tr.success:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr.success:hover&gt;th{background-color:#d0e9c6}.bk-bs-table&gt;thead&gt;tr&gt;td.info,.bk-bs-table&gt;tbody&gt;tr&gt;td.info,.bk-bs-table&gt;tfoot&gt;tr&gt;td.info,.bk-bs-table&gt;thead&gt;tr&gt;th.info,.bk-bs-table&gt;tbody&gt;tr&gt;th.info,.bk-bs-table&gt;tfoot&gt;tr&gt;th.info,.bk-bs-table&gt;thead&gt;tr.info&gt;td,.bk-bs-table&gt;tbody&gt;tr.info&gt;td,.bk-bs-table&gt;tfoot&gt;tr.info&gt;td,.bk-bs-table&gt;thead&gt;tr.info&gt;th,.bk-bs-table&gt;tbody&gt;tr.info&gt;th,.bk-bs-table&gt;tfoot&gt;tr.info&gt;th{background-color:#d9edf7}.bk-bs-table-hover&gt;tbody&gt;tr&gt;td.info:hover,.bk-bs-table-hover&gt;tbody&gt;tr&gt;th.info:hover,.bk-bs-table-hover&gt;tbody&gt;tr.info:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr.info:hover&gt;th{background-color:#c4e3f3}.bk-bs-table&gt;thead&gt;tr&gt;td.warning,.bk-bs-table&gt;tbody&gt;tr&gt;td.warning,.bk-bs-table&gt;tfoot&gt;tr&gt;td.warning,.bk-bs-table&gt;thead&gt;tr&gt;th.warning,.bk-bs-table&gt;tbody&gt;tr&gt;th.warning,.bk-bs-table&gt;tfoot&gt;tr&gt;th.warning,.bk-bs-table&gt;thead&gt;tr.warning&gt;td,.bk-bs-table&gt;tbody&gt;tr.warning&gt;td,.bk-bs-table&gt;tfoot&gt;tr.warning&gt;td,.bk-bs-table&gt;thead&gt;tr.warning&gt;th,.bk-bs-table&gt;tbody&gt;tr.warning&gt;th,.bk-bs-table&gt;tfoot&gt;tr.warning&gt;th{background-color:#fcf8e3}.bk-bs-table-hover&gt;tbody&gt;tr&gt;td.warning:hover,.bk-bs-table-hover&gt;tbody&gt;tr&gt;th.warning:hover,.bk-bs-table-hover&gt;tbody&gt;tr.warning:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr.warning:hover&gt;th{background-color:#faf2cc}.bk-bs-table&gt;thead&gt;tr&gt;td.danger,.bk-bs-table&gt;tbody&gt;tr&gt;td.danger,.bk-bs-table&gt;tfoot&gt;tr&gt;td.danger,.bk-bs-table&gt;thead&gt;tr&gt;th.danger,.bk-bs-table&gt;tbody&gt;tr&gt;th.danger,.bk-bs-table&gt;tfoot&gt;tr&gt;th.danger,.bk-bs-table&gt;thead&gt;tr.danger&gt;td,.bk-bs-table&gt;tbody&gt;tr.danger&gt;td,.bk-bs-table&gt;tfoot&gt;tr.danger&gt;td,.bk-bs-table&gt;thead&gt;tr.danger&gt;th,.bk-bs-table&gt;tbody&gt;tr.danger&gt;th,.bk-bs-table&gt;tfoot&gt;tr.danger&gt;th{background-color:#f2dede}.bk-bs-table-hover&gt;tbody&gt;tr&gt;td.danger:hover,.bk-bs-table-hover&gt;tbody&gt;tr&gt;th.danger:hover,.bk-bs-table-hover&gt;tbody&gt;tr.danger:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr.danger:hover&gt;th{background-color:#ebcccc}@media(max-width:767px){.bk-bs-table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.bk-bs-table-responsive&gt;.bk-bs-table{margin-bottom:0}.bk-bs-table-responsive&gt;.bk-bs-table&gt;thead&gt;tr&gt;th,.bk-bs-table-responsive&gt;.bk-bs-table&gt;tbody&gt;tr&gt;th,.bk-bs-table-responsive&gt;.bk-bs-table&gt;tfoot&gt;tr&gt;th,.bk-bs-table-responsive&gt;.bk-bs-table&gt;thead&gt;tr&gt;td,.bk-bs-table-responsive&gt;.bk-bs-table&gt;tbody&gt;tr&gt;td,.bk-bs-table-responsive&gt;.bk-bs-table&gt;tfoot&gt;tr&gt;td{white-space:nowrap}.bk-bs-table-responsive&gt;.bk-bs-table-bordered{border:0}.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:first-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:first-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:first-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:first-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:first-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:first-child{border-left:0}.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:last-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:last-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:last-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:last-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:last-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:last-child{border-right:0}.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;th,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;th,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;td,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;td{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}input[type="range"]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.bk-bs-form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bk-bs-form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.6)}.bk-bs-form-control::-moz-placeholder{color:#999;opacity:1}.bk-bs-form-control:-ms-input-placeholder{color:#999}.bk-bs-form-control::-webkit-input-placeholder{color:#999}.bk-bs-form-control[disabled],.bk-bs-form-control[readonly],fieldset[disabled] .bk-bs-form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.bk-bs-form-control{height:auto}input[type="search"]{-webkit-appearance:none}input[type="date"]{line-height:34px}.bk-bs-form-group{margin-bottom:15px}.bk-bs-radio,.bk-bs-checkbox{display:block;min-height:20px;margin-top:10px;margin-bottom:10px;padding-left:20px}.bk-bs-radio label,.bk-bs-checkbox label{display:inline;font-weight:normal;cursor:pointer}.bk-bs-radio input[type="radio"],.bk-bs-radio-inline input[type="radio"],.bk-bs-checkbox input[type="checkbox"],.bk-bs-checkbox-inline input[type="checkbox"]{float:left;margin-left:-20px}.bk-bs-radio+.bk-bs-radio,.bk-bs-checkbox+.bk-bs-checkbox{margin-top:-5px}.bk-bs-radio-inline,.bk-bs-checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:normal;cursor:pointer}.bk-bs-radio-inline+.bk-bs-radio-inline,.bk-bs-checkbox-inline+.bk-bs-checkbox-inline{margin-top:0;margin-left:10px}input[type="radio"][disabled],input[type="checkbox"][disabled],.bk-bs-radio[disabled],.bk-bs-radio-inline[disabled],.bk-bs-checkbox[disabled],.bk-bs-checkbox-inline[disabled],fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"],fieldset[disabled] .bk-bs-radio,fieldset[disabled] .bk-bs-radio-inline,fieldset[disabled] .bk-bs-checkbox,fieldset[disabled] .bk-bs-checkbox-inline{cursor:not-allowed}.bk-bs-input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.bk-bs-input-sm{height:30px;line-height:30px}textarea.bk-bs-input-sm,select[multiple].bk-bs-input-sm{height:auto}.bk-bs-input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.bk-bs-input-lg{height:46px;line-height:46px}textarea.bk-bs-input-lg,select[multiple].bk-bs-input-lg{height:auto}.bk-bs-has-feedback{position:relative}.bk-bs-has-feedback .bk-bs-form-control{padding-right:42.5px}.bk-bs-has-feedback .bk-bs-form-control-feedback{position:absolute;top:25px;right:0;display:block;width:34px;height:34px;line-height:34px;text-align:center}.bk-bs-has-success .bk-bs-help-block,.bk-bs-has-success .bk-bs-control-label,.bk-bs-has-success .bk-bs-radio,.bk-bs-has-success .bk-bs-checkbox,.bk-bs-has-success .bk-bs-radio-inline,.bk-bs-has-success .bk-bs-checkbox-inline{color:#3c763d}.bk-bs-has-success .bk-bs-form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.bk-bs-has-success .bk-bs-form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168}.bk-bs-has-success .bk-bs-input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.bk-bs-has-success .bk-bs-form-control-feedback{color:#3c763d}.bk-bs-has-warning .bk-bs-help-block,.bk-bs-has-warning .bk-bs-control-label,.bk-bs-has-warning .bk-bs-radio,.bk-bs-has-warning .bk-bs-checkbox,.bk-bs-has-warning .bk-bs-radio-inline,.bk-bs-has-warning .bk-bs-checkbox-inline{color:#8a6d3b}.bk-bs-has-warning .bk-bs-form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.bk-bs-has-warning .bk-bs-form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b}.bk-bs-has-warning .bk-bs-input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.bk-bs-has-warning .bk-bs-form-control-feedback{color:#8a6d3b}.bk-bs-has-error .bk-bs-help-block,.bk-bs-has-error .bk-bs-control-label,.bk-bs-has-error .bk-bs-radio,.bk-bs-has-error .bk-bs-checkbox,.bk-bs-has-error .bk-bs-radio-inline,.bk-bs-has-error .bk-bs-checkbox-inline{color:#a94442}.bk-bs-has-error .bk-bs-form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.bk-bs-has-error .bk-bs-form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483}.bk-bs-has-error .bk-bs-input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.bk-bs-has-error .bk-bs-form-control-feedback{color:#a94442}.bk-bs-form-control-static{margin-bottom:0}.bk-bs-help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media(min-width:768px){.bk-bs-form-inline .bk-bs-form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-form-control{display:inline-block;width:auto;vertical-align:middle}.bk-bs-form-inline .bk-bs-input-group&gt;.bk-bs-form-control{width:100%}.bk-bs-form-inline .bk-bs-control-label{margin-bottom:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-radio,.bk-bs-form-inline .bk-bs-checkbox{display:inline-block;margin-top:0;margin-bottom:0;padding-left:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-radio input[type="radio"],.bk-bs-form-inline .bk-bs-checkbox input[type="checkbox"]{float:none;margin-left:0}.bk-bs-form-inline .bk-bs-has-feedback .bk-bs-form-control-feedback{top:0}}.bk-bs-form-horizontal .bk-bs-control-label,.bk-bs-form-horizontal .bk-bs-radio,.bk-bs-form-horizontal .bk-bs-checkbox,.bk-bs-form-horizontal .bk-bs-radio-inline,.bk-bs-form-horizontal .bk-bs-checkbox-inline{margin-top:0;margin-bottom:0;padding-top:7px}.bk-bs-form-horizontal .bk-bs-radio,.bk-bs-form-horizontal .bk-bs-checkbox{min-height:27px}.bk-bs-form-horizontal .bk-bs-form-group{margin-left:-15px;margin-right:-15px}.bk-bs-form-horizontal .bk-bs-form-control-static{padding-top:7px}@media(min-width:768px){.bk-bs-form-horizontal .bk-bs-control-label{text-align:right}}.bk-bs-form-horizontal .bk-bs-has-feedback .bk-bs-form-control-feedback{top:0;right:15px}.bk-bs-btn{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bk-bs-btn:focus,.bk-bs-btn:active:focus,.bk-bs-btn.bk-bs-active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bk-bs-btn:hover,.bk-bs-btn:focus{color:#333;text-decoration:none}.bk-bs-btn:active,.bk-bs-btn.bk-bs-active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.bk-bs-btn.bk-bs-disabled,.bk-bs-btn[disabled],fieldset[disabled] .bk-bs-btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn-default{color:#333;background-color:#fff;border-color:#ccc}.bk-bs-btn-default:hover,.bk-bs-btn-default:focus,.bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-default{background-image:none}.bk-bs-btn-default.bk-bs-disabled,.bk-bs-btn-default[disabled],fieldset[disabled] .bk-bs-btn-default,.bk-bs-btn-default.bk-bs-disabled:hover,.bk-bs-btn-default[disabled]:hover,fieldset[disabled] .bk-bs-btn-default:hover,.bk-bs-btn-default.bk-bs-disabled:focus,.bk-bs-btn-default[disabled]:focus,fieldset[disabled] .bk-bs-btn-default:focus,.bk-bs-btn-default.bk-bs-disabled:active,.bk-bs-btn-default[disabled]:active,fieldset[disabled] .bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-disabled.bk-bs-active,.bk-bs-btn-default[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-default.bk-bs-active{background-color:#fff;border-color:#ccc}.bk-bs-btn-default .bk-bs-badge{color:#fff;background-color:#333}.bk-bs-btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.bk-bs-btn-primary:hover,.bk-bs-btn-primary:focus,.bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-primary{background-image:none}.bk-bs-btn-primary.bk-bs-disabled,.bk-bs-btn-primary[disabled],fieldset[disabled] .bk-bs-btn-primary,.bk-bs-btn-primary.bk-bs-disabled:hover,.bk-bs-btn-primary[disabled]:hover,fieldset[disabled] .bk-bs-btn-primary:hover,.bk-bs-btn-primary.bk-bs-disabled:focus,.bk-bs-btn-primary[disabled]:focus,fieldset[disabled] .bk-bs-btn-primary:focus,.bk-bs-btn-primary.bk-bs-disabled:active,.bk-bs-btn-primary[disabled]:active,fieldset[disabled] .bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-disabled.bk-bs-active,.bk-bs-btn-primary[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-primary.bk-bs-active{background-color:#428bca;border-color:#357ebd}.bk-bs-btn-primary .bk-bs-badge{color:#428bca;background-color:#fff}.bk-bs-btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.bk-bs-btn-success:hover,.bk-bs-btn-success:focus,.bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-success{color:#fff;background-color:#47a447;border-color:#398439}.bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-success{background-image:none}.bk-bs-btn-success.bk-bs-disabled,.bk-bs-btn-success[disabled],fieldset[disabled] .bk-bs-btn-success,.bk-bs-btn-success.bk-bs-disabled:hover,.bk-bs-btn-success[disabled]:hover,fieldset[disabled] .bk-bs-btn-success:hover,.bk-bs-btn-success.bk-bs-disabled:focus,.bk-bs-btn-success[disabled]:focus,fieldset[disabled] .bk-bs-btn-success:focus,.bk-bs-btn-success.bk-bs-disabled:active,.bk-bs-btn-success[disabled]:active,fieldset[disabled] .bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-disabled.bk-bs-active,.bk-bs-btn-success[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-success.bk-bs-active{background-color:#5cb85c;border-color:#4cae4c}.bk-bs-btn-success .bk-bs-badge{color:#5cb85c;background-color:#fff}.bk-bs-btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.bk-bs-btn-info:hover,.bk-bs-btn-info:focus,.bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-info{background-image:none}.bk-bs-btn-info.bk-bs-disabled,.bk-bs-btn-info[disabled],fieldset[disabled] .bk-bs-btn-info,.bk-bs-btn-info.bk-bs-disabled:hover,.bk-bs-btn-info[disabled]:hover,fieldset[disabled] .bk-bs-btn-info:hover,.bk-bs-btn-info.bk-bs-disabled:focus,.bk-bs-btn-info[disabled]:focus,fieldset[disabled] .bk-bs-btn-info:focus,.bk-bs-btn-info.bk-bs-disabled:active,.bk-bs-btn-info[disabled]:active,fieldset[disabled] .bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-disabled.bk-bs-active,.bk-bs-btn-info[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-info.bk-bs-active{background-color:#5bc0de;border-color:#46b8da}.bk-bs-btn-info .bk-bs-badge{color:#5bc0de;background-color:#fff}.bk-bs-btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.bk-bs-btn-warning:hover,.bk-bs-btn-warning:focus,.bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-warning{background-image:none}.bk-bs-btn-warning.bk-bs-disabled,.bk-bs-btn-warning[disabled],fieldset[disabled] .bk-bs-btn-warning,.bk-bs-btn-warning.bk-bs-disabled:hover,.bk-bs-btn-warning[disabled]:hover,fieldset[disabled] .bk-bs-btn-warning:hover,.bk-bs-btn-warning.bk-bs-disabled:focus,.bk-bs-btn-warning[disabled]:focus,fieldset[disabled] .bk-bs-btn-warning:focus,.bk-bs-btn-warning.bk-bs-disabled:active,.bk-bs-btn-warning[disabled]:active,fieldset[disabled] .bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-disabled.bk-bs-active,.bk-bs-btn-warning[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-warning.bk-bs-active{background-color:#f0ad4e;border-color:#eea236}.bk-bs-btn-warning .bk-bs-badge{color:#f0ad4e;background-color:#fff}.bk-bs-btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.bk-bs-btn-danger:hover,.bk-bs-btn-danger:focus,.bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-danger{background-image:none}.bk-bs-btn-danger.bk-bs-disabled,.bk-bs-btn-danger[disabled],fieldset[disabled] .bk-bs-btn-danger,.bk-bs-btn-danger.bk-bs-disabled:hover,.bk-bs-btn-danger[disabled]:hover,fieldset[disabled] .bk-bs-btn-danger:hover,.bk-bs-btn-danger.bk-bs-disabled:focus,.bk-bs-btn-danger[disabled]:focus,fieldset[disabled] .bk-bs-btn-danger:focus,.bk-bs-btn-danger.bk-bs-disabled:active,.bk-bs-btn-danger[disabled]:active,fieldset[disabled] .bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-disabled.bk-bs-active,.bk-bs-btn-danger[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-danger.bk-bs-active{background-color:#d9534f;border-color:#d43f3a}.bk-bs-btn-danger .bk-bs-badge{color:#d9534f;background-color:#fff}.bk-bs-btn-link{color:#428bca;font-weight:normal;cursor:pointer;border-radius:0}.bk-bs-btn-link,.bk-bs-btn-link:active,.bk-bs-btn-link[disabled],fieldset[disabled] .bk-bs-btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn-link,.bk-bs-btn-link:hover,.bk-bs-btn-link:focus,.bk-bs-btn-link:active{border-color:transparent}.bk-bs-btn-link:hover,.bk-bs-btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.bk-bs-btn-link[disabled]:hover,fieldset[disabled] .bk-bs-btn-link:hover,.bk-bs-btn-link[disabled]:focus,fieldset[disabled] .bk-bs-btn-link:focus{color:#999;text-decoration:none}.bk-bs-btn-lg,.bk-bs-btn-group-lg&gt;.bk-bs-btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.bk-bs-btn-sm,.bk-bs-btn-group-sm&gt;.bk-bs-btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.bk-bs-btn-xs,.bk-bs-btn-group-xs&gt;.bk-bs-btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.bk-bs-btn-block{display:block;width:100%;padding-left:0;padding-right:0}.bk-bs-btn-block+.bk-bs-btn-block{margin-top:5px}input[type="submit"].bk-bs-btn-block,input[type="reset"].bk-bs-btn-block,input[type="button"].bk-bs-btn-block{width:100%}.bk-bs-caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.bk-bs-dropdown{position:relative}.bk-bs-dropdown-toggle:focus{outline:0}.bk-bs-dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);background-clip:padding-box}.bk-bs-dropdown-menu.bk-bs-pull-right{right:0;left:auto}.bk-bs-dropdown-menu .bk-bs-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.bk-bs-dropdown-menu&gt;li&gt;a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.42857143;color:#333;white-space:nowrap}.bk-bs-dropdown-menu&gt;li&gt;a:hover,.bk-bs-dropdown-menu&gt;li&gt;a:focus{text-decoration:none;color:#262626;background-color:#f5f5f5}.bk-bs-dropdown-menu&gt;.bk-bs-active&gt;a,.bk-bs-dropdown-menu&gt;.bk-bs-active&gt;a:hover,.bk-bs-dropdown-menu&gt;.bk-bs-active&gt;a:focus{color:#fff;text-decoration:none;outline:0;background-color:#428bca}.bk-bs-dropdown-menu&gt;.bk-bs-disabled&gt;a,.bk-bs-dropdown-menu&gt;.bk-bs-disabled&gt;a:hover,.bk-bs-dropdown-menu&gt;.bk-bs-disabled&gt;a:focus{color:#999}.bk-bs-dropdown-menu&gt;.bk-bs-disabled&gt;a:hover,.bk-bs-dropdown-menu&gt;.bk-bs-disabled&gt;a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.bk-bs-Microsoft.bk-bs-gradient(enabled = false);cursor:not-allowed}.bk-bs-open&gt;.bk-bs-dropdown-menu{display:block}.bk-bs-open&gt;a{outline:0}.bk-bs-dropdown-menu-right{left:auto;right:0}.bk-bs-dropdown-menu-left{left:0;right:auto}.bk-bs-dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#999}.bk-bs-dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.bk-bs-pull-right&gt;.bk-bs-dropdown-menu{right:0;left:auto}.bk-bs-dropup .bk-bs-caret,.bk-bs-navbar-fixed-bottom .bk-bs-dropdown .bk-bs-caret{border-top:0;border-bottom:4px solid;content:""}.bk-bs-dropup .bk-bs-dropdown-menu,.bk-bs-navbar-fixed-bottom .bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media(min-width:768px){.bk-bs-navbar-right .bk-bs-dropdown-menu{left:auto;right:0}.bk-bs-navbar-right .bk-bs-dropdown-menu-left{left:0;right:auto}}.bk-bs-btn-group,.bk-bs-btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.bk-bs-btn-group&gt;.bk-bs-btn,.bk-bs-btn-group-vertical&gt;.bk-bs-btn{position:relative;float:left}.bk-bs-btn-group&gt;.bk-bs-btn:hover,.bk-bs-btn-group-vertical&gt;.bk-bs-btn:hover,.bk-bs-btn-group&gt;.bk-bs-btn:focus,.bk-bs-btn-group-vertical&gt;.bk-bs-btn:focus,.bk-bs-btn-group&gt;.bk-bs-btn:active,.bk-bs-btn-group-vertical&gt;.bk-bs-btn:active,.bk-bs-btn-group&gt;.bk-bs-btn.bk-bs-active,.bk-bs-btn-group-vertical&gt;.bk-bs-btn.bk-bs-active{z-index:2}.bk-bs-btn-group&gt;.bk-bs-btn:focus,.bk-bs-btn-group-vertical&gt;.bk-bs-btn:focus{outline:0}.bk-bs-btn-group .bk-bs-btn+.bk-bs-btn,.bk-bs-btn-group .bk-bs-btn+.bk-bs-btn-group,.bk-bs-btn-group .bk-bs-btn-group+.bk-bs-btn,.bk-bs-btn-group .bk-bs-btn-group+.bk-bs-btn-group{margin-left:-1px}.bk-bs-btn-toolbar{margin-left:-5px}.bk-bs-btn-toolbar .bk-bs-btn-group,.bk-bs-btn-toolbar .bk-bs-input-group{float:left}.bk-bs-btn-toolbar&gt;.bk-bs-btn,.bk-bs-btn-toolbar&gt;.bk-bs-btn-group,.bk-bs-btn-toolbar&gt;.bk-bs-input-group{margin-left:5px}.bk-bs-btn-group&gt;.bk-bs-btn:not(:first-child):not(:last-child):not(.bk-bs-dropdown-toggle){border-radius:0}.bk-bs-btn-group&gt;.bk-bs-btn:first-child{margin-left:0}.bk-bs-btn-group&gt;.bk-bs-btn:first-child:not(:last-child):not(.bk-bs-dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-btn-group&gt;.bk-bs-btn:last-child:not(:first-child),.bk-bs-btn-group&gt;.bk-bs-dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-btn-group&gt;.bk-bs-btn-group{float:left}.bk-bs-btn-group&gt;.bk-bs-btn-group:not(:first-child):not(:last-child)&gt;.bk-bs-btn{border-radius:0}.bk-bs-btn-group&gt;.bk-bs-btn-group:first-child&gt;.bk-bs-btn:last-child,.bk-bs-btn-group&gt;.bk-bs-btn-group:first-child&gt;.bk-bs-dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-btn-group&gt;.bk-bs-btn-group:last-child&gt;.bk-bs-btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-btn-group .bk-bs-dropdown-toggle:active,.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle{outline:0}.bk-bs-btn-group&gt;.bk-bs-btn+.bk-bs-dropdown-toggle{padding-left:8px;padding-right:8px}.bk-bs-btn-group&gt;.bk-bs-btn-lg+.bk-bs-dropdown-toggle{padding-left:12px;padding-right:12px}.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-link{-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn .bk-bs-caret{margin-left:0}.bk-bs-btn-lg .bk-bs-caret{border-width:5px 5px 0;border-bottom-width:0}.bk-bs-dropup .bk-bs-btn-lg .bk-bs-caret{border-width:0 5px 5px}.bk-bs-btn-group-vertical&gt;.bk-bs-btn,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group&gt;.bk-bs-btn{display:block;float:none;width:100%;max-width:100%}.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group&gt;.bk-bs-btn{float:none}.bk-bs-btn-group-vertical&gt;.bk-bs-btn+.bk-bs-btn,.bk-bs-btn-group-vertical&gt;.bk-bs-btn+.bk-bs-btn-group,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group+.bk-bs-btn,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group+.bk-bs-btn-group{margin-top:-1px;margin-left:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn:not(:first-child):not(:last-child){border-radius:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:not(:first-child):not(:last-child)&gt;.bk-bs-btn{border-radius:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:first-child:not(:last-child)&gt;.bk-bs-btn:last-child,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:first-child:not(:last-child)&gt;.bk-bs-dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:last-child:not(:first-child)&gt;.bk-bs-btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.bk-bs-btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.bk-bs-btn-group-justified&gt;.bk-bs-btn,.bk-bs-btn-group-justified&gt;.bk-bs-btn-group{float:none;display:table-cell;width:1%}.bk-bs-btn-group-justified&gt;.bk-bs-btn-group .bk-bs-btn{width:100%}[data-bk-bs-toggle="buttons"]&gt;.bk-bs-btn&gt;input[type="radio"],[data-bk-bs-toggle="buttons"]&gt;.bk-bs-btn&gt;input[type="checkbox"]{display:none}.bk-bs-input-group{position:relative;display:table;border-collapse:separate}.bk-bs-input-group[class*="col-"]{float:none;padding-left:0;padding-right:0}.bk-bs-input-group .bk-bs-form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.bk-bs-input-group-lg&gt;.bk-bs-form-control,.bk-bs-input-group-lg&gt;.bk-bs-input-group-addon,.bk-bs-input-group-lg&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.bk-bs-input-group-lg&gt;.bk-bs-form-control,select.bk-bs-input-group-lg&gt;.bk-bs-input-group-addon,select.bk-bs-input-group-lg&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:46px;line-height:46px}textarea.bk-bs-input-group-lg&gt;.bk-bs-form-control,textarea.bk-bs-input-group-lg&gt;.bk-bs-input-group-addon,textarea.bk-bs-input-group-lg&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn,select[multiple].bk-bs-input-group-lg&gt;.bk-bs-form-control,select[multiple].bk-bs-input-group-lg&gt;.bk-bs-input-group-addon,select[multiple].bk-bs-input-group-lg&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:auto}.bk-bs-input-group-sm&gt;.bk-bs-form-control,.bk-bs-input-group-sm&gt;.bk-bs-input-group-addon,.bk-bs-input-group-sm&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.bk-bs-input-group-sm&gt;.bk-bs-form-control,select.bk-bs-input-group-sm&gt;.bk-bs-input-group-addon,select.bk-bs-input-group-sm&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:30px;line-height:30px}textarea.bk-bs-input-group-sm&gt;.bk-bs-form-control,textarea.bk-bs-input-group-sm&gt;.bk-bs-input-group-addon,textarea.bk-bs-input-group-sm&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn,select[multiple].bk-bs-input-group-sm&gt;.bk-bs-form-control,select[multiple].bk-bs-input-group-sm&gt;.bk-bs-input-group-addon,select[multiple].bk-bs-input-group-sm&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:auto}.bk-bs-input-group-addon,.bk-bs-input-group-btn,.bk-bs-input-group .bk-bs-form-control{display:table-cell}.bk-bs-input-group-addon:not(:first-child):not(:last-child),.bk-bs-input-group-btn:not(:first-child):not(:last-child),.bk-bs-input-group .bk-bs-form-control:not(:first-child):not(:last-child){border-radius:0}.bk-bs-input-group-addon,.bk-bs-input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.bk-bs-input-group-addon{padding:6px 12px;font-size:14px;font-weight:normal;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.bk-bs-input-group-addon.bk-bs-input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.bk-bs-input-group-addon.bk-bs-input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.bk-bs-input-group-addon input[type="radio"],.bk-bs-input-group-addon input[type="checkbox"]{margin-top:0}.bk-bs-input-group .bk-bs-form-control:first-child,.bk-bs-input-group-addon:first-child,.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn,.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn-group&gt;.bk-bs-btn,.bk-bs-input-group-btn:first-child&gt;.bk-bs-dropdown-toggle,.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn:not(:last-child):not(.bk-bs-dropdown-toggle),.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn-group:not(:last-child)&gt;.bk-bs-btn{border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-input-group-addon:first-child{border-right:0}.bk-bs-input-group .bk-bs-form-control:last-child,.bk-bs-input-group-addon:last-child,.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn,.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn-group&gt;.bk-bs-btn,.bk-bs-input-group-btn:last-child&gt;.bk-bs-dropdown-toggle,.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn:not(:first-child),.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn-group:not(:first-child)&gt;.bk-bs-btn{border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-input-group-addon:last-child{border-left:0}.bk-bs-input-group-btn{position:relative;font-size:0;white-space:nowrap}.bk-bs-input-group-btn&gt;.bk-bs-btn{position:relative}.bk-bs-input-group-btn&gt;.bk-bs-btn+.bk-bs-btn{margin-left:-1px}.bk-bs-input-group-btn&gt;.bk-bs-btn:hover,.bk-bs-input-group-btn&gt;.bk-bs-btn:focus,.bk-bs-input-group-btn&gt;.bk-bs-btn:active{z-index:2}.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn,.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn-group{margin-right:-1px}.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn,.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn-group{margin-left:-1px}.bk-bs-nav{margin-bottom:0;padding-left:0;list-style:none}.bk-bs-nav&gt;li{position:relative;display:block}.bk-bs-nav&gt;li&gt;a{position:relative;display:block;padding:10px 15px}.bk-bs-nav&gt;li&gt;a:hover,.bk-bs-nav&gt;li&gt;a:focus{text-decoration:none;background-color:#eee}.bk-bs-nav&gt;li.bk-bs-disabled&gt;a{color:#999}.bk-bs-nav&gt;li.bk-bs-disabled&gt;a:hover,.bk-bs-nav&gt;li.bk-bs-disabled&gt;a:focus{color:#999;text-decoration:none;background-color:transparent;cursor:not-allowed}.bk-bs-nav .bk-bs-open&gt;a,.bk-bs-nav .bk-bs-open&gt;a:hover,.bk-bs-nav .bk-bs-open&gt;a:focus{background-color:#eee;border-color:#428bca}.bk-bs-nav .bk-bs-nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.bk-bs-nav&gt;li&gt;a&gt;img{max-width:none}.bk-bs-nav-tabs{border-bottom:1px solid #ddd}.bk-bs-nav-tabs&gt;li{float:left;margin-bottom:-1px}.bk-bs-nav-tabs&gt;li&gt;a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.bk-bs-nav-tabs&gt;li&gt;a:hover{border-color:#eee #eee #ddd}.bk-bs-nav-tabs&gt;li.bk-bs-active&gt;a,.bk-bs-nav-tabs&gt;li.bk-bs-active&gt;a:hover,.bk-bs-nav-tabs&gt;li.bk-bs-active&gt;a:focus{color:#555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.bk-bs-nav-tabs.bk-bs-nav-justified{width:100%;border-bottom:0}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li{float:none}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li&gt;a{text-align:center;margin-bottom:5px}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;left:auto}@media(min-width:768px){.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li{display:table-cell;width:1%}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li&gt;a{margin-bottom:0}}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li&gt;a{margin-right:0;border-radius:4px}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a,.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a:hover,.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a:focus{border:1px solid #ddd}@media(min-width:768px){.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li&gt;a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a,.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a:hover,.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a:focus{border-bottom-color:#fff}}.bk-bs-nav-pills&gt;li{float:left}.bk-bs-nav-pills&gt;li&gt;a{border-radius:4px}.bk-bs-nav-pills&gt;li+li{margin-left:2px}.bk-bs-nav-pills&gt;li.bk-bs-active&gt;a,.bk-bs-nav-pills&gt;li.bk-bs-active&gt;a:hover,.bk-bs-nav-pills&gt;li.bk-bs-active&gt;a:focus{color:#fff;background-color:#428bca}.bk-bs-nav-stacked&gt;li{float:none}.bk-bs-nav-stacked&gt;li+li{margin-top:2px;margin-left:0}.bk-bs-nav-justified{width:100%}.bk-bs-nav-justified&gt;li{float:none}.bk-bs-nav-justified&gt;li&gt;a{text-align:center;margin-bottom:5px}.bk-bs-nav-justified&gt;.bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;left:auto}@media(min-width:768px){.bk-bs-nav-justified&gt;li{display:table-cell;width:1%}.bk-bs-nav-justified&gt;li&gt;a{margin-bottom:0}}.bk-bs-nav-tabs-justified{border-bottom:0}.bk-bs-nav-tabs-justified&gt;li&gt;a{margin-right:0;border-radius:4px}.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a,.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a:hover,.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a:focus{border:1px solid #ddd}@media(min-width:768px){.bk-bs-nav-tabs-justified&gt;li&gt;a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a,.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a:hover,.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a:focus{border-bottom-color:#fff}}.bk-bs-tab-content&gt;.bk-bs-tab-pane{display:none}.bk-bs-tab-content&gt;.bk-bs-active{display:block}.bk-bs-nav-tabs .bk-bs-dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.bk-bs-label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.bk-bs-label[href]:hover,.bk-bs-label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.bk-bs-label:empty{display:none}.bk-bs-btn .bk-bs-label{position:relative;top:-1px}.bk-bs-label-default{background-color:#999}.bk-bs-label-default[href]:hover,.bk-bs-label-default[href]:focus{background-color:gray}.bk-bs-label-primary{background-color:#428bca}.bk-bs-label-primary[href]:hover,.bk-bs-label-primary[href]:focus{background-color:#3071a9}.bk-bs-label-success{background-color:#5cb85c}.bk-bs-label-success[href]:hover,.bk-bs-label-success[href]:focus{background-color:#449d44}.bk-bs-label-info{background-color:#5bc0de}.bk-bs-label-info[href]:hover,.bk-bs-label-info[href]:focus{background-color:#31b0d5}.bk-bs-label-warning{background-color:#f0ad4e}.bk-bs-label-warning[href]:hover,.bk-bs-label-warning[href]:focus{background-color:#ec971f}.bk-bs-label-danger{background-color:#d9534f}.bk-bs-label-danger[href]:hover,.bk-bs-label-danger[href]:focus{background-color:#c9302c}.bk-bs-panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.bk-bs-panel-body{padding:15px}.bk-bs-panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel-heading&gt;.bk-bs-dropdown .bk-bs-dropdown-toggle{color:inherit}.bk-bs-panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.bk-bs-panel-title&gt;a{color:inherit}.bk-bs-panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel&gt;.bk-bs-list-group{margin-bottom:0}.bk-bs-panel&gt;.bk-bs-list-group .bk-bs-list-group-item{border-width:1px 0;border-radius:0}.bk-bs-panel&gt;.bk-bs-list-group:first-child .bk-bs-list-group-item:first-child{border-top:0;border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel&gt;.bk-bs-list-group:last-child .bk-bs-list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel-heading+.bk-bs-list-group .bk-bs-list-group-item:first-child{border-top-width:0}.bk-bs-panel&gt;.bk-bs-table,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table{margin-bottom:0}.bk-bs-panel&gt;.bk-bs-table:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child td:first-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child td:first-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child th:first-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child th:first-child{border-top-left-radius:3px}.bk-bs-panel&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child td:last-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child td:last-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child th:last-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child th:last-child{border-top-right-radius:3px}.bk-bs-panel&gt;.bk-bs-table:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child td:first-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child td:first-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child th:first-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child th:first-child{border-bottom-left-radius:3px}.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child td:last-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child td:last-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child th:last-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child th:last-child{border-bottom-right-radius:3px}.bk-bs-panel&gt;.bk-bs-panel-body+.bk-bs-table,.bk-bs-panel&gt;.bk-bs-panel-body+.bk-bs-table-responsive{border-top:1px solid #ddd}.bk-bs-panel&gt;.bk-bs-table&gt;tbody:first-child&gt;tr:first-child th,.bk-bs-panel&gt;.bk-bs-table&gt;tbody:first-child&gt;tr:first-child td{border-top:0}.bk-bs-panel&gt;.bk-bs-table-bordered,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered{border:0}.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:first-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:first-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:first-child{border-left:0}.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:last-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:last-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:last-child{border-right:0}.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr:first-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr:first-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:first-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:first-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr:first-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr:first-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:first-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:first-child&gt;th{border-bottom:0}.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;th{border-bottom:0}.bk-bs-panel&gt;.bk-bs-table-responsive{border:0;margin-bottom:0}.bk-bs-panel-group{margin-bottom:20px}.bk-bs-panel-group .bk-bs-panel{margin-bottom:0;border-radius:4px;overflow:hidden}.bk-bs-panel-group .bk-bs-panel+.bk-bs-panel{margin-top:5px}.bk-bs-panel-group .bk-bs-panel-heading{border-bottom:0}.bk-bs-panel-group .bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top:1px solid #ddd}.bk-bs-panel-group .bk-bs-panel-footer{border-top:0}.bk-bs-panel-group .bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom:1px solid #ddd}.bk-bs-panel-default{border-color:#ddd}.bk-bs-panel-default&gt;.bk-bs-panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.bk-bs-panel-default&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#ddd}.bk-bs-panel-default&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#ddd}.bk-bs-panel-primary{border-color:#428bca}.bk-bs-panel-primary&gt;.bk-bs-panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.bk-bs-panel-primary&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#428bca}.bk-bs-panel-primary&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#428bca}.bk-bs-panel-success{border-color:#d6e9c6}.bk-bs-panel-success&gt;.bk-bs-panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.bk-bs-panel-success&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#d6e9c6}.bk-bs-panel-success&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#d6e9c6}.bk-bs-panel-info{border-color:#bce8f1}.bk-bs-panel-info&gt;.bk-bs-panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.bk-bs-panel-info&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#bce8f1}.bk-bs-panel-info&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#bce8f1}.bk-bs-panel-warning{border-color:#faebcc}.bk-bs-panel-warning&gt;.bk-bs-panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.bk-bs-panel-warning&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#faebcc}.bk-bs-panel-warning&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#faebcc}.bk-bs-panel-danger{border-color:#ebccd1}.bk-bs-panel-danger&gt;.bk-bs-panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.bk-bs-panel-danger&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#ebccd1}.bk-bs-panel-danger&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#ebccd1}.bk-bs-close{float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.bk-bs-close:hover,.bk-bs-close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.bk-bs-close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.bk-bs-modal-open{overflow:hidden}.bk-bs-modal{display:none;overflow:auto;overflow-y:scroll;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.bk-bs-modal.bk-bs-fade .bk-bs-modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.bk-bs-modal.bk-bs-in .bk-bs-modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.bk-bs-modal-dialog{position:relative;width:auto;margin:10px}.bk-bs-modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);box-shadow:0 3px 9px rgba(0,0,0,0.5);background-clip:padding-box;outline:0}.bk-bs-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.bk-bs-modal-backdrop.bk-bs-fade{opacity:0;filter:alpha(opacity=0)}.bk-bs-modal-backdrop.bk-bs-in{opacity:.5;filter:alpha(opacity=50)}.bk-bs-modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.bk-bs-modal-header .bk-bs-close{margin-top:-2px}.bk-bs-modal-title{margin:0;line-height:1.42857143}.bk-bs-modal-body{position:relative;padding:20px}.bk-bs-modal-footer{margin-top:15px;padding:19px 20px 20px;text-align:right;border-top:1px solid #e5e5e5}.bk-bs-modal-footer .bk-bs-btn+.bk-bs-btn{margin-left:5px;margin-bottom:0}.bk-bs-modal-footer .bk-bs-btn-group .bk-bs-btn+.bk-bs-btn{margin-left:-1px}.bk-bs-modal-footer .bk-bs-btn-block+.bk-bs-btn-block{margin-left:0}@media(min-width:768px){.bk-bs-modal-dialog{width:600px;margin:30px auto}.bk-bs-modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(0,0,0,0.5)}.bk-bs-modal-sm{width:300px}}@media(min-width:992px){.bk-bs-modal-lg{width:900px}}.bk-bs-clearfix:before,.bk-bs-clearfix:after,.bk-bs-container:before,.bk-bs-container:after,.bk-bs-container-fluid:before,.bk-bs-container-fluid:after,.bk-bs-row:before,.bk-bs-row:after,.bk-bs-form-horizontal .bk-bs-form-group:before,.bk-bs-form-horizontal .bk-bs-form-group:after,.bk-bs-btn-toolbar:before,.bk-bs-btn-toolbar:after,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:before,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:after,.bk-bs-nav:before,.bk-bs-nav:after,.bk-bs-panel-body:before,.bk-bs-panel-body:after,.bk-bs-modal-footer:before,.bk-bs-modal-footer:after,.bk-crossfilter-row:before,.bk-crossfilter-row:after{content:" ";display:table}.bk-bs-clearfix:after,.bk-bs-container:after,.bk-bs-container-fluid:after,.bk-bs-row:after,.bk-bs-form-horizontal .bk-bs-form-group:after,.bk-bs-btn-toolbar:after,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:after,.bk-bs-nav:after,.bk-bs-panel-body:after,.bk-bs-modal-footer:after,.bk-crossfilter-row:after{clear:both}.bk-bs-center-block{display:block;margin-left:auto;margin-right:auto}.bk-bs-pull-right{float:right !important}.bk-bs-pull-left{float:left !important}.bk-bs-hide{display:none !important}.bk-bs-show{display:block !important}.bk-bs-invisible{visibility:hidden}.bk-bs-text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.bk-bs-hidden{display:none !important;visibility:hidden !important}.bk-bs-affix{position:fixed}@font-face{font-family:'FontAwesome';src:url('data:font/eot;base64,[encoded data, 74676 characters]') format('embedded-opentype'),url("data:application/x-font-woff;base64,[encoded data, 87272 characters]") format('woff'),url("data:font/ttf;base64,[encoded data, 149548 characters]") format('truetype');font-weight:normal;font-style:normal}.bk-fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bk-fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.bk-fa-2x{font-size:2em}.bk-fa-3x{font-size:3em}.bk-fa-4x{font-size:4em}.bk-fa-5x{font-size:5em}.bk-fa-fw{width:1.28571429em;text-align:center}.bk-fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.bk-fa-ul&gt;li{position:relative}.bk-fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.bk-fa-li.bk-fa-lg{left:-1.85714286em}.bk-fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.bk-fa.pull-left{margin-right:.3em}.bk-fa.pull-right{margin-left:.3em}.bk-fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.bk-fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.bk-fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.bk-fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.bk-fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0,mirror=1);-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.bk-fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2,mirror=1);-webkit-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .bk-fa-rotate-90,:root .bk-fa-rotate-180,:root .bk-fa-rotate-270,:root .bk-fa-flip-horizontal,:root .bk-fa-flip-vertical{filter:none}.bk-fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.bk-fa-stack-1x,.bk-fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.bk-fa-stack-1x{line-height:inherit}.bk-fa-stack-2x{font-size:2em}.bk-fa-inverse{color:#fff}.bk-fa-glass:before{content:"\f000"}.bk-fa-music:before{content:"\f001"}.bk-fa-search:before{content:"\f002"}.bk-fa-envelope-o:before{content:"\f003"}.bk-fa-heart:before{content:"\f004"}.bk-fa-star:before{content:"\f005"}.bk-fa-star-o:before{content:"\f006"}.bk-fa-user:before{content:"\f007"}.bk-fa-film:before{content:"\f008"}.bk-fa-th-large:before{content:"\f009"}.bk-fa-th:before{content:"\f00a"}.bk-fa-th-list:before{content:"\f00b"}.bk-fa-check:before{content:"\f00c"}.bk-fa-remove:before,.bk-fa-close:before,.bk-fa-times:before{content:"\f00d"}.bk-fa-search-plus:before{content:"\f00e"}.bk-fa-search-minus:before{content:"\f010"}.bk-fa-power-off:before{content:"\f011"}.bk-fa-signal:before{content:"\f012"}.bk-fa-gear:before,.bk-fa-cog:before{content:"\f013"}.bk-fa-trash-o:before{content:"\f014"}.bk-fa-home:before{content:"\f015"}.bk-fa-file-o:before{content:"\f016"}.bk-fa-clock-o:before{content:"\f017"}.bk-fa-road:before{content:"\f018"}.bk-fa-download:before{content:"\f019"}.bk-fa-arrow-circle-o-down:before{content:"\f01a"}.bk-fa-arrow-circle-o-up:before{content:"\f01b"}.bk-fa-inbox:before{content:"\f01c"}.bk-fa-play-circle-o:before{content:"\f01d"}.bk-fa-rotate-right:before,.bk-fa-repeat:before{content:"\f01e"}.bk-fa-refresh:before{content:"\f021"}.bk-fa-list-alt:before{content:"\f022"}.bk-fa-lock:before{content:"\f023"}.bk-fa-flag:before{content:"\f024"}.bk-fa-headphones:before{content:"\f025"}.bk-fa-volume-off:before{content:"\f026"}.bk-fa-volume-down:before{content:"\f027"}.bk-fa-volume-up:before{content:"\f028"}.bk-fa-qrcode:before{content:"\f029"}.bk-fa-barcode:before{content:"\f02a"}.bk-fa-tag:before{content:"\f02b"}.bk-fa-tags:before{content:"\f02c"}.bk-fa-book:before{content:"\f02d"}.bk-fa-bookmark:before{content:"\f02e"}.bk-fa-print:before{content:"\f02f"}.bk-fa-camera:before{content:"\f030"}.bk-fa-font:before{content:"\f031"}.bk-fa-bold:before{content:"\f032"}.bk-fa-italic:before{content:"\f033"}.bk-fa-text-height:before{content:"\f034"}.bk-fa-text-width:before{content:"\f035"}.bk-fa-align-left:before{content:"\f036"}.bk-fa-align-center:before{content:"\f037"}.bk-fa-align-right:before{content:"\f038"}.bk-fa-align-justify:before{content:"\f039"}.bk-fa-list:before{content:"\f03a"}.bk-fa-dedent:before,.bk-fa-outdent:before{content:"\f03b"}.bk-fa-indent:before{content:"\f03c"}.bk-fa-video-camera:before{content:"\f03d"}.bk-fa-photo:before,.bk-fa-image:before,.bk-fa-picture-o:before{content:"\f03e"}.bk-fa-pencil:before{content:"\f040"}.bk-fa-map-marker:before{content:"\f041"}.bk-fa-adjust:before{content:"\f042"}.bk-fa-tint:before{content:"\f043"}.bk-fa-edit:before,.bk-fa-pencil-square-o:before{content:"\f044"}.bk-fa-share-square-o:before{content:"\f045"}.bk-fa-check-square-o:before{content:"\f046"}.bk-fa-arrows:before{content:"\f047"}.bk-fa-step-backward:before{content:"\f048"}.bk-fa-fast-backward:before{content:"\f049"}.bk-fa-backward:before{content:"\f04a"}.bk-fa-play:before{content:"\f04b"}.bk-fa-pause:before{content:"\f04c"}.bk-fa-stop:before{content:"\f04d"}.bk-fa-forward:before{content:"\f04e"}.bk-fa-fast-forward:before{content:"\f050"}.bk-fa-step-forward:before{content:"\f051"}.bk-fa-eject:before{content:"\f052"}.bk-fa-chevron-left:before{content:"\f053"}.bk-fa-chevron-right:before{content:"\f054"}.bk-fa-plus-circle:before{content:"\f055"}.bk-fa-minus-circle:before{content:"\f056"}.bk-fa-times-circle:before{content:"\f057"}.bk-fa-check-circle:before{content:"\f058"}.bk-fa-question-circle:before{content:"\f059"}.bk-fa-info-circle:before{content:"\f05a"}.bk-fa-crosshairs:before{content:"\f05b"}.bk-fa-times-circle-o:before{content:"\f05c"}.bk-fa-check-circle-o:before{content:"\f05d"}.bk-fa-ban:before{content:"\f05e"}.bk-fa-arrow-left:before{content:"\f060"}.bk-fa-arrow-right:before{content:"\f061"}.bk-fa-arrow-up:before{content:"\f062"}.bk-fa-arrow-down:before{content:"\f063"}.bk-fa-mail-forward:before,.bk-fa-share:before{content:"\f064"}.bk-fa-expand:before{content:"\f065"}.bk-fa-compress:before{content:"\f066"}.bk-fa-plus:before{content:"\f067"}.bk-fa-minus:before{content:"\f068"}.bk-fa-asterisk:before{content:"\f069"}.bk-fa-exclamation-circle:before{content:"\f06a"}.bk-fa-gift:before{content:"\f06b"}.bk-fa-leaf:before{content:"\f06c"}.bk-fa-fire:before{content:"\f06d"}.bk-fa-eye:before{content:"\f06e"}.bk-fa-eye-slash:before{content:"\f070"}.bk-fa-warning:before,.bk-fa-exclamation-triangle:before{content:"\f071"}.bk-fa-plane:before{content:"\f072"}.bk-fa-calendar:before{content:"\f073"}.bk-fa-random:before{content:"\f074"}.bk-fa-comment:before{content:"\f075"}.bk-fa-magnet:before{content:"\f076"}.bk-fa-chevron-up:before{content:"\f077"}.bk-fa-chevron-down:before{content:"\f078"}.bk-fa-retweet:before{content:"\f079"}.bk-fa-shopping-cart:before{content:"\f07a"}.bk-fa-folder:before{content:"\f07b"}.bk-fa-folder-open:before{content:"\f07c"}.bk-fa-arrows-v:before{content:"\f07d"}.bk-fa-arrows-h:before{content:"\f07e"}.bk-fa-bar-chart-o:before,.bk-fa-bar-chart:before{content:"\f080"}.bk-fa-twitter-square:before{content:"\f081"}.bk-fa-facebook-square:before{content:"\f082"}.bk-fa-camera-retro:before{content:"\f083"}.bk-fa-key:before{content:"\f084"}.bk-fa-gears:before,.bk-fa-cogs:before{content:"\f085"}.bk-fa-comments:before{content:"\f086"}.bk-fa-thumbs-o-up:before{content:"\f087"}.bk-fa-thumbs-o-down:before{content:"\f088"}.bk-fa-star-half:before{content:"\f089"}.bk-fa-heart-o:before{content:"\f08a"}.bk-fa-sign-out:before{content:"\f08b"}.bk-fa-linkedin-square:before{content:"\f08c"}.bk-fa-thumb-tack:before{content:"\f08d"}.bk-fa-external-link:before{content:"\f08e"}.bk-fa-sign-in:before{content:"\f090"}.bk-fa-trophy:before{content:"\f091"}.bk-fa-github-square:before{content:"\f092"}.bk-fa-upload:before{content:"\f093"}.bk-fa-lemon-o:before{content:"\f094"}.bk-fa-phone:before{content:"\f095"}.bk-fa-square-o:before{content:"\f096"}.bk-fa-bookmark-o:before{content:"\f097"}.bk-fa-phone-square:before{content:"\f098"}.bk-fa-twitter:before{content:"\f099"}.bk-fa-facebook:before{content:"\f09a"}.bk-fa-github:before{content:"\f09b"}.bk-fa-unlock:before{content:"\f09c"}.bk-fa-credit-card:before{content:"\f09d"}.bk-fa-rss:before{content:"\f09e"}.bk-fa-hdd-o:before{content:"\f0a0"}.bk-fa-bullhorn:before{content:"\f0a1"}.bk-fa-bell:before{content:"\f0f3"}.bk-fa-certificate:before{content:"\f0a3"}.bk-fa-hand-o-right:before{content:"\f0a4"}.bk-fa-hand-o-left:before{content:"\f0a5"}.bk-fa-hand-o-up:before{content:"\f0a6"}.bk-fa-hand-o-down:before{content:"\f0a7"}.bk-fa-arrow-circle-left:before{content:"\f0a8"}.bk-fa-arrow-circle-right:before{content:"\f0a9"}.bk-fa-arrow-circle-up:before{content:"\f0aa"}.bk-fa-arrow-circle-down:before{content:"\f0ab"}.bk-fa-globe:before{content:"\f0ac"}.bk-fa-wrench:before{content:"\f0ad"}.bk-fa-tasks:before{content:"\f0ae"}.bk-fa-filter:before{content:"\f0b0"}.bk-fa-briefcase:before{content:"\f0b1"}.bk-fa-arrows-alt:before{content:"\f0b2"}.bk-fa-group:before,.bk-fa-users:before{content:"\f0c0"}.bk-fa-chain:before,.bk-fa-link:before{content:"\f0c1"}.bk-fa-cloud:before{content:"\f0c2"}.bk-fa-flask:before{content:"\f0c3"}.bk-fa-cut:before,.bk-fa-scissors:before{content:"\f0c4"}.bk-fa-copy:before,.bk-fa-files-o:before{content:"\f0c5"}.bk-fa-paperclip:before{content:"\f0c6"}.bk-fa-save:before,.bk-fa-floppy-o:before{content:"\f0c7"}.bk-fa-square:before{content:"\f0c8"}.bk-fa-navicon:before,.bk-fa-reorder:before,.bk-fa-bars:before{content:"\f0c9"}.bk-fa-list-ul:before{content:"\f0ca"}.bk-fa-list-ol:before{content:"\f0cb"}.bk-fa-strikethrough:before{content:"\f0cc"}.bk-fa-underline:before{content:"\f0cd"}.bk-fa-table:before{content:"\f0ce"}.bk-fa-magic:before{content:"\f0d0"}.bk-fa-truck:before{content:"\f0d1"}.bk-fa-pinterest:before{content:"\f0d2"}.bk-fa-pinterest-square:before{content:"\f0d3"}.bk-fa-google-plus-square:before{content:"\f0d4"}.bk-fa-google-plus:before{content:"\f0d5"}.bk-fa-money:before{content:"\f0d6"}.bk-fa-caret-down:before{content:"\f0d7"}.bk-fa-caret-up:before{content:"\f0d8"}.bk-fa-caret-left:before{content:"\f0d9"}.bk-fa-caret-right:before{content:"\f0da"}.bk-fa-columns:before{content:"\f0db"}.bk-fa-unsorted:before,.bk-fa-sort:before{content:"\f0dc"}.bk-fa-sort-down:before,.bk-fa-sort-desc:before{content:"\f0dd"}.bk-fa-sort-up:before,.bk-fa-sort-asc:before{content:"\f0de"}.bk-fa-envelope:before{content:"\f0e0"}.bk-fa-linkedin:before{content:"\f0e1"}.bk-fa-rotate-left:before,.bk-fa-undo:before{content:"\f0e2"}.bk-fa-legal:before,.bk-fa-gavel:before{content:"\f0e3"}.bk-fa-dashboard:before,.bk-fa-tachometer:before{content:"\f0e4"}.bk-fa-comment-o:before{content:"\f0e5"}.bk-fa-comments-o:before{content:"\f0e6"}.bk-fa-flash:before,.bk-fa-bolt:before{content:"\f0e7"}.bk-fa-sitemap:before{content:"\f0e8"}.bk-fa-umbrella:before{content:"\f0e9"}.bk-fa-paste:before,.bk-fa-clipboard:before{content:"\f0ea"}.bk-fa-lightbulb-o:before{content:"\f0eb"}.bk-fa-exchange:before{content:"\f0ec"}.bk-fa-cloud-download:before{content:"\f0ed"}.bk-fa-cloud-upload:before{content:"\f0ee"}.bk-fa-user-md:before{content:"\f0f0"}.bk-fa-stethoscope:before{content:"\f0f1"}.bk-fa-suitcase:before{content:"\f0f2"}.bk-fa-bell-o:before{content:"\f0a2"}.bk-fa-coffee:before{content:"\f0f4"}.bk-fa-cutlery:before{content:"\f0f5"}.bk-fa-file-text-o:before{content:"\f0f6"}.bk-fa-building-o:before{content:"\f0f7"}.bk-fa-hospital-o:before{content:"\f0f8"}.bk-fa-ambulance:before{content:"\f0f9"}.bk-fa-medkit:before{content:"\f0fa"}.bk-fa-fighter-jet:before{content:"\f0fb"}.bk-fa-beer:before{content:"\f0fc"}.bk-fa-h-square:before{content:"\f0fd"}.bk-fa-plus-square:before{content:"\f0fe"}.bk-fa-angle-double-left:before{content:"\f100"}.bk-fa-angle-double-right:before{content:"\f101"}.bk-fa-angle-double-up:before{content:"\f102"}.bk-fa-angle-double-down:before{content:"\f103"}.bk-fa-angle-left:before{content:"\f104"}.bk-fa-angle-right:before{content:"\f105"}.bk-fa-angle-up:before{content:"\f106"}.bk-fa-angle-down:before{content:"\f107"}.bk-fa-desktop:before{content:"\f108"}.bk-fa-laptop:before{content:"\f109"}.bk-fa-tablet:before{content:"\f10a"}.bk-fa-mobile-phone:before,.bk-fa-mobile:before{content:"\f10b"}.bk-fa-circle-o:before{content:"\f10c"}.bk-fa-quote-left:before{content:"\f10d"}.bk-fa-quote-right:before{content:"\f10e"}.bk-fa-spinner:before{content:"\f110"}.bk-fa-circle:before{content:"\f111"}.bk-fa-mail-reply:before,.bk-fa-reply:before{content:"\f112"}.bk-fa-github-alt:before{content:"\f113"}.bk-fa-folder-o:before{content:"\f114"}.bk-fa-folder-open-o:before{content:"\f115"}.bk-fa-smile-o:before{content:"\f118"}.bk-fa-frown-o:before{content:"\f119"}.bk-fa-meh-o:before{content:"\f11a"}.bk-fa-gamepad:before{content:"\f11b"}.bk-fa-keyboard-o:before{content:"\f11c"}.bk-fa-flag-o:before{content:"\f11d"}.bk-fa-flag-checkered:before{content:"\f11e"}.bk-fa-terminal:before{content:"\f120"}.bk-fa-code:before{content:"\f121"}.bk-fa-mail-reply-all:before,.bk-fa-reply-all:before{content:"\f122"}.bk-fa-star-half-empty:before,.bk-fa-star-half-full:before,.bk-fa-star-half-o:before{content:"\f123"}.bk-fa-location-arrow:before{content:"\f124"}.bk-fa-crop:before{content:"\f125"}.bk-fa-code-fork:before{content:"\f126"}.bk-fa-unlink:before,.bk-fa-chain-broken:before{content:"\f127"}.bk-fa-question:before{content:"\f128"}.bk-fa-info:before{content:"\f129"}.bk-fa-exclamation:before{content:"\f12a"}.bk-fa-superscript:before{content:"\f12b"}.bk-fa-subscript:before{content:"\f12c"}.bk-fa-eraser:before{content:"\f12d"}.bk-fa-puzzle-piece:before{content:"\f12e"}.bk-fa-microphone:before{content:"\f130"}.bk-fa-microphone-slash:before{content:"\f131"}.bk-fa-shield:before{content:"\f132"}.bk-fa-calendar-o:before{content:"\f133"}.bk-fa-fire-extinguisher:before{content:"\f134"}.bk-fa-rocket:before{content:"\f135"}.bk-fa-maxcdn:before{content:"\f136"}.bk-fa-chevron-circle-left:before{content:"\f137"}.bk-fa-chevron-circle-right:before{content:"\f138"}.bk-fa-chevron-circle-up:before{content:"\f139"}.bk-fa-chevron-circle-down:before{content:"\f13a"}.bk-fa-html5:before{content:"\f13b"}.bk-fa-css3:before{content:"\f13c"}.bk-fa-anchor:before{content:"\f13d"}.bk-fa-unlock-alt:before{content:"\f13e"}.bk-fa-bullseye:before{content:"\f140"}.bk-fa-ellipsis-h:before{content:"\f141"}.bk-fa-ellipsis-v:before{content:"\f142"}.bk-fa-rss-square:before{content:"\f143"}.bk-fa-play-circle:before{content:"\f144"}.bk-fa-ticket:before{content:"\f145"}.bk-fa-minus-square:before{content:"\f146"}.bk-fa-minus-square-o:before{content:"\f147"}.bk-fa-level-up:before{content:"\f148"}.bk-fa-level-down:before{content:"\f149"}.bk-fa-check-square:before{content:"\f14a"}.bk-fa-pencil-square:before{content:"\f14b"}.bk-fa-external-link-square:before{content:"\f14c"}.bk-fa-share-square:before{content:"\f14d"}.bk-fa-compass:before{content:"\f14e"}.bk-fa-toggle-down:before,.bk-fa-caret-square-o-down:before{content:"\f150"}.bk-fa-toggle-up:before,.bk-fa-caret-square-o-up:before{content:"\f151"}.bk-fa-toggle-right:before,.bk-fa-caret-square-o-right:before{content:"\f152"}.bk-fa-euro:before,.bk-fa-eur:before{content:"\f153"}.bk-fa-gbp:before{content:"\f154"}.bk-fa-dollar:before,.bk-fa-usd:before{content:"\f155"}.bk-fa-rupee:before,.bk-fa-inr:before{content:"\f156"}.bk-fa-cny:before,.bk-fa-rmb:before,.bk-fa-yen:before,.bk-fa-jpy:before{content:"\f157"}.bk-fa-ruble:before,.bk-fa-rouble:before,.bk-fa-rub:before{content:"\f158"}.bk-fa-won:before,.bk-fa-krw:before{content:"\f159"}.bk-fa-bitcoin:before,.bk-fa-btc:before{content:"\f15a"}.bk-fa-file:before{content:"\f15b"}.bk-fa-file-text:before{content:"\f15c"}.bk-fa-sort-alpha-asc:before{content:"\f15d"}.bk-fa-sort-alpha-desc:before{content:"\f15e"}.bk-fa-sort-amount-asc:before{content:"\f160"}.bk-fa-sort-amount-desc:before{content:"\f161"}.bk-fa-sort-numeric-asc:before{content:"\f162"}.bk-fa-sort-numeric-desc:before{content:"\f163"}.bk-fa-thumbs-up:before{content:"\f164"}.bk-fa-thumbs-down:before{content:"\f165"}.bk-fa-youtube-square:before{content:"\f166"}.bk-fa-youtube:before{content:"\f167"}.bk-fa-xing:before{content:"\f168"}.bk-fa-xing-square:before{content:"\f169"}.bk-fa-youtube-play:before{content:"\f16a"}.bk-fa-dropbox:before{content:"\f16b"}.bk-fa-stack-overflow:before{content:"\f16c"}.bk-fa-instagram:before{content:"\f16d"}.bk-fa-flickr:before{content:"\f16e"}.bk-fa-adn:before{content:"\f170"}.bk-fa-bitbucket:before{content:"\f171"}.bk-fa-bitbucket-square:before{content:"\f172"}.bk-fa-tumblr:before{content:"\f173"}.bk-fa-tumblr-square:before{content:"\f174"}.bk-fa-long-arrow-down:before{content:"\f175"}.bk-fa-long-arrow-up:before{content:"\f176"}.bk-fa-long-arrow-left:before{content:"\f177"}.bk-fa-long-arrow-right:before{content:"\f178"}.bk-fa-apple:before{content:"\f179"}.bk-fa-windows:before{content:"\f17a"}.bk-fa-android:before{content:"\f17b"}.bk-fa-linux:before{content:"\f17c"}.bk-fa-dribbble:before{content:"\f17d"}.bk-fa-skype:before{content:"\f17e"}.bk-fa-foursquare:before{content:"\f180"}.bk-fa-trello:before{content:"\f181"}.bk-fa-female:before{content:"\f182"}.bk-fa-male:before{content:"\f183"}.bk-fa-gittip:before{content:"\f184"}.bk-fa-sun-o:before{content:"\f185"}.bk-fa-moon-o:before{content:"\f186"}.bk-fa-archive:before{content:"\f187"}.bk-fa-bug:before{content:"\f188"}.bk-fa-vk:before{content:"\f189"}.bk-fa-weibo:before{content:"\f18a"}.bk-fa-renren:before{content:"\f18b"}.bk-fa-pagelines:before{content:"\f18c"}.bk-fa-stack-exchange:before{content:"\f18d"}.bk-fa-arrow-circle-o-right:before{content:"\f18e"}.bk-fa-arrow-circle-o-left:before{content:"\f190"}.bk-fa-toggle-left:before,.bk-fa-caret-square-o-left:before{content:"\f191"}.bk-fa-dot-circle-o:before{content:"\f192"}.bk-fa-wheelchair:before{content:"\f193"}.bk-fa-vimeo-square:before{content:"\f194"}.bk-fa-turkish-lira:before,.bk-fa-try:before{content:"\f195"}.bk-fa-plus-square-o:before{content:"\f196"}.bk-fa-space-shuttle:before{content:"\f197"}.bk-fa-slack:before{content:"\f198"}.bk-fa-envelope-square:before{content:"\f199"}.bk-fa-wordpress:before{content:"\f19a"}.bk-fa-openid:before{content:"\f19b"}.bk-fa-institution:before,.bk-fa-bank:before,.bk-fa-university:before{content:"\f19c"}.bk-fa-mortar-board:before,.bk-fa-graduation-cap:before{content:"\f19d"}.bk-fa-yahoo:before{content:"\f19e"}.bk-fa-google:before{content:"\f1a0"}.bk-fa-reddit:before{content:"\f1a1"}.bk-fa-reddit-square:before{content:"\f1a2"}.bk-fa-stumbleupon-circle:before{content:"\f1a3"}.bk-fa-stumbleupon:before{content:"\f1a4"}.bk-fa-delicious:before{content:"\f1a5"}.bk-fa-digg:before{content:"\f1a6"}.bk-fa-pied-piper:before{content:"\f1a7"}.bk-fa-pied-piper-alt:before{content:"\f1a8"}.bk-fa-drupal:before{content:"\f1a9"}.bk-fa-joomla:before{content:"\f1aa"}.bk-fa-language:before{content:"\f1ab"}.bk-fa-fax:before{content:"\f1ac"}.bk-fa-building:before{content:"\f1ad"}.bk-fa-child:before{content:"\f1ae"}.bk-fa-paw:before{content:"\f1b0"}.bk-fa-spoon:before{content:"\f1b1"}.bk-fa-cube:before{content:"\f1b2"}.bk-fa-cubes:before{content:"\f1b3"}.bk-fa-behance:before{content:"\f1b4"}.bk-fa-behance-square:before{content:"\f1b5"}.bk-fa-steam:before{content:"\f1b6"}.bk-fa-steam-square:before{content:"\f1b7"}.bk-fa-recycle:before{content:"\f1b8"}.bk-fa-automobile:before,.bk-fa-car:before{content:"\f1b9"}.bk-fa-cab:before,.bk-fa-taxi:before{content:"\f1ba"}.bk-fa-tree:before{content:"\f1bb"}.bk-fa-spotify:before{content:"\f1bc"}.bk-fa-deviantart:before{content:"\f1bd"}.bk-fa-soundcloud:before{content:"\f1be"}.bk-fa-database:before{content:"\f1c0"}.bk-fa-file-pdf-o:before{content:"\f1c1"}.bk-fa-file-word-o:before{content:"\f1c2"}.bk-fa-file-excel-o:before{content:"\f1c3"}.bk-fa-file-powerpoint-o:before{content:"\f1c4"}.bk-fa-file-photo-o:before,.bk-fa-file-picture-o:before,.bk-fa-file-image-o:before{content:"\f1c5"}.bk-fa-file-zip-o:before,.bk-fa-file-archive-o:before{content:"\f1c6"}.bk-fa-file-sound-o:before,.bk-fa-file-audio-o:before{content:"\f1c7"}.bk-fa-file-movie-o:before,.bk-fa-file-video-o:before{content:"\f1c8"}.bk-fa-file-code-o:before{content:"\f1c9"}.bk-fa-vine:before{content:"\f1ca"}.bk-fa-codepen:before{content:"\f1cb"}.bk-fa-jsfiddle:before{content:"\f1cc"}.bk-fa-life-bouy:before,.bk-fa-life-buoy:before,.bk-fa-life-saver:before,.bk-fa-support:before,.bk-fa-life-ring:before{content:"\f1cd"}.bk-fa-circle-o-notch:before{content:"\f1ce"}.bk-fa-ra:before,.bk-fa-rebel:before{content:"\f1d0"}.bk-fa-ge:before,.bk-fa-empire:before{content:"\f1d1"}.bk-fa-git-square:before{content:"\f1d2"}.bk-fa-git:before{content:"\f1d3"}.bk-fa-hacker-news:before{content:"\f1d4"}.bk-fa-tencent-weibo:before{content:"\f1d5"}.bk-fa-qq:before{content:"\f1d6"}.bk-fa-wechat:before,.bk-fa-weixin:before{content:"\f1d7"}.bk-fa-send:before,.bk-fa-paper-plane:before{content:"\f1d8"}.bk-fa-send-o:before,.bk-fa-paper-plane-o:before{content:"\f1d9"}.bk-fa-history:before{content:"\f1da"}.bk-fa-circle-thin:before{content:"\f1db"}.bk-fa-header:before{content:"\f1dc"}.bk-fa-paragraph:before{content:"\f1dd"}.bk-fa-sliders:before{content:"\f1de"}.bk-fa-share-alt:before{content:"\f1e0"}.bk-fa-share-alt-square:before{content:"\f1e1"}.bk-fa-bomb:before{content:"\f1e2"}.bk-fa-soccer-ball-o:before,.bk-fa-futbol-o:before{content:"\f1e3"}.bk-fa-tty:before{content:"\f1e4"}.bk-fa-binoculars:before{content:"\f1e5"}.bk-fa-plug:before{content:"\f1e6"}.bk-fa-slideshare:before{content:"\f1e7"}.bk-fa-twitch:before{content:"\f1e8"}.bk-fa-yelp:before{content:"\f1e9"}.bk-fa-newspaper-o:before{content:"\f1ea"}.bk-fa-wifi:before{content:"\f1eb"}.bk-fa-calculator:before{content:"\f1ec"}.bk-fa-paypal:before{content:"\f1ed"}.bk-fa-google-wallet:before{content:"\f1ee"}.bk-fa-cc-visa:before{content:"\f1f0"}.bk-fa-cc-mastercard:before{content:"\f1f1"}.bk-fa-cc-discover:before{content:"\f1f2"}.bk-fa-cc-amex:before{content:"\f1f3"}.bk-fa-cc-paypal:before{content:"\f1f4"}.bk-fa-cc-stripe:before{content:"\f1f5"}.bk-fa-bell-slash:before{content:"\f1f6"}.bk-fa-bell-slash-o:before{content:"\f1f7"}.bk-fa-trash:before{content:"\f1f8"}.bk-fa-copyright:before{content:"\f1f9"}.bk-fa-at:before{content:"\f1fa"}.bk-fa-eyedropper:before{content:"\f1fb"}.bk-fa-paint-brush:before{content:"\f1fc"}.bk-fa-birthday-cake:before{content:"\f1fd"}.bk-fa-area-chart:before{content:"\f1fe"}.bk-fa-pie-chart:before{content:"\f200"}.bk-fa-line-chart:before{content:"\f201"}.bk-fa-lastfm:before{content:"\f202"}.bk-fa-lastfm-square:before{content:"\f203"}.bk-fa-toggle-off:before{content:"\f204"}.bk-fa-toggle-on:before{content:"\f205"}.bk-fa-bicycle:before{content:"\f206"}.bk-fa-bus:before{content:"\f207"}.bk-fa-ioxhost:before{content:"\f208"}.bk-fa-angellist:before{content:"\f209"}.bk-fa-cc:before{content:"\f20a"}.bk-fa-shekel:before,.bk-fa-sheqel:before,.bk-fa-ils:before{content:"\f20b"}.bk-fa-meanpath:before{content:"\f20c"}/*!
         * jQuery UI CSS Framework 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/category/theming/
         */.bk-ui-helper-hidden{display:none}.bk-ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.bk-ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.bk-ui-helper-clearfix:before,.bk-ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.bk-ui-helper-clearfix:after{clear:both}.bk-ui-helper-clearfix{min-height:0}.bk-ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.bk-ui-front{z-index:100}.bk-ui-state-disabled{cursor:default !important}.bk-ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.bk-ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}/*!
         * jQuery UI Accordion 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/accordion/#theming
         */.bk-ui-accordion .bk-ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;min-height:0;font-size:100%}.bk-ui-accordion .bk-ui-accordion-icons{padding-left:2.2em}.bk-ui-accordion .bk-ui-accordion-icons .bk-ui-accordion-icons{padding-left:2.2em}.bk-ui-accordion .bk-ui-accordion-header .bk-ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.bk-ui-accordion .bk-ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}/*!
         * jQuery UI Autocomplete 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/autocomplete/#theming
         */.bk-ui-autocomplete{position:absolute;top:0;left:0;cursor:default}/*!
         * jQuery UI Button 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/button/#theming
         */.bk-ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.bk-ui-button,.bk-ui-button:link,.bk-ui-button:visited,.bk-ui-button:hover,.bk-ui-button:active{text-decoration:none}.bk-ui-button-icon-only{width:2.2em}button.bk-ui-button-icon-only{width:2.4em}.bk-ui-button-icons-only{width:3.4em}button.bk-ui-button-icons-only{width:3.7em}.bk-ui-button .bk-ui-button-text{display:block;line-height:normal}.bk-ui-button-text-only .bk-ui-button-text{padding:.4em 1em}.bk-ui-button-icon-only .bk-ui-button-text,.bk-ui-button-icons-only .bk-ui-button-text{padding:.4em;text-indent:-9999999px}.bk-ui-button-text-icon-primary .bk-ui-button-text,.bk-ui-button-text-icons .bk-ui-button-text{padding:.4em 1em .4em 2.1em}.bk-ui-button-text-icon-secondary .bk-ui-button-text,.bk-ui-button-text-icons .bk-ui-button-text{padding:.4em 2.1em .4em 1em}.bk-ui-button-text-icons .bk-ui-button-text{padding-left:2.1em;padding-right:2.1em}input.bk-ui-button{padding:.4em 1em}.bk-ui-button-icon-only .bk-ui-icon,.bk-ui-button-text-icon-primary .bk-ui-icon,.bk-ui-button-text-icon-secondary .bk-ui-icon,.bk-ui-button-text-icons .bk-ui-icon,.bk-ui-button-icons-only .bk-ui-icon{position:absolute;top:50%;margin-top:-8px}.bk-ui-button-icon-only .bk-ui-icon{left:50%;margin-left:-8px}.bk-ui-button-text-icon-primary .bk-ui-button-icon-primary,.bk-ui-button-text-icons .bk-ui-button-icon-primary,.bk-ui-button-icons-only .bk-ui-button-icon-primary{left:.5em}.bk-ui-button-text-icon-secondary .bk-ui-button-icon-secondary,.bk-ui-button-text-icons .bk-ui-button-icon-secondary,.bk-ui-button-icons-only .bk-ui-button-icon-secondary{right:.5em}.bk-ui-buttonset{margin-right:7px}.bk-ui-buttonset .bk-ui-button{margin-left:0;margin-right:-.3em}input.bk-ui-button::-moz-focus-inner,button.bk-ui-button::-moz-focus-inner{border:0;padding:0}/*!
         * jQuery UI Datepicker 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/datepicker/#theming
         */.bk-ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.bk-ui-datepicker .bk-ui-datepicker-header{position:relative;padding:.2em 0}.bk-ui-datepicker .bk-ui-datepicker-prev,.bk-ui-datepicker .bk-ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.bk-ui-datepicker .bk-ui-datepicker-prev-hover,.bk-ui-datepicker .bk-ui-datepicker-next-hover{top:1px}.bk-ui-datepicker .bk-ui-datepicker-prev{left:2px}.bk-ui-datepicker .bk-ui-datepicker-next{right:2px}.bk-ui-datepicker .bk-ui-datepicker-prev-hover{left:1px}.bk-ui-datepicker .bk-ui-datepicker-next-hover{right:1px}.bk-ui-datepicker .bk-ui-datepicker-prev span,.bk-ui-datepicker .bk-ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.bk-ui-datepicker .bk-ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.bk-ui-datepicker .bk-ui-datepicker-title select{font-size:1em;margin:1px 0}.bk-ui-datepicker select.bk-ui-datepicker-month,.bk-ui-datepicker select.bk-ui-datepicker-year{width:45%}.bk-ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.bk-ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.bk-ui-datepicker td{border:0;padding:1px}.bk-ui-datepicker td span,.bk-ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.bk-ui-datepicker .bk-ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.bk-ui-datepicker .bk-ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.bk-ui-datepicker .bk-ui-datepicker-buttonpane button.bk-ui-datepicker-current{float:left}.bk-ui-datepicker.bk-ui-datepicker-multi{width:auto}.bk-ui-datepicker-multi .bk-ui-datepicker-group{float:left}.bk-ui-datepicker-multi .bk-ui-datepicker-group table{width:95%;margin:0 auto .4em}.bk-ui-datepicker-multi-2 .bk-ui-datepicker-group{width:50%}.bk-ui-datepicker-multi-3 .bk-ui-datepicker-group{width:33.3%}.bk-ui-datepicker-multi-4 .bk-ui-datepicker-group{width:25%}.bk-ui-datepicker-multi .bk-ui-datepicker-group-last .bk-ui-datepicker-header,.bk-ui-datepicker-multi .bk-ui-datepicker-group-middle .bk-ui-datepicker-header{border-left-width:0}.bk-ui-datepicker-multi .bk-ui-datepicker-buttonpane{clear:left}.bk-ui-datepicker-row-break{clear:both;width:100%;font-size:0}.bk-ui-datepicker-rtl{direction:rtl}.bk-ui-datepicker-rtl .bk-ui-datepicker-prev{right:2px;left:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-next{left:2px;right:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-prev:hover{right:1px;left:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-next:hover{left:1px;right:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-buttonpane{clear:right}.bk-ui-datepicker-rtl .bk-ui-datepicker-buttonpane button{float:left}.bk-ui-datepicker-rtl .bk-ui-datepicker-buttonpane button.bk-ui-datepicker-current,.bk-ui-datepicker-rtl .bk-ui-datepicker-group{float:right}.bk-ui-datepicker-rtl .bk-ui-datepicker-group-last .bk-ui-datepicker-header,.bk-ui-datepicker-rtl .bk-ui-datepicker-group-middle .bk-ui-datepicker-header{border-right-width:0;border-left-width:1px}/*!
         * jQuery UI Dialog 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/dialog/#theming
         */.bk-ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.bk-ui-dialog .bk-ui-dialog-titlebar{padding:.4em 1em;position:relative}.bk-ui-dialog .bk-ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.bk-ui-dialog .bk-ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.bk-ui-dialog .bk-ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0;overflow:auto}.bk-ui-dialog .bk-ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.bk-ui-dialog .bk-ui-dialog-buttonpane .bk-ui-dialog-buttonset{float:right}.bk-ui-dialog .bk-ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.bk-ui-dialog .bk-ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.bk-ui-draggable .bk-ui-dialog-titlebar{cursor:move}/*!
         * jQuery UI Draggable 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         */.bk-ui-draggable-handle{-ms-touch-action:none;touch-action:none}/*!
         * jQuery UI Menu 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/menu/#theming
         */.bk-ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.bk-ui-menu .bk-ui-menu{position:absolute}.bk-ui-menu .bk-ui-menu-item{position:relative;margin:0;padding:3px 1em 3px .4em;cursor:pointer;min-height:0;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.bk-ui-menu .bk-ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.bk-ui-menu .bk-ui-state-focus,.bk-ui-menu .bk-ui-state-active{margin:-1px}.bk-ui-menu-icons{position:relative}.bk-ui-menu-icons .bk-ui-menu-item{padding-left:2em}.bk-ui-menu .bk-ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.bk-ui-menu .bk-ui-menu-icon{left:auto;right:0}/*!
         * jQuery UI Progressbar 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/progressbar/#theming
         */.bk-ui-progressbar{height:2em;text-align:left;overflow:hidden}.bk-ui-progressbar .bk-ui-progressbar-value{margin:-1px;height:100%}.bk-ui-progressbar .bk-ui-progressbar-overlay{background:url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");height:100%;filter:alpha(opacity=25);opacity:.25}.bk-ui-progressbar-indeterminate .bk-ui-progressbar-value{background-image:none}/*!
         * jQuery UI Resizable 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         */.bk-ui-resizable{position:relative}.bk-ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.bk-ui-resizable-disabled .bk-ui-resizable-handle,.bk-ui-resizable-autohide .bk-ui-resizable-handle{display:none}.bk-ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.bk-ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.bk-ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.bk-ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.bk-ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.bk-ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.bk-ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.bk-ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}/*!
         * jQuery UI Selectable 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         */.bk-ui-selectable{-ms-touch-action:none;touch-action:none}.bk-ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}/*!
         * jQuery UI Selectmenu 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/selectmenu/#theming
         */.bk-ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.bk-ui-selectmenu-menu .bk-ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.bk-ui-selectmenu-menu .bk-ui-menu .bk-ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px .4em;margin:.5em 0 0 0;height:auto;border:0}.bk-ui-selectmenu-open{display:block}.bk-ui-selectmenu-button{display:inline-block;overflow:hidden;position:relative;text-decoration:none;cursor:pointer}.bk-ui-selectmenu-button span.bk-ui-icon{right:.5em;left:auto;margin-top:-8px;position:absolute;top:50%}.bk-ui-selectmenu-button span.bk-ui-selectmenu-text{text-align:left;padding:.4em 2.1em .4em 1em;display:block;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/*!
         * jQuery UI Sortable 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         */.bk-ui-sortable-handle{-ms-touch-action:none;touch-action:none}/*!
         * jQuery UI Slider 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/slider/#theming
         */.bk-ui-slider{position:relative;text-align:left}.bk-ui-slider .bk-ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.bk-ui-slider .bk-ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.bk-ui-slider.bk-ui-state-disabled .bk-ui-slider-handle,.bk-ui-slider.bk-ui-state-disabled .bk-ui-slider-range{filter:inherit}.bk-ui-slider-horizontal{height:.8em}.bk-ui-slider-horizontal .bk-ui-slider-handle{top:-.3em;margin-left:-.6em}.bk-ui-slider-horizontal .bk-ui-slider-range{top:0;height:100%}.bk-ui-slider-horizontal .bk-ui-slider-range-min{left:0}.bk-ui-slider-horizontal .bk-ui-slider-range-max{right:0}.bk-ui-slider-vertical{width:.8em;height:100px}.bk-ui-slider-vertical .bk-ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.bk-ui-slider-vertical .bk-ui-slider-range{left:0;width:100%}.bk-ui-slider-vertical .bk-ui-slider-range-min{bottom:0}.bk-ui-slider-vertical .bk-ui-slider-range-max{top:0}/*!
         * jQuery UI Spinner 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/spinner/#theming
         */.bk-ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.bk-ui-spinner-input{border:0;background:0;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.bk-ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.bk-ui-spinner a.bk-ui-spinner-button{border-top:0;border-bottom:0;border-right:0}.bk-ui-spinner .bk-ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.bk-ui-spinner-up{top:0}.bk-ui-spinner-down{bottom:0}.bk-ui-spinner .bk-ui-icon-triangle-1-s{background-position:-65px -16px}/*!
         * jQuery UI Tabs 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/tabs/#theming
         */.bk-ui-tabs{position:relative;padding:.2em}.bk-ui-tabs .bk-ui-tabs-nav{margin:0;padding:.2em .2em 0}.bk-ui-tabs .bk-ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.bk-ui-tabs .bk-ui-tabs-nav .bk-ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-tabs-active .bk-ui-tabs-anchor,.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-state-disabled .bk-ui-tabs-anchor,.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-tabs-loading .bk-ui-tabs-anchor{cursor:text}.bk-ui-tabs-collapsible .bk-ui-tabs-nav li.bk-ui-tabs-active .bk-ui-tabs-anchor{cursor:pointer}.bk-ui-tabs .bk-ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0}/*!
         * jQuery UI Tooltip 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/tooltip/#theming
         */.bk-ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .bk-ui-tooltip{border-width:2px}/*!
         * jQuery UI CSS Framework 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/category/theming/
         *
         * To view and modify this theme, visit http://jqueryui.com/themeroller/
         */.bk-ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.bk-ui-widget .bk-ui-widget{font-size:1em}.bk-ui-widget input,.bk-ui-widget select,.bk-ui-widget textarea,.bk-ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.bk-ui-widget-content{border:1px solid #aaa;background:#fff url("images/ui-bg_flat_75_ffffff_40x100.png") 50% 50% repeat-x;color:#222}.bk-ui-widget-content a{color:#222}.bk-ui-widget-header{border:1px solid #aaa;background:#ccc url("images/ui-bg_highlight-soft_75_cccccc_1x100.png") 50% 50% repeat-x;color:#222;font-weight:bold}.bk-ui-widget-header a{color:#222}.bk-ui-state-default,.bk-ui-widget-content .bk-ui-state-default,.bk-ui-widget-header .bk-ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url("images/ui-bg_glass_75_e6e6e6_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#555}.bk-ui-state-default a,.bk-ui-state-default a:link,.bk-ui-state-default a:visited{color:#555;text-decoration:none}.bk-ui-state-hover,.bk-ui-widget-content .bk-ui-state-hover,.bk-ui-widget-header .bk-ui-state-hover,.bk-ui-state-focus,.bk-ui-widget-content .bk-ui-state-focus,.bk-ui-widget-header .bk-ui-state-focus{border:1px solid #999;background:#dadada url("images/ui-bg_glass_75_dadada_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#212121}.bk-ui-state-hover a,.bk-ui-state-hover a:hover,.bk-ui-state-hover a:link,.bk-ui-state-hover a:visited,.bk-ui-state-focus a,.bk-ui-state-focus a:hover,.bk-ui-state-focus a:link,.bk-ui-state-focus a:visited{color:#212121;text-decoration:none}.bk-ui-state-active,.bk-ui-widget-content .bk-ui-state-active,.bk-ui-widget-header .bk-ui-state-active{border:1px solid #aaa;background:#fff url("images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#212121}.bk-ui-state-active a,.bk-ui-state-active a:link,.bk-ui-state-active a:visited{color:#212121;text-decoration:none}.bk-ui-state-highlight,.bk-ui-widget-content .bk-ui-state-highlight,.bk-ui-widget-header .bk-ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url("images/ui-bg_glass_55_fbf9ee_1x400.png") 50% 50% repeat-x;color:#363636}.bk-ui-state-highlight a,.bk-ui-widget-content .bk-ui-state-highlight a,.bk-ui-widget-header .bk-ui-state-highlight a{color:#363636}.bk-ui-state-error,.bk-ui-widget-content .bk-ui-state-error,.bk-ui-widget-header .bk-ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url("images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x;color:#cd0a0a}.bk-ui-state-error a,.bk-ui-widget-content .bk-ui-state-error a,.bk-ui-widget-header .bk-ui-state-error a{color:#cd0a0a}.bk-ui-state-error-text,.bk-ui-widget-content .bk-ui-state-error-text,.bk-ui-widget-header .bk-ui-state-error-text{color:#cd0a0a}.bk-ui-priority-primary,.bk-ui-widget-content .bk-ui-priority-primary,.bk-ui-widget-header .bk-ui-priority-primary{font-weight:bold}.bk-ui-priority-secondary,.bk-ui-widget-content .bk-ui-priority-secondary,.bk-ui-widget-header .bk-ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.bk-ui-state-disabled,.bk-ui-widget-content .bk-ui-state-disabled,.bk-ui-widget-header .bk-ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.bk-ui-state-disabled .bk-ui-icon{filter:Alpha(Opacity=35)}.bk-ui-icon{width:16px;height:16px}.bk-ui-icon,.bk-ui-widget-content .bk-ui-icon{background-image:url("images/ui-icons_222222_256x240.png")}.bk-ui-widget-header .bk-ui-icon{background-image:url("images/ui-icons_222222_256x240.png")}.bk-ui-state-default .bk-ui-icon{background-image:url("images/ui-icons_888888_256x240.png")}.bk-ui-state-hover .bk-ui-icon,.bk-ui-state-focus .bk-ui-icon{background-image:url("images/ui-icons_454545_256x240.png")}.bk-ui-state-active .bk-ui-icon{background-image:url("images/ui-icons_454545_256x240.png")}.bk-ui-state-highlight .bk-ui-icon{background-image:url("images/ui-icons_2e83ff_256x240.png")}.bk-ui-state-error .bk-ui-icon,.bk-ui-state-error-text .bk-ui-icon{background-image:url("images/ui-icons_cd0a0a_256x240.png")}.bk-ui-icon-blank{background-position:16px 16px}.bk-ui-icon-carat-1-n{background-position:0 0}.bk-ui-icon-carat-1-ne{background-position:-16px 0}.bk-ui-icon-carat-1-e{background-position:-32px 0}.bk-ui-icon-carat-1-se{background-position:-48px 0}.bk-ui-icon-carat-1-s{background-position:-64px 0}.bk-ui-icon-carat-1-sw{background-position:-80px 0}.bk-ui-icon-carat-1-w{background-position:-96px 0}.bk-ui-icon-carat-1-nw{background-position:-112px 0}.bk-ui-icon-carat-2-n-s{background-position:-128px 0}.bk-ui-icon-carat-2-e-w{background-position:-144px 0}.bk-ui-icon-triangle-1-n{background-position:0 -16px}.bk-ui-icon-triangle-1-ne{background-position:-16px -16px}.bk-ui-icon-triangle-1-e{background-position:-32px -16px}.bk-ui-icon-triangle-1-se{background-position:-48px -16px}.bk-ui-icon-triangle-1-s{background-position:-64px -16px}.bk-ui-icon-triangle-1-sw{background-position:-80px -16px}.bk-ui-icon-triangle-1-w{background-position:-96px -16px}.bk-ui-icon-triangle-1-nw{background-position:-112px -16px}.bk-ui-icon-triangle-2-n-s{background-position:-128px -16px}.bk-ui-icon-triangle-2-e-w{background-position:-144px -16px}.bk-ui-icon-arrow-1-n{background-position:0 -32px}.bk-ui-icon-arrow-1-ne{background-position:-16px -32px}.bk-ui-icon-arrow-1-e{background-position:-32px -32px}.bk-ui-icon-arrow-1-se{background-position:-48px -32px}.bk-ui-icon-arrow-1-s{background-position:-64px -32px}.bk-ui-icon-arrow-1-sw{background-position:-80px -32px}.bk-ui-icon-arrow-1-w{background-position:-96px -32px}.bk-ui-icon-arrow-1-nw{background-position:-112px -32px}.bk-ui-icon-arrow-2-n-s{background-position:-128px -32px}.bk-ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.bk-ui-icon-arrow-2-e-w{background-position:-160px -32px}.bk-ui-icon-arrow-2-se-nw{background-position:-176px -32px}.bk-ui-icon-arrowstop-1-n{background-position:-192px -32px}.bk-ui-icon-arrowstop-1-e{background-position:-208px -32px}.bk-ui-icon-arrowstop-1-s{background-position:-224px -32px}.bk-ui-icon-arrowstop-1-w{background-position:-240px -32px}.bk-ui-icon-arrowthick-1-n{background-position:0 -48px}.bk-ui-icon-arrowthick-1-ne{background-position:-16px -48px}.bk-ui-icon-arrowthick-1-e{background-position:-32px -48px}.bk-ui-icon-arrowthick-1-se{background-position:-48px -48px}.bk-ui-icon-arrowthick-1-s{background-position:-64px -48px}.bk-ui-icon-arrowthick-1-sw{background-position:-80px -48px}.bk-ui-icon-arrowthick-1-w{background-position:-96px -48px}.bk-ui-icon-arrowthick-1-nw{background-position:-112px -48px}.bk-ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.bk-ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.bk-ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.bk-ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.bk-ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.bk-ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.bk-ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.bk-ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.bk-ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.bk-ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.bk-ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.bk-ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.bk-ui-icon-arrowreturn-1-w{background-position:-64px -64px}.bk-ui-icon-arrowreturn-1-n{background-position:-80px -64px}.bk-ui-icon-arrowreturn-1-e{background-position:-96px -64px}.bk-ui-icon-arrowreturn-1-s{background-position:-112px -64px}.bk-ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.bk-ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.bk-ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.bk-ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.bk-ui-icon-arrow-4{background-position:0 -80px}.bk-ui-icon-arrow-4-diag{background-position:-16px -80px}.bk-ui-icon-extlink{background-position:-32px -80px}.bk-ui-icon-newwin{background-position:-48px -80px}.bk-ui-icon-refresh{background-position:-64px -80px}.bk-ui-icon-shuffle{background-position:-80px -80px}.bk-ui-icon-transfer-e-w{background-position:-96px -80px}.bk-ui-icon-transferthick-e-w{background-position:-112px -80px}.bk-ui-icon-folder-collapsed{background-position:0 -96px}.bk-ui-icon-folder-open{background-position:-16px -96px}.bk-ui-icon-document{background-position:-32px -96px}.bk-ui-icon-document-b{background-position:-48px -96px}.bk-ui-icon-note{background-position:-64px -96px}.bk-ui-icon-mail-closed{background-position:-80px -96px}.bk-ui-icon-mail-open{background-position:-96px -96px}.bk-ui-icon-suitcase{background-position:-112px -96px}.bk-ui-icon-comment{background-position:-128px -96px}.bk-ui-icon-person{background-position:-144px -96px}.bk-ui-icon-print{background-position:-160px -96px}.bk-ui-icon-trash{background-position:-176px -96px}.bk-ui-icon-locked{background-position:-192px -96px}.bk-ui-icon-unlocked{background-position:-208px -96px}.bk-ui-icon-bookmark{background-position:-224px -96px}.bk-ui-icon-tag{background-position:-240px -96px}.bk-ui-icon-home{background-position:0 -112px}.bk-ui-icon-flag{background-position:-16px -112px}.bk-ui-icon-calendar{background-position:-32px -112px}.bk-ui-icon-cart{background-position:-48px -112px}.bk-ui-icon-pencil{background-position:-64px -112px}.bk-ui-icon-clock{background-position:-80px -112px}.bk-ui-icon-disk{background-position:-96px -112px}.bk-ui-icon-calculator{background-position:-112px -112px}.bk-ui-icon-zoomin{background-position:-128px -112px}.bk-ui-icon-zoomout{background-position:-144px -112px}.bk-ui-icon-search{background-position:-160px -112px}.bk-ui-icon-wrench{background-position:-176px -112px}.bk-ui-icon-gear{background-position:-192px -112px}.bk-ui-icon-heart{background-position:-208px -112px}.bk-ui-icon-star{background-position:-224px -112px}.bk-ui-icon-link{background-position:-240px -112px}.bk-ui-icon-cancel{background-position:0 -128px}.bk-ui-icon-plus{background-position:-16px -128px}.bk-ui-icon-plusthick{background-position:-32px -128px}.bk-ui-icon-minus{background-position:-48px -128px}.bk-ui-icon-minusthick{background-position:-64px -128px}.bk-ui-icon-close{background-position:-80px -128px}.bk-ui-icon-closethick{background-position:-96px -128px}.bk-ui-icon-key{background-position:-112px -128px}.bk-ui-icon-lightbulb{background-position:-128px -128px}.bk-ui-icon-scissors{background-position:-144px -128px}.bk-ui-icon-clipboard{background-position:-160px -128px}.bk-ui-icon-copy{background-position:-176px -128px}.bk-ui-icon-contact{background-position:-192px -128px}.bk-ui-icon-image{background-position:-208px -128px}.bk-ui-icon-video{background-position:-224px -128px}.bk-ui-icon-script{background-position:-240px -128px}.bk-ui-icon-alert{background-position:0 -144px}.bk-ui-icon-info{background-position:-16px -144px}.bk-ui-icon-notice{background-position:-32px -144px}.bk-ui-icon-help{background-position:-48px -144px}.bk-ui-icon-check{background-position:-64px -144px}.bk-ui-icon-bullet{background-position:-80px -144px}.bk-ui-icon-radio-on{background-position:-96px -144px}.bk-ui-icon-radio-off{background-position:-112px -144px}.bk-ui-icon-pin-w{background-position:-128px -144px}.bk-ui-icon-pin-s{background-position:-144px -144px}.bk-ui-icon-play{background-position:0 -160px}.bk-ui-icon-pause{background-position:-16px -160px}.bk-ui-icon-seek-next{background-position:-32px -160px}.bk-ui-icon-seek-prev{background-position:-48px -160px}.bk-ui-icon-seek-end{background-position:-64px -160px}.bk-ui-icon-seek-start{background-position:-80px -160px}.bk-ui-icon-seek-first{background-position:-80px -160px}.bk-ui-icon-stop{background-position:-96px -160px}.bk-ui-icon-eject{background-position:-112px -160px}.bk-ui-icon-volume-off{background-position:-128px -160px}.bk-ui-icon-volume-on{background-position:-144px -160px}.bk-ui-icon-power{background-position:0 -176px}.bk-ui-icon-signal-diag{background-position:-16px -176px}.bk-ui-icon-signal{background-position:-32px -176px}.bk-ui-icon-battery-0{background-position:-48px -176px}.bk-ui-icon-battery-1{background-position:-64px -176px}.bk-ui-icon-battery-2{background-position:-80px -176px}.bk-ui-icon-battery-3{background-position:-96px -176px}.bk-ui-icon-circle-plus{background-position:0 -192px}.bk-ui-icon-circle-minus{background-position:-16px -192px}.bk-ui-icon-circle-close{background-position:-32px -192px}.bk-ui-icon-circle-triangle-e{background-position:-48px -192px}.bk-ui-icon-circle-triangle-s{background-position:-64px -192px}.bk-ui-icon-circle-triangle-w{background-position:-80px -192px}.bk-ui-icon-circle-triangle-n{background-position:-96px -192px}.bk-ui-icon-circle-arrow-e{background-position:-112px -192px}.bk-ui-icon-circle-arrow-s{background-position:-128px -192px}.bk-ui-icon-circle-arrow-w{background-position:-144px -192px}.bk-ui-icon-circle-arrow-n{background-position:-160px -192px}.bk-ui-icon-circle-zoomin{background-position:-176px -192px}.bk-ui-icon-circle-zoomout{background-position:-192px -192px}.bk-ui-icon-circle-check{background-position:-208px -192px}.bk-ui-icon-circlesmall-plus{background-position:0 -208px}.bk-ui-icon-circlesmall-minus{background-position:-16px -208px}.bk-ui-icon-circlesmall-close{background-position:-32px -208px}.bk-ui-icon-squaresmall-plus{background-position:-48px -208px}.bk-ui-icon-squaresmall-minus{background-position:-64px -208px}.bk-ui-icon-squaresmall-close{background-position:-80px -208px}.bk-ui-icon-grip-dotted-vertical{background-position:0 -224px}.bk-ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.bk-ui-icon-grip-solid-vertical{background-position:-32px -224px}.bk-ui-icon-grip-solid-horizontal{background-position:-48px -224px}.bk-ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.bk-ui-icon-grip-diagonal-se{background-position:-80px -224px}.bk-ui-corner-all,.bk-ui-corner-top,.bk-ui-corner-left,.bk-ui-corner-tl{border-top-left-radius:4px}.bk-ui-corner-all,.bk-ui-corner-top,.bk-ui-corner-right,.bk-ui-corner-tr{border-top-right-radius:4px}.bk-ui-corner-all,.bk-ui-corner-bottom,.bk-ui-corner-left,.bk-ui-corner-bl{border-bottom-left-radius:4px}.bk-ui-corner-all,.bk-ui-corner-bottom,.bk-ui-corner-right,.bk-ui-corner-br{border-bottom-right-radius:4px}.bk-ui-widget-overlay{background:#aaa url("images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.bk-ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url("images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}.bk-slick-header.bk-ui-state-default,.bk-slick-headerrow.bk-ui-state-default{width:100%;overflow:hidden;border-left:0}.bk-slick-header-columns,.bk-slick-headerrow-columns{position:relative;white-space:nowrap;cursor:default;overflow:hidden}.bk-slick-header-column.bk-ui-state-default{position:relative;display:inline-block;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;height:16px;line-height:16px;margin:0;padding:4px;border-right:1px solid silver;border-left:0;border-top:0;border-bottom:0;float:left}.bk-slick-headerrow-column.bk-ui-state-default{padding:4px}.bk-slick-header-column-sorted{font-style:italic}.bk-slick-sort-indicator{display:inline-block;width:8px;height:5px;margin-left:4px;margin-top:6px;float:left}.bk-slick-sort-indicator-desc{background:url(images/sort-desc.gif)}.bk-slick-sort-indicator-asc{background:url(images/sort-asc.gif)}.bk-slick-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:col-resize;width:4px;right:0;top:0;height:100%}.bk-slick-sortable-placeholder{background:silver}.grid-canvas{position:relative;outline:0}.bk-slick-row.bk-ui-widget-content,.bk-slick-row.bk-ui-state-active{position:absolute;border:0;width:100%}.bk-slick-cell,.bk-slick-headerrow-column{position:absolute;border:1px solid transparent;border-right:1px dotted silver;border-bottom-color:silver;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle;z-index:1;padding:1px 2px 2px 1px;margin:0;white-space:nowrap;cursor:default}.bk-slick-group-toggle{display:inline-block}.bk-slick-cell.highlighted{background:lightskyblue;background:rgba(0,0,255,0.2);-webkit-transition:all .5s;-moz-transition:all .5s;-o-transition:all .5s;transition:all .5s}.bk-slick-cell.flashing{border:1px solid red !important}.bk-slick-cell.editable{z-index:11;overflow:visible;background:white;border-color:black;border-style:solid}.bk-slick-cell:focus{outline:0}.bk-slick-reorder-proxy{display:inline-block;background:blue;opacity:.15;filter:alpha(opacity = 15);cursor:move}.bk-slick-reorder-guide{display:inline-block;height:2px;background:blue;opacity:.7;filter:alpha(opacity = 70)}.bk-slick-selection{z-index:10;position:absolute;border:2px dashed black}.bk-slick-header-columns{background:url('images/header-columns-bg.gif') repeat-x center bottom;border-bottom:1px solid silver}.bk-slick-header-column{background:url('images/header-columns-bg.gif') repeat-x center bottom;border-right:1px solid silver}.bk-slick-header-column:hover,.bk-slick-header-column-active{background:white url('images/header-columns-over-bg.gif') repeat-x center bottom}.bk-slick-headerrow{background:#fafafa}.bk-slick-headerrow-column{background:#fafafa;border-bottom:0;height:100%}.bk-slick-row.bk-ui-state-active{background:#f5f7d7}.bk-slick-row{position:absolute;background:white;border:0;line-height:20px}.bk-slick-row.selected{z-index:10;background:#dfe8f6}.bk-slick-cell{padding-left:4px;padding-right:4px}.bk-slick-group{border-bottom:2px solid silver}.bk-slick-group-toggle{width:9px;height:9px;margin-right:5px}.bk-slick-group-toggle.expanded{background:url(images/collapse.gif) no-repeat center center}.bk-slick-group-toggle.collapsed{background:url(images/expand.gif) no-repeat center center}.bk-slick-group-totals{color:gray;background:white}.bk-slick-cell.selected{background-color:beige}.bk-slick-cell.active{border-color:gray;border-style:solid}.bk-slick-sortable-placeholder{background:silver !important}.bk-slick-row.odd{background:#fafafa}.bk-slick-row.bk-ui-state-active{background:#f5f7d7}.bk-slick-row.loading{opacity:.5;filter:alpha(opacity = 50)}.bk-slick-cell.invalid{border-color:red;-moz-animation-duration:.2s;-webkit-animation-duration:.2s;-moz-animation-name:slickgrid-invalid-hilite;-webkit-animation-name:slickgrid-invalid-hilite}@-moz-keyframes slickgrid-invalid-hilite{from{box-shadow:0 0 6px red}to{box-shadow:none}}@-webkit-keyframes slickgrid-invalid-hilite{from{box-shadow:0 0 6px red}to{box-shadow:none}}.bk-slick-column-name,.bk-slick-sort-indicator{display:inline-block;float:left;margin-bottom:100px}.bk-slick-header-button{display:inline-block;float:right;vertical-align:top;margin:1px;margin-bottom:100px;height:15px;width:15px;background-repeat:no-repeat;background-position:center center;cursor:pointer}.bk-slick-header-button-hidden{width:0;-webkit-transition:.2s width;-ms-transition:.2s width;transition:.2s width}.bk-slick-header-column:hover&gt;.bk-slick-header-button{width:15px}.bk-slick-header-menubutton{position:absolute;right:0;top:0;bottom:0;width:14px;background-repeat:no-repeat;background-position:left center;background-image:url(../images/down.gif);cursor:pointer;display:none;border-left:thin ridge silver}.bk-slick-header-column:hover&gt;.bk-slick-header-menubutton,.bk-slick-header-column-active .bk-slick-header-menubutton{display:inline-block}.bk-slick-header-menu{position:absolute;display:inline-block;margin:0;padding:2px;cursor:default}.bk-slick-header-menuitem{list-style:none;margin:0;padding:0;cursor:pointer}.bk-slick-header-menuicon{display:inline-block;width:16px;height:16px;vertical-align:middle;margin-right:4px;background-repeat:no-repeat;background-position:center center}.bk-slick-header-menucontent{display:inline-block;vertical-align:middle}.bk-slick-header-menuitem-disabled{color:silver}.bk-slick-columnpicker{border:1px solid #718bb7;background:#f0f0f0;padding:6px;-moz-box-shadow:2px 2px 2px silver;-webkit-box-shadow:2px 2px 2px silver;box-shadow:2px 2px 2px silver;min-width:100px;cursor:default}.bk-slick-columnpicker li{list-style:none;margin:0;padding:0;background:0}.bk-slick-columnpicker input{margin:4px}.bk-slick-columnpicker li a{display:block;padding:4px;font-weight:bold}.bk-slick-columnpicker li a:hover{background:white}.bk-slick-pager{width:100%;height:26px;border:1px solid gray;border-top:0;background:url('../images/header-columns-bg.gif') repeat-x center bottom;vertical-align:middle}.bk-slick-pager .bk-slick-pager-status{display:inline-block;padding:6px}.bk-slick-pager .bk-ui-icon-container{display:inline-block;margin:2px;border-color:gray}.bk-slick-pager .bk-slick-pager-nav{display:inline-block;float:left;padding:2px}.bk-slick-pager .bk-slick-pager-settings{display:block;float:right;padding:2px}.bk-slick-pager .bk-slick-pager-settings *{vertical-align:middle}.bk-slick-pager .bk-slick-pager-settings a{padding:2px;text-decoration:underline;cursor:pointer}.bk-ui-rangeSlider{height:22px}.bk-ui-rangeSlider .bk-ui-rangeSlider-innerBar{height:16px;margin:3px 6px;background:#DDD}.bk-ui-rangeSlider .bk-ui-rangeSlider-handle{width:6px;height:22px;background:#AAA;background:rgba(100,100,100,0.3);cursor:col-resize}.bk-ui-rangeSlider .bk-ui-rangeSlider-bar{margin:1px 0;background:#CCC;background:rgba(100,100,150,0.2);height:20px;cursor:move;cursor:grab;cursor:-moz-grab}.bk-ui-rangeSlider .bk-ui-rangeSlider-bar.bk-ui-draggable-dragging{cursor:-moz-grabbing;cursor:grabbing}.bk-ui-rangeSlider-arrow{height:16px;margin:2px 0;width:16px;background-repeat:no-repeat}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-leftArrow{background-image:url('icons-classic/resultset_previous.png');background-position:center left}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-rightArrow{background-image:url('icons-classic/resultset_next.png');background-position:center right}.bk-ui-rangeSlider-arrow-inner{display:none}.bk-ui-rangeSlider-container{height:22px}.bk-ui-rangeSlider-withArrows .bk-ui-rangeSlider-container{margin:0 11px}.bk-ui-rangeSlider-noArrow .bk-ui-rangeSlider-container{margin:0}.bk-ui-rangeSlider-label{margin:0 2px 2px;background-image:url('icons-classic/label.png');background-position:bottom center;background-repeat:no-repeat;white-space:nowrap;bottom:20px;padding:3px 6px 7px;cursor:col-resize}.bk-ui-rangeSlider-label-inner{display:none}input.bk-ui-editRangeSlider-inputValue{width:3em;vertical-align:middle;text-align:center}.bk-ui-dialog-titlebar{height:16px}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-leftArrow{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAPpJREFUeNrE0zFqhVAUBFCL7ElEEBQsXmErWtnZWImF2Gih6FNEfKCoBGMMUQhEULKjrCF1JjsI+j8kxbSnuDOXA8DdE+5PgLIsM0rp100ApTRL0/Q7DENcBpIkqfq+x3Ec8DzvGhBF0VPTNNj3Hdu2wbbt80AQBK+MMez7jnmesa4rTNM8B/i+/1mWJbZtwziOYIxhmiZomnYOcBznI45jLMuCtm2R5zm6rgMh5BxgGMaDruvvrutiGAZkWYa6rqGq6rUjEkLebNtGVVUoigKyLF+vUVGUF8uykCQJJEnCTUMSRfHZMAyIooibp8zz/KMgCPi/Z/otPwMAtKTYr7dLeeEAAAAASUVORK5CYII=")}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-rightArrow{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAPlJREFUeNrE0ztqhlAUBOC/yLoUfKBga2WpKBYKgp21+ncRuYrPK0FtxBRCQCwsXEvWkDqTLagJpJj2K+aceQB4/CaPPwcopV9t2z5vA13XoWmab0LI8xZQliWO48AwDAjD8PUykCQJ9n3Htm3Isgye53WXgDiOsa4r5nnGsiyIogiapo2ngSAIsCwL2rYFpRTjOML3fSiK8nkKcF0X0zSBEII8z0EpheM4kGX54xSg6zr6vkeapqiqCrZtQxTFd5ZlX04BqqqirmsURQHLsiAIwnSpREVRQAiBaZrgOK6/fEZJkmAYBliWfbv1SDzPg2GY5v/GdDU/AwDyYNzeUSg0WgAAAABJRU5ErkJggg==")}.bk-ui-rangeSlider-label{background-image:url("data:image/png;base64,[encoded data, 12460 characters]")}.bk-slick-sort-indicator-desc{background-image:url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgeAAUAGEgQgIAACBEKLHgwYcKFBh1KFNhQosOKEgMCADs=")}.bk-slick-sort-indicator-asc{background-image:url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgbAAMIDABgoEGDABIeRJhQ4cKGEA8KmEiRosGAADs=")}.bk-slick-header-columns{background-image:url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=")}.bk-slick-header-column{background-image:url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=")}.bk-slick-header-column:hover,.bk-slick-header-column-active{background-image:url("data:image/gif;base64,R0lGODlhAgAWAIcAAKrM9tno++vz/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABYAAAgUAAUIHEiwoIAACBMqXMhwIQAAAQEAOw==")}.bk-slick-group-toggle.expanded{background-image:url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIMwADCBxIUIDBgwIEChgwwECBAgQUFjBAkaJCABgxGlB4AGHCAAIQiBypEEECkScJqgwQEAA7")}.bk-slick-group-toggle.collapsed{background-image:url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIOAADCBxIUIDBgwIEChgwAECBAgQUFjAAQIABAwoBaNSIMYCAAwIqGlSIAEHFkiQTIBCgkqDLAAEBADs=")}.bk-slick-header-menubutton{background-image:url("data:image/gif;base64,R0lGODlhDgAOAIABADtKYwAAACH5BAEAAAEALAAAAAAOAA4AAAISjI+py+0PHZgUsGobhTn6DxoFADs=")}.bk-slick-pager{background-image:url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=")}.bk-ui-widget-content{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAeUlEQVRoge3OMQHAIBAAsVL/nh8JDDfAkCjImpn5HvbfDpwIVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVhtqiwTEKTLXTgAAAABJRU5ErkJggg==")}.bk-ui-widget-header{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAYAAABHLFpgAAAALElEQVQYlWN49OjRfyYGBgaGIUT8//8fSqBx0Yh///4RL8vAwAAVQ2MNOwIAl6g6KkOJwk8AAAAASUVORK5CYII=")}.bk-ui-state-default,.bk-ui-widget-content .bk-ui-state-default,.bk-ui-widget-header .bk-ui-state-default{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAANUlEQVQ4je3LMQoAIBADwb38/6t5wFXaWAiCtUiaYZvF9hBACOFbuntVVe11B0CSjjeE8BwThQIJ8dhEl0YAAAAASUVORK5CYII=")}.bk-ui-state-hover,.bk-ui-widget-content .bk-ui-state-hover,.bk-ui-widget-header .bk-ui-state-hover,.bk-ui-state-focus,.bk-ui-widget-content .bk-ui-state-focus,.bk-ui-widget-header .bk-ui-state-focus{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAANklEQVQ4jWN48uTJfyYGBgaGUWKUGCWGLfHt2zcoi5GREYNgYmJCZiG42IiB98woMUqMEtgIAMdjCdyg+eEBAAAAAElFTkSuQmCC")}.bk-ui-state-active,.bk-ui-widget-content .bk-ui-state-active,.bk-ui-widget-header .bk-ui-state-active{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAMElEQVQ4je3LIQ4AIBTD0O3f/8wrFgmKhMy8pKJKwkhSKeVbbGuAPU9f4PIopTxgAeS0DRtI4yK0AAAAAElFTkSuQmCC")}.bk-ui-state-highlight,.bk-ui-widget-content .bk-ui-state-highlight,.bk-ui-widget-header .bk-ui-state-highlight{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAP0lEQVQ4je3PMQrAMABC0a/3v2zX0mCXNkOgc6C4PARd5DqPGKCU8luS8SbAQhiCQRgJE56kZTfbbP9RSvnkBsWcEAZRWcgqAAAAAElFTkSuQmCC")}.bk-ui-state-error,.bk-ui-widget-content .bk-ui-state-error,.bk-ui-widget-header .bk-ui-state-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAPklEQVQ4je3PMQqAMABD0Z/c/7aCIAXjJIhD10LJ8vgZw30eMUApZV/GhZNgSTjoLYElY/hNMJ/S6gullCkPiCIPCr4NiEwAAAAASUVORK5CYII=")}.bk-ui-icon,.bk-ui-widget-content .bk-ui-icon,.bk-ui-widget-header .bk-ui-icon{background-image:url("data:image/png;base64,[encoded data, 5828 characters]")}.bk-ui-state-default .bk-ui-icon{background-image:url("data:image/png;base64,[encoded data, 5828 characters]")}.bk-ui-state-hover .bk-ui-icon,.bk-ui-state-focus .bk-ui-icon,.bk-ui-state-active .bk-ui-icon{background-image:url("data:image/png;base64,[encoded data, 5828 characters]")}.bk-ui-state-highlight .bk-ui-icon{background-image:url("data:image/png;base64,[encoded data, 5828 characters]")}.bk-ui-state-error .bk-ui-icon,.bk-ui-state-error-text .bk-ui-icon{background-image:url("data:image/png;base64,[encoded data, 5828 characters]")}.bk-ui-widget-overlay,.bk-ui-widget-shadow{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAe0lEQVRoge3OMQHAIBAAMcC/kjdZJHTI0A4XBdkz86wfO18H3hRUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUF8O8A8WdY6opAAAAAElFTkSuQmCC")}.tableelem{padding:2px 10px;border:2px white;background-color:#e0e0e0}.tableheader{background-color:silver}#notebook .bk-plot-wrapper table{border:none !important}#notebook .bk-plot-wrapper table tr{border:none !important}#notebook .bk-plot-wrapper table tr td{border:none !important;padding:0 !important;margin:0 !important}#notebook .bk-plot-wrapper table tr td.bk-plot-above{border-bottom:2px solid #efefef !important}#notebook .bk-plot-wrapper table tr td.bk-plot-below{border-top:2px solid #efefef !important}#notebook .bk-plot-wrapper table tr td.bk-plot-left{border-right:2px solid #efefef !important}#notebook .bk-plot-wrapper table tr td.bk-plot-right{border-left:2px solid #efefef !important}.bk-table table tr td{padding:2px}.bk-table form table tr td{padding:2px}.bk-table form table tr td input{padding:0}.jsp:after,.bk-plot:after,.bk-canvas-wrapper:after,.bk-sidebar:after,.bk-box:after{content:" ";height:0;display:block;clear:both}.bk-canvas-wrapper .bk-resize-popup{position:absolute;left:0;top:0;width:40px;height:40px;overflow:hidden;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAEnSURBVEiJzZXBioQwDIb/XQuF6U3wCRSEvv8zeFOoB2++QD14aqHSOntYtthxdHesDptTk4Z+hKR/PqqquuNi+7wa8DYIWTplWSJN0yDBGAMhBJxzhyFBJY8AACCErGKv2u4L1lp0XRdVBfBLTwghuN1uUYBNiDHGn4uiQJZl50GmaYJSCm3bou/700BBT4QQAL57IaUEAOR57kEAMAxDHMRaG1wuQc45aK1fBqwgz+wHpJSCUuoayBJ01P6/djHG/jR1hzWDMQbOuZedvak7XAljzAMe/xGlFEmSeP9wJVv/SGsNzjmcc2iaJg6yBbLWghASqHf0dEkpAwl6thpOGWGl1O46iIZQSsE5Dxp9OsQ5h3meV/FxHP05erdaa1HX9W7OW2TlC31ceRWbb5+AAAAAAElFTkSuQmCC);background-position:bottom right;background-repeat:no-repeat;cursor:se-resize}.bk-canvas-wrapper:hover .bk-resize-popup{display:block}.bk-sidebar.bk-logo{margin:5px auto}.bk-logo{position:relative;display:block;background-repeat:no-repeat}.bk-logo.grey{filter:url("data:image/svg+xml;utf8,&lt;svgxmlns=\'http://www.w3.org/2000/svg\'&gt;&lt;filterid=\'grayscale\'&gt;&lt;feColorMatrixtype=\'matrix\'values=\'0.33330.33330.3333000.33330.33330.3333000.33330.33330.33330000010\'/&gt;&lt;/filter&gt;&lt;/svg&gt;#grayscale");filter:gray;-webkit-filter:grayscale(100%)}.bk-logo-notebook{margin-right:10px}.bk-logo-small{width:20px;height:20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAOkSURBVDiNjZRtaJVlGMd/1/08zzln5zjP1LWcU9N0NkN8m2CYjpgQYQXqSs0I84OLIC0hkEKoPtiH3gmKoiJDU7QpLgoLjLIQCpEsNJ1vqUOdO7ppbuec5+V+rj4ctwzd8IIbbi6u+8f1539dt3A78eXC7QizUF7gyV1fD1Yqg4JWz84yffhm0qkFqBogB9rM8tZdtwVsPUhWhGcFJngGeWrPzHm5oaMmkfEg1usvLFyc8jLRqDOMru7AyC8saQr7GG7f5fvDeH7Ej8CM66nIF+8yngt6HWaKh7k49Soy9nXurCi1o3qUbS3zWfrYeQDTB/Qj6kX6Ybhw4B+bOYoLKCC9H3Nu/leUTZ1JdRWkkn2ldcCamzrcf47KKXdAJllSlxAOkRgyHsGC/zRday5Qld9DyoM4/q/rUoy/CXh3jzOu3bHUVZeU+DEn8FInkPBFlu3+nW3Nw0mk6vCDiWg8CeJaxEwuHS3+z5RgY+YBR6V1Z1nxSOfoaPa4LASWxxdNp+VWTk7+4vzaou8v8PN+xo+KY2xsw6une2frhw05CTYOmQvsEhjhWjn0bmXPjpE1+kplmmkP3suftwTubK9Vq22qKmrBhpY4jvd5afdRA3wGjFAgcnTK2s4hY0/GPNIb0nErGMCRxWOOX64Z8RAC4oCXdklmEvcL8o0BfkNK4lUg9HTl+oPlQxdNo3Mg4Nv175e/1LDGzZen30MEjRUtmXSfiTVu1kK8W4txyV6BMKlbgk3lMwYCiusNy9fVfvvwMxv8Ynl6vxoByANLTWplvuj/nF9m2+PDtt1eiHPBr1oIfhCChQMBw6Aw0UulqTKZdfVvfG7VcfIqLG9bcldL/+pdWTLxLUy8Qq38heUIjh4XlzZxzQm19lLFlr8vdQ97rjZVOLf8nclzckbcD4wxXMidpX30sFd37Fv/GtwwhzhxGVAprjbg0gCAEeIgwCZyTV2Z1REEW8O4py0wsjeloKoMr6iCY6dP92H6Vw/oTyICIthibxjm/DfN9lVz8IqtqKYLUXfoKVMVQVVJOElGjrnnUt9T9wbgp8AyYKaGlqingHZU/uG2NTZSVqwHQTWkx9hxjkpWDaCg6Ckj5qebgBVbT3V3NNXMSiWSDdGV3hrtzla7J+duwPOToIg42ChPQOQjspnSlp1V+Gjdged7+8UN5CRAV7a5EdFNwCjEaBR27b3W890TE7g24NAP/mMDXRWrGoFPQI9ls/MWO2dWFAar/xcOIImbbpA3zgAAAABJRU5ErkJggg==)}.bk-logo-medium{width:35px;height:35px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAf9SURBVFiFvZh7cFTVHcc/59y7793sJiFAwkvAYDRqFWwdraLVlj61diRYsDjqCFbFKrYo0CltlSq1tLaC2GprGIriGwqjFu10OlrGv8RiK/IICYECSWBDkt3s695zTv9IAtlHeOn0O7Mzu797z+/3Ob/z+p0VfBq9doNFljuABwAXw2PcvGHt6bgwxhz7Ls4YZNVXxxANLENwE2D1W9PAGmAhszZ0/X9gll5yCbHoOirLzmaQs0F6F8QMZq1v/8xgNm7DYwwjgXJLYL4witQ16+sv/U9HdDmV4WrKw6B06cZC/RMrM4MZ7xz61DAbtzEXmAvUAX4pMOVecg9/MFFu3j3Gz7gQBLygS2RGumBkL0cubiFRsR3LzVBV1UMk3IrW73PT9C2lYOwhQB4ClhX1AuKpjLcV27oEjyUpNUJCg1CvcejykWTCXyQgzic2HIIBjg3pS6+uRLKAhumZvD4U+tq0jTrgkVKQQtLekfTtxIPAkhTNF6G7kZm7aPp6M9myKVQEoaYaIhEQYvD781DML/RfBGNZXAl4irJiwBa07e/y7cQnBaJghIX6ENl2GR/fGCBoz6cm5qeyEqQA5ZYA5x5eeiV0Qph4gjFAUSwAr6QllQgcxS/Jm25Cr2Tmpsk03XI9NfI31FTZBEOgVOk51adqDBNPCNPSRlkiDXbBEwOU2WxH+I7itQZ62g56OjM33suq1YsZHVtGZSUI2QdyYgkgOthQNIF7BIGDnRAJgJSgj69cUx1gB8PkOGwL4E1gPrM27gIg7NlGKLQApc7BmEnAxP5g/rw4YqBrCDB5xHkw5rdR/1qTrN/hKNo6YUwVDNpFsnjYS8RbidBPcPXFP6R6yfExuOXmN4A3jv1+8ZUwgY9D2OWjUZE6lO88jDwHI8ZixGiMKSeYTBamCoDk6kDAb6y1OcH1a6KpD/fZesoFw5FlIXAVCIiH4PxrV+p2npVDToTBmtjY8t1swh2V61E9KqWiyuPEjM8dbfxuvfa49Zayf9R136Wr8mBSf/T7bNteA8zwaGEUbFpckWwq95n59dUIywKl2fbOIS5e8bWSu0tJ1a5redAYfqkdjesodFajcgaVNWhXo1C9SrkN3Usmv3UMJrc6/DDwkwEntkEJLe67tSLhvyzK8rHDQWleve5CGk4VZEB1r+5bg2E2si+Y0QatDK6jUVkX5eg2YYlp++ZM+rfMNYamAj8Y7MAVWFqaR1f/t2xzU4IHjybBtthzuiAASqv7jTF7jOqDMAakFHgDNsFyP+FhwZHBmH9F7cutIYkQCylYYv1AZSqsn1/+bX51OMMjPSl2nAnM7hnjOx2v53YgNWAzHM9Q/9l0lQWPSCBSyokAtOBC1Rj+w/1Xs+STDp4/E5g7Rs2zm2+oeVd7PUuHKDf6A4r5EsPT5K3gfCnBXNUYnvGzb+KcCczYYWOnLpy4eOXuG2oec0PBN8XQQAnpvS35AvAykr56rWhPBiV4MvtceGLxk5Mr6A1O8IfK7rl7xJ0r9kyumuP4fa0lMqTBLJIAJqEf1J3qE92lMBndlyfRD2YBghHC4hlny7ASqCeWo5zaoDdIWfnIefNGTb9fC73QDfhyBUCNOxrGPSUBfPem9us253YTV+3mcBbdkUYfzmHiLqZbYdIGHHON2ZlemXouaJUOO6TqtdHEQuXYY8Yt+EbDgmlS6RdzkaDTv2P9A3gICiq93sWhb5mc5wVhuU3Y7m5hOc3So7qFT3SLgOXHb/cyOfMn7xROegoC/PTcn3v8gbKPgDopJFk3R/uBPWQiwQ+2/GJevRMObLUzqe/saJjQUQTTftEVMW9tWxPgAocwcj9abNcZe7s+6t2R2xXZG7zyYLp8Q1PiRBBHym5bYuXi8Qt+/LvGu9f/5YDAxABsaRNPH6Xr4D4Sk87a897SOy9v/fKwjoF2eQel95yDESGEF6gEMwKhLwKus3wOVjTtes7qzgLdXTMnNCNoEpbcrtNuq6N7Xh/+eqcbj94xQkp7mdKpW5XbtbR8Z26kgMCAf2UU5YEovRUVRHbu2b3vK1UdDFkDCyMRQxbpdv8nhKAGIa7QaQedzT07fFPny53R738JoVYBdVrnsNx9XZ9v33UeGO+AA2MMUkgqQ5UcdDLZSFeVgONnXeHqSAC5Ew1BXwko0D1Zct3dT1duOjS3MzZnEUJtBuoQAq3SGOLR4ekjn9NC5nVOaYXf9lETrUkmOJy3pOz8OKIb2A1cWhJCCEzOxU2mUPror+2/L3yyM3pkM7jTjr1nBOgkGeyQ7erxpdJsMAS9wb2F9rzMxNY1K2PMU0WtZV82VU8Wp6vbKJVo9Lx/+4cydORdxCCQ/kDGTZCWsRpLu7VD7bfKqL8V2orKTp/PtzaXy42jr6TwAuisi+7JolUG4wY+8vyrISCMtRrLKWpvjAOqx/QGhp0rjRo5xD3x98CWQuOQN8qumRMmI7jKZPUEpzNVZsj4Zbaq1to5tZZsKIydLWojhIXrJnES79EaOzv3du2NytKuxzJKAA6wF8xqEE8s2jo/1wd/khslQGxd81Zg62Bbp31XBH+iETt7Y3ELA0iU6iGDlQ5mexe0VEx4a3x8V1AaYwFJgTiwaOsDmeK2J8nMUOqsnB1A+dcA04ucCYt0urkjmflk9iT2v30q/gZn5rQPvor4n9Ou634PeBzoznes/iot/7WnClKoM/+zCIjH5kwT8ChQjTHPIPTjFV3PpU/Hx+DM/A9U3IXI4SPCYAAAAABJRU5ErkJggg==)}.bk-logo-large{width:75px;height:75px;background-image:url(data:image/png;base64,[encoded data, 6760 characters])}.bk-sidebar{box-sizing:border-box}.bk-button-bar .bk-bs-dropdown{padding:10px 10px 0 5px}.bk-button-bar .bk-bs-dropdown a{color:transparent;font-size:0;display:block;float:left;width:13px;height:13px;margin:5px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGdSURBVCiRXZJPSxtRFMV/dyYTunBREASRIkKwddPSjYIL+x2K9plR+owR7K7L7vsZutIkZqhO8jZ+h25aQilUkbaUgv2zEOpGpAsZnbld+BJC7ubAvYd77uEeYaTaB25bhJqi44Kcq9LYWDOt/lxVkQG542ZFaQP3gB6wBLwDFoGfKtQ2qua7qhIAJB1XEeUE9CtSPLCxWQbObGxWEL0P+k2Uk3barQBImrrgWvmE8NnGpgaQpO4OcArM2Nhc+d4e8DCUcL6UwZYIk0WYzw9Zy4CnHm+9hNcvJI/+3GhuJUndR+A3yCpoCGQ2NkWfnKQuAMqo5Ih2gakScBeYBj32vE3gw5DqAtBCFGAcuCwBF8CRIFX1SiNf6AGPQXLwSgq7Aq+zMGPLrPdNB16h50+92uvul4MiWlJ4FZShAZxFebQztL0MHHoEICiiBvCrRJiI31wBvii8zQt9WV9f/Zek7sjG5lFzvzsWBvJGYA2Ye1599mOQiKTjZlVpCcwA74En/UQonIqwaX0ihJFKUlcH6sAE8Bdo2tg0B/9S5T8JNaZ11wlT0wAAAABJRU5ErkJggg==)}.bk-button-bar .bk-button-bar-list{margin:0;padding:0}.bk-button-bar-list&gt;li{list-style-type:none;float:left;padding:0;margin:0;position:relative;display:block;overflow:visible;background-color:transparent}.bk-button-bar-list&gt;li:last-child:after{content:"|";font-size:90%;color:lightgray;display:inline-block;float:left;height:28px;line-height:28px;padding:0 3px}.bk-button-bar-list.bk-bs-dropdown:after{content:"|";font-size:90%;color:lightgray;display:inline-block;float:left;height:28px;line-height:28px;padding:0 3px}.bk-button-bar-list[type='help'] li:after{content:"" !important;display:none}.bk-button-bar-list&gt;a:after{content:"|";font-size:90%;color:lightgray;display:inline-block;float:left;height:28px;line-height:28px;padding:0 3px}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu{padding:10px 8px}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu li{float:none;clear:both;font-family:Helvetica,sans-serif;line-height:1.5em}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu li input{margin-right:8px}.bk-button-bar-list .bk-toolbar-button{width:30px;height:28px;padding:5px;border:0;border-radius:0 !important;-moz-border-radius:0 !important;-webkit-border-radius:0 !important;background:transparent !important}.bk-button-bar-list .bk-toolbar-button .bk-btn-icon{height:16px;margin:0 !important;border:none !important;background:transparent !important;display:block;position:relative;z-index:10}.bk-button-bar-list .bk-toolbar-button span.tip{display:none}.bk-button-bar-list .bk-toolbar-button span.tip:before{display:none;content:" ";position:relative;width:100%;background-position:top left;background-repeat:no-repeat}.bk-button-bar-list li::hover .bk-toolbar-button{cursor:pointer;background:transparent !important}.bk-button-bar-list li:hover .bk-toolbar-button span.tip:before{display:inline-block}.bk-button-bar-list li:hover .bk-toolbar-button span.tip{z-index:100;font-size:100%;color:#fff;font-family:'Open Sans',sans-serif;white-space:nowrap;background-color:#818789;border-radius:3px !important;-moz-border-radius:3px !important;-webkit-border-radius:3px !important;display:inline-block;position:relative;top:25px;padding:3px 5px;transition:all .6s ease;-webkit-transition:all .6s ease;-moz-transition:all .6s ease;-o-transition:all .6s ease}.bk-button-bar-list li:hover .bk-toolbar-button span.tip&gt;*{display:block;text-align:left}.bk-button-bar-list li:hover .bk-toolbar-button span.tip span{width:200px;white-space:normal}.bk-button-bar-list .bk-toolbar-button.active{background:#fff;-box-shadow:none !important;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;outline:none !important;border-bottom:2px solid #26aae1}.bk-button-bar&gt;.bk-toolbar-button.active{border-bottom:2px solid #26aae1}.bk-plot-above.bk-toolbar-active{border-bottom:2px solid #e5e5e5}.bk-plot-below.bk-toolbar-active{border-top:2px solid #e5e5e5;padding-bottom:45px}.bk-plot-above.bk-toolbar-active,.bk-plot-below.bk-toolbar-active{height:30px}.bk-plot-above.bk-toolbar-active .bk-logo,.bk-plot-below.bk-toolbar-active .bk-logo{float:left;top:5px;margin:5px 0}.bk-plot-above.bk-toolbar-active .bk-button-bar,.bk-plot-below.bk-toolbar-active .bk-button-bar{float:right;position:relative;top:5px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list{float:left}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown{margin-right:20px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before{right:-6px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after{right:-12px;position:absolute}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu:after,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu:after{content:""}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button{float:left}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help{float:right}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip{right:0;text-align:left;width:200px;white-space:normal}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip&gt;*,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip&gt;*{margin-left:0;margin-right:0}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip{top:41px;left:0;z-index:100;position:absolute;width:auto;padding:0 10px 5px 10px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip:before,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip:before{top:-7px;left:-5px;width:100%;height:9px;padding:0 10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAJCAYAAAAGuM1UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpDQjA4MDBGRDQ3NjExMUU0QjI1NEVEQTlCODRBRDIyNiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpDQjA4MDBGQzQ3NjExMUU0QjI1NEVEQTlCODRBRDIyNiIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6N0Y0M0E0Nzk5NDIyNjgxMTk3QTVDQTY1REE2OTk0Q0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4te1g5AAAAk0lEQVR42mL8//8/AymApamjC5dcJRBPBOJvyIJM2FQCbS0GUm1APAddDkPDv3//3BgZGTuh3Eig5lKcGv78+aPKxMS0HMhkhokBNbcDDfHApoGHmZl5HZAWQrOUGWQIyDBkDYxAqxcBTdPBEQACQMM2AGk+Jqgn64CKA/EFJ1BeC2QoE9B9AUBOPTFxAFTnDxBgAI5eL2ABBdyaAAAAAElFTkSuQmCC);display:block !important}.bk-plot-left.bk-toolbar-active{border-right:2px solid #e5e5e5}.bk-plot-right.bk-toolbar-active{border-left:2px solid #e5e5e5}.bk-plot-left.bk-toolbar-active,.bk-plot-right.bk-toolbar-active{display:block;margin:45px 0 0 0}.bk-plot-left.bk-toolbar-active .bk-logo,.bk-plot-right.bk-toolbar-active .bk-logo{left:6px;margin-bottom:20px}.bk-plot-left.bk-toolbar-active .bk-button-bar,.bk-plot-right.bk-toolbar-active .bk-button-bar{position:relative;left:3px}.bk-plot-left.bk-toolbar-active .bk-button-bar:before,.bk-plot-right.bk-toolbar-active .bk-button-bar:before,.bk-plot-left.bk-toolbar-active .bk-button-bar:after,.bk-plot-right.bk-toolbar-active .bk-button-bar:after{content:" ";display:block;height:0;clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list:after{content:" ";height:0;display:block;clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before{top:}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after{content:" \2014";float:none;clear:both;display:block;width:30px;height:8px;line-height:8px;padding:3px 0;text-align:center}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li{clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li:last-child:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li:last-child:after{content:" \2014";float:none;clear:both;display:block;width:30px;height:8px;line-height:8px;padding:3px 0;text-align:center}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button.active,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button.active{border-bottom:0;border-right:2px solid #26aae1}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button.help span.tip:before,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button.help span.tip:before{left:-57%}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button span.tip,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button span.tip{position:absolute;top:4px;left:40px;padding:5px 10px 5px 10px}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button span.tip:before,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button span.tip:before{top:2px;left:-19px;width:9px;height:15px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAPCAMAAAABFhU/AAAAA3NCSVQICAjb4U/gAAAAY1BMVEX////////8/Pz5+fn39/f19fX09PTv8fHv7+/t7e7s7Ozp6enn6Onm5ubj4+Ph4eHf39/X2drW1tfMzMzAw8S+wMGusbKorK6orK2nq6ufo6WcoaGYnZ+RlpiJj5GGjI6Bh4n1ho2QAAAAIXRSTlMA//////////////////////////////////////////9G9E6kAAAACXBIWXMAAAsSAAALEgHS3X78AAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABR0RVh0Q3JlYXRpb24gVGltZQA5LzUvMTTY+fXxAAAAUklEQVQImTXN2xZAIABE0VQUIfdLwvz/V1rL1DztpzOi4EoIQoekNoIaH1AL8EvvoExEUkBWfWZZvyWVzq/vL6kbP9/sKdtPF8vKdMPBN1m5AR+0BAnD6uP50QAAAABJRU5ErkJggg==)}.bk-crossfilter-selector{list-style-type:none;-webkit-padding-start:0}.bk-crossfilter-selector li{display:inline;margin-bottom:10px;padding-left:10px;padding-right:10px}.bk-bs-caret{color:lightgray;display:inline-block;width:0;height:0;position:relative;left:11px;top:3px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.bk-crossfilter-row{margin-left:-15px;margin-right:-15px;height:100%;width:100%;margin:0}.bk-crossfilter-panel-heading{padding-top:5px;padding-bottom:5px}.bk-crossfilter-panel-continuous-heading{background-color:#396285 !important}.bk-crossfilter-panel-factor-heading{background-color:#ce603d !important}.aligntable{vertical-align:top}.bk-crossfilter-container{height:100%;width:100%;whitespace:nowrap;display:inline-block;overflow:auto}.bk-crossfilter-configuration{overflow:auto;float:left;padding-right:0 !important;padding-left:15px !important;margin-left:0 !important;margin-right:0 !important}.bk-crossfilter-configuration .bk-bs-panel-body{padding:0 !important}.bk-column-list{overflow-y:auto;height:100%;padding-right:0;padding-left:0}.bk-table{width:100%;margin-bottom:20px;border-top:0;margin-bottom:0;text-align:left}.bk-table&gt;thead&gt;tr&gt;th,.bk-table&gt;tbody&gt;tr&gt;th,.bk-table&gt;tfoot&gt;tr&gt;th,.bk-table&gt;thead&gt;tr&gt;td,.bk-table&gt;tbody&gt;tr&gt;td,.bk-table&gt;tfoot&gt;tr&gt;td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.bk-table&gt;thead&gt;tr&gt;th{vertical-align:bottom;border-bottom:2px solid #ddd}.bk-table&gt;caption+thead&gt;tr:first-child&gt;th,.bk-table&gt;colgroup+thead&gt;tr:first-child&gt;th,.bk-table&gt;thead:first-child&gt;tr:first-child&gt;th,.bk-table&gt;caption+thead&gt;tr:first-child&gt;td,.bk-table&gt;colgroup+thead&gt;tr:first-child&gt;td,.bk-table&gt;thead:first-child&gt;tr:first-child&gt;td{border-top:0}.bk-table&gt;tbody+tbody{border-top:2px solid #ddd}.bk-table .bk-bs-table{background-color:#fff}.bk-table&gt;thead&gt;tr&gt;th,.bk-table&gt;tbody&gt;tr&gt;th,.bk-table&gt;tfoot&gt;tr&gt;th,.bk-table&gt;thead&gt;tr&gt;td,.bk-table&gt;tbody&gt;tr&gt;td,.bk-table&gt;tfoot&gt;tr&gt;td{padding:5px}.bk-table tr:nth-child(odd){background:#efefef}.bk-table tr td{padding:1px 5px !important;border:none !important}.bk-filters-facets{height:100%;padding-left:0;padding-right:0}.bk-filters{height:45%;overflow:hidden;position:relative}.bk-filters-selections{position:absolute;top:30px;left:0;right:0;bottom:0;overflow-y:auto;padding-top:0;padding-bottom:0;padding:5px !important}.bk-facet{height:14%;position:relative}.bk-facets-selections{position:absolute;top:30px;left:0;right:0;bottom:0}.bk-plot-selection{padding-right:0;padding-left:0}.bk-crossfilter-plot{float:left;display:inline-block}.bk-facet-label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;background-color:#5bc0de;margin-left:5px;display:inline-block;cursor:pointer}.bk-facet-label[href]:hover,.bk-facet-label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.bk-facet-label:empty{display:none}.bk-bs-btn .bk-facet-label{position:relative;top:-1px}.bk-facet-label[href]:hover,.bk-facet-label[href]:focus{background-color:#31b0d5}.bk-filters-selections .bk-sidebar{-webkit-transform:scale(0.5,0.5) !important;transform:scale(0.5,0.5) !important}.bk-crossfilter .bk-widget-form{padding:5px}.bk-data-table{font-size:11px}.bk-data-table input[type="checkbox"]{margin-left:4px;margin-right:4px}.bk-data-table *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.bk-data-table *:before,.bk-data-table *:after{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.bk-cell-special-defaults{border-right-color:silver;border-right-style:solid;background:#f5f5f5}.bk-cell-select{border-right-color:silver;border-right-style:solid;background:#f5f5f5}.bk-cell-index{border-right-color:silver;border-right-style:solid;background:#f5f5f5;text-align:right;color:gray}.bk-slick-row.selected .bk-cell-index{background-color:transparent}.bk-slick-cell{padding-left:4px;padding-right:4px}.bk-slick-cell.active{border-style:dashed}.bk-slick-cell.editable{padding-left:0;padding-right:0}.bk-cell-editor input,.bk-cell-editor select,.bk-cell-editor .bk-ui-spinner{width:100%;height:100%;border:0;margin:0;padding:0;outline:0;background:transparent;vertical-align:baseline}.bk-cell-editor input{padding-left:4px;padding-right:4px}.bk-cell-editor-completion{font-size:11px}.bk-hbox{display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:-ms-flexbox;display:box;box-orient:horizontal;box-align:stretch;display:flex;display:-webkit-flex;flex-direction:row;flex-wrap:nowrap}.bk-vbox{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;width:auto}.bk-widget-form{padding:30px 30px 30px 30px;overflow:hidden}.bk-widget-form-group{margin-bottom:15px}.bk-widget-form-input{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bk-widget-form-input:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.6)}.bk-widget-form-input::-moz-placeholder{color:#999;opacity:1}.bk-widget-form-input:-ms-input-placeholder{color:#999}.bk-widget-form-input::-webkit-input-placeholder{color:#999}.bk-widget-form-input[disabled],.bk-widget-form-input[readonly],fieldset[disabled] .bk-widget-form-input{cursor:not-allowed;background-color:#eee;opacity:1}textarea.bk-widget-form-input{height:auto}.bk-slider-horizontal{width:100%;height:50px;min-width:200px}.bk-slider-vertical{height:100%;width:50px;min-height:200px}.bk-button-bar{margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:2px;position:relative;display:inline-block;vertical-align:middle}.bk-button-bar&gt;.bk-bs-btn{position:relative;float:left}.bk-button-bar&gt;.bk-bs-btn:hover,.bk-button-bar&gt;.bk-bs-btn:focus,.bk-button-bar&gt;.bk-bs-btn:active,.bk-button-bar&gt;.bk-bs-btn.bk-bs-active{z-index:2}.bk-button-bar&gt;.bk-bs-btn:focus{outline:0}.bk-button-bar .bk-bs-btn+.bk-bs-btn,.bk-button-bar .bk-bs-btn+.bk-bs-btn-group,.bk-button-bar .bk-bs-btn-group+.bk-bs-btn,.bk-button-bar .bk-bs-btn-group+.bk-bs-btn-group{margin-left:-1px}.bk-toolbar-button{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px;color:#333;background-color:#fff;border-color:#ccc}.bk-toolbar-button:focus,.bk-toolbar-button:active:focus,.bk-toolbar-button.bk-bs-active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bk-toolbar-button:hover,.bk-toolbar-button:focus{color:#333;text-decoration:none}.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.bk-toolbar-button.bk-bs-disabled,.bk-toolbar-button[disabled],fieldset[disabled] .bk-toolbar-button{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.bk-toolbar-button:hover,.bk-toolbar-button:focus,.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-toolbar-button{color:#333;background-color:#ebebeb;border-color:#adadad}.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-toolbar-button{background-image:none}.bk-toolbar-button.bk-bs-disabled,.bk-toolbar-button[disabled],fieldset[disabled] .bk-toolbar-button,.bk-toolbar-button.bk-bs-disabled:hover,.bk-toolbar-button[disabled]:hover,fieldset[disabled] .bk-toolbar-button:hover,.bk-toolbar-button.bk-bs-disabled:focus,.bk-toolbar-button[disabled]:focus,fieldset[disabled] .bk-toolbar-button:focus,.bk-toolbar-button.bk-bs-disabled:active,.bk-toolbar-button[disabled]:active,fieldset[disabled] .bk-toolbar-button:active,.bk-toolbar-button.bk-bs-disabled.bk-bs-active,.bk-toolbar-button[disabled].bk-bs-active,fieldset[disabled] .bk-toolbar-button.bk-bs-active{background-color:#fff;border-color:#ccc}.bk-toolbar-button .bk-bs-badge{color:#fff;background-color:#333}.bk-canvas-wrapper{position:relative;font-size:12pt;float:left}.bk-canvas{clear:both;position:absolute;font-size:12pt}.bk-canvas-wrapper .bk-canvas-map{position:absolute !important;z-index:-5}.bk-tooltip{position:absolute;padding:5px;border:1px solid #1e4b6c;background-color:#1e4b6c;border-radius:5px;pointer-events:none}.bk-tooltip.bk-left::before{position:absolute;margin:-7px 0 0 0;top:50%;width:0;height:0;border-style:solid;border-width:7px 0 7px 0;border-color:transparent;content:" ";display:block;left:-10px;border-right-width:10px;border-right-color:#1e4b6c}.bk-tooltip.bk-right::after{position:absolute;margin:-7px 0 0 0;top:50%;width:0;height:0;border-style:solid;border-width:7px 0 7px 0;border-color:transparent;content:" ";display:block;right:-10px;border-left-width:10px;border-left-color:#1e4b6c}.bk-tooltip.bk-tooltip-custom.bk-left::before{border-right-color:black}.bk-tooltip.bk-tooltip-custom.bk-right::after{border-left-color:black}.bk-tooltip.bk-tooltip-custom{border-color:black;background-color:white}.bk-tooltip-row-label{color:#9ab9b1;font-family:Helvetica,sans-serif;text-align:right}.bk-tooltip-row-value{color:#e2ddbd;font-family:Helvetica,sans-serif}.bk-tooltip-color-block{width:12px;height:12px;margin-left:5px;margin-right:5px;outline:#ddd solid 1px;display:inline-block}.bk-canvas-map{position:absolute;border:0;z-index:-5}.shading{position:absolute;display:block;border:1px dashed green;z-index:100}.gridplot_container{position:relative}.gridplot_container .gp_plotwrapper{position:absolute}.table_wrap table{display:block;margin:5px;height:300px;overflow-y:scroll}.bk-table{overflow:auto}.bokehdelete{float:right}.plottitle{padding-left:50px;padding-bottom:10px}
        /*# sourceMappingURL=bokeh.min.css.map */
        /* END C:\Users\Bradlee Speice\Anaconda3\lib\site-packages\bokeh\server\static\css/bokeh.min.css */
&lt;/style&gt;
    &lt;div&gt;
        &lt;a href="http://bokeh.pydata.org" target="_blank" class="bk-logo bk-logo-small bk-logo-notebook"&gt;&lt;/a&gt;
        &lt;span&gt;BokehJS successfully loaded.&lt;/span&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;After taking some time to explore how the weather in North Carolina stacked up over the past years, I was interested in doing the same analysis for other cities. Growing up with family from Binghamton, NY I was always told it was very cloudy there. And Seattle has a nasty reputation for being very depressing and cloudy. All said, the cities I want to examine are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Binghamton, NY&lt;/li&gt;
&lt;li&gt;Cary, NC&lt;/li&gt;
&lt;li&gt;Seattle, WA&lt;/li&gt;
&lt;li&gt;New York City, NY&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I'd be interested to try this analysis worldwide at some point - comparing London and Seattle might be an interesting analysis. For now though, we'll stick with trying out the US data.&lt;/p&gt;
&lt;p&gt;There will be plenty of charts. I want to know: &lt;strong&gt;How has average cloud cover and precipitation chance changed over the years for each city mentioned?&lt;/strong&gt; This will hopefully tell us whether Seattle has actually earned its reputation for being a depressing city.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[2]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;city_forecasts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pickle&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;city_forecasts.p&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;rb&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="n"&gt;forecasts_df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DataFrame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;from_dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city_forecasts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[3]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;cities&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;binghamton&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;cary&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;nyc&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;seattle&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;city_colors&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;cities&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]:&lt;/span&gt; &lt;span class="n"&gt;Palette&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;safe_cover&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;cloudCover&amp;#39;&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;cloudCover&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;monthly_avg_cloudcover&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;dates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DatetimeIndex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;freq&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;D&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;closed&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;left&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;cloud_cover_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;safe_cover&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forecasts_df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;currently&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt; &lt;span class="n"&gt;dates&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;cloud_cover_samples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cloud_cover_vals&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="c1"&gt;# Ignore an issue with nanmean having all NaN values. We&amp;#39;ll discuss the data issues below.&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;warnings&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;catch_warnings&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
        &lt;span class="n"&gt;warnings&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;simplefilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;ignore&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nanmean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cloud_cover_vals&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;cloud_cover_samples&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[4]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1990&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2016&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;city_avg_cc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;monthly_avg_cloudcover&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;months&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;July&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;August&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;September&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;October&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;November&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month_id&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;month_averages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;city_avg_cc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;city&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cities&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;{} Average Cloud Cover&amp;quot;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
               &lt;span class="n"&gt;x_axis_label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Year&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="n"&gt;y_axis_label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Cloud Cover Percentage&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;city&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cities&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;month_averages&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;]],&lt;/span&gt;
               &lt;span class="n"&gt;legend&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;city_colors&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "b4884a12-6ba4-4522-abef-97f57fbc29cd", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "b4884a12-6ba4-4522-abef-97f57fbc29cd"}}, {"id": "d9ec9e91-1f98-4c37-af6f-0aa93cdd2d64", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "d9ec9e91-1f98-4c37-af6f-0aa93cdd2d64", "tags": [], "names": []}}, {"id": "1efa9bba-f651-4d2e-88ea-ce563c14cc39", "type": "ResetTool", "attributes": {"doc": null, "id": "1efa9bba-f651-4d2e-88ea-ce563c14cc39", "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "tags": []}}, {"id": "22839836-d087-4859-85bc-ceb282e8a7a2", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "22839836-d087-4859-85bc-ceb282e8a7a2", "num_minor_ticks": 5}}, {"id": "8a04fa05-bea6-49f8-ad99-a2a9b5cf3250", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "8a04fa05-bea6-49f8-ad99-a2a9b5cf3250"}}, {"id": "d55ed016-a3bd-4e5b-964e-d07520803c11", "type": "LinearAxis", "attributes": {"doc": null, "id": "d55ed016-a3bd-4e5b-964e-d07520803c11", "tags": [], "axis_label": "Year", "ticker": {"id": "22839836-d087-4859-85bc-ceb282e8a7a2", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "formatter": {"id": "5219d765-7a33-41d9-bde5-b3acd26ab5db", "type": "BasicTickFormatter"}}}, {"id": "771e26e9-48ee-4825-a174-2b050cdc14f3", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "8118ba3b-7674-49b2-a99c-34f4bb5bc7cb", "type": "Line"}, "tags": [], "data_source": {"id": "d6439fe5-b00f-4522-97d3-3ab0667cc421", "type": "ColumnDataSource"}, "id": "771e26e9-48ee-4825-a174-2b050cdc14f3", "glyph": {"id": "b64a9472-6666-416e-bcc6-cb2912a68f22", "type": "Line"}}}, {"id": "4904079a-24d3-4563-8fcc-661c4172ab8a", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "4904079a-24d3-4563-8fcc-661c4172ab8a", "data": {"y": [0.42903225806451617, 0.5716129032258064, 0.6193548387096776, 0.8848387096774194, 0.5203225806451612, 0.5432258064516129, "NaN", 0.6319354838709678, 0.7064516129032258, 0.5496774193548387, 0.7264516129032259, 0.6538709677419355, 0.6093548387096774, 0.41032258064516125, 0.5919354838709677, 0.436, 0.512258064516129, 0.45225806451612904, 0.5377419354838711, 0.3670967741935484, 0.6435483870967742, 0.5696774193548387, 0.6587096774193549, 0.5854838709677419, 0.05368421052631579, 0.03944444444444444], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "f3b56429-29c0-4c83-8eb1-949f78363ca5", "type": "LinearAxis", "attributes": {"doc": null, "id": "f3b56429-29c0-4c83-8eb1-949f78363ca5", "tags": [], "axis_label": "Cloud Cover Percentage", "ticker": {"id": "0424f9a7-6aa9-436b-80c3-846821b12331", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "formatter": {"id": "2af7dd99-2a0a-4132-afe3-e7f7c2776fad", "type": "BasicTickFormatter"}}}, {"id": "5b071d1c-68b0-458b-bde4-bbe17fb1e9fd", "type": "PreviewSaveTool", "attributes": {"doc": null, "id": "5b071d1c-68b0-458b-bde4-bbe17fb1e9fd", "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "tags": []}}, {"id": "5a51f0e8-85c6-4aad-a0e1-feb10e1675a9", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#ca0020"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "5a51f0e8-85c6-4aad-a0e1-feb10e1675a9"}}, {"id": "d6439fe5-b00f-4522-97d3-3ab0667cc421", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "d6439fe5-b00f-4522-97d3-3ab0667cc421", "data": {"y": [0.7206451612903227, 0.6683870967741934, 0.6487096774193548, 0.554516129032258, 0.6319354838709679, 0.635483870967742, 0.6541379310344827, 0.5693548387096775, 0.6058064516129031, 0.5593548387096773, 0.6693548387096774, 0.47322580645161294, 0.4758064516129033, 0.3793548387096774, 0.5467741935483871, 0.3793548387096775, 0.21290322580645157, 0.24935483870967737, 0.21096774193548384, 0.26161290322580644, 0.2670967741935484, 0.15193548387096772, 0.32064516129032256, 0.5935483870967742, 0.17190476190476192, 0.16478260869565217], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "8118ba3b-7674-49b2-a99c-34f4bb5bc7cb", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "8118ba3b-7674-49b2-a99c-34f4bb5bc7cb"}}, {"id": "2af7dd99-2a0a-4132-afe3-e7f7c2776fad", "type": "BasicTickFormatter", "attributes": {"id": "2af7dd99-2a0a-4132-afe3-e7f7c2776fad", "doc": null, "tags": []}}, {"id": "19daeefe-dd23-4a91-badd-2d99fd903e50", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "19daeefe-dd23-4a91-badd-2d99fd903e50", "data": {"y": [0.7132258064516128, 0.6416129032258064, 0.762258064516129, 0.6109677419354839, 0.7029032258064516, 0.7199999999999999, "NaN", 0.3483870967741935, 0.3890322580645161, 0.329032258064516, 0.4996774193548387, 0.4329032258064517, 0.354516129032258, 0.4774193548387097, 0.5548387096774193, 0.3645161290322581, 0.3722580645161291, 0.37935483870967734, 0.41838709677419345, 0.36064516129032254, 0.44967741935483857, 0.27419354838709675, 0.41903225806451616, 0.5132258064516128, 0.19090909090909092, 0.15923076923076923], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "a9caebbd-7447-40e3-920f-c9093387f936", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#0571b0"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "a9caebbd-7447-40e3-920f-c9093387f936"}}, {"id": "35f233bd-dc64-48cb-9a22-93743447b3c6", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "8a04fa05-bea6-49f8-ad99-a2a9b5cf3250", "type": "Line"}, "tags": [], "data_source": {"id": "19daeefe-dd23-4a91-badd-2d99fd903e50", "type": "ColumnDataSource"}, "id": "35f233bd-dc64-48cb-9a22-93743447b3c6", "glyph": {"id": "a9caebbd-7447-40e3-920f-c9093387f936", "type": "Line"}}}, {"id": "3203989d-e17b-4b6b-b0c1-18f13cdf61be", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "eb9413ac-a9f8-453e-bcab-c1a142ea31dd", "type": "Line"}, "tags": [], "data_source": {"id": "83ed1ad0-0d27-48a3-a7bb-cac77052cadc", "type": "ColumnDataSource"}, "id": "3203989d-e17b-4b6b-b0c1-18f13cdf61be", "glyph": {"id": "6311254a-0d17-40d4-8b96-2970e76b0661", "type": "Line"}}}, {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot", "attributes": {"extra_x_ranges": {}, "extra_y_ranges": {}, "tools": [{"id": "06844e29-9ec6-44d5-87d4-5e61450a2bd2", "type": "PanTool"}, {"id": "f5c800fc-3884-489b-a46a-c03c5f76c726", "type": "WheelZoomTool"}, {"id": "d2d2c775-c82d-46d1-a720-2cca129f6061", "type": "BoxZoomTool"}, {"id": "5b071d1c-68b0-458b-bde4-bbe17fb1e9fd", "type": "PreviewSaveTool"}, {"id": "ae74a984-e56f-4a58-95d5-e2ec5c7908ff", "type": "ResizeTool"}, {"id": "1efa9bba-f651-4d2e-88ea-ce563c14cc39", "type": "ResetTool"}, {"id": "baf82795-5f14-4c93-b73e-5d7f093d5231", "type": "HelpTool"}], "left": [{"id": "f3b56429-29c0-4c83-8eb1-949f78363ca5", "type": "LinearAxis"}], "tool_events": {"id": "51e90b6c-f348-4c98-a28a-c3bf2fc56d1a", "type": "ToolEvents"}, "below": [{"id": "d55ed016-a3bd-4e5b-964e-d07520803c11", "type": "LinearAxis"}], "right": [], "tags": [], "doc": null, "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "title": "July Average Cloud Cover", "renderers": [{"id": "d55ed016-a3bd-4e5b-964e-d07520803c11", "type": "LinearAxis"}, {"id": "477ceae0-0514-4a5a-9619-e39d261e2f58", "type": "Grid"}, {"id": "f3b56429-29c0-4c83-8eb1-949f78363ca5", "type": "LinearAxis"}, {"id": "efa2c7fe-8550-4a6b-9d4b-95aa0075a260", "type": "Grid"}, {"id": "947a74fa-980a-48d2-acec-1afcbaaf4e0f", "type": "Legend"}, {"id": "35f233bd-dc64-48cb-9a22-93743447b3c6", "type": "GlyphRenderer"}, {"id": "3203989d-e17b-4b6b-b0c1-18f13cdf61be", "type": "GlyphRenderer"}, {"id": "771e26e9-48ee-4825-a174-2b050cdc14f3", "type": "GlyphRenderer"}, {"id": "83a5031e-6a96-406b-b6de-be32bed7d376", "type": "GlyphRenderer"}], "x_range": {"id": "172cae0a-81a5-48e4-8351-6a638af721e5", "type": "DataRange1d"}, "above": [], "y_range": {"id": "d9ec9e91-1f98-4c37-af6f-0aa93cdd2d64", "type": "DataRange1d"}}}, {"id": "06844e29-9ec6-44d5-87d4-5e61450a2bd2", "type": "PanTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "06844e29-9ec6-44d5-87d4-5e61450a2bd2", "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "tags": []}}, {"id": "172cae0a-81a5-48e4-8351-6a638af721e5", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "172cae0a-81a5-48e4-8351-6a638af721e5", "tags": [], "names": []}}, {"id": "d2d2c775-c82d-46d1-a720-2cca129f6061", "type": "BoxZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "d2d2c775-c82d-46d1-a720-2cca129f6061", "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "tags": []}}, {"id": "477ceae0-0514-4a5a-9619-e39d261e2f58", "type": "Grid", "attributes": {"doc": null, "id": "477ceae0-0514-4a5a-9619-e39d261e2f58", "ticker": {"id": "22839836-d087-4859-85bc-ceb282e8a7a2", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "tags": [], "dimension": 0}}, {"id": "51e90b6c-f348-4c98-a28a-c3bf2fc56d1a", "type": "ToolEvents", "attributes": {"doc": null, "tags": [], "id": "51e90b6c-f348-4c98-a28a-c3bf2fc56d1a", "geometries": []}}, {"id": "83a5031e-6a96-406b-b6de-be32bed7d376", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "b4884a12-6ba4-4522-abef-97f57fbc29cd", "type": "Line"}, "tags": [], "data_source": {"id": "4904079a-24d3-4563-8fcc-661c4172ab8a", "type": "ColumnDataSource"}, "id": "83a5031e-6a96-406b-b6de-be32bed7d376", "glyph": {"id": "5a51f0e8-85c6-4aad-a0e1-feb10e1675a9", "type": "Line"}}}, {"id": "5219d765-7a33-41d9-bde5-b3acd26ab5db", "type": "BasicTickFormatter", "attributes": {"id": "5219d765-7a33-41d9-bde5-b3acd26ab5db", "doc": null, "tags": []}}, {"id": "947a74fa-980a-48d2-acec-1afcbaaf4e0f", "type": "Legend", "attributes": {"doc": null, "id": "947a74fa-980a-48d2-acec-1afcbaaf4e0f", "legends": [["binghamton", [{"id": "35f233bd-dc64-48cb-9a22-93743447b3c6", "type": "GlyphRenderer"}]], ["cary", [{"id": "3203989d-e17b-4b6b-b0c1-18f13cdf61be", "type": "GlyphRenderer"}]], ["nyc", [{"id": "771e26e9-48ee-4825-a174-2b050cdc14f3", "type": "GlyphRenderer"}]], ["seattle", [{"id": "83a5031e-6a96-406b-b6de-be32bed7d376", "type": "GlyphRenderer"}]]], "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "tags": []}}, {"id": "f5c800fc-3884-489b-a46a-c03c5f76c726", "type": "WheelZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "f5c800fc-3884-489b-a46a-c03c5f76c726", "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "tags": []}}, {"id": "b64a9472-6666-416e-bcc6-cb2912a68f22", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#f4a582"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "b64a9472-6666-416e-bcc6-cb2912a68f22"}}, {"id": "6311254a-0d17-40d4-8b96-2970e76b0661", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#92c5de"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "6311254a-0d17-40d4-8b96-2970e76b0661"}}, {"id": "baf82795-5f14-4c93-b73e-5d7f093d5231", "type": "HelpTool", "attributes": {"doc": null, "id": "baf82795-5f14-4c93-b73e-5d7f093d5231", "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "tags": []}}, {"id": "eb9413ac-a9f8-453e-bcab-c1a142ea31dd", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "eb9413ac-a9f8-453e-bcab-c1a142ea31dd"}}, {"id": "efa2c7fe-8550-4a6b-9d4b-95aa0075a260", "type": "Grid", "attributes": {"doc": null, "id": "efa2c7fe-8550-4a6b-9d4b-95aa0075a260", "ticker": {"id": "0424f9a7-6aa9-436b-80c3-846821b12331", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "tags": [], "dimension": 1}}, {"id": "ae74a984-e56f-4a58-95d5-e2ec5c7908ff", "type": "ResizeTool", "attributes": {"doc": null, "id": "ae74a984-e56f-4a58-95d5-e2ec5c7908ff", "plot": {"subtype": "Figure", "id": "a104c547-ab08-494b-96bf-e9ba30599c1b", "type": "Plot"}, "tags": []}}, {"id": "83ed1ad0-0d27-48a3-a7bb-cac77052cadc", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "83ed1ad0-0d27-48a3-a7bb-cac77052cadc", "data": {"y": [0.5335483870967742, 0.5903225806451613, 0.4796774193548388, 0.43774193548387097, 0.5967741935483871, 0.47548387096774186, 0.6033333333333334, 0.5216129032258064, 0.5816129032258064, 0.5896774193548387, 0.6803225806451614, 0.7035483870967741, 0.42709677419354836, 0.516774193548387, 0.43096774193548393, 0.4374193548387097, 0.32032258064516134, 0.39967741935483875, 0.375483870967742, 0.5061290322580646, 0.4625806451612904, 0.3635483870967742, 0.4838709677419355, 0.6041935483870967, 0.22565217391304346, 0.1603448275862069], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "0424f9a7-6aa9-436b-80c3-846821b12331", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "0424f9a7-6aa9-436b-80c3-846821b12331", "num_minor_ticks": 5}}];
        Bokeh.load_models(all_models);
        var plots = [{'modeltype': 'Plot', 'elementid': 'd78f4f79-bae2-406b-84fa-31eef82b0790', 'modelid': 'a104c547-ab08-494b-96bf-e9ba30599c1b'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="d78f4f79-bae2-406b-84fa-31eef82b0790"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "4b0986e4-d5fb-42a3-a952-550319c33387", "type": "WheelZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "4b0986e4-d5fb-42a3-a952-550319c33387", "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "tags": []}}, {"id": "f408bbd3-ea64-48bc-9097-612cd3ca18ea", "type": "BasicTickFormatter", "attributes": {"id": "f408bbd3-ea64-48bc-9097-612cd3ca18ea", "doc": null, "tags": []}}, {"id": "15562c2b-7f90-4c92-8bac-40ec09136aed", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "15562c2b-7f90-4c92-8bac-40ec09136aed", "data": {"y": [0.6993548387096774, 0.6167741935483871, 0.5538709677419356, 0.6629032258064516, 0.5548387096774193, 0.6132258064516127, 0.776, 0.5329032258064517, 0.4423333333333333, 0.6799999999999999, 0.6809677419354838, 0.6583870967741937, 0.5341935483870969, 0.5141935483870967, 0.6645161290322581, 0.5593548387096774, 0.4729032258064516, 0.6303333333333333, 0.5448387096774193, 0.6329032258064516, 0.6458064516129032, 0.5526666666666666, 0.4745161290322581, 0.0, 0.069375, 0.08526315789473685], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "d1563daf-7a5f-4ec2-a45b-630f900d02b5", "type": "ToolEvents", "attributes": {"doc": null, "tags": [], "id": "d1563daf-7a5f-4ec2-a45b-630f900d02b5", "geometries": []}}, {"id": "59bc643a-0588-4b5a-b2ef-9c2809026532", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "29103846-3255-4d73-b7c9-fa8b68e30f6a", "type": "Line"}, "tags": [], "data_source": {"id": "e667f73b-7eb9-4746-a78a-f63a426cee8c", "type": "ColumnDataSource"}, "id": "59bc643a-0588-4b5a-b2ef-9c2809026532", "glyph": {"id": "129dec42-95d9-426b-9c3b-6bb35ac62684", "type": "Line"}}}, {"id": "1326b20f-6852-4723-92e0-2095f49f781e", "type": "PreviewSaveTool", "attributes": {"doc": null, "id": "1326b20f-6852-4723-92e0-2095f49f781e", "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "tags": []}}, {"id": "ae49370b-ae18-4ac8-82f7-a6c566ea068a", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#92c5de"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "ae49370b-ae18-4ac8-82f7-a6c566ea068a"}}, {"id": "684b2f42-902d-4b0a-995e-17ec9f0bed9d", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#0571b0"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "684b2f42-902d-4b0a-995e-17ec9f0bed9d"}}, {"id": "a568f3e4-2215-457e-8ac7-67741ddbfae7", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "a568f3e4-2215-457e-8ac7-67741ddbfae7", "tags": [], "names": []}}, {"id": "d1594aff-65cc-4bd5-804d-f9eb87760820", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "d1594aff-65cc-4bd5-804d-f9eb87760820", "num_minor_ticks": 5}}, {"id": "cef111e3-f074-4c6e-b440-b7a4c505c6e5", "type": "ResizeTool", "attributes": {"doc": null, "id": "cef111e3-f074-4c6e-b440-b7a4c505c6e5", "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "tags": []}}, {"id": "b5d6f3d8-00bc-4177-b709-3271ec34199c", "type": "BoxZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "b5d6f3d8-00bc-4177-b709-3271ec34199c", "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "tags": []}}, {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot", "attributes": {"extra_x_ranges": {}, "extra_y_ranges": {}, "tools": [{"id": "4e1eeddf-605a-450d-9a13-5d9c9b3fb370", "type": "PanTool"}, {"id": "4b0986e4-d5fb-42a3-a952-550319c33387", "type": "WheelZoomTool"}, {"id": "b5d6f3d8-00bc-4177-b709-3271ec34199c", "type": "BoxZoomTool"}, {"id": "1326b20f-6852-4723-92e0-2095f49f781e", "type": "PreviewSaveTool"}, {"id": "cef111e3-f074-4c6e-b440-b7a4c505c6e5", "type": "ResizeTool"}, {"id": "09935d2e-c85d-4244-9bfb-411ab7ca9799", "type": "ResetTool"}, {"id": "8db04ad5-5e6b-466d-a748-8c835d0fee75", "type": "HelpTool"}], "left": [{"id": "ec2aea8f-fae1-445f-bb5f-a254137b87c1", "type": "LinearAxis"}], "tool_events": {"id": "d1563daf-7a5f-4ec2-a45b-630f900d02b5", "type": "ToolEvents"}, "below": [{"id": "d4e8ae06-5a92-4ee8-98fe-4b925158da38", "type": "LinearAxis"}], "right": [], "tags": [], "doc": null, "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "title": "August Average Cloud Cover", "renderers": [{"id": "d4e8ae06-5a92-4ee8-98fe-4b925158da38", "type": "LinearAxis"}, {"id": "f6bb2a55-a63f-41a2-bfb9-4b8f12daf942", "type": "Grid"}, {"id": "ec2aea8f-fae1-445f-bb5f-a254137b87c1", "type": "LinearAxis"}, {"id": "fba6c9d0-d64e-465a-9825-adb725ef60e4", "type": "Grid"}, {"id": "080afcc4-3e22-41ae-8107-20c3954612b9", "type": "Legend"}, {"id": "21baf1d6-ad1b-4368-8a98-0324df880009", "type": "GlyphRenderer"}, {"id": "91a171d4-a17b-4f61-9123-b81d32721d35", "type": "GlyphRenderer"}, {"id": "59bc643a-0588-4b5a-b2ef-9c2809026532", "type": "GlyphRenderer"}, {"id": "78fe2922-0ced-46ec-884a-e35e55ca7187", "type": "GlyphRenderer"}], "x_range": {"id": "d3ce5766-852c-4c18-87af-5b7c1033f2d3", "type": "DataRange1d"}, "above": [], "y_range": {"id": "a568f3e4-2215-457e-8ac7-67741ddbfae7", "type": "DataRange1d"}}}, {"id": "4e1eeddf-605a-450d-9a13-5d9c9b3fb370", "type": "PanTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "4e1eeddf-605a-450d-9a13-5d9c9b3fb370", "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "tags": []}}, {"id": "b2de634e-5a9f-4228-8fd5-7dc2ed6ee5d8", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "b2de634e-5a9f-4228-8fd5-7dc2ed6ee5d8", "num_minor_ticks": 5}}, {"id": "e667f73b-7eb9-4746-a78a-f63a426cee8c", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "e667f73b-7eb9-4746-a78a-f63a426cee8c", "data": {"y": [0.6183870967741935, 0.5674193548387096, 0.5925806451612904, 0.5725806451612903, 0.6335483870967743, 0.4732258064516129, 0.581, 0.588709677419355, 0.5690000000000001, 0.6354838709677418, 0.6274193548387096, 0.547741935483871, 0.5241935483870968, 0.43225806451612897, 0.4751612903225806, 0.34677419354838707, 0.35516129032258065, 0.30866666666666664, 0.31483870967741934, 0.38709677419354843, 0.4303225806451612, 0.3333333333333333, 0.2703225806451613, 0.0, 0.17800000000000002, 0.1689655172413793], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "f9802f3b-0415-450e-ae3e-c3a796778bdf", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#ca0020"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "f9802f3b-0415-450e-ae3e-c3a796778bdf"}}, {"id": "d4e8ae06-5a92-4ee8-98fe-4b925158da38", "type": "LinearAxis", "attributes": {"doc": null, "id": "d4e8ae06-5a92-4ee8-98fe-4b925158da38", "tags": [], "axis_label": "Year", "ticker": {"id": "d1594aff-65cc-4bd5-804d-f9eb87760820", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "formatter": {"id": "f408bbd3-ea64-48bc-9097-612cd3ca18ea", "type": "BasicTickFormatter"}}}, {"id": "fba6c9d0-d64e-465a-9825-adb725ef60e4", "type": "Grid", "attributes": {"doc": null, "id": "fba6c9d0-d64e-465a-9825-adb725ef60e4", "ticker": {"id": "b2de634e-5a9f-4228-8fd5-7dc2ed6ee5d8", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "tags": [], "dimension": 1}}, {"id": "56384119-9490-4285-9998-d49522043ad5", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "56384119-9490-4285-9998-d49522043ad5", "data": {"y": [0.6529032258064517, 0.6212903225806452, 0.6741935483870969, 0.7296774193548388, 0.7429032258064515, 0.5577419354838709, 0.526, 0.48741935483870963, 0.2990322580645161, 0.503225806451613, 0.4893548387096774, 0.37322580645161285, 0.3796774193548388, 0.47580645161290325, 0.5470967741935484, 0.44870967741935486, 0.3983870967741936, 0.3309999999999999, 0.397741935483871, 0.4961290322580646, 0.4716129032258064, 0.5163333333333333, 0.4299999999999999, 0.0, 0.16894736842105265, 0.2011538461538461], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "a6450855-4f6b-41dd-bbcd-37cf89f4cc4b", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "a6450855-4f6b-41dd-bbcd-37cf89f4cc4b"}}, {"id": "080afcc4-3e22-41ae-8107-20c3954612b9", "type": "Legend", "attributes": {"doc": null, "id": "080afcc4-3e22-41ae-8107-20c3954612b9", "legends": [["binghamton", [{"id": "21baf1d6-ad1b-4368-8a98-0324df880009", "type": "GlyphRenderer"}]], ["cary", [{"id": "91a171d4-a17b-4f61-9123-b81d32721d35", "type": "GlyphRenderer"}]], ["nyc", [{"id": "59bc643a-0588-4b5a-b2ef-9c2809026532", "type": "GlyphRenderer"}]], ["seattle", [{"id": "78fe2922-0ced-46ec-884a-e35e55ca7187", "type": "GlyphRenderer"}]]], "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "tags": []}}, {"id": "78fe2922-0ced-46ec-884a-e35e55ca7187", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "0dbfe564-2dcb-4b0a-9847-23268ade620f", "type": "Line"}, "tags": [], "data_source": {"id": "15562c2b-7f90-4c92-8bac-40ec09136aed", "type": "ColumnDataSource"}, "id": "78fe2922-0ced-46ec-884a-e35e55ca7187", "glyph": {"id": "f9802f3b-0415-450e-ae3e-c3a796778bdf", "type": "Line"}}}, {"id": "0dbfe564-2dcb-4b0a-9847-23268ade620f", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "0dbfe564-2dcb-4b0a-9847-23268ade620f"}}, {"id": "f6bb2a55-a63f-41a2-bfb9-4b8f12daf942", "type": "Grid", "attributes": {"doc": null, "id": "f6bb2a55-a63f-41a2-bfb9-4b8f12daf942", "ticker": {"id": "d1594aff-65cc-4bd5-804d-f9eb87760820", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "tags": [], "dimension": 0}}, {"id": "09935d2e-c85d-4244-9bfb-411ab7ca9799", "type": "ResetTool", "attributes": {"doc": null, "id": "09935d2e-c85d-4244-9bfb-411ab7ca9799", "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "tags": []}}, {"id": "29103846-3255-4d73-b7c9-fa8b68e30f6a", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "29103846-3255-4d73-b7c9-fa8b68e30f6a"}}, {"id": "b83c6bd1-13f0-4ae3-b076-d5306f011af6", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "b83c6bd1-13f0-4ae3-b076-d5306f011af6", "data": {"y": [0.6532258064516128, 0.6990322580645162, 0.6735483870967741, 0.5064516129032258, 0.5329032258064517, 0.5306451612903227, 0.5311111111111111, 0.48516129032258065, 0.5106451612903226, 0.6361290322580646, 0.5535483870967742, 0.40419354838709676, 0.4232258064516129, 0.4661290322580645, 0.5380645161290323, 0.40709677419354834, 0.44677419354838716, 0.3223333333333334, 0.44677419354838716, 0.537741935483871, 0.49064516129032254, 0.364, 0.5296774193548387, 0.0, 0.18809523809523812, 0.16185185185185186], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "8db04ad5-5e6b-466d-a748-8c835d0fee75", "type": "HelpTool", "attributes": {"doc": null, "id": "8db04ad5-5e6b-466d-a748-8c835d0fee75", "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "tags": []}}, {"id": "91a171d4-a17b-4f61-9123-b81d32721d35", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "6f70989e-4e2d-4cc7-aa49-95b055becb5d", "type": "Line"}, "tags": [], "data_source": {"id": "b83c6bd1-13f0-4ae3-b076-d5306f011af6", "type": "ColumnDataSource"}, "id": "91a171d4-a17b-4f61-9123-b81d32721d35", "glyph": {"id": "ae49370b-ae18-4ac8-82f7-a6c566ea068a", "type": "Line"}}}, {"id": "d6c96946-4d64-42ed-8e79-92a8af1e807a", "type": "BasicTickFormatter", "attributes": {"id": "d6c96946-4d64-42ed-8e79-92a8af1e807a", "doc": null, "tags": []}}, {"id": "ec2aea8f-fae1-445f-bb5f-a254137b87c1", "type": "LinearAxis", "attributes": {"doc": null, "id": "ec2aea8f-fae1-445f-bb5f-a254137b87c1", "tags": [], "axis_label": "Cloud Cover Percentage", "ticker": {"id": "b2de634e-5a9f-4228-8fd5-7dc2ed6ee5d8", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "b1957c21-6e06-4789-ba73-3c3bd181a307", "type": "Plot"}, "formatter": {"id": "d6c96946-4d64-42ed-8e79-92a8af1e807a", "type": "BasicTickFormatter"}}}, {"id": "129dec42-95d9-426b-9c3b-6bb35ac62684", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#f4a582"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "129dec42-95d9-426b-9c3b-6bb35ac62684"}}, {"id": "21baf1d6-ad1b-4368-8a98-0324df880009", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "a6450855-4f6b-41dd-bbcd-37cf89f4cc4b", "type": "Line"}, "tags": [], "data_source": {"id": "56384119-9490-4285-9998-d49522043ad5", "type": "ColumnDataSource"}, "id": "21baf1d6-ad1b-4368-8a98-0324df880009", "glyph": {"id": "684b2f42-902d-4b0a-995e-17ec9f0bed9d", "type": "Line"}}}, {"id": "d3ce5766-852c-4c18-87af-5b7c1033f2d3", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "d3ce5766-852c-4c18-87af-5b7c1033f2d3", "tags": [], "names": []}}, {"id": "6f70989e-4e2d-4cc7-aa49-95b055becb5d", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "6f70989e-4e2d-4cc7-aa49-95b055becb5d"}}];
        Bokeh.load_models(all_models);
        var plots = [{'modeltype': 'Plot', 'elementid': 'f8ff6948-64af-4dba-b9b1-e921a9369fa6', 'modelid': 'b1957c21-6e06-4789-ba73-3c3bd181a307'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="f8ff6948-64af-4dba-b9b1-e921a9369fa6"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "69571a0d-ab41-45ed-ad3e-dcd5255b1147", "type": "HelpTool", "attributes": {"doc": null, "id": "69571a0d-ab41-45ed-ad3e-dcd5255b1147", "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "tags": []}}, {"id": "cbeb15db-7cde-4590-bbc7-38afa88f3d28", "type": "Legend", "attributes": {"doc": null, "id": "cbeb15db-7cde-4590-bbc7-38afa88f3d28", "legends": [["binghamton", [{"id": "fb5d6738-449f-43cf-897f-3e41c41b1a06", "type": "GlyphRenderer"}]], ["cary", [{"id": "af3df3c3-73e4-48fe-a28d-da8bea9eed5e", "type": "GlyphRenderer"}]], ["nyc", [{"id": "07b16bf5-6b17-4383-b5b9-3d3c68ca68bd", "type": "GlyphRenderer"}]], ["seattle", [{"id": "853c9cc4-e0cd-49b5-b631-8ef1fc71fbd2", "type": "GlyphRenderer"}]]], "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "tags": []}}, {"id": "2b271825-3b94-4304-91bf-3d08d4131989", "type": "PreviewSaveTool", "attributes": {"doc": null, "id": "2b271825-3b94-4304-91bf-3d08d4131989", "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "tags": []}}, {"id": "07b16bf5-6b17-4383-b5b9-3d3c68ca68bd", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "eafefd4d-f787-414f-aa22-6536bccf692b", "type": "Line"}, "tags": [], "data_source": {"id": "73c14396-fb07-47e8-a060-dfaab068c205", "type": "ColumnDataSource"}, "id": "07b16bf5-6b17-4383-b5b9-3d3c68ca68bd", "glyph": {"id": "2497be02-9cdb-40c3-ae56-afd471a56dbd", "type": "Line"}}}, {"id": "bfb3dcb6-297d-453b-9936-0adc72f35f14", "type": "LinearAxis", "attributes": {"doc": null, "id": "bfb3dcb6-297d-453b-9936-0adc72f35f14", "tags": [], "axis_label": "Year", "ticker": {"id": "43f51922-49bd-400c-a27c-f7c97f89da73", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "formatter": {"id": "d8d61574-cc54-47c8-a59a-ab56b43065f8", "type": "BasicTickFormatter"}}}, {"id": "e7611fd3-2469-4421-8ffb-e5b4c21c6389", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#ca0020"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "e7611fd3-2469-4421-8ffb-e5b4c21c6389"}}, {"id": "c9388a7f-cc63-444c-84ee-f7463b7618e5", "type": "BoxZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "c9388a7f-cc63-444c-84ee-f7463b7618e5", "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "tags": []}}, {"id": "125749a2-9cdd-4558-a801-f8a30af520a4", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#92c5de"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "125749a2-9cdd-4558-a801-f8a30af520a4"}}, {"id": "e23a72b5-34fa-4467-befb-a453984225b7", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "e23a72b5-34fa-4467-befb-a453984225b7", "num_minor_ticks": 5}}, {"id": "f80c6a9b-e8a7-4328-8dd9-f662724c3db3", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "f80c6a9b-e8a7-4328-8dd9-f662724c3db3", "tags": [], "names": []}}, {"id": "ade16eb5-302a-4122-8ffc-23d81cc0913b", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "ade16eb5-302a-4122-8ffc-23d81cc0913b", "data": {"y": [0.6846666666666666, 0.5103333333333333, 0.7086666666666666, 0.47900000000000004, 0.6426666666666667, 0.645, 0.7875862068965517, 0.6486666666666665, 0.4963333333333333, 0.4126666666666666, 0.6416666666666667, 0.6946666666666668, 0.5624137931034483, 0.5653333333333334, 0.7806666666666666, 0.6273333333333333, 0.505, 0.6756666666666666, 0.47600000000000003, 0.417, 0.833, 0.45199999999999996, 0.4203333333333334, 0.0, 0.0775, 0.19200000000000003], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "a4ca4169-d134-4bc1-bba5-89de14ca6d6c", "type": "ResizeTool", "attributes": {"doc": null, "id": "a4ca4169-d134-4bc1-bba5-89de14ca6d6c", "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "tags": []}}, {"id": "2c205f2f-f94e-49b0-b45a-8e51e790c199", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "2c205f2f-f94e-49b0-b45a-8e51e790c199"}}, {"id": "2497be02-9cdb-40c3-ae56-afd471a56dbd", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#f4a582"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "2497be02-9cdb-40c3-ae56-afd471a56dbd"}}, {"id": "0e4e9ada-6ae8-4ed7-a478-d7b49ef18196", "type": "ResetTool", "attributes": {"doc": null, "id": "0e4e9ada-6ae8-4ed7-a478-d7b49ef18196", "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "tags": []}}, {"id": "62faeb34-2b3d-4619-afe0-a89aac29747b", "type": "Grid", "attributes": {"doc": null, "id": "62faeb34-2b3d-4619-afe0-a89aac29747b", "ticker": {"id": "43f51922-49bd-400c-a27c-f7c97f89da73", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "tags": [], "dimension": 0}}, {"id": "af3df3c3-73e4-48fe-a28d-da8bea9eed5e", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "2c205f2f-f94e-49b0-b45a-8e51e790c199", "type": "Line"}, "tags": [], "data_source": {"id": "3fc050cc-34d7-4a31-a5d6-5e8e51dcbce0", "type": "ColumnDataSource"}, "id": "af3df3c3-73e4-48fe-a28d-da8bea9eed5e", "glyph": {"id": "125749a2-9cdd-4558-a801-f8a30af520a4", "type": "Line"}}}, {"id": "5fd85b4f-0999-4338-be45-939295348864", "type": "PanTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "5fd85b4f-0999-4338-be45-939295348864", "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "tags": []}}, {"id": "43f51922-49bd-400c-a27c-f7c97f89da73", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "43f51922-49bd-400c-a27c-f7c97f89da73", "num_minor_ticks": 5}}, {"id": "75f04cb9-6796-4a2e-bd9a-dbe28725b7d2", "type": "BasicTickFormatter", "attributes": {"id": "75f04cb9-6796-4a2e-bd9a-dbe28725b7d2", "doc": null, "tags": []}}, {"id": "866b84f5-bcf2-494e-ba58-77c69bf4af0a", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "866b84f5-bcf2-494e-ba58-77c69bf4af0a", "data": {"y": [0.7283333333333335, 0.5700000000000001, 0.6843333333333332, 0.7646666666666667, 0.7246666666666667, 0.5999999999999999, 0.5765517241379311, 0.5566666666666666, 0.3773333333333333, 0.5073333333333333, 0.41499999999999987, 0.43533333333333335, 0.3858620689655172, 0.5713333333333332, 0.4596666666666666, 0.3389999999999999, 0.6133333333333332, 0.30766666666666664, 0.43966666666666665, 0.499, 0.5066666666666666, 0.6539999999999999, 0.5556666666666668, 0.0, 0.13869565217391305, 0.1225925925925926], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "3fc050cc-34d7-4a31-a5d6-5e8e51dcbce0", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "3fc050cc-34d7-4a31-a5d6-5e8e51dcbce0", "data": {"y": [0.49999999999999994, 0.5026666666666667, 0.6086666666666667, 0.526, 0.4683333333333333, 0.6596666666666667, 0.4693333333333333, 0.5576666666666666, 0.43799999999999994, 0.5730000000000001, 0.6706666666666664, 0.3756666666666666, 0.6148275862068965, 0.465, 0.5736666666666667, 0.409, 0.45066666666666666, 0.304, 0.6056666666666667, 0.5263333333333333, 0.35433333333333333, 0.5363333333333333, 0.453, 0.0, 0.1827777777777778, 0.18416666666666667], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "44dfa236-24d7-475e-a032-72d1bc8f191d", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "44dfa236-24d7-475e-a032-72d1bc8f191d"}}, {"id": "fb5d6738-449f-43cf-897f-3e41c41b1a06", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "abcca8cc-3b65-4833-bd8f-7d42b5e209aa", "type": "Line"}, "tags": [], "data_source": {"id": "866b84f5-bcf2-494e-ba58-77c69bf4af0a", "type": "ColumnDataSource"}, "id": "fb5d6738-449f-43cf-897f-3e41c41b1a06", "glyph": {"id": "898879de-ccf4-48d3-8fb2-42a4c8c0f22f", "type": "Line"}}}, {"id": "254f9781-b83b-4621-8d6f-2b48a73fc9e1", "type": "WheelZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "254f9781-b83b-4621-8d6f-2b48a73fc9e1", "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "tags": []}}, {"id": "8e073098-005d-4ab6-8ccf-91f7ee7e465a", "type": "ToolEvents", "attributes": {"doc": null, "tags": [], "id": "8e073098-005d-4ab6-8ccf-91f7ee7e465a", "geometries": []}}, {"id": "eafefd4d-f787-414f-aa22-6536bccf692b", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "eafefd4d-f787-414f-aa22-6536bccf692b"}}, {"id": "898879de-ccf4-48d3-8fb2-42a4c8c0f22f", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#0571b0"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "898879de-ccf4-48d3-8fb2-42a4c8c0f22f"}}, {"id": "960a2911-6543-46a4-b85d-6e9ed168ee29", "type": "LinearAxis", "attributes": {"doc": null, "id": "960a2911-6543-46a4-b85d-6e9ed168ee29", "tags": [], "axis_label": "Cloud Cover Percentage", "ticker": {"id": "e23a72b5-34fa-4467-befb-a453984225b7", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "formatter": {"id": "75f04cb9-6796-4a2e-bd9a-dbe28725b7d2", "type": "BasicTickFormatter"}}}, {"id": "ad9f6ecb-320e-4525-8a8a-0d021d868287", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "ad9f6ecb-320e-4525-8a8a-0d021d868287", "tags": [], "names": []}}, {"id": "abcca8cc-3b65-4833-bd8f-7d42b5e209aa", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "abcca8cc-3b65-4833-bd8f-7d42b5e209aa"}}, {"id": "7c0f5b72-683e-4ed8-acfd-b70cd4c6db66", "type": "Grid", "attributes": {"doc": null, "id": "7c0f5b72-683e-4ed8-acfd-b70cd4c6db66", "ticker": {"id": "e23a72b5-34fa-4467-befb-a453984225b7", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot"}, "tags": [], "dimension": 1}}, {"subtype": "Figure", "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "type": "Plot", "attributes": {"extra_x_ranges": {}, "extra_y_ranges": {}, "tools": [{"id": "5fd85b4f-0999-4338-be45-939295348864", "type": "PanTool"}, {"id": "254f9781-b83b-4621-8d6f-2b48a73fc9e1", "type": "WheelZoomTool"}, {"id": "c9388a7f-cc63-444c-84ee-f7463b7618e5", "type": "BoxZoomTool"}, {"id": "2b271825-3b94-4304-91bf-3d08d4131989", "type": "PreviewSaveTool"}, {"id": "a4ca4169-d134-4bc1-bba5-89de14ca6d6c", "type": "ResizeTool"}, {"id": "0e4e9ada-6ae8-4ed7-a478-d7b49ef18196", "type": "ResetTool"}, {"id": "69571a0d-ab41-45ed-ad3e-dcd5255b1147", "type": "HelpTool"}], "left": [{"id": "960a2911-6543-46a4-b85d-6e9ed168ee29", "type": "LinearAxis"}], "tool_events": {"id": "8e073098-005d-4ab6-8ccf-91f7ee7e465a", "type": "ToolEvents"}, "below": [{"id": "bfb3dcb6-297d-453b-9936-0adc72f35f14", "type": "LinearAxis"}], "right": [], "tags": [], "doc": null, "id": "59bce0b0-9352-47c4-b086-0d6cf947e66b", "title": "September Average Cloud Cover", "renderers": [{"id": "bfb3dcb6-297d-453b-9936-0adc72f35f14", "type": "LinearAxis"}, {"id": "62faeb34-2b3d-4619-afe0-a89aac29747b", "type": "Grid"}, {"id": "960a2911-6543-46a4-b85d-6e9ed168ee29", "type": "LinearAxis"}, {"id": "7c0f5b72-683e-4ed8-acfd-b70cd4c6db66", "type": "Grid"}, {"id": "cbeb15db-7cde-4590-bbc7-38afa88f3d28", "type": "Legend"}, {"id": "fb5d6738-449f-43cf-897f-3e41c41b1a06", "type": "GlyphRenderer"}, {"id": "af3df3c3-73e4-48fe-a28d-da8bea9eed5e", "type": "GlyphRenderer"}, {"id": "07b16bf5-6b17-4383-b5b9-3d3c68ca68bd", "type": "GlyphRenderer"}, {"id": "853c9cc4-e0cd-49b5-b631-8ef1fc71fbd2", "type": "GlyphRenderer"}], "x_range": {"id": "ad9f6ecb-320e-4525-8a8a-0d021d868287", "type": "DataRange1d"}, "above": [], "y_range": {"id": "f80c6a9b-e8a7-4328-8dd9-f662724c3db3", "type": "DataRange1d"}}}, {"id": "d8d61574-cc54-47c8-a59a-ab56b43065f8", "type": "BasicTickFormatter", "attributes": {"id": "d8d61574-cc54-47c8-a59a-ab56b43065f8", "doc": null, "tags": []}}, {"id": "853c9cc4-e0cd-49b5-b631-8ef1fc71fbd2", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "44dfa236-24d7-475e-a032-72d1bc8f191d", "type": "Line"}, "tags": [], "data_source": {"id": "ade16eb5-302a-4122-8ffc-23d81cc0913b", "type": "ColumnDataSource"}, "id": "853c9cc4-e0cd-49b5-b631-8ef1fc71fbd2", "glyph": {"id": "e7611fd3-2469-4421-8ffb-e5b4c21c6389", "type": "Line"}}}, {"id": "73c14396-fb07-47e8-a060-dfaab068c205", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "73c14396-fb07-47e8-a060-dfaab068c205", "data": {"y": [0.6203333333333333, 0.5426666666666666, 0.6256666666666668, 0.6793333333333333, 0.6166666666666666, 0.5653333333333332, 0.6893333333333334, 0.672, 0.514, 0.6556666666666667, 0.5693333333333334, 0.5216666666666666, 0.5286206896551725, 0.4739999999999999, 0.49699999999999994, 0.30033333333333334, 0.4596666666666666, 0.18799999999999997, 0.3950000000000001, 0.4036666666666667, 0.424, 0.4699999999999999, 0.39766666666666667, 0.0, 0.1581818181818182, 0.14639999999999997], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}];
        Bokeh.load_models(all_models);
        var plots = [{'modeltype': 'Plot', 'elementid': '9a405ee2-f650-4c4e-ac2b-b1b1b94d78d7', 'modelid': '59bce0b0-9352-47c4-b086-0d6cf947e66b'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="9a405ee2-f650-4c4e-ac2b-b1b1b94d78d7"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "0ec2035d-b00f-45d7-9469-b01dfb23342a", "type": "PreviewSaveTool", "attributes": {"doc": null, "id": "0ec2035d-b00f-45d7-9469-b01dfb23342a", "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "tags": []}}, {"id": "a022bffc-4c3a-4f3d-a23a-7955a0e6810c", "type": "Legend", "attributes": {"doc": null, "id": "a022bffc-4c3a-4f3d-a23a-7955a0e6810c", "legends": [["binghamton", [{"id": "8057e574-e761-4646-92e1-58b278cd699e", "type": "GlyphRenderer"}]], ["cary", [{"id": "255306bb-f28b-465a-b256-98500e904d36", "type": "GlyphRenderer"}]], ["nyc", [{"id": "265f9282-1e94-4bfc-8dfe-3eae39c62668", "type": "GlyphRenderer"}]], ["seattle", [{"id": "0ca69917-586d-4ebd-8d3c-ec571c44579e", "type": "GlyphRenderer"}]]], "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "tags": []}}, {"id": "0762a2bd-f115-49ee-9d3a-2161048c1383", "type": "BasicTickFormatter", "attributes": {"id": "0762a2bd-f115-49ee-9d3a-2161048c1383", "doc": null, "tags": []}}, {"id": "315931c5-36a7-4251-b704-1100498e63eb", "type": "BasicTickFormatter", "attributes": {"id": "315931c5-36a7-4251-b704-1100498e63eb", "doc": null, "tags": []}}, {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot", "attributes": {"extra_x_ranges": {}, "extra_y_ranges": {}, "tools": [{"id": "767b55da-cef8-4845-96ae-d34b398d367f", "type": "PanTool"}, {"id": "6e1ab38d-f43b-4ad0-8af9-6c7d369c83b3", "type": "WheelZoomTool"}, {"id": "0a32f4a9-00c0-4551-8755-de5f6473ac20", "type": "BoxZoomTool"}, {"id": "0ec2035d-b00f-45d7-9469-b01dfb23342a", "type": "PreviewSaveTool"}, {"id": "0cbd41a6-ba1d-497c-b3c5-9714917314c1", "type": "ResizeTool"}, {"id": "0520210a-323e-4464-9109-ec740ee7a161", "type": "ResetTool"}, {"id": "66a975c9-134d-4744-92fc-6d680733e186", "type": "HelpTool"}], "left": [{"id": "e781fc07-679b-4cc9-b49e-6610394c743c", "type": "LinearAxis"}], "tool_events": {"id": "75555f98-10ea-44bb-9a8d-ccf57bdb7199", "type": "ToolEvents"}, "below": [{"id": "d7a83d7a-980d-42bd-856a-aaae8c057c5e", "type": "LinearAxis"}], "right": [], "tags": [], "doc": null, "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "title": "October Average Cloud Cover", "renderers": [{"id": "d7a83d7a-980d-42bd-856a-aaae8c057c5e", "type": "LinearAxis"}, {"id": "d07ace9b-436b-492d-b3b5-6404ab8a6094", "type": "Grid"}, {"id": "e781fc07-679b-4cc9-b49e-6610394c743c", "type": "LinearAxis"}, {"id": "940c074a-beb9-4a14-8048-e8e9f45e9a53", "type": "Grid"}, {"id": "a022bffc-4c3a-4f3d-a23a-7955a0e6810c", "type": "Legend"}, {"id": "8057e574-e761-4646-92e1-58b278cd699e", "type": "GlyphRenderer"}, {"id": "255306bb-f28b-465a-b256-98500e904d36", "type": "GlyphRenderer"}, {"id": "265f9282-1e94-4bfc-8dfe-3eae39c62668", "type": "GlyphRenderer"}, {"id": "0ca69917-586d-4ebd-8d3c-ec571c44579e", "type": "GlyphRenderer"}], "x_range": {"id": "7e1778b5-5e27-46d3-9270-158dd201eefa", "type": "DataRange1d"}, "above": [], "y_range": {"id": "e2c1c877-4752-47df-bf78-f8149544d469", "type": "DataRange1d"}}}, {"id": "bda07a8b-eaa0-4429-8e69-f4090f1fab9e", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "bda07a8b-eaa0-4429-8e69-f4090f1fab9e", "data": {"y": [0.6132258064516128, 0.5522580645161289, 0.5525806451612902, 0.5851612903225807, 0.5409677419354838, 0.557741935483871, 0.5425806451612903, 0.5603225806451612, 0.5793548387096774, 0.5303225806451614, 0.5416129032258067, 0.44741935483870965, 0.6061290322580644, 0.48516129032258065, 0.5267741935483871, 0.6600000000000001, 0.45419354838709686, 0.4112903225806452, 0.27774193548387094, 0.529032258064516, 0.38451612903225796, 0.37999999999999995, 0.4125806451612903, 0.0, 0.12199999999999998, 0.1860869565217391], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "cd13359a-6fb1-41fe-ae23-d13dcba3c850", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#f4a582"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "cd13359a-6fb1-41fe-ae23-d13dcba3c850"}}, {"id": "255306bb-f28b-465a-b256-98500e904d36", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "46115385-6488-4dfd-bd42-0b5a95510825", "type": "Line"}, "tags": [], "data_source": {"id": "c92a1266-af3a-4084-8d3b-74b514b10427", "type": "ColumnDataSource"}, "id": "255306bb-f28b-465a-b256-98500e904d36", "glyph": {"id": "8612d519-a62c-46e2-992f-af5fb5f3b82e", "type": "Line"}}}, {"id": "8057e574-e761-4646-92e1-58b278cd699e", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "a864c756-5a1b-4248-ada0-53ab0b232e21", "type": "Line"}, "tags": [], "data_source": {"id": "e40d36b1-9e3b-495a-ac62-9eec8d1f8c48", "type": "ColumnDataSource"}, "id": "8057e574-e761-4646-92e1-58b278cd699e", "glyph": {"id": "e3ce8500-81e0-4ab6-b5d3-48e15f0b6d2c", "type": "Line"}}}, {"id": "0ca69917-586d-4ebd-8d3c-ec571c44579e", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "78e936e7-48e4-4d48-abf2-58954a45ee82", "type": "Line"}, "tags": [], "data_source": {"id": "fd8506b3-c6f1-4ca2-aef1-d59c4371fd60", "type": "ColumnDataSource"}, "id": "0ca69917-586d-4ebd-8d3c-ec571c44579e", "glyph": {"id": "366faf5b-1cb7-49e8-9e01-468699d08f8f", "type": "Line"}}}, {"id": "366faf5b-1cb7-49e8-9e01-468699d08f8f", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#ca0020"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "366faf5b-1cb7-49e8-9e01-468699d08f8f"}}, {"id": "7e1778b5-5e27-46d3-9270-158dd201eefa", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "7e1778b5-5e27-46d3-9270-158dd201eefa", "tags": [], "names": []}}, {"id": "a864c756-5a1b-4248-ada0-53ab0b232e21", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "a864c756-5a1b-4248-ada0-53ab0b232e21"}}, {"id": "e3ce8500-81e0-4ab6-b5d3-48e15f0b6d2c", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#0571b0"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "e3ce8500-81e0-4ab6-b5d3-48e15f0b6d2c"}}, {"id": "767b55da-cef8-4845-96ae-d34b398d367f", "type": "PanTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "767b55da-cef8-4845-96ae-d34b398d367f", "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "tags": []}}, {"id": "940c074a-beb9-4a14-8048-e8e9f45e9a53", "type": "Grid", "attributes": {"doc": null, "id": "940c074a-beb9-4a14-8048-e8e9f45e9a53", "ticker": {"id": "d36bcc03-481e-442d-be96-09ecf51ec1b7", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "tags": [], "dimension": 1}}, {"id": "8612d519-a62c-46e2-992f-af5fb5f3b82e", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#92c5de"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "8612d519-a62c-46e2-992f-af5fb5f3b82e"}}, {"id": "265f9282-1e94-4bfc-8dfe-3eae39c62668", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "1e701f5c-2f55-4d96-8d6e-c7a03b38b06f", "type": "Line"}, "tags": [], "data_source": {"id": "bda07a8b-eaa0-4429-8e69-f4090f1fab9e", "type": "ColumnDataSource"}, "id": "265f9282-1e94-4bfc-8dfe-3eae39c62668", "glyph": {"id": "cd13359a-6fb1-41fe-ae23-d13dcba3c850", "type": "Line"}}}, {"id": "0cbd41a6-ba1d-497c-b3c5-9714917314c1", "type": "ResizeTool", "attributes": {"doc": null, "id": "0cbd41a6-ba1d-497c-b3c5-9714917314c1", "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "tags": []}}, {"id": "d36bcc03-481e-442d-be96-09ecf51ec1b7", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "d36bcc03-481e-442d-be96-09ecf51ec1b7", "num_minor_ticks": 5}}, {"id": "0520210a-323e-4464-9109-ec740ee7a161", "type": "ResetTool", "attributes": {"doc": null, "id": "0520210a-323e-4464-9109-ec740ee7a161", "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "tags": []}}, {"id": "78e936e7-48e4-4d48-abf2-58954a45ee82", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "78e936e7-48e4-4d48-abf2-58954a45ee82"}}, {"id": "46115385-6488-4dfd-bd42-0b5a95510825", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "46115385-6488-4dfd-bd42-0b5a95510825"}}, {"id": "0a32f4a9-00c0-4551-8755-de5f6473ac20", "type": "BoxZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "0a32f4a9-00c0-4551-8755-de5f6473ac20", "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "tags": []}}, {"id": "c92a1266-af3a-4084-8d3b-74b514b10427", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "c92a1266-af3a-4084-8d3b-74b514b10427", "data": {"y": [0.4774193548387096, 0.4464516129032258, 0.4335483870967742, 0.5816129032258065, 0.617741935483871, 0.4867741935483871, 0.352258064516129, 0.4416129032258065, 0.4658064516129032, 0.4474193548387097, 0.27548387096774196, 0.18161290322580642, 0.6880645161290322, 0.4651612903225806, 0.6435483870967743, 0.44193548387096776, 0.445483870967742, 0.4283870967741935, 0.3738709677419354, 0.6009677419354839, 0.2887096774193549, 0.3587096774193549, 0.4964516129032257, 0.0, 0.10793103448275865, 0.09652173913043477], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "fd8506b3-c6f1-4ca2-aef1-d59c4371fd60", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "fd8506b3-c6f1-4ca2-aef1-d59c4371fd60", "data": {"y": [0.8332258064516128, 0.6358064516129033, 0.8170967741935483, 0.7663333333333332, 0.7164516129032257, 0.8035483870967741, 0.7674193548387097, 0.8623333333333334, 0.8263333333333335, 0.6738709677419353, 0.6925806451612904, 0.8170967741935484, 0.7103333333333333, 0.8200000000000002, 0.7067741935483871, 0.7706451612903225, 0.7074193548387097, 0.7637931034482758, 0.6458064516129032, 0.6433333333333333, 0.6564516129032257, 0.8354838709677419, 0.6399999999999999, 0.0, 0.14125000000000001, 0.15357142857142855], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "66a975c9-134d-4744-92fc-6d680733e186", "type": "HelpTool", "attributes": {"doc": null, "id": "66a975c9-134d-4744-92fc-6d680733e186", "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "tags": []}}, {"id": "e781fc07-679b-4cc9-b49e-6610394c743c", "type": "LinearAxis", "attributes": {"doc": null, "id": "e781fc07-679b-4cc9-b49e-6610394c743c", "tags": [], "axis_label": "Cloud Cover Percentage", "ticker": {"id": "d36bcc03-481e-442d-be96-09ecf51ec1b7", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "formatter": {"id": "315931c5-36a7-4251-b704-1100498e63eb", "type": "BasicTickFormatter"}}}, {"id": "6e1ab38d-f43b-4ad0-8af9-6c7d369c83b3", "type": "WheelZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "6e1ab38d-f43b-4ad0-8af9-6c7d369c83b3", "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "tags": []}}, {"id": "aa97ee67-74dd-4233-a0b9-24a20ba443b7", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "aa97ee67-74dd-4233-a0b9-24a20ba443b7", "num_minor_ticks": 5}}, {"id": "d7a83d7a-980d-42bd-856a-aaae8c057c5e", "type": "LinearAxis", "attributes": {"doc": null, "id": "d7a83d7a-980d-42bd-856a-aaae8c057c5e", "tags": [], "axis_label": "Year", "ticker": {"id": "aa97ee67-74dd-4233-a0b9-24a20ba443b7", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "formatter": {"id": "0762a2bd-f115-49ee-9d3a-2161048c1383", "type": "BasicTickFormatter"}}}, {"id": "1e701f5c-2f55-4d96-8d6e-c7a03b38b06f", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "1e701f5c-2f55-4d96-8d6e-c7a03b38b06f"}}, {"id": "e40d36b1-9e3b-495a-ac62-9eec8d1f8c48", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "e40d36b1-9e3b-495a-ac62-9eec8d1f8c48", "data": {"y": [0.6961290322580646, 0.6241935483870968, 0.6606451612903228, 0.6796774193548387, 0.6680645161290323, 0.6438709677419354, 0.4832258064516128, 0.4019354838709678, 0.5977419354838711, 0.46548387096774196, 0.4851612903225806, 0.4206451612903225, 0.6663333333333333, 0.4841935483870968, 0.5964516129032258, 0.6780645161290324, 0.5725806451612904, 0.49193548387096775, 0.3929032258064516, 0.7148387096774195, 0.5345161290322581, 0.6061290322580645, 0.7341935483870967, 0.0, 0.15312499999999998, 0.1165], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "d07ace9b-436b-492d-b3b5-6404ab8a6094", "type": "Grid", "attributes": {"doc": null, "id": "d07ace9b-436b-492d-b3b5-6404ab8a6094", "ticker": {"id": "aa97ee67-74dd-4233-a0b9-24a20ba443b7", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "d7f176e0-e632-41b4-8afd-2fa738e2632e", "type": "Plot"}, "tags": [], "dimension": 0}}, {"id": "75555f98-10ea-44bb-9a8d-ccf57bdb7199", "type": "ToolEvents", "attributes": {"doc": null, "tags": [], "id": "75555f98-10ea-44bb-9a8d-ccf57bdb7199", "geometries": []}}, {"id": "e2c1c877-4752-47df-bf78-f8149544d469", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "e2c1c877-4752-47df-bf78-f8149544d469", "tags": [], "names": []}}];
        Bokeh.load_models(all_models);
        var plots = [{'modeltype': 'Plot', 'elementid': '8b963c2b-3eb1-4b73-baf5-51cc6b77adc9', 'modelid': 'd7f176e0-e632-41b4-8afd-2fa738e2632e'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="8b963c2b-3eb1-4b73-baf5-51cc6b77adc9"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "ae930158-5b27-4860-b070-b66afe882f10", "type": "ResizeTool", "attributes": {"doc": null, "id": "ae930158-5b27-4860-b070-b66afe882f10", "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "tags": []}}, {"id": "9f56a786-f61c-4977-882c-b650093714ed", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "9f56a786-f61c-4977-882c-b650093714ed"}}, {"id": "408be208-3747-4f58-a14a-a2c5061055a6", "type": "WheelZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "408be208-3747-4f58-a14a-a2c5061055a6", "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "tags": []}}, {"id": "3bfc2b98-f7f5-447e-9d31-e79d5689a6b8", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#f4a582"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "3bfc2b98-f7f5-447e-9d31-e79d5689a6b8"}}, {"id": "4fdeb424-9a35-42f2-847e-129f660a39e4", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "4fdeb424-9a35-42f2-847e-129f660a39e4", "num_minor_ticks": 5}}, {"id": "6a141002-e3b8-4668-b28a-63d882de5efd", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "6a141002-e3b8-4668-b28a-63d882de5efd", "data": {"y": [0.7170000000000001, 0.8149999999999998, 0.8280000000000001, 0.7963333333333332, 0.7516666666666666, 0.8503333333333335, 0.7786666666666667, 0.7166666666666667, 0.5978571428571428, 0.632, 0.6456666666666667, 0.559655172413793, 0.7356666666666667, 0.5863333333333334, 0.6243333333333333, 0.5806666666666666, 0.5303333333333333, 0.5786206896551724, 0.7256666666666667, 0.5196666666666667, 0.5756666666666667, 0.3973333333333333, 0.47966666666666663, 0.0, 0.1725, 0.05611111111111111], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "182dff23-30dc-45dd-b704-dccc38a945ed", "type": "Legend", "attributes": {"doc": null, "id": "182dff23-30dc-45dd-b704-dccc38a945ed", "legends": [["binghamton", [{"id": "be5cfebe-b5f9-4431-8bc1-d60d2677555b", "type": "GlyphRenderer"}]], ["cary", [{"id": "6d596c88-e0a3-4ae8-85bc-797dd3a7be1c", "type": "GlyphRenderer"}]], ["nyc", [{"id": "5d2fc041-7c02-42dd-b546-44b8b8134c05", "type": "GlyphRenderer"}]], ["seattle", [{"id": "3a47193b-63db-4f1c-afa9-9c92f910356c", "type": "GlyphRenderer"}]]], "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "tags": []}}, {"id": "f660c4ae-2f32-48ae-96a6-4f4ac083d9be", "type": "HelpTool", "attributes": {"doc": null, "id": "f660c4ae-2f32-48ae-96a6-4f4ac083d9be", "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "tags": []}}, {"id": "df309b20-9ce2-4e07-bb7c-94a654471da0", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "df309b20-9ce2-4e07-bb7c-94a654471da0", "tags": [], "names": []}}, {"id": "3a47193b-63db-4f1c-afa9-9c92f910356c", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "47afb1aa-9902-4df9-97e6-95925a388cf5", "type": "Line"}, "tags": [], "data_source": {"id": "93c1c31f-713e-45dc-a82d-df942fd5653b", "type": "ColumnDataSource"}, "id": "3a47193b-63db-4f1c-afa9-9c92f910356c", "glyph": {"id": "2e41dce4-a21c-444b-877d-2383cb2b8de0", "type": "Line"}}}, {"id": "491399e9-f2a6-4a2d-8dfe-aa8251bd2c85", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "491399e9-f2a6-4a2d-8dfe-aa8251bd2c85"}}, {"id": "2e41dce4-a21c-444b-877d-2383cb2b8de0", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#ca0020"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "2e41dce4-a21c-444b-877d-2383cb2b8de0"}}, {"id": "f19655d3-fbb4-468e-bea6-d17d3ae40f31", "type": "Grid", "attributes": {"doc": null, "id": "f19655d3-fbb4-468e-bea6-d17d3ae40f31", "ticker": {"id": "5653333c-cc7c-4677-a80e-57c0af9e4ae7", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "tags": [], "dimension": 1}}, {"id": "5d2fc041-7c02-42dd-b546-44b8b8134c05", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "9f56a786-f61c-4977-882c-b650093714ed", "type": "Line"}, "tags": [], "data_source": {"id": "e7a0e4ea-a039-4eb3-8d69-9059eb7b069d", "type": "ColumnDataSource"}, "id": "5d2fc041-7c02-42dd-b546-44b8b8134c05", "glyph": {"id": "3bfc2b98-f7f5-447e-9d31-e79d5689a6b8", "type": "Line"}}}, {"id": "47afb1aa-9902-4df9-97e6-95925a388cf5", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "47afb1aa-9902-4df9-97e6-95925a388cf5"}}, {"id": "a9d48a05-2ede-4dac-910b-273fab910b82", "type": "PanTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "a9d48a05-2ede-4dac-910b-273fab910b82", "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "tags": []}}, {"id": "a0c4fe09-ab32-4899-a950-36de136bc33e", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#0571b0"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "a0c4fe09-ab32-4899-a950-36de136bc33e"}}, {"id": "d8dfafe5-4702-4dfb-a03e-b45712f4d720", "type": "PreviewSaveTool", "attributes": {"doc": null, "id": "d8dfafe5-4702-4dfb-a03e-b45712f4d720", "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "tags": []}}, {"id": "fefbbe2a-a32a-41fd-bd6d-12698df087c9", "type": "LinearAxis", "attributes": {"doc": null, "id": "fefbbe2a-a32a-41fd-bd6d-12698df087c9", "tags": [], "axis_label": "Cloud Cover Percentage", "ticker": {"id": "5653333c-cc7c-4677-a80e-57c0af9e4ae7", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "formatter": {"id": "493fe1a9-7522-455f-8b0f-aab5be0e0083", "type": "BasicTickFormatter"}}}, {"id": "6456d552-c6e2-4f90-86eb-7015a45f4548", "type": "Grid", "attributes": {"doc": null, "id": "6456d552-c6e2-4f90-86eb-7015a45f4548", "ticker": {"id": "4fdeb424-9a35-42f2-847e-129f660a39e4", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "tags": [], "dimension": 0}}, {"id": "493fe1a9-7522-455f-8b0f-aab5be0e0083", "type": "BasicTickFormatter", "attributes": {"id": "493fe1a9-7522-455f-8b0f-aab5be0e0083", "doc": null, "tags": []}}, {"id": "5653333c-cc7c-4677-a80e-57c0af9e4ae7", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "5653333c-cc7c-4677-a80e-57c0af9e4ae7", "num_minor_ticks": 5}}, {"id": "d551f4f8-e0f7-4f68-823b-a31d0d5daaab", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "d551f4f8-e0f7-4f68-823b-a31d0d5daaab", "data": {"y": [0.378, 0.5566666666666666, 0.6566666666666666, 0.5883333333333334, 0.593, 0.5199999999999999, 0.5883333333333334, 0.5673333333333334, 0.5425, 0.349, 0.5266666666666667, 0.32172413793103455, 0.4406666666666667, 0.5409999999999999, 0.48766666666666664, 0.4086666666666667, 0.4366666666666666, 0.397, 0.4636666666666666, 0.545, 0.36433333333333334, 0.37466666666666665, 0.40933333333333344, 0.0, 0.12291666666666667, 0.076], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "5c8d7158-91ce-468d-870c-a8ff69886a4c", "type": "BasicTickFormatter", "attributes": {"id": "5c8d7158-91ce-468d-870c-a8ff69886a4c", "doc": null, "tags": []}}, {"id": "93c1c31f-713e-45dc-a82d-df942fd5653b", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "93c1c31f-713e-45dc-a82d-df942fd5653b", "data": {"y": [0.9003333333333334, 0.8909999999999999, 0.8483333333333333, 0.721, 0.86, 0.8386666666666666, 0.8967857142857143, 0.732, 0.8892857142857143, 0.7903333333333333, 0.6796666666666665, 0.8365517241379311, 0.6855172413793104, 0.717, 0.8010344827586209, 0.844, 0.7473333333333333, 0.72, 0.734, 0.7739999999999999, 0.734, 0.6686666666666665, 0.7693333333333333, 0.0, 0.028181818181818183, 0.17384615384615387], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "9f26141f-d2f6-4b33-923b-528a696d8668", "type": "LinearAxis", "attributes": {"doc": null, "id": "9f26141f-d2f6-4b33-923b-528a696d8668", "tags": [], "axis_label": "Year", "ticker": {"id": "4fdeb424-9a35-42f2-847e-129f660a39e4", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "formatter": {"id": "5c8d7158-91ce-468d-870c-a8ff69886a4c", "type": "BasicTickFormatter"}}}, {"id": "3dd8322a-25d7-4ea2-ae8a-7de7b2574270", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "3dd8322a-25d7-4ea2-ae8a-7de7b2574270"}}, {"id": "fe6f592d-9161-4320-936b-a8481fe82707", "type": "BoxZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "fe6f592d-9161-4320-936b-a8481fe82707", "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "tags": []}}, {"id": "c93922fa-4ad9-43f4-b7a8-143787d02330", "type": "ResetTool", "attributes": {"doc": null, "id": "c93922fa-4ad9-43f4-b7a8-143787d02330", "plot": {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot"}, "tags": []}}, {"id": "382d0a3a-8752-4bd1-ad12-56d4cc8b629f", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#92c5de"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "382d0a3a-8752-4bd1-ad12-56d4cc8b629f"}}, {"id": "e7a0e4ea-a039-4eb3-8d69-9059eb7b069d", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "e7a0e4ea-a039-4eb3-8d69-9059eb7b069d", "data": {"y": [0.6086666666666666, 0.7286666666666667, 0.7336666666666666, 0.6786666666666665, 0.6093333333333333, 0.7603333333333335, 0.6406666666666666, 0.6883333333333334, 0.5896551724137931, 0.5860000000000001, 0.6826666666666666, 0.47586206896551725, 0.6889655172413793, 0.46068965517241384, 0.42499999999999993, 0.3893333333333333, 0.4190000000000001, 0.4589999999999999, 0.576, 0.4633333333333333, 0.30366666666666664, 0.27299999999999996, 0.5516666666666666, 0.0, 0.159375, 0.15850000000000003], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "6d596c88-e0a3-4ae8-85bc-797dd3a7be1c", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "3dd8322a-25d7-4ea2-ae8a-7de7b2574270", "type": "Line"}, "tags": [], "data_source": {"id": "d551f4f8-e0f7-4f68-823b-a31d0d5daaab", "type": "ColumnDataSource"}, "id": "6d596c88-e0a3-4ae8-85bc-797dd3a7be1c", "glyph": {"id": "382d0a3a-8752-4bd1-ad12-56d4cc8b629f", "type": "Line"}}}, {"id": "56e8366d-fd87-4184-8983-51d6637aad23", "type": "ToolEvents", "attributes": {"doc": null, "tags": [], "id": "56e8366d-fd87-4184-8983-51d6637aad23", "geometries": []}}, {"id": "be5cfebe-b5f9-4431-8bc1-d60d2677555b", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "491399e9-f2a6-4a2d-8dfe-aa8251bd2c85", "type": "Line"}, "tags": [], "data_source": {"id": "6a141002-e3b8-4668-b28a-63d882de5efd", "type": "ColumnDataSource"}, "id": "be5cfebe-b5f9-4431-8bc1-d60d2677555b", "glyph": {"id": "a0c4fe09-ab32-4899-a950-36de136bc33e", "type": "Line"}}}, {"subtype": "Figure", "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "type": "Plot", "attributes": {"extra_x_ranges": {}, "extra_y_ranges": {}, "tools": [{"id": "a9d48a05-2ede-4dac-910b-273fab910b82", "type": "PanTool"}, {"id": "408be208-3747-4f58-a14a-a2c5061055a6", "type": "WheelZoomTool"}, {"id": "fe6f592d-9161-4320-936b-a8481fe82707", "type": "BoxZoomTool"}, {"id": "d8dfafe5-4702-4dfb-a03e-b45712f4d720", "type": "PreviewSaveTool"}, {"id": "ae930158-5b27-4860-b070-b66afe882f10", "type": "ResizeTool"}, {"id": "c93922fa-4ad9-43f4-b7a8-143787d02330", "type": "ResetTool"}, {"id": "f660c4ae-2f32-48ae-96a6-4f4ac083d9be", "type": "HelpTool"}], "left": [{"id": "fefbbe2a-a32a-41fd-bd6d-12698df087c9", "type": "LinearAxis"}], "tool_events": {"id": "56e8366d-fd87-4184-8983-51d6637aad23", "type": "ToolEvents"}, "below": [{"id": "9f26141f-d2f6-4b33-923b-528a696d8668", "type": "LinearAxis"}], "right": [], "tags": [], "doc": null, "id": "6e2229f4-5116-426d-b2dd-779a826fc4bd", "title": "November Average Cloud Cover", "renderers": [{"id": "9f26141f-d2f6-4b33-923b-528a696d8668", "type": "LinearAxis"}, {"id": "6456d552-c6e2-4f90-86eb-7015a45f4548", "type": "Grid"}, {"id": "fefbbe2a-a32a-41fd-bd6d-12698df087c9", "type": "LinearAxis"}, {"id": "f19655d3-fbb4-468e-bea6-d17d3ae40f31", "type": "Grid"}, {"id": "182dff23-30dc-45dd-b704-dccc38a945ed", "type": "Legend"}, {"id": "be5cfebe-b5f9-4431-8bc1-d60d2677555b", "type": "GlyphRenderer"}, {"id": "6d596c88-e0a3-4ae8-85bc-797dd3a7be1c", "type": "GlyphRenderer"}, {"id": "5d2fc041-7c02-42dd-b546-44b8b8134c05", "type": "GlyphRenderer"}, {"id": "3a47193b-63db-4f1c-afa9-9c92f910356c", "type": "GlyphRenderer"}], "x_range": {"id": "86f8a90b-5ee0-43fc-a5aa-0a4314627d7e", "type": "DataRange1d"}, "above": [], "y_range": {"id": "df309b20-9ce2-4e07-bb7c-94a654471da0", "type": "DataRange1d"}}}, {"id": "86f8a90b-5ee0-43fc-a5aa-0a4314627d7e", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "86f8a90b-5ee0-43fc-a5aa-0a4314627d7e", "tags": [], "names": []}}];
        Bokeh.load_models(all_models);
        var plots = [{'modeltype': 'Plot', 'elementid': 'd6cf7ff5-8ad9-4bb0-bfc0-cbf365fd43e0', 'modelid': '6e2229f4-5116-426d-b2dd-779a826fc4bd'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="d6cf7ff5-8ad9-4bb0-bfc0-cbf365fd43e0"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Well, as it so happens it looks like there are some data issues. July's data is a bit sporadic, and 2013 seems to be missing from most months as well. I think really only two things can really be confirmed here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Seattle, specifically for the months of October and November, is in fact significantly more cloudy on average than are other cities&lt;/li&gt;
&lt;li&gt;All cities surveyed have seen average cloud cover decline over the months studied. There are data issues, but the trend seems clear.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let's now move from cloud cover data to looking at average rainfall chance.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[5]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;safe_precip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;precipProbability&amp;#39;&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;precipProbability&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;monthly_avg_precip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;dates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DatetimeIndex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;freq&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;D&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;closed&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;left&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;precip_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;safe_precip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forecasts_df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;currently&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt; &lt;span class="n"&gt;dates&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;precip_samples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;precip_vals&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="c1"&gt;# Ignore an issue with nanmean having all NaN values. We&amp;#39;ll discuss the data issues below.&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;warnings&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;catch_warnings&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
        &lt;span class="n"&gt;warnings&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;simplefilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;ignore&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nanmean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;precip_vals&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;precip_samples&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;city_avg_precip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;monthly_avg_precip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month_id&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;month_averages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;city_avg_cc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;city&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cities&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;{} Average Precipitation Chance&amp;quot;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
               &lt;span class="n"&gt;x_axis_label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Year&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="n"&gt;y_axis_label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Precipitation Chance Percentage&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;city&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cities&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;month_averages&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;]],&lt;/span&gt;
               &lt;span class="n"&gt;legend&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;city_colors&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "5d9119f0-bcbf-4bb1-a024-e0c0132770d2", "type": "PreviewSaveTool", "attributes": {"doc": null, "id": "5d9119f0-bcbf-4bb1-a024-e0c0132770d2", "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "tags": []}}, {"id": "f2343843-bfde-47a9-a346-bb17c1854f2e", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "f2343843-bfde-47a9-a346-bb17c1854f2e", "tags": [], "names": []}}, {"id": "1e0564f7-4457-43a4-aa84-7d1c4fa862d9", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "1e0564f7-4457-43a4-aa84-7d1c4fa862d9", "tags": [], "names": []}}, {"id": "81c82739-5b41-42cf-96da-e65a31a05ad7", "type": "ResetTool", "attributes": {"doc": null, "id": "81c82739-5b41-42cf-96da-e65a31a05ad7", "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "tags": []}}, {"id": "794669ac-162d-4bb9-8a31-a11b9994eda1", "type": "LinearAxis", "attributes": {"doc": null, "id": "794669ac-162d-4bb9-8a31-a11b9994eda1", "tags": [], "axis_label": "Precipitation Chance Percentage", "ticker": {"id": "8331c8f9-2fdd-4938-9969-a75e45d3f6a5", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "formatter": {"id": "1e86f20e-7160-4558-946c-9be53dd63a24", "type": "BasicTickFormatter"}}}, {"id": "d01f8a75-a4e6-4554-b3cf-c407bbfb4930", "type": "Grid", "attributes": {"doc": null, "id": "d01f8a75-a4e6-4554-b3cf-c407bbfb4930", "ticker": {"id": "34979a59-447d-42e0-a09e-9a1414417daa", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "tags": [], "dimension": 0}}, {"id": "a2d0980b-c635-4784-bfe8-8320ab2e987d", "type": "ResizeTool", "attributes": {"doc": null, "id": "a2d0980b-c635-4784-bfe8-8320ab2e987d", "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "tags": []}}, {"id": "b4a32b2e-e09f-4b1c-834d-38fefd249c19", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "f8e6a166-ef2d-4248-bcf5-ce698663d27c", "type": "Line"}, "tags": [], "data_source": {"id": "44d018fb-8fe4-48de-b18a-4e87d84f4738", "type": "ColumnDataSource"}, "id": "b4a32b2e-e09f-4b1c-834d-38fefd249c19", "glyph": {"id": "836f11b3-b8a2-46ac-bd77-f74ece21bb2c", "type": "Line"}}}, {"id": "44d018fb-8fe4-48de-b18a-4e87d84f4738", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "44d018fb-8fe4-48de-b18a-4e87d84f4738", "data": {"y": [0.42903225806451617, 0.5716129032258064, 0.6193548387096776, 0.8848387096774194, 0.5203225806451612, 0.5432258064516129, "NaN", 0.6319354838709678, 0.7064516129032258, 0.5496774193548387, 0.7264516129032259, 0.6538709677419355, 0.6093548387096774, 0.41032258064516125, 0.5919354838709677, 0.436, 0.512258064516129, 0.45225806451612904, 0.5377419354838711, 0.3670967741935484, 0.6435483870967742, 0.5696774193548387, 0.6587096774193549, 0.5854838709677419, 0.05368421052631579, 0.03944444444444444], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "ff8023a4-54cd-4571-bb71-bf1bccade93d", "type": "ToolEvents", "attributes": {"doc": null, "tags": [], "id": "ff8023a4-54cd-4571-bb71-bf1bccade93d", "geometries": []}}, {"id": "174526b2-7107-45f0-9ae3-03e3b0da7e63", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "174526b2-7107-45f0-9ae3-03e3b0da7e63", "data": {"y": [0.7206451612903227, 0.6683870967741934, 0.6487096774193548, 0.554516129032258, 0.6319354838709679, 0.635483870967742, 0.6541379310344827, 0.5693548387096775, 0.6058064516129031, 0.5593548387096773, 0.6693548387096774, 0.47322580645161294, 0.4758064516129033, 0.3793548387096774, 0.5467741935483871, 0.3793548387096775, 0.21290322580645157, 0.24935483870967737, 0.21096774193548384, 0.26161290322580644, 0.2670967741935484, 0.15193548387096772, 0.32064516129032256, 0.5935483870967742, 0.17190476190476192, 0.16478260869565217], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "34979a59-447d-42e0-a09e-9a1414417daa", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "34979a59-447d-42e0-a09e-9a1414417daa", "num_minor_ticks": 5}}, {"id": "01648c14-d99c-4559-b30c-ceaabbfd0697", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "01648c14-d99c-4559-b30c-ceaabbfd0697", "data": {"y": [0.5335483870967742, 0.5903225806451613, 0.4796774193548388, 0.43774193548387097, 0.5967741935483871, 0.47548387096774186, 0.6033333333333334, 0.5216129032258064, 0.5816129032258064, 0.5896774193548387, 0.6803225806451614, 0.7035483870967741, 0.42709677419354836, 0.516774193548387, 0.43096774193548393, 0.4374193548387097, 0.32032258064516134, 0.39967741935483875, 0.375483870967742, 0.5061290322580646, 0.4625806451612904, 0.3635483870967742, 0.4838709677419355, 0.6041935483870967, 0.22565217391304346, 0.1603448275862069], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "424ebf07-03b3-4590-8bda-ec17ffbcffdc", "type": "PanTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "424ebf07-03b3-4590-8bda-ec17ffbcffdc", "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "tags": []}}, {"id": "06c0e35f-6323-4fde-ba4b-b79102e7b543", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "06c0e35f-6323-4fde-ba4b-b79102e7b543"}}, {"id": "cb2ca3ff-d976-4ee3-a067-fc1f7d44f48c", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "cb2ca3ff-d976-4ee3-a067-fc1f7d44f48c"}}, {"id": "ec69fff8-68ae-4fe9-a587-122575a2e729", "type": "Grid", "attributes": {"doc": null, "id": "ec69fff8-68ae-4fe9-a587-122575a2e729", "ticker": {"id": "8331c8f9-2fdd-4938-9969-a75e45d3f6a5", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "tags": [], "dimension": 1}}, {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot", "attributes": {"extra_x_ranges": {}, "extra_y_ranges": {}, "tools": [{"id": "424ebf07-03b3-4590-8bda-ec17ffbcffdc", "type": "PanTool"}, {"id": "748db56e-f574-40be-8ea6-04df36a0b6fe", "type": "WheelZoomTool"}, {"id": "752ec72a-c726-4297-aefb-29b2b9bb3c12", "type": "BoxZoomTool"}, {"id": "5d9119f0-bcbf-4bb1-a024-e0c0132770d2", "type": "PreviewSaveTool"}, {"id": "a2d0980b-c635-4784-bfe8-8320ab2e987d", "type": "ResizeTool"}, {"id": "81c82739-5b41-42cf-96da-e65a31a05ad7", "type": "ResetTool"}, {"id": "28c55b57-755b-49cb-b5ed-8131eac451df", "type": "HelpTool"}], "left": [{"id": "794669ac-162d-4bb9-8a31-a11b9994eda1", "type": "LinearAxis"}], "tool_events": {"id": "ff8023a4-54cd-4571-bb71-bf1bccade93d", "type": "ToolEvents"}, "below": [{"id": "4053febd-1ee0-4de0-884f-d888bce81b64", "type": "LinearAxis"}], "right": [], "tags": [], "doc": null, "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "title": "July Average Precipitation Chance", "renderers": [{"id": "4053febd-1ee0-4de0-884f-d888bce81b64", "type": "LinearAxis"}, {"id": "d01f8a75-a4e6-4554-b3cf-c407bbfb4930", "type": "Grid"}, {"id": "794669ac-162d-4bb9-8a31-a11b9994eda1", "type": "LinearAxis"}, {"id": "ec69fff8-68ae-4fe9-a587-122575a2e729", "type": "Grid"}, {"id": "000c5734-588c-4dcd-8fb2-5b399385f286", "type": "Legend"}, {"id": "dec433f8-5bdf-4601-8b93-af64d4fab92e", "type": "GlyphRenderer"}, {"id": "b46dc7ce-b928-4e45-a5ea-3e9730c5d275", "type": "GlyphRenderer"}, {"id": "95481ae8-a570-46be-a14f-438a3d375e69", "type": "GlyphRenderer"}, {"id": "b4a32b2e-e09f-4b1c-834d-38fefd249c19", "type": "GlyphRenderer"}], "x_range": {"id": "1e0564f7-4457-43a4-aa84-7d1c4fa862d9", "type": "DataRange1d"}, "above": [], "y_range": {"id": "f2343843-bfde-47a9-a346-bb17c1854f2e", "type": "DataRange1d"}}}, {"id": "000c5734-588c-4dcd-8fb2-5b399385f286", "type": "Legend", "attributes": {"doc": null, "id": "000c5734-588c-4dcd-8fb2-5b399385f286", "legends": [["binghamton", [{"id": "dec433f8-5bdf-4601-8b93-af64d4fab92e", "type": "GlyphRenderer"}]], ["cary", [{"id": "b46dc7ce-b928-4e45-a5ea-3e9730c5d275", "type": "GlyphRenderer"}]], ["nyc", [{"id": "95481ae8-a570-46be-a14f-438a3d375e69", "type": "GlyphRenderer"}]], ["seattle", [{"id": "b4a32b2e-e09f-4b1c-834d-38fefd249c19", "type": "GlyphRenderer"}]]], "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "tags": []}}, {"id": "752ec72a-c726-4297-aefb-29b2b9bb3c12", "type": "BoxZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "752ec72a-c726-4297-aefb-29b2b9bb3c12", "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "tags": []}}, {"id": "8331c8f9-2fdd-4938-9969-a75e45d3f6a5", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "8331c8f9-2fdd-4938-9969-a75e45d3f6a5", "num_minor_ticks": 5}}, {"id": "95481ae8-a570-46be-a14f-438a3d375e69", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "06c0e35f-6323-4fde-ba4b-b79102e7b543", "type": "Line"}, "tags": [], "data_source": {"id": "174526b2-7107-45f0-9ae3-03e3b0da7e63", "type": "ColumnDataSource"}, "id": "95481ae8-a570-46be-a14f-438a3d375e69", "glyph": {"id": "af9e70b1-fc12-44ed-ab55-0e1b4ae48e2e", "type": "Line"}}}, {"id": "748db56e-f574-40be-8ea6-04df36a0b6fe", "type": "WheelZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "748db56e-f574-40be-8ea6-04df36a0b6fe", "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "tags": []}}, {"id": "2c9d9aae-80be-4d54-913f-b6331c5c134d", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "2c9d9aae-80be-4d54-913f-b6331c5c134d", "data": {"y": [0.7132258064516128, 0.6416129032258064, 0.762258064516129, 0.6109677419354839, 0.7029032258064516, 0.7199999999999999, "NaN", 0.3483870967741935, 0.3890322580645161, 0.329032258064516, 0.4996774193548387, 0.4329032258064517, 0.354516129032258, 0.4774193548387097, 0.5548387096774193, 0.3645161290322581, 0.3722580645161291, 0.37935483870967734, 0.41838709677419345, 0.36064516129032254, 0.44967741935483857, 0.27419354838709675, 0.41903225806451616, 0.5132258064516128, 0.19090909090909092, 0.15923076923076923], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "836f11b3-b8a2-46ac-bd77-f74ece21bb2c", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#ca0020"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "836f11b3-b8a2-46ac-bd77-f74ece21bb2c"}}, {"id": "a3e6d14b-dd51-4c89-8e89-771317b6ead2", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#92c5de"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "a3e6d14b-dd51-4c89-8e89-771317b6ead2"}}, {"id": "dec433f8-5bdf-4601-8b93-af64d4fab92e", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "b368e339-cf75-4f9f-a2c1-921693fc39c7", "type": "Line"}, "tags": [], "data_source": {"id": "2c9d9aae-80be-4d54-913f-b6331c5c134d", "type": "ColumnDataSource"}, "id": "dec433f8-5bdf-4601-8b93-af64d4fab92e", "glyph": {"id": "3258fb09-7bdf-4af5-9156-b38273df2954", "type": "Line"}}}, {"id": "b368e339-cf75-4f9f-a2c1-921693fc39c7", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "b368e339-cf75-4f9f-a2c1-921693fc39c7"}}, {"id": "4053febd-1ee0-4de0-884f-d888bce81b64", "type": "LinearAxis", "attributes": {"doc": null, "id": "4053febd-1ee0-4de0-884f-d888bce81b64", "tags": [], "axis_label": "Year", "ticker": {"id": "34979a59-447d-42e0-a09e-9a1414417daa", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "formatter": {"id": "3c1f7b46-857e-4dd4-b610-67aa5706f633", "type": "BasicTickFormatter"}}}, {"id": "af9e70b1-fc12-44ed-ab55-0e1b4ae48e2e", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#f4a582"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "af9e70b1-fc12-44ed-ab55-0e1b4ae48e2e"}}, {"id": "f8e6a166-ef2d-4248-bcf5-ce698663d27c", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "f8e6a166-ef2d-4248-bcf5-ce698663d27c"}}, {"id": "3258fb09-7bdf-4af5-9156-b38273df2954", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#0571b0"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "3258fb09-7bdf-4af5-9156-b38273df2954"}}, {"id": "1e86f20e-7160-4558-946c-9be53dd63a24", "type": "BasicTickFormatter", "attributes": {"id": "1e86f20e-7160-4558-946c-9be53dd63a24", "doc": null, "tags": []}}, {"id": "28c55b57-755b-49cb-b5ed-8131eac451df", "type": "HelpTool", "attributes": {"doc": null, "id": "28c55b57-755b-49cb-b5ed-8131eac451df", "plot": {"subtype": "Figure", "id": "9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01", "type": "Plot"}, "tags": []}}, {"id": "b46dc7ce-b928-4e45-a5ea-3e9730c5d275", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "cb2ca3ff-d976-4ee3-a067-fc1f7d44f48c", "type": "Line"}, "tags": [], "data_source": {"id": "01648c14-d99c-4559-b30c-ceaabbfd0697", "type": "ColumnDataSource"}, "id": "b46dc7ce-b928-4e45-a5ea-3e9730c5d275", "glyph": {"id": "a3e6d14b-dd51-4c89-8e89-771317b6ead2", "type": "Line"}}}, {"id": "3c1f7b46-857e-4dd4-b610-67aa5706f633", "type": "BasicTickFormatter", "attributes": {"id": "3c1f7b46-857e-4dd4-b610-67aa5706f633", "doc": null, "tags": []}}];
        Bokeh.load_models(all_models);
        var plots = [{'modeltype': 'Plot', 'elementid': '56f11ba8-4658-474c-acdb-8d582f608ff9', 'modelid': '9fd9aa8a-20f6-4bb4-aaf7-aa750ad73c01'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="56f11ba8-4658-474c-acdb-8d582f608ff9"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "8cfeaa5a-7e7e-4b31-a914-29f27d508f30", "type": "BasicTickFormatter", "attributes": {"id": "8cfeaa5a-7e7e-4b31-a914-29f27d508f30", "doc": null, "tags": []}}, {"id": "f4c21229-c04a-43bb-afe3-83b977b1c7ef", "type": "LinearAxis", "attributes": {"doc": null, "id": "f4c21229-c04a-43bb-afe3-83b977b1c7ef", "tags": [], "axis_label": "Year", "ticker": {"id": "3f125d25-265b-43a0-a48b-e6805edee8b2", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "formatter": {"id": "8cfeaa5a-7e7e-4b31-a914-29f27d508f30", "type": "BasicTickFormatter"}}}, {"id": "d31129c4-f3cd-49e2-98f7-f3906a95d03e", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#f4a582"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "d31129c4-f3cd-49e2-98f7-f3906a95d03e"}}, {"id": "9c833ae0-d8c0-4706-8000-24f9944883e1", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "9bda1b17-a795-40c4-9c58-be58c2d6c9eb", "type": "Line"}, "tags": [], "data_source": {"id": "eb42c218-be57-461f-9c51-89ff68a70dc0", "type": "ColumnDataSource"}, "id": "9c833ae0-d8c0-4706-8000-24f9944883e1", "glyph": {"id": "427e8f6e-cde7-4e47-bfd9-b25f34347cf5", "type": "Line"}}}, {"id": "45d924c7-6b68-42d6-b7fe-5a8b0a0e5636", "type": "BasicTickFormatter", "attributes": {"id": "45d924c7-6b68-42d6-b7fe-5a8b0a0e5636", "doc": null, "tags": []}}, {"id": "8465ede4-1044-4d75-8c6d-512cbf59eda3", "type": "Legend", "attributes": {"doc": null, "id": "8465ede4-1044-4d75-8c6d-512cbf59eda3", "legends": [["binghamton", [{"id": "a9d23825-94f6-4eaf-b12a-19d58ca0ba6d", "type": "GlyphRenderer"}]], ["cary", [{"id": "03899843-afcd-4ea0-a7e1-20c25bbfbc60", "type": "GlyphRenderer"}]], ["nyc", [{"id": "1b0be0a1-c7bb-40fe-8cf9-af14f203dc86", "type": "GlyphRenderer"}]], ["seattle", [{"id": "9c833ae0-d8c0-4706-8000-24f9944883e1", "type": "GlyphRenderer"}]]], "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "tags": []}}, {"id": "a9d23825-94f6-4eaf-b12a-19d58ca0ba6d", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "7fd94bb5-9c95-40c0-8372-1babdc213720", "type": "Line"}, "tags": [], "data_source": {"id": "20b86354-3c30-4605-b245-066b13472013", "type": "ColumnDataSource"}, "id": "a9d23825-94f6-4eaf-b12a-19d58ca0ba6d", "glyph": {"id": "c3ffb219-e131-41cc-aa7a-fe1b08af9910", "type": "Line"}}}, {"id": "a7286b3e-8d7f-4550-b0f9-10390820fc01", "type": "ResetTool", "attributes": {"doc": null, "id": "a7286b3e-8d7f-4550-b0f9-10390820fc01", "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "tags": []}}, {"id": "c22baa21-77b3-4422-b556-54732851776b", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "c22baa21-77b3-4422-b556-54732851776b"}}, {"id": "c2a04f87-246a-4460-8cf2-7ee249b40818", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "c2a04f87-246a-4460-8cf2-7ee249b40818", "data": {"y": [0.6183870967741935, 0.5674193548387096, 0.5925806451612904, 0.5725806451612903, 0.6335483870967743, 0.4732258064516129, 0.581, 0.588709677419355, 0.5690000000000001, 0.6354838709677418, 0.6274193548387096, 0.547741935483871, 0.5241935483870968, 0.43225806451612897, 0.4751612903225806, 0.34677419354838707, 0.35516129032258065, 0.30866666666666664, 0.31483870967741934, 0.38709677419354843, 0.4303225806451612, 0.3333333333333333, 0.2703225806451613, 0.0, 0.17800000000000002, 0.1689655172413793], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "4ad19f98-ae0e-464e-a4e4-d613c7fe13b2", "type": "PreviewSaveTool", "attributes": {"doc": null, "id": "4ad19f98-ae0e-464e-a4e4-d613c7fe13b2", "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "tags": []}}, {"id": "7fd94bb5-9c95-40c0-8372-1babdc213720", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "7fd94bb5-9c95-40c0-8372-1babdc213720"}}, {"id": "eb42c218-be57-461f-9c51-89ff68a70dc0", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "eb42c218-be57-461f-9c51-89ff68a70dc0", "data": {"y": [0.6993548387096774, 0.6167741935483871, 0.5538709677419356, 0.6629032258064516, 0.5548387096774193, 0.6132258064516127, 0.776, 0.5329032258064517, 0.4423333333333333, 0.6799999999999999, 0.6809677419354838, 0.6583870967741937, 0.5341935483870969, 0.5141935483870967, 0.6645161290322581, 0.5593548387096774, 0.4729032258064516, 0.6303333333333333, 0.5448387096774193, 0.6329032258064516, 0.6458064516129032, 0.5526666666666666, 0.4745161290322581, 0.0, 0.069375, 0.08526315789473685], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot", "attributes": {"extra_x_ranges": {}, "extra_y_ranges": {}, "tools": [{"id": "e0b9572e-f365-4529-9683-c1b81e0bb2b8", "type": "PanTool"}, {"id": "7c829505-bb40-478d-8c64-5c51105ab664", "type": "WheelZoomTool"}, {"id": "4f76e711-b138-4ee8-a924-e68087b5968d", "type": "BoxZoomTool"}, {"id": "4ad19f98-ae0e-464e-a4e4-d613c7fe13b2", "type": "PreviewSaveTool"}, {"id": "a0eebae6-5cae-4228-b5fd-b203448ced5f", "type": "ResizeTool"}, {"id": "a7286b3e-8d7f-4550-b0f9-10390820fc01", "type": "ResetTool"}, {"id": "94906952-8edf-49a4-9580-9f6a68ce485a", "type": "HelpTool"}], "left": [{"id": "fd835bee-4021-4240-b51c-7bd9635d4df0", "type": "LinearAxis"}], "tool_events": {"id": "b41ca096-49f7-440f-a186-31cb98bf20c6", "type": "ToolEvents"}, "below": [{"id": "f4c21229-c04a-43bb-afe3-83b977b1c7ef", "type": "LinearAxis"}], "right": [], "tags": [], "doc": null, "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "title": "August Average Precipitation Chance", "renderers": [{"id": "f4c21229-c04a-43bb-afe3-83b977b1c7ef", "type": "LinearAxis"}, {"id": "4df4fc88-f92b-4ec9-bcd4-220c79f27d59", "type": "Grid"}, {"id": "fd835bee-4021-4240-b51c-7bd9635d4df0", "type": "LinearAxis"}, {"id": "95bb0bc2-2d6e-4e21-92c2-d3a64afaabb1", "type": "Grid"}, {"id": "8465ede4-1044-4d75-8c6d-512cbf59eda3", "type": "Legend"}, {"id": "a9d23825-94f6-4eaf-b12a-19d58ca0ba6d", "type": "GlyphRenderer"}, {"id": "03899843-afcd-4ea0-a7e1-20c25bbfbc60", "type": "GlyphRenderer"}, {"id": "1b0be0a1-c7bb-40fe-8cf9-af14f203dc86", "type": "GlyphRenderer"}, {"id": "9c833ae0-d8c0-4706-8000-24f9944883e1", "type": "GlyphRenderer"}], "x_range": {"id": "fde8083d-1e0c-4fde-a0ea-a7a360d03052", "type": "DataRange1d"}, "above": [], "y_range": {"id": "3ac45d12-ffe2-4aef-b0f8-05231c852cce", "type": "DataRange1d"}}}, {"id": "95bb0bc2-2d6e-4e21-92c2-d3a64afaabb1", "type": "Grid", "attributes": {"doc": null, "id": "95bb0bc2-2d6e-4e21-92c2-d3a64afaabb1", "ticker": {"id": "9aec0831-6a36-4a9b-9e96-f485662bb59e", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "tags": [], "dimension": 1}}, {"id": "fb6814e1-41f4-43d9-94f3-640c0e69569e", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#92c5de"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "fb6814e1-41f4-43d9-94f3-640c0e69569e"}}, {"id": "b41ca096-49f7-440f-a186-31cb98bf20c6", "type": "ToolEvents", "attributes": {"doc": null, "tags": [], "id": "b41ca096-49f7-440f-a186-31cb98bf20c6", "geometries": []}}, {"id": "427e8f6e-cde7-4e47-bfd9-b25f34347cf5", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#ca0020"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "427e8f6e-cde7-4e47-bfd9-b25f34347cf5"}}, {"id": "03899843-afcd-4ea0-a7e1-20c25bbfbc60", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "c22baa21-77b3-4422-b556-54732851776b", "type": "Line"}, "tags": [], "data_source": {"id": "9628bc0b-b3eb-42f5-848a-e27fd3f70857", "type": "ColumnDataSource"}, "id": "03899843-afcd-4ea0-a7e1-20c25bbfbc60", "glyph": {"id": "fb6814e1-41f4-43d9-94f3-640c0e69569e", "type": "Line"}}}, {"id": "20b86354-3c30-4605-b245-066b13472013", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "20b86354-3c30-4605-b245-066b13472013", "data": {"y": [0.6529032258064517, 0.6212903225806452, 0.6741935483870969, 0.7296774193548388, 0.7429032258064515, 0.5577419354838709, 0.526, 0.48741935483870963, 0.2990322580645161, 0.503225806451613, 0.4893548387096774, 0.37322580645161285, 0.3796774193548388, 0.47580645161290325, 0.5470967741935484, 0.44870967741935486, 0.3983870967741936, 0.3309999999999999, 0.397741935483871, 0.4961290322580646, 0.4716129032258064, 0.5163333333333333, 0.4299999999999999, 0.0, 0.16894736842105265, 0.2011538461538461], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "7c829505-bb40-478d-8c64-5c51105ab664", "type": "WheelZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "7c829505-bb40-478d-8c64-5c51105ab664", "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "tags": []}}, {"id": "fde8083d-1e0c-4fde-a0ea-a7a360d03052", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "fde8083d-1e0c-4fde-a0ea-a7a360d03052", "tags": [], "names": []}}, {"id": "3ac45d12-ffe2-4aef-b0f8-05231c852cce", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "3ac45d12-ffe2-4aef-b0f8-05231c852cce", "tags": [], "names": []}}, {"id": "1b0be0a1-c7bb-40fe-8cf9-af14f203dc86", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "7e56a422-ca67-4bc9-bee8-4d4ac0fc7478", "type": "Line"}, "tags": [], "data_source": {"id": "c2a04f87-246a-4460-8cf2-7ee249b40818", "type": "ColumnDataSource"}, "id": "1b0be0a1-c7bb-40fe-8cf9-af14f203dc86", "glyph": {"id": "d31129c4-f3cd-49e2-98f7-f3906a95d03e", "type": "Line"}}}, {"id": "9628bc0b-b3eb-42f5-848a-e27fd3f70857", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "9628bc0b-b3eb-42f5-848a-e27fd3f70857", "data": {"y": [0.6532258064516128, 0.6990322580645162, 0.6735483870967741, 0.5064516129032258, 0.5329032258064517, 0.5306451612903227, 0.5311111111111111, 0.48516129032258065, 0.5106451612903226, 0.6361290322580646, 0.5535483870967742, 0.40419354838709676, 0.4232258064516129, 0.4661290322580645, 0.5380645161290323, 0.40709677419354834, 0.44677419354838716, 0.3223333333333334, 0.44677419354838716, 0.537741935483871, 0.49064516129032254, 0.364, 0.5296774193548387, 0.0, 0.18809523809523812, 0.16185185185185186], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "e0b9572e-f365-4529-9683-c1b81e0bb2b8", "type": "PanTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "e0b9572e-f365-4529-9683-c1b81e0bb2b8", "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "tags": []}}, {"id": "a0eebae6-5cae-4228-b5fd-b203448ced5f", "type": "ResizeTool", "attributes": {"doc": null, "id": "a0eebae6-5cae-4228-b5fd-b203448ced5f", "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "tags": []}}, {"id": "9bda1b17-a795-40c4-9c58-be58c2d6c9eb", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "9bda1b17-a795-40c4-9c58-be58c2d6c9eb"}}, {"id": "c3ffb219-e131-41cc-aa7a-fe1b08af9910", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#0571b0"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "c3ffb219-e131-41cc-aa7a-fe1b08af9910"}}, {"id": "fd835bee-4021-4240-b51c-7bd9635d4df0", "type": "LinearAxis", "attributes": {"doc": null, "id": "fd835bee-4021-4240-b51c-7bd9635d4df0", "tags": [], "axis_label": "Precipitation Chance Percentage", "ticker": {"id": "9aec0831-6a36-4a9b-9e96-f485662bb59e", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "formatter": {"id": "45d924c7-6b68-42d6-b7fe-5a8b0a0e5636", "type": "BasicTickFormatter"}}}, {"id": "4f76e711-b138-4ee8-a924-e68087b5968d", "type": "BoxZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "4f76e711-b138-4ee8-a924-e68087b5968d", "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "tags": []}}, {"id": "7e56a422-ca67-4bc9-bee8-4d4ac0fc7478", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "7e56a422-ca67-4bc9-bee8-4d4ac0fc7478"}}, {"id": "9aec0831-6a36-4a9b-9e96-f485662bb59e", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "9aec0831-6a36-4a9b-9e96-f485662bb59e", "num_minor_ticks": 5}}, {"id": "94906952-8edf-49a4-9580-9f6a68ce485a", "type": "HelpTool", "attributes": {"doc": null, "id": "94906952-8edf-49a4-9580-9f6a68ce485a", "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "tags": []}}, {"id": "4df4fc88-f92b-4ec9-bcd4-220c79f27d59", "type": "Grid", "attributes": {"doc": null, "id": "4df4fc88-f92b-4ec9-bcd4-220c79f27d59", "ticker": {"id": "3f125d25-265b-43a0-a48b-e6805edee8b2", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "25cba7f1-673b-4421-b96e-7f752c459bbf", "type": "Plot"}, "tags": [], "dimension": 0}}, {"id": "3f125d25-265b-43a0-a48b-e6805edee8b2", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "3f125d25-265b-43a0-a48b-e6805edee8b2", "num_minor_ticks": 5}}];
        Bokeh.load_models(all_models);
        var plots = [{'modeltype': 'Plot', 'elementid': '3faf01ac-98d4-485c-b8fe-4eb2b75c6848', 'modelid': '25cba7f1-673b-4421-b96e-7f752c459bbf'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="3faf01ac-98d4-485c-b8fe-4eb2b75c6848"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "4f659e25-7cb5-4379-9a53-009cac7ac81e", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "4f659e25-7cb5-4379-9a53-009cac7ac81e"}}, {"id": "0ee1d186-7b25-41c6-b272-a6806b096458", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "0ee1d186-7b25-41c6-b272-a6806b096458"}}, {"id": "bb535d98-078d-4cf9-aab1-285c94d3e005", "type": "PanTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "bb535d98-078d-4cf9-aab1-285c94d3e005", "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "tags": []}}, {"id": "c300e456-02f5-4b06-965c-8d068d197d17", "type": "Grid", "attributes": {"doc": null, "id": "c300e456-02f5-4b06-965c-8d068d197d17", "ticker": {"id": "47840619-d51a-47e7-a4c9-66470857f424", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "tags": [], "dimension": 1}}, {"id": "9fd05629-7543-4b36-afb1-2c18aad4fe5d", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#0571b0"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "9fd05629-7543-4b36-afb1-2c18aad4fe5d"}}, {"id": "a7267d3a-1d7a-4550-90d7-40a8e416e1f4", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "a7267d3a-1d7a-4550-90d7-40a8e416e1f4"}}, {"id": "7a31c9ad-57f4-4e53-bf8e-3fa488c22ee0", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#f4a582"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "7a31c9ad-57f4-4e53-bf8e-3fa488c22ee0"}}, {"id": "35d98fe6-eda2-4ebf-89f7-71d7c909191a", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "0ee1d186-7b25-41c6-b272-a6806b096458", "type": "Line"}, "tags": [], "data_source": {"id": "833018f4-752a-42ad-8321-c2abec916859", "type": "ColumnDataSource"}, "id": "35d98fe6-eda2-4ebf-89f7-71d7c909191a", "glyph": {"id": "7a31c9ad-57f4-4e53-bf8e-3fa488c22ee0", "type": "Line"}}}, {"id": "c1cb1b43-7598-4c26-908a-d0ad38d22d12", "type": "ResetTool", "attributes": {"doc": null, "id": "c1cb1b43-7598-4c26-908a-d0ad38d22d12", "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "tags": []}}, {"id": "b37929ca-7872-43cf-bcda-f6d927ceebd1", "type": "WheelZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "b37929ca-7872-43cf-bcda-f6d927ceebd1", "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "tags": []}}, {"id": "755db9c3-6abc-4e82-8b39-9558d5ef175d", "type": "LinearAxis", "attributes": {"doc": null, "id": "755db9c3-6abc-4e82-8b39-9558d5ef175d", "tags": [], "axis_label": "Precipitation Chance Percentage", "ticker": {"id": "47840619-d51a-47e7-a4c9-66470857f424", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "formatter": {"id": "c6c8a1a7-d02c-424b-b22f-f6865bd00388", "type": "BasicTickFormatter"}}}, {"id": "833018f4-752a-42ad-8321-c2abec916859", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "833018f4-752a-42ad-8321-c2abec916859", "data": {"y": [0.6203333333333333, 0.5426666666666666, 0.6256666666666668, 0.6793333333333333, 0.6166666666666666, 0.5653333333333332, 0.6893333333333334, 0.672, 0.514, 0.6556666666666667, 0.5693333333333334, 0.5216666666666666, 0.5286206896551725, 0.4739999999999999, 0.49699999999999994, 0.30033333333333334, 0.4596666666666666, 0.18799999999999997, 0.3950000000000001, 0.4036666666666667, 0.424, 0.4699999999999999, 0.39766666666666667, 0.0, 0.1581818181818182, 0.14639999999999997], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "cae89dc1-92bf-407e-a420-6dbfdef5f72d", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "4f659e25-7cb5-4379-9a53-009cac7ac81e", "type": "Line"}, "tags": [], "data_source": {"id": "2dd59167-0891-4dea-a377-e452a501e02b", "type": "ColumnDataSource"}, "id": "cae89dc1-92bf-407e-a420-6dbfdef5f72d", "glyph": {"id": "9fd05629-7543-4b36-afb1-2c18aad4fe5d", "type": "Line"}}}, {"id": "2dd59167-0891-4dea-a377-e452a501e02b", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "2dd59167-0891-4dea-a377-e452a501e02b", "data": {"y": [0.7283333333333335, 0.5700000000000001, 0.6843333333333332, 0.7646666666666667, 0.7246666666666667, 0.5999999999999999, 0.5765517241379311, 0.5566666666666666, 0.3773333333333333, 0.5073333333333333, 0.41499999999999987, 0.43533333333333335, 0.3858620689655172, 0.5713333333333332, 0.4596666666666666, 0.3389999999999999, 0.6133333333333332, 0.30766666666666664, 0.43966666666666665, 0.499, 0.5066666666666666, 0.6539999999999999, 0.5556666666666668, 0.0, 0.13869565217391305, 0.1225925925925926], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "198e8175-d0fe-4569-a2a0-2944dc95f9f8", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "a7267d3a-1d7a-4550-90d7-40a8e416e1f4", "type": "Line"}, "tags": [], "data_source": {"id": "223a3cf8-8c35-48f4-92eb-eff054c465be", "type": "ColumnDataSource"}, "id": "198e8175-d0fe-4569-a2a0-2944dc95f9f8", "glyph": {"id": "d30ab0e8-03d0-4cce-b8b1-c6ee5c57b070", "type": "Line"}}}, {"id": "f25508d9-9dc6-49cc-9ce0-3b0bce8f0310", "type": "LinearAxis", "attributes": {"doc": null, "id": "f25508d9-9dc6-49cc-9ce0-3b0bce8f0310", "tags": [], "axis_label": "Year", "ticker": {"id": "0bbabc6a-f25d-4900-bdad-74252c6252e8", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "formatter": {"id": "3e0d8f08-f4f9-42fb-8265-62a04de1bf96", "type": "BasicTickFormatter"}}}, {"id": "ac4617ec-8ba5-475d-9225-ecb4348195bf", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "ac4617ec-8ba5-475d-9225-ecb4348195bf"}}, {"id": "34d1d405-6850-4172-abaf-51ceb2957be0", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#ca0020"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "34d1d405-6850-4172-abaf-51ceb2957be0"}}, {"id": "3e0d8f08-f4f9-42fb-8265-62a04de1bf96", "type": "BasicTickFormatter", "attributes": {"id": "3e0d8f08-f4f9-42fb-8265-62a04de1bf96", "doc": null, "tags": []}}, {"id": "944111b9-8de1-413a-91ae-3e563fd24941", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "944111b9-8de1-413a-91ae-3e563fd24941", "data": {"y": [0.6846666666666666, 0.5103333333333333, 0.7086666666666666, 0.47900000000000004, 0.6426666666666667, 0.645, 0.7875862068965517, 0.6486666666666665, 0.4963333333333333, 0.4126666666666666, 0.6416666666666667, 0.6946666666666668, 0.5624137931034483, 0.5653333333333334, 0.7806666666666666, 0.6273333333333333, 0.505, 0.6756666666666666, 0.47600000000000003, 0.417, 0.833, 0.45199999999999996, 0.4203333333333334, 0.0, 0.0775, 0.19200000000000003], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "fe7959f6-2061-4618-9c99-150a30c05f63", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "fe7959f6-2061-4618-9c99-150a30c05f63", "tags": [], "names": []}}, {"id": "4621aa26-38a8-4836-9a06-6ae94a5809b5", "type": "BoxZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "4621aa26-38a8-4836-9a06-6ae94a5809b5", "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "tags": []}}, {"id": "dae3d7bb-ffb2-4b1a-a0c3-c89100b678f1", "type": "Legend", "attributes": {"doc": null, "id": "dae3d7bb-ffb2-4b1a-a0c3-c89100b678f1", "legends": [["binghamton", [{"id": "cae89dc1-92bf-407e-a420-6dbfdef5f72d", "type": "GlyphRenderer"}]], ["cary", [{"id": "198e8175-d0fe-4569-a2a0-2944dc95f9f8", "type": "GlyphRenderer"}]], ["nyc", [{"id": "35d98fe6-eda2-4ebf-89f7-71d7c909191a", "type": "GlyphRenderer"}]], ["seattle", [{"id": "1afd2b1c-d54f-48fa-a978-246b34669603", "type": "GlyphRenderer"}]]], "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "tags": []}}, {"id": "612e127a-61ce-491e-b297-e9977fb9595c", "type": "HelpTool", "attributes": {"doc": null, "id": "612e127a-61ce-491e-b297-e9977fb9595c", "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "tags": []}}, {"id": "1afd2b1c-d54f-48fa-a978-246b34669603", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "ac4617ec-8ba5-475d-9225-ecb4348195bf", "type": "Line"}, "tags": [], "data_source": {"id": "944111b9-8de1-413a-91ae-3e563fd24941", "type": "ColumnDataSource"}, "id": "1afd2b1c-d54f-48fa-a978-246b34669603", "glyph": {"id": "34d1d405-6850-4172-abaf-51ceb2957be0", "type": "Line"}}}, {"id": "d30ab0e8-03d0-4cce-b8b1-c6ee5c57b070", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#92c5de"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "d30ab0e8-03d0-4cce-b8b1-c6ee5c57b070"}}, {"id": "ee023ec8-0a4b-4f15-826b-268420affe3c", "type": "PreviewSaveTool", "attributes": {"doc": null, "id": "ee023ec8-0a4b-4f15-826b-268420affe3c", "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "tags": []}}, {"id": "c6c8a1a7-d02c-424b-b22f-f6865bd00388", "type": "BasicTickFormatter", "attributes": {"id": "c6c8a1a7-d02c-424b-b22f-f6865bd00388", "doc": null, "tags": []}}, {"id": "b82268ba-05c1-4e01-8a33-ce2568c69aef", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "b82268ba-05c1-4e01-8a33-ce2568c69aef", "tags": [], "names": []}}, {"id": "50b4f9f3-eacd-4415-b044-93e5559eb150", "type": "ToolEvents", "attributes": {"doc": null, "tags": [], "id": "50b4f9f3-eacd-4415-b044-93e5559eb150", "geometries": []}}, {"id": "47840619-d51a-47e7-a4c9-66470857f424", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "47840619-d51a-47e7-a4c9-66470857f424", "num_minor_ticks": 5}}, {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot", "attributes": {"extra_x_ranges": {}, "extra_y_ranges": {}, "tools": [{"id": "bb535d98-078d-4cf9-aab1-285c94d3e005", "type": "PanTool"}, {"id": "b37929ca-7872-43cf-bcda-f6d927ceebd1", "type": "WheelZoomTool"}, {"id": "4621aa26-38a8-4836-9a06-6ae94a5809b5", "type": "BoxZoomTool"}, {"id": "ee023ec8-0a4b-4f15-826b-268420affe3c", "type": "PreviewSaveTool"}, {"id": "0f9c500a-9300-48e5-a608-19b69f057505", "type": "ResizeTool"}, {"id": "c1cb1b43-7598-4c26-908a-d0ad38d22d12", "type": "ResetTool"}, {"id": "612e127a-61ce-491e-b297-e9977fb9595c", "type": "HelpTool"}], "left": [{"id": "755db9c3-6abc-4e82-8b39-9558d5ef175d", "type": "LinearAxis"}], "tool_events": {"id": "50b4f9f3-eacd-4415-b044-93e5559eb150", "type": "ToolEvents"}, "below": [{"id": "f25508d9-9dc6-49cc-9ce0-3b0bce8f0310", "type": "LinearAxis"}], "right": [], "tags": [], "doc": null, "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "title": "September Average Precipitation Chance", "renderers": [{"id": "f25508d9-9dc6-49cc-9ce0-3b0bce8f0310", "type": "LinearAxis"}, {"id": "65339b02-3a7c-4f2e-9876-4a7a35b44f86", "type": "Grid"}, {"id": "755db9c3-6abc-4e82-8b39-9558d5ef175d", "type": "LinearAxis"}, {"id": "c300e456-02f5-4b06-965c-8d068d197d17", "type": "Grid"}, {"id": "dae3d7bb-ffb2-4b1a-a0c3-c89100b678f1", "type": "Legend"}, {"id": "cae89dc1-92bf-407e-a420-6dbfdef5f72d", "type": "GlyphRenderer"}, {"id": "198e8175-d0fe-4569-a2a0-2944dc95f9f8", "type": "GlyphRenderer"}, {"id": "35d98fe6-eda2-4ebf-89f7-71d7c909191a", "type": "GlyphRenderer"}, {"id": "1afd2b1c-d54f-48fa-a978-246b34669603", "type": "GlyphRenderer"}], "x_range": {"id": "fe7959f6-2061-4618-9c99-150a30c05f63", "type": "DataRange1d"}, "above": [], "y_range": {"id": "b82268ba-05c1-4e01-8a33-ce2568c69aef", "type": "DataRange1d"}}}, {"id": "65339b02-3a7c-4f2e-9876-4a7a35b44f86", "type": "Grid", "attributes": {"doc": null, "id": "65339b02-3a7c-4f2e-9876-4a7a35b44f86", "ticker": {"id": "0bbabc6a-f25d-4900-bdad-74252c6252e8", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "tags": [], "dimension": 0}}, {"id": "223a3cf8-8c35-48f4-92eb-eff054c465be", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "223a3cf8-8c35-48f4-92eb-eff054c465be", "data": {"y": [0.49999999999999994, 0.5026666666666667, 0.6086666666666667, 0.526, 0.4683333333333333, 0.6596666666666667, 0.4693333333333333, 0.5576666666666666, 0.43799999999999994, 0.5730000000000001, 0.6706666666666664, 0.3756666666666666, 0.6148275862068965, 0.465, 0.5736666666666667, 0.409, 0.45066666666666666, 0.304, 0.6056666666666667, 0.5263333333333333, 0.35433333333333333, 0.5363333333333333, 0.453, 0.0, 0.1827777777777778, 0.18416666666666667], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "0bbabc6a-f25d-4900-bdad-74252c6252e8", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "0bbabc6a-f25d-4900-bdad-74252c6252e8", "num_minor_ticks": 5}}, {"id": "0f9c500a-9300-48e5-a608-19b69f057505", "type": "ResizeTool", "attributes": {"doc": null, "id": "0f9c500a-9300-48e5-a608-19b69f057505", "plot": {"subtype": "Figure", "id": "d3ce1d2d-8527-424d-a4ab-052b6312f2f1", "type": "Plot"}, "tags": []}}];
        Bokeh.load_models(all_models);
        var plots = [{'modeltype': 'Plot', 'elementid': '6bb8b584-4e31-4bd0-936e-1a5790e8966a', 'modelid': 'd3ce1d2d-8527-424d-a4ab-052b6312f2f1'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="6bb8b584-4e31-4bd0-936e-1a5790e8966a"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "8f7d5a35-1ea2-4a97-8e50-01a8cef49e94", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#92c5de"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "8f7d5a35-1ea2-4a97-8e50-01a8cef49e94"}}, {"id": "1b5d44a2-6616-47a5-a0a8-d87d2a8bc267", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "1b5d44a2-6616-47a5-a0a8-d87d2a8bc267", "tags": [], "names": []}}, {"id": "4405466e-9e7a-4235-8f8c-3e373bb01914", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "933aa1ab-0e9f-4d21-93bc-fb61ef71c3e0", "type": "Line"}, "tags": [], "data_source": {"id": "c7fc74fd-8e2e-4967-ab76-5690078c386e", "type": "ColumnDataSource"}, "id": "4405466e-9e7a-4235-8f8c-3e373bb01914", "glyph": {"id": "3eb68a3c-8892-4430-98a9-f6f6895f237e", "type": "Line"}}}, {"id": "67d41c16-de52-4506-ba14-9442f2708971", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "67d41c16-de52-4506-ba14-9442f2708971", "data": {"y": [0.6961290322580646, 0.6241935483870968, 0.6606451612903228, 0.6796774193548387, 0.6680645161290323, 0.6438709677419354, 0.4832258064516128, 0.4019354838709678, 0.5977419354838711, 0.46548387096774196, 0.4851612903225806, 0.4206451612903225, 0.6663333333333333, 0.4841935483870968, 0.5964516129032258, 0.6780645161290324, 0.5725806451612904, 0.49193548387096775, 0.3929032258064516, 0.7148387096774195, 0.5345161290322581, 0.6061290322580645, 0.7341935483870967, 0.0, 0.15312499999999998, 0.1165], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "c1f7a20b-170e-4d1e-8030-17a9e0e8f154", "type": "HelpTool", "attributes": {"doc": null, "id": "c1f7a20b-170e-4d1e-8030-17a9e0e8f154", "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "tags": []}}, {"id": "b240d673-78a2-43a4-82da-60bd0f967ea1", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "b240d673-78a2-43a4-82da-60bd0f967ea1", "num_minor_ticks": 5}}, {"id": "5daa49d2-85b9-4e8a-911c-2a2905217a9d", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#f4a582"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "5daa49d2-85b9-4e8a-911c-2a2905217a9d"}}, {"id": "0b89f159-d0fa-4d6c-a8fa-476d24a79048", "type": "PreviewSaveTool", "attributes": {"doc": null, "id": "0b89f159-d0fa-4d6c-a8fa-476d24a79048", "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "tags": []}}, {"id": "31ff416f-4a33-4311-944a-998f120259e5", "type": "WheelZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "31ff416f-4a33-4311-944a-998f120259e5", "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "tags": []}}, {"id": "8edb37e8-c96a-4e9b-9b29-f42973e1c0e5", "type": "ResizeTool", "attributes": {"doc": null, "id": "8edb37e8-c96a-4e9b-9b29-f42973e1c0e5", "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "tags": []}}, {"id": "a078423a-8e46-4d2f-91f2-d5d957ac64e0", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "a078423a-8e46-4d2f-91f2-d5d957ac64e0"}}, {"id": "72b9484b-42ea-4a0b-aed3-feac05d1d922", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "72b9484b-42ea-4a0b-aed3-feac05d1d922", "num_minor_ticks": 5}}, {"id": "4ac9102f-e0fb-4fe5-99c6-39c19b51d962", "type": "BoxZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "4ac9102f-e0fb-4fe5-99c6-39c19b51d962", "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "tags": []}}, {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot", "attributes": {"extra_x_ranges": {}, "extra_y_ranges": {}, "tools": [{"id": "de65cf7c-6277-4f5d-9f44-e547b27b754f", "type": "PanTool"}, {"id": "31ff416f-4a33-4311-944a-998f120259e5", "type": "WheelZoomTool"}, {"id": "4ac9102f-e0fb-4fe5-99c6-39c19b51d962", "type": "BoxZoomTool"}, {"id": "0b89f159-d0fa-4d6c-a8fa-476d24a79048", "type": "PreviewSaveTool"}, {"id": "8edb37e8-c96a-4e9b-9b29-f42973e1c0e5", "type": "ResizeTool"}, {"id": "4fc41451-5577-4c77-8d04-593e21646eb1", "type": "ResetTool"}, {"id": "c1f7a20b-170e-4d1e-8030-17a9e0e8f154", "type": "HelpTool"}], "left": [{"id": "8fa2d7df-d9ef-4a4c-97cb-8b873cb90ffb", "type": "LinearAxis"}], "tool_events": {"id": "6c6a285c-0d08-47ce-b4c5-661b84a0af57", "type": "ToolEvents"}, "below": [{"id": "341cf9b3-4671-40f9-a0dc-a0eb90c05922", "type": "LinearAxis"}], "right": [], "tags": [], "doc": null, "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "title": "October Average Precipitation Chance", "renderers": [{"id": "341cf9b3-4671-40f9-a0dc-a0eb90c05922", "type": "LinearAxis"}, {"id": "5978deba-4b41-441d-a3de-db70854e9aaf", "type": "Grid"}, {"id": "8fa2d7df-d9ef-4a4c-97cb-8b873cb90ffb", "type": "LinearAxis"}, {"id": "5f68455b-3b31-4f68-b3e5-a72ecde2ffbd", "type": "Grid"}, {"id": "665f1d56-115c-406b-be47-1e87ab34a3b3", "type": "Legend"}, {"id": "f37490da-85e3-46fd-ad21-a115724bdde0", "type": "GlyphRenderer"}, {"id": "daabc7c8-8af6-48b5-8020-1a1931b0b078", "type": "GlyphRenderer"}, {"id": "d073ddd9-334e-40bd-8628-b6983482e846", "type": "GlyphRenderer"}, {"id": "4405466e-9e7a-4235-8f8c-3e373bb01914", "type": "GlyphRenderer"}], "x_range": {"id": "1b5d44a2-6616-47a5-a0a8-d87d2a8bc267", "type": "DataRange1d"}, "above": [], "y_range": {"id": "821604e2-bf52-459c-9fcb-be72cfcd43bc", "type": "DataRange1d"}}}, {"id": "4fc41451-5577-4c77-8d04-593e21646eb1", "type": "ResetTool", "attributes": {"doc": null, "id": "4fc41451-5577-4c77-8d04-593e21646eb1", "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "tags": []}}, {"id": "933aa1ab-0e9f-4d21-93bc-fb61ef71c3e0", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "933aa1ab-0e9f-4d21-93bc-fb61ef71c3e0"}}, {"id": "6c6a285c-0d08-47ce-b4c5-661b84a0af57", "type": "ToolEvents", "attributes": {"doc": null, "tags": [], "id": "6c6a285c-0d08-47ce-b4c5-661b84a0af57", "geometries": []}}, {"id": "f3a31394-db43-453c-81f1-05fcf0e98ffb", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "f3a31394-db43-453c-81f1-05fcf0e98ffb"}}, {"id": "c33187c2-fede-48d9-b3cd-1e7d4255cd7b", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "c33187c2-fede-48d9-b3cd-1e7d4255cd7b"}}, {"id": "665f1d56-115c-406b-be47-1e87ab34a3b3", "type": "Legend", "attributes": {"doc": null, "id": "665f1d56-115c-406b-be47-1e87ab34a3b3", "legends": [["binghamton", [{"id": "f37490da-85e3-46fd-ad21-a115724bdde0", "type": "GlyphRenderer"}]], ["cary", [{"id": "daabc7c8-8af6-48b5-8020-1a1931b0b078", "type": "GlyphRenderer"}]], ["nyc", [{"id": "d073ddd9-334e-40bd-8628-b6983482e846", "type": "GlyphRenderer"}]], ["seattle", [{"id": "4405466e-9e7a-4235-8f8c-3e373bb01914", "type": "GlyphRenderer"}]]], "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "tags": []}}, {"id": "daabc7c8-8af6-48b5-8020-1a1931b0b078", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "c33187c2-fede-48d9-b3cd-1e7d4255cd7b", "type": "Line"}, "tags": [], "data_source": {"id": "93fc81d7-efd1-4637-bd89-39b676adf92e", "type": "ColumnDataSource"}, "id": "daabc7c8-8af6-48b5-8020-1a1931b0b078", "glyph": {"id": "8f7d5a35-1ea2-4a97-8e50-01a8cef49e94", "type": "Line"}}}, {"id": "8fa2d7df-d9ef-4a4c-97cb-8b873cb90ffb", "type": "LinearAxis", "attributes": {"doc": null, "id": "8fa2d7df-d9ef-4a4c-97cb-8b873cb90ffb", "tags": [], "axis_label": "Precipitation Chance Percentage", "ticker": {"id": "b240d673-78a2-43a4-82da-60bd0f967ea1", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "formatter": {"id": "70fb30ca-4edd-4ed4-b1bf-64b380e46586", "type": "BasicTickFormatter"}}}, {"id": "8f87ab01-3aa0-42d0-89c1-714d54b27f6e", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "8f87ab01-3aa0-42d0-89c1-714d54b27f6e", "data": {"y": [0.6132258064516128, 0.5522580645161289, 0.5525806451612902, 0.5851612903225807, 0.5409677419354838, 0.557741935483871, 0.5425806451612903, 0.5603225806451612, 0.5793548387096774, 0.5303225806451614, 0.5416129032258067, 0.44741935483870965, 0.6061290322580644, 0.48516129032258065, 0.5267741935483871, 0.6600000000000001, 0.45419354838709686, 0.4112903225806452, 0.27774193548387094, 0.529032258064516, 0.38451612903225796, 0.37999999999999995, 0.4125806451612903, 0.0, 0.12199999999999998, 0.1860869565217391], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "f37490da-85e3-46fd-ad21-a115724bdde0", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "f3a31394-db43-453c-81f1-05fcf0e98ffb", "type": "Line"}, "tags": [], "data_source": {"id": "67d41c16-de52-4506-ba14-9442f2708971", "type": "ColumnDataSource"}, "id": "f37490da-85e3-46fd-ad21-a115724bdde0", "glyph": {"id": "f436d74d-52f3-4831-98cf-03c1cd85fde7", "type": "Line"}}}, {"id": "5978deba-4b41-441d-a3de-db70854e9aaf", "type": "Grid", "attributes": {"doc": null, "id": "5978deba-4b41-441d-a3de-db70854e9aaf", "ticker": {"id": "72b9484b-42ea-4a0b-aed3-feac05d1d922", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "tags": [], "dimension": 0}}, {"id": "3eb68a3c-8892-4430-98a9-f6f6895f237e", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#ca0020"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "3eb68a3c-8892-4430-98a9-f6f6895f237e"}}, {"id": "821604e2-bf52-459c-9fcb-be72cfcd43bc", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "821604e2-bf52-459c-9fcb-be72cfcd43bc", "tags": [], "names": []}}, {"id": "341cf9b3-4671-40f9-a0dc-a0eb90c05922", "type": "LinearAxis", "attributes": {"doc": null, "id": "341cf9b3-4671-40f9-a0dc-a0eb90c05922", "tags": [], "axis_label": "Year", "ticker": {"id": "72b9484b-42ea-4a0b-aed3-feac05d1d922", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "formatter": {"id": "ccca32d3-6753-4a00-91a5-23b15a8674da", "type": "BasicTickFormatter"}}}, {"id": "f436d74d-52f3-4831-98cf-03c1cd85fde7", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#0571b0"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "f436d74d-52f3-4831-98cf-03c1cd85fde7"}}, {"id": "5f68455b-3b31-4f68-b3e5-a72ecde2ffbd", "type": "Grid", "attributes": {"doc": null, "id": "5f68455b-3b31-4f68-b3e5-a72ecde2ffbd", "ticker": {"id": "b240d673-78a2-43a4-82da-60bd0f967ea1", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "tags": [], "dimension": 1}}, {"id": "d073ddd9-334e-40bd-8628-b6983482e846", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "a078423a-8e46-4d2f-91f2-d5d957ac64e0", "type": "Line"}, "tags": [], "data_source": {"id": "8f87ab01-3aa0-42d0-89c1-714d54b27f6e", "type": "ColumnDataSource"}, "id": "d073ddd9-334e-40bd-8628-b6983482e846", "glyph": {"id": "5daa49d2-85b9-4e8a-911c-2a2905217a9d", "type": "Line"}}}, {"id": "c7fc74fd-8e2e-4967-ab76-5690078c386e", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "c7fc74fd-8e2e-4967-ab76-5690078c386e", "data": {"y": [0.8332258064516128, 0.6358064516129033, 0.8170967741935483, 0.7663333333333332, 0.7164516129032257, 0.8035483870967741, 0.7674193548387097, 0.8623333333333334, 0.8263333333333335, 0.6738709677419353, 0.6925806451612904, 0.8170967741935484, 0.7103333333333333, 0.8200000000000002, 0.7067741935483871, 0.7706451612903225, 0.7074193548387097, 0.7637931034482758, 0.6458064516129032, 0.6433333333333333, 0.6564516129032257, 0.8354838709677419, 0.6399999999999999, 0.0, 0.14125000000000001, 0.15357142857142855], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "93fc81d7-efd1-4637-bd89-39b676adf92e", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "93fc81d7-efd1-4637-bd89-39b676adf92e", "data": {"y": [0.4774193548387096, 0.4464516129032258, 0.4335483870967742, 0.5816129032258065, 0.617741935483871, 0.4867741935483871, 0.352258064516129, 0.4416129032258065, 0.4658064516129032, 0.4474193548387097, 0.27548387096774196, 0.18161290322580642, 0.6880645161290322, 0.4651612903225806, 0.6435483870967743, 0.44193548387096776, 0.445483870967742, 0.4283870967741935, 0.3738709677419354, 0.6009677419354839, 0.2887096774193549, 0.3587096774193549, 0.4964516129032257, 0.0, 0.10793103448275865, 0.09652173913043477], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "70fb30ca-4edd-4ed4-b1bf-64b380e46586", "type": "BasicTickFormatter", "attributes": {"id": "70fb30ca-4edd-4ed4-b1bf-64b380e46586", "doc": null, "tags": []}}, {"id": "de65cf7c-6277-4f5d-9f44-e547b27b754f", "type": "PanTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "de65cf7c-6277-4f5d-9f44-e547b27b754f", "plot": {"subtype": "Figure", "id": "310debb9-349e-4bb4-b2b9-06eff1d32eb6", "type": "Plot"}, "tags": []}}, {"id": "ccca32d3-6753-4a00-91a5-23b15a8674da", "type": "BasicTickFormatter", "attributes": {"id": "ccca32d3-6753-4a00-91a5-23b15a8674da", "doc": null, "tags": []}}];
        Bokeh.load_models(all_models);
        var plots = [{'modeltype': 'Plot', 'elementid': '52f77e18-7aa6-4f4b-af3b-df2ff741ed92', 'modelid': '310debb9-349e-4bb4-b2b9-06eff1d32eb6'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="52f77e18-7aa6-4f4b-af3b-df2ff741ed92"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "a0dca3d2-dc5b-4b17-9929-29d1c62fb98e", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "a0dca3d2-dc5b-4b17-9929-29d1c62fb98e"}}, {"id": "875304ce-10db-4428-ae8c-61a63c33c6b8", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#f4a582"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "875304ce-10db-4428-ae8c-61a63c33c6b8"}}, {"id": "d721667b-4189-4af1-beb5-6f13abdf68a4", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#92c5de"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "d721667b-4189-4af1-beb5-6f13abdf68a4"}}, {"id": "7cefab13-0ab5-4aa9-9758-7bc4bb57c81b", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "7cefab13-0ab5-4aa9-9758-7bc4bb57c81b", "tags": [], "names": []}}, {"id": "292c568b-8e5e-4e02-bcd0-c9c9737eee98", "type": "BasicTickFormatter", "attributes": {"id": "292c568b-8e5e-4e02-bcd0-c9c9737eee98", "doc": null, "tags": []}}, {"id": "aaee78a0-aad4-4925-b2ba-987a3d67cef0", "type": "DataRange1d", "attributes": {"doc": null, "renderers": [], "callback": null, "id": "aaee78a0-aad4-4925-b2ba-987a3d67cef0", "tags": [], "names": []}}, {"id": "b645170c-0b11-4346-bdbc-5d8e6f2e33f2", "type": "BasicTickFormatter", "attributes": {"id": "b645170c-0b11-4346-bdbc-5d8e6f2e33f2", "doc": null, "tags": []}}, {"id": "7ad3acc4-0977-4ee8-b04d-02008ab97a90", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "7ad3acc4-0977-4ee8-b04d-02008ab97a90", "num_minor_ticks": 5}}, {"id": "8379af94-0e3d-470e-949f-768a26518fa4", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "8379af94-0e3d-470e-949f-768a26518fa4", "data": {"y": [0.6086666666666666, 0.7286666666666667, 0.7336666666666666, 0.6786666666666665, 0.6093333333333333, 0.7603333333333335, 0.6406666666666666, 0.6883333333333334, 0.5896551724137931, 0.5860000000000001, 0.6826666666666666, 0.47586206896551725, 0.6889655172413793, 0.46068965517241384, 0.42499999999999993, 0.3893333333333333, 0.4190000000000001, 0.4589999999999999, 0.576, 0.4633333333333333, 0.30366666666666664, 0.27299999999999996, 0.5516666666666666, 0.0, 0.159375, 0.15850000000000003], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "749fd181-3593-40c7-b259-5b9d1bc1d1a9", "type": "BoxZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "749fd181-3593-40c7-b259-5b9d1bc1d1a9", "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "tags": []}}, {"id": "b8ca2ef6-ba02-483e-a54f-63f82ab56f61", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#0571b0"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "b8ca2ef6-ba02-483e-a54f-63f82ab56f61"}}, {"id": "ed20f084-83c1-4a40-a03b-3fcef6d0a217", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "ed20f084-83c1-4a40-a03b-3fcef6d0a217"}}, {"id": "5350849e-1a43-44c4-847d-b5515623ed15", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "5350849e-1a43-44c4-847d-b5515623ed15", "data": {"y": [0.9003333333333334, 0.8909999999999999, 0.8483333333333333, 0.721, 0.86, 0.8386666666666666, 0.8967857142857143, 0.732, 0.8892857142857143, 0.7903333333333333, 0.6796666666666665, 0.8365517241379311, 0.6855172413793104, 0.717, 0.8010344827586209, 0.844, 0.7473333333333333, 0.72, 0.734, 0.7739999999999999, 0.734, 0.6686666666666665, 0.7693333333333333, 0.0, 0.028181818181818183, 0.17384615384615387], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "ec995b7e-b91f-4901-9705-baecbeff2933", "type": "Grid", "attributes": {"doc": null, "id": "ec995b7e-b91f-4901-9705-baecbeff2933", "ticker": {"id": "7ad3acc4-0977-4ee8-b04d-02008ab97a90", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "tags": [], "dimension": 0}}, {"id": "a35b10ee-8007-4b64-a269-9226d3bf330c", "type": "ResetTool", "attributes": {"doc": null, "id": "a35b10ee-8007-4b64-a269-9226d3bf330c", "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "tags": []}}, {"id": "04c604b7-6783-4349-ac27-53f67b4b0f58", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "04c604b7-6783-4349-ac27-53f67b4b0f58", "data": {"y": [0.378, 0.5566666666666666, 0.6566666666666666, 0.5883333333333334, 0.593, 0.5199999999999999, 0.5883333333333334, 0.5673333333333334, 0.5425, 0.349, 0.5266666666666667, 0.32172413793103455, 0.4406666666666667, 0.5409999999999999, 0.48766666666666664, 0.4086666666666667, 0.4366666666666666, 0.397, 0.4636666666666666, 0.545, 0.36433333333333334, 0.37466666666666665, 0.40933333333333344, 0.0, 0.12291666666666667, 0.076], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "d21fde7c-33c2-4ace-ae45-dab51a5474f8", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "d21fde7c-33c2-4ace-ae45-dab51a5474f8"}}, {"id": "d754dce4-d25a-44c9-9bd7-40885161161b", "type": "ResizeTool", "attributes": {"doc": null, "id": "d754dce4-d25a-44c9-9bd7-40885161161b", "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "tags": []}}, {"id": "090cc7fc-57c8-421e-b94b-3b0ce20d663f", "type": "LinearAxis", "attributes": {"doc": null, "id": "090cc7fc-57c8-421e-b94b-3b0ce20d663f", "tags": [], "axis_label": "Year", "ticker": {"id": "7ad3acc4-0977-4ee8-b04d-02008ab97a90", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "formatter": {"id": "b645170c-0b11-4346-bdbc-5d8e6f2e33f2", "type": "BasicTickFormatter"}}}, {"id": "8d035fdc-e5f3-4d60-9b89-4695192a0620", "type": "BasicTicker", "attributes": {"doc": null, "mantissas": [2, 5, 10], "tags": [], "id": "8d035fdc-e5f3-4d60-9b89-4695192a0620", "num_minor_ticks": 5}}, {"id": "a593446f-50be-4c14-8883-a203effcbcf7", "type": "ColumnDataSource", "attributes": {"doc": null, "tags": [], "callback": null, "column_names": ["y", "x"], "id": "a593446f-50be-4c14-8883-a203effcbcf7", "data": {"y": [0.7170000000000001, 0.8149999999999998, 0.8280000000000001, 0.7963333333333332, 0.7516666666666666, 0.8503333333333335, 0.7786666666666667, 0.7166666666666667, 0.5978571428571428, 0.632, 0.6456666666666667, 0.559655172413793, 0.7356666666666667, 0.5863333333333334, 0.6243333333333333, 0.5806666666666666, 0.5303333333333333, 0.5786206896551724, 0.7256666666666667, 0.5196666666666667, 0.5756666666666667, 0.3973333333333333, 0.47966666666666663, 0.0, 0.1725, 0.05611111111111111], "x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015]}, "selected": {"2d": {"indices": []}, "0d": {"flag": false, "indices": []}, "1d": {"indices": []}}}}, {"id": "be4522be-8e6b-4a76-8f41-ffde7643ccc1", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "a0dca3d2-dc5b-4b17-9929-29d1c62fb98e", "type": "Line"}, "tags": [], "data_source": {"id": "a593446f-50be-4c14-8883-a203effcbcf7", "type": "ColumnDataSource"}, "id": "be4522be-8e6b-4a76-8f41-ffde7643ccc1", "glyph": {"id": "b8ca2ef6-ba02-483e-a54f-63f82ab56f61", "type": "Line"}}}, {"id": "b421a546-19e2-4dd4-b3ee-666925eec551", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "ed20f084-83c1-4a40-a03b-3fcef6d0a217", "type": "Line"}, "tags": [], "data_source": {"id": "8379af94-0e3d-470e-949f-768a26518fa4", "type": "ColumnDataSource"}, "id": "b421a546-19e2-4dd4-b3ee-666925eec551", "glyph": {"id": "875304ce-10db-4428-ae8c-61a63c33c6b8", "type": "Line"}}}, {"id": "b2bdd454-54aa-425f-8f5f-0806b35ee3be", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#ca0020"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 1.0}, "id": "b2bdd454-54aa-425f-8f5f-0806b35ee3be"}}, {"id": "e84a3c96-a065-43f9-b032-127a552afdc7", "type": "Line", "attributes": {"doc": null, "line_color": {"value": "#1f77b4"}, "y": {"field": "y"}, "tags": [], "x": {"field": "x"}, "line_alpha": {"value": 0.1}, "id": "e84a3c96-a065-43f9-b032-127a552afdc7"}}, {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot", "attributes": {"extra_x_ranges": {}, "extra_y_ranges": {}, "tools": [{"id": "83541f4f-d391-4a4e-9135-c8f418af861e", "type": "PanTool"}, {"id": "4e4975e2-6b4a-4545-b64f-c9ac67e1f8c2", "type": "WheelZoomTool"}, {"id": "749fd181-3593-40c7-b259-5b9d1bc1d1a9", "type": "BoxZoomTool"}, {"id": "f22c684c-eaca-43a1-b3e3-66c5ef2e5e21", "type": "PreviewSaveTool"}, {"id": "d754dce4-d25a-44c9-9bd7-40885161161b", "type": "ResizeTool"}, {"id": "a35b10ee-8007-4b64-a269-9226d3bf330c", "type": "ResetTool"}, {"id": "683efd07-5375-473f-84c2-b30eb9f1c380", "type": "HelpTool"}], "left": [{"id": "18719615-00ee-4038-b7e8-95b990779254", "type": "LinearAxis"}], "tool_events": {"id": "482fcbdb-cb2f-406b-bdfd-ff5c04786d52", "type": "ToolEvents"}, "below": [{"id": "090cc7fc-57c8-421e-b94b-3b0ce20d663f", "type": "LinearAxis"}], "right": [], "tags": [], "doc": null, "id": "dde74936-c1de-4952-a961-c1da1ff10836", "title": "November Average Precipitation Chance", "renderers": [{"id": "090cc7fc-57c8-421e-b94b-3b0ce20d663f", "type": "LinearAxis"}, {"id": "ec995b7e-b91f-4901-9705-baecbeff2933", "type": "Grid"}, {"id": "18719615-00ee-4038-b7e8-95b990779254", "type": "LinearAxis"}, {"id": "1f75e7b1-6794-4532-9332-8169ab0f7d74", "type": "Grid"}, {"id": "d4617a10-a446-4b12-871f-4741ee023932", "type": "Legend"}, {"id": "be4522be-8e6b-4a76-8f41-ffde7643ccc1", "type": "GlyphRenderer"}, {"id": "93796a94-9a48-40f2-9fec-b6ccd8214100", "type": "GlyphRenderer"}, {"id": "b421a546-19e2-4dd4-b3ee-666925eec551", "type": "GlyphRenderer"}, {"id": "21931e47-28e0-4883-b5ba-cc0c2df60a94", "type": "GlyphRenderer"}], "x_range": {"id": "aaee78a0-aad4-4925-b2ba-987a3d67cef0", "type": "DataRange1d"}, "above": [], "y_range": {"id": "7cefab13-0ab5-4aa9-9758-7bc4bb57c81b", "type": "DataRange1d"}}}, {"id": "482fcbdb-cb2f-406b-bdfd-ff5c04786d52", "type": "ToolEvents", "attributes": {"doc": null, "tags": [], "id": "482fcbdb-cb2f-406b-bdfd-ff5c04786d52", "geometries": []}}, {"id": "93796a94-9a48-40f2-9fec-b6ccd8214100", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "d21fde7c-33c2-4ace-ae45-dab51a5474f8", "type": "Line"}, "tags": [], "data_source": {"id": "04c604b7-6783-4349-ac27-53f67b4b0f58", "type": "ColumnDataSource"}, "id": "93796a94-9a48-40f2-9fec-b6ccd8214100", "glyph": {"id": "d721667b-4189-4af1-beb5-6f13abdf68a4", "type": "Line"}}}, {"id": "18719615-00ee-4038-b7e8-95b990779254", "type": "LinearAxis", "attributes": {"doc": null, "id": "18719615-00ee-4038-b7e8-95b990779254", "tags": [], "axis_label": "Precipitation Chance Percentage", "ticker": {"id": "8d035fdc-e5f3-4d60-9b89-4695192a0620", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "formatter": {"id": "292c568b-8e5e-4e02-bcd0-c9c9737eee98", "type": "BasicTickFormatter"}}}, {"id": "83541f4f-d391-4a4e-9135-c8f418af861e", "type": "PanTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "83541f4f-d391-4a4e-9135-c8f418af861e", "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "tags": []}}, {"id": "f22c684c-eaca-43a1-b3e3-66c5ef2e5e21", "type": "PreviewSaveTool", "attributes": {"doc": null, "id": "f22c684c-eaca-43a1-b3e3-66c5ef2e5e21", "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "tags": []}}, {"id": "683efd07-5375-473f-84c2-b30eb9f1c380", "type": "HelpTool", "attributes": {"doc": null, "id": "683efd07-5375-473f-84c2-b30eb9f1c380", "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "tags": []}}, {"id": "d4617a10-a446-4b12-871f-4741ee023932", "type": "Legend", "attributes": {"doc": null, "id": "d4617a10-a446-4b12-871f-4741ee023932", "legends": [["binghamton", [{"id": "be4522be-8e6b-4a76-8f41-ffde7643ccc1", "type": "GlyphRenderer"}]], ["cary", [{"id": "93796a94-9a48-40f2-9fec-b6ccd8214100", "type": "GlyphRenderer"}]], ["nyc", [{"id": "b421a546-19e2-4dd4-b3ee-666925eec551", "type": "GlyphRenderer"}]], ["seattle", [{"id": "21931e47-28e0-4883-b5ba-cc0c2df60a94", "type": "GlyphRenderer"}]]], "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "tags": []}}, {"id": "21931e47-28e0-4883-b5ba-cc0c2df60a94", "type": "GlyphRenderer", "attributes": {"doc": null, "selection_glyph": null, "nonselection_glyph": {"id": "e84a3c96-a065-43f9-b032-127a552afdc7", "type": "Line"}, "tags": [], "data_source": {"id": "5350849e-1a43-44c4-847d-b5515623ed15", "type": "ColumnDataSource"}, "id": "21931e47-28e0-4883-b5ba-cc0c2df60a94", "glyph": {"id": "b2bdd454-54aa-425f-8f5f-0806b35ee3be", "type": "Line"}}}, {"id": "4e4975e2-6b4a-4545-b64f-c9ac67e1f8c2", "type": "WheelZoomTool", "attributes": {"doc": null, "dimensions": ["width", "height"], "id": "4e4975e2-6b4a-4545-b64f-c9ac67e1f8c2", "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "tags": []}}, {"id": "1f75e7b1-6794-4532-9332-8169ab0f7d74", "type": "Grid", "attributes": {"doc": null, "id": "1f75e7b1-6794-4532-9332-8169ab0f7d74", "ticker": {"id": "8d035fdc-e5f3-4d60-9b89-4695192a0620", "type": "BasicTicker"}, "plot": {"subtype": "Figure", "id": "dde74936-c1de-4952-a961-c1da1ff10836", "type": "Plot"}, "tags": [], "dimension": 1}}];
        Bokeh.load_models(all_models);
        var plots = [{'modeltype': 'Plot', 'elementid': '6d6352a7-9777-48e6-92c9-7a14b898ad73', 'modelid': 'dde74936-c1de-4952-a961-c1da1ff10836'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="6d6352a7-9777-48e6-92c9-7a14b898ad73"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;The same data issue caveats apply here: 2013 seems to be missing some data, and July has some issues as well. However, this seems to confirm the trends we saw with cloud cover:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Seattle, specifically for the months of August, October, and November has had a consistently higher chance of rain than other cities surveyed.&lt;/li&gt;
&lt;li&gt;Average precipitation chance, just like average cloud cover, has been trending down over time.&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="Conclusion"&gt;Conclusion&lt;a class="anchor-link" href="#Conclusion"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;I have to admit I was a bit surprised after doing this analysis. Seattle showed a higher average cloud cover and average precipitation chance than did the other cities surveyed. Maybe Seattle is actually an objectively more depressing city to live in.&lt;/p&gt;
&lt;p&gt;Well that's all for weather data at the moment. It's been a great experiment, but I think this is about as far as I'll be able to get with weather data without some domain knowledge. Talk again soon!&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;/p&gt;</summary><category term="weather"></category><category term="data science"></category></entry><entry><title>Complaining about the Weather</title><link href="https://bspeice.github.io/complaining-about-the-weather.html" rel="alternate"></link><updated>2016-01-01T00:00:00-05:00</updated><author><name>Bradlee Speice</name></author><id>tag:bspeice.github.io,2016-01-01:complaining-about-the-weather.html</id><summary type="html">&lt;script type="text/x-mathjax-config"&gt;
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\(','\)']]}});
&lt;/script&gt;

&lt;script async src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML'&gt;&lt;/script&gt;

&lt;p&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[1]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;bokeh.plotting&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;output_notebook&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;show&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;bokeh.palettes&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;PuBuGn9&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;Palette&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;pd&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;np&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pickle&lt;/span&gt;

&lt;span class="n"&gt;output_notebook&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
    
&lt;script type="text/javascript"&gt;
    /* BEGIN C:\Users\Bradlee Speice\Anaconda3\lib\site-packages\bokeh\server\static\js/bokeh.min.js */
        !function(){var define=void 0;!function t(e,i,n){function r(o,a){if(!i[o]){if(!e[o]){var l="function"==typeof require&amp;&amp;require;if(!a&amp;&amp;l)return l(o,!0);if(s)return s(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var h=i[o]={exports:{}};e[o][0].call(h.exports,function(t){var i=e[o][1][t];return r(i?i:t)},h,h.exports,t,e,i,n)}return i[o].exports}for(var s="function"==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)r(n[o]);return r}({1:[function(t,e,i){var n,r;n={},n.require=t,n.version="0.10.0",n._=t("underscore"),n.$=t("jquery"),t("jquery-ui"),n.Backbone=t("backbone"),n.Backbone.$=n.$,n.Backbone.$.ui=n.$.ui,r=t("./common/logging"),n.logger=r.logger,n.set_log_level=r.set_log_level,window.Float64Array||(n.logger.warn("Float64Array is not supported. Using generic Array instead."),window.Float64Array=Array),n.index=t("./common/base").index,n.Collections=t("./common/base").Collections,n.Config=t("./common/base").Config,n.CartesianFrame=t("./common/cartesian_frame"),n.Canvas=t("./common/canvas"),n.GMapPlot=t("./common/gmap_plot"),n.GeoJSPlot=t("./common/geojs_plot"),n.GridPlot=t("./common/grid_plot"),n.HasParent=t("./common/has_parent"),n.HasProperties=t("./common/has_properties"),n.LayoutBox=t("./common/layout_box"),n.Plot=t("./common/plot"),n.Properties=t("./common/properties"),n.SelectionManager=t("./common/selection_manager"),n.Selector=t("./common/selector"),n.ToolEvents=t("./common/tool_events"),n.build_views=t("./common/build_views"),n.bulk_save=t("./common/bulk_save"),n.ContinuumView=t("./common/continuum_view"),n.load_models=t("./common/load_models"),n.PlotContext=t("./common/plot_context"),n.PlotWidget=t("./common/plot_widget"),n.Random=t("./common/random"),n.SVGColors=t("./common/svg_colors"),n.LinearMapper=t("./mapper/linear_mapper"),n.LogMapper=t("./mapper/log_mapper"),n.CategoricalMapper=t("./mapper/categorical_mapper"),n.GridMapper=t("./mapper/grid_mapper"),n.LinearColorMapper=t("./mapper/linear_color_mapper"),n.Palettes=t("./palettes/palettes"),n.BoxAnnotation=t("./renderer/annotation/box_annotation"),n.Legend=t("./renderer/annotation/legend"),n.Span=t("./renderer/annotation/span"),n.Tooltip=t("./renderer/annotation/tooltip"),n.CategoricalAxis=t("./renderer/guide/categorical_axis"),n.DatetimeAxis=t("./renderer/guide/datetime_axis"),n.Grid=t("./renderer/guide/grid"),n.LinearAxis=t("./renderer/guide/linear_axis"),n.LogAxis=t("./renderer/guide/log_axis"),n.BoxSelection=t("./renderer/overlay/box_selection"),n.PolySelection=t("./renderer/overlay/poly_selection"),n.embed=t("./server/embed"),n.serverutils=t("./server/serverutils"),n.ColumnDataSource=t("./source/column_data_source"),n.AbstractTicker=t("./ticking/abstract_ticker"),n.AdaptiveTicker=t("./ticking/adaptive_ticker"),n.BasicTicker=t("./ticking/basic_ticker"),n.BasicTickFormatter=t("./ticking/basic_tick_formatter"),n.LogTicker=t("./ticking/log_ticker"),n.LogTickFormatter=t("./ticking/log_tick_formatter"),n.CategoricalTicker=t("./ticking/categorical_ticker"),n.CategoricalTickFormatter=t("./ticking/categorical_tick_formatter"),n.CompositeTicker=t("./ticking/composite_ticker"),n.DatetimeTicker=t("./ticking/datetime_ticker"),n.DatetimeTickFormatter=t("./ticking/datetime_tick_formatter"),n.DaysTicker=t("./ticking/days_ticker"),n.MonthsTicker=t("./ticking/months_ticker"),n.SingleIntervalTicker=t("./ticking/single_interval_ticker"),n.YearsTicker=t("./ticking/years_ticker"),n.ActionTool=t("./tool/actions/action_tool"),n.PreviewSaveTool=t("./tool/actions/preview_save_tool"),n.ResetTool=t("./tool/actions/reset_tool"),n.HelpTool=t("./tool/actions/help_tool"),n.BoxSelectTool=t("./tool/gestures/box_select_tool"),n.BoxZoomTool=t("./tool/gestures/box_zoom_tool"),n.LassoSelectTool=t("./tool/gestures/lasso_select_tool"),n.PanTool=t("./tool/gestures/pan_tool"),n.PolySelectTool=t("./tool/gestures/poly_select_tool"),n.ResizeTool=t("./tool/gestures/resize_tool"),n.SelectTool=t("./tool/gestures/select_tool"),n.TapTool=t("./tool/gestures/tap_tool"),n.WheelZoomTool=t("./tool/gestures/wheel_zoom_tool"),n.InspectTool=t("./tool/inspectors/inspect_tool"),n.HoverTool=t("./tool/inspectors/hover_tool"),n.CrosshairTool=t("./tool/inspectors/crosshair_tool"),n.HBox=t("./widget/hbox"),n.VBox=t("./widget/vbox"),n.TextInput=t("./widget/text_input"),t("./api/plugin"),n.Bokeh=n,window.Bokeh=n,e.exports=n},{"./api/plugin":95,"./common/base":99,"./common/build_views":101,"./common/bulk_save":102,"./common/canvas":103,"./common/cartesian_frame":105,"./common/continuum_view":109,"./common/geojs_plot":111,"./common/gmap_plot":112,"./common/grid_plot":113,"./common/has_parent":114,"./common/has_properties":115,"./common/layout_box":117,"./common/load_models":118,"./common/logging":119,"./common/plot":121,"./common/plot_context":122,"./common/plot_widget":125,"./common/properties":126,"./common/random":127,"./common/selection_manager":128,"./common/selector":129,"./common/svg_colors":132,"./common/tool_events":134,"./mapper/categorical_mapper":138,"./mapper/grid_mapper":139,"./mapper/linear_color_mapper":140,"./mapper/linear_mapper":141,"./mapper/log_mapper":142,"./palettes/palettes":143,"./renderer/annotation/box_annotation":147,"./renderer/annotation/legend":148,"./renderer/annotation/span":149,"./renderer/annotation/tooltip":150,"./renderer/guide/categorical_axis":189,"./renderer/guide/datetime_axis":190,"./renderer/guide/grid":191,"./renderer/guide/linear_axis":192,"./renderer/guide/log_axis":193,"./renderer/overlay/box_selection":194,"./renderer/overlay/poly_selection":195,"./server/embed":196,"./server/serverutils":197,"./source/column_data_source":204,"./ticking/abstract_ticker":207,"./ticking/adaptive_ticker":208,"./ticking/basic_tick_formatter":209,"./ticking/basic_ticker":210,"./ticking/categorical_tick_formatter":211,"./ticking/categorical_ticker":212,"./ticking/composite_ticker":213,"./ticking/datetime_tick_formatter":214,"./ticking/datetime_ticker":215,"./ticking/days_ticker":216,"./ticking/log_tick_formatter":218,"./ticking/log_ticker":219,"./ticking/months_ticker":220,"./ticking/single_interval_ticker":223,"./ticking/years_ticker":225,"./tool/actions/action_tool":226,"./tool/actions/help_tool":227,"./tool/actions/preview_save_tool":228,"./tool/actions/reset_tool":230,"./tool/gestures/box_select_tool":233,"./tool/gestures/box_zoom_tool":234,"./tool/gestures/lasso_select_tool":236,"./tool/gestures/pan_tool":237,"./tool/gestures/poly_select_tool":238,"./tool/gestures/resize_tool":239,"./tool/gestures/select_tool":240,"./tool/gestures/tap_tool":241,"./tool/gestures/wheel_zoom_tool":242,"./tool/inspectors/crosshair_tool":243,"./tool/inspectors/hover_tool":244,"./tool/inspectors/inspect_tool":245,"./widget/hbox":267,"./widget/text_input":288,"./widget/vbox":291,backbone:2,jquery:18,"jquery-ui":11,underscore:92}],2:[function(t,e,i){!function(e,n){if("function"==typeof define&amp;&amp;define.amd)define(["underscore","jquery","exports"],function(t,i,r){e.Backbone=n(e,r,t,i)});else if("undefined"!=typeof i){var r=t("underscore");n(e,i,r)}else e.Backbone=n(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(t,e,i,n){var r=t.Backbone,s=[],o=(s.push,s.slice);s.splice;e.VERSION="1.1.2",e.$=n,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,i){if(!u(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var n=this._events[t]||(this._events[t]=[]);return n.push({callback:e,context:i,ctx:i||this}),this},once:function(t,e,n){if(!u(this,"once",t,[e,n])||!e)return this;var r=this,s=i.once(function(){r.off(t,s),e.apply(this,arguments)});return s._callback=e,this.on(t,s,n)},off:function(t,e,n){var r,s,o,a,l,h,c,p;if(!this._events||!u(this,"off",t,[e,n]))return this;if(!t&amp;&amp;!e&amp;&amp;!n)return this._events=void 0,this;for(a=t?[t]:i.keys(this._events),l=0,h=a.length;h&gt;l;l++)if(t=a[l],o=this._events[t]){if(this._events[t]=r=[],e||n)for(c=0,p=o.length;p&gt;c;c++)s=o[c],(e&amp;&amp;e!==s.callback&amp;&amp;e!==s.callback._callback||n&amp;&amp;n!==s.context)&amp;&amp;r.push(s);r.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=o.call(arguments,1);if(!u(this,"trigger",t,e))return this;var i=this._events[t],n=this._events.all;return i&amp;&amp;h(i,e),n&amp;&amp;h(n,arguments),this},stopListening:function(t,e,n){var r=this._listeningTo;if(!r)return this;var s=!e&amp;&amp;!n;n||"object"!=typeof e||(n=this),t&amp;&amp;((r={})[t._listenId]=t);for(var o in r)t=r[o],t.off(e,n,this),(s||i.isEmpty(t._events))&amp;&amp;delete this._listeningTo[o];return this}},l=/\s+/,u=function(t,e,i,n){if(!i)return!0;if("object"==typeof i){for(var r in i)t[e].apply(t,[r,i[r]].concat(n));return!1}if(l.test(i)){for(var s=i.split(l),o=0,a=s.length;a&gt;o;o++)t[e].apply(t,[s[o]].concat(n));return!1}return!0},h=function(t,e){var i,n=-1,r=t.length,s=e[0],o=e[1],a=e[2];switch(e.length){case 0:for(;++n&lt;r;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n&lt;r;)(i=t[n]).callback.call(i.ctx,s);return;case 2:for(;++n&lt;r;)(i=t[n]).callback.call(i.ctx,s,o);return;case 3:for(;++n&lt;r;)(i=t[n]).callback.call(i.ctx,s,o,a);return;default:for(;++n&lt;r;)(i=t[n]).callback.apply(i.ctx,e);return}},c={listenTo:"on",listenToOnce:"once"};i.each(c,function(t,e){a[e]=function(e,n,r){var s=this._listeningTo||(this._listeningTo={}),o=e._listenId||(e._listenId=i.uniqueId("l"));return s[o]=e,r||"object"!=typeof n||(r=this),e[t](n,r,this),this}}),a.bind=a.on,a.unbind=a.off,i.extend(e,a);var p=e.Model=function(t,e){var n=t||{};e||(e={}),this.cid=i.uniqueId("c"),this.attributes={},e.collection&amp;&amp;(this.collection=e.collection),e.parse&amp;&amp;(n=this.parse(n,e)||{}),n=i.defaults({},n,i.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(p.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var r,s,o,a,l,u,h,c;if(null==t)return this;if("object"==typeof t?(s=t,n=e):(s={})[t]=e,n||(n={}),!this._validate(s,n))return!1;o=n.unset,l=n.silent,a=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=i.clone(this.attributes),this.changed={}),c=this.attributes,h=this._previousAttributes,this.idAttribute in s&amp;&amp;(this.id=s[this.idAttribute]);for(r in s)e=s[r],i.isEqual(c[r],e)||a.push(r),i.isEqual(h[r],e)?delete this.changed[r]:this.changed[r]=e,o?delete c[r]:c[r]=e;if(!l){a.length&amp;&amp;(this._pending=n);for(var p=0,d=a.length;d&gt;p;p++)this.trigger("change:"+a[p],this,c[a[p]],n)}if(u)return this;if(!l)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?i.clone(this.changed):!1;var e,n=!1,r=this._changing?this._previousAttributes:this.attributes;for(var s in t)i.isEqual(r[s],e=t[s])||((n||(n={}))[s]=e);return n},previous:function(t){return null!=t&amp;&amp;this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=t?i.clone(t):{},void 0===t.parse&amp;&amp;(t.parse=!0);var e=this,n=t.success;return t.success=function(i){return e.set(e.parse(i,t),t)?(n&amp;&amp;n(e,i,t),void e.trigger("sync",e,i,t)):!1},O(this,t),this.sync("read",this,t)},save:function(t,e,n){var r,s,o,a=this.attributes;if(null==t||"object"==typeof t?(r=t,n=e):(r={})[t]=e,n=i.extend({validate:!0},n),r&amp;&amp;!n.wait){if(!this.set(r,n))return!1}else if(!this._validate(r,n))return!1;r&amp;&amp;n.wait&amp;&amp;(this.attributes=i.extend({},a,r)),void 0===n.parse&amp;&amp;(n.parse=!0);var l=this,u=n.success;return n.success=function(t){l.attributes=a;var e=l.parse(t,n);return n.wait&amp;&amp;(e=i.extend(r||{},e)),i.isObject(e)&amp;&amp;!l.set(e,n)?!1:(u&amp;&amp;u(l,t,n),void l.trigger("sync",l,t,n))},O(this,n),s=this.isNew()?"create":n.patch?"patch":"update","patch"===s&amp;&amp;(n.attrs=r),o=this.sync(s,this,n),r&amp;&amp;n.wait&amp;&amp;(this.attributes=a),o},destroy:function(t){t=t?i.clone(t):{};var e=this,n=t.success,r=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(i){(t.wait||e.isNew())&amp;&amp;r(),n&amp;&amp;n(e,i,t),e.isNew()||e.trigger("sync",e,i,t)},this.isNew())return t.success(),!1;O(this,t);var s=this.sync("delete",this,t);return t.wait||r(),s},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||j();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return n?(this.trigger("invalid",this,n,i.extend(e,{validationError:n})),!1):!0}});var d=["keys","values","pairs","invert","pick","omit"];i.each(d,function(t){p.prototype[t]=function(){var e=o.call(arguments);return e.unshift(this.attributes),i[t].apply(i,e)}});var f=e.Collection=function(t,e){e||(e={}),e.model&amp;&amp;(this.model=e.model),void 0!==e.comparator&amp;&amp;(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&amp;&amp;this.reset(t,i.extend({silent:!0},e))},g={add:!0,remove:!0,merge:!0},m={add:!0,remove:!1};i.extend(f.prototype,a,{model:p,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:!1},e,m))},remove:function(t,e){var n=!i.isArray(t);t=n?[t]:i.clone(t),e||(e={});var r,s,o,a;for(r=0,s=t.length;s&gt;r;r++)a=t[r]=this.get(t[r]),a&amp;&amp;(delete this._byId[a.id],delete this._byId[a.cid],o=this.indexOf(a),this.models.splice(o,1),this.length--,e.silent||(e.index=o,a.trigger("remove",a,this,e)),this._removeReference(a,e));return n?t[0]:t},set:function(t,e){e=i.defaults({},e,g),e.parse&amp;&amp;(t=this.parse(t,e));var n=!i.isArray(t);t=n?t?[t]:[]:i.clone(t);var r,s,o,a,l,u,h,c=e.at,d=this.model,f=this.comparator&amp;&amp;null==c&amp;&amp;e.sort!==!1,m=i.isString(this.comparator)?this.comparator:null,_=[],v=[],y={},b=e.add,w=e.merge,x=e.remove,k=!f&amp;&amp;b&amp;&amp;x?[]:!1;for(r=0,s=t.length;s&gt;r;r++){if(l=t[r]||{},o=l instanceof p?a=l:l[d.prototype.idAttribute||"id"],u=this.get(o))x&amp;&amp;(y[u.cid]=!0),w&amp;&amp;(l=l===a?a.attributes:l,e.parse&amp;&amp;(l=u.parse(l,e)),u.set(l,e),f&amp;&amp;!h&amp;&amp;u.hasChanged(m)&amp;&amp;(h=!0)),t[r]=u;else if(b){if(a=t[r]=this._prepareModel(l,e),!a)continue;_.push(a),this._addReference(a,e)}a=u||a,!k||!a.isNew()&amp;&amp;y[a.id]||k.push(a),y[a.id]=!0}if(x){for(r=0,s=this.length;s&gt;r;++r)y[(a=this.models[r]).cid]||v.push(a);v.length&amp;&amp;this.remove(v,e)}if(_.length||k&amp;&amp;k.length)if(f&amp;&amp;(h=!0),this.length+=_.length,null!=c)for(r=0,s=_.length;s&gt;r;r++)this.models.splice(c+r,0,_[r]);else{k&amp;&amp;(this.models.length=0);var M=k||_;for(r=0,s=M.length;s&gt;r;r++)this.models.push(M[r])}if(h&amp;&amp;this.sort({silent:!0}),!e.silent){for(r=0,s=_.length;s&gt;r;r++)(a=_[r]).trigger("add",a,this,e);(h||k&amp;&amp;k.length)&amp;&amp;this.trigger("sort",this,e)}return n?t[0]:t},reset:function(t,e){e||(e={});for(var n=0,r=this.models.length;r&gt;n;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return o.apply(this.models,arguments)},get:function(t){return null==t?void 0:this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return i.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var i in t)if(t[i]!==e.get(i))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return i.invoke(this.models,"get",t)},fetch:function(t){t=t?i.clone(t):{},void 0===t.parse&amp;&amp;(t.parse=!0);var e=t.success,n=this;return t.success=function(i){var r=t.reset?"reset":"set";n[r](i,t),e&amp;&amp;e(n,i,t),n.trigger("sync",n,i,t)},O(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?i.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var n=this,r=e.success;return e.success=function(t,i){e.wait&amp;&amp;n.add(t,e),r&amp;&amp;r(t,i,e)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof p)return t;e=e?i.clone(e):{},e.collection=this;var n=new this.model(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_addReference:function(t,e){this._byId[t.cid]=t,null!=t.id&amp;&amp;(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&amp;&amp;delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){("add"!==t&amp;&amp;"remove"!==t||i===this)&amp;&amp;("destroy"===t&amp;&amp;this.remove(e,n),e&amp;&amp;t==="change:"+e.idAttribute&amp;&amp;(delete this._byId[e.previous(e.idAttribute)],null!=e.id&amp;&amp;(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var _=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];i.each(_,function(t){f.prototype[t]=function(){var e=o.call(arguments);return e.unshift(this.models),i[t].apply(i,e)}});var v=["groupBy","countBy","sortBy","indexBy"];i.each(v,function(t){f.prototype[t]=function(e,n){var r=i.isFunction(e)?e:function(t){return t.get(e)};return i[t](this.models,r,n)}});var y=e.View=function(t){this.cid=i.uniqueId("view"),t||(t={}),i.extend(this,i.pick(t,w)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},b=/^(\S+)\s*(.*)$/,w=["model","collection","el","id","attributes","className","tagName","events"];i.extend(y.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,i){return this.$el&amp;&amp;this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],i!==!1&amp;&amp;this.delegateEvents(),this},delegateEvents:function(t){if(!t&amp;&amp;!(t=i.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var n=t[e];if(i.isFunction(n)||(n=this[t[e]]),n){var r=e.match(b),s=r[1],o=r[2];n=i.bind(n,this),s+=".delegateEvents"+this.cid,""===o?this.$el.on(s,n):this.$el.on(s,o,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var t=i.extend({},i.result(this,"attributes"));this.id&amp;&amp;(t.id=i.result(this,"id")),this.className&amp;&amp;(t["class"]=i.result(this,"className"));var n=e.$("&lt;"+i.result(this,"tagName")+"&gt;").attr(t);this.setElement(n,!1)}}}),e.sync=function(t,n,r){var s=k[t];i.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var o={type:s,dataType:"json"};if(r.url||(o.url=i.result(n,"url")||j()),null!=r.data||!n||"create"!==t&amp;&amp;"update"!==t&amp;&amp;"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(r.attrs||n.toJSON(r))),r.emulateJSON&amp;&amp;(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),r.emulateHTTP&amp;&amp;("PUT"===s||"DELETE"===s||"PATCH"===s)){o.type="POST",r.emulateJSON&amp;&amp;(o.data._method=s);var a=r.beforeSend;r.beforeSend=function(t){return t.setRequestHeader("X-HTTP-Method-Override",s),a?a.apply(this,arguments):void 0}}"GET"===o.type||r.emulateJSON||(o.processData=!1),"PATCH"===o.type&amp;&amp;x&amp;&amp;(o.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=r.xhr=e.ajax(i.extend(o,r));return n.trigger("request",n,l,r),l};var x=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&amp;&amp;(new XMLHttpRequest).dispatchEvent),k={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var M=e.Router=function(t){t||(t={}),t.routes&amp;&amp;(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},C=/\((.*?)\)/g,D=/(\(\?)?:\w+/g,T=/\*\w+/g,S=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(M.prototype,a,{initialize:function(){},route:function(t,n,r){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&amp;&amp;(r=n,n=""),r||(r=this[n]);var s=this;return e.history.route(t,function(i){var o=s._extractParameters(t,i);s.execute(r,o),s.trigger.apply(s,["route:"+n].concat(o)),s.trigger("route",n,o),e.history.trigger("route",s,n,o)}),this},execute:function(t,e){t&amp;&amp;t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(S,"\\$&amp;").replace(C,"(?:$1)?").replace(D,function(t,e){return e?t:"([^/?]+)"}).replace(T,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return i.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var A=e.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&amp;&amp;(this.location=window.location,this.history=window.history)},P=/^[#\/]|\s+$/g,E=/^\/+|\/+$/g,I=/msie [\w.]+/,N=/\/$/,R=/#.*$/;A.started=!1,i.extend(A.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&amp;/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(N,"");t.indexOf(i)||(t=t.slice(i.length))}else t=this.getHash();return t.replace(P,"")},start:function(t){if(A.started)throw new Error("Backbone.history has already been started");A.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&amp;&amp;this.history&amp;&amp;this.history.pushState);var n=this.getFragment(),r=document.documentMode,s=I.exec(navigator.userAgent.toLowerCase())&amp;&amp;(!r||7&gt;=r);if(this.root=("/"+this.root+"/").replace(E,"/"),s&amp;&amp;this._wantsHashChange){var o=e.$('&lt;iframe src="javascript:0" tabindex="-1"&gt;');this.iframe=o.hide().appendTo("body")[0].contentWindow,this.navigate(n)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&amp;&amp;"onhashchange"in window&amp;&amp;!s?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&amp;&amp;(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n;var a=this.location;if(this._wantsHashChange&amp;&amp;this._wantsPushState){if(!this._hasPushState&amp;&amp;!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&amp;&amp;this.atRoot()&amp;&amp;a.hash&amp;&amp;(this.fragment=this.getHash().replace(P,""),this.history.replaceState({},document.title,this.root+this.fragment))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&amp;&amp;clearInterval(this._checkUrlInterval),A.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&amp;&amp;this.iframe&amp;&amp;(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment?!1:(this.iframe&amp;&amp;this.navigate(e),void this.loadUrl())},loadUrl:function(t){return t=this.fragment=this.getFragment(t),i.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!A.started)return!1;e&amp;&amp;e!==!0||(e={trigger:!!e});var i=this.root+(t=this.getFragment(t||""));if(t=t.replace(R,""),this.fragment!==t){if(this.fragment=t,""===t&amp;&amp;"/"!==i&amp;&amp;(i=i.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,t,e.replace),this.iframe&amp;&amp;t!==this.getFragment(this.getHash(this.iframe))&amp;&amp;(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else t.hash="#"+e}}),e.history=new A;var z=function(t,e){var n,r=this;n=t&amp;&amp;i.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},i.extend(n,r,e);var s=function(){this.constructor=n};return s.prototype=r.prototype,n.prototype=new s,t&amp;&amp;i.extend(n.prototype,t),n.__super__=r.prototype,n};p.extend=f.extend=M.extend=y.extend=A.extend=z;var j=function(){throw new Error('A "url" property or function must be specified')},O=function(t,e){var i=e.error;e.error=function(n){i&amp;&amp;i(t,n,e),t.trigger("error",t,n,e)}};return e})},{underscore:92}],3:[function(t,e,i){!function(t,i,n,r){"use strict";function s(t,e,i){return setTimeout(c(t,i),e)}function o(t,e,i){return Array.isArray(t)?(a(t,i[e],i),!0):!1}function a(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==r)for(n=0;n&lt;t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&amp;&amp;e.call(i,t[n],n,t)}function l(t,e,i){for(var n=Object.keys(e),s=0;s&lt;n.length;)(!i||i&amp;&amp;t[n[s]]===r)&amp;&amp;(t[n[s]]=e[n[s]]),s++;return t}function u(t,e){return l(t,e,!0)}function h(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&amp;&amp;l(n,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function p(t,e){return typeof t==ct?t.apply(e?e[0]||r:r,e):t}function d(t,e){return t===r?e:t}function f(t,e,i){a(v(e),function(e){t.addEventListener(e,i,!1)})}function g(t,e,i){a(v(e),function(e){t.removeEventListener(e,i,!1)})}function m(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function _(t,e){return t.indexOf(e)&gt;-1}function v(t){return t.trim().split(/\s+/g)}function y(t,e,i){if(t.indexOf&amp;&amp;!i)return t.indexOf(e);for(var n=0;n&lt;t.length;){if(i&amp;&amp;t[n][i]==e||!i&amp;&amp;t[n]===e)return n;n++}return-1}function b(t){return Array.prototype.slice.call(t,0)}function w(t,e,i){for(var n=[],r=[],s=0;s&lt;t.length;){var o=e?t[s][e]:t[s];y(r,o)&lt;0&amp;&amp;n.push(t[s]),r[s]=o,s++}return i&amp;&amp;(n=e?n.sort(function(t,i){return t[e]&gt;i[e]}):n.sort()),n}function x(t,e){for(var i,n,s=e[0].toUpperCase()+e.slice(1),o=0;o&lt;ut.length;){if(i=ut[o],n=i?i+s:e,n in t)return n;o++}return r}function k(){return gt++}function M(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function C(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){p(t.options.enable,[t])&amp;&amp;i.handler(e)},this.init()}function D(t){var e,i=t.options.inputClass;return new(e=i?i:vt?H:yt?q:_t?V:L)(t,T)}function T(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,s=e&amp;Ct&amp;&amp;n-r===0,o=e&amp;(Tt|St)&amp;&amp;n-r===0;i.isFirst=!!s,i.isFinal=!!o,s&amp;&amp;(t.session={}),i.eventType=e,S(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function S(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=E(e)),r&gt;1&amp;&amp;!i.firstMultiple?i.firstMultiple=E(e):1===r&amp;&amp;(i.firstMultiple=!1);var s=i.firstInput,o=i.firstMultiple,a=o?o.center:s.center,l=e.center=I(n);e.timeStamp=ft(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=j(a,l),e.distance=z(a,l),A(i,e),e.offsetDirection=R(e.deltaX,e.deltaY),e.scale=o?F(o.pointers,n):1,e.rotation=o?O(o.pointers,n):0,P(i,e);var u=t.element;m(e.srcEvent.target,u)&amp;&amp;(u=e.srcEvent.target),e.target=u}function A(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};(e.eventType===Ct||s.eventType===Tt)&amp;&amp;(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function P(t,e){var i,n,s,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=St&amp;&amp;(l&gt;Mt||a.velocity===r)){var u=a.deltaX-e.deltaX,h=a.deltaY-e.deltaY,c=N(l,u,h);n=c.x,s=c.y,i=dt(c.x)&gt;dt(c.y)?c.x:c.y,o=R(u,h),t.lastInterval=e}else i=a.velocity,n=a.velocityX,s=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=s,e.direction=o}function E(t){for(var e=[],i=0;i&lt;t.pointers.length;)e[i]={clientX:pt(t.pointers[i].clientX),clientY:pt(t.pointers[i].clientY)},i++;return{timeStamp:ft(),pointers:e,center:I(e),deltaX:t.deltaX,deltaY:t.deltaY}}function I(t){var e=t.length;if(1===e)return{x:pt(t[0].clientX),y:pt(t[0].clientY)};for(var i=0,n=0,r=0;e&gt;r;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:pt(i/e),y:pt(n/e)}}function N(t,e,i){return{x:e/t||0,y:i/t||0}}function R(t,e){return t===e?At:dt(t)&gt;=dt(e)?t&gt;0?Pt:Et:e&gt;0?It:Nt}function z(t,e,i){i||(i=Ot);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function j(t,e,i){i||(i=Ot);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function O(t,e){return j(e[1],e[0],Ft)-j(t[1],t[0],Ft)}function F(t,e){return z(e[0],e[1],Ft)/z(t[0],t[1],Ft)}function L(){this.evEl=Ht,this.evWin=Bt,this.allow=!0,this.pressed=!1,C.apply(this,arguments)}function H(){this.evEl=Yt,this.evWin=Vt,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function B(){this.evTarget=Ut,this.evWin=Gt,this.started=!1,C.apply(this,arguments)}function W(t,e){var i=b(t.touches),n=b(t.changedTouches);return e&amp;(Tt|St)&amp;&amp;(i=w(i.concat(n),"identifier",!0)),[i,n]}function q(){this.evTarget=Zt,this.targetIds={},C.apply(this,arguments)}function Y(t,e){var i=b(t.touches),n=this.targetIds;if(e&amp;(Ct|Dt)&amp;&amp;1===i.length)return n[i[0].identifier]=!0,[i,i];var r,s,o=b(t.changedTouches),a=[],l=this.target;if(s=i.filter(function(t){return m(t.target,l)}),e===Ct)for(r=0;r&lt;s.length;)n[s[r].identifier]=!0,r++;for(r=0;r&lt;o.length;)n[o[r].identifier]&amp;&amp;a.push(o[r]),e&amp;(Tt|St)&amp;&amp;delete n[o[r].identifier],r++;return a.length?[w(s.concat(a),"identifier",!0),a]:void 0}function V(){C.apply(this,arguments);var t=c(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new L(this.manager,t)}function $(t,e){this.manager=t,this.set(e)}function U(t){if(_(t,ie))return ie;var e=_(t,ne),i=_(t,re);return e&amp;&amp;i?ne+" "+re:e||i?e?ne:re:_(t,ee)?ee:te}function G(t){this.id=k(),this.manager=null,this.options=u(t||{},this.defaults),this.options.enable=d(this.options.enable,!0),this.state=se,this.simultaneous={},this.requireFail=[]}function X(t){return t&amp;he?"cancel":t&amp;le?"end":t&amp;ae?"move":t&amp;oe?"start":""}function Z(t){return t==Nt?"down":t==It?"up":t==Pt?"left":t==Et?"right":""}function J(t,e){var i=e.manager;return i?i.get(t):t}function Q(){G.apply(this,arguments)}function K(){Q.apply(this,arguments),this.pX=null,this.pY=null}function tt(){Q.apply(this,arguments)}function et(){G.apply(this,arguments),this._timer=null,this._input=null}function it(){Q.apply(this,arguments)}function nt(){Q.apply(this,arguments)}function rt(){G.apply(this,arguments),this.pTime=!1,
        this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function st(t,e){return e=e||{},e.recognizers=d(e.recognizers,st.defaults.preset),new ot(t,e)}function ot(t,e){e=e||{},this.options=u(e,st.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=D(this),this.touchAction=new $(this,this.options.touchAction),at(this,!0),a(e.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&amp;&amp;e.recognizeWith(t[2]),t[3]&amp;&amp;e.requireFailure(t[3])},this)}function at(t,e){var i=t.element;a(t.options.cssProps,function(t,n){i.style[x(i.style,n)]=e?t:""})}function lt(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var ut=["","webkit","moz","MS","ms","o"],ht=i.createElement("div"),ct="function",pt=Math.round,dt=Math.abs,ft=Date.now,gt=1,mt=/mobile|tablet|ip(ad|hone|od)|android/i,_t="ontouchstart"in t,vt=x(t,"PointerEvent")!==r,yt=_t&amp;&amp;mt.test(navigator.userAgent),bt="touch",wt="pen",xt="mouse",kt="kinect",Mt=25,Ct=1,Dt=2,Tt=4,St=8,At=1,Pt=2,Et=4,It=8,Nt=16,Rt=Pt|Et,zt=It|Nt,jt=Rt|zt,Ot=["x","y"],Ft=["clientX","clientY"];C.prototype={handler:function(){},init:function(){this.evEl&amp;&amp;f(this.element,this.evEl,this.domHandler),this.evTarget&amp;&amp;f(this.target,this.evTarget,this.domHandler),this.evWin&amp;&amp;f(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&amp;&amp;g(this.element,this.evEl,this.domHandler),this.evTarget&amp;&amp;g(this.target,this.evTarget,this.domHandler),this.evWin&amp;&amp;g(M(this.element),this.evWin,this.domHandler)}};var Lt={mousedown:Ct,mousemove:Dt,mouseup:Tt},Ht="mousedown",Bt="mousemove mouseup";h(L,C,{handler:function(t){var e=Lt[t.type];e&amp;Ct&amp;&amp;0===t.button&amp;&amp;(this.pressed=!0),e&amp;Dt&amp;&amp;1!==t.which&amp;&amp;(e=Tt),this.pressed&amp;&amp;this.allow&amp;&amp;(e&amp;Tt&amp;&amp;(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:xt,srcEvent:t}))}});var Wt={pointerdown:Ct,pointermove:Dt,pointerup:Tt,pointercancel:St,pointerout:St},qt={2:bt,3:wt,4:xt,5:kt},Yt="pointerdown",Vt="pointermove pointerup pointercancel";t.MSPointerEvent&amp;&amp;(Yt="MSPointerDown",Vt="MSPointerMove MSPointerUp MSPointerCancel"),h(H,C,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=Wt[n],s=qt[t.pointerType]||t.pointerType,o=s==bt,a=y(e,t.pointerId,"pointerId");r&amp;Ct&amp;&amp;(0===t.button||o)?0&gt;a&amp;&amp;(e.push(t),a=e.length-1):r&amp;(Tt|St)&amp;&amp;(i=!0),0&gt;a||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),i&amp;&amp;e.splice(a,1))}});var $t={touchstart:Ct,touchmove:Dt,touchend:Tt,touchcancel:St},Ut="touchstart",Gt="touchstart touchmove touchend touchcancel";h(B,C,{handler:function(t){var e=$t[t.type];if(e===Ct&amp;&amp;(this.started=!0),this.started){var i=W.call(this,t,e);e&amp;(Tt|St)&amp;&amp;i[0].length-i[1].length===0&amp;&amp;(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:bt,srcEvent:t})}}});var Xt={touchstart:Ct,touchmove:Dt,touchend:Tt,touchcancel:St},Zt="touchstart touchmove touchend touchcancel";h(q,C,{handler:function(t){var e=Xt[t.type],i=Y.call(this,t,e);i&amp;&amp;this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:bt,srcEvent:t})}}),h(V,C,{handler:function(t,e,i){var n=i.pointerType==bt,r=i.pointerType==xt;if(n)this.mouse.allow=!1;else if(r&amp;&amp;!this.mouse.allow)return;e&amp;(Tt|St)&amp;&amp;(this.mouse.allow=!0),this.callback(t,e,i)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Jt=x(ht.style,"touchAction"),Qt=Jt!==r,Kt="compute",te="auto",ee="manipulation",ie="none",ne="pan-x",re="pan-y";$.prototype={set:function(t){t==Kt&amp;&amp;(t=this.compute()),Qt&amp;&amp;(this.manager.element.style[Jt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return a(this.manager.recognizers,function(e){p(e.options.enable,[e])&amp;&amp;(t=t.concat(e.getTouchAction()))}),U(t.join(" "))},preventDefaults:function(t){if(!Qt){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var n=this.actions,r=_(n,ie),s=_(n,re),o=_(n,ne);return r||s&amp;&amp;i&amp;Rt||o&amp;&amp;i&amp;zt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var se=1,oe=2,ae=4,le=8,ue=le,he=16,ce=32;G.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&amp;&amp;this.manager.touchAction.update(),this},recognizeWith:function(t){if(o(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=J(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return o(t,"dropRecognizeWith",this)?this:(t=J(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(o(t,"requireFailure",this))return this;var e=this.requireFail;return t=J(t,this),-1===y(e,t)&amp;&amp;(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(o(t,"dropRequireFailure",this))return this;t=J(t,this);var e=y(this.requireFail,t);return e&gt;-1&amp;&amp;this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length&gt;0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(i.options.event+(e?X(n):""),t)}var i=this,n=this.state;le&gt;n&amp;&amp;e(!0),e(),n&gt;=le&amp;&amp;e(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=ce)},canEmit:function(){for(var t=0;t&lt;this.requireFail.length;){if(!(this.requireFail[t].state&amp;(ce|se)))return!1;t++}return!0},recognize:function(t){var e=l({},t);return p(this.options.enable,[this,e])?(this.state&amp;(ue|he|ce)&amp;&amp;(this.state=se),this.state=this.process(e),void(this.state&amp;(oe|ae|le|he)&amp;&amp;this.tryEmit(e))):(this.reset(),void(this.state=ce))},process:function(t){},getTouchAction:function(){},reset:function(){}},h(Q,G,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&amp;(oe|ae),r=this.attrTest(t);return n&amp;&amp;(i&amp;St||!r)?e|he:n||r?i&amp;Tt?e|le:e&amp;oe?e|ae:oe:ce}}),h(K,Q,{defaults:{event:"pan",threshold:10,pointers:1,direction:jt},getTouchAction:function(){var t=this.options.direction,e=[];return t&amp;Rt&amp;&amp;e.push(re),t&amp;zt&amp;&amp;e.push(ne),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&amp;e.direction||(e.direction&amp;Rt?(r=0===s?At:0&gt;s?Pt:Et,i=s!=this.pX,n=Math.abs(t.deltaX)):(r=0===o?At:0&gt;o?It:Nt,i=o!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&amp;&amp;n&gt;e.threshold&amp;&amp;r&amp;e.direction},attrTest:function(t){return Q.prototype.attrTest.call(this,t)&amp;&amp;(this.state&amp;oe||!(this.state&amp;oe)&amp;&amp;this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Z(t.direction);e&amp;&amp;this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),h(tt,Q,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ie]},attrTest:function(t){return this._super.attrTest.call(this,t)&amp;&amp;(Math.abs(t.scale-1)&gt;this.options.threshold||this.state&amp;oe)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale&lt;1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),h(et,G,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[te]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance&lt;e.threshold,r=t.deltaTime&gt;e.time;if(this._input=t,!n||!i||t.eventType&amp;(Tt|St)&amp;&amp;!r)this.reset();else if(t.eventType&amp;Ct)this.reset(),this._timer=s(function(){this.state=ue,this.tryEmit()},e.time,this);else if(t.eventType&amp;Tt)return ue;return ce},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ue&amp;&amp;(t&amp;&amp;t.eventType&amp;Tt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ft(),this.manager.emit(this.options.event,this._input)))}}),h(it,Q,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ie]},attrTest:function(t){return this._super.attrTest.call(this,t)&amp;&amp;(Math.abs(t.rotation)&gt;this.options.threshold||this.state&amp;oe)}}),h(nt,Q,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Rt|zt,pointers:1},getTouchAction:function(){return K.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&amp;(Rt|zt)?e=t.velocity:i&amp;Rt?e=t.velocityX:i&amp;zt&amp;&amp;(e=t.velocityY),this._super.attrTest.call(this,t)&amp;&amp;i&amp;t.direction&amp;&amp;t.distance&gt;this.options.threshold&amp;&amp;dt(e)&gt;this.options.velocity&amp;&amp;t.eventType&amp;Tt},emit:function(t){var e=Z(t.direction);e&amp;&amp;this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(rt,G,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ee]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance&lt;e.threshold,r=t.deltaTime&lt;e.time;if(this.reset(),t.eventType&amp;Ct&amp;&amp;0===this.count)return this.failTimeout();if(n&amp;&amp;r&amp;&amp;i){if(t.eventType!=Tt)return this.failTimeout();var o=this.pTime?t.timeStamp-this.pTime&lt;e.interval:!0,a=!this.pCenter||z(this.pCenter,t.center)&lt;e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&amp;&amp;o?this.count+=1:this.count=1,this._input=t;var l=this.count%e.taps;if(0===l)return this.hasRequireFailures()?(this._timer=s(function(){this.state=ue,this.tryEmit()},e.interval,this),oe):ue}return ce},failTimeout:function(){return this._timer=s(function(){this.state=ce},this.options.interval,this),ce},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ue&amp;&amp;(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),st.VERSION="2.0.4",st.defaults={domEvents:!1,touchAction:Kt,enable:!0,inputTarget:null,inputClass:null,preset:[[it,{enable:!1}],[tt,{enable:!1},["rotate"]],[nt,{direction:Rt}],[K,{direction:Rt},["swipe"]],[rt],[rt,{event:"doubletap",taps:2},["tap"]],[et]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var pe=1,de=2;ot.prototype={set:function(t){return l(this.options,t),t.touchAction&amp;&amp;this.touchAction.update(),t.inputTarget&amp;&amp;(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?de:pe},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,r=e.curRecognizer;(!r||r&amp;&amp;r.state&amp;ue)&amp;&amp;(r=e.curRecognizer=null);for(var s=0;s&lt;n.length;)i=n[s],e.stopped===de||r&amp;&amp;i!=r&amp;&amp;!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&amp;&amp;i.state&amp;(oe|ae|le)&amp;&amp;(r=e.curRecognizer=i),s++}},get:function(t){if(t instanceof G)return t;for(var e=this.recognizers,i=0;i&lt;e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(o(t,"add",this))return this;var e=this.get(t.options.event);return e&amp;&amp;this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(o(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(y(e,t),1),this.touchAction.update(),this},on:function(t,e){var i=this.handlers;return a(v(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this},off:function(t,e){var i=this.handlers;return a(v(t),function(t){e?i[t].splice(y(i[t],e),1):delete i[t]}),this},emit:function(t,e){this.options.domEvents&amp;&amp;lt(t,e);var i=this.handlers[t]&amp;&amp;this.handlers[t].slice();if(i&amp;&amp;i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n&lt;i.length;)i[n](e),n++}},destroy:function(){this.element&amp;&amp;at(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(st,{INPUT_START:Ct,INPUT_MOVE:Dt,INPUT_END:Tt,INPUT_CANCEL:St,STATE_POSSIBLE:se,STATE_BEGAN:oe,STATE_CHANGED:ae,STATE_ENDED:le,STATE_RECOGNIZED:ue,STATE_CANCELLED:he,STATE_FAILED:ce,DIRECTION_NONE:At,DIRECTION_LEFT:Pt,DIRECTION_RIGHT:Et,DIRECTION_UP:It,DIRECTION_DOWN:Nt,DIRECTION_HORIZONTAL:Rt,DIRECTION_VERTICAL:zt,DIRECTION_ALL:jt,Manager:ot,Input:C,TouchAction:$,TouchInput:q,MouseInput:L,PointerEventInput:H,TouchMouseInput:V,SingleTouchInput:B,Recognizer:G,AttrRecognizer:Q,Tap:rt,Pan:K,Swipe:nt,Pinch:tt,Rotate:it,Press:et,on:f,off:g,each:a,merge:u,extend:l,inherit:h,bindFn:c,prefixed:x}),typeof define==ct&amp;&amp;define.amd?define(function(){return st}):"undefined"!=typeof e&amp;&amp;e.exports?e.exports=st:t[n]=st}(window,document,"Hammer")},{}],4:[function(t,e,i){!function(t){"function"==typeof define&amp;&amp;define.amd?define(["jquery"],t):"object"==typeof i?e.exports=t:t(jQuery)}(function(t){function e(e){var o=e||window.event,a=l.call(arguments,1),u=0,c=0,p=0,d=0,f=0,g=0;if(e=t.event.fix(o),e.type="mousewheel","detail"in o&amp;&amp;(p=-1*o.detail),"wheelDelta"in o&amp;&amp;(p=o.wheelDelta),"wheelDeltaY"in o&amp;&amp;(p=o.wheelDeltaY),"wheelDeltaX"in o&amp;&amp;(c=-1*o.wheelDeltaX),"axis"in o&amp;&amp;o.axis===o.HORIZONTAL_AXIS&amp;&amp;(c=-1*p,p=0),u=0===p?c:p,"deltaY"in o&amp;&amp;(p=-1*o.deltaY,u=p),"deltaX"in o&amp;&amp;(c=o.deltaX,0===p&amp;&amp;(u=-1*c)),0!==p||0!==c){if(1===o.deltaMode){var m=t.data(this,"mousewheel-line-height");u*=m,p*=m,c*=m}else if(2===o.deltaMode){var _=t.data(this,"mousewheel-page-height");u*=_,p*=_,c*=_}if(d=Math.max(Math.abs(p),Math.abs(c)),(!s||s&gt;d)&amp;&amp;(s=d,n(o,d)&amp;&amp;(s/=40)),n(o,d)&amp;&amp;(u/=40,c/=40,p/=40),u=Math[u&gt;=1?"floor":"ceil"](u/s),c=Math[c&gt;=1?"floor":"ceil"](c/s),p=Math[p&gt;=1?"floor":"ceil"](p/s),h.settings.normalizeOffset&amp;&amp;this.getBoundingClientRect){var v=this.getBoundingClientRect();f=e.clientX-v.left,g=e.clientY-v.top}return e.deltaX=c,e.deltaY=p,e.deltaFactor=s,e.offsetX=f,e.offsetY=g,e.deltaMode=0,a.unshift(e,u,c,p),r&amp;&amp;clearTimeout(r),r=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,a)}}function i(){s=null}function n(t,e){return h.settings.adjustOldDeltas&amp;&amp;"mousewheel"===t.type&amp;&amp;e%120===0}var r,s,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode&gt;=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var u=o.length;u;)t.event.fixHooks[o[--u]]=t.event.mouseHooks;var h=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=a.length;i;)this.addEventListener(a[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",h.getLineHeight(this)),t.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=a.length;i;)this.removeEventListener(a[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})},{}],5:[function(t,e,i){var n=t("jquery");t("./core"),t("./widget"),t("./position"),t("./menu"),function(t,e){t.widget("ui.autocomplete",{version:"1.10.4",defaultElement:"&lt;input&gt;",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,r=this.element[0].nodeName.toLowerCase(),s="textarea"===r,o="input"===r;this.isMultiLine=s?!0:o?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[s||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var s=t.ui.keyCode;switch(r.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",r);break;case s.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case s.UP:e=!0,this._keyEvent("previous",r);break;case s.DOWN:e=!0,this._keyEvent("next",r);break;case s.ENTER:case s.NUMPAD_ENTER:this.menu.active&amp;&amp;(e=!0,r.preventDefault(),this.menu.select(r));break;case s.TAB:this.menu.active&amp;&amp;this.menu.select(r);break;case s.ESCAPE:this.menu.element.is(":visible")&amp;&amp;(this._value(this.term),this.close(r),r.preventDefault());break;default:i=!0,this._searchTimeout(r)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&amp;&amp;n.preventDefault());if(!i){var r=t.ui.keyCode;switch(n.keyCode){case r.PAGE_UP:this._move("previousPage",n);break;case r.PAGE_DOWN:this._move("nextPage",n);break;case r.UP:this._keyEvent("previous",n);break;case r.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("&lt;ul&gt;").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&amp;&amp;(this.isNewMenu=!1,e.originalEvent&amp;&amp;/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});var n=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:n})?e.originalEvent&amp;&amp;/^key/.test(e.originalEvent.type)&amp;&amp;this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&amp;&amp;(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&amp;&amp;this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("&lt;span&gt;",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&amp;&amp;this._initSource(),"appendTo"===t&amp;&amp;this.menu.element.appendTo(this._appendTo()),"disabled"===t&amp;&amp;e&amp;&amp;this.xhr&amp;&amp;this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&amp;&amp;(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,r){n.xhr&amp;&amp;n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&amp;&amp;(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length&lt;this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&amp;&amp;this.__response(t),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&amp;&amp;(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&amp;&amp;t&amp;&amp;t.length&amp;&amp;!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&amp;&amp;(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&amp;&amp;this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&amp;&amp;e[0].label&amp;&amp;e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&amp;&amp;this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("&lt;li&gt;").append(t("&lt;a&gt;").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&amp;&amp;/^previous/.test(t)||this.menu.isLastItem()&amp;&amp;/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&amp;&amp;(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&amp;")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t&gt;1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&amp;&amp;t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(n)},{"./core":7,"./menu":12,"./position":14,"./widget":17,jquery:18}],6:[function(t,e,i){var n=t("jquery");t("./core"),t("./widget"),function(t,e){var i,n="ui-button ui-widget ui-state-default ui-corner-all",r="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",s=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},o=function(e){var i=e.name,n=e.form,r=t([]);return i&amp;&amp;(i=i.replace(/'/g,"\\'"),r=n?t(n).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),r};t.widget("ui.button",{version:"1.10.4",defaultElement:"&lt;button&gt;",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,s),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,r=this.options,a="checkbox"===this.type||"radio"===this.type,l=a?"":"ui-state-active";null===r.label&amp;&amp;(r.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(n).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){r.disabled||this===i&amp;&amp;t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){r.disabled||t(this).removeClass(l)}).bind("click"+this.eventNamespace,function(t){r.disabled&amp;&amp;(t.preventDefault(),t.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),a&amp;&amp;this.element.bind("change"+this.eventNamespace,function(){e.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return r.disabled?!1:void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(r.disabled)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var i=e.element[0];o(i).not(i).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return r.disabled?!1:(t(this).addClass("ui-state-active"),i=this,void e.document.one("mouseup",function(){i=null}))}).bind("mouseup"+this.eventNamespace,function(){return r.disabled?!1:void t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){return r.disabled?!1:void((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&amp;&amp;t(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&amp;&amp;this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&amp;&amp;t(this).click()})),this._setOption("disabled",r.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&amp;&amp;this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(n+" ui-state-active "+r).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?(this.element.prop("disabled",!!e),void(e&amp;&amp;this.buttonElement.removeClass("ui-state-focus"))):void this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&amp;&amp;this._setOption("disabled",e),"radio"===this.type?o(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&amp;&amp;(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&amp;&amp;this.element.val(this.options.label));var e=this.buttonElement.removeClass(r),i=t("&lt;span&gt;&lt;/span&gt;",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,s=n.primary&amp;&amp;n.secondary,o=[];n.primary||n.secondary?(this.options.text&amp;&amp;o.push("ui-button-text-icon"+(s?"s":n.primary?"-primary":"-secondary")),n.primary&amp;&amp;e.prepend("&lt;span class='ui-button-icon-primary ui-icon "+n.primary+"'&gt;&lt;/span&gt;"),n.secondary&amp;&amp;e.append("&lt;span class='ui-button-icon-secondary ui-icon "+n.secondary+"'&gt;&lt;/span&gt;"),this.options.text||(o.push(s?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):o.push("ui-button-text-only"),e.addClass(o.join(" "))}}),t.widget("ui.buttonset",{version:"1.10.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&amp;&amp;this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(n)},{"./core":7,"./widget":17,jquery:18}],7:[function(t,e,i){var n=t("jquery");!function(t,e){function i(e,i){var r,s,o,a=e.nodeName.toLowerCase();return"area"===a?(r=e.parentNode,s=r.name,e.href&amp;&amp;s&amp;&amp;"map"===r.nodeName.toLowerCase()?(o=t("img[usemap=#"+s+"]")[0],!!o&amp;&amp;n(o)):!1):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a?e.href||i:i)&amp;&amp;n(e)}function n(e){return t.expr.filters.visible(e)&amp;&amp;!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var r=0,s=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&amp;&amp;n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&amp;&amp;/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&amp;&amp;/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,r,s=t(this[0]);s.length&amp;&amp;s[0]!==document;){if(n=s.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&amp;&amp;(r=parseInt(s.css("zIndex"),10),!isNaN(r)&amp;&amp;0!==r))return r;s=s.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++r)})},removeUniqueId:function(){return this.each(function(){s.test(this.id)&amp;&amp;t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),r=isNaN(n);return(r||n&gt;=0)&amp;&amp;i(e,!r)}}),t("&lt;a&gt;").outerWidth(1).jquery||t.each(["Width","Height"],function(i,n){function r(e,i,n,r){return t.each(s,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&amp;&amp;(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),r&amp;&amp;(i-=parseFloat(t.css(e,"margin"+this))||0);
        }),i}var s="Width"===n?["Left","Right"]:["Top","Bottom"],o=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?a["inner"+n].call(this):this.each(function(){t(this).css(o,r(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){t(this).css(o,r(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("&lt;a&gt;").data("a-b","a").removeData("a-b").data("a-b")&amp;&amp;(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var r,s=t.ui[e].prototype;for(r in n)s.plugins[r]=s.plugins[r]||[],s.plugins[r].push([i,n[r]])},call:function(t,e,i){var n,r=t.plugins[e];if(r&amp;&amp;t.element[0].parentNode&amp;&amp;11!==t.element[0].parentNode.nodeType)for(n=0;n&lt;r.length;n++)t.options[r[n][0]]&amp;&amp;r[n][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&amp;&amp;"left"===i?"scrollLeft":"scrollTop",r=!1;return e[n]&gt;0?!0:(e[n]=1,r=e[n]&gt;0,e[n]=0,r)}})}(n)},{jquery:18}],8:[function(t,e,i){var n=t("jquery");t("./core"),function(t,e){function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.dpDiv=n(t("&lt;div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'&gt;&lt;/div&gt;"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&amp;&amp;t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&amp;&amp;t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){t.datepicker._isDisabledDatepicker(s.inline?e.parent()[0]:s.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&amp;&amp;t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&amp;&amp;t(this).addClass("ui-datepicker-next-hover"))})}function r(e,i){t.extend(e,i);for(var n in i)null==i[n]&amp;&amp;(e[n]=i[n]);return e}t.extend(t.ui,{datepicker:{version:"1.10.4"}});var s,o="datepicker";t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return r(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,r,s;n=e.nodeName.toLowerCase(),r="div"===n||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),s=this._newInst(t(e),r),s.settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,s):r&amp;&amp;this._inlineDatepicker(e,s)},_newInst:function(e,i){var r=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("&lt;div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'&gt;&lt;/div&gt;")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,o,i),i.settings.disabled&amp;&amp;this._disableDatepicker(e))},_attachments:function(e,i){var n,r,s,o=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&amp;&amp;i.append.remove(),o&amp;&amp;(i.append=t("&lt;span class='"+this._appendClass+"'&gt;"+o+"&lt;/span&gt;"),e[a?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&amp;&amp;i.trigger.remove(),n=this._get(i,"showOn"),("focus"===n||"both"===n)&amp;&amp;e.focus(this._showDatepicker),("button"===n||"both"===n)&amp;&amp;(r=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("&lt;img/&gt;").addClass(this._triggerClass).attr({src:s,alt:r,title:r}):t("&lt;button type='button'&gt;&lt;/button&gt;").addClass(this._triggerClass).html(s?t("&lt;img/&gt;").attr({src:s,alt:r,title:r}):r)),e[a?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&amp;&amp;t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&amp;&amp;t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&amp;&amp;!t.inline){var e,i,n,r,s=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&amp;&amp;(e=function(t){for(i=0,n=0,r=0;r&lt;t.length;r++)t[r].length&gt;i&amp;&amp;(i=t[r].length,n=r);return n},s.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,o,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&amp;&amp;this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,a){var l,u,h,c,p,d=this._dialogInst;return d||(this.uuid+=1,l="dp"+this.uuid,this._dialogInput=t("&lt;input type='text' id='"+l+"' style='position: absolute; top: -100px; width: 0px;'/&gt;"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],o,d)),r(d.settings,s||{}),i=i&amp;&amp;i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(u=document.documentElement.clientWidth,h=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,p=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[u/2-100+c,h/2-150+p]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&amp;&amp;t.blockUI(this.dpDiv),t.data(this._dialogInput[0],o,d),this},_destroyDatepicker:function(e){var i,n=t(e),r=t.data(e,o);n.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),t.removeData(e,o),"input"===i?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&amp;&amp;n.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,n,r=t(e),s=t.data(e,o);r.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&amp;&amp;(n=r.children("."+this._inlineClass),n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,r=t(e),s=t.data(e,o);r.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&amp;&amp;(n=r.children("."+this._inlineClass),n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e&lt;this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,o)}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,n,s){var o,a,l,u,h=this._getInst(i);return 2===arguments.length&amp;&amp;"string"==typeof n?"defaults"===n?t.extend({},t.datepicker._defaults):h?"all"===n?t.extend({},h.settings):this._get(h,n):null:(o=n||{},"string"==typeof n&amp;&amp;(o={},o[n]=s),void(h&amp;&amp;(this._curInst===h&amp;&amp;this._hideDatepicker(),a=this._getDateDatepicker(i,!0),l=this._getMinMaxDate(h,"min"),u=this._getMinMaxDate(h,"max"),r(h.settings,o),null!==l&amp;&amp;o.dateFormat!==e&amp;&amp;o.minDate===e&amp;&amp;(h.settings.minDate=this._formatDate(h,l)),null!==u&amp;&amp;o.dateFormat!==e&amp;&amp;o.maxDate===e&amp;&amp;(h.settings.maxDate=this._formatDate(h,u)),"disabled"in o&amp;&amp;(o.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),h),this._autoSize(h),this._setDate(h,a),this._updateAlternate(h),this._updateDatepicker(h))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&amp;&amp;this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&amp;&amp;(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&amp;&amp;!i.inline&amp;&amp;this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,r,s=t.datepicker._getInst(e.target),o=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return r=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv),r[0]&amp;&amp;t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,r[0]),i=t.datepicker._get(s,"onSelect"),i?(n=t.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[n,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,a?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&amp;&amp;t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,a?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&amp;&amp;t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&amp;&amp;e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&amp;&amp;(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,r=t.datepicker._getInst(e.target);return t.datepicker._get(r,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(r,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" "&gt;n||!i||i.indexOf(n)&gt;-1):void 0},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&amp;&amp;(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(r){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&amp;&amp;(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&amp;&amp;t.datepicker._lastInput!==e){var i,n,s,o,a,l,u;i=t.datepicker._getInst(e),t.datepicker._curInst&amp;&amp;t.datepicker._curInst!==i&amp;&amp;(t.datepicker._curInst.dpDiv.stop(!0,!0),i&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker._get(i,"beforeShow"),s=n?n.apply(e,[e,i]):{},s!==!1&amp;&amp;(r(i.settings,s),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&amp;&amp;(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each(function(){return o|="fixed"===t(this).css("position"),!o}),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),a=t.datepicker._checkOffset(i,a,o),i.dpDiv.css({position:t.datepicker._inDialog&amp;&amp;t.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),u=t.datepicker._get(i,"duration"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&amp;&amp;t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),u):i.dpDiv[l||"show"](l?u:null),t.datepicker._shouldFocusInput(i)&amp;&amp;i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,s=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,n=this._getNumberOfMonths(e),r=n[1],o=17;e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r&gt;1&amp;&amp;e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",o*r+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;t.datepicker._shouldFocusInput(e)&amp;&amp;e.input.focus(),e.yearshtml&amp;&amp;(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&amp;&amp;e.yearshtml&amp;&amp;e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&amp;&amp;t.input.is(":visible")&amp;&amp;!t.input.is(":disabled")&amp;&amp;!t.input.is(":focus")},_checkOffset:function(e,i,n){var r=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?r-o:0,i.left-=n&amp;&amp;i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&amp;&amp;i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r&gt;l&amp;&amp;l&gt;r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+s&gt;u&amp;&amp;u&gt;s?Math.abs(s+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),r=this._get(n,"isRTL");e&amp;&amp;("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,r,s,a=this._curInst;!a||e&amp;&amp;a!==t.data(e,o)||this._datepickerShowing&amp;&amp;(i=this._get(a,"showAnim"),n=this._get(a,"duration"),r=function(){t.datepicker._tidyDialog(a)},t.effects&amp;&amp;(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,r):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,r),i||r(),this._datepickerShowing=!1,s=this._get(a,"onClose"),s&amp;&amp;s.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&amp;&amp;(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&amp;&amp;(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&amp;&amp;0===i.parents("#"+t.datepicker._mainDivId).length&amp;&amp;!i.hasClass(t.datepicker.markerClassName)&amp;&amp;!i.closest("."+t.datepicker._triggerClass).length&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&amp;&amp;t.datepicker._curInst!==n)&amp;&amp;t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var r=t(e),s=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(s,i+("M"===n?this._get(s,"showCurrentAtPos"):0),n),this._updateDatepicker(s))},_gotoToday:function(e){var i,n=t(e),r=this._getInst(n[0]);this._get(r,"gotoCurrent")&amp;&amp;r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var r=t(e),s=this._getInst(r[0]);s["selected"+("M"===n?"Month":"Year")]=s["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(r)},_selectDay:function(e,i,n,r){var s,o=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(s=this._getInst(o[0]),s.selectedDay=s.currentDay=t("a",r).html(),s.selectedMonth=s.currentMonth=i,s.selectedYear=s.currentYear=n,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,r=t(e),s=this._getInst(r[0]);i=null!=i?i:this._formatDate(s),s.input&amp;&amp;s.input.val(i),this._updateAlternate(s),n=this._get(s,"onSelect"),n?n.apply(s.input?s.input[0]:null,[i,s]):s.input&amp;&amp;s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&amp;&amp;s.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,n,r,s=this._get(e,"altField");s&amp;&amp;(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),r=this.formatDate(i,n,this._getFormatConfig(e)),t(s).each(function(){t(this).val(r)}))},noWeekends:function(t){var e=t.getDay();return[e&gt;0&amp;&amp;6&gt;e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?i.toString():i+"",""===i)return null;var r,s,o,a,l=0,u=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),c=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,d=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,y=!1,b=function(t){var i=r+1&lt;e.length&amp;&amp;e.charAt(r+1)===t;return i&amp;&amp;r++,i},w=function(t){var e=b(t),n="@"===t?14:"!"===t?20:"y"===t&amp;&amp;e?4:"o"===t?3:2,r=new RegExp("^\\d{1,"+n+"}"),s=i.substring(l).match(r);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},x=function(e,n,r){var s=-1,o=t.map(b(e)?r:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(o,function(t,e){var n=e[1];return i.substr(l,n.length).toLowerCase()===n.toLowerCase()?(s=e[0],l+=n.length,!1):void 0}),-1!==s)return s+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==e.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r&lt;e.length;r++)if(y)"'"!==e.charAt(r)||b("'")?k():y=!1;else switch(e.charAt(r)){case"d":_=w("d");break;case"D":x("D",c,p);break;case"o":v=w("o");break;case"m":m=w("m");break;case"M":m=x("M",d,f);break;case"y":g=w("y");break;case"@":a=new Date(w("@")),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case"!":a=new Date((w("!")-this._ticksTo1970)/1e4),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case"'":b("'")?k():y=!0;break;default:k()}if(l&lt;i.length&amp;&amp;(o=i.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===g?g=(new Date).getFullYear():100&gt;g&amp;&amp;(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h&gt;=g?0:-100)),v&gt;-1)for(m=1,_=v;;){if(s=this._getDaysInMonth(g,m-1),s&gt;=_)break;m++,_-=s}if(a=this._daylightSavingAdjust(new Date(g,m-1,_)),a.getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==_)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1&lt;t.length&amp;&amp;t.charAt(n+1)===e;return i&amp;&amp;n++,i},u=function(t,e,i){var n=""+e;if(l(t))for(;n.length&lt;i;)n="0"+n;return n},h=function(t,e,i,n){return l(t)?n[e]:i[e]},c="",p=!1;if(e)for(n=0;n&lt;t.length;n++)if(p)"'"!==t.charAt(n)||l("'")?c+=t.charAt(n):p=!1;else switch(t.charAt(n)){case"d":c+=u("d",e.getDate(),2);break;case"D":c+=h("D",e.getDay(),r,s);break;case"o":c+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=u("m",e.getMonth()+1,2);break;case"M":c+=h("M",e.getMonth(),o,a);break;case"y":c+=l("y")?e.getFullYear():(e.getYear()%100&lt;10?"0":"")+e.getYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?c+="'":p=!0;break;default:c+=t.charAt(n)}return c},_possibleChars:function(t){var e,i="",n=!1,r=function(i){var n=e+1&lt;t.length&amp;&amp;t.charAt(e+1)===i;return n&amp;&amp;e++,n};for(e=0;e&lt;t.length;e++)if(n)"'"!==t.charAt(e)||r("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":r("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),s=r,o=this._getFormatConfig(t);try{s=this.parseDate(i,n,o)||r}catch(a){n=e?"":n}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=n?s.getDate():0,t.currentMonth=n?s.getMonth():0,t.currentYear=n?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var r=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},s=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(n){}for(var r=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=r.getFullYear(),o=r.getMonth(),a=r.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(i);u;){switch(u[2]||"d"){case"d":case"D":a+=parseInt(u[1],10);break;case"w":case"W":a+=7*parseInt(u[1],10);break;case"m":case"M":o+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,o));break;case"y":case"Y":s+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,o))}u=l.exec(i)}return new Date(s,o,a)},o=null==i||""===i?n:"string"==typeof i?s(i):"number"==typeof i?isNaN(i)?n:r(i):new Date(i.getTime());return o=o&amp;&amp;"Invalid Date"===o.toString()?n:o,o&amp;&amp;(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()&gt;12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,r=t.selectedMonth,s=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),r===t.selectedMonth&amp;&amp;s===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&amp;&amp;t.input.val(n?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&amp;&amp;""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F,L,H=new Date,B=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),W=this._get(t,"isRTL"),q=this._get(t,"showButtonPanel"),Y=this._get(t,"hideIfNoPrevNext"),V=this._get(t,"navigationAsDateFormat"),$=this._getNumberOfMonths(t),U=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),X=1!==$[0]||1!==$[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),Q=this._getMinMaxDate(t,"max"),K=t.drawMonth-U,tt=t.drawYear;if(0&gt;K&amp;&amp;(K+=12,tt--),Q)for(e=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-$[0]*$[1]+1,Q.getDate())),e=J&amp;&amp;J&gt;e?J:e;this._daylightSavingAdjust(new Date(tt,K,1))&gt;e;)K--,0&gt;K&amp;&amp;(K=11,tt--);for(t.drawMonth=K,t.drawYear=tt,i=this._get(t,"prevText"),i=V?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,K-G,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,K)?"&lt;a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'&gt;"+i+"&lt;/span&gt;&lt;/a&gt;":Y?"":"&lt;a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'&gt;"+i+"&lt;/span&gt;&lt;/a&gt;",r=this._get(t,"nextText"),r=V?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,K+G,1)),this._getFormatConfig(t)):r,s=this._canAdjustMonth(t,1,tt,K)?"&lt;a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'&gt;"+r+"&lt;/span&gt;&lt;/a&gt;":Y?"":"&lt;a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'&gt;"+r+"&lt;/span&gt;&lt;/a&gt;",o=this._get(t,"currentText"),a=this._get(t,"gotoCurrent")&amp;&amp;t.currentDay?Z:B,o=V?this.formatDate(o,a,this._getFormatConfig(t)):o,l=t.inline?"":"&lt;button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'&gt;"+this._get(t,"closeText")+"&lt;/button&gt;",u=q?"&lt;div class='ui-datepicker-buttonpane ui-widget-content'&gt;"+(W?l:"")+(this._isInRange(t,a)?"&lt;button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'&gt;"+o+"&lt;/button&gt;":"")+(W?"":l)+"&lt;/div&gt;":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,c=this._get(t,"showWeek"),p=this._get(t,"dayNames"),d=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),b="",x=0;x&lt;$[0];x++){for(k="",this.maxRows=4,M=0;M&lt;$[1];M++){if(C=this._daylightSavingAdjust(new Date(tt,K,t.selectedDay)),D=" ui-corner-all",T="",X){if(T+="&lt;div class='ui-datepicker-group",$[1]&gt;1)switch(M){case 0:T+=" ui-datepicker-group-first",D=" ui-corner-"+(W?"right":"left");break;case $[1]-1:T+=" ui-datepicker-group-last",D=" ui-corner-"+(W?"left":"right");break;default:T+=" ui-datepicker-group-middle",D=""}T+="'&gt;"}for(T+="&lt;div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'&gt;"+(/all|left/.test(D)&amp;&amp;0===x?W?s:n:"")+(/all|right/.test(D)&amp;&amp;0===x?W?n:s:"")+this._generateMonthYearHeader(t,K,tt,J,Q,x&gt;0||M&gt;0,f,g)+"&lt;/div&gt;&lt;table class='ui-datepicker-calendar'&gt;&lt;thead&gt;&lt;tr&gt;",S=c?"&lt;th class='ui-datepicker-week-col'&gt;"+this._get(t,"weekHeader")+"&lt;/th&gt;":"",w=0;7&gt;w;w++)A=(w+h)%7,S+="&lt;th"+((w+h+6)%7&gt;=5?" class='ui-datepicker-week-end'":"")+"&gt;&lt;span title='"+p[A]+"'&gt;"+d[A]+"&lt;/span&gt;&lt;/th&gt;";for(T+=S+"&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;",P=this._getDaysInMonth(tt,K),tt===t.selectedYear&amp;&amp;K===t.selectedMonth&amp;&amp;(t.selectedDay=Math.min(t.selectedDay,P)),E=(this._getFirstDayOfMonth(tt,K)-h+7)%7,I=Math.ceil((E+P)/7),N=X&amp;&amp;this.maxRows&gt;I?this.maxRows:I,this.maxRows=N,R=this._daylightSavingAdjust(new Date(tt,K,1-E)),z=0;N&gt;z;z++){for(T+="&lt;tr&gt;",j=c?"&lt;td class='ui-datepicker-week-col'&gt;"+this._get(t,"calculateWeek")(R)+"&lt;/td&gt;":"",w=0;7&gt;w;w++)O=m?m.apply(t.input?t.input[0]:null,[R]):[!0,""],F=R.getMonth()!==K,L=F&amp;&amp;!v||!O[0]||J&amp;&amp;J&gt;R||Q&amp;&amp;R&gt;Q,j+="&lt;td class='"+((w+h+6)%7&gt;=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(R.getTime()===C.getTime()&amp;&amp;K===t.selectedMonth&amp;&amp;t._keyEvent||y.getTime()===R.getTime()&amp;&amp;y.getTime()===C.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&amp;&amp;!_?"":" "+O[1]+(R.getTime()===Z.getTime()?" "+this._currentClass:"")+(R.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(F&amp;&amp;!_||!O[2]?"":" title='"+O[2].replace(/'/g,"&amp;#39;")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+"&gt;"+(F&amp;&amp;!_?"&amp;#xa0;":L?"&lt;span class='ui-state-default'&gt;"+R.getDate()+"&lt;/span&gt;":"&lt;a class='ui-state-default"+(R.getTime()===B.getTime()?" ui-state-highlight":"")+(R.getTime()===Z.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'&gt;"+R.getDate()+"&lt;/a&gt;")+"&lt;/td&gt;",
        R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);T+=j+"&lt;/tr&gt;"}K++,K&gt;11&amp;&amp;(K=0,tt++),T+="&lt;/tbody&gt;&lt;/table&gt;"+(X?"&lt;/div&gt;"+($[0]&gt;0&amp;&amp;M===$[1]-1?"&lt;div class='ui-datepicker-row-break'&gt;&lt;/div&gt;":""):""),k+=T}b+=k}return b+=u,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,r,s,o,a){var l,u,h,c,p,d,f,g,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),y="&lt;div class='ui-datepicker-title'&gt;",b="";if(s||!m)b+="&lt;span class='ui-datepicker-month'&gt;"+o[e]+"&lt;/span&gt;";else{for(l=n&amp;&amp;n.getFullYear()===i,u=r&amp;&amp;r.getFullYear()===i,b+="&lt;select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'&gt;",h=0;12&gt;h;h++)(!l||h&gt;=n.getMonth())&amp;&amp;(!u||h&lt;=r.getMonth())&amp;&amp;(b+="&lt;option value='"+h+"'"+(h===e?" selected='selected'":"")+"&gt;"+a[h]+"&lt;/option&gt;");b+="&lt;/select&gt;"}if(v||(y+=b+(!s&amp;&amp;m&amp;&amp;_?"":"&amp;#xa0;")),!t.yearshtml)if(t.yearshtml="",s||!_)y+="&lt;span class='ui-datepicker-year'&gt;"+i+"&lt;/span&gt;";else{for(c=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),d=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e},f=d(c[0]),g=Math.max(f,d(c[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="&lt;select class='ui-datepicker-year' data-handler='selectYear' data-event='change'&gt;";g&gt;=f;f++)t.yearshtml+="&lt;option value='"+f+"'"+(f===i?" selected='selected'":"")+"&gt;"+f+"&lt;/option&gt;";t.yearshtml+="&lt;/select&gt;",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),v&amp;&amp;(y+=(!s&amp;&amp;m&amp;&amp;_?"":"&amp;#xa0;")+b),y+="&lt;/div&gt;"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),r=t.drawMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,s)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),("M"===i||"Y"===i)&amp;&amp;this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&amp;&amp;i&gt;e?i:e;return n&amp;&amp;r&gt;n?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&amp;&amp;e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(0&gt;e?e:r[0]*r[1]),1));return 0&gt;e&amp;&amp;s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),o=null,a=null,l=this._get(t,"yearRange");return l&amp;&amp;(i=l.split(":"),n=(new Date).getFullYear(),o=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&amp;&amp;(o+=n),i[1].match(/[+\-].*/)&amp;&amp;(a+=n)),(!r||e.getTime()&gt;=r.getTime())&amp;&amp;(!s||e.getTime()&lt;=s.getTime())&amp;&amp;(!o||e.getFullYear()&gt;=o)&amp;&amp;(!a||e.getFullYear()&lt;=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&amp;&amp;t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&amp;&amp;"getDate"!==e&amp;&amp;"widget"!==e?"option"===e&amp;&amp;2===arguments.length&amp;&amp;"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.4"}(n)},{"./core":7,jquery:18}],9:[function(t,e,i){var n=t("jquery");t("./core"),t("./mouse"),t("./widget"),function(t,e){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&amp;&amp;this.element.addClass("ui-draggable"),this.options.disabled&amp;&amp;this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length&gt;0?!1:(this.handle=this._getHandle(e),this.handle?(t(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){t("&lt;div class='ui-draggable-iframeFix' style='background: #fff;'&gt;&lt;/div&gt;").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&amp;&amp;(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&amp;&amp;this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&amp;&amp;!i.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&amp;&amp;(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",e,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&amp;&amp;"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&amp;&amp;"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&amp;&amp;!this.options.dropBehaviour&amp;&amp;(n=t.ui.ddmanager.drop(this,e)),this.dropped&amp;&amp;(n=this.dropped,this.dropped=!1),"original"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&amp;&amp;!n||"valid"===this.options.revert&amp;&amp;n||this.options.revert===!0||t.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&amp;&amp;i._clear()}):this._trigger("stop",e)!==!1&amp;&amp;this._clear(),!1):!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&amp;&amp;(e=e.split(" ")),t.isArray(e)&amp;&amp;(e={left:+e[0],top:+e[1]||0}),"left"in e&amp;&amp;(this.offset.click.left=e.left+this.margins.left),"right"in e&amp;&amp;(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&amp;&amp;(this.offset.click.top=e.top+this.margins.top),"bottom"in e&amp;&amp;(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&amp;&amp;this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])&amp;&amp;(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&amp;&amp;"html"===this.offsetParent[0].tagName.toLowerCase()&amp;&amp;t.ui.ie)&amp;&amp;(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;return r.containment?"window"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&amp;&amp;(r.containment=this.helper[0].parentNode),i=t(r.containment),n=i[0],void(n&amp;&amp;(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,r,s,o=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,u=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&amp;&amp;(this.containment&amp;&amp;(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left&lt;i[0]&amp;&amp;(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top&lt;i[1]&amp;&amp;(u=i[1]+this.offset.click.top),e.pageX-this.offset.click.left&gt;i[2]&amp;&amp;(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top&gt;i[3]&amp;&amp;(u=i[3]+this.offset.click.top)),o.grid&amp;&amp;(r=o.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,u=i?r-this.offset.click.top&gt;=i[1]||r-this.offset.click.top&gt;i[3]?r:r-this.offset.click.top&gt;=i[1]?r-o.grid[1]:r+o.grid[1]:r,s=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?s-this.offset.click.left&gt;=i[0]||s-this.offset.click.left&gt;i[2]?s:s-this.offset.click.left&gt;=i[0]?s-o.grid[0]:s+o.grid[0]:s)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"===e&amp;&amp;(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var n=t(this).data("ui-draggable"),r=n.options,s=t.extend({},i,{item:n.element});n.sortables=[],t(r.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&amp;&amp;!i.options.disabled&amp;&amp;(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,s))})},stop:function(e,i){var n=t(this).data("ui-draggable"),r=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&amp;&amp;(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&amp;&amp;this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,r))})},drag:function(e,i){var n=t(this).data("ui-draggable"),r=this;t.each(n.sortables,function(){var s=!1,o=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&amp;&amp;(s=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==o&amp;&amp;this.instance._intersectsWith(this.instance.containerCache)&amp;&amp;t.contains(o.instance.element[0],this.instance.element[0])&amp;&amp;(s=!1),s})),s?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(r).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&amp;&amp;this.instance._mouseDrag(e)):this.instance.isOver&amp;&amp;(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&amp;&amp;this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&amp;&amp;(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&amp;&amp;t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),r=t(this).data("ui-draggable").options;n.css("opacity")&amp;&amp;(r._opacity=n.css("opacity")),n.css("opacity",r.opacity)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._opacity&amp;&amp;t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&amp;&amp;"HTML"!==e.scrollParent[0].tagName&amp;&amp;(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),n=i.options,r=!1;i.scrollParent[0]!==document&amp;&amp;"HTML"!==i.scrollParent[0].tagName?(n.axis&amp;&amp;"x"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY&lt;n.scrollSensitivity?i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top&lt;n.scrollSensitivity&amp;&amp;(i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&amp;&amp;"y"===n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX&lt;n.scrollSensitivity?i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left&lt;n.scrollSensitivity&amp;&amp;(i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&amp;&amp;"x"===n.axis||(e.pageY-t(document).scrollTop()&lt;n.scrollSensitivity?r=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())&lt;n.scrollSensitivity&amp;&amp;(r=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&amp;&amp;"y"===n.axis||(e.pageX-t(document).scrollLeft()&lt;n.scrollSensitivity?r=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())&lt;n.scrollSensitivity&amp;&amp;(r=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),r!==!1&amp;&amp;t.ui.ddmanager&amp;&amp;!n.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("ui-draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=t(this),n=i.offset();this!==e.element[0]&amp;&amp;e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(e,i){var n,r,s,o,a,l,u,h,c,p,d=t(this).data("ui-draggable"),f=d.options,g=f.snapTolerance,m=i.offset.left,_=m+d.helperProportions.width,v=i.offset.top,y=v+d.helperProportions.height;for(c=d.snapElements.length-1;c&gt;=0;c--)a=d.snapElements[c].left,l=a+d.snapElements[c].width,u=d.snapElements[c].top,h=u+d.snapElements[c].height,a-g&gt;_||m&gt;l+g||u-g&gt;y||v&gt;h+g||!t.contains(d.snapElements[c].item.ownerDocument,d.snapElements[c].item)?(d.snapElements[c].snapping&amp;&amp;d.options.snap.release&amp;&amp;d.options.snap.release.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[c].item})),d.snapElements[c].snapping=!1):("inner"!==f.snapMode&amp;&amp;(n=Math.abs(u-y)&lt;=g,r=Math.abs(h-v)&lt;=g,s=Math.abs(a-_)&lt;=g,o=Math.abs(l-m)&lt;=g,n&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:u-d.helperProportions.height,left:0}).top-d.margins.top),r&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:h,left:0}).top-d.margins.top),s&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:a-d.helperProportions.width}).left-d.margins.left),o&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:l}).left-d.margins.left)),p=n||r||s||o,"outer"!==f.snapMode&amp;&amp;(n=Math.abs(u-v)&lt;=g,r=Math.abs(h-y)&lt;=g,s=Math.abs(a-m)&lt;=g,o=Math.abs(l-_)&lt;=g,n&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:u,left:0}).top-d.margins.top),r&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:h-d.helperProportions.height,left:0}).top-d.margins.top),s&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:a}).left-d.margins.left),o&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:l-d.helperProportions.width}).left-d.margins.left)),!d.snapElements[c].snapping&amp;&amp;(n||r||s||o||p)&amp;&amp;d.options.snap.snap&amp;&amp;d.options.snap.snap.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[c].item})),d.snapElements[c].snapping=n||r||s||o||p)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,n=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});n.length&amp;&amp;(e=parseInt(t(n[0]).css("zIndex"),10)||0,t(n).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+n.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),r=t(this).data("ui-draggable").options;n.css("zIndex")&amp;&amp;(r._zIndex=n.css("zIndex")),n.css("zIndex",r.zIndex)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._zIndex&amp;&amp;t(i.helper).css("zIndex",n._zIndex)}})}(n)},{"./core":7,"./mouse":13,"./widget":17,jquery:18}],10:[function(t,e,i){var n=t("jquery");t("./core"),t("./widget"),t("./mouse"),t("./draggable"),function(t,e){function i(t,e,i){return t&gt;e&amp;&amp;e+i&gt;t}t.widget("ui.droppable",{version:"1.10.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},t.ui.ddmanager.droppables[i.scope]=t.ui.ddmanager.droppables[i.scope]||[],t.ui.ddmanager.droppables[i.scope].push(this),i.addClasses&amp;&amp;this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];e&lt;i.length;e++)i[e]===this&amp;&amp;i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&amp;&amp;(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&amp;&amp;this.element.addClass(this.options.activeClass),i&amp;&amp;this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&amp;&amp;this.element.removeClass(this.options.activeClass),i&amp;&amp;this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&amp;&amp;(i.currentItem||i.element)[0]!==this.element[0]&amp;&amp;this.accept.call(this.element[0],i.currentItem||i.element)&amp;&amp;(this.options.hoverClass&amp;&amp;this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&amp;&amp;(i.currentItem||i.element)[0]!==this.element[0]&amp;&amp;this.accept.call(this.element[0],i.currentItem||i.element)&amp;&amp;(this.options.hoverClass&amp;&amp;this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,r=!1;return n&amp;&amp;(n.currentItem||n.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"ui-droppable");return e.options.greedy&amp;&amp;!e.options.disabled&amp;&amp;e.options.scope===n.options.scope&amp;&amp;e.accept.call(e.element[0],n.currentItem||n.element)&amp;&amp;t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(r=!0,!1):void 0}),r?!1:this.accept.call(this.element[0],n.currentItem||n.element)?(this.options.activeClass&amp;&amp;this.element.removeClass(this.options.activeClass),this.options.hoverClass&amp;&amp;this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,e,n){if(!e.offset)return!1;var r,s,o=(t.positionAbs||t.position.absolute).left,a=(t.positionAbs||t.position.absolute).top,l=o+t.helperProportions.width,u=a+t.helperProportions.height,h=e.offset.left,c=e.offset.top,p=h+e.proportions().width,d=c+e.proportions().height;switch(n){case"fit":return o&gt;=h&amp;&amp;p&gt;=l&amp;&amp;a&gt;=c&amp;&amp;d&gt;=u;case"intersect":return h&lt;o+t.helperProportions.width/2&amp;&amp;l-t.helperProportions.width/2&lt;p&amp;&amp;c&lt;a+t.helperProportions.height/2&amp;&amp;u-t.helperProportions.height/2&lt;d;case"pointer":return r=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,s=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,i(s,c,e.proportions().height)&amp;&amp;i(r,h,e.proportions().width);case"touch":return(a&gt;=c&amp;&amp;d&gt;=a||u&gt;=c&amp;&amp;d&gt;=u||c&gt;a&amp;&amp;u&gt;d)&amp;&amp;(o&gt;=h&amp;&amp;p&gt;=o||l&gt;=h&amp;&amp;p&gt;=l||h&gt;o&amp;&amp;l&gt;p);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var n,r,s=t.ui.ddmanager.droppables[e.options.scope]||[],o=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n&lt;s.length;n++)if(!(s[n].options.disabled||e&amp;&amp;!s[n].accept.call(s[n].element[0],e.currentItem||e.element))){for(r=0;r&lt;a.length;r++)if(a[r]===s[n].element[0]){s[n].proportions().height=0;continue t}s[n].visible="none"!==s[n].element.css("display"),s[n].visible&amp;&amp;("mousedown"===o&amp;&amp;s[n]._activate.call(s[n],i),s[n].offset=s[n].element.offset(),s[n].proportions({width:s[n].element[0].offsetWidth,height:s[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&amp;&amp;(!this.options.disabled&amp;&amp;this.visible&amp;&amp;t.ui.intersect(e,this,this.options.tolerance)&amp;&amp;(n=this._drop.call(this,i)||n),!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.accept.call(this.element[0],e.currentItem||e.element)&amp;&amp;(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&amp;&amp;t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&amp;&amp;!this.greedyChild&amp;&amp;this.visible){var n,r,s,o=t.ui.intersect(e,this,this.options.tolerance),a=!o&amp;&amp;this.isover?"isout":o&amp;&amp;!this.isover?"isover":null;a&amp;&amp;(this.options.greedy&amp;&amp;(r=this.options.scope,s=this.element.parents(":data(ui-droppable)").filter(function(){return t.data(this,"ui-droppable").options.scope===r}),s.length&amp;&amp;(n=t.data(s[0],"ui-droppable"),n.greedyChild="isover"===a)),n&amp;&amp;"isover"===a&amp;&amp;(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&amp;&amp;"isout"===a&amp;&amp;(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(n)},{"./core":7,"./draggable":9,"./mouse":13,"./widget":17,jquery:18}],11:[function(t,e,i){var n=t("jquery");!function(t,e){function i(e,i){var r,s,o,a=e.nodeName.toLowerCase();return"area"===a?(r=e.parentNode,s=r.name,e.href&amp;&amp;s&amp;&amp;"map"===r.nodeName.toLowerCase()?(o=t("img[usemap=#"+s+"]")[0],!!o&amp;&amp;n(o)):!1):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a?e.href||i:i)&amp;&amp;n(e)}function n(e){return t.expr.filters.visible(e)&amp;&amp;!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var r=0,s=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&amp;&amp;n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&amp;&amp;/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&amp;&amp;/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,r,s=t(this[0]);s.length&amp;&amp;s[0]!==document;){if(n=s.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&amp;&amp;(r=parseInt(s.css("zIndex"),10),!isNaN(r)&amp;&amp;0!==r))return r;s=s.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++r)})},removeUniqueId:function(){return this.each(function(){s.test(this.id)&amp;&amp;t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),r=isNaN(n);return(r||n&gt;=0)&amp;&amp;i(e,!r)}}),t("&lt;a&gt;").outerWidth(1).jquery||t.each(["Width","Height"],function(i,n){function r(e,i,n,r){return t.each(s,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&amp;&amp;(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),r&amp;&amp;(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var s="Width"===n?["Left","Right"]:["Top","Bottom"],o=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,
        outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?a["inner"+n].call(this):this.each(function(){t(this).css(o,r(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){t(this).css(o,r(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("&lt;a&gt;").data("a-b","a").removeData("a-b").data("a-b")&amp;&amp;(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var r,s=t.ui[e].prototype;for(r in n)s.plugins[r]=s.plugins[r]||[],s.plugins[r].push([i,n[r]])},call:function(t,e,i){var n,r=t.plugins[e];if(r&amp;&amp;t.element[0].parentNode&amp;&amp;11!==t.element[0].parentNode.nodeType)for(n=0;n&lt;r.length;n++)t.options[r[n][0]]&amp;&amp;r[n][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&amp;&amp;"left"===i?"scrollLeft":"scrollTop",r=!1;return e[n]&gt;0?!0:(e[n]=1,r=e[n]&gt;0,e[n]=0,r)}})}(n),function(t,e){var i=0,n=Array.prototype.slice,r=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(s){}r(e)},t.widget=function(e,i,n){var r,s,o,a,l={},u=e.split(".")[0];e=e.split(".")[1],r=u+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][r.toLowerCase()]=function(e){return!!t.data(e,r)},t[u]=t[u]||{},s=t[u][e],o=t[u][e]=function(t,e){return this._createWidget?void(arguments.length&amp;&amp;this._createWidget(t,e)):new o(t,e)},t.extend(o,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},r=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,s=this._superApply;return this._super=t,this._superApply=r,e=n.apply(this,arguments),this._super=i,this._superApply=s,e}}()):void(l[e]=n)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:s?a.widgetEventPrefix:e},l,{constructor:o,namespace:u,widgetName:e,widgetFullName:r}),s?(t.each(s._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)}),delete s._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o)},t.widget.extend=function(i){for(var r,s,o=n.call(arguments,1),a=0,l=o.length;l&gt;a;a++)for(r in o[a])s=o[a][r],o[a].hasOwnProperty(r)&amp;&amp;s!==e&amp;&amp;(t.isPlainObject(s)?i[r]=t.isPlainObject(i[r])?t.widget.extend({},i[r],s):t.widget.extend({},s):i[r]=s);return i},t.widget.bridge=function(i,r){var s=r.prototype.widgetFullName||i;t.fn[i]=function(o){var a="string"==typeof o,l=n.call(arguments,1),u=this;return o=!a&amp;&amp;l.length?t.widget.extend.apply(null,[o].concat(l)):o,a?this.each(function(){var n,r=t.data(this,s);return r?t.isFunction(r[o])&amp;&amp;"_"!==o.charAt(0)?(n=r[o].apply(r,l),n!==r&amp;&amp;n!==e?(u=n&amp;&amp;n.jquery?u.pushStack(n.get()):n,!1):void 0):t.error("no such method '"+o+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+o+"'")}):this.each(function(){var e=t.data(this,s);e?e.option(o||{})._init():t.data(this,s,new r(o,this))}),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"&lt;div&gt;",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&amp;&amp;(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&amp;&amp;this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var r,s,o,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},r=i.split("."),i=r.shift(),r.length){for(s=a[i]=t.widget.extend({},this.options[i]),o=0;o&lt;r.length-1;o++)s[r[o]]=s[r[o]]||{},s=s[r[o]];if(i=r.pop(),n===e)return s[i]===e?null:s[i];s[i]=n}else{if(n===e)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&amp;&amp;(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,i,n){var r,s=this;"boolean"!=typeof e&amp;&amp;(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,function(n,o){function a(){return e||s.options.disabled!==!0&amp;&amp;!t(this).hasClass("ui-state-disabled")?("string"==typeof o?s[o]:o).apply(s,arguments):void 0}"string"!=typeof o&amp;&amp;(a.guid=o.guid=o.guid||a.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+s.eventNamespace,h=l[2];h?r.delegate(h,u,a):i.bind(u,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var r,s,o=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(r in s)r in i||(i[r]=s[r]);return this.element.trigger(i,n),!(t.isFunction(o)&amp;&amp;o.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,r,s){"string"==typeof r&amp;&amp;(r={effect:r});var o,a=r?r===!0||"number"==typeof r?i:r.effect||i:e;r=r||{},"number"==typeof r&amp;&amp;(r={duration:r}),o=!t.isEmptyObject(r),r.complete=s,r.delay&amp;&amp;n.delay(r.delay),o&amp;&amp;t.effects&amp;&amp;t.effects.effect[a]?n[e](r):a!==e&amp;&amp;n[a]?n[a](r.duration,r.easing,s):n.queue(function(i){t(this)[e](),s&amp;&amp;s.call(n[0]),i()})}})}(n),function(t,e){var i=!1;t(document).mouseup(function(){i=!1}),t.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&amp;&amp;t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&amp;&amp;this._mouseUp(e),this._mouseDownEvent=e;var n=this,r=1===e.which,s="string"==typeof this.options.cancel&amp;&amp;e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return r&amp;&amp;!s&amp;&amp;this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&amp;&amp;this._mouseDelayMet(e)&amp;&amp;(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&amp;&amp;t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&amp;&amp;(!document.documentMode||document.documentMode&lt;9)&amp;&amp;!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&amp;&amp;this._mouseDelayMet(e)&amp;&amp;(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&amp;&amp;(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&amp;&amp;t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))&gt;=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(n),function(t,e){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&amp;&amp;this.element.addClass("ui-draggable"),this.options.disabled&amp;&amp;this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length&gt;0?!1:(this.handle=this._getHandle(e),this.handle?(t(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){t("&lt;div class='ui-draggable-iframeFix' style='background: #fff;'&gt;&lt;/div&gt;").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&amp;&amp;(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&amp;&amp;this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&amp;&amp;!i.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&amp;&amp;(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",e,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&amp;&amp;"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&amp;&amp;"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&amp;&amp;!this.options.dropBehaviour&amp;&amp;(n=t.ui.ddmanager.drop(this,e)),this.dropped&amp;&amp;(n=this.dropped,this.dropped=!1),"original"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&amp;&amp;!n||"valid"===this.options.revert&amp;&amp;n||this.options.revert===!0||t.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&amp;&amp;i._clear()}):this._trigger("stop",e)!==!1&amp;&amp;this._clear(),!1):!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&amp;&amp;(e=e.split(" ")),t.isArray(e)&amp;&amp;(e={left:+e[0],top:+e[1]||0}),"left"in e&amp;&amp;(this.offset.click.left=e.left+this.margins.left),"right"in e&amp;&amp;(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&amp;&amp;(this.offset.click.top=e.top+this.margins.top),"bottom"in e&amp;&amp;(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&amp;&amp;this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])&amp;&amp;(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&amp;&amp;"html"===this.offsetParent[0].tagName.toLowerCase()&amp;&amp;t.ui.ie)&amp;&amp;(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;return r.containment?"window"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&amp;&amp;(r.containment=this.helper[0].parentNode),i=t(r.containment),n=i[0],void(n&amp;&amp;(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,r,s,o=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,u=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&amp;&amp;(this.containment&amp;&amp;(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left&lt;i[0]&amp;&amp;(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top&lt;i[1]&amp;&amp;(u=i[1]+this.offset.click.top),e.pageX-this.offset.click.left&gt;i[2]&amp;&amp;(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top&gt;i[3]&amp;&amp;(u=i[3]+this.offset.click.top)),o.grid&amp;&amp;(r=o.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,u=i?r-this.offset.click.top&gt;=i[1]||r-this.offset.click.top&gt;i[3]?r:r-this.offset.click.top&gt;=i[1]?r-o.grid[1]:r+o.grid[1]:r,s=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?s-this.offset.click.left&gt;=i[0]||s-this.offset.click.left&gt;i[2]?s:s-this.offset.click.left&gt;=i[0]?s-o.grid[0]:s+o.grid[0]:s)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"===e&amp;&amp;(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var n=t(this).data("ui-draggable"),r=n.options,s=t.extend({},i,{item:n.element});n.sortables=[],t(r.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&amp;&amp;!i.options.disabled&amp;&amp;(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,s))})},stop:function(e,i){var n=t(this).data("ui-draggable"),r=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&amp;&amp;(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&amp;&amp;this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,r))})},drag:function(e,i){var n=t(this).data("ui-draggable"),r=this;t.each(n.sortables,function(){var s=!1,o=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&amp;&amp;(s=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==o&amp;&amp;this.instance._intersectsWith(this.instance.containerCache)&amp;&amp;t.contains(o.instance.element[0],this.instance.element[0])&amp;&amp;(s=!1),s})),s?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(r).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&amp;&amp;this.instance._mouseDrag(e)):this.instance.isOver&amp;&amp;(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&amp;&amp;this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&amp;&amp;(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&amp;&amp;t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),r=t(this).data("ui-draggable").options;n.css("opacity")&amp;&amp;(r._opacity=n.css("opacity")),n.css("opacity",r.opacity)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._opacity&amp;&amp;t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&amp;&amp;"HTML"!==e.scrollParent[0].tagName&amp;&amp;(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),n=i.options,r=!1;i.scrollParent[0]!==document&amp;&amp;"HTML"!==i.scrollParent[0].tagName?(n.axis&amp;&amp;"x"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY&lt;n.scrollSensitivity?i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top&lt;n.scrollSensitivity&amp;&amp;(i.scrollParent[0].scrollTop=r=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&amp;&amp;"y"===n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX&lt;n.scrollSensitivity?i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left&lt;n.scrollSensitivity&amp;&amp;(i.scrollParent[0].scrollLeft=r=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&amp;&amp;"x"===n.axis||(e.pageY-t(document).scrollTop()&lt;n.scrollSensitivity?r=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())&lt;n.scrollSensitivity&amp;&amp;(r=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&amp;&amp;"y"===n.axis||(e.pageX-t(document).scrollLeft()&lt;n.scrollSensitivity?r=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())&lt;n.scrollSensitivity&amp;&amp;(r=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),r!==!1&amp;&amp;t.ui.ddmanager&amp;&amp;!n.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("ui-draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=t(this),n=i.offset();this!==e.element[0]&amp;&amp;e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(e,i){var n,r,s,o,a,l,u,h,c,p,d=t(this).data("ui-draggable"),f=d.options,g=f.snapTolerance,m=i.offset.left,_=m+d.helperProportions.width,v=i.offset.top,y=v+d.helperProportions.height;for(c=d.snapElements.length-1;c&gt;=0;c--)a=d.snapElements[c].left,l=a+d.snapElements[c].width,u=d.snapElements[c].top,h=u+d.snapElements[c].height,a-g&gt;_||m&gt;l+g||u-g&gt;y||v&gt;h+g||!t.contains(d.snapElements[c].item.ownerDocument,d.snapElements[c].item)?(d.snapElements[c].snapping&amp;&amp;d.options.snap.release&amp;&amp;d.options.snap.release.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[c].item})),d.snapElements[c].snapping=!1):("inner"!==f.snapMode&amp;&amp;(n=Math.abs(u-y)&lt;=g,r=Math.abs(h-v)&lt;=g,s=Math.abs(a-_)&lt;=g,o=Math.abs(l-m)&lt;=g,n&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:u-d.helperProportions.height,left:0}).top-d.margins.top),r&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:h,left:0}).top-d.margins.top),s&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:a-d.helperProportions.width}).left-d.margins.left),o&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:l}).left-d.margins.left)),p=n||r||s||o,"outer"!==f.snapMode&amp;&amp;(n=Math.abs(u-v)&lt;=g,r=Math.abs(h-y)&lt;=g,s=Math.abs(a-m)&lt;=g,o=Math.abs(l-_)&lt;=g,n&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:u,left:0}).top-d.margins.top),r&amp;&amp;(i.position.top=d._convertPositionTo("relative",{top:h-d.helperProportions.height,left:0}).top-d.margins.top),s&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:a}).left-d.margins.left),o&amp;&amp;(i.position.left=d._convertPositionTo("relative",{top:0,left:l-d.helperProportions.width}).left-d.margins.left)),!d.snapElements[c].snapping&amp;&amp;(n||r||s||o||p)&amp;&amp;d.options.snap.snap&amp;&amp;d.options.snap.snap.call(d.element,e,t.extend(d._uiHash(),{snapItem:d.snapElements[c].item})),d.snapElements[c].snapping=n||r||s||o||p)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,n=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});n.length&amp;&amp;(e=parseInt(t(n[0]).css("zIndex"),10)||0,t(n).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+n.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),r=t(this).data("ui-draggable").options;n.css("zIndex")&amp;&amp;(r._zIndex=n.css("zIndex")),n.css("zIndex",r.zIndex)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._zIndex&amp;&amp;t(i.helper).css("zIndex",n._zIndex)}})}(n),function(t,e){function i(t,e,i){return t&gt;e&amp;&amp;e+i&gt;t}t.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&amp;&amp;this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];e&lt;i.length;e++)i[e]===this&amp;&amp;i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&amp;&amp;(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&amp;&amp;this.element.addClass(this.options.activeClass),i&amp;&amp;this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&amp;&amp;this.element.removeClass(this.options.activeClass),i&amp;&amp;this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&amp;&amp;(i.currentItem||i.element)[0]!==this.element[0]&amp;&amp;this.accept.call(this.element[0],i.currentItem||i.element)&amp;&amp;(this.options.hoverClass&amp;&amp;this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&amp;&amp;(i.currentItem||i.element)[0]!==this.element[0]&amp;&amp;this.accept.call(this.element[0],i.currentItem||i.element)&amp;&amp;(this.options.hoverClass&amp;&amp;this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,r=!1;return n&amp;&amp;(n.currentItem||n.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"ui-droppable");return e.options.greedy&amp;&amp;!e.options.disabled&amp;&amp;e.options.scope===n.options.scope&amp;&amp;e.accept.call(e.element[0],n.currentItem||n.element)&amp;&amp;t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(r=!0,!1):void 0}),r?!1:this.accept.call(this.element[0],n.currentItem||n.element)?(this.options.activeClass&amp;&amp;this.element.removeClass(this.options.activeClass),this.options.hoverClass&amp;&amp;this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,e,n){if(!e.offset)return!1;var r,s,o=(t.positionAbs||t.position.absolute).left,a=o+t.helperProportions.width,l=(t.positionAbs||t.position.absolute).top,u=l+t.helperProportions.height,h=e.offset.left,c=h+e.proportions.width,p=e.offset.top,d=p+e.proportions.height;switch(n){case"fit":
        return o&gt;=h&amp;&amp;c&gt;=a&amp;&amp;l&gt;=p&amp;&amp;d&gt;=u;case"intersect":return h&lt;o+t.helperProportions.width/2&amp;&amp;a-t.helperProportions.width/2&lt;c&amp;&amp;p&lt;l+t.helperProportions.height/2&amp;&amp;u-t.helperProportions.height/2&lt;d;case"pointer":return r=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,s=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,i(s,p,e.proportions.height)&amp;&amp;i(r,h,e.proportions.width);case"touch":return(l&gt;=p&amp;&amp;d&gt;=l||u&gt;=p&amp;&amp;d&gt;=u||p&gt;l&amp;&amp;u&gt;d)&amp;&amp;(o&gt;=h&amp;&amp;c&gt;=o||a&gt;=h&amp;&amp;c&gt;=a||h&gt;o&amp;&amp;a&gt;c);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var n,r,s=t.ui.ddmanager.droppables[e.options.scope]||[],o=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n&lt;s.length;n++)if(!(s[n].options.disabled||e&amp;&amp;!s[n].accept.call(s[n].element[0],e.currentItem||e.element))){for(r=0;r&lt;a.length;r++)if(a[r]===s[n].element[0]){s[n].proportions.height=0;continue t}s[n].visible="none"!==s[n].element.css("display"),s[n].visible&amp;&amp;("mousedown"===o&amp;&amp;s[n]._activate.call(s[n],i),s[n].offset=s[n].element.offset(),s[n].proportions={width:s[n].element[0].offsetWidth,height:s[n].element[0].offsetHeight})}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&amp;&amp;(!this.options.disabled&amp;&amp;this.visible&amp;&amp;t.ui.intersect(e,this,this.options.tolerance)&amp;&amp;(n=this._drop.call(this,i)||n),!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.accept.call(this.element[0],e.currentItem||e.element)&amp;&amp;(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&amp;&amp;t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&amp;&amp;!this.greedyChild&amp;&amp;this.visible){var n,r,s,o=t.ui.intersect(e,this,this.options.tolerance),a=!o&amp;&amp;this.isover?"isout":o&amp;&amp;!this.isover?"isover":null;a&amp;&amp;(this.options.greedy&amp;&amp;(r=this.options.scope,s=this.element.parents(":data(ui-droppable)").filter(function(){return t.data(this,"ui-droppable").options.scope===r}),s.length&amp;&amp;(n=t.data(s[0],"ui-droppable"),n.greedyChild="isover"===a)),n&amp;&amp;"isover"===a&amp;&amp;(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&amp;&amp;"isout"===a&amp;&amp;(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(n),function(t,e){function i(t){return parseInt(t,10)||0}function n(t){return!isNaN(parseInt(t,10))}t.widget("ui.resizable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var e,i,n,r,s,o=this,a=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&amp;&amp;(this.element.wrap(t("&lt;div class='ui-wrapper' style='overflow: hidden;'&gt;&lt;/div&gt;").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&amp;&amp;(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;i&lt;e.length;i++)n=t.trim(e[i]),s="ui-resizable-"+n,r=t("&lt;div class='ui-resizable-handle "+s+"'&gt;&lt;/div&gt;"),r.css({zIndex:a.zIndex}),"se"===n&amp;&amp;r.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(r);this._renderAxis=function(e){var i,n,r,s;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String&amp;&amp;(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&amp;&amp;this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&amp;&amp;(n=t(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),r=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(r,s),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&amp;&amp;(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=r&amp;&amp;r[1]?r[1]:"se")}),a.autoHide&amp;&amp;(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){a.disabled||(t(this).removeClass("ui-resizable-autohide"),o._handles.show())}).mouseleave(function(){a.disabled||o.resizing||(t(this).addClass("ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&amp;&amp;(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,r=!1;for(i in this.handles)n=t(this.handles[i])[0],(n===e.target||t.contains(n,e.target))&amp;&amp;(r=!0);return!this.options.disabled&amp;&amp;r},_mouseStart:function(e){var n,r,s,o=this.options,a=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css("position"))?l.css({position:"absolute",top:l.css("top"),left:l.css("left")}):l.is(".ui-draggable")&amp;&amp;l.css({position:"absolute",top:a.top,left:a.left}),this._renderProxy(),n=i(this.helper.css("left")),r=i(this.helper.css("top")),o.containment&amp;&amp;(n+=t(o.containment).scrollLeft()||0,r+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:r},this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:n,top:r},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),l.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n=this.helper,r={},s=this.originalMousePosition,o=this.axis,a=this.position.top,l=this.position.left,u=this.size.width,h=this.size.height,c=e.pageX-s.left||0,p=e.pageY-s.top||0,d=this._change[o];return d?(i=d.apply(this,[e,c,p]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&amp;&amp;(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),this.position.top!==a&amp;&amp;(r.top=this.position.top+"px"),this.position.left!==l&amp;&amp;(r.left=this.position.left+"px"),this.size.width!==u&amp;&amp;(r.width=this.size.width+"px"),this.size.height!==h&amp;&amp;(r.height=this.size.height+"px"),n.css(r),!this._helper&amp;&amp;this._proportionallyResizeElements.length&amp;&amp;this._proportionallyResize(),t.isEmptyObject(r)||this._trigger("resize",e,this.ui()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,n,r,s,o,a,l,u=this.options,h=this;return this._helper&amp;&amp;(i=this._proportionallyResizeElements,n=i.length&amp;&amp;/textarea/i.test(i[0].nodeName),r=n&amp;&amp;t.ui.hasScroll(i[0],"left")?0:h.sizeDiff.height,s=n?0:h.sizeDiff.width,o={width:h.helper.width()-s,height:h.helper.height()-r},a=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||null,l=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null,u.animate||this.element.css(t.extend(o,{top:l,left:a})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&amp;&amp;!u.animate&amp;&amp;this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&amp;&amp;this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,i,r,s,o,a=this.options;o={minWidth:n(a.minWidth)?a.minWidth:0,maxWidth:n(a.maxWidth)?a.maxWidth:1/0,minHeight:n(a.minHeight)?a.minHeight:0,maxHeight:n(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&amp;&amp;(e=o.minHeight*this.aspectRatio,r=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,s=o.maxWidth/this.aspectRatio,e&gt;o.minWidth&amp;&amp;(o.minWidth=e),r&gt;o.minHeight&amp;&amp;(o.minHeight=r),i&lt;o.maxWidth&amp;&amp;(o.maxWidth=i),s&lt;o.maxHeight&amp;&amp;(o.maxHeight=s)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),n(t.left)&amp;&amp;(this.position.left=t.left),n(t.top)&amp;&amp;(this.position.top=t.top),n(t.height)&amp;&amp;(this.size.height=t.height),n(t.width)&amp;&amp;(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,r=this.axis;return n(t.height)?t.width=t.height*this.aspectRatio:n(t.width)&amp;&amp;(t.height=t.width/this.aspectRatio),"sw"===r&amp;&amp;(t.left=e.left+(i.width-t.width),t.top=null),"nw"===r&amp;&amp;(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,r=n(t.width)&amp;&amp;e.maxWidth&amp;&amp;e.maxWidth&lt;t.width,s=n(t.height)&amp;&amp;e.maxHeight&amp;&amp;e.maxHeight&lt;t.height,o=n(t.width)&amp;&amp;e.minWidth&amp;&amp;e.minWidth&gt;t.width,a=n(t.height)&amp;&amp;e.minHeight&amp;&amp;e.minHeight&gt;t.height,l=this.originalPosition.left+this.originalSize.width,u=this.position.top+this.size.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&amp;&amp;(t.width=e.minWidth),a&amp;&amp;(t.height=e.minHeight),r&amp;&amp;(t.width=e.maxWidth),s&amp;&amp;(t.height=e.maxHeight),o&amp;&amp;h&amp;&amp;(t.left=l-e.minWidth),r&amp;&amp;h&amp;&amp;(t.left=l-e.maxWidth),a&amp;&amp;c&amp;&amp;(t.top=u-e.minHeight),s&amp;&amp;c&amp;&amp;(t.top=u-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,n,r,s=this.helper||this.element;for(t=0;t&lt;this._proportionallyResizeElements.length;t++){if(r=this._proportionallyResizeElements[t],!this.borderDif)for(this.borderDif=[],i=[r.css("borderTopWidth"),r.css("borderRightWidth"),r.css("borderBottomWidth"),r.css("borderLeftWidth")],n=[r.css("paddingTop"),r.css("paddingRight"),r.css("paddingBottom"),r.css("paddingLeft")],e=0;e&lt;i.length;e++)this.borderDif[e]=(parseInt(i[e],10)||0)+(parseInt(n[e],10)||0);r.css({height:s.height()-this.borderDif[0]-this.borderDif[2]||0,width:s.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("&lt;div style='overflow:hidden;'&gt;&lt;/div&gt;"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,n=this.originalPosition;return{left:n.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize,r=this.originalPosition;return{top:r.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&amp;&amp;this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("ui-resizable"),n=i.options,r=i._proportionallyResizeElements,s=r.length&amp;&amp;/textarea/i.test(r[0].nodeName),o=s&amp;&amp;t.ui.hasScroll(r[0],"left")?0:i.sizeDiff.height,a=s?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-o},u=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,h&amp;&amp;u?{top:h,left:u}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};r&amp;&amp;r.length&amp;&amp;t(r[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,r,s,o,a,l,u=t(this).data("ui-resizable"),h=u.options,c=u.element,p=h.containment,d=p instanceof t?p.get(0):/parent/.test(p)?c.parent().get(0):p;d&amp;&amp;(u.containerElement=t(d),/document/.test(p)||p===document?(u.containerOffset={left:0,top:0},u.containerPosition={left:0,top:0},u.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),n=[],t(["Top","Right","Left","Bottom"]).each(function(t,r){n[t]=i(e.css("padding"+r))}),u.containerOffset=e.offset(),u.containerPosition=e.position(),u.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},r=u.containerOffset,s=u.containerSize.height,o=u.containerSize.width,a=t.ui.hasScroll(d,"left")?d.scrollWidth:o,l=t.ui.hasScroll(d)?d.scrollHeight:s,u.parentData={element:d,left:r.left,top:r.top,width:a,height:l}))},resize:function(e){var i,n,r,s,o=t(this).data("ui-resizable"),a=o.options,l=o.containerOffset,u=o.position,h=o._aspectRatio||e.shiftKey,c={top:0,left:0},p=o.containerElement;p[0]!==document&amp;&amp;/static/.test(p.css("position"))&amp;&amp;(c=l),u.left&lt;(o._helper?l.left:0)&amp;&amp;(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-c.left),h&amp;&amp;(o.size.height=o.size.width/o.aspectRatio),o.position.left=a.helper?l.left:0),u.top&lt;(o._helper?l.top:0)&amp;&amp;(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),h&amp;&amp;(o.size.width=o.size.height*o.aspectRatio),o.position.top=o._helper?l.top:0),o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top,i=Math.abs((o._helper?o.offset.left-c.left:o.offset.left-c.left)+o.sizeDiff.width),n=Math.abs((o._helper?o.offset.top-c.top:o.offset.top-l.top)+o.sizeDiff.height),r=o.containerElement.get(0)===o.element.parent().get(0),s=/relative|absolute/.test(o.containerElement.css("position")),r&amp;&amp;s&amp;&amp;(i-=o.parentData.left),i+o.size.width&gt;=o.parentData.width&amp;&amp;(o.size.width=o.parentData.width-i,h&amp;&amp;(o.size.height=o.size.width/o.aspectRatio)),n+o.size.height&gt;=o.parentData.height&amp;&amp;(o.size.height=o.parentData.height-n,h&amp;&amp;(o.size.width=o.size.height*o.aspectRatio))},stop:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.containerOffset,r=e.containerPosition,s=e.containerElement,o=t(e.helper),a=o.offset(),l=o.outerWidth()-e.sizeDiff.width,u=o.outerHeight()-e.sizeDiff.height;e._helper&amp;&amp;!i.animate&amp;&amp;/relative/.test(s.css("position"))&amp;&amp;t(this).css({left:a.left-r.left-n.left,width:l,height:u}),e._helper&amp;&amp;!i.animate&amp;&amp;/static/.test(s.css("position"))&amp;&amp;t(this).css({left:a.left-r.left-n.left,width:l,height:u})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,n=function(e){t(e).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?n(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],n(i.alsoResize)):t.each(i.alsoResize,function(t){n(t)})},resize:function(e,i){var n=t(this).data("ui-resizable"),r=n.options,s=n.originalSize,o=n.originalPosition,a={height:n.size.height-s.height||0,width:n.size.width-s.width||0,top:n.position.top-o.top||0,left:n.position.left-o.left||0},l=function(e,n){t(e).each(function(){var e=t(this),r=t(this).data("ui-resizable-alsoresize"),s={},o=n&amp;&amp;n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(r[e]||0)+(a[e]||0);i&amp;&amp;i&gt;=0&amp;&amp;(s[e]=i||null)}),e.css(s)})};"object"!=typeof r.alsoResize||r.alsoResize.nodeType?l(r.alsoResize):t.each(r.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("ui-resizable");e.ghost&amp;&amp;e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("ui-resizable");e.ghost&amp;&amp;e.helper&amp;&amp;e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size,r=e.originalSize,s=e.originalPosition,o=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,u=a[1]||1,h=Math.round((n.width-r.width)/l)*l,c=Math.round((n.height-r.height)/u)*u,p=r.width+h,d=r.height+c,f=i.maxWidth&amp;&amp;i.maxWidth&lt;p,g=i.maxHeight&amp;&amp;i.maxHeight&lt;d,m=i.minWidth&amp;&amp;i.minWidth&gt;p,_=i.minHeight&amp;&amp;i.minHeight&gt;d;i.grid=a,m&amp;&amp;(p+=l),_&amp;&amp;(d+=u),f&amp;&amp;(p-=l),g&amp;&amp;(d-=u),/^(se|s|e)$/.test(o)?(e.size.width=p,e.size.height=d):/^(ne)$/.test(o)?(e.size.width=p,e.size.height=d,e.position.top=s.top-c):/^(sw)$/.test(o)?(e.size.width=p,e.size.height=d,e.position.left=s.left-h):(e.size.width=p,e.size.height=d,e.position.top=s.top-c,e.position.left=s.left-h)}})}(n),function(t,e){t.widget("ui.selectable",t.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e=t(i.options.filter,i.element[0]),e.addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("&lt;div class='ui-selectable-helper'&gt;&lt;/div&gt;")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&amp;&amp;this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,r=t.data(this,"selectable-item");return r?(n=!e.metaKey&amp;&amp;!e.ctrlKey||!r.$element.hasClass("ui-selected"),r.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),r.unselecting=!n,r.selecting=n,r.selected=n,n?i._trigger("selecting",e,{selecting:r.element}):i._trigger("unselecting",e,{unselecting:r.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,r=this.options,s=this.opos[0],o=this.opos[1],a=e.pageX,l=e.pageY;return s&gt;a&amp;&amp;(i=a,a=s,s=i),o&gt;l&amp;&amp;(i=l,l=o,o=i),this.helper.css({left:s,top:o,width:a-s,height:l-o}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),u=!1;i&amp;&amp;i.element!==n.element[0]&amp;&amp;("touch"===r.tolerance?u=!(i.left&gt;a||i.right&lt;s||i.top&gt;l||i.bottom&lt;o):"fit"===r.tolerance&amp;&amp;(u=i.left&gt;s&amp;&amp;i.right&lt;a&amp;&amp;i.top&gt;o&amp;&amp;i.bottom&lt;l),u?(i.selected&amp;&amp;(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&amp;&amp;(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&amp;&amp;((e.metaKey||e.ctrlKey)&amp;&amp;i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&amp;&amp;(i.$element.addClass("ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&amp;&amp;(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}})}(n),function(t,e){function i(t,e,i){return t&gt;e&amp;&amp;e+i&gt;t}function n(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"&gt; *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||n(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t&gt;=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,r=!1,s=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,s.widgetName+"-item")===s?(n=t(this),!1):void 0}),t.data(e.target,s.widgetName+"-item")===s&amp;&amp;(n=t(e.target)),n&amp;&amp;(!this.options.handle||i||(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&amp;&amp;(r=!0)}),r))?(this.currentItem=n,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,i,n){var r,s,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&amp;&amp;this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&amp;&amp;this.currentItem.hide(),this._createPlaceholder(),o.containment&amp;&amp;this._setContainment(),o.cursor&amp;&amp;"auto"!==o.cursor&amp;&amp;(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",o.cursor),this.storedStylesheet=t("&lt;style&gt;*{ cursor: "+o.cursor+" !important; }&lt;/style&gt;").appendTo(s)),o.opacity&amp;&amp;(this.helper.css("opacity")&amp;&amp;(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&amp;&amp;(this.helper.css("zIndex")&amp;&amp;(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==document&amp;&amp;"HTML"!==this.scrollParent[0].tagName&amp;&amp;(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r&gt;=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&amp;&amp;(t.ui.ddmanager.current=this),t.ui.ddmanager&amp;&amp;!o.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,s,o=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&amp;&amp;(this.scrollParent[0]!==document&amp;&amp;"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY&lt;o.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top&lt;o.scrollSensitivity&amp;&amp;(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX&lt;o.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left&lt;o.scrollSensitivity&amp;&amp;(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-t(document).scrollTop()&lt;o.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())&lt;o.scrollSensitivity&amp;&amp;(a=t(document).scrollTop(t(document).scrollTop()+o.scrollSpeed)),e.pageX-t(document).scrollLeft()&lt;o.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())&lt;o.scrollSensitivity&amp;&amp;(a=t(document).scrollLeft(t(document).scrollLeft()+o.scrollSpeed))),a!==!1&amp;&amp;t.ui.ddmanager&amp;&amp;!o.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&amp;&amp;"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&amp;&amp;"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i&gt;=0;i--)if(n=this.items[i],r=n.item[0],s=this._intersectsWithPointer(n),s&amp;&amp;n.instance===this.currentContainer&amp;&amp;r!==this.currentItem[0]&amp;&amp;this.placeholder[1===s?"next":"prev"]()[0]!==r&amp;&amp;!t.contains(this.placeholder[0],r)&amp;&amp;("semi-dynamic"===this.options.type?!t.contains(this.element[0],r):!0)){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&amp;&amp;!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&amp;&amp;!this.options.dropBehaviour&amp;&amp;t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),s=this.options.axis,o={};s&amp;&amp;"x"!==s||(o.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),s&amp;&amp;"y"!==s||(o.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e&gt;=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&amp;&amp;(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&amp;&amp;(this.placeholder[0].parentNode&amp;&amp;this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&amp;&amp;this.helper&amp;&amp;this.helper[0].parentNode&amp;&amp;this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&amp;&amp;e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&amp;&amp;n.push((e.key||i[1]+"[]")+"="+(e.key&amp;&amp;e.expression?i[1]:i[2]))}),!n.length&amp;&amp;e.key&amp;&amp;n.push(e.key+"="),n.join("&amp;")},toArray:function(e){var i=this._getItemsAsjQuery(e&amp;&amp;e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,s=t.left,o=s+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,h=this.offset.click.left,c="x"===this.options.axis||n+u&gt;a&amp;&amp;l&gt;n+u,p="y"===this.options.axis||e+h&gt;s&amp;&amp;o&gt;e+h,d=c&amp;&amp;p;
        return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&amp;&amp;this.helperProportions[this.floating?"width":"height"]&gt;t[this.floating?"width":"height"]?d:s&lt;e+this.helperProportions.width/2&amp;&amp;i-this.helperProportions.width/2&lt;o&amp;&amp;a&lt;n+this.helperProportions.height/2&amp;&amp;r-this.helperProportions.height/2&lt;l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||i(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||i(this.positionAbs.left+this.offset.click.left,t.left,t.width),r=e&amp;&amp;n,s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return r?this.floating?o&amp;&amp;"right"===o||"down"===s?2:1:s&amp;&amp;("down"===s?2:1):!1},_intersectsWithSides:function(t){var e=i(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=i(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),r=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&amp;&amp;s?"right"===s&amp;&amp;n||"left"===s&amp;&amp;!n:r&amp;&amp;("down"===r&amp;&amp;e||"up"===r&amp;&amp;!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&amp;&amp;(t&gt;0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&amp;&amp;(t&gt;0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,r,s,o=[],a=[],l=this._connectWith();if(l&amp;&amp;e)for(i=l.length-1;i&gt;=0;i--)for(r=t(l[i]),n=r.length-1;n&gt;=0;n--)s=t.data(r[n],this.widgetFullName),s&amp;&amp;s!==this&amp;&amp;!s.options.disabled&amp;&amp;a.push([t.isFunction(s.options.items)?s.options.items.call(s.element):t(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);for(a.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i&gt;=0;i--)a[i][0].each(function(){o.push(this)});return t(o)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i&lt;e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,s,o,a,l,u,h=this.items,c=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],p=this._connectWith();if(p&amp;&amp;this.ready)for(i=p.length-1;i&gt;=0;i--)for(r=t(p[i]),n=r.length-1;n&gt;=0;n--)s=t.data(r[n],this.widgetFullName),s&amp;&amp;s!==this&amp;&amp;!s.options.disabled&amp;&amp;(c.push([t.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=c.length-1;i&gt;=0;i--)for(o=c[i][1],a=c[i][0],n=0,u=a.length;u&gt;n;n++)l=t(a[n]),l.data(this.widgetName+"-item",o),h.push({item:l,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&amp;&amp;this.helper&amp;&amp;(this.offset.parent=this._getParentOffset());var i,n,r,s;for(i=this.items.length-1;i&gt;=0;i--)n=this.items[i],n.instance!==this.currentContainer&amp;&amp;this.currentContainer&amp;&amp;n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),s=r.offset(),n.left=s.left,n.top=s.top);if(this.options.custom&amp;&amp;this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i&gt;=0;i--)s=this.containers[i].element.offset(),this.containers[i].containerCache.left=s.left,this.containers[i].containerCache.top=s.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&amp;&amp;n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),r=t("&lt;"+n+"&gt;",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each(function(){t("&lt;td&gt;&amp;#160;&lt;/td&gt;",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(r)}):"img"===n&amp;&amp;r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,r){(!i||n.forcePlaceholderSize)&amp;&amp;(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var r,s,o,a,l,u,h,c,p,d,f=null,g=null;for(r=this.containers.length-1;r&gt;=0;r--)if(!t.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(f&amp;&amp;t.contains(this.containers[r].element[0],f.element[0]))continue;f=this.containers[r],g=r}else this.containers[r].containerCache.over&amp;&amp;(this.containers[r]._trigger("out",e,this._uiHash(this)),this.containers[r].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",e,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(o=1e4,a=null,d=f.floating||n(this.currentItem),l=d?"left":"top",u=d?"width":"height",h=this.positionAbs[l]+this.offset.click[l],s=this.items.length-1;s&gt;=0;s--)t.contains(this.containers[g].element[0],this.items[s].item[0])&amp;&amp;this.items[s].item[0]!==this.currentItem[0]&amp;&amp;(!d||i(this.positionAbs.top+this.offset.click.top,this.items[s].top,this.items[s].height))&amp;&amp;(c=this.items[s].item.offset()[l],p=!1,Math.abs(c-h)&gt;Math.abs(c+this.items[s][u]-h)&amp;&amp;(p=!0,c+=this.items[s][u]),Math.abs(c-h)&lt;o&amp;&amp;(o=Math.abs(c-h),a=this.items[s],this.direction=p?"up":"down"));if(!a&amp;&amp;!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[g].element,!0),this._trigger("change",e,this._uiHash()),this.containers[g]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",e,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&amp;&amp;(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&amp;&amp;n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&amp;&amp;n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&amp;&amp;(e=e.split(" ")),t.isArray(e)&amp;&amp;(e={left:+e[0],top:+e[1]||0}),"left"in e&amp;&amp;(this.offset.click.left=e.left+this.margins.left),"right"in e&amp;&amp;(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&amp;&amp;(this.offset.click.top=e.top+this.margins.top),"bottom"in e&amp;&amp;(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&amp;&amp;this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])&amp;&amp;(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&amp;&amp;"html"===this.offsetParent[0].tagName.toLowerCase()&amp;&amp;t.ui.ie)&amp;&amp;(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;"parent"===r.containment&amp;&amp;(r.containment=this.helper[0].parentNode),("document"===r.containment||"window"===r.containment)&amp;&amp;(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===r.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===r.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=this.options,s=e.pageX,o=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&amp;&amp;(this.containment&amp;&amp;(e.pageX-this.offset.click.left&lt;this.containment[0]&amp;&amp;(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top&lt;this.containment[1]&amp;&amp;(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left&gt;this.containment[2]&amp;&amp;(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top&gt;this.containment[3]&amp;&amp;(o=this.containment[3]+this.offset.click.top)),r.grid&amp;&amp;(i=this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1],o=this.containment?i-this.offset.click.top&gt;=this.containment[1]&amp;&amp;i-this.offset.click.top&lt;=this.containment[3]?i:i-this.offset.click.top&gt;=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/r.grid[0])*r.grid[0],s=this.containment?n-this.offset.click.left&gt;=this.containment[0]&amp;&amp;n-this.offset.click.left&lt;=this.containment[2]?n:n-this.offset.click.left&gt;=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&amp;&amp;this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&amp;&amp;this.currentItem.parent().length&amp;&amp;this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&amp;&amp;(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&amp;&amp;!e&amp;&amp;n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&amp;&amp;this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&amp;&amp;this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&amp;&amp;(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i&gt;=0;i--)e||n.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&amp;&amp;(n.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&amp;&amp;(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&amp;&amp;this.helper.css("opacity",this._storedOpacity),this._storedZIndex&amp;&amp;this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;i&lt;n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&amp;&amp;this.helper.remove(),this.helper=null,!e){for(i=0;i&lt;n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&amp;&amp;this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(n),function(t,e){var i="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var n=c[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0&gt;t?0:n.max&lt;t?n.max:t)}function n(e){var i=u(),n=i._rgba=[];return e=e.toLowerCase(),f(l,function(t,r){var s,o=r.re.exec(e),a=o&amp;&amp;r.parse(o),l=r.space||"rgba";return a?(s=i[l](a),i[h[l].cache]=s[h[l].cache],n=i._rgba=s._rgba,!1):void 0}),n.length?("0,0,0,0"===n.join()&amp;&amp;t.extend(n,s.transparent),i):s[e]}function r(t,e,i){return i=(i+1)%1,1&gt;6*i?t+(e-t)*i*6:1&gt;2*i?e:2&gt;3*i?t+(e-t)*(2/3-i)*6:t}var s,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",a=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],u=t.Color=function(e,i,n,r){return new t.Color.fn.parse(e,i,n,r)},h={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},p=u.support={},d=t("&lt;p&gt;")[0],f=t.each;d.style.cssText="background-color:rgba(1,1,1,.5)",p.rgba=d.style.backgroundColor.indexOf("rgba")&gt;-1,f(h,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),u.fn=t.extend(u.prototype,{parse:function(r,o,a,l){if(r===e)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&amp;&amp;(r=t(r).css(o),o=e);var c=this,p=t.type(r),d=this._rgba=[];return o!==e&amp;&amp;(r=[r,o,a,l],p="array"),"string"===p?this.parse(n(r)||s._default):"array"===p?(f(h.rgba.props,function(t,e){d[e.idx]=i(r[e.idx],e)}),this):"object"===p?(r instanceof u?f(h,function(t,e){r[e.cache]&amp;&amp;(c[e.cache]=r[e.cache].slice())}):f(h,function(e,n){var s=n.cache;f(n.props,function(t,e){if(!c[s]&amp;&amp;n.to){if("alpha"===t||null==r[t])return;c[s]=n.to(c._rgba)}c[s][e.idx]=i(r[t],e,!0)}),c[s]&amp;&amp;t.inArray(null,c[s].slice(0,3))&lt;0&amp;&amp;(c[s][3]=1,n.from&amp;&amp;(c._rgba=n.from(c[s])))}),this):void 0},is:function(t){var e=u(t),i=!0,n=this;return f(h,function(t,r){var s,o=e[r.cache];return o&amp;&amp;(s=n[r.cache]||r.to&amp;&amp;r.to(n._rgba)||[],f(r.props,function(t,e){return null!=o[e.idx]?i=o[e.idx]===s[e.idx]:void 0})),i}),i},_space:function(){var t=[],e=this;return f(h,function(i,n){e[n.cache]&amp;&amp;t.push(i)}),t.pop()},transition:function(t,e){var n=u(t),r=n._space(),s=h[r],o=0===this.alpha()?u("transparent"):this,a=o[s.cache]||s.to(o._rgba),l=a.slice();return n=n[s.cache],f(s.props,function(t,r){var s=r.idx,o=a[s],u=n[s],h=c[r.type]||{};null!==u&amp;&amp;(null===o?l[s]=u:(h.mod&amp;&amp;(u-o&gt;h.mod/2?o+=h.mod:o-u&gt;h.mod/2&amp;&amp;(o-=h.mod)),l[s]=i((u-o)*e+o,r)))}),this[r](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),r=u(e)._rgba;return u(t.map(i,function(t,e){return(1-n)*r[e]+n*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e&gt;2?1:0:t});return 1===i[3]&amp;&amp;(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&amp;&amp;(t=e&gt;2?1:0),e&amp;&amp;3&gt;e&amp;&amp;(t=Math.round(100*t)+"%"),t});return 1===i[3]&amp;&amp;(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&amp;&amp;i.push(~~(255*n)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,h.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,r=t[1]/255,s=t[2]/255,o=t[3],a=Math.max(n,r,s),l=Math.min(n,r,s),u=a-l,h=a+l,c=.5*h;return e=l===a?0:n===a?60*(r-s)/u+360:r===a?60*(s-n)/u+120:60*(n-r)/u+240,i=0===u?0:.5&gt;=c?u/h:u/(2-h),[Math.round(e)%360,i,c,null==o?1:o]},h.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],s=t[3],o=.5&gt;=n?n*(1+i):n+i-n*i,a=2*n-o;return[Math.round(255*r(a,o,e+1/3)),Math.round(255*r(a,o,e)),Math.round(255*r(a,o,e-1/3)),s]},f(h,function(n,r){var s=r.props,o=r.cache,l=r.to,h=r.from;u.fn[n]=function(n){if(l&amp;&amp;!this[o]&amp;&amp;(this[o]=l(this._rgba)),n===e)return this[o].slice();var r,a=t.type(n),c="array"===a||"object"===a?n:arguments,p=this[o].slice();return f(s,function(t,e){var n=c["object"===a?t:e.idx];null==n&amp;&amp;(n=p[e.idx]),p[e.idx]=i(n,e)}),h?(r=u(h(p)),r[o]=p,r):u(p)},f(s,function(e,i){u.fn[e]||(u.fn[e]=function(r){var s,o=t.type(r),l="alpha"===e?this._hsla?"hsla":"rgba":n,u=this[l](),h=u[i.idx];return"undefined"===o?h:("function"===o&amp;&amp;(r=r.call(this,h),o=t.type(r)),null==r&amp;&amp;i.empty?this:("string"===o&amp;&amp;(s=a.exec(r),s&amp;&amp;(r=h+parseFloat(s[2])*("+"===s[1]?1:-1))),u[i.idx]=r,this[l](u)))})})}),u.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,r){var s,o,a="";if("transparent"!==r&amp;&amp;("string"!==t.type(r)||(s=n(r)))){if(r=u(s||r),!p.rgba&amp;&amp;1!==r._rgba[3]){for(o="backgroundColor"===i?e.parentNode:e;(""===a||"transparent"===a)&amp;&amp;o&amp;&amp;o.style;)try{a=t.css(o,"backgroundColor"),o=o.parentNode}catch(l){}r=r.blend(a&amp;&amp;"transparent"!==a?a:"_default")}r=r.toRgbaString()}try{e.style[i]=r}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=u(e.elem,i),e.end=u(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},u.hook(o),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},s=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(n),function(){function i(e){var i,n,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,s={};if(r&amp;&amp;r.length&amp;&amp;r[0]&amp;&amp;r[r[0]])for(n=r.length;n--;)i=r[n],"string"==typeof r[i]&amp;&amp;(s[t.camelCase(i)]=r[i]);else for(i in r)"string"==typeof r[i]&amp;&amp;(s[i]=r[i]);return s}function r(e,i){var n,r,s={};for(n in i)r=i[n],e[n]!==r&amp;&amp;(o[n]||(t.fx.step[n]||!isNaN(parseFloat(r)))&amp;&amp;(s[n]=r));return s}var s=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&amp;&amp;!t.setAttr||1===t.pos&amp;&amp;!t.setAttr)&amp;&amp;(n.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,n,o,a){var l=t.speed(n,o,a);return this.queue(function(){var n,o=t(this),a=o.attr("class")||"",u=l.children?o.find("*").addBack():o;u=u.map(function(){var e=t(this);return{el:e,start:i(this)}}),n=function(){t.each(s,function(t,i){e[i]&amp;&amp;o[i+"Class"](e[i])})},n(),u=u.map(function(){return this.end=i(this.el[0]),this.diff=r(this.start,this.end),this}),o.attr("class",a),u=u.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,u.get()).done(function(){n(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(o[0])})})},t.fn.extend({addClass:function(e){return function(i,n,r,s){return n?t.effects.animateClass.call(this,{add:i},n,r,s):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,r,s){return arguments.length&gt;1?t.effects.animateClass.call(this,{remove:i},n,r,s):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(i){return function(n,r,s,o,a){return"boolean"==typeof r||r===e?s?t.effects.animateClass.call(this,r?{add:n}:{remove:n},s,o,a):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},r,s,o)}}(t.fn.toggleClass),switchClass:function(e,i,n,r,s){return t.effects.animateClass.call(this,{add:i,remove:e},n,r,s)}})}(),function(){function n(e,i,n,r){return t.isPlainObject(e)&amp;&amp;(i=e,e=e.effect),e={effect:e},null==i&amp;&amp;(i={}),t.isFunction(i)&amp;&amp;(r=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&amp;&amp;(r=n,n=i,i={}),t.isFunction(n)&amp;&amp;(r=n,n=null),i&amp;&amp;t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=r||i.complete,e}function r(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}t.extend(t.effects,{version:"1.10.3",save:function(t,e){for(var n=0;n&lt;e.length;n++)null!==e[n]&amp;&amp;t.data(i+e[n],t[0].style[e[n]])},restore:function(t,n){var r,s;for(s=0;s&lt;n.length;s++)null!==n[s]&amp;&amp;(r=t.data(i+n[s]),r===e&amp;&amp;(r=""),t.css(n[s],r))},setMode:function(t,e){return"toggle"===e&amp;&amp;(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},n=t("&lt;div&gt;&lt;/div&gt;").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:e.width(),height:e.height()},s=document.activeElement;try{s.id}catch(o){s=document.body}return e.wrap(n),(e[0]===s||t.contains(e[0],s))&amp;&amp;t(s).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&amp;&amp;(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(r),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&amp;&amp;(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&amp;&amp;t(i).focus()),e},setTransition:function(e,i,n,r){return r=r||{},t.each(i,function(t,i){var s=e.cssUnit(i);s[0]&gt;0&amp;&amp;(r[i]=s[0]*n+s[1])}),r}}),t.fn.extend({effect:function(){function e(e){function n(){t.isFunction(s)&amp;&amp;s.call(r[0]),t.isFunction(e)&amp;&amp;e()}var r=t(this),s=i.complete,a=i.mode;(r.is(":hidden")?"hide"===a:"show"===a)?(r[a](),n()):o.call(r[0],i,n)}var i=n.apply(this,arguments),r=i.mode,s=i.queue,o=t.effects.effect[i.effect];return t.fx.off||!o?r?this[r](i.duration,i.complete):this.each(function(){i.complete&amp;&amp;i.complete.call(this)}):s===!1?this.each(e):this.queue(s||"fx",e)},show:function(t){return function(e){if(r(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(r(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(r(e)||"boolean"==typeof e)return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)&gt;0&amp;&amp;(n=[parseFloat(i),e])}),n}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t&lt;((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5&gt;t?i(2*t)/2:1-i(-2*t+2)/2}})}()}(n),function(t,e){var i=0,n={},r={};n.height=n.paddingTop=n.paddingBottom=n.borderTopWidth=n.borderBottomWidth="hide",r.height=r.paddingTop=r.paddingBottom=r.borderTopWidth=r.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"&gt; li &gt; :first-child,&gt; :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&amp;&amp;null!=e.active||(e.active=0),this._processPanels(),e.active&lt;0&amp;&amp;(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t(),content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&amp;&amp;(t("&lt;span&gt;").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&amp;&amp;this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&amp;&amp;this.removeAttribute("id")}),"content"!==this.options.heightStyle&amp;&amp;t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&amp;&amp;(this.options.event&amp;&amp;this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&amp;&amp;(this._destroyIcons(),e&amp;&amp;this._createIcons()),void("disabled"===t&amp;&amp;this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)))},_keydown:function(e){if(!e.altKey&amp;&amp;!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,r=this.headers.index(e.target),s=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:s=this.headers[(r+1)%n];break;case i.LEFT:case i.UP:s=this.headers[(r-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:s=this.headers[0];break;case i.END:s=this.headers[n-1]}s&amp;&amp;(t(e.target).attr("tabIndex",-1),t(s).attr("tabIndex",0),s.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&amp;&amp;e.ctrlKey&amp;&amp;t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&amp;&amp;e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&amp;&amp;!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),
        this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var e,n=this.options,r=n.heightStyle,s=this.element.parent(),o=this.accordionId="ui-accordion-"+(this.element.attr("id")||++i);this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(e){var i=t(this),n=i.attr("id"),r=i.next(),s=r.attr("id");n||(n=o+"-header-"+e,i.attr("id",n)),s||(s=o+"-panel-"+e,r.attr("id",s)),i.attr("aria-controls",s),r.attr("aria-labelledby",n)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===r?(e=s.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.css("position");"absolute"!==n&amp;&amp;"fixed"!==n&amp;&amp;(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===r&amp;&amp;(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&amp;&amp;(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&amp;&amp;t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),s=r[0]===n[0],o=s&amp;&amp;i.collapsible,a=o?t():r.next(),l=n.next(),u={oldHeader:n,oldPanel:l,newHeader:o?t():r,newPanel:a};e.preventDefault(),s&amp;&amp;!i.collapsible||this._trigger("beforeActivate",e,u)===!1||(i.active=o?!1:this.headers.index(r),this.active=s?t():r,this._toggle(u),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&amp;&amp;n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),s||(r.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&amp;&amp;r.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),r.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-expanded":"false","aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&amp;&amp;n.length?n.prev().attr("tabIndex",-1):i.length&amp;&amp;this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,i){var s,o,a,l=this,u=0,h=t.length&amp;&amp;(!e.length||t.index()&lt;e.index()),c=this.options.animate||{},p=h&amp;&amp;c.down||c,d=function(){l._toggleComplete(i)};return"number"==typeof p&amp;&amp;(a=p),"string"==typeof p&amp;&amp;(o=p),o=o||p.easing||c.easing,a=a||p.duration||c.duration,e.length?t.length?(s=t.show().outerHeight(),e.animate(n,{duration:a,easing:o,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(r,{duration:a,easing:o,complete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?u+=i.now:"content"!==l.options.heightStyle&amp;&amp;(i.now=Math.round(s-e.outerHeight()-u),u=0)}})):e.animate(n,a,o,d):t.animate(r,a,o,d)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&amp;&amp;(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}})}(n),function(t,e){var i=0;t.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"&lt;input&gt;",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,n,r=this.element[0].nodeName.toLowerCase(),s="textarea"===r,o="input"===r;this.isMultiLine=s?!0:o?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[s||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var s=t.ui.keyCode;switch(r.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",r);break;case s.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case s.UP:e=!0,this._keyEvent("previous",r);break;case s.DOWN:e=!0,this._keyEvent("next",r);break;case s.ENTER:case s.NUMPAD_ENTER:this.menu.active&amp;&amp;(e=!0,r.preventDefault(),this.menu.select(r));break;case s.TAB:this.menu.active&amp;&amp;this.menu.select(r);break;case s.ESCAPE:this.menu.element.is(":visible")&amp;&amp;(this._value(this.term),this.close(r),r.preventDefault());break;default:i=!0,this._searchTimeout(r)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&amp;&amp;n.preventDefault());if(!i){var r=t.ui.keyCode;switch(n.keyCode){case r.PAGE_UP:this._move("previousPage",n);break;case r.PAGE_DOWN:this._move("nextPage",n);break;case r.UP:this._keyEvent("previous",n);break;case r.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("&lt;ul&gt;").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&amp;&amp;(this.isNewMenu=!1,e.originalEvent&amp;&amp;/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});var n=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:n})?e.originalEvent&amp;&amp;/^key/.test(e.originalEvent.type)&amp;&amp;this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&amp;&amp;(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&amp;&amp;this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("&lt;span&gt;",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&amp;&amp;this._initSource(),"appendTo"===t&amp;&amp;this.menu.element.appendTo(this._appendTo()),"disabled"===t&amp;&amp;e&amp;&amp;this.xhr&amp;&amp;this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&amp;&amp;(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,r){n.xhr&amp;&amp;n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&amp;&amp;(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length&lt;this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=this,e=++i;return function(n){e===i&amp;&amp;t.__response(n),t.pending--,t.pending||t.element.removeClass("ui-autocomplete-loading")}},__response:function(t){t&amp;&amp;(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&amp;&amp;t&amp;&amp;t.length&amp;&amp;!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&amp;&amp;(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&amp;&amp;this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&amp;&amp;e[0].label&amp;&amp;e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&amp;&amp;this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("&lt;li&gt;").append(t("&lt;a&gt;").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&amp;&amp;/^previous/.test(t)||this.menu.isLastItem()&amp;&amp;/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&amp;&amp;(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&amp;")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t&gt;1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&amp;&amp;t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(n),function(t,e){var i,n,r,s,o="ui-button ui-widget ui-state-default ui-corner-all",a="ui-state-hover ui-state-active ",l="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",u=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},h=function(e){var i=e.name,n=e.form,r=t([]);return i&amp;&amp;(i=i.replace(/'/g,"\\'"),r=n?t(n).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),r};t.widget("ui.button",{version:"1.10.3",defaultElement:"&lt;button&gt;",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,u),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,a=this.options,l="checkbox"===this.type||"radio"===this.type,c=l?"":"ui-state-active",p="ui-state-focus";null===a.label&amp;&amp;(a.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(o).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){a.disabled||this===i&amp;&amp;t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){a.disabled||t(this).removeClass(c)}).bind("click"+this.eventNamespace,function(t){a.disabled&amp;&amp;(t.preventDefault(),t.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){e.buttonElement.addClass(p)}).bind("blur"+this.eventNamespace,function(){e.buttonElement.removeClass(p)}),l&amp;&amp;(this.element.bind("change"+this.eventNamespace,function(){s||e.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(t){a.disabled||(s=!1,n=t.pageX,r=t.pageY)}).bind("mouseup"+this.eventNamespace,function(t){a.disabled||(n!==t.pageX||r!==t.pageY)&amp;&amp;(s=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return a.disabled||s?!1:void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(a.disabled||s)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var i=e.element[0];h(i).not(i).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return a.disabled?!1:(t(this).addClass("ui-state-active"),i=this,void e.document.one("mouseup",function(){i=null}))}).bind("mouseup"+this.eventNamespace,function(){return a.disabled?!1:void t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){return a.disabled?!1:void((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&amp;&amp;t(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&amp;&amp;this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&amp;&amp;t(this).click()})),this._setOption("disabled",a.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&amp;&amp;this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(o+" "+a+" "+l).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?void(e?this.element.prop("disabled",!0):this.element.prop("disabled",!1)):void this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&amp;&amp;this._setOption("disabled",e),"radio"===this.type?h(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&amp;&amp;(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&amp;&amp;this.element.val(this.options.label));var e=this.buttonElement.removeClass(l),i=t("&lt;span&gt;&lt;/span&gt;",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,r=n.primary&amp;&amp;n.secondary,s=[];n.primary||n.secondary?(this.options.text&amp;&amp;s.push("ui-button-text-icon"+(r?"s":n.primary?"-primary":"-secondary")),n.primary&amp;&amp;e.prepend("&lt;span class='ui-button-icon-primary ui-icon "+n.primary+"'&gt;&lt;/span&gt;"),n.secondary&amp;&amp;e.append("&lt;span class='ui-button-icon-secondary ui-icon "+n.secondary+"'&gt;&lt;/span&gt;"),this.options.text||(s.push(r?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):s.push("ui-button-text-only"),e.addClass(s.join(" "))}}),t.widget("ui.buttonset",{version:"1.10.3",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&amp;&amp;this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(n),function(t,e){function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.dpDiv=n(t("&lt;div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'&gt;&lt;/div&gt;"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&amp;&amp;t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&amp;&amp;t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){t.datepicker._isDisabledDatepicker(s.inline?e.parent()[0]:s.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&amp;&amp;t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&amp;&amp;t(this).addClass("ui-datepicker-next-hover"))})}function r(e,i){t.extend(e,i);for(var n in i)null==i[n]&amp;&amp;(e[n]=i[n]);return e}t.extend(t.ui,{datepicker:{version:"1.10.3"}});var s,o="datepicker";t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return r(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,r,s;n=e.nodeName.toLowerCase(),r="div"===n||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),s=this._newInst(t(e),r),s.settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,s):r&amp;&amp;this._inlineDatepicker(e,s)},_newInst:function(e,i){var r=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("&lt;div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'&gt;&lt;/div&gt;")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,o,i),i.settings.disabled&amp;&amp;this._disableDatepicker(e))},_attachments:function(e,i){var n,r,s,o=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&amp;&amp;i.append.remove(),o&amp;&amp;(i.append=t("&lt;span class='"+this._appendClass+"'&gt;"+o+"&lt;/span&gt;"),e[a?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&amp;&amp;i.trigger.remove(),n=this._get(i,"showOn"),("focus"===n||"both"===n)&amp;&amp;e.focus(this._showDatepicker),("button"===n||"both"===n)&amp;&amp;(r=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("&lt;img/&gt;").addClass(this._triggerClass).attr({src:s,alt:r,title:r}):t("&lt;button type='button'&gt;&lt;/button&gt;").addClass(this._triggerClass).html(s?t("&lt;img/&gt;").attr({src:s,alt:r,title:r}):r)),e[a?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&amp;&amp;t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&amp;&amp;t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&amp;&amp;!t.inline){var e,i,n,r,s=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&amp;&amp;(e=function(t){for(i=0,n=0,r=0;r&lt;t.length;r++)t[r].length&gt;i&amp;&amp;(i=t[r].length,n=r);return n},s.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,o,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&amp;&amp;this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,a){var l,u,h,c,p,d=this._dialogInst;return d||(this.uuid+=1,l="dp"+this.uuid,this._dialogInput=t("&lt;input type='text' id='"+l+"' style='position: absolute; top: -100px; width: 0px;'/&gt;"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],o,d)),r(d.settings,s||{}),i=i&amp;&amp;i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(u=document.documentElement.clientWidth,h=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,p=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[u/2-100+c,h/2-150+p]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&amp;&amp;t.blockUI(this.dpDiv),t.data(this._dialogInput[0],o,d),this},_destroyDatepicker:function(e){var i,n=t(e),r=t.data(e,o);n.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),t.removeData(e,o),"input"===i?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&amp;&amp;n.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,n,r=t(e),s=t.data(e,o);r.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&amp;&amp;(n=r.children("."+this._inlineClass),n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,r=t(e),s=t.data(e,o);r.hasClass(this.markerClassName)&amp;&amp;(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&amp;&amp;(n=r.children("."+this._inlineClass),n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e&lt;this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,o)}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,n,s){var o,a,l,u,h=this._getInst(i);return 2===arguments.length&amp;&amp;"string"==typeof n?"defaults"===n?t.extend({},t.datepicker._defaults):h?"all"===n?t.extend({},h.settings):this._get(h,n):null:(o=n||{},"string"==typeof n&amp;&amp;(o={},o[n]=s),void(h&amp;&amp;(this._curInst===h&amp;&amp;this._hideDatepicker(),a=this._getDateDatepicker(i,!0),l=this._getMinMaxDate(h,"min"),u=this._getMinMaxDate(h,"max"),r(h.settings,o),null!==l&amp;&amp;o.dateFormat!==e&amp;&amp;o.minDate===e&amp;&amp;(h.settings.minDate=this._formatDate(h,l)),null!==u&amp;&amp;o.dateFormat!==e&amp;&amp;o.maxDate===e&amp;&amp;(h.settings.maxDate=this._formatDate(h,u)),"disabled"in o&amp;&amp;(o.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),h),this._autoSize(h),this._setDate(h,a),this._updateAlternate(h),this._updateDatepicker(h))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&amp;&amp;this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&amp;&amp;(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&amp;&amp;!i.inline&amp;&amp;this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,r,s=t.datepicker._getInst(e.target),o=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return r=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv),r[0]&amp;&amp;t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,r[0]),i=t.datepicker._get(s,"onSelect"),i?(n=t.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[n,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,a?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&amp;&amp;t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,a?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&amp;&amp;t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&amp;&amp;t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&amp;&amp;e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&amp;&amp;(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,r=t.datepicker._getInst(e.target);return t.datepicker._get(r,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(r,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" "&gt;n||!i||i.indexOf(n)&gt;-1):void 0},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&amp;&amp;(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(r){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&amp;&amp;(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&amp;&amp;t.datepicker._lastInput!==e){var i,n,s,o,a,l,u;i=t.datepicker._getInst(e),t.datepicker._curInst&amp;&amp;t.datepicker._curInst!==i&amp;&amp;(t.datepicker._curInst.dpDiv.stop(!0,!0),i&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker._get(i,"beforeShow"),s=n?n.apply(e,[e,i]):{},s!==!1&amp;&amp;(r(i.settings,s),i.lastVal=null,
        t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&amp;&amp;(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each(function(){return o|="fixed"===t(this).css("position"),!o}),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),a=t.datepicker._checkOffset(i,a,o),i.dpDiv.css({position:t.datepicker._inDialog&amp;&amp;t.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),u=t.datepicker._get(i,"duration"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&amp;&amp;t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),u):i.dpDiv[l||"show"](l?u:null),t.datepicker._shouldFocusInput(i)&amp;&amp;i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,s=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,n=this._getNumberOfMonths(e),r=n[1],o=17;e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r&gt;1&amp;&amp;e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",o*r+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;t.datepicker._shouldFocusInput(e)&amp;&amp;e.input.focus(),e.yearshtml&amp;&amp;(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&amp;&amp;e.yearshtml&amp;&amp;e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&amp;&amp;t.input.is(":visible")&amp;&amp;!t.input.is(":disabled")&amp;&amp;!t.input.is(":focus")},_checkOffset:function(e,i,n){var r=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?r-o:0,i.left-=n&amp;&amp;i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&amp;&amp;i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r&gt;l&amp;&amp;l&gt;r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+s&gt;u&amp;&amp;u&gt;s?Math.abs(s+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),r=this._get(n,"isRTL");e&amp;&amp;("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,r,s,a=this._curInst;!a||e&amp;&amp;a!==t.data(e,o)||this._datepickerShowing&amp;&amp;(i=this._get(a,"showAnim"),n=this._get(a,"duration"),r=function(){t.datepicker._tidyDialog(a)},t.effects&amp;&amp;(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,r):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,r),i||r(),this._datepickerShowing=!1,s=this._get(a,"onClose"),s&amp;&amp;s.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&amp;&amp;(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&amp;&amp;(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&amp;&amp;0===i.parents("#"+t.datepicker._mainDivId).length&amp;&amp;!i.hasClass(t.datepicker.markerClassName)&amp;&amp;!i.closest("."+t.datepicker._triggerClass).length&amp;&amp;t.datepicker._datepickerShowing&amp;&amp;(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&amp;&amp;t.datepicker._curInst!==n)&amp;&amp;t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var r=t(e),s=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(s,i+("M"===n?this._get(s,"showCurrentAtPos"):0),n),this._updateDatepicker(s))},_gotoToday:function(e){var i,n=t(e),r=this._getInst(n[0]);this._get(r,"gotoCurrent")&amp;&amp;r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var r=t(e),s=this._getInst(r[0]);s["selected"+("M"===n?"Month":"Year")]=s["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(r)},_selectDay:function(e,i,n,r){var s,o=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(s=this._getInst(o[0]),s.selectedDay=s.currentDay=t("a",r).html(),s.selectedMonth=s.currentMonth=i,s.selectedYear=s.currentYear=n,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,r=t(e),s=this._getInst(r[0]);i=null!=i?i:this._formatDate(s),s.input&amp;&amp;s.input.val(i),this._updateAlternate(s),n=this._get(s,"onSelect"),n?n.apply(s.input?s.input[0]:null,[i,s]):s.input&amp;&amp;s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&amp;&amp;s.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,n,r,s=this._get(e,"altField");s&amp;&amp;(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),r=this.formatDate(i,n,this._getFormatConfig(e)),t(s).each(function(){t(this).val(r)}))},noWeekends:function(t){var e=t.getDay();return[e&gt;0&amp;&amp;6&gt;e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?i.toString():i+"",""===i)return null;var r,s,o,a,l=0,u=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),c=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,d=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,y=!1,b=function(t){var i=r+1&lt;e.length&amp;&amp;e.charAt(r+1)===t;return i&amp;&amp;r++,i},w=function(t){var e=b(t),n="@"===t?14:"!"===t?20:"y"===t&amp;&amp;e?4:"o"===t?3:2,r=new RegExp("^\\d{1,"+n+"}"),s=i.substring(l).match(r);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},x=function(e,n,r){var s=-1,o=t.map(b(e)?r:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(o,function(t,e){var n=e[1];return i.substr(l,n.length).toLowerCase()===n.toLowerCase()?(s=e[0],l+=n.length,!1):void 0}),-1!==s)return s+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==e.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r&lt;e.length;r++)if(y)"'"!==e.charAt(r)||b("'")?k():y=!1;else switch(e.charAt(r)){case"d":_=w("d");break;case"D":x("D",c,p);break;case"o":v=w("o");break;case"m":m=w("m");break;case"M":m=x("M",d,f);break;case"y":g=w("y");break;case"@":a=new Date(w("@")),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case"!":a=new Date((w("!")-this._ticksTo1970)/1e4),g=a.getFullYear(),m=a.getMonth()+1,_=a.getDate();break;case"'":b("'")?k():y=!0;break;default:k()}if(l&lt;i.length&amp;&amp;(o=i.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===g?g=(new Date).getFullYear():100&gt;g&amp;&amp;(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h&gt;=g?0:-100)),v&gt;-1)for(m=1,_=v;;){if(s=this._getDaysInMonth(g,m-1),s&gt;=_)break;m++,_-=s}if(a=this._daylightSavingAdjust(new Date(g,m-1,_)),a.getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==_)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1&lt;t.length&amp;&amp;t.charAt(n+1)===e;return i&amp;&amp;n++,i},u=function(t,e,i){var n=""+e;if(l(t))for(;n.length&lt;i;)n="0"+n;return n},h=function(t,e,i,n){return l(t)?n[e]:i[e]},c="",p=!1;if(e)for(n=0;n&lt;t.length;n++)if(p)"'"!==t.charAt(n)||l("'")?c+=t.charAt(n):p=!1;else switch(t.charAt(n)){case"d":c+=u("d",e.getDate(),2);break;case"D":c+=h("D",e.getDay(),r,s);break;case"o":c+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=u("m",e.getMonth()+1,2);break;case"M":c+=h("M",e.getMonth(),o,a);break;case"y":c+=l("y")?e.getFullYear():(e.getYear()%100&lt;10?"0":"")+e.getYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?c+="'":p=!0;break;default:c+=t.charAt(n)}return c},_possibleChars:function(t){var e,i="",n=!1,r=function(i){var n=e+1&lt;t.length&amp;&amp;t.charAt(e+1)===i;return n&amp;&amp;e++,n};for(e=0;e&lt;t.length;e++)if(n)"'"!==t.charAt(e)||r("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":r("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),s=r,o=this._getFormatConfig(t);try{s=this.parseDate(i,n,o)||r}catch(a){n=e?"":n}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=n?s.getDate():0,t.currentMonth=n?s.getMonth():0,t.currentYear=n?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var r=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},s=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(n){}for(var r=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=r.getFullYear(),o=r.getMonth(),a=r.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(i);u;){switch(u[2]||"d"){case"d":case"D":a+=parseInt(u[1],10);break;case"w":case"W":a+=7*parseInt(u[1],10);break;case"m":case"M":o+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,o));break;case"y":case"Y":s+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,o))}u=l.exec(i)}return new Date(s,o,a)},o=null==i||""===i?n:"string"==typeof i?s(i):"number"==typeof i?isNaN(i)?n:r(i):new Date(i.getTime());return o=o&amp;&amp;"Invalid Date"===o.toString()?n:o,o&amp;&amp;(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()&gt;12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,r=t.selectedMonth,s=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),r===t.selectedMonth&amp;&amp;s===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&amp;&amp;t.input.val(n?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&amp;&amp;""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F,L,H=new Date,B=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),W=this._get(t,"isRTL"),q=this._get(t,"showButtonPanel"),Y=this._get(t,"hideIfNoPrevNext"),V=this._get(t,"navigationAsDateFormat"),$=this._getNumberOfMonths(t),U=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),X=1!==$[0]||1!==$[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),Q=this._getMinMaxDate(t,"max"),K=t.drawMonth-U,tt=t.drawYear;if(0&gt;K&amp;&amp;(K+=12,tt--),Q)for(e=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-$[0]*$[1]+1,Q.getDate())),e=J&amp;&amp;J&gt;e?J:e;this._daylightSavingAdjust(new Date(tt,K,1))&gt;e;)K--,0&gt;K&amp;&amp;(K=11,tt--);for(t.drawMonth=K,t.drawYear=tt,i=this._get(t,"prevText"),i=V?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,K-G,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,K)?"&lt;a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'&gt;"+i+"&lt;/span&gt;&lt;/a&gt;":Y?"":"&lt;a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'&gt;"+i+"&lt;/span&gt;&lt;/a&gt;",r=this._get(t,"nextText"),r=V?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,K+G,1)),this._getFormatConfig(t)):r,s=this._canAdjustMonth(t,1,tt,K)?"&lt;a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'&gt;"+r+"&lt;/span&gt;&lt;/a&gt;":Y?"":"&lt;a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'&gt;&lt;span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'&gt;"+r+"&lt;/span&gt;&lt;/a&gt;",o=this._get(t,"currentText"),a=this._get(t,"gotoCurrent")&amp;&amp;t.currentDay?Z:B,o=V?this.formatDate(o,a,this._getFormatConfig(t)):o,l=t.inline?"":"&lt;button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'&gt;"+this._get(t,"closeText")+"&lt;/button&gt;",u=q?"&lt;div class='ui-datepicker-buttonpane ui-widget-content'&gt;"+(W?l:"")+(this._isInRange(t,a)?"&lt;button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'&gt;"+o+"&lt;/button&gt;":"")+(W?"":l)+"&lt;/div&gt;":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,c=this._get(t,"showWeek"),p=this._get(t,"dayNames"),d=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),b="",x=0;x&lt;$[0];x++){for(k="",this.maxRows=4,M=0;M&lt;$[1];M++){if(C=this._daylightSavingAdjust(new Date(tt,K,t.selectedDay)),D=" ui-corner-all",T="",X){if(T+="&lt;div class='ui-datepicker-group",$[1]&gt;1)switch(M){case 0:T+=" ui-datepicker-group-first",D=" ui-corner-"+(W?"right":"left");break;case $[1]-1:T+=" ui-datepicker-group-last",D=" ui-corner-"+(W?"left":"right");break;default:T+=" ui-datepicker-group-middle",D=""}T+="'&gt;"}for(T+="&lt;div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'&gt;"+(/all|left/.test(D)&amp;&amp;0===x?W?s:n:"")+(/all|right/.test(D)&amp;&amp;0===x?W?n:s:"")+this._generateMonthYearHeader(t,K,tt,J,Q,x&gt;0||M&gt;0,f,g)+"&lt;/div&gt;&lt;table class='ui-datepicker-calendar'&gt;&lt;thead&gt;&lt;tr&gt;",S=c?"&lt;th class='ui-datepicker-week-col'&gt;"+this._get(t,"weekHeader")+"&lt;/th&gt;":"",w=0;7&gt;w;w++)A=(w+h)%7,S+="&lt;th"+((w+h+6)%7&gt;=5?" class='ui-datepicker-week-end'":"")+"&gt;&lt;span title='"+p[A]+"'&gt;"+d[A]+"&lt;/span&gt;&lt;/th&gt;";for(T+=S+"&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;",P=this._getDaysInMonth(tt,K),tt===t.selectedYear&amp;&amp;K===t.selectedMonth&amp;&amp;(t.selectedDay=Math.min(t.selectedDay,P)),E=(this._getFirstDayOfMonth(tt,K)-h+7)%7,I=Math.ceil((E+P)/7),N=X&amp;&amp;this.maxRows&gt;I?this.maxRows:I,this.maxRows=N,R=this._daylightSavingAdjust(new Date(tt,K,1-E)),z=0;N&gt;z;z++){for(T+="&lt;tr&gt;",j=c?"&lt;td class='ui-datepicker-week-col'&gt;"+this._get(t,"calculateWeek")(R)+"&lt;/td&gt;":"",w=0;7&gt;w;w++)O=m?m.apply(t.input?t.input[0]:null,[R]):[!0,""],F=R.getMonth()!==K,L=F&amp;&amp;!v||!O[0]||J&amp;&amp;J&gt;R||Q&amp;&amp;R&gt;Q,j+="&lt;td class='"+((w+h+6)%7&gt;=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(R.getTime()===C.getTime()&amp;&amp;K===t.selectedMonth&amp;&amp;t._keyEvent||y.getTime()===R.getTime()&amp;&amp;y.getTime()===C.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&amp;&amp;!_?"":" "+O[1]+(R.getTime()===Z.getTime()?" "+this._currentClass:"")+(R.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(F&amp;&amp;!_||!O[2]?"":" title='"+O[2].replace(/'/g,"&amp;#39;")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+"&gt;"+(F&amp;&amp;!_?"&amp;#xa0;":L?"&lt;span class='ui-state-default'&gt;"+R.getDate()+"&lt;/span&gt;":"&lt;a class='ui-state-default"+(R.getTime()===B.getTime()?" ui-state-highlight":"")+(R.getTime()===Z.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'&gt;"+R.getDate()+"&lt;/a&gt;")+"&lt;/td&gt;",R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);T+=j+"&lt;/tr&gt;"}K++,K&gt;11&amp;&amp;(K=0,tt++),T+="&lt;/tbody&gt;&lt;/table&gt;"+(X?"&lt;/div&gt;"+($[0]&gt;0&amp;&amp;M===$[1]-1?"&lt;div class='ui-datepicker-row-break'&gt;&lt;/div&gt;":""):""),k+=T}b+=k}return b+=u,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,r,s,o,a){var l,u,h,c,p,d,f,g,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),y="&lt;div class='ui-datepicker-title'&gt;",b="";if(s||!m)b+="&lt;span class='ui-datepicker-month'&gt;"+o[e]+"&lt;/span&gt;";else{for(l=n&amp;&amp;n.getFullYear()===i,u=r&amp;&amp;r.getFullYear()===i,b+="&lt;select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'&gt;",h=0;12&gt;h;h++)(!l||h&gt;=n.getMonth())&amp;&amp;(!u||h&lt;=r.getMonth())&amp;&amp;(b+="&lt;option value='"+h+"'"+(h===e?" selected='selected'":"")+"&gt;"+a[h]+"&lt;/option&gt;");b+="&lt;/select&gt;"}if(v||(y+=b+(!s&amp;&amp;m&amp;&amp;_?"":"&amp;#xa0;")),!t.yearshtml)if(t.yearshtml="",s||!_)y+="&lt;span class='ui-datepicker-year'&gt;"+i+"&lt;/span&gt;";else{for(c=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),d=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e},f=d(c[0]),g=Math.max(f,d(c[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="&lt;select class='ui-datepicker-year' data-handler='selectYear' data-event='change'&gt;";g&gt;=f;f++)t.yearshtml+="&lt;option value='"+f+"'"+(f===i?" selected='selected'":"")+"&gt;"+f+"&lt;/option&gt;";t.yearshtml+="&lt;/select&gt;",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),v&amp;&amp;(y+=(!s&amp;&amp;m&amp;&amp;_?"":"&amp;#xa0;")+b),y+="&lt;/div&gt;"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),r=t.drawMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,s)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),("M"===i||"Y"===i)&amp;&amp;this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&amp;&amp;i&gt;e?i:e;return n&amp;&amp;r&gt;n?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&amp;&amp;e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(0&gt;e?e:r[0]*r[1]),1));return 0&gt;e&amp;&amp;s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),o=null,a=null,l=this._get(t,"yearRange");return l&amp;&amp;(i=l.split(":"),n=(new Date).getFullYear(),o=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&amp;&amp;(o+=n),i[1].match(/[+\-].*/)&amp;&amp;(a+=n)),(!r||e.getTime()&gt;=r.getTime())&amp;&amp;(!s||e.getTime()&lt;=s.getTime())&amp;&amp;(!o||e.getFullYear()&gt;=o)&amp;&amp;(!a||e.getFullYear()&lt;=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&amp;&amp;t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&amp;&amp;"getDate"!==e&amp;&amp;"widget"!==e?"option"===e&amp;&amp;2===arguments.length&amp;&amp;"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.3"}(n),function(t,e){var i={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},n={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0&gt;i&amp;&amp;t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&amp;&amp;t.fn.draggable&amp;&amp;this._makeDraggable(),this.options.resizable&amp;&amp;t.fn.resizable&amp;&amp;this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&amp;&amp;this.open()},_appendTo:function(){var e=this.options.appendTo;return e&amp;&amp;(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&amp;&amp;this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&amp;&amp;t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&amp;&amp;this._trigger("beforeClose",e)!==!1&amp;&amp;(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||t(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&amp;&amp;!e&amp;&amp;this._trigger("focus",t),i},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&amp;&amp;this._focusTabbable()):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var t=this.element.find("[autofocus]");t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement,i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("&lt;div&gt;").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&amp;&amp;!e.isDefaultPrevented()&amp;&amp;e.keyCode&amp;&amp;e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),r=i.filter(":last");e.target!==r[0]&amp;&amp;e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&amp;&amp;e.target!==this.uiDialog[0]||!e.shiftKey||(r.focus(1),e.preventDefault()):(n.focus(1),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&amp;&amp;this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("&lt;div&gt;").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("&lt;button&gt;&lt;/button&gt;").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("&lt;span&gt;").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&amp;#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("&lt;div&gt;").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("&lt;div&gt;").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&amp;&amp;!i.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(t.each(i,function(i,n){var r,s;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),r=n.click,n.click=function(){r.apply(e.element[0],arguments)},s={icons:n.icons,text:n.showText},delete n.icons,delete n.showText,t("&lt;button&gt;&lt;/button&gt;",n).button(s).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,r){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(r))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(r,s){n.position=[s.position.left-i.document.scrollLeft(),s.position.top-i.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",r,e(s))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,r=n.resizable,s=this.uiDialog.css("position"),o="string"==typeof r?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:o,start:function(n,r){t(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,e(r))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(r,s){n.height=t(this).height(),n.width=t(this).width(),t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",r,e(s))}}).css("position",s)},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var r=this,s=!1,o={};t.each(e,function(t,e){r._setOption(t,e),t in i&amp;&amp;(s=!0),t in n&amp;&amp;(o[t]=e)}),s&amp;&amp;(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&amp;&amp;this.uiDialog.resizable("option",o)},_setOption:function(t,e){var i,n,r=this.uiDialog;"dialogClass"===t&amp;&amp;r.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&amp;&amp;(this._super(t,e),"appendTo"===t&amp;&amp;this.uiDialog.appendTo(this._appendTo()),"buttons"===t&amp;&amp;this._createButtons(),"closeText"===t&amp;&amp;this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&amp;&amp;(i=r.is(":data(ui-draggable)"),i&amp;&amp;!e&amp;&amp;r.draggable("destroy"),!i&amp;&amp;e&amp;&amp;this._makeDraggable()),"position"===t&amp;&amp;this._position(),"resizable"===t&amp;&amp;(n=r.is(":data(ui-resizable)"),n&amp;&amp;!e&amp;&amp;r.resizable("destroy"),n&amp;&amp;"string"==typeof e&amp;&amp;r.resizable("option","handles",e),n||e===!1||this._makeResizable()),"title"===t&amp;&amp;this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth&gt;n.width&amp;&amp;(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&amp;&amp;this.uiDialog.resizable("option","minHeight",this._minHeight());
        },_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("&lt;div&gt;").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&amp;&amp;(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&amp;&amp;this.document.bind("focusin.dialog",function(n){e._allowInteraction(n)||(n.preventDefault(),t(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=t("&lt;div&gt;").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&amp;&amp;this.overlay&amp;&amp;(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,t.uiBackCompat!==!1&amp;&amp;t.widget("ui.dialog",t.ui.dialog,{_position:function(){var e,i=this.options.position,n=[],r=[0,0];i?(("string"==typeof i||"object"==typeof i&amp;&amp;"0"in i)&amp;&amp;(n=i.split?i.split(" "):[i[0],i[1]],1===n.length&amp;&amp;(n[1]=n[0]),t.each(["left","top"],function(t,e){+n[t]===n[t]&amp;&amp;(r[t]=n[t],n[t]=e)}),i={my:n[0]+(r[0]&lt;0?r[0]:"+"+r[0])+" "+n[1]+(r[1]&lt;0?r[1]:"+"+r[1]),at:n.join(" ")}),i=t.extend({},t.ui.dialog.prototype.options.position,i)):i=t.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(i),e||this.uiDialog.hide()}})}(n),function(t,e){var i=/up|down|vertical/,n=/up|left|vertical|horizontal/;t.effects.effect.blind=function(e,r){var s,o,a,l=t(this),u=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(l,e.mode||"hide"),c=e.direction||"up",p=i.test(c),d=p?"height":"width",f=p?"top":"left",g=n.test(c),m={},_="show"===h;l.parent().is(".ui-effects-wrapper")?t.effects.save(l.parent(),u):t.effects.save(l,u),l.show(),s=t.effects.createWrapper(l).css({overflow:"hidden"}),o=s[d](),a=parseFloat(s.css(f))||0,m[d]=_?o:0,g||(l.css(p?"bottom":"right",0).css(p?"top":"left","auto").css({position:"absolute"}),m[f]=_?a:o+a),_&amp;&amp;(s.css(d,0),g||s.css(f,a+o)),s.animate(m,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===h&amp;&amp;l.hide(),t.effects.restore(l,u),t.effects.removeWrapper(l),r()}})}}(n),function(t,e){t.effects.effect.bounce=function(e,i){var n,r,s,o=t(this),a=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(o,e.mode||"effect"),u="hide"===l,h="show"===l,c=e.direction||"up",p=e.distance,d=e.times||5,f=2*d+(h||u?1:0),g=e.duration/f,m=e.easing,_="up"===c||"down"===c?"top":"left",v="up"===c||"left"===c,y=o.queue(),b=y.length;for((h||u)&amp;&amp;a.push("opacity"),t.effects.save(o,a),o.show(),t.effects.createWrapper(o),p||(p=o["top"===_?"outerHeight":"outerWidth"]()/3),h&amp;&amp;(s={opacity:1},s[_]=0,o.css("opacity",0).css(_,v?2*-p:2*p).animate(s,g,m)),u&amp;&amp;(p/=Math.pow(2,d-1)),s={},s[_]=0,n=0;d&gt;n;n++)r={},r[_]=(v?"-=":"+=")+p,o.animate(r,g,m).animate(s,g,m),p=u?2*p:p/2;u&amp;&amp;(r={opacity:0},r[_]=(v?"-=":"+=")+p,o.animate(r,g,m)),o.queue(function(){u&amp;&amp;o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),i()}),b&gt;1&amp;&amp;y.splice.apply(y,[1,0].concat(y.splice(b,f+1))),o.dequeue()}}(n),function(t,e){t.effects.effect.clip=function(e,i){var n,r,s,o=t(this),a=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(o,e.mode||"hide"),u="show"===l,h=e.direction||"vertical",c="vertical"===h,p=c?"height":"width",d=c?"top":"left",f={};t.effects.save(o,a),o.show(),n=t.effects.createWrapper(o).css({overflow:"hidden"}),r="IMG"===o[0].tagName?n:o,s=r[p](),u&amp;&amp;(r.css(p,0),r.css(d,s/2)),f[p]=u?s:0,f[d]=u?0:s/2,r.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){u||o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),i()}})}}(n),function(t,e){t.effects.effect.drop=function(e,i){var n,r=t(this),s=["position","top","bottom","left","right","opacity","height","width"],o=t.effects.setMode(r,e.mode||"hide"),a="show"===o,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l?"pos":"neg",c={opacity:a?1:0};t.effects.save(r,s),r.show(),t.effects.createWrapper(r),n=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0)/2,a&amp;&amp;r.css("opacity",0).css(u,"pos"===h?-n:n),c[u]=(a?"pos"===h?"+=":"-=":"pos"===h?"-=":"+=")+n,r.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&amp;&amp;r.hide(),t.effects.restore(r,s),t.effects.removeWrapper(r),i()}})}}(n),function(t,e){t.effects.effect.explode=function(e,i){function n(){y.push(this),y.length===c*p&amp;&amp;r()}function r(){d.css({visibility:"visible"}),t(y).remove(),g||d.hide(),i()}var s,o,a,l,u,h,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,p=c,d=t(this),f=t.effects.setMode(d,e.mode||"hide"),g="show"===f,m=d.show().css("visibility","hidden").offset(),_=Math.ceil(d.outerWidth()/p),v=Math.ceil(d.outerHeight()/c),y=[];for(s=0;c&gt;s;s++)for(l=m.top+s*v,h=s-(c-1)/2,o=0;p&gt;o;o++)a=m.left+o*_,u=o-(p-1)/2,d.clone().appendTo("body").wrap("&lt;div&gt;&lt;/div&gt;").css({position:"absolute",visibility:"visible",left:-o*_,top:-s*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:_,height:v,left:a+(g?u*_:0),top:l+(g?h*v:0),opacity:g?0:1}).animate({left:a+(g?0:u*_),top:l+(g?0:h*v),opacity:g?1:0},e.duration||500,e.easing,n)}}(n),function(t,e){t.effects.effect.fade=function(e,i){var n=t(this),r=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:r},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}(n),function(t,e){t.effects.effect.fold=function(e,i){var n,r,s=t(this),o=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(s,e.mode||"hide"),l="show"===a,u="hide"===a,h=e.size||15,c=/([0-9]+)%/.exec(h),p=!!e.horizFirst,d=l!==p,f=d?["width","height"]:["height","width"],g=e.duration/2,m={},_={};t.effects.save(s,o),s.show(),n=t.effects.createWrapper(s).css({overflow:"hidden"}),r=d?[n.width(),n.height()]:[n.height(),n.width()],c&amp;&amp;(h=parseInt(c[1],10)/100*r[u?0:1]),l&amp;&amp;n.css(p?{height:0,width:h}:{height:h,width:0}),m[f[0]]=l?r[0]:h,_[f[1]]=l?r[1]:0,n.animate(m,g,e.easing).animate(_,g,e.easing,function(){u&amp;&amp;s.hide(),t.effects.restore(s,o),t.effects.removeWrapper(s),i()})}}(n),function(t,e){t.effects.effect.highlight=function(e,i){var n=t(this),r=["backgroundImage","backgroundColor","opacity"],s=t.effects.setMode(n,e.mode||"show"),o={backgroundColor:n.css("backgroundColor")};"hide"===s&amp;&amp;(o.opacity=0),t.effects.save(n,r),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===s&amp;&amp;n.hide(),t.effects.restore(n,r),i()}})}}(n),function(t,e){t.effects.effect.pulsate=function(e,i){var n,r=t(this),s=t.effects.setMode(r,e.mode||"show"),o="show"===s,a="hide"===s,l=o||"hide"===s,u=2*(e.times||5)+(l?1:0),h=e.duration/u,c=0,p=r.queue(),d=p.length;for((o||!r.is(":visible"))&amp;&amp;(r.css("opacity",0).show(),c=1),n=1;u&gt;n;n++)r.animate({opacity:c},h,e.easing),c=1-c;r.animate({opacity:c},h,e.easing),r.queue(function(){a&amp;&amp;r.hide(),i()}),d&gt;1&amp;&amp;p.splice.apply(p,[1,0].concat(p.splice(d,u+1))),r.dequeue()}}(n),function(t,e){t.effects.effect.puff=function(e,i){var n=t(this),r=t.effects.setMode(n,e.mode||"hide"),s="hide"===r,o=parseInt(e.percent,10)||150,a=o/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:r,complete:i,percent:s?o:100,from:s?l:{height:l.height*a,width:l.width*a,outerHeight:l.outerHeight*a,outerWidth:l.outerWidth*a}}),n.effect(e)},t.effects.effect.scale=function(e,i){var n=t(this),r=t.extend(!0,{},e),s=t.effects.setMode(n,e.mode||"effect"),o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===s?0:100),a=e.direction||"both",l=e.origin,u={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},h={y:"horizontal"!==a?o/100:1,x:"vertical"!==a?o/100:1};r.effect="size",r.queue=!1,r.complete=i,"effect"!==s&amp;&amp;(r.origin=l||["middle","center"],r.restore=!0),r.from=e.from||("show"===s?{height:0,width:0,outerHeight:0,outerWidth:0}:u),r.to={height:u.height*h.y,width:u.width*h.x,outerHeight:u.outerHeight*h.y,outerWidth:u.outerWidth*h.x},r.fade&amp;&amp;("show"===s&amp;&amp;(r.from.opacity=0,r.to.opacity=1),"hide"===s&amp;&amp;(r.from.opacity=1,r.to.opacity=0)),n.effect(r)},t.effects.effect.size=function(e,i){var n,r,s,o=t(this),a=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],u=["width","height","overflow"],h=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],p=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],d=t.effects.setMode(o,e.mode||"effect"),f=e.restore||"effect"!==d,g=e.scale||"both",m=e.origin||["middle","center"],_=o.css("position"),v=f?a:l,y={height:0,width:0,outerHeight:0,outerWidth:0};"show"===d&amp;&amp;o.show(),n={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},"toggle"===e.mode&amp;&amp;"show"===d?(o.from=e.to||y,o.to=e.from||n):(o.from=e.from||("show"===d?y:n),o.to=e.to||("hide"===d?y:n)),s={from:{y:o.from.height/n.height,x:o.from.width/n.width},to:{y:o.to.height/n.height,x:o.to.width/n.width}},("box"===g||"both"===g)&amp;&amp;(s.from.y!==s.to.y&amp;&amp;(v=v.concat(c),o.from=t.effects.setTransition(o,c,s.from.y,o.from),o.to=t.effects.setTransition(o,c,s.to.y,o.to)),s.from.x!==s.to.x&amp;&amp;(v=v.concat(p),o.from=t.effects.setTransition(o,p,s.from.x,o.from),o.to=t.effects.setTransition(o,p,s.to.x,o.to))),("content"===g||"both"===g)&amp;&amp;s.from.y!==s.to.y&amp;&amp;(v=v.concat(h).concat(u),o.from=t.effects.setTransition(o,h,s.from.y,o.from),o.to=t.effects.setTransition(o,h,s.to.y,o.to)),t.effects.save(o,v),o.show(),t.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),m&amp;&amp;(r=t.effects.getBaseline(m,n),o.from.top=(n.outerHeight-o.outerHeight())*r.y,o.from.left=(n.outerWidth-o.outerWidth())*r.x,o.to.top=(n.outerHeight-o.to.outerHeight)*r.y,o.to.left=(n.outerWidth-o.to.outerWidth)*r.x),o.css(o.from),("content"===g||"both"===g)&amp;&amp;(c=c.concat(["marginTop","marginBottom"]).concat(h),p=p.concat(["marginLeft","marginRight"]),u=a.concat(c).concat(p),o.find("*[width]").each(function(){var i=t(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&amp;&amp;t.effects.save(i,u),i.from={height:n.height*s.from.y,width:n.width*s.from.x,outerHeight:n.outerHeight*s.from.y,outerWidth:n.outerWidth*s.from.x},i.to={height:n.height*s.to.y,width:n.width*s.to.x,outerHeight:n.height*s.to.y,outerWidth:n.width*s.to.x},s.from.y!==s.to.y&amp;&amp;(i.from=t.effects.setTransition(i,c,s.from.y,i.from),i.to=t.effects.setTransition(i,c,s.to.y,i.to)),s.from.x!==s.to.x&amp;&amp;(i.from=t.effects.setTransition(i,p,s.from.x,i.from),i.to=t.effects.setTransition(i,p,s.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&amp;&amp;t.effects.restore(i,u)})})),o.animate(o.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===o.to.opacity&amp;&amp;o.css("opacity",o.from.opacity),"hide"===d&amp;&amp;o.hide(),t.effects.restore(o,v),f||("static"===_?o.css({position:"relative",top:o.to.top,left:o.to.left}):t.each(["top","left"],function(t,e){o.css(e,function(e,i){var n=parseInt(i,10),r=t?o.to.left:o.to.top;return"auto"===i?r+"px":n+r+"px"})})),t.effects.removeWrapper(o),i()}})}}(n),function(t,e){t.effects.effect.shake=function(e,i){var n,r=t(this),s=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(r,e.mode||"effect"),a=e.direction||"left",l=e.distance||20,u=e.times||3,h=2*u+1,c=Math.round(e.duration/h),p="up"===a||"down"===a?"top":"left",d="up"===a||"left"===a,f={},g={},m={},_=r.queue(),v=_.length;for(t.effects.save(r,s),r.show(),t.effects.createWrapper(r),f[p]=(d?"-=":"+=")+l,g[p]=(d?"+=":"-=")+2*l,m[p]=(d?"-=":"+=")+2*l,r.animate(f,c,e.easing),n=1;u&gt;n;n++)r.animate(g,c,e.easing).animate(m,c,e.easing);r.animate(g,c,e.easing).animate(f,c/2,e.easing).queue(function(){"hide"===o&amp;&amp;r.hide(),t.effects.restore(r,s),t.effects.removeWrapper(r),i()}),v&gt;1&amp;&amp;_.splice.apply(_,[1,0].concat(_.splice(v,h+1))),r.dequeue()}}(n),function(t,e){t.effects.effect.slide=function(e,i){var n,r=t(this),s=["position","top","bottom","left","right","width","height"],o=t.effects.setMode(r,e.mode||"show"),a="show"===o,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l,c={};t.effects.save(r,s),r.show(),n=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(r).css({overflow:"hidden"}),a&amp;&amp;r.css(u,h?isNaN(n)?"-"+n:-n:n),c[u]=(a?h?"+=":"-=":h?"-=":"+=")+n,r.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&amp;&amp;r.hide(),t.effects.restore(r,s),t.effects.removeWrapper(r),i()}})}}(n),function(t,e){t.effects.effect.transfer=function(e,i){var n=t(this),r=t(e.to),s="fixed"===r.css("position"),o=t("body"),a=s?o.scrollTop():0,l=s?o.scrollLeft():0,u=r.offset(),h={top:u.top-a,left:u.left-l,height:r.innerHeight(),width:r.innerWidth()},c=n.offset(),p=t("&lt;div class='ui-effects-transfer'&gt;&lt;/div&gt;").appendTo(document.body).addClass(e.className).css({top:c.top-a,left:c.left-l,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(h,e.duration,e.easing,function(){p.remove(),i()})}}(n),function(t,e){t.widget("ui.menu",{version:"1.10.3",defaultElement:"&lt;ul&gt;",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&amp;&amp;t.preventDefault()},this)),this.options.disabled&amp;&amp;this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item &gt; a":function(t){t.preventDefault()},"click .ui-state-disabled &gt; a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&amp;&amp;i.not(".ui-state-disabled").length&amp;&amp;(this.mouseHandled=!0,this.select(e),i.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&amp;&amp;1===this.active.parents(".ui-menu").length&amp;&amp;clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&amp;&amp;e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&amp;")}var n,r,s,o,a,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&amp;&amp;!this.active.is(".ui-state-disabled")&amp;&amp;this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,r=this.previousFilter||"",s=String.fromCharCode(e.keyCode),o=!1,clearTimeout(this.filterTimer),s===r?o=!0:s=r+s,a=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())}),n=o&amp;&amp;-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(s=String.fromCharCode(e.keyCode),a=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())})),n.length?(this.focus(e,n),n.length&gt;1?(this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&amp;&amp;e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,n=this.element.find(this.options.menus);n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev("a"),r=t("&lt;span&gt;").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(r),e.attr("aria-labelledby",n.attr("id"))}),e=n.add(this.element),e.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&amp;&amp;!t.contains(this.element[0],this.active[0])&amp;&amp;this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&amp;&amp;this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&amp;&amp;"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&amp;&amp;this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&amp;&amp;"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&amp;&amp;/^mouse/.test(t.type)&amp;&amp;this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,r,s,o,a;this._hasScroll()&amp;&amp;(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-i-n,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=e.height(),0&gt;r?this.activeMenu.scrollTop(s+r):r+a&gt;o&amp;&amp;this.activeMenu.scrollTop(s+r-o+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&amp;&amp;(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&amp;&amp;(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&amp;&amp;e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&amp;&amp;this.active.parent().closest(".ui-menu-item",this.element);e&amp;&amp;e.length&amp;&amp;(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&amp;&amp;this.active.children(".ui-menu ").children(".ui-menu-item").first();e&amp;&amp;e.length&amp;&amp;(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&amp;&amp;!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&amp;&amp;!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&amp;&amp;(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&amp;&amp;n.length&amp;&amp;this.active||(n=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,n)},nextPage:function(e){var i,n,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n-r&lt;0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+r&gt;0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()&lt;this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}})}(n),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}function r(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var s,o=Math.max,a=Math.abs,l=Math.round,u=/left|center|right/,h=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,p=/^\w+/,d=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(s!==e)return s;var i,n,r=t("&lt;div style='display:block;width:50px;height:50px;overflow:hidden;'&gt;&lt;div style='height:100px;width:auto;'&gt;&lt;/div&gt;&lt;/div&gt;"),o=r.children()[0];return t("body").append(r),i=o.offsetWidth,r.css("overflow","scroll"),n=o.offsetWidth,i===n&amp;&amp;(n=r[0].clientWidth),r.remove(),s=i-n},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),n=e.isWindow?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&amp;&amp;e.width&lt;e.element[0].scrollWidth,s="scroll"===n||"auto"===n&amp;&amp;e.height&lt;e.element[0].scrollHeight;return{width:s?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]);return{element:i,isWindow:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var s,d,g,m,_,v,y=t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),x=(e.collision||"flip").split(" "),k={};return v=r(y),y[0].preventDefault&amp;&amp;(e.at="left top"),d=v.width,g=v.height,m=v.offset,_=t.extend({},m),t.each(["my","at"],function(){var t,i,n=(e[this]||"").split(" ");1===n.length&amp;&amp;(n=u.test(n[0])?n.concat(["center"]):h.test(n[0])?["center"].concat(n):["center","center"]),n[0]=u.test(n[0])?n[0]:"center",n[1]=h.test(n[1])?n[1]:"center",t=c.exec(n[0]),i=c.exec(n[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[p.exec(n[0])[0],p.exec(n[1])[0]]}),1===x.length&amp;&amp;(x[1]=x[0]),"right"===e.at[0]?_.left+=d:"center"===e.at[0]&amp;&amp;(_.left+=d/2),"bottom"===e.at[1]?_.top+=g:"center"===e.at[1]&amp;&amp;(_.top+=g/2),s=i(k.at,d,g),_.left+=s[0],_.top+=s[1],this.each(function(){var r,u,h=t(this),c=h.outerWidth(),p=h.outerHeight(),f=n(this,"marginLeft"),v=n(this,"marginTop"),M=c+f+n(this,"marginRight")+w.width,C=p+v+n(this,"marginBottom")+w.height,D=t.extend({},_),T=i(k.my,h.outerWidth(),h.outerHeight());"right"===e.my[0]?D.left-=c:"center"===e.my[0]&amp;&amp;(D.left-=c/2),"bottom"===e.my[1]?D.top-=p:"center"===e.my[1]&amp;&amp;(D.top-=p/2),D.left+=T[0],D.top+=T[1],t.support.offsetFractions||(D.left=l(D.left),D.top=l(D.top)),r={marginLeft:f,marginTop:v},t.each(["left","top"],function(i,n){t.ui.position[x[i]]&amp;&amp;t.ui.position[x[i]][n](D,{targetWidth:d,targetHeight:g,elemWidth:c,elemHeight:p,collisionPosition:r,collisionWidth:M,collisionHeight:C,offset:[s[0]+T[0],s[1]+T[1]],my:e.my,at:e.at,within:b,elem:h})}),e.using&amp;&amp;(u=function(t){var i=m.left-D.left,n=i+d-c,r=m.top-D.top,s=r+g-p,l={target:{element:y,left:m.left,top:m.top,width:d,height:g},element:{element:h,left:D.left,top:D.top,width:c,height:p},horizontal:0&gt;n?"left":i&gt;0?"right":"center",vertical:0&gt;s?"top":r&gt;0?"bottom":"middle"};c&gt;d&amp;&amp;a(i+n)&lt;d&amp;&amp;(l.horizontal="center"),p&gt;g&amp;&amp;a(r+s)&lt;g&amp;&amp;(l.vertical="middle"),o(a(i),a(n))&gt;o(a(r),a(s))?l.important="horizontal":l.important="vertical",e.using.call(this,t,l)}),h.offset(t.extend(D,{using:u}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,a=t.left-e.collisionPosition.marginLeft,l=r-a,u=a+e.collisionWidth-s-r;e.collisionWidth&gt;s?l&gt;0&amp;&amp;0&gt;=u?(i=t.left+l+e.collisionWidth-s-r,t.left+=l-i):u&gt;0&amp;&amp;0&gt;=l?t.left=r:l&gt;u?t.left=r+s-e.collisionWidth:t.left=r:l&gt;0?t.left+=l:u&gt;0?t.left-=u:t.left=o(t.left-a,t.left)},top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=r-a,u=a+e.collisionHeight-s-r;e.collisionHeight&gt;s?l&gt;0&amp;&amp;0&gt;=u?(i=t.top+l+e.collisionHeight-s-r,t.top+=l-i):u&gt;0&amp;&amp;0&gt;=l?t.top=r:l&gt;u?t.top=r+s-e.collisionHeight:t.top=r:l&gt;0?t.top+=l:u&gt;0?t.top-=u:t.top=o(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,s=r.offset.left+r.scrollLeft,o=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-e.collisionPosition.marginLeft,h=u-l,c=u+e.collisionWidth-o-l,p="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,d="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0&gt;h?(i=t.left+p+d+f+e.collisionWidth-o-s,(0&gt;i||i&lt;a(h))&amp;&amp;(t.left+=p+d+f)):c&gt;0&amp;&amp;(n=t.left-e.collisionPosition.marginLeft+p+d+f-l,(n&gt;0||a(n)&lt;c)&amp;&amp;(t.left+=p+d+f))},top:function(t,e){var i,n,r=e.within,s=r.offset.top+r.scrollTop,o=r.height,l=r.isWindow?r.scrollTop:r.offset.top,u=t.top-e.collisionPosition.marginTop,h=u-l,c=u+e.collisionHeight-o-l,p="top"===e.my[1],d=p?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0&gt;h?(n=t.top+d+f+g+e.collisionHeight-o-s,t.top+d+f+g&gt;h&amp;&amp;(0&gt;n||n&lt;a(h))&amp;&amp;(t.top+=d+f+g)):c&gt;0&amp;&amp;(i=t.top-e.collisionPosition.marginTop+d+f+g-l,t.top+d+f+g&gt;c&amp;&amp;(i&gt;0||a(i)&lt;c)&amp;&amp;(t.top+=d+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,r,s,o=document.getElementsByTagName("body")[0],a=document.createElement("div");e=document.createElement(o?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&amp;&amp;t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(s in n)e.style[s]=n[s];e.appendChild(a),i=o||document.documentElement,i.insertBefore(e,i.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",r=t(a).offset().left,t.support.offsetFractions=r&gt;10&amp;&amp;11&gt;r,e.innerHTML="",i.removeChild(e)}()}(n),function(t,e){t.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("&lt;div class='ui-progressbar-value ui-widget-header ui-corner-left'&gt;&lt;/div&gt;").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return t===e?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return t===e&amp;&amp;(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&amp;&amp;(t=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&amp;&amp;(e=Math.max(this.min,e)),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e&gt;this.min).toggleClass("ui-corner-right",e===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("&lt;div class='ui-progressbar-overlay'&gt;&lt;/div&gt;").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&amp;&amp;(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&amp;&amp;(this.oldValue=e,this._trigger("change")),e===this.options.max&amp;&amp;this._trigger("complete")}})}(n),function(t,e){var i=5;t.widget("ui.slider",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,r=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),s="&lt;a class='ui-slider-handle ui-state-default ui-corner-all' href='#'&gt;&lt;/a&gt;",o=[];for(i=n.values&amp;&amp;n.values.length||1,
        r.length&gt;i&amp;&amp;(r.slice(i).remove(),r=r.slice(0,i)),e=r.length;i&gt;e;e++)o.push(s);this.handles=r.add(t(o.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(e.range===!0&amp;&amp;(e.values?e.values.length&amp;&amp;2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&amp;&amp;(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&amp;&amp;this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("&lt;div&gt;&lt;/div&gt;").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):this.range=t([])},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,r,s,o,a,l,u,h=this,c=this.options;return c.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-h.values(e));(r&gt;i||r===i&amp;&amp;(e===h._lastChangedValue||h.values(e)===c.min))&amp;&amp;(r=i,s=t(this),o=e)}),a=this._start(e,o),a===!1?!1:(this._mouseSliding=!0,this._handleIndex=o,s.addClass("ui-state-active").focus(),l=s.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-l.left-s.width()/2,top:e.pageY-l.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,r,s;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/e,n&gt;1&amp;&amp;(n=1),0&gt;n&amp;&amp;(n=0),"vertical"===this.orientation&amp;&amp;(n=1-n),r=this._valueMax()-this._valueMin(),s=this._valueMin()+n*r,this._trimAlignValue(s)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&amp;&amp;this.options.values.length&amp;&amp;(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,r,s;this.options.values&amp;&amp;this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&amp;&amp;this.options.range===!0&amp;&amp;(0===e&amp;&amp;i&gt;n||1===e&amp;&amp;n&gt;i)&amp;&amp;(i=n),i!==this.values(e)&amp;&amp;(r=this.values(),r[e]=i,s=this._trigger("slide",t,{handle:this.handles[e],value:i,values:r}),n=this.values(e?0:1),s!==!1&amp;&amp;this.values(e,i,!0))):i!==this.value()&amp;&amp;(s=this._trigger("slide",t,{handle:this.handles[e],value:i}),s!==!1&amp;&amp;this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&amp;&amp;this.options.values.length&amp;&amp;(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&amp;&amp;!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&amp;&amp;this.options.values.length&amp;&amp;(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,r,s;if(arguments.length&gt;1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&amp;&amp;this.options.values.length?this._values(e):this.value();for(n=this.options.values,r=arguments[0],s=0;s&lt;n.length;s+=1)n[s]=this._trimAlignValue(r[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,i){var n,r=0;switch("range"===e&amp;&amp;this.options.range===!0&amp;&amp;("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&amp;&amp;(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&amp;&amp;(r=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;r&gt;n;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&amp;&amp;this.options.values.length){for(i=this.options.values.slice(),n=0;n&lt;i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t&lt;=this._valueMin())return this._valueMin();if(t&gt;=this._valueMax())return this._valueMax();var e=this.options.step&gt;0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)&gt;=e&amp;&amp;(n+=i&gt;0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,r,s,o=this.options.range,a=this.options,l=this,u=this._animateOff?!1:a.animate,h={};this.options.values&amp;&amp;this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[u?"animate":"css"](h,a.animate),l.options.range===!0&amp;&amp;("horizontal"===l.orientation?(0===n&amp;&amp;l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},a.animate),1===n&amp;&amp;l.range[u?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===n&amp;&amp;l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},a.animate),1===n&amp;&amp;l.range[u?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(n=this.value(),r=this._valueMin(),s=this._valueMax(),i=s!==r?(n-r)/(s-r)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](h,a.animate),"min"===o&amp;&amp;"horizontal"===this.orientation&amp;&amp;this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},a.animate),"max"===o&amp;&amp;"horizontal"===this.orientation&amp;&amp;this.range[u?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:a.animate}),"min"===o&amp;&amp;"vertical"===this.orientation&amp;&amp;this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},a.animate),"max"===o&amp;&amp;"vertical"===this.orientation&amp;&amp;this.range[u?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:a.animate}))},_handleEvents:{keydown:function(e){var n,r,s,o,a=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&amp;&amp;(this._keySliding=!0,t(e.target).addClass("ui-state-active"),n=this._start(e,a),n===!1))return}switch(o=this.options.step,r=s=this.options.values&amp;&amp;this.options.values.length?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:s=this._valueMin();break;case t.ui.keyCode.END:s=this._valueMax();break;case t.ui.keyCode.PAGE_UP:s=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/i);break;case t.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/i);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(r===this._valueMax())return;s=this._trimAlignValue(r+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(r===this._valueMin())return;s=this._trimAlignValue(r-o)}this._slide(e,a,s)},click:function(t){t.preventDefault()},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&amp;&amp;(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}})}(n),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&amp;&amp;this._trigger("change")}}t.widget("ui.spinner",{version:"1.10.3",defaultElement:"&lt;input&gt;",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],function(t,n){var r=i.attr(n);void 0!==r&amp;&amp;r.length&amp;&amp;(e[n]=r)}),e},_events:{keydown:function(t){this._start(t)&amp;&amp;this._keydown(t)&amp;&amp;t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&amp;&amp;this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&amp;&amp;!this._start(t))return!1;this._spin((e&gt;0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&amp;&amp;this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&amp;&amp;this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()&gt;Math.ceil(.5*t.height())&amp;&amp;t.height()&gt;0&amp;&amp;t.height(t.height()),this.options.disabled&amp;&amp;this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"&lt;span class='ui-spinner ui-widget ui-widget-content ui-corner-all'&gt;&lt;/span&gt;"},_buttonHtml:function(){return"&lt;a class='ui-spinner-button ui-spinner-up ui-corner-tr'&gt;&lt;span class='ui-icon "+this.options.icons.up+"'&gt;&amp;#9650;&lt;/span&gt;&lt;/a&gt;&lt;a class='ui-spinner-button ui-spinner-down ui-corner-br'&gt;&lt;span class='ui-icon "+this.options.icons.down+"'&gt;&amp;#9660;&lt;/span&gt;&lt;/a&gt;"},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&amp;&amp;this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&amp;&amp;(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&amp;&amp;t&gt;n.max?n.max:null!==n.min&amp;&amp;t&lt;n.min?n.min:t},_stop:function(t){this.spinning&amp;&amp;(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}("max"===t||"min"===t||"step"===t)&amp;&amp;"string"==typeof e&amp;&amp;(e=this._parse(e)),"icons"===t&amp;&amp;(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&amp;&amp;(e?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_parse:function(t){return"string"==typeof t&amp;&amp;""!==t&amp;&amp;(t=window.Globalize&amp;&amp;this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&amp;&amp;this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(t,e){var i;""!==t&amp;&amp;(i=this._parse(t),null!==i&amp;&amp;(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&amp;&amp;(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&amp;&amp;(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(n),function(t,e){function i(){return++r}function n(t){return t.hash.length&gt;1&amp;&amp;decodeURIComponent(t.href.replace(s,""))===decodeURIComponent(location.href.replace(s,""))}var r=0,s=/#.*$/;t.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav &gt; li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&amp;&amp;e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&amp;&amp;this.blur()}),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&amp;&amp;(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.options.active!==!1&amp;&amp;this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&amp;&amp;this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&amp;&amp;(n&amp;&amp;this.tabs.each(function(i,r){return t(r).attr("aria-controls")===n?(e=i,!1):void 0}),null===e&amp;&amp;(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&amp;&amp;(e=this.tabs.length?0:!1)),e!==!1&amp;&amp;(e=this.tabs.index(this.tabs.eq(e)),-1===e&amp;&amp;(e=i?!1:0)),!i&amp;&amp;e===!1&amp;&amp;this.anchors.length&amp;&amp;(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),r=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:r=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n===this.options.active?!1:n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,r),e.ctrlKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&amp;&amp;e.keyCode===t.ui.keyCode.UP&amp;&amp;(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&amp;&amp;e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&amp;&amp;e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function n(){return e&gt;r&amp;&amp;(e=0),0&gt;e&amp;&amp;(e=r),e}for(var r=this.tabs.length-1;-1!==t.inArray(n(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return"active"===t?void this._activate(e):"disabled"===t?void this._setupDisabled(e):(this._super(t,e),"collapsible"===t&amp;&amp;(this.element.toggleClass("ui-tabs-collapsible",e),e||this.options.active!==!1||this._activate(0)),"event"===t&amp;&amp;this._setupEvents(e),void("heightStyle"===t&amp;&amp;this._setupHeightStyle(e)))},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&amp;'()*+,.\/:;&lt;=&gt;?@\[\]\^`{|}~]/g,"\\$&amp;"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&amp;&amp;this.anchors.length?this.active.length&amp;&amp;!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("&gt; li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,r){var s,o,a,l=t(r).uniqueId().attr("id"),u=t(r).closest("li"),h=u.attr("aria-controls");n(r)?(s=r.hash,o=e.element.find(e._sanitizeSelector(s))):(a=e._tabId(u),s="#"+a,o=e.element.find(s),o.length||(o=e._createPanel(a),o.insertAfter(e.panels[i-1]||e.tablist)),o.attr("aria-live","polite")),o.length&amp;&amp;(e.panels=e.panels.add(o)),h&amp;&amp;u.data("ui-tabs-aria-controls",h),u.attr({"aria-controls":s.substring(1),"aria-labelledby":l}),o.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("&lt;div&gt;").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&amp;&amp;(e.length?e.length===this.anchors.length&amp;&amp;(e=!0):e=!1);for(var i,n=0;i=this.tabs[n];n++)e===!0||-1!==t.inArray(n,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&amp;&amp;t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&amp;&amp;"fixed"!==n&amp;&amp;(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&amp;&amp;(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),s=r.closest("li"),o=s[0]===n[0],a=o&amp;&amp;i.collapsible,l=a?t():this._getPanelForTab(s),u=n.length?this._getPanelForTab(n):t(),h={oldTab:n,oldPanel:u,newTab:a?t():s,newPanel:l};e.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||o&amp;&amp;!i.collapsible||this._trigger("beforeActivate",e,h)===!1||(i.active=a?!1:this.tabs.index(s),this.active=o?t():s,this.xhr&amp;&amp;this.xhr.abort(),u.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&amp;&amp;this.load(this.tabs.index(s),e),this._toggle(e,h))},_toggle:function(e,i){function n(){s.running=!1,s._trigger("activate",e,i)}function r(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&amp;&amp;s.options.show?s._show(o,s.options.show,n):(o.show(),n())}var s=this,o=i.newPanel,a=i.oldPanel;this.running=!0,a.length&amp;&amp;this.options.hide?this._hide(a,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a.hide(),r()),a.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),o.length&amp;&amp;a.length?i.oldTab.attr("tabIndex",-1):o.length&amp;&amp;this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&amp;&amp;(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&amp;&amp;(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&amp;&amp;this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&amp;&amp;this.panels.css("height","")},enable:function(i){var n=this.options.disabled;n!==!1&amp;&amp;(i===e?n=!1:(i=this._getIndex(i),n=t.isArray(n)?t.map(n,function(t){return t!==i?t:null}):t.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(n))},disable:function(i){var n=this.options.disabled;if(n!==!0){if(i===e)n=!0;else{if(i=this._getIndex(i),-1!==t.inArray(i,n))return;n=t.isArray(n)?t.merge([i],n).sort():[i]}this._setupDisabled(n)}},load:function(e,i){e=this._getIndex(e);var r=this,s=this.tabs.eq(e),o=s.find(".ui-tabs-anchor"),a=this._getPanelForTab(s),l={tab:s,panel:a};n(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,l)),this.xhr&amp;&amp;"canceled"!==this.xhr.statusText&amp;&amp;(s.addClass("ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){a.html(t),r._trigger("load",i,l)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&amp;&amp;r.panels.stop(!1,!0),s.removeClass("ui-tabs-loading"),a.removeAttr("aria-busy"),t===r.xhr&amp;&amp;delete r.xhr},1)})))},_ajaxSettings:function(e,i,n){var r=this;return{url:e.attr("href"),beforeSend:function(e,s){return r._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:s},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})}(n),function(t){function e(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))}function i(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),r=t.inArray(i,n);-1!==r&amp;&amp;n.splice(r,1),e.removeData("ui-tooltip-id"),n=t.trim(n.join(" ")),n?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")}var n=0;t.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var e=t(this).attr("title")||"";return t("&lt;a&gt;").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&amp;&amp;this._disable()},_setOption:function(e,i){var n=this;return"disabled"===e?(this[i?"_disable":"_enable"](),void(this.options[e]=i)):(this._super(e,i),void("content"===e&amp;&amp;t.each(this.tooltips,function(t,e){n._updateContent(e)})))},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event("blur");r.target=r.currentTarget=n[0],e.close(r,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is("[title]")&amp;&amp;e.data("ui-tooltip-title",e.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&amp;&amp;e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&amp;&amp;!n.data("ui-tooltip-id")&amp;&amp;(n.attr("title")&amp;&amp;n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&amp;&amp;"mouseover"===e.type&amp;&amp;n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&amp;&amp;(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&amp;&amp;(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,r=this,s=e?e.type:null;return"string"==typeof n?this._open(e,t,n):(i=n.call(t[0],function(i){t.data("ui-tooltip-open")&amp;&amp;r._delay(function(){e&amp;&amp;(e.type=s),this._open(e,t,i)})}),void(i&amp;&amp;this._open(e,t,i)))},_open:function(i,n,r){function s(t){u.of=t,o.is(":hidden")||o.position(u)}var o,a,l,u=t.extend({},this.options.position);if(r){if(o=this._find(n),o.length)return void o.find(".ui-tooltip-content").html(r);n.is("[title]")&amp;&amp;(i&amp;&amp;"mouseover"===i.type?n.attr("title",""):n.removeAttr("title")),o=this._tooltip(n),e(n,o.attr("id")),o.find(".ui-tooltip-content").html(r),this.options.track&amp;&amp;i&amp;&amp;/^mouse/.test(i.type)?(this._on(this.document,{mousemove:s}),s(i)):o.position(t.extend({of:n},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.show&amp;&amp;this.options.show.delay&amp;&amp;(l=this.delayedShow=setInterval(function(){o.is(":visible")&amp;&amp;(s(u.of),clearInterval(l))},t.fx.interval)),this._trigger("open",i,{tooltip:o}),a={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=n[0],this.close(i,!0)}},remove:function(){this._removeTooltip(o)}},i&amp;&amp;"mouseover"!==i.type||(a.mouseleave="close"),i&amp;&amp;"focusin"!==i.type||(a.focusout="close"),this._on(!0,n,a)}},close:function(e){var n=this,r=t(e?e.currentTarget:this.element),s=this._find(r);this.closing||(clearInterval(this.delayedShow),r.data("ui-tooltip-title")&amp;&amp;r.attr("title",r.data("ui-tooltip-title")),i(r),s.stop(!0),this._hide(s,this.options.hide,function(){n._removeTooltip(t(this))}),r.removeData("ui-tooltip-open"),this._off(r,"mouseleave focusout keyup"),r[0]!==this.element[0]&amp;&amp;this._off(r,"remove"),this._off(this.document,"mousemove"),e&amp;&amp;"mouseleave"===e.type&amp;&amp;t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete n.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:s}),this.closing=!1)},_tooltip:function(e){var i="ui-tooltip-"+n++,r=t("&lt;div&gt;").attr({id:i,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("&lt;div&gt;").addClass("ui-tooltip-content").appendTo(r),r.appendTo(this.document[0].body),this.tooltips[i]=e,r},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event("blur");r.target=r.currentTarget=n[0],e.close(r,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&amp;&amp;(n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))})}})}(n)},{jquery:18}],12:[function(t,e,i){var n=t("jquery");t("./core"),t("./widget"),
        t("./position"),function(t,e){t.widget("ui.menu",{version:"1.10.4",defaultElement:"&lt;ul&gt;",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&amp;&amp;t.preventDefault()},this)),this.options.disabled&amp;&amp;this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item &gt; a":function(t){t.preventDefault()},"click .ui-state-disabled &gt; a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&amp;&amp;i.not(".ui-state-disabled").length&amp;&amp;(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&amp;&amp;t(this.document[0].activeElement).closest(".ui-menu").length&amp;&amp;(this.element.trigger("focus",[!0]),this.active&amp;&amp;1===this.active.parents(".ui-menu").length&amp;&amp;clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&amp;&amp;e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&amp;")}var n,r,s,o,a,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&amp;&amp;!this.active.is(".ui-state-disabled")&amp;&amp;this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,r=this.previousFilter||"",s=String.fromCharCode(e.keyCode),o=!1,clearTimeout(this.filterTimer),s===r?o=!0:s=r+s,a=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())}),n=o&amp;&amp;-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(s=String.fromCharCode(e.keyCode),a=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())})),n.length?(this.focus(e,n),n.length&gt;1?(this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&amp;&amp;e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,n=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev("a"),r=t("&lt;span&gt;").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(r),e.attr("aria-labelledby",n.attr("id"))}),e=n.add(this.element),e.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&amp;&amp;!t.contains(this.element[0],this.active[0])&amp;&amp;this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&amp;&amp;this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&amp;&amp;"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&amp;&amp;this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&amp;&amp;"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&amp;&amp;t&amp;&amp;/^mouse/.test(t.type)&amp;&amp;this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,r,s,o,a;this._hasScroll()&amp;&amp;(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-i-n,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=e.height(),0&gt;r?this.activeMenu.scrollTop(s+r):r+a&gt;o&amp;&amp;this.activeMenu.scrollTop(s+r-o+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&amp;&amp;(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&amp;&amp;(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&amp;&amp;e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&amp;&amp;this.active.parent().closest(".ui-menu-item",this.element);e&amp;&amp;e.length&amp;&amp;(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&amp;&amp;this.active.children(".ui-menu ").children(".ui-menu-item").first();e&amp;&amp;e.length&amp;&amp;(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&amp;&amp;!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&amp;&amp;!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&amp;&amp;(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&amp;&amp;n.length&amp;&amp;this.active||(n=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,n)},nextPage:function(e){var i,n,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n-r&lt;0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+r&gt;0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()&lt;this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}})}(n)},{"./core":7,"./position":14,"./widget":17,jquery:18}],13:[function(t,e,i){var n=t("jquery");t("./widget"),function(t,e){var i=!1;t(document).mouseup(function(){i=!1}),t.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&amp;&amp;t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&amp;&amp;this._mouseUp(e),this._mouseDownEvent=e;var n=this,r=1===e.which,s="string"==typeof this.options.cancel&amp;&amp;e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return r&amp;&amp;!s&amp;&amp;this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&amp;&amp;this._mouseDelayMet(e)&amp;&amp;(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&amp;&amp;t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&amp;&amp;(!document.documentMode||document.documentMode&lt;9)&amp;&amp;!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&amp;&amp;this._mouseDelayMet(e)&amp;&amp;(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&amp;&amp;(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&amp;&amp;t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))&gt;=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(n)},{"./widget":17,jquery:18}],14:[function(t,e,i){var n=t("jquery");!function(t,e){function i(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}function r(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var s,o=Math.max,a=Math.abs,l=Math.round,u=/left|center|right/,h=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,p=/^\w+/,d=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(s!==e)return s;var i,n,r=t("&lt;div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'&gt;&lt;div style='height:100px;width:auto;'&gt;&lt;/div&gt;&lt;/div&gt;"),o=r.children()[0];return t("body").append(r),i=o.offsetWidth,r.css("overflow","scroll"),n=o.offsetWidth,i===n&amp;&amp;(n=r[0].clientWidth),r.remove(),s=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&amp;&amp;e.width&lt;e.element[0].scrollWidth,s="scroll"===n||"auto"===n&amp;&amp;e.height&lt;e.element[0].scrollHeight;return{width:s?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),r=!!i[0]&amp;&amp;9===i[0].nodeType;return{element:i,isWindow:n,isDocument:r,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var s,d,g,m,_,v,y=t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),x=(e.collision||"flip").split(" "),k={};return v=r(y),y[0].preventDefault&amp;&amp;(e.at="left top"),d=v.width,g=v.height,m=v.offset,_=t.extend({},m),t.each(["my","at"],function(){var t,i,n=(e[this]||"").split(" ");1===n.length&amp;&amp;(n=u.test(n[0])?n.concat(["center"]):h.test(n[0])?["center"].concat(n):["center","center"]),n[0]=u.test(n[0])?n[0]:"center",n[1]=h.test(n[1])?n[1]:"center",t=c.exec(n[0]),i=c.exec(n[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[p.exec(n[0])[0],p.exec(n[1])[0]]}),1===x.length&amp;&amp;(x[1]=x[0]),"right"===e.at[0]?_.left+=d:"center"===e.at[0]&amp;&amp;(_.left+=d/2),"bottom"===e.at[1]?_.top+=g:"center"===e.at[1]&amp;&amp;(_.top+=g/2),s=i(k.at,d,g),_.left+=s[0],_.top+=s[1],this.each(function(){var r,u,h=t(this),c=h.outerWidth(),p=h.outerHeight(),f=n(this,"marginLeft"),v=n(this,"marginTop"),M=c+f+n(this,"marginRight")+w.width,C=p+v+n(this,"marginBottom")+w.height,D=t.extend({},_),T=i(k.my,h.outerWidth(),h.outerHeight());"right"===e.my[0]?D.left-=c:"center"===e.my[0]&amp;&amp;(D.left-=c/2),"bottom"===e.my[1]?D.top-=p:"center"===e.my[1]&amp;&amp;(D.top-=p/2),D.left+=T[0],D.top+=T[1],t.support.offsetFractions||(D.left=l(D.left),D.top=l(D.top)),r={marginLeft:f,marginTop:v},t.each(["left","top"],function(i,n){t.ui.position[x[i]]&amp;&amp;t.ui.position[x[i]][n](D,{targetWidth:d,targetHeight:g,elemWidth:c,elemHeight:p,collisionPosition:r,collisionWidth:M,collisionHeight:C,offset:[s[0]+T[0],s[1]+T[1]],my:e.my,at:e.at,within:b,elem:h})}),e.using&amp;&amp;(u=function(t){var i=m.left-D.left,n=i+d-c,r=m.top-D.top,s=r+g-p,l={target:{element:y,left:m.left,top:m.top,width:d,height:g},element:{element:h,left:D.left,top:D.top,width:c,height:p},horizontal:0&gt;n?"left":i&gt;0?"right":"center",vertical:0&gt;s?"top":r&gt;0?"bottom":"middle"};c&gt;d&amp;&amp;a(i+n)&lt;d&amp;&amp;(l.horizontal="center"),p&gt;g&amp;&amp;a(r+s)&lt;g&amp;&amp;(l.vertical="middle"),o(a(i),a(n))&gt;o(a(r),a(s))?l.important="horizontal":l.important="vertical",e.using.call(this,t,l)}),h.offset(t.extend(D,{using:u}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,a=t.left-e.collisionPosition.marginLeft,l=r-a,u=a+e.collisionWidth-s-r;e.collisionWidth&gt;s?l&gt;0&amp;&amp;0&gt;=u?(i=t.left+l+e.collisionWidth-s-r,t.left+=l-i):u&gt;0&amp;&amp;0&gt;=l?t.left=r:l&gt;u?t.left=r+s-e.collisionWidth:t.left=r:l&gt;0?t.left+=l:u&gt;0?t.left-=u:t.left=o(t.left-a,t.left)},top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=r-a,u=a+e.collisionHeight-s-r;e.collisionHeight&gt;s?l&gt;0&amp;&amp;0&gt;=u?(i=t.top+l+e.collisionHeight-s-r,t.top+=l-i):u&gt;0&amp;&amp;0&gt;=l?t.top=r:l&gt;u?t.top=r+s-e.collisionHeight:t.top=r:l&gt;0?t.top+=l:u&gt;0?t.top-=u:t.top=o(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,s=r.offset.left+r.scrollLeft,o=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-e.collisionPosition.marginLeft,h=u-l,c=u+e.collisionWidth-o-l,p="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,d="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0&gt;h?(i=t.left+p+d+f+e.collisionWidth-o-s,(0&gt;i||i&lt;a(h))&amp;&amp;(t.left+=p+d+f)):c&gt;0&amp;&amp;(n=t.left-e.collisionPosition.marginLeft+p+d+f-l,(n&gt;0||a(n)&lt;c)&amp;&amp;(t.left+=p+d+f))},top:function(t,e){var i,n,r=e.within,s=r.offset.top+r.scrollTop,o=r.height,l=r.isWindow?r.scrollTop:r.offset.top,u=t.top-e.collisionPosition.marginTop,h=u-l,c=u+e.collisionHeight-o-l,p="top"===e.my[1],d=p?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0&gt;h?(n=t.top+d+f+g+e.collisionHeight-o-s,t.top+d+f+g&gt;h&amp;&amp;(0&gt;n||n&lt;a(h))&amp;&amp;(t.top+=d+f+g)):c&gt;0&amp;&amp;(i=t.top-e.collisionPosition.marginTop+d+f+g-l,t.top+d+f+g&gt;c&amp;&amp;(i&gt;0||a(i)&lt;c)&amp;&amp;(t.top+=d+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,r,s,o=document.getElementsByTagName("body")[0],a=document.createElement("div");e=document.createElement(o?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&amp;&amp;t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(s in n)e.style[s]=n[s];e.appendChild(a),i=o||document.documentElement,i.insertBefore(e,i.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",r=t(a).offset().left,t.support.offsetFractions=r&gt;10&amp;&amp;11&gt;r,e.innerHTML="",i.removeChild(e)}()}(n)},{jquery:18}],15:[function(t,e,i){var n=t("jquery");t("./core"),t("./mouse"),t("./widget"),function(t,e){function i(t,e,i){return t&gt;e&amp;&amp;e+i&gt;t}function n(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"&gt; *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||n(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t&gt;=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,r=!1,s=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,s.widgetName+"-item")===s?(n=t(this),!1):void 0}),t.data(e.target,s.widgetName+"-item")===s&amp;&amp;(n=t(e.target)),n&amp;&amp;(!this.options.handle||i||(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&amp;&amp;(r=!0)}),r))?(this.currentItem=n,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,i,n){var r,s,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&amp;&amp;this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&amp;&amp;this.currentItem.hide(),this._createPlaceholder(),o.containment&amp;&amp;this._setContainment(),o.cursor&amp;&amp;"auto"!==o.cursor&amp;&amp;(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",o.cursor),this.storedStylesheet=t("&lt;style&gt;*{ cursor: "+o.cursor+" !important; }&lt;/style&gt;").appendTo(s)),o.opacity&amp;&amp;(this.helper.css("opacity")&amp;&amp;(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&amp;&amp;(this.helper.css("zIndex")&amp;&amp;(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==document&amp;&amp;"HTML"!==this.scrollParent[0].tagName&amp;&amp;(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r&gt;=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&amp;&amp;(t.ui.ddmanager.current=this),t.ui.ddmanager&amp;&amp;!o.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,s,o=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&amp;&amp;(this.scrollParent[0]!==document&amp;&amp;"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY&lt;o.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top&lt;o.scrollSensitivity&amp;&amp;(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX&lt;o.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left&lt;o.scrollSensitivity&amp;&amp;(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-t(document).scrollTop()&lt;o.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())&lt;o.scrollSensitivity&amp;&amp;(a=t(document).scrollTop(t(document).scrollTop()+o.scrollSpeed)),e.pageX-t(document).scrollLeft()&lt;o.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())&lt;o.scrollSensitivity&amp;&amp;(a=t(document).scrollLeft(t(document).scrollLeft()+o.scrollSpeed))),a!==!1&amp;&amp;t.ui.ddmanager&amp;&amp;!o.dropBehaviour&amp;&amp;t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&amp;&amp;"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&amp;&amp;"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i&gt;=0;i--)if(n=this.items[i],r=n.item[0],s=this._intersectsWithPointer(n),s&amp;&amp;n.instance===this.currentContainer&amp;&amp;r!==this.currentItem[0]&amp;&amp;this.placeholder[1===s?"next":"prev"]()[0]!==r&amp;&amp;!t.contains(this.placeholder[0],r)&amp;&amp;("semi-dynamic"===this.options.type?!t.contains(this.element[0],r):!0)){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&amp;&amp;!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&amp;&amp;t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&amp;&amp;!this.options.dropBehaviour&amp;&amp;t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),s=this.options.axis,o={};s&amp;&amp;"x"!==s||(o.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),s&amp;&amp;"y"!==s||(o.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e&gt;=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&amp;&amp;(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&amp;&amp;(this.placeholder[0].parentNode&amp;&amp;this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&amp;&amp;this.helper&amp;&amp;this.helper[0].parentNode&amp;&amp;this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&amp;&amp;e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&amp;&amp;n.push((e.key||i[1]+"[]")+"="+(e.key&amp;&amp;e.expression?i[1]:i[2]))}),!n.length&amp;&amp;e.key&amp;&amp;n.push(e.key+"="),n.join("&amp;")},toArray:function(e){var i=this._getItemsAsjQuery(e&amp;&amp;e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,s=t.left,o=s+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,h=this.offset.click.left,c="x"===this.options.axis||n+u&gt;a&amp;&amp;l&gt;n+u,p="y"===this.options.axis||e+h&gt;s&amp;&amp;o&gt;e+h,d=c&amp;&amp;p;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&amp;&amp;this.helperProportions[this.floating?"width":"height"]&gt;t[this.floating?"width":"height"]?d:s&lt;e+this.helperProportions.width/2&amp;&amp;i-this.helperProportions.width/2&lt;o&amp;&amp;a&lt;n+this.helperProportions.height/2&amp;&amp;r-this.helperProportions.height/2&lt;l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||i(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||i(this.positionAbs.left+this.offset.click.left,t.left,t.width),r=e&amp;&amp;n,s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return r?this.floating?o&amp;&amp;"right"===o||"down"===s?2:1:s&amp;&amp;("down"===s?2:1):!1},_intersectsWithSides:function(t){var e=i(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=i(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),r=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&amp;&amp;s?"right"===s&amp;&amp;n||"left"===s&amp;&amp;!n:r&amp;&amp;("down"===r&amp;&amp;e||"up"===r&amp;&amp;!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&amp;&amp;(t&gt;0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&amp;&amp;(t&gt;0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){a.push(this)}var n,r,s,o,a=[],l=[],u=this._connectWith();if(u&amp;&amp;e)for(n=u.length-1;n&gt;=0;n--)for(s=t(u[n]),r=s.length-1;r&gt;=0;r--)o=t.data(s[r],this.widgetFullName),o&amp;&amp;o!==this&amp;&amp;!o.options.disabled&amp;&amp;l.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n&gt;=0;n--)l[n][0].each(i);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i&lt;e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,s,o,a,l,u,h=this.items,c=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],p=this._connectWith();if(p&amp;&amp;this.ready)for(i=p.length-1;i&gt;=0;i--)for(r=t(p[i]),n=r.length-1;n&gt;=0;n--)s=t.data(r[n],this.widgetFullName),s&amp;&amp;s!==this&amp;&amp;!s.options.disabled&amp;&amp;(c.push([t.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=c.length-1;i&gt;=0;i--)for(o=c[i][1],a=c[i][0],n=0,u=a.length;u&gt;n;n++)l=t(a[n]),l.data(this.widgetName+"-item",o),h.push({item:l,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&amp;&amp;this.helper&amp;&amp;(this.offset.parent=this._getParentOffset());var i,n,r,s;for(i=this.items.length-1;i&gt;=0;i--)n=this.items[i],n.instance!==this.currentContainer&amp;&amp;this.currentContainer&amp;&amp;n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),s=r.offset(),n.left=s.left,n.top=s.top);if(this.options.custom&amp;&amp;this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i&gt;=0;i--)s=this.containers[i].element.offset(),this.containers[i].containerCache.left=s.left,this.containers[i].containerCache.top=s.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&amp;&amp;n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),r=t("&lt;"+n+"&gt;",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each(function(){t("&lt;td&gt;&amp;#160;&lt;/td&gt;",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(r)}):"img"===n&amp;&amp;r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,r){(!i||n.forcePlaceholderSize)&amp;&amp;(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)));
        }}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var r,s,o,a,l,u,h,c,p,d,f=null,g=null;for(r=this.containers.length-1;r&gt;=0;r--)if(!t.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(f&amp;&amp;t.contains(this.containers[r].element[0],f.element[0]))continue;f=this.containers[r],g=r}else this.containers[r].containerCache.over&amp;&amp;(this.containers[r]._trigger("out",e,this._uiHash(this)),this.containers[r].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",e,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(o=1e4,a=null,d=f.floating||n(this.currentItem),l=d?"left":"top",u=d?"width":"height",h=this.positionAbs[l]+this.offset.click[l],s=this.items.length-1;s&gt;=0;s--)t.contains(this.containers[g].element[0],this.items[s].item[0])&amp;&amp;this.items[s].item[0]!==this.currentItem[0]&amp;&amp;(!d||i(this.positionAbs.top+this.offset.click.top,this.items[s].top,this.items[s].height))&amp;&amp;(c=this.items[s].item.offset()[l],p=!1,Math.abs(c-h)&gt;Math.abs(c+this.items[s][u]-h)&amp;&amp;(p=!0,c+=this.items[s][u]),Math.abs(c-h)&lt;o&amp;&amp;(o=Math.abs(c-h),a=this.items[s],this.direction=p?"up":"down"));if(!a&amp;&amp;!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[g].element,!0),this._trigger("change",e,this._uiHash()),this.containers[g]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",e,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&amp;&amp;(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&amp;&amp;n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&amp;&amp;n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&amp;&amp;(e=e.split(" ")),t.isArray(e)&amp;&amp;(e={left:+e[0],top:+e[1]||0}),"left"in e&amp;&amp;(this.offset.click.left=e.left+this.margins.left),"right"in e&amp;&amp;(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&amp;&amp;(this.offset.click.top=e.top+this.margins.top),"bottom"in e&amp;&amp;(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&amp;&amp;this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])&amp;&amp;(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&amp;&amp;"html"===this.offsetParent[0].tagName.toLowerCase()&amp;&amp;t.ui.ie)&amp;&amp;(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;"parent"===r.containment&amp;&amp;(r.containment=this.helper[0].parentNode),("document"===r.containment||"window"===r.containment)&amp;&amp;(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===r.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===r.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=this.options,s=e.pageX,o=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&amp;&amp;this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&amp;&amp;(this.containment&amp;&amp;(e.pageX-this.offset.click.left&lt;this.containment[0]&amp;&amp;(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top&lt;this.containment[1]&amp;&amp;(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left&gt;this.containment[2]&amp;&amp;(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top&gt;this.containment[3]&amp;&amp;(o=this.containment[3]+this.offset.click.top)),r.grid&amp;&amp;(i=this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1],o=this.containment?i-this.offset.click.top&gt;=this.containment[1]&amp;&amp;i-this.offset.click.top&lt;=this.containment[3]?i:i-this.offset.click.top&gt;=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/r.grid[0])*r.grid[0],s=this.containment?n-this.offset.click.left&gt;=this.containment[0]&amp;&amp;n-this.offset.click.left&lt;=this.containment[2]?n:n-this.offset.click.left&gt;=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&amp;&amp;this.refreshPositions(!n)})},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,r=[];if(!this._noFinalSort&amp;&amp;this.currentItem.parent().length&amp;&amp;this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)("auto"===this._storedCSS[n]||"static"===this._storedCSS[n])&amp;&amp;(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&amp;&amp;!e&amp;&amp;r.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&amp;&amp;this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&amp;&amp;this.domPosition.parent===this.currentItem.parent()[0]||e||r.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&amp;&amp;(e||(r.push(function(t){this._trigger("remove",t,this._uiHash())}),r.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n&gt;=0;n--)e||r.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&amp;&amp;(r.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&amp;&amp;(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&amp;&amp;this.helper.css("opacity",this._storedOpacity),this._storedZIndex&amp;&amp;this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),n=0;n&lt;r.length;n++)r[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&amp;&amp;this.helper.remove(),this.helper=null,!e){for(n=0;n&lt;r.length;n++)r[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&amp;&amp;this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(n)},{"./core":7,"./mouse":13,"./widget":17,jquery:18}],16:[function(t,e,i){var n=t("jquery");t("./core"),t("./widget"),t("./button"),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&amp;&amp;this._trigger("change")}}t.widget("ui.spinner",{version:"1.10.4",defaultElement:"&lt;input&gt;",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&amp;&amp;this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],function(t,n){var r=i.attr(n);void 0!==r&amp;&amp;r.length&amp;&amp;(e[n]=r)}),e},_events:{keydown:function(t){this._start(t)&amp;&amp;this._keydown(t)&amp;&amp;t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&amp;&amp;this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&amp;&amp;!this._start(t))return!1;this._spin((e&gt;0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&amp;&amp;this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&amp;&amp;this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()&gt;Math.ceil(.5*t.height())&amp;&amp;t.height()&gt;0&amp;&amp;t.height(t.height()),this.options.disabled&amp;&amp;this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"&lt;span class='ui-spinner ui-widget ui-widget-content ui-corner-all'&gt;&lt;/span&gt;"},_buttonHtml:function(){return"&lt;a class='ui-spinner-button ui-spinner-up ui-corner-tr'&gt;&lt;span class='ui-icon "+this.options.icons.up+"'&gt;&amp;#9650;&lt;/span&gt;&lt;/a&gt;&lt;a class='ui-spinner-button ui-spinner-down ui-corner-br'&gt;&lt;span class='ui-icon "+this.options.icons.down+"'&gt;&amp;#9660;&lt;/span&gt;&lt;/a&gt;"},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&amp;&amp;this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&amp;&amp;(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&amp;&amp;t&gt;n.max?n.max:null!==n.min&amp;&amp;t&lt;n.min?n.min:t},_stop:function(t){this.spinning&amp;&amp;(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}("max"===t||"min"===t||"step"===t)&amp;&amp;"string"==typeof e&amp;&amp;(e=this._parse(e)),"icons"===t&amp;&amp;(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&amp;&amp;(e?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_parse:function(t){return"string"==typeof t&amp;&amp;""!==t&amp;&amp;(t=window.Globalize&amp;&amp;this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&amp;&amp;this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(t,e){var i;""!==t&amp;&amp;(i=this._parse(t),null!==i&amp;&amp;(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&amp;&amp;(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&amp;&amp;(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(n)},{"./button":6,"./core":7,"./widget":17,jquery:18}],17:[function(t,e,i){var n=t("jquery");!function(t,e){var i=0,n=Array.prototype.slice,r=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(s){}r(e)},t.widget=function(e,i,n){var r,s,o,a,l={},u=e.split(".")[0];e=e.split(".")[1],r=u+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][r.toLowerCase()]=function(e){return!!t.data(e,r)},t[u]=t[u]||{},s=t[u][e],o=t[u][e]=function(t,e){return this._createWidget?void(arguments.length&amp;&amp;this._createWidget(t,e)):new o(t,e)},t.extend(o,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},r=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,s=this._superApply;return this._super=t,this._superApply=r,e=n.apply(this,arguments),this._super=i,this._superApply=s,e}}()):void(l[e]=n)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:s?a.widgetEventPrefix||e:e},l,{constructor:o,namespace:u,widgetName:e,widgetFullName:r}),s?(t.each(s._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)}),delete s._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o)},t.widget.extend=function(i){for(var r,s,o=n.call(arguments,1),a=0,l=o.length;l&gt;a;a++)for(r in o[a])s=o[a][r],o[a].hasOwnProperty(r)&amp;&amp;s!==e&amp;&amp;(t.isPlainObject(s)?i[r]=t.isPlainObject(i[r])?t.widget.extend({},i[r],s):t.widget.extend({},s):i[r]=s);return i},t.widget.bridge=function(i,r){var s=r.prototype.widgetFullName||i;t.fn[i]=function(o){var a="string"==typeof o,l=n.call(arguments,1),u=this;return o=!a&amp;&amp;l.length?t.widget.extend.apply(null,[o].concat(l)):o,a?this.each(function(){var n,r=t.data(this,s);return r?t.isFunction(r[o])&amp;&amp;"_"!==o.charAt(0)?(n=r[o].apply(r,l),n!==r&amp;&amp;n!==e?(u=n&amp;&amp;n.jquery?u.pushStack(n.get()):n,!1):void 0):t.error("no such method '"+o+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+o+"'")}):this.each(function(){var e=t.data(this,s);e?e.option(o||{})._init():t.data(this,s,new r(o,this))}),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"&lt;div&gt;",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&amp;&amp;(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&amp;&amp;this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var r,s,o,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},r=i.split("."),i=r.shift(),r.length){for(s=a[i]=t.widget.extend({},this.options[i]),o=0;o&lt;r.length-1;o++)s[r[o]]=s[r[o]]||{},s=s[r[o]];if(i=r.pop(),1===arguments.length)return s[i]===e?null:s[i];s[i]=n}else{if(1===arguments.length)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&amp;&amp;(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,i,n){var r,s=this;"boolean"!=typeof e&amp;&amp;(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,function(n,o){function a(){return e||s.options.disabled!==!0&amp;&amp;!t(this).hasClass("ui-state-disabled")?("string"==typeof o?s[o]:o).apply(s,arguments):void 0}"string"!=typeof o&amp;&amp;(a.guid=o.guid=o.guid||a.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+s.eventNamespace,h=l[2];h?r.delegate(h,u,a):i.bind(u,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var r,s,o=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(r in s)r in i||(i[r]=s[r]);return this.element.trigger(i,n),!(t.isFunction(o)&amp;&amp;o.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,r,s){"string"==typeof r&amp;&amp;(r={effect:r});var o,a=r?r===!0||"number"==typeof r?i:r.effect||i:e;r=r||{},"number"==typeof r&amp;&amp;(r={duration:r}),o=!t.isEmptyObject(r),r.complete=s,r.delay&amp;&amp;n.delay(r.delay),o&amp;&amp;t.effects&amp;&amp;t.effects.effect[a]?n[e](r):a!==e&amp;&amp;n[a]?n[a](r.duration,r.easing,s):n.queue(function(i){t(this)[e](),s&amp;&amp;s.call(n[0]),i()})}})}(n)},{jquery:18}],18:[function(t,e,i){!function(t,i){"object"==typeof e&amp;&amp;"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=t.length,i=K.type(t);return"function"===i||K.isWindow(t)?!1:1===t.nodeType&amp;&amp;e?!0:"array"===i||0===e||"number"==typeof e&amp;&amp;e&gt;0&amp;&amp;e-1 in t}function n(t,e,i){if(K.isFunction(e))return K.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return K.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(at.test(e))return K.filter(e,t,i);e=K.filter(e,t)}return K.grep(t,function(t){return $.call(e,t)&gt;=0!==i})}function r(t,e){for(;(t=t[e])&amp;&amp;1!==t.nodeType;);return t}function s(t){var e=ft[t]={};return K.each(t.match(dt)||[],function(t,i){e[i]=!0}),e}function o(){J.removeEventListener("DOMContentLoaded",o,!1),t.removeEventListener("load",o,!1),K.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=K.expando+a.uid++}function l(t,e,i){var n;if(void 0===i&amp;&amp;1===t.nodeType)if(n="data-"+e.replace(bt,"-$1").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:yt.test(i)?K.parseJSON(i):i}catch(r){}vt.set(t,e,i)}else i=void 0;return i}function u(){return!0}function h(){return!1}function c(){try{return J.activeElement}catch(t){}}function p(t,e){return K.nodeName(t,"table")&amp;&amp;K.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function d(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function f(t){var e=jt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var i=0,n=t.length;n&gt;i;i++)_t.set(t[i],"globalEval",!e||_t.get(e[i],"globalEval"))}function m(t,e){var i,n,r,s,o,a,l,u;if(1===e.nodeType){if(_t.hasData(t)&amp;&amp;(s=_t.access(t),o=_t.set(e,s),u=s.events)){delete o.handle,o.events={};for(r in u)for(i=0,n=u[r].length;n&gt;i;i++)K.event.add(e,r,u[r][i])}vt.hasData(t)&amp;&amp;(a=vt.access(t),l=K.extend({},a),vt.set(e,l))}}function _(t,e){var i=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&amp;&amp;K.nodeName(t,e)?K.merge([t],i):i}function v(t,e){var i=e.nodeName.toLowerCase();"input"===i&amp;&amp;Mt.test(t.type)?e.checked=t.checked:("input"===i||"textarea"===i)&amp;&amp;(e.defaultValue=t.defaultValue)}function y(e,i){var n,r=K(i.createElement(e)).appendTo(i.body),s=t.getDefaultComputedStyle&amp;&amp;(n=t.getDefaultComputedStyle(r[0]))?n.display:K.css(r[0],"display");return r.detach(),s}function b(t){var e=J,i=Ht[t];return i||(i=y(t,e),"none"!==i&amp;&amp;i||(Lt=(Lt||K("&lt;iframe frameborder='0' width='0' height='0'/&gt;")).appendTo(e.documentElement),e=Lt[0].contentDocument,e.write(),e.close(),i=y(t,e),Lt.detach()),Ht[t]=i),i}function w(t,e,i){var n,r,s,o,a=t.style;return i=i||qt(t),i&amp;&amp;(o=i.getPropertyValue(e)||i[e]),i&amp;&amp;(""!==o||K.contains(t.ownerDocument,t)||(o=K.style(t,e)),Wt.test(o)&amp;&amp;Bt.test(e)&amp;&amp;(n=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=n,a.minWidth=r,a.maxWidth=s)),void 0!==o?o+"":o}function x(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function k(t,e){if(e in t)return e;for(var i=e[0].toUpperCase()+e.slice(1),n=e,r=Xt.length;r--;)if(e=Xt[r]+i,e in t)return e;return n}function M(t,e,i){var n=Vt.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function C(t,e,i,n,r){for(var s=i===(n?"border":"content")?4:"width"===e?1:0,o=0;4&gt;s;s+=2)"margin"===i&amp;&amp;(o+=K.css(t,i+xt[s],!0,r)),n?("content"===i&amp;&amp;(o-=K.css(t,"padding"+xt[s],!0,r)),"margin"!==i&amp;&amp;(o-=K.css(t,"border"+xt[s]+"Width",!0,r))):(o+=K.css(t,"padding"+xt[s],!0,r),"padding"!==i&amp;&amp;(o+=K.css(t,"border"+xt[s]+"Width",!0,r)));return o}function D(t,e,i){var n=!0,r="width"===e?t.offsetWidth:t.offsetHeight,s=qt(t),o="border-box"===K.css(t,"boxSizing",!1,s);if(0&gt;=r||null==r){if(r=w(t,e,s),(0&gt;r||null==r)&amp;&amp;(r=t.style[e]),Wt.test(r))return r;n=o&amp;&amp;(Z.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+C(t,e,i||(o?"border":"content"),n,s)+"px"}function T(t,e){for(var i,n,r,s=[],o=0,a=t.length;a&gt;o;o++)n=t[o],n.style&amp;&amp;(s[o]=_t.get(n,"olddisplay"),i=n.style.display,e?(s[o]||"none"!==i||(n.style.display=""),""===n.style.display&amp;&amp;kt(n)&amp;&amp;(s[o]=_t.access(n,"olddisplay",b(n.nodeName)))):(r=kt(n),"none"===i&amp;&amp;r||_t.set(n,"olddisplay",r?i:K.css(n,"display"))));for(o=0;a&gt;o;o++)n=t[o],n.style&amp;&amp;(e&amp;&amp;"none"!==n.style.display&amp;&amp;""!==n.style.display||(n.style.display=e?s[o]||"":"none"));return t}function S(t,e,i,n,r){return new S.prototype.init(t,e,i,n,r)}function A(){return setTimeout(function(){Zt=void 0}),Zt=K.now()}function P(t,e){var i,n=0,r={height:t};for(e=e?1:0;4&gt;n;n+=2-e)i=xt[n],r["margin"+i]=r["padding"+i]=t;return e&amp;&amp;(r.opacity=r.width=t),r}function E(t,e,i){for(var n,r=(ie[e]||[]).concat(ie["*"]),s=0,o=r.length;o&gt;s;s++)if(n=r[s].call(i,e,t))return n}function I(t,e,i){var n,r,s,o,a,l,u,h,c=this,p={},d=t.style,f=t.nodeType&amp;&amp;kt(t),g=_t.get(t,"fxshow");i.queue||(a=K._queueHooks(t,"fx"),null==a.unqueued&amp;&amp;(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,K.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&amp;&amp;("height"in e||"width"in e)&amp;&amp;(i.overflow=[d.overflow,d.overflowX,d.overflowY],u=K.css(t,"display"),h="none"===u?_t.get(t,"olddisplay")||b(t.nodeName):u,"inline"===h&amp;&amp;"none"===K.css(t,"float")&amp;&amp;(d.display="inline-block")),i.overflow&amp;&amp;(d.overflow="hidden",c.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}));for(n in e)if(r=e[n],Qt.exec(r)){if(delete e[n],s=s||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;f=!0}p[n]=g&amp;&amp;g[n]||K.style(t,n)}else u=void 0;if(K.isEmptyObject(p))"inline"===("none"===u?b(t.nodeName):u)&amp;&amp;(d.display=u);else{g?"hidden"in g&amp;&amp;(f=g.hidden):g=_t.access(t,"fxshow",{}),s&amp;&amp;(g.hidden=!f),f?K(t).show():c.done(function(){K(t).hide()}),c.done(function(){var e;_t.remove(t,"fxshow");for(e in p)K.style(t,e,p[e])});for(n in p)o=E(f?g[n]:0,n,c),n in g||(g[n]=o.start,f&amp;&amp;(o.end=o.start,o.start="width"===n||"height"===n?1:0))}}function N(t,e){var i,n,r,s,o;for(i in t)if(n=K.camelCase(i),r=e[n],s=t[i],K.isArray(s)&amp;&amp;(r=s[1],s=t[i]=s[0]),i!==n&amp;&amp;(t[n]=s,delete t[i]),o=K.cssHooks[n],o&amp;&amp;"expand"in o){s=o.expand(s),delete t[n];for(i in s)i in t||(t[i]=s[i],e[i]=r)}else e[n]=r}function R(t,e,i){var n,r,s=0,o=ee.length,a=K.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Zt||A(),i=Math.max(0,u.startTime+u.duration-e),n=i/u.duration||0,s=1-n,o=0,l=u.tweens.length;l&gt;o;o++)u.tweens[o].run(s);return a.notifyWith(t,[u,s,i]),1&gt;s&amp;&amp;l?i:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:K.extend({},e),opts:K.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Zt||A(),duration:i.duration,tweens:[],createTween:function(e,i){var n=K.Tween(t,u.opts,e,i,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var i=0,n=e?u.tweens.length:0;if(r)return this;for(r=!0;n&gt;i;i++)u.tweens[i].run(1);return e?a.resolveWith(t,[u,e]):a.rejectWith(t,[u,e]),this}}),h=u.props;for(N(h,u.opts.specialEasing);o&gt;s;s++)if(n=ee[s].call(u,t,h,u.opts))return n;return K.map(h,E,u),K.isFunction(u.opts.start)&amp;&amp;u.opts.start.call(t,u),K.fx.timer(K.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function z(t){return function(e,i){"string"!=typeof e&amp;&amp;(i=e,e="*");var n,r=0,s=e.toLowerCase().match(dt)||[];if(K.isFunction(i))for(;n=s[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function j(t,e,i,n){function r(a){var l;return s[a]=!0,K.each(t[a]||[],function(t,a){var u=a(e,i,n);return"string"!=typeof u||o||s[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var s={},o=t===ye;return r(e.dataTypes[0])||!s["*"]&amp;&amp;r("*")}function O(t,e){var i,n,r=K.ajaxSettings.flatOptions||{};
        for(i in e)void 0!==e[i]&amp;&amp;((r[i]?t:n||(n={}))[i]=e[i]);return n&amp;&amp;K.extend(!0,t,n),t}function F(t,e,i){for(var n,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&amp;&amp;(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&amp;&amp;a[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}return s?(s!==l[0]&amp;&amp;l.unshift(s),i[s]):void 0}function L(t,e,i,n){var r,s,o,a,l,u={},h=t.dataTypes.slice();if(h[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(s=h.shift();s;)if(t.responseFields[s]&amp;&amp;(i[t.responseFields[s]]=e),!l&amp;&amp;n&amp;&amp;t.dataFilter&amp;&amp;(e=t.dataFilter(e,t.dataType)),l=s,s=h.shift())if("*"===s)s=l;else if("*"!==l&amp;&amp;l!==s){if(o=u[l+" "+s]||u["* "+s],!o)for(r in u)if(a=r.split(" "),a[1]===s&amp;&amp;(o=u[l+" "+a[0]]||u["* "+a[0]])){o===!0?o=u[r]:u[r]!==!0&amp;&amp;(s=a[0],h.unshift(a[1]));break}if(o!==!0)if(o&amp;&amp;t["throws"])e=o(e);else try{e=o(e)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}function H(t,e,i,n){var r;if(K.isArray(e))K.each(e,function(e,r){i||Me.test(t)?n(t,r):H(t+"["+("object"==typeof r?e:"")+"]",r,i,n)});else if(i||"object"!==K.type(e))n(t,e);else for(r in e)H(t+"["+r+"]",e[r],i,n)}function B(t){return K.isWindow(t)?t:9===t.nodeType&amp;&amp;t.defaultView}var W=[],q=W.slice,Y=W.concat,V=W.push,$=W.indexOf,U={},G=U.toString,X=U.hasOwnProperty,Z={},J=t.document,Q="2.1.3",K=function(t,e){return new K.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,it=/-([\da-z])/gi,nt=function(t,e){return e.toUpperCase()};K.fn=K.prototype={jquery:Q,constructor:K,selector:"",length:0,toArray:function(){return q.call(this)},get:function(t){return null!=t?0&gt;t?this[t+this.length]:this[t]:q.call(this)},pushStack:function(t){var e=K.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return K.each(this,t,e)},map:function(t){return this.pushStack(K.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(q.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0&gt;t?e:0);return this.pushStack(i&gt;=0&amp;&amp;e&gt;i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:V,sort:W.sort,splice:W.splice},K.extend=K.fn.extend=function(){var t,e,i,n,r,s,o=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof o&amp;&amp;(u=o,o=arguments[a]||{},a++),"object"==typeof o||K.isFunction(o)||(o={}),a===l&amp;&amp;(o=this,a--);l&gt;a;a++)if(null!=(t=arguments[a]))for(e in t)i=o[e],n=t[e],o!==n&amp;&amp;(u&amp;&amp;n&amp;&amp;(K.isPlainObject(n)||(r=K.isArray(n)))?(r?(r=!1,s=i&amp;&amp;K.isArray(i)?i:[]):s=i&amp;&amp;K.isPlainObject(i)?i:{},o[e]=K.extend(u,s,n)):void 0!==n&amp;&amp;(o[e]=n));return o},K.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===K.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&amp;&amp;t===t.window},isNumeric:function(t){return!K.isArray(t)&amp;&amp;t-parseFloat(t)+1&gt;=0},isPlainObject:function(t){return"object"!==K.type(t)||t.nodeType||K.isWindow(t)?!1:t.constructor&amp;&amp;!X.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?U[G.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;t=K.trim(t),t&amp;&amp;(1===t.indexOf("use strict")?(e=J.createElement("script"),e.text=t,J.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(et,"ms-").replace(it,nt)},nodeName:function(t,e){return t.nodeName&amp;&amp;t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r,s=0,o=t.length,a=i(t);if(n){if(a)for(;o&gt;s&amp;&amp;(r=e.apply(t[s],n),r!==!1);s++);else for(s in t)if(r=e.apply(t[s],n),r===!1)break}else if(a)for(;o&gt;s&amp;&amp;(r=e.call(t[s],s,t[s]),r!==!1);s++);else for(s in t)if(r=e.call(t[s],s,t[s]),r===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var n=e||[];return null!=t&amp;&amp;(i(Object(t))?K.merge(n,"string"==typeof t?[t]:t):V.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:$.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;i&gt;n;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n,r=[],s=0,o=t.length,a=!i;o&gt;s;s++)n=!e(t[s],s),n!==a&amp;&amp;r.push(t[s]);return r},map:function(t,e,n){var r,s=0,o=t.length,a=i(t),l=[];if(a)for(;o&gt;s;s++)r=e(t[s],s,n),null!=r&amp;&amp;l.push(r);else for(s in t)r=e(t[s],s,n),null!=r&amp;&amp;l.push(r);return Y.apply([],l)},guid:1,proxy:function(t,e){var i,n,r;return"string"==typeof e&amp;&amp;(i=t[e],e=t,t=i),K.isFunction(t)?(n=q.call(arguments,2),r=function(){return t.apply(e||this,n.concat(q.call(arguments)))},r.guid=t.guid=t.guid||K.guid++,r):void 0},now:Date.now,support:Z}),K.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){U["[object "+e+"]"]=e.toLowerCase()});var rt=function(t){function e(t,e,i,n){var r,s,o,a,l,u,c,d,f,g;if((e?e.ownerDocument||e:H)!==I&amp;&amp;E(e),e=e||I,i=i||[],a=e.nodeType,"string"!=typeof t||!t||1!==a&amp;&amp;9!==a&amp;&amp;11!==a)return i;if(!n&amp;&amp;R){if(11!==a&amp;&amp;(r=vt.exec(t)))if(o=r[1]){if(9===a){if(s=e.getElementById(o),!s||!s.parentNode)return i;if(s.id===o)return i.push(s),i}else if(e.ownerDocument&amp;&amp;(s=e.ownerDocument.getElementById(o))&amp;&amp;F(e,s)&amp;&amp;s.id===o)return i.push(s),i}else{if(r[2])return Q.apply(i,e.getElementsByTagName(t)),i;if((o=r[3])&amp;&amp;w.getElementsByClassName)return Q.apply(i,e.getElementsByClassName(o)),i}if(w.qsa&amp;&amp;(!z||!z.test(t))){if(d=c=L,f=e,g=1!==a&amp;&amp;t,1===a&amp;&amp;"object"!==e.nodeName.toLowerCase()){for(u=C(t),(c=e.getAttribute("id"))?d=c.replace(bt,"\\$&amp;"):e.setAttribute("id",d),d="[id='"+d+"'] ",l=u.length;l--;)u[l]=d+p(u[l]);f=yt.test(t)&amp;&amp;h(e.parentNode)||e,g=u.join(",")}if(g)try{return Q.apply(i,f.querySelectorAll(g)),i}catch(m){}finally{c||e.removeAttribute("id")}}}return T(t.replace(lt,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")&gt;x.cacheLength&amp;&amp;delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[L]=!0,t}function r(t){var e=I.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&amp;&amp;e.parentNode.removeChild(e),e=null}}function s(t,e){for(var i=t.split("|"),n=t.length;n--;)x.attrHandle[i[n]]=e}function o(t,e){var i=e&amp;&amp;t,n=i&amp;&amp;1===t.nodeType&amp;&amp;1===e.nodeType&amp;&amp;(~e.sourceIndex||U)-(~t.sourceIndex||U);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&amp;&amp;e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&amp;&amp;e.type===t}}function u(t){return n(function(e){return e=+e,n(function(i,n){for(var r,s=t([],i.length,e),o=s.length;o--;)i[r=s[o]]&amp;&amp;(i[r]=!(n[r]=i[r]))})})}function h(t){return t&amp;&amp;"undefined"!=typeof t.getElementsByTagName&amp;&amp;t}function c(){}function p(t){for(var e=0,i=t.length,n="";i&gt;e;e++)n+=t[e].value;return n}function d(t,e,i){var n=e.dir,r=i&amp;&amp;"parentNode"===n,s=W++;return e.first?function(e,i,s){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,s)}:function(e,i,o){var a,l,u=[B,s];if(o){for(;e=e[n];)if((1===e.nodeType||r)&amp;&amp;t(e,i,o))return!0}else for(;e=e[n];)if(1===e.nodeType||r){if(l=e[L]||(e[L]={}),(a=l[n])&amp;&amp;a[0]===B&amp;&amp;a[1]===s)return u[2]=a[2];if(l[n]=u,u[2]=t(e,i,o))return!0}}}function f(t){return t.length&gt;1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function g(t,i,n){for(var r=0,s=i.length;s&gt;r;r++)e(t,i[r],n);return n}function m(t,e,i,n,r){for(var s,o=[],a=0,l=t.length,u=null!=e;l&gt;a;a++)(s=t[a])&amp;&amp;(!i||i(s,n,r))&amp;&amp;(o.push(s),u&amp;&amp;e.push(a));return o}function _(t,e,i,r,s,o){return r&amp;&amp;!r[L]&amp;&amp;(r=_(r)),s&amp;&amp;!s[L]&amp;&amp;(s=_(s,o)),n(function(n,o,a,l){var u,h,c,p=[],d=[],f=o.length,_=n||g(e||"*",a.nodeType?[a]:a,[]),v=!t||!n&amp;&amp;e?_:m(_,p,t,a,l),y=i?s||(n?t:f||r)?[]:o:v;if(i&amp;&amp;i(v,y,a,l),r)for(u=m(y,d),r(u,[],a,l),h=u.length;h--;)(c=u[h])&amp;&amp;(y[d[h]]=!(v[d[h]]=c));if(n){if(s||t){if(s){for(u=[],h=y.length;h--;)(c=y[h])&amp;&amp;u.push(v[h]=c);s(null,y=[],u,l)}for(h=y.length;h--;)(c=y[h])&amp;&amp;(u=s?tt(n,c):p[h])&gt;-1&amp;&amp;(n[u]=!(o[u]=c))}}else y=m(y===o?y.splice(f,y.length):y),s?s(null,o,y,l):Q.apply(o,y)})}function v(t){for(var e,i,n,r=t.length,s=x.relative[t[0].type],o=s||x.relative[" "],a=s?1:0,l=d(function(t){return t===e},o,!0),u=d(function(t){return tt(e,t)&gt;-1},o,!0),h=[function(t,i,n){var r=!s&amp;&amp;(n||i!==S)||((e=i).nodeType?l(t,i,n):u(t,i,n));return e=null,r}];r&gt;a;a++)if(i=x.relative[t[a].type])h=[d(f(h),i)];else{if(i=x.filter[t[a].type].apply(null,t[a].matches),i[L]){for(n=++a;r&gt;n&amp;&amp;!x.relative[t[n].type];n++);return _(a&gt;1&amp;&amp;f(h),a&gt;1&amp;&amp;p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(lt,"$1"),i,n&gt;a&amp;&amp;v(t.slice(a,n)),r&gt;n&amp;&amp;v(t=t.slice(n)),r&gt;n&amp;&amp;p(t))}h.push(i)}return f(h)}function y(t,i){var r=i.length&gt;0,s=t.length&gt;0,o=function(n,o,a,l,u){var h,c,p,d=0,f="0",g=n&amp;&amp;[],_=[],v=S,y=n||s&amp;&amp;x.find.TAG("*",u),b=B+=null==v?1:Math.random()||.1,w=y.length;for(u&amp;&amp;(S=o!==I&amp;&amp;o);f!==w&amp;&amp;null!=(h=y[f]);f++){if(s&amp;&amp;h){for(c=0;p=t[c++];)if(p(h,o,a)){l.push(h);break}u&amp;&amp;(B=b)}r&amp;&amp;((h=!p&amp;&amp;h)&amp;&amp;d--,n&amp;&amp;g.push(h))}if(d+=f,r&amp;&amp;f!==d){for(c=0;p=i[c++];)p(g,_,o,a);if(n){if(d&gt;0)for(;f--;)g[f]||_[f]||(_[f]=Z.call(l));_=m(_)}Q.apply(l,_),u&amp;&amp;!n&amp;&amp;_.length&gt;0&amp;&amp;d+i.length&gt;1&amp;&amp;e.uniqueSort(l)}return u&amp;&amp;(B=b,S=v),g};return r?n(o):o}var b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F,L="sizzle"+1*new Date,H=t.document,B=0,W=0,q=i(),Y=i(),V=i(),$=function(t,e){return t===e&amp;&amp;(P=!0),0},U=1&lt;&lt;31,G={}.hasOwnProperty,X=[],Z=X.pop,J=X.push,Q=X.push,K=X.slice,tt=function(t,e){for(var i=0,n=t.length;n&gt;i;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt=nt.replace("w","w#"),st="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+it+"*\\]",ot=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",at=new RegExp(it+"+","g"),lt=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),ut=new RegExp("^"+it+"*,"+it+"*"),ht=new RegExp("^"+it+"*([&gt;+~]|"+it+")"+it+"*"),ct=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),pt=new RegExp(ot),dt=new RegExp("^"+rt+"$"),ft={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt.replace("w","w*")+")"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[&gt;+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,_t=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),xt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:0&gt;n?String.fromCharCode(n+65536):String.fromCharCode(n&gt;&gt;10|55296,1023&amp;n|56320)},kt=function(){E()};try{Q.apply(X=K.call(H.childNodes),H.childNodes),X[H.childNodes.length].nodeType}catch(Mt){Q={apply:X.length?function(t,e){J.apply(t,K.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}w=e.support={},M=e.isXML=function(t){var e=t&amp;&amp;(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},E=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:H;return n!==I&amp;&amp;9===n.nodeType&amp;&amp;n.documentElement?(I=n,N=n.documentElement,i=n.defaultView,i&amp;&amp;i!==i.top&amp;&amp;(i.addEventListener?i.addEventListener("unload",kt,!1):i.attachEvent&amp;&amp;i.attachEvent("onunload",kt)),R=!M(n),w.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=r(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=_t.test(n.getElementsByClassName),w.getById=r(function(t){return N.appendChild(t).id=L,!n.getElementsByName||!n.getElementsByName(L).length}),w.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&amp;&amp;R){var i=e.getElementById(t);return i&amp;&amp;i.parentNode?[i]:[]}},x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){var i="undefined"!=typeof t.getAttributeNode&amp;&amp;t.getAttributeNode("id");return i&amp;&amp;i.value===e}}),x.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,s=e.getElementsByTagName(t);if("*"===t){for(;i=s[r++];)1===i.nodeType&amp;&amp;n.push(i);return n}return s},x.find.CLASS=w.getElementsByClassName&amp;&amp;function(t,e){return R?e.getElementsByClassName(t):void 0},j=[],z=[],(w.qsa=_t.test(n.querySelectorAll))&amp;&amp;(r(function(t){N.appendChild(t).innerHTML="&lt;a id='"+L+"'&gt;&lt;/a&gt;&lt;select id='"+L+"-\f]' msallowcapture=''&gt;&lt;option selected=''&gt;&lt;/option&gt;&lt;/select&gt;",t.querySelectorAll("[msallowcapture^='']").length&amp;&amp;z.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||z.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+L+"-]").length||z.push("~="),t.querySelectorAll(":checked").length||z.push(":checked"),t.querySelectorAll("a#"+L+"+*").length||z.push(".#.+[+~]")}),r(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&amp;&amp;z.push("name"+it+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||z.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),z.push(",.*:")})),(w.matchesSelector=_t.test(O=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&amp;&amp;r(function(t){w.disconnectedMatch=O.call(t,"div"),O.call(t,"[s!='']:x"),j.push("!=",ot)}),z=z.length&amp;&amp;new RegExp(z.join("|")),j=j.length&amp;&amp;new RegExp(j.join("|")),e=_t.test(N.compareDocumentPosition),F=e||_t.test(N.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&amp;&amp;e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&amp;&amp;16&amp;t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return P=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&amp;i||!w.sortDetached&amp;&amp;e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===H&amp;&amp;F(H,t)?-1:e===n||e.ownerDocument===H&amp;&amp;F(H,e)?1:A?tt(A,t)-tt(A,e):0:4&amp;i?-1:1)}:function(t,e){if(t===e)return P=!0,0;var i,r=0,s=t.parentNode,a=e.parentNode,l=[t],u=[e];if(!s||!a)return t===n?-1:e===n?1:s?-1:a?1:A?tt(A,t)-tt(A,e):0;if(s===a)return o(t,e);for(i=t;i=i.parentNode;)l.unshift(i);for(i=e;i=i.parentNode;)u.unshift(i);for(;l[r]===u[r];)r++;return r?o(l[r],u[r]):l[r]===H?-1:u[r]===H?1:0},n):I},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==I&amp;&amp;E(t),i=i.replace(ct,"='$1']"),w.matchesSelector&amp;&amp;R&amp;&amp;(!j||!j.test(i))&amp;&amp;(!z||!z.test(i)))try{var n=O.call(t,i);if(n||w.disconnectedMatch||t.document&amp;&amp;11!==t.document.nodeType)return n}catch(r){}return e(i,I,null,[t]).length&gt;0},e.contains=function(t,e){return(t.ownerDocument||t)!==I&amp;&amp;E(t),F(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==I&amp;&amp;E(t);var i=x.attrHandle[e.toLowerCase()],n=i&amp;&amp;G.call(x.attrHandle,e.toLowerCase())?i(t,e,!R):void 0;return void 0!==n?n:w.attributes||!R?t.getAttribute(e):(n=t.getAttributeNode(e))&amp;&amp;n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(P=!w.detectDuplicates,A=!w.sortStable&amp;&amp;t.slice(0),t.sort($),P){for(;e=t[r++];)e===t[r]&amp;&amp;(n=i.push(r));for(;n--;)t.splice(i[n],1)}return A=null,t},k=e.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=k(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=k(e);return i},x=e.selectors={cacheLength:50,createPseudo:n,match:ft,attrHandle:{},find:{},relative:{"&gt;":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,xt),"~="===t[2]&amp;&amp;(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&amp;&amp;e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&amp;&amp;t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&amp;&amp;pt.test(i)&amp;&amp;(e=C(i,!0))&amp;&amp;(e=i.indexOf(")",i.length-e)-i.length)&amp;&amp;(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&amp;&amp;t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&amp;&amp;q(t,function(t){return e.test("string"==typeof t.className&amp;&amp;t.className||"undefined"!=typeof t.getAttribute&amp;&amp;t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(r){var s=e.attr(r,t);return null==s?"!="===i:i?(s+="","="===i?s===n:"!="===i?s!==n:"^="===i?n&amp;&amp;0===s.indexOf(n):"*="===i?n&amp;&amp;s.indexOf(n)&gt;-1:"$="===i?n&amp;&amp;s.slice(-n.length)===n:"~="===i?(" "+s.replace(at," ")+" ").indexOf(n)&gt;-1:"|="===i?s===n||s.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(t,e,i,n,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===n&amp;&amp;0===r?function(t){return!!t.parentNode}:function(e,i,l){var u,h,c,p,d,f,g=s!==o?"nextSibling":"previousSibling",m=e.parentNode,_=a&amp;&amp;e.nodeName.toLowerCase(),v=!l&amp;&amp;!a;if(m){if(s){for(;g;){for(c=e;c=c[g];)if(a?c.nodeName.toLowerCase()===_:1===c.nodeType)return!1;f=g="only"===t&amp;&amp;!f&amp;&amp;"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&amp;&amp;v){for(h=m[L]||(m[L]={}),u=h[t]||[],d=u[0]===B&amp;&amp;u[1],p=u[0]===B&amp;&amp;u[2],c=d&amp;&amp;m.childNodes[d];c=++d&amp;&amp;c&amp;&amp;c[g]||(p=d=0)||f.pop();)if(1===c.nodeType&amp;&amp;++p&amp;&amp;c===e){h[t]=[B,d,p];break}}else if(v&amp;&amp;(u=(e[L]||(e[L]={}))[t])&amp;&amp;u[0]===B)p=u[1];else for(;(c=++d&amp;&amp;c&amp;&amp;c[g]||(p=d=0)||f.pop())&amp;&amp;((a?c.nodeName.toLowerCase()!==_:1!==c.nodeType)||!++p||(v&amp;&amp;((c[L]||(c[L]={}))[t]=[B,p]),c!==e)););return p-=r,p===n||p%n===0&amp;&amp;p/n&gt;=0}}},PSEUDO:function(t,i){var r,s=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return s[L]?s(i):s.length&gt;1?(r=[t,t,"",i],x.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,r=s(t,i),o=r.length;o--;)n=tt(t,r[o]),t[n]=!(e[n]=r[o])}):function(t){return s(t,0,r)}):s}},pseudos:{not:n(function(t){var e=[],i=[],r=D(t.replace(lt,"$1"));return r[L]?n(function(t,e,i,n){for(var s,o=r(t,null,n,[]),a=t.length;a--;)(s=o[a])&amp;&amp;(t[a]=!(e[a]=s))}):function(t,n,s){return e[0]=t,r(e,null,s,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length&gt;0}}),contains:n(function(t){return t=t.replace(wt,xt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)&gt;-1}}),lang:n(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,xt).toLowerCase(),function(e){var i;do if(i=R?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&amp;&amp;1===e.nodeType);return!1}}),target:function(e){var i=t.location&amp;&amp;t.location.hash;return i&amp;&amp;i.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===I.activeElement&amp;&amp;(!I.hasFocus||I.hasFocus())&amp;&amp;!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&amp;&amp;!!t.checked||"option"===e&amp;&amp;!!t.selected},selected:function(t){return t.parentNode&amp;&amp;t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType&lt;6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return gt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&amp;&amp;"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&amp;&amp;"text"===t.type&amp;&amp;(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,i){return[0&gt;i?i+e:i]}),even:u(function(t,e){for(var i=0;e&gt;i;i+=2)t.push(i);return t}),odd:u(function(t,e){for(var i=1;e&gt;i;i+=2)t.push(i);return t}),lt:u(function(t,e,i){for(var n=0&gt;i?i+e:i;--n&gt;=0;)t.push(n);return t}),gt:u(function(t,e,i){for(var n=0&gt;i?i+e:i;++n&lt;e;)t.push(n);return t})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=l(b);return c.prototype=x.filters=x.pseudos,x.setFilters=new c,C=e.tokenize=function(t,i){var n,r,s,o,a,l,u,h=Y[t+" "];if(h)return i?0:h.slice(0);for(a=t,l=[],u=x.preFilter;a;){(!n||(r=ut.exec(a)))&amp;&amp;(r&amp;&amp;(a=a.slice(r[0].length)||a),l.push(s=[])),n=!1,(r=ht.exec(a))&amp;&amp;(n=r.shift(),s.push({value:n,type:r[0].replace(lt," ")}),a=a.slice(n.length));for(o in x.filter)!(r=ft[o].exec(a))||u[o]&amp;&amp;!(r=u[o](r))||(n=r.shift(),s.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):Y(t,l).slice(0)},D=e.compile=function(t,e){var i,n=[],r=[],s=V[t+" "];if(!s){for(e||(e=C(t)),i=e.length;i--;)s=v(e[i]),s[L]?n.push(s):r.push(s);s=V(t,y(r,n)),s.selector=t}return s},T=e.select=function(t,e,i,n){var r,s,o,a,l,u="function"==typeof t&amp;&amp;t,c=!n&amp;&amp;C(t=u.selector||t);if(i=i||[],1===c.length){if(s=c[0]=c[0].slice(0),s.length&gt;2&amp;&amp;"ID"===(o=s[0]).type&amp;&amp;w.getById&amp;&amp;9===e.nodeType&amp;&amp;R&amp;&amp;x.relative[s[1].type]){if(e=(x.find.ID(o.matches[0].replace(wt,xt),e)||[])[0],!e)return i;u&amp;&amp;(e=e.parentNode),t=t.slice(s.shift().value.length)}for(r=ft.needsContext.test(t)?0:s.length;r--&amp;&amp;(o=s[r],!x.relative[a=o.type]);)if((l=x.find[a])&amp;&amp;(n=l(o.matches[0].replace(wt,xt),yt.test(s[0].type)&amp;&amp;h(e.parentNode)||e))){if(s.splice(r,1),t=n.length&amp;&amp;p(s),!t)return Q.apply(i,n),i;break}}return(u||D(t,c))(n,e,!R,i,yt.test(t)&amp;&amp;h(e.parentNode)||e),i},w.sortStable=L.split("").sort($).join("")===L,w.detectDuplicates=!!P,E(),w.sortDetached=r(function(t){return 1&amp;t.compareDocumentPosition(I.createElement("div"))}),r(function(t){return t.innerHTML="&lt;a href='#'&gt;&lt;/a&gt;","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&amp;&amp;r(function(t){return t.innerHTML="&lt;input/&gt;",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||s(et,function(t,e,i){var n;return i?void 0:t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&amp;&amp;n.specified?n.value:null}),e}(t);K.find=rt,K.expr=rt.selectors,K.expr[":"]=K.expr.pseudos,K.unique=rt.uniqueSort,K.text=rt.getText,K.isXMLDoc=rt.isXML,K.contains=rt.contains;var st=K.expr.match.needsContext,ot=/^&lt;(\w+)\s*\/?&gt;(?:&lt;\/\1&gt;|)$/,at=/^.[^:#\[\.,]*$/;K.filter=function(t,e,i){var n=e[0];return i&amp;&amp;(t=":not("+t+")"),1===e.length&amp;&amp;1===n.nodeType?K.find.matchesSelector(n,t)?[n]:[]:K.find.matches(t,K.grep(e,function(t){return 1===t.nodeType}))},K.fn.extend({find:function(t){var e,i=this.length,n=[],r=this;if("string"!=typeof t)return this.pushStack(K(t).filter(function(){for(e=0;i&gt;e;e++)if(K.contains(r[e],this))return!0}));for(e=0;i&gt;e;e++)K.find(t,r[e],n);return n=this.pushStack(i&gt;1?K.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&amp;&amp;st.test(t)?K(t):t||[],!1).length}});var lt,ut=/^(?:\s*(&lt;[\w\W]+&gt;)[^&gt;]*|#([\w-]*))$/,ht=K.fn.init=function(t,e){var i,n;if(!t)return this;if("string"==typeof t){if(i="&lt;"===t[0]&amp;&amp;"&gt;"===t[t.length-1]&amp;&amp;t.length&gt;=3?[null,t,null]:ut.exec(t),!i||!i[1]&amp;&amp;e)return!e||e.jquery?(e||lt).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof K?e[0]:e,K.merge(this,K.parseHTML(i[1],e&amp;&amp;e.nodeType?e.ownerDocument||e:J,!0)),ot.test(i[1])&amp;&amp;K.isPlainObject(e))for(i in e)K.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return n=J.getElementById(i[2]),n&amp;&amp;n.parentNode&amp;&amp;(this.length=1,this[0]=n),this.context=J,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):K.isFunction(t)?"undefined"!=typeof lt.ready?lt.ready(t):t(K):(void 0!==t.selector&amp;&amp;(this.selector=t.selector,this.context=t.context),K.makeArray(t,this))};ht.prototype=K.fn,lt=K(J);var ct=/^(?:parents|prev(?:Until|All))/,pt={children:!0,contents:!0,next:!0,prev:!0};K.extend({dir:function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&amp;&amp;9!==t.nodeType;)if(1===t.nodeType){if(r&amp;&amp;K(t).is(i))break;n.push(t)}return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&amp;&amp;t!==e&amp;&amp;i.push(t);return i}}),K.fn.extend({has:function(t){var e=K(t,this),i=e.length;return this.filter(function(){for(var t=0;i&gt;t;t++)if(K.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,r=this.length,s=[],o=st.test(t)||"string"!=typeof t?K(t,e||this.context):0;r&gt;n;n++)for(i=this[n];i&amp;&amp;i!==e;i=i.parentNode)if(i.nodeType&lt;11&amp;&amp;(o?o.index(i)&gt;-1:1===i.nodeType&amp;&amp;K.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(s.length&gt;1?K.unique(s):s)},index:function(t){return t?"string"==typeof t?$.call(K(t),this[0]):$.call(this,t.jquery?t[0]:t):this[0]&amp;&amp;this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(K.unique(K.merge(this.get(),K(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),K.each({parent:function(t){var e=t.parentNode;return e&amp;&amp;11!==e.nodeType?e:null},parents:function(t){return K.dir(t,"parentNode")},parentsUntil:function(t,e,i){return K.dir(t,"parentNode",i)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return K.dir(t,"nextSibling")},prevAll:function(t){return K.dir(t,"previousSibling")},nextUntil:function(t,e,i){return K.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return K.dir(t,"previousSibling",i)},siblings:function(t){return K.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return K.sibling(t.firstChild)},contents:function(t){return t.contentDocument||K.merge([],t.childNodes)}},function(t,e){K.fn[t]=function(i,n){var r=K.map(this,e,i);return"Until"!==t.slice(-5)&amp;&amp;(n=i),n&amp;&amp;"string"==typeof n&amp;&amp;(r=K.filter(n,r)),this.length&gt;1&amp;&amp;(pt[t]||K.unique(r),ct.test(t)&amp;&amp;r.reverse()),this.pushStack(r)}});var dt=/\S+/g,ft={};K.Callbacks=function(t){t="string"==typeof t?ft[t]||s(t):K.extend({},t);var e,i,n,r,o,a,l=[],u=!t.once&amp;&amp;[],h=function(s){for(e=t.memory&amp;&amp;s,i=!0,a=r||0,r=0,o=l.length,n=!0;l&amp;&amp;o&gt;a;a++)if(l[a].apply(s[0],s[1])===!1&amp;&amp;t.stopOnFalse){e=!1;break}n=!1,l&amp;&amp;(u?u.length&amp;&amp;h(u.shift()):e?l=[]:c.disable())},c={add:function(){if(l){var i=l.length;!function s(e){K.each(e,function(e,i){var n=K.type(i);"function"===n?t.unique&amp;&amp;c.has(i)||l.push(i):i&amp;&amp;i.length&amp;&amp;"string"!==n&amp;&amp;s(i)})}(arguments),n?o=l.length:e&amp;&amp;(r=i,h(e))}return this},remove:function(){return l&amp;&amp;K.each(arguments,function(t,e){for(var i;(i=K.inArray(e,l,i))&gt;-1;)l.splice(i,1),n&amp;&amp;(o&gt;=i&amp;&amp;o--,a&gt;=i&amp;&amp;a--)}),this},has:function(t){return t?K.inArray(t,l)&gt;-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=e=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,e||c.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!l||i&amp;&amp;!u||(e=e||[],e=[t,e.slice?e.slice():e],n?u.push(e):h(e)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},K.extend({Deferred:function(t){var e=[["resolve","done",K.Callbacks("once memory"),"resolved"],["reject","fail",K.Callbacks("once memory"),"rejected"],["notify","progress",K.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return K.Deferred(function(i){K.each(e,function(e,s){var o=K.isFunction(t[e])&amp;&amp;t[e];r[s[1]](function(){var t=o&amp;&amp;o.apply(this,arguments);t&amp;&amp;K.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[s[0]+"With"](this===n?i.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?K.extend(t,n):n}},r={};return n.pipe=n.then,K.each(e,function(t,s){var o=s[2],a=s[3];n[s[1]]=o.add,a&amp;&amp;o.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),r[s[0]]=function(){return r[s[0]+"With"](this===r?n:this,arguments),this},r[s[0]+"With"]=o.fireWith}),n.promise(r),t&amp;&amp;t.call(r,r),r},when:function(t){var e,i,n,r=0,s=q.call(arguments),o=s.length,a=1!==o||t&amp;&amp;K.isFunction(t.promise)?o:0,l=1===a?t:K.Deferred(),u=function(t,i,n){return function(r){i[t]=this,n[t]=arguments.length&gt;1?q.call(arguments):r,n===e?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(o&gt;1)for(e=new Array(o),i=new Array(o),n=new Array(o);o&gt;r;r++)s[r]&amp;&amp;K.isFunction(s[r].promise)?s[r].promise().done(u(r,n,s)).fail(l.reject).progress(u(r,i,e)):--a;return a||l.resolveWith(n,s),l.promise()}});var gt;K.fn.ready=function(t){return K.ready.promise().done(t),this},K.extend({isReady:!1,readyWait:1,holdReady:function(t){t?K.readyWait++:K.ready(!0)},ready:function(t){(t===!0?--K.readyWait:K.isReady)||(K.isReady=!0,t!==!0&amp;&amp;--K.readyWait&gt;0||(gt.resolveWith(J,[K]),K.fn.triggerHandler&amp;&amp;(K(J).triggerHandler("ready"),K(J).off("ready"))))}}),K.ready.promise=function(e){return gt||(gt=K.Deferred(),"complete"===J.readyState?setTimeout(K.ready):(J.addEventListener("DOMContentLoaded",o,!1),t.addEventListener("load",o,!1))),gt.promise(e)},K.ready.promise();var mt=K.access=function(t,e,i,n,r,s,o){var a=0,l=t.length,u=null==i;if("object"===K.type(i)){r=!0;for(a in i)K.access(t,e,a,i[a],!0,s,o)}else if(void 0!==n&amp;&amp;(r=!0,K.isFunction(n)||(o=!0),u&amp;&amp;(o?(e.call(t,n),e=null):(u=e,e=function(t,e,i){return u.call(K(t),i)})),e))for(;l&gt;a;a++)e(t[a],i,o?n:n.call(t[a],a,e(t[a],i)));return r?t:u?e.call(t):l?e(t[0],i):s};K.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},a.uid=1,a.accepts=K.acceptData,a.prototype={key:function(t){if(!a.accepts(t))return 0;var e={},i=t[this.expando];if(!i){i=a.uid++;try{e[this.expando]={value:i},Object.defineProperties(t,e)}catch(n){e[this.expando]=i,K.extend(t,e)}}return this.cache[i]||(this.cache[i]={}),i},set:function(t,e,i){var n,r=this.key(t),s=this.cache[r];if("string"==typeof e)s[e]=i;else if(K.isEmptyObject(s))K.extend(this.cache[r],e);else for(n in e)s[n]=e[n];return s},get:function(t,e){var i=this.cache[this.key(t)];return void 0===e?i:i[e]},access:function(t,e,i){var n;return void 0===e||e&amp;&amp;"string"==typeof e&amp;&amp;void 0===i?(n=this.get(t,e),void 0!==n?n:this.get(t,K.camelCase(e))):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,r,s=this.key(t),o=this.cache[s];if(void 0===e)this.cache[s]={};else{K.isArray(e)?n=e.concat(e.map(K.camelCase)):(r=K.camelCase(e),e in o?n=[e,r]:(n=r,n=n in o?[n]:n.match(dt)||[])),i=n.length;for(;i--;)delete o[n[i]]}},hasData:function(t){return!K.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&amp;&amp;delete this.cache[t[this.expando]]}};var _t=new a,vt=new a,yt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,bt=/([A-Z])/g;K.extend({hasData:function(t){return vt.hasData(t)||_t.hasData(t)},data:function(t,e,i){return vt.access(t,e,i);
        },removeData:function(t,e){vt.remove(t,e)},_data:function(t,e,i){return _t.access(t,e,i)},_removeData:function(t,e){_t.remove(t,e)}}),K.fn.extend({data:function(t,e){var i,n,r,s=this[0],o=s&amp;&amp;s.attributes;if(void 0===t){if(this.length&amp;&amp;(r=vt.get(s),1===s.nodeType&amp;&amp;!_t.get(s,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&amp;&amp;(n=o[i].name,0===n.indexOf("data-")&amp;&amp;(n=K.camelCase(n.slice(5)),l(s,n,r[n])));_t.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){vt.set(this,t)}):mt(this,function(e){var i,n=K.camelCase(t);if(s&amp;&amp;void 0===e){if(i=vt.get(s,t),void 0!==i)return i;if(i=vt.get(s,n),void 0!==i)return i;if(i=l(s,n,void 0),void 0!==i)return i}else this.each(function(){var i=vt.get(this,n);vt.set(this,n,e),-1!==t.indexOf("-")&amp;&amp;void 0!==i&amp;&amp;vt.set(this,t,e)})},null,e,arguments.length&gt;1,null,!0)},removeData:function(t){return this.each(function(){vt.remove(this,t)})}}),K.extend({queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=_t.get(t,e),i&amp;&amp;(!n||K.isArray(i)?n=_t.access(t,e,K.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=K.queue(t,e),n=i.length,r=i.shift(),s=K._queueHooks(t,e),o=function(){K.dequeue(t,e)};"inprogress"===r&amp;&amp;(r=i.shift(),n--),r&amp;&amp;("fx"===e&amp;&amp;i.unshift("inprogress"),delete s.stop,r.call(t,o,s)),!n&amp;&amp;s&amp;&amp;s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return _t.get(t,i)||_t.access(t,i,{empty:K.Callbacks("once memory").add(function(){_t.remove(t,[e+"queue",i])})})}}),K.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&amp;&amp;(e=t,t="fx",i--),arguments.length&lt;i?K.queue(this[0],t):void 0===e?this:this.each(function(){var i=K.queue(this,t,e);K._queueHooks(this,t),"fx"===t&amp;&amp;"inprogress"!==i[0]&amp;&amp;K.dequeue(this,t)})},dequeue:function(t){return this.each(function(){K.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=K.Deferred(),s=this,o=this.length,a=function(){--n||r.resolveWith(s,[s])};for("string"!=typeof t&amp;&amp;(e=t,t=void 0),t=t||"fx";o--;)i=_t.get(s[o],t+"queueHooks"),i&amp;&amp;i.empty&amp;&amp;(n++,i.empty.add(a));return a(),r.promise(e)}});var wt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,xt=["Top","Right","Bottom","Left"],kt=function(t,e){return t=e||t,"none"===K.css(t,"display")||!K.contains(t.ownerDocument,t)},Mt=/^(?:checkbox|radio)$/i;!function(){var t=J.createDocumentFragment(),e=t.appendChild(J.createElement("div")),i=J.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),Z.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="&lt;textarea&gt;x&lt;/textarea&gt;",Z.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ct="undefined";Z.focusinBubbles="onfocusin"in t;var Dt=/^key/,Tt=/^(?:mouse|pointer|contextmenu)|click/,St=/^(?:focusinfocus|focusoutblur)$/,At=/^([^.]*)(?:\.(.+)|)$/;K.event={global:{},add:function(t,e,i,n,r){var s,o,a,l,u,h,c,p,d,f,g,m=_t.get(t);if(m)for(i.handler&amp;&amp;(s=i,i=s.handler,r=s.selector),i.guid||(i.guid=K.guid++),(l=m.events)||(l=m.events={}),(o=m.handle)||(o=m.handle=function(e){return typeof K!==Ct&amp;&amp;K.event.triggered!==e.type?K.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(dt)||[""],u=e.length;u--;)a=At.exec(e[u])||[],d=g=a[1],f=(a[2]||"").split(".").sort(),d&amp;&amp;(c=K.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,c=K.event.special[d]||{},h=K.extend({type:d,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&amp;&amp;K.expr.match.needsContext.test(r),namespace:f.join(".")},s),(p=l[d])||(p=l[d]=[],p.delegateCount=0,c.setup&amp;&amp;c.setup.call(t,n,f,o)!==!1||t.addEventListener&amp;&amp;t.addEventListener(d,o,!1)),c.add&amp;&amp;(c.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,h):p.push(h),K.event.global[d]=!0)},remove:function(t,e,i,n,r){var s,o,a,l,u,h,c,p,d,f,g,m=_t.hasData(t)&amp;&amp;_t.get(t);if(m&amp;&amp;(l=m.events)){for(e=(e||"").match(dt)||[""],u=e.length;u--;)if(a=At.exec(e[u])||[],d=g=a[1],f=(a[2]||"").split(".").sort(),d){for(c=K.event.special[d]||{},d=(n?c.delegateType:c.bindType)||d,p=l[d]||[],a=a[2]&amp;&amp;new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=p.length;s--;)h=p[s],!r&amp;&amp;g!==h.origType||i&amp;&amp;i.guid!==h.guid||a&amp;&amp;!a.test(h.namespace)||n&amp;&amp;n!==h.selector&amp;&amp;("**"!==n||!h.selector)||(p.splice(s,1),h.selector&amp;&amp;p.delegateCount--,c.remove&amp;&amp;c.remove.call(t,h));o&amp;&amp;!p.length&amp;&amp;(c.teardown&amp;&amp;c.teardown.call(t,f,m.handle)!==!1||K.removeEvent(t,d,m.handle),delete l[d])}else for(d in l)K.event.remove(t,d+e[u],i,n,!0);K.isEmptyObject(l)&amp;&amp;(delete m.handle,_t.remove(t,"events"))}},trigger:function(e,i,n,r){var s,o,a,l,u,h,c,p=[n||J],d=X.call(e,"type")?e.type:e,f=X.call(e,"namespace")?e.namespace.split("."):[];if(o=a=n=n||J,3!==n.nodeType&amp;&amp;8!==n.nodeType&amp;&amp;!St.test(d+K.event.triggered)&amp;&amp;(d.indexOf(".")&gt;=0&amp;&amp;(f=d.split("."),d=f.shift(),f.sort()),u=d.indexOf(":")&lt;0&amp;&amp;"on"+d,e=e[K.expando]?e:new K.Event(d,"object"==typeof e&amp;&amp;e),e.isTrigger=r?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:K.makeArray(i,[e]),c=K.event.special[d]||{},r||!c.trigger||c.trigger.apply(n,i)!==!1)){if(!r&amp;&amp;!c.noBubble&amp;&amp;!K.isWindow(n)){for(l=c.delegateType||d,St.test(l+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||J)&amp;&amp;p.push(a.defaultView||a.parentWindow||t)}for(s=0;(o=p[s++])&amp;&amp;!e.isPropagationStopped();)e.type=s&gt;1?l:c.bindType||d,h=(_t.get(o,"events")||{})[e.type]&amp;&amp;_t.get(o,"handle"),h&amp;&amp;h.apply(o,i),h=u&amp;&amp;o[u],h&amp;&amp;h.apply&amp;&amp;K.acceptData(o)&amp;&amp;(e.result=h.apply(o,i),e.result===!1&amp;&amp;e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&amp;&amp;c._default.apply(p.pop(),i)!==!1||!K.acceptData(n)||u&amp;&amp;K.isFunction(n[d])&amp;&amp;!K.isWindow(n)&amp;&amp;(a=n[u],a&amp;&amp;(n[u]=null),K.event.triggered=d,n[d](),K.event.triggered=void 0,a&amp;&amp;(n[u]=a)),e.result}},dispatch:function(t){t=K.event.fix(t);var e,i,n,r,s,o=[],a=q.call(arguments),l=(_t.get(this,"events")||{})[t.type]||[],u=K.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(o=K.event.handlers.call(this,t,l),e=0;(r=o[e++])&amp;&amp;!t.isPropagationStopped();)for(t.currentTarget=r.elem,i=0;(s=r.handlers[i++])&amp;&amp;!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(s.namespace))&amp;&amp;(t.handleObj=s,t.data=s.data,n=((K.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a),void 0!==n&amp;&amp;(t.result=n)===!1&amp;&amp;(t.preventDefault(),t.stopPropagation()));return u.postDispatch&amp;&amp;u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,r,s,o=[],a=e.delegateCount,l=t.target;if(a&amp;&amp;l.nodeType&amp;&amp;(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==t.type){for(n=[],i=0;a&gt;i;i++)s=e[i],r=s.selector+" ",void 0===n[r]&amp;&amp;(n[r]=s.needsContext?K(r,this).index(l)&gt;=0:K.find(r,this,null,[l]).length),n[r]&amp;&amp;n.push(s);n.length&amp;&amp;o.push({elem:l,handlers:n})}return a&lt;e.length&amp;&amp;o.push({elem:this,handlers:e.slice(a)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&amp;&amp;(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,r,s=e.button;return null==t.pageX&amp;&amp;null!=e.clientX&amp;&amp;(i=t.target.ownerDocument||J,n=i.documentElement,r=i.body,t.pageX=e.clientX+(n&amp;&amp;n.scrollLeft||r&amp;&amp;r.scrollLeft||0)-(n&amp;&amp;n.clientLeft||r&amp;&amp;r.clientLeft||0),t.pageY=e.clientY+(n&amp;&amp;n.scrollTop||r&amp;&amp;r.scrollTop||0)-(n&amp;&amp;n.clientTop||r&amp;&amp;r.clientTop||0)),t.which||void 0===s||(t.which=1&amp;s?1:2&amp;s?3:4&amp;s?2:0),t}},fix:function(t){if(t[K.expando])return t;var e,i,n,r=t.type,s=t,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Tt.test(r)?this.mouseHooks:Dt.test(r)?this.keyHooks:{}),n=o.props?this.props.concat(o.props):this.props,t=new K.Event(s),e=n.length;e--;)i=n[e],t[i]=s[i];return t.target||(t.target=J),3===t.target.nodeType&amp;&amp;(t.target=t.target.parentNode),o.filter?o.filter(t,s):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==c()&amp;&amp;this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===c()&amp;&amp;this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&amp;&amp;this.click&amp;&amp;K.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return K.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&amp;&amp;t.originalEvent&amp;&amp;(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var r=K.extend(new K.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?K.event.trigger(r,null,e):K.event.dispatch.call(e,r),r.isDefaultPrevented()&amp;&amp;i.preventDefault()}},K.removeEvent=function(t,e,i){t.removeEventListener&amp;&amp;t.removeEventListener(e,i,!1)},K.Event=function(t,e){return this instanceof K.Event?(t&amp;&amp;t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&amp;&amp;t.returnValue===!1?u:h):this.type=t,e&amp;&amp;K.extend(this,e),this.timeStamp=t&amp;&amp;t.timeStamp||K.now(),void(this[K.expando]=!0)):new K.Event(t,e)},K.Event.prototype={isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=u,t&amp;&amp;t.preventDefault&amp;&amp;t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=u,t&amp;&amp;t.stopPropagation&amp;&amp;t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=u,t&amp;&amp;t.stopImmediatePropagation&amp;&amp;t.stopImmediatePropagation(),this.stopPropagation()}},K.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){K.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,s=t.handleObj;return(!r||r!==n&amp;&amp;!K.contains(n,r))&amp;&amp;(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}}),Z.focusinBubbles||K.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){K.event.simulate(e,t.target,K.event.fix(t),!0)};K.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=_t.access(n,e);r||n.addEventListener(t,i,!0),_t.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=_t.access(n,e)-1;r?_t.access(n,e,r):(n.removeEventListener(t,i,!0),_t.remove(n,e))}}}),K.fn.extend({on:function(t,e,i,n,r){var s,o;if("object"==typeof t){"string"!=typeof e&amp;&amp;(i=i||e,e=void 0);for(o in t)this.on(o,e,i,t[o],r);return this}if(null==i&amp;&amp;null==n?(n=e,i=e=void 0):null==n&amp;&amp;("string"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),n===!1)n=h;else if(!n)return this;return 1===r&amp;&amp;(s=n,n=function(t){return K().off(t),s.apply(this,arguments)},n.guid=s.guid||(s.guid=K.guid++)),this.each(function(){K.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&amp;&amp;t.preventDefault&amp;&amp;t.handleObj)return n=t.handleObj,K(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return(e===!1||"function"==typeof e)&amp;&amp;(i=e,e=void 0),i===!1&amp;&amp;(i=h),this.each(function(){K.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){K.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?K.event.trigger(t,e,i,!0):void 0}});var Pt=/&lt;(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^&gt;]*)\/&gt;/gi,Et=/&lt;([\w:]+)/,It=/&lt;|&amp;#?\w+;/,Nt=/&lt;(?:script|style|link)/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^$|\/(?:java|ecma)script/i,jt=/^true\/(.*)/,Ot=/^\s*&lt;!(?:\[CDATA\[|--)|(?:\]\]|--)&gt;\s*$/g,Ft={option:[1,"&lt;select multiple='multiple'&gt;","&lt;/select&gt;"],thead:[1,"&lt;table&gt;","&lt;/table&gt;"],col:[2,"&lt;table&gt;&lt;colgroup&gt;","&lt;/colgroup&gt;&lt;/table&gt;"],tr:[2,"&lt;table&gt;&lt;tbody&gt;","&lt;/tbody&gt;&lt;/table&gt;"],td:[3,"&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;","&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;"],_default:[0,"",""]};Ft.optgroup=Ft.option,Ft.tbody=Ft.tfoot=Ft.colgroup=Ft.caption=Ft.thead,Ft.th=Ft.td,K.extend({clone:function(t,e,i){var n,r,s,o,a=t.cloneNode(!0),l=K.contains(t.ownerDocument,t);if(!(Z.noCloneChecked||1!==t.nodeType&amp;&amp;11!==t.nodeType||K.isXMLDoc(t)))for(o=_(a),s=_(t),n=0,r=s.length;r&gt;n;n++)v(s[n],o[n]);if(e)if(i)for(s=s||_(t),o=o||_(a),n=0,r=s.length;r&gt;n;n++)m(s[n],o[n]);else m(t,a);return o=_(a,"script"),o.length&gt;0&amp;&amp;g(o,!l&amp;&amp;_(t,"script")),a},buildFragment:function(t,e,i,n){for(var r,s,o,a,l,u,h=e.createDocumentFragment(),c=[],p=0,d=t.length;d&gt;p;p++)if(r=t[p],r||0===r)if("object"===K.type(r))K.merge(c,r.nodeType?[r]:r);else if(It.test(r)){for(s=s||h.appendChild(e.createElement("div")),o=(Et.exec(r)||["",""])[1].toLowerCase(),a=Ft[o]||Ft._default,s.innerHTML=a[1]+r.replace(Pt,"&lt;$1&gt;&lt;/$2&gt;")+a[2],u=a[0];u--;)s=s.lastChild;K.merge(c,s.childNodes),s=h.firstChild,s.textContent=""}else c.push(e.createTextNode(r));for(h.textContent="",p=0;r=c[p++];)if((!n||-1===K.inArray(r,n))&amp;&amp;(l=K.contains(r.ownerDocument,r),s=_(h.appendChild(r),"script"),l&amp;&amp;g(s),i))for(u=0;r=s[u++];)zt.test(r.type||"")&amp;&amp;i.push(r);return h},cleanData:function(t){for(var e,i,n,r,s=K.event.special,o=0;void 0!==(i=t[o]);o++){if(K.acceptData(i)&amp;&amp;(r=i[_t.expando],r&amp;&amp;(e=_t.cache[r]))){if(e.events)for(n in e.events)s[n]?K.event.remove(i,n):K.removeEvent(i,n,e.handle);_t.cache[r]&amp;&amp;delete _t.cache[r]}delete vt.cache[i[vt.expando]]}}}),K.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?K.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&amp;&amp;(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&amp;&amp;this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&amp;&amp;this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?K.filter(t,this):this,r=0;null!=(i=n[r]);r++)e||1!==i.nodeType||K.cleanData(_(i)),i.parentNode&amp;&amp;(e&amp;&amp;K.contains(i.ownerDocument,i)&amp;&amp;g(_(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&amp;&amp;(K.cleanData(_(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return K.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&amp;&amp;1===e.nodeType)return e.innerHTML;if("string"==typeof t&amp;&amp;!Nt.test(t)&amp;&amp;!Ft[(Et.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Pt,"&lt;$1&gt;&lt;/$2&gt;");try{for(;n&gt;i;i++)e=this[i]||{},1===e.nodeType&amp;&amp;(K.cleanData(_(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&amp;&amp;this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,K.cleanData(_(this)),t&amp;&amp;t.replaceChild(e,this)}),t&amp;&amp;(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=Y.apply([],t);var i,n,r,s,o,a,l=0,u=this.length,h=this,c=u-1,p=t[0],g=K.isFunction(p);if(g||u&gt;1&amp;&amp;"string"==typeof p&amp;&amp;!Z.checkClone&amp;&amp;Rt.test(p))return this.each(function(i){var n=h.eq(i);g&amp;&amp;(t[0]=p.call(this,i,n.html())),n.domManip(t,e)});if(u&amp;&amp;(i=K.buildFragment(t,this[0].ownerDocument,!1,this),n=i.firstChild,1===i.childNodes.length&amp;&amp;(i=n),n)){for(r=K.map(_(i,"script"),d),s=r.length;u&gt;l;l++)o=i,l!==c&amp;&amp;(o=K.clone(o,!0,!0),s&amp;&amp;K.merge(r,_(o,"script"))),e.call(this[l],o,l);if(s)for(a=r[r.length-1].ownerDocument,K.map(r,f),l=0;s&gt;l;l++)o=r[l],zt.test(o.type||"")&amp;&amp;!_t.access(o,"globalEval")&amp;&amp;K.contains(a,o)&amp;&amp;(o.src?K._evalUrl&amp;&amp;K._evalUrl(o.src):K.globalEval(o.textContent.replace(Ot,"")))}return this}}),K.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){K.fn[t]=function(t){for(var i,n=[],r=K(t),s=r.length-1,o=0;s&gt;=o;o++)i=o===s?this:this.clone(!0),K(r[o])[e](i),V.apply(n,i.get());return this.pushStack(n)}});var Lt,Ht={},Bt=/^margin/,Wt=new RegExp("^("+wt+")(?!px)[a-z%]+$","i"),qt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(s);var e=t.getComputedStyle(o,null);i="1%"!==e.top,n="4px"===e.width,r.removeChild(s)}var i,n,r=J.documentElement,s=J.createElement("div"),o=J.createElement("div");o.style&amp;&amp;(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",Z.clearCloneStyle="content-box"===o.style.backgroundClip,s.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",s.appendChild(o),t.getComputedStyle&amp;&amp;K.extend(Z,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return null==n&amp;&amp;e(),n},reliableMarginRight:function(){var e,i=o.appendChild(J.createElement("div"));return i.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",o.style.width="1px",r.appendChild(s),e=!parseFloat(t.getComputedStyle(i,null).marginRight),r.removeChild(s),o.removeChild(i),e}}))}(),K.swap=function(t,e,i,n){var r,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];r=i.apply(t,n||[]);for(s in e)t.style[s]=o[s];return r};var Yt=/^(none|table(?!-c[ea]).+)/,Vt=new RegExp("^("+wt+")(.*)$","i"),$t=new RegExp("^([+-])=("+wt+")","i"),Ut={position:"absolute",visibility:"hidden",display:"block"},Gt={letterSpacing:"0",fontWeight:"400"},Xt=["Webkit","O","Moz","ms"];K.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=w(t,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,i,n){if(t&amp;&amp;3!==t.nodeType&amp;&amp;8!==t.nodeType&amp;&amp;t.style){var r,s,o,a=K.camelCase(e),l=t.style;return e=K.cssProps[a]||(K.cssProps[a]=k(l,a)),o=K.cssHooks[e]||K.cssHooks[a],void 0===i?o&amp;&amp;"get"in o&amp;&amp;void 0!==(r=o.get(t,!1,n))?r:l[e]:(s=typeof i,"string"===s&amp;&amp;(r=$t.exec(i))&amp;&amp;(i=(r[1]+1)*r[2]+parseFloat(K.css(t,e)),s="number"),null!=i&amp;&amp;i===i&amp;&amp;("number"!==s||K.cssNumber[a]||(i+="px"),Z.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),o&amp;&amp;"set"in o&amp;&amp;void 0===(i=o.set(t,i,n))||(l[e]=i)),void 0)}},css:function(t,e,i,n){var r,s,o,a=K.camelCase(e);return e=K.cssProps[a]||(K.cssProps[a]=k(t.style,a)),o=K.cssHooks[e]||K.cssHooks[a],o&amp;&amp;"get"in o&amp;&amp;(r=o.get(t,!0,i)),void 0===r&amp;&amp;(r=w(t,e,n)),"normal"===r&amp;&amp;e in Gt&amp;&amp;(r=Gt[e]),""===i||i?(s=parseFloat(r),i===!0||K.isNumeric(s)?s||0:r):r}}),K.each(["height","width"],function(t,e){K.cssHooks[e]={get:function(t,i,n){return i?Yt.test(K.css(t,"display"))&amp;&amp;0===t.offsetWidth?K.swap(t,Ut,function(){return D(t,e,n)}):D(t,e,n):void 0},set:function(t,i,n){var r=n&amp;&amp;qt(t);return M(t,i,n?C(t,e,n,"border-box"===K.css(t,"boxSizing",!1,r),r):0)}}}),K.cssHooks.marginRight=x(Z.reliableMarginRight,function(t,e){return e?K.swap(t,{display:"inline-block"},w,[t,"marginRight"]):void 0}),K.each({margin:"",padding:"",border:"Width"},function(t,e){K.cssHooks[t+e]={expand:function(i){for(var n=0,r={},s="string"==typeof i?i.split(" "):[i];4&gt;n;n++)r[t+xt[n]+e]=s[n]||s[n-2]||s[0];return r}},Bt.test(t)||(K.cssHooks[t+e].set=M)}),K.fn.extend({css:function(t,e){return mt(this,function(t,e,i){var n,r,s={},o=0;if(K.isArray(e)){for(n=qt(t),r=e.length;r&gt;o;o++)s[e[o]]=K.css(t,e[o],!1,n);return s}return void 0!==i?K.style(t,e,i):K.css(t,e)},t,e,arguments.length&gt;1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){kt(this)?K(this).show():K(this).hide()})}}),K.Tween=S,S.prototype={constructor:S,init:function(t,e,i,n,r,s){this.elem=t,this.prop=i,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(K.cssNumber[i]?"":"px")},cur:function(){var t=S.propHooks[this.prop];return t&amp;&amp;t.get?t.get(this):S.propHooks._default.get(this)},run:function(t){var e,i=S.propHooks[this.prop];return this.options.duration?this.pos=e=K.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&amp;&amp;this.options.step.call(this.elem,this.now,this),i&amp;&amp;i.set?i.set(this):S.propHooks._default.set(this),this}},S.prototype.init.prototype=S.prototype,S.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&amp;&amp;null!=t.elem.style[t.prop]?(e=K.css(t.elem,t.prop,""),e&amp;&amp;"auto"!==e?e:0):t.elem[t.prop]},set:function(t){K.fx.step[t.prop]?K.fx.step[t.prop](t):t.elem.style&amp;&amp;(null!=t.elem.style[K.cssProps[t.prop]]||K.cssHooks[t.prop])?K.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},S.propHooks.scrollTop=S.propHooks.scrollLeft={set:function(t){t.elem.nodeType&amp;&amp;t.elem.parentNode&amp;&amp;(t.elem[t.prop]=t.now)}},K.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},K.fx=S.prototype.init,K.fx.step={};var Zt,Jt,Qt=/^(?:toggle|show|hide)$/,Kt=new RegExp("^(?:([+-])=|)("+wt+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[I],ie={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),r=Kt.exec(e),s=r&amp;&amp;r[3]||(K.cssNumber[t]?"":"px"),o=(K.cssNumber[t]||"px"!==s&amp;&amp;+n)&amp;&amp;Kt.exec(K.css(i.elem,t)),a=1,l=20;if(o&amp;&amp;o[3]!==s){s=s||o[3],r=r||[],o=+n||1;do a=a||".5",o/=a,K.style(i.elem,t,o+s);while(a!==(a=i.cur()/n)&amp;&amp;1!==a&amp;&amp;--l)}return r&amp;&amp;(o=i.start=+o||+n||0,i.unit=s,i.end=r[1]?o+(r[1]+1)*r[2]:+r[2]),i}]};K.Animation=K.extend(R,{tweener:function(t,e){K.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,r=t.length;r&gt;n;n++)i=t[n],ie[i]=ie[i]||[],ie[i].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),K.speed=function(t,e,i){var n=t&amp;&amp;"object"==typeof t?K.extend({},t):{complete:i||!i&amp;&amp;e||K.isFunction(t)&amp;&amp;t,duration:t,easing:i&amp;&amp;e||e&amp;&amp;!K.isFunction(e)&amp;&amp;e};return n.duration=K.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in K.fx.speeds?K.fx.speeds[n.duration]:K.fx.speeds._default,(null==n.queue||n.queue===!0)&amp;&amp;(n.queue="fx"),n.old=n.complete,n.complete=function(){K.isFunction(n.old)&amp;&amp;n.old.call(this),n.queue&amp;&amp;K.dequeue(this,n.queue)},n},K.fn.extend({fadeTo:function(t,e,i,n){return this.filter(kt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=K.isEmptyObject(t),s=K.speed(e,i,n),o=function(){var e=R(this,K.extend({},t),s);(r||_t.get(this,"finish"))&amp;&amp;e.stop(!0)};return o.finish=o,r||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&amp;&amp;(i=e,e=t,t=void 0),e&amp;&amp;t!==!1&amp;&amp;this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&amp;&amp;t+"queueHooks",s=K.timers,o=_t.get(this);if(r)o[r]&amp;&amp;o[r].stop&amp;&amp;n(o[r]);else for(r in o)o[r]&amp;&amp;o[r].stop&amp;&amp;te.test(r)&amp;&amp;n(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&amp;&amp;s[r].queue!==t||(s[r].anim.stop(i),e=!1,s.splice(r,1));(e||!i)&amp;&amp;K.dequeue(this,t)})},finish:function(t){return t!==!1&amp;&amp;(t=t||"fx"),this.each(function(){var e,i=_t.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],s=K.timers,o=n?n.length:0;for(i.finish=!0,K.queue(this,t,[]),r&amp;&amp;r.stop&amp;&amp;r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&amp;&amp;s[e].queue===t&amp;&amp;(s[e].anim.stop(!0),s.splice(e,1));for(e=0;o&gt;e;e++)n[e]&amp;&amp;n[e].finish&amp;&amp;n[e].finish.call(this);delete i.finish})}}),K.each(["toggle","show","hide"],function(t,e){var i=K.fn[e];K.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(P(e,!0),t,n,r)}}),K.each({slideDown:P("show"),slideUp:P("hide"),slideToggle:P("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){K.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),K.timers=[],K.fx.tick=function(){var t,e=0,i=K.timers;for(Zt=K.now();e&lt;i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||K.fx.stop(),Zt=void 0},K.fx.timer=function(t){K.timers.push(t),t()?K.fx.start():K.timers.pop()},K.fx.interval=13,K.fx.start=function(){Jt||(Jt=setInterval(K.fx.tick,K.fx.interval))},K.fx.stop=function(){clearInterval(Jt),Jt=null},K.fx.speeds={slow:600,fast:200,_default:400},K.fn.delay=function(t,e){return t=K.fx?K.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},function(){var t=J.createElement("input"),e=J.createElement("select"),i=e.appendChild(J.createElement("option"));t.type="checkbox",Z.checkOn=""!==t.value,Z.optSelected=i.selected,e.disabled=!0,Z.optDisabled=!i.disabled,t=J.createElement("input"),t.value="t",t.type="radio",Z.radioValue="t"===t.value}();var ne,re,se=K.expr.attrHandle;K.fn.extend({attr:function(t,e){return mt(this,K.attr,t,e,arguments.length&gt;1)},removeAttr:function(t){return this.each(function(){K.removeAttr(this,t)})}}),K.extend({attr:function(t,e,i){var n,r,s=t.nodeType;if(t&amp;&amp;3!==s&amp;&amp;8!==s&amp;&amp;2!==s)return typeof t.getAttribute===Ct?K.prop(t,e,i):(1===s&amp;&amp;K.isXMLDoc(t)||(e=e.toLowerCase(),n=K.attrHooks[e]||(K.expr.match.bool.test(e)?re:ne)),void 0===i?n&amp;&amp;"get"in n&amp;&amp;null!==(r=n.get(t,e))?r:(r=K.find.attr(t,e),null==r?void 0:r):null!==i?n&amp;&amp;"set"in n&amp;&amp;void 0!==(r=n.set(t,i,e))?r:(t.setAttribute(e,i+""),i):void K.removeAttr(t,e))},removeAttr:function(t,e){var i,n,r=0,s=e&amp;&amp;e.match(dt);if(s&amp;&amp;1===t.nodeType)for(;i=s[r++];)n=K.propFix[i]||i,K.expr.match.bool.test(i)&amp;&amp;(t[n]=!1),t.removeAttribute(i)},attrHooks:{type:{set:function(t,e){if(!Z.radioValue&amp;&amp;"radio"===e&amp;&amp;K.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&amp;&amp;(t.value=i),e}}}}}),re={set:function(t,e,i){return e===!1?K.removeAttr(t,i):t.setAttribute(i,i),i}},K.each(K.expr.match.bool.source.match(/\w+/g),function(t,e){var i=se[e]||K.find.attr;se[e]=function(t,e,n){var r,s;return n||(s=se[e],se[e]=r,r=null!=i(t,e,n)?e.toLowerCase():null,se[e]=s),r}});var oe=/^(?:input|select|textarea|button)$/i;K.fn.extend({prop:function(t,e){return mt(this,K.prop,t,e,arguments.length&gt;1)},removeProp:function(t){return this.each(function(){delete this[K.propFix[t]||t]})}}),K.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,i){var n,r,s,o=t.nodeType;if(t&amp;&amp;3!==o&amp;&amp;8!==o&amp;&amp;2!==o)return s=1!==o||!K.isXMLDoc(t),s&amp;&amp;(e=K.propFix[e]||e,r=K.propHooks[e]),void 0!==i?r&amp;&amp;"set"in r&amp;&amp;void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&amp;&amp;"get"in r&amp;&amp;null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||oe.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),Z.optSelected||(K.propHooks.selected={get:function(t){var e=t.parentNode;return e&amp;&amp;e.parentNode&amp;&amp;e.parentNode.selectedIndex,null}}),K.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){K.propFix[this.toLowerCase()]=this});var ae=/[\t\r\n\f]/g;K.fn.extend({addClass:function(t){var e,i,n,r,s,o,a="string"==typeof t&amp;&amp;t,l=0,u=this.length;if(K.isFunction(t))return this.each(function(e){K(this).addClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(dt)||[];u&gt;l;l++)if(i=this[l],n=1===i.nodeType&amp;&amp;(i.className?(" "+i.className+" ").replace(ae," "):" ")){for(s=0;r=e[s++];)n.indexOf(" "+r+" ")&lt;0&amp;&amp;(n+=r+" ");o=K.trim(n),i.className!==o&amp;&amp;(i.className=o)}return this},removeClass:function(t){var e,i,n,r,s,o,a=0===arguments.length||"string"==typeof t&amp;&amp;t,l=0,u=this.length;if(K.isFunction(t))return this.each(function(e){K(this).removeClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(dt)||[];u&gt;l;l++)if(i=this[l],n=1===i.nodeType&amp;&amp;(i.className?(" "+i.className+" ").replace(ae," "):"")){for(s=0;r=e[s++];)for(;n.indexOf(" "+r+" ")&gt;=0;)n=n.replace(" "+r+" "," ");o=t?K.trim(n):"",i.className!==o&amp;&amp;(i.className=o)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&amp;&amp;"string"===i?e?this.addClass(t):this.removeClass(t):K.isFunction(t)?this.each(function(i){K(this).toggleClass(t.call(this,i,this.className,e),e)}):this.each(function(){if("string"===i)for(var e,n=0,r=K(this),s=t.match(dt)||[];e=s[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(i===Ct||"boolean"===i)&amp;&amp;(this.className&amp;&amp;_t.set(this,"__className__",this.className),this.className=this.className||t===!1?"":_t.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n&gt;i;i++)if(1===this[i].nodeType&amp;&amp;(" "+this[i].className+" ").replace(ae," ").indexOf(e)&gt;=0)return!0;return!1}});var le=/\r/g;K.fn.extend({val:function(t){var e,i,n,r=this[0];{if(arguments.length)return n=K.isFunction(t),this.each(function(i){var r;1===this.nodeType&amp;&amp;(r=n?t.call(this,i,K(this).val()):t,null==r?r="":"number"==typeof r?r+="":K.isArray(r)&amp;&amp;(r=K.map(r,function(t){return null==t?"":t+""})),e=K.valHooks[this.type]||K.valHooks[this.nodeName.toLowerCase()],e&amp;&amp;"set"in e&amp;&amp;void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=K.valHooks[r.type]||K.valHooks[r.nodeName.toLowerCase()],e&amp;&amp;"get"in e&amp;&amp;void 0!==(i=e.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(le,""):null==i?"":i)}}}),K.extend({valHooks:{option:{get:function(t){var e=K.find.attr(t,"value");return null!=e?e:K.trim(K.text(t))}},select:{get:function(t){for(var e,i,n=t.options,r=t.selectedIndex,s="select-one"===t.type||0&gt;r,o=s?null:[],a=s?r+1:n.length,l=0&gt;r?a:s?r:0;a&gt;l;l++)if(i=n[l],(i.selected||l===r)&amp;&amp;(Z.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&amp;&amp;(!i.parentNode.disabled||!K.nodeName(i.parentNode,"optgroup"))){if(e=K(i).val(),s)return e;o.push(e)}return o},set:function(t,e){for(var i,n,r=t.options,s=K.makeArray(e),o=r.length;o--;)n=r[o],(n.selected=K.inArray(n.value,s)&gt;=0)&amp;&amp;(i=!0);return i||(t.selectedIndex=-1),s}}}}),K.each(["radio","checkbox"],function(){K.valHooks[this]={set:function(t,e){return K.isArray(e)?t.checked=K.inArray(K(t).val(),e)&gt;=0:void 0}},Z.checkOn||(K.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),K.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){K.fn[e]=function(t,i){return arguments.length&gt;0?this.on(e,null,t,i):this.trigger(e)}}),K.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}});var ue=K.now(),he=/\?/;K.parseJSON=function(t){return JSON.parse(t+"")},K.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{i=new DOMParser,e=i.parseFromString(t,"text/xml")}catch(n){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&amp;&amp;K.error("Invalid XML: "+t),e};var ce=/#.*$/,pe=/([?&amp;])_=[^&amp;]*/,de=/^(.*?):[ \t]*([^\r\n]*)$/gm,fe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ge=/^(?:GET|HEAD)$/,me=/^\/\//,_e=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ve={},ye={},be="*/".concat("*"),we=t.location.href,xe=_e.exec(we.toLowerCase())||[];K.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we,type:"GET",isLocal:fe.test(xe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":be,text:"text/plain",html:"text/html",
        xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":K.parseJSON,"text xml":K.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?O(O(t,K.ajaxSettings),e):O(K.ajaxSettings,t)},ajaxPrefilter:z(ve),ajaxTransport:z(ye),ajax:function(t,e){function i(t,e,i,o){var l,h,_,v,b,x=e;2!==y&amp;&amp;(y=2,a&amp;&amp;clearTimeout(a),n=void 0,s=o||"",w.readyState=t&gt;0?4:0,l=t&gt;=200&amp;&amp;300&gt;t||304===t,i&amp;&amp;(v=F(c,w,i)),v=L(c,v,w,l),l?(c.ifModified&amp;&amp;(b=w.getResponseHeader("Last-Modified"),b&amp;&amp;(K.lastModified[r]=b),b=w.getResponseHeader("etag"),b&amp;&amp;(K.etag[r]=b)),204===t||"HEAD"===c.type?x="nocontent":304===t?x="notmodified":(x=v.state,h=v.data,_=v.error,l=!_)):(_=x,(t||!x)&amp;&amp;(x="error",0&gt;t&amp;&amp;(t=0))),w.status=t,w.statusText=(e||x)+"",l?f.resolveWith(p,[h,x,w]):f.rejectWith(p,[w,x,_]),w.statusCode(m),m=void 0,u&amp;&amp;d.trigger(l?"ajaxSuccess":"ajaxError",[w,c,l?h:_]),g.fireWith(p,[w,x]),u&amp;&amp;(d.trigger("ajaxComplete",[w,c]),--K.active||K.event.trigger("ajaxStop")))}"object"==typeof t&amp;&amp;(e=t,t=void 0),e=e||{};var n,r,s,o,a,l,u,h,c=K.ajaxSetup({},e),p=c.context||c,d=c.context&amp;&amp;(p.nodeType||p.jquery)?K(p):K.event,f=K.Deferred(),g=K.Callbacks("once memory"),m=c.statusCode||{},_={},v={},y=0,b="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===y){if(!o)for(o={};e=de.exec(s);)o[e[1].toLowerCase()]=e[2];e=o[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===y?s:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return y||(t=v[i]=v[i]||t,_[t]=e),this},overrideMimeType:function(t){return y||(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(2&gt;y)for(e in t)m[e]=[m[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||b;return n&amp;&amp;n.abort(e),i(0,e),this}};if(f.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,c.url=((t||c.url||we)+"").replace(ce,"").replace(me,xe[1]+"//"),c.type=e.method||e.type||c.method||c.type,c.dataTypes=K.trim(c.dataType||"*").toLowerCase().match(dt)||[""],null==c.crossDomain&amp;&amp;(l=_e.exec(c.url.toLowerCase()),c.crossDomain=!(!l||l[1]===xe[1]&amp;&amp;l[2]===xe[2]&amp;&amp;(l[3]||("http:"===l[1]?"80":"443"))===(xe[3]||("http:"===xe[1]?"80":"443")))),c.data&amp;&amp;c.processData&amp;&amp;"string"!=typeof c.data&amp;&amp;(c.data=K.param(c.data,c.traditional)),j(ve,c,e,w),2===y)return w;u=K.event&amp;&amp;c.global,u&amp;&amp;0===K.active++&amp;&amp;K.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!ge.test(c.type),r=c.url,c.hasContent||(c.data&amp;&amp;(r=c.url+=(he.test(r)?"&amp;":"?")+c.data,delete c.data),c.cache===!1&amp;&amp;(c.url=pe.test(r)?r.replace(pe,"$1_="+ue++):r+(he.test(r)?"&amp;":"?")+"_="+ue++)),c.ifModified&amp;&amp;(K.lastModified[r]&amp;&amp;w.setRequestHeader("If-Modified-Since",K.lastModified[r]),K.etag[r]&amp;&amp;w.setRequestHeader("If-None-Match",K.etag[r])),(c.data&amp;&amp;c.hasContent&amp;&amp;c.contentType!==!1||e.contentType)&amp;&amp;w.setRequestHeader("Content-Type",c.contentType),w.setRequestHeader("Accept",c.dataTypes[0]&amp;&amp;c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+be+"; q=0.01":""):c.accepts["*"]);for(h in c.headers)w.setRequestHeader(h,c.headers[h]);if(c.beforeSend&amp;&amp;(c.beforeSend.call(p,w,c)===!1||2===y))return w.abort();b="abort";for(h in{success:1,error:1,complete:1})w[h](c[h]);if(n=j(ye,c,e,w)){w.readyState=1,u&amp;&amp;d.trigger("ajaxSend",[w,c]),c.async&amp;&amp;c.timeout&gt;0&amp;&amp;(a=setTimeout(function(){w.abort("timeout")},c.timeout));try{y=1,n.send(_,i)}catch(x){if(!(2&gt;y))throw x;i(-1,x)}}else i(-1,"No Transport");return w},getJSON:function(t,e,i){return K.get(t,e,i,"json")},getScript:function(t,e){return K.get(t,void 0,e,"script")}}),K.each(["get","post"],function(t,e){K[e]=function(t,i,n,r){return K.isFunction(i)&amp;&amp;(r=r||n,n=i,i=void 0),K.ajax({url:t,type:e,dataType:r,data:i,success:n})}}),K._evalUrl=function(t){return K.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},K.fn.extend({wrapAll:function(t){var e;return K.isFunction(t)?this.each(function(e){K(this).wrapAll(t.call(this,e))}):(this[0]&amp;&amp;(e=K(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&amp;&amp;e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return K.isFunction(t)?this.each(function(e){K(this).wrapInner(t.call(this,e))}):this.each(function(){var e=K(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=K.isFunction(t);return this.each(function(i){K(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){K.nodeName(this,"body")||K(this).replaceWith(this.childNodes)}).end()}}),K.expr.filters.hidden=function(t){return t.offsetWidth&lt;=0&amp;&amp;t.offsetHeight&lt;=0},K.expr.filters.visible=function(t){return!K.expr.filters.hidden(t)};var ke=/%20/g,Me=/\[\]$/,Ce=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;K.param=function(t,e){var i,n=[],r=function(t,e){e=K.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&amp;&amp;(e=K.ajaxSettings&amp;&amp;K.ajaxSettings.traditional),K.isArray(t)||t.jquery&amp;&amp;!K.isPlainObject(t))K.each(t,function(){r(this.name,this.value)});else for(i in t)H(i,t[i],e,r);return n.join("&amp;").replace(ke,"+")},K.fn.extend({serialize:function(){return K.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=K.prop(this,"elements");return t?K.makeArray(t):this}).filter(function(){var t=this.type;return this.name&amp;&amp;!K(this).is(":disabled")&amp;&amp;Te.test(this.nodeName)&amp;&amp;!De.test(t)&amp;&amp;(this.checked||!Mt.test(t))}).map(function(t,e){var i=K(this).val();return null==i?null:K.isArray(i)?K.map(i,function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}}):{name:e.name,value:i.replace(Ce,"\r\n")}}).get()}}),K.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Se=0,Ae={},Pe={0:200,1223:204},Ee=K.ajaxSettings.xhr();t.attachEvent&amp;&amp;t.attachEvent("onunload",function(){for(var t in Ae)Ae[t]()}),Z.cors=!!Ee&amp;&amp;"withCredentials"in Ee,Z.ajax=Ee=!!Ee,K.ajaxTransport(function(t){var e;return Z.cors||Ee&amp;&amp;!t.crossDomain?{send:function(i,n){var r,s=t.xhr(),o=++Se;if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)s[r]=t.xhrFields[r];t.mimeType&amp;&amp;s.overrideMimeType&amp;&amp;s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(r in i)s.setRequestHeader(r,i[r]);e=function(t){return function(){e&amp;&amp;(delete Ae[o],e=s.onload=s.onerror=null,"abort"===t?s.abort():"error"===t?n(s.status,s.statusText):n(Pe[s.status]||s.status,s.statusText,"string"==typeof s.responseText?{text:s.responseText}:void 0,s.getAllResponseHeaders()))}},s.onload=e(),s.onerror=e("error"),e=Ae[o]=e("abort");try{s.send(t.hasContent&amp;&amp;t.data||null)}catch(a){if(e)throw a}},abort:function(){e&amp;&amp;e()}}:void 0}),K.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return K.globalEval(t),t}}}),K.ajaxPrefilter("script",function(t){void 0===t.cache&amp;&amp;(t.cache=!1),t.crossDomain&amp;&amp;(t.type="GET")}),K.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,r){e=K("&lt;script&gt;").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&amp;&amp;r("error"===t.type?404:200,t.type)}),J.head.appendChild(e[0])},abort:function(){i&amp;&amp;i()}}}});var Ie=[],Ne=/(=)\?(?=&amp;|$)|\?\?/;K.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ie.pop()||K.expando+"_"+ue++;return this[t]=!0,t}}),K.ajaxPrefilter("json jsonp",function(e,i,n){var r,s,o,a=e.jsonp!==!1&amp;&amp;(Ne.test(e.url)?"url":"string"==typeof e.data&amp;&amp;!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&amp;&amp;Ne.test(e.data)&amp;&amp;"data");return a||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=K.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ne,"$1"+r):e.jsonp!==!1&amp;&amp;(e.url+=(he.test(e.url)?"&amp;":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||K.error(r+" was not called"),o[0]},e.dataTypes[0]="json",s=t[r],t[r]=function(){o=arguments},n.always(function(){t[r]=s,e[r]&amp;&amp;(e.jsonpCallback=i.jsonpCallback,Ie.push(r)),o&amp;&amp;K.isFunction(s)&amp;&amp;s(o[0]),o=s=void 0}),"script"):void 0}),K.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&amp;&amp;(i=e,e=!1),e=e||J;var n=ot.exec(t),r=!i&amp;&amp;[];return n?[e.createElement(n[1])]:(n=K.buildFragment([t],e,r),r&amp;&amp;r.length&amp;&amp;K(r).remove(),K.merge([],n.childNodes))};var Re=K.fn.load;K.fn.load=function(t,e,i){if("string"!=typeof t&amp;&amp;Re)return Re.apply(this,arguments);var n,r,s,o=this,a=t.indexOf(" ");return a&gt;=0&amp;&amp;(n=K.trim(t.slice(a)),t=t.slice(0,a)),K.isFunction(e)?(i=e,e=void 0):e&amp;&amp;"object"==typeof e&amp;&amp;(r="POST"),o.length&gt;0&amp;&amp;K.ajax({url:t,type:r,dataType:"html",data:e}).done(function(t){s=arguments,o.html(n?K("&lt;div&gt;").append(K.parseHTML(t)).find(n):t)}).complete(i&amp;&amp;function(t,e){o.each(i,s||[t.responseText,e,t])}),this},K.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){K.fn[e]=function(t){return this.on(e,t)}}),K.expr.filters.animated=function(t){return K.grep(K.timers,function(e){return t===e.elem}).length};var ze=t.document.documentElement;K.offset={setOffset:function(t,e,i){var n,r,s,o,a,l,u,h=K.css(t,"position"),c=K(t),p={};"static"===h&amp;&amp;(t.style.position="relative"),a=c.offset(),s=K.css(t,"top"),l=K.css(t,"left"),u=("absolute"===h||"fixed"===h)&amp;&amp;(s+l).indexOf("auto")&gt;-1,u?(n=c.position(),o=n.top,r=n.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),K.isFunction(e)&amp;&amp;(e=e.call(t,i,a)),null!=e.top&amp;&amp;(p.top=e.top-a.top+o),null!=e.left&amp;&amp;(p.left=e.left-a.left+r),"using"in e?e.using.call(t,p):c.css(p)}},K.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){K.offset.setOffset(this,t,e)});var e,i,n=this[0],r={top:0,left:0},s=n&amp;&amp;n.ownerDocument;if(s)return e=s.documentElement,K.contains(e,n)?(typeof n.getBoundingClientRect!==Ct&amp;&amp;(r=n.getBoundingClientRect()),i=B(s),{top:r.top+i.pageYOffset-e.clientTop,left:r.left+i.pageXOffset-e.clientLeft}):r},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===K.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),K.nodeName(t[0],"html")||(n=t.offset()),n.top+=K.css(t[0],"borderTopWidth",!0),n.left+=K.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-K.css(i,"marginTop",!0),left:e.left-n.left-K.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||ze;t&amp;&amp;!K.nodeName(t,"html")&amp;&amp;"static"===K.css(t,"position");)t=t.offsetParent;return t||ze})}}),K.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var n="pageYOffset"===i;K.fn[e]=function(r){return mt(this,function(e,r,s){var o=B(e);return void 0===s?o?o[i]:e[r]:void(o?o.scrollTo(n?t.pageXOffset:s,n?s:t.pageYOffset):e[r]=s)},e,r,arguments.length,null)}}),K.each(["top","left"],function(t,e){K.cssHooks[e]=x(Z.pixelPosition,function(t,i){return i?(i=w(t,e),Wt.test(i)?K(t).position()[e]+"px":i):void 0})}),K.each({Height:"height",Width:"width"},function(t,e){K.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){K.fn[n]=function(n,r){var s=arguments.length&amp;&amp;(i||"boolean"!=typeof n),o=i||(n===!0||r===!0?"margin":"border");return mt(this,function(e,i,n){var r;return K.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===n?K.css(e,i,o):K.style(e,i,n,o)},e,s?n:void 0,s,null)}})}),K.fn.size=function(){return this.length},K.fn.andSelf=K.fn.addBack,"function"==typeof define&amp;&amp;define.amd&amp;&amp;define("jquery",[],function(){return K});var je=t.jQuery,Oe=t.$;return K.noConflict=function(e){return t.$===K&amp;&amp;(t.$=Oe),e&amp;&amp;t.jQuery===K&amp;&amp;(t.jQuery=je),K},typeof e===Ct&amp;&amp;(t.jQuery=t.$=K),K})},{}],19:[function(t,e,i){function n(t){if(!t)return n.__;Array.prototype.reduce||(Array.prototype.reduce=function(t,e){for(var i=e,n=0;n&lt;this.length;n++)i=t(i,this[n],n,this);return i});var e="",i=("."+t).split(".").reduce(function(t,i,r,s){e?e+="."+i:e=i;var o=t["__"+e];return void 0===o&amp;&amp;(n.Logger.prototype=t,o=new n.Logger(e),t["__"+e]=o),o},n.__);return i}var n,r=this.__extends||function(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&amp;&amp;(t[n]=e[n]);i.prototype=e.prototype,t.prototype=new i};!function(t){function e(t,e,i){return void 0!==e[t]?null===e[t]?void delete i[t]:void(i[t]=e[t]):void 0}function i(e){if(null!=t.enabled&amp;&amp;!t.enabled)return!1;if(null!=t.maxMessages&amp;&amp;t.maxMessages&lt;1)return!1;try{if(e.userAgentRegex&amp;&amp;!new RegExp(e.userAgentRegex).test(navigator.userAgent))return!1}catch(i){}try{if(e.ipRegex&amp;&amp;t.clientIP&amp;&amp;!new RegExp(e.ipRegex).test(t.clientIP))return!1}catch(i){}return!0}function n(t,e){try{if(t.disallow&amp;&amp;new RegExp(t.disallow).test(e))return!1}catch(i){}return!0}function s(t){return"function"==typeof t?t instanceof RegExp?t.toString():t():t}function o(t){var e,i=s(t);switch(typeof i){case"string":return new y(i,null,i);case"number":return e=i.toString(),new y(e,null,e);case"boolean":return e=i.toString(),new y(e,null,e);case"undefined":return new y("undefined",null,"undefined");case"object":return i instanceof RegExp||i instanceof String||i instanceof Number||i instanceof Boolean?(e=i.toString(),new y(e,null,e)):new y(null,i,JSON.stringify(i));default:return new y("unknown",null,"unknown")}}function a(t){return e("enabled",t,this),e("maxMessages",t,this),e("defaultAjaxUrl",t,this),e("clientIP",t,this),e("requestId",t,this),e("defaultBeforeSend",t,this),this}function l(){return-2147483648}function u(){return 1e3}function h(){return 2e3}function c(){return 3e3}function p(){return 4e3}function d(){return 5e3}function f(){return 6e3}function g(){return 2147483647}function m(t){return 1e3&gt;=t?"trace":2e3&gt;=t?"debug":3e3&gt;=t?"info":4e3&gt;=t?"warn":5e3&gt;=t?"error":"fatal"}function _(t){return new k(t)}function v(t){return new M(t)}t.enabled,t.maxMessages,t.defaultAjaxUrl,t.clientIP,t.defaultBeforeSend,t.requestId="";var y=function(){function t(t,e,i){this.msg=t,this.meta=e,this.finalString=i}return t}();t.setOptions=a,t.getAllLevel=l,t.getTraceLevel=u,t.getDebugLevel=h,t.getInfoLevel=c,t.getWarnLevel=p,t.getErrorLevel=d,t.getFatalLevel=f,t.getOffLevel=g;var b=function(){function t(t,e){this.inner=e,this.name="JL.Exception",this.message=o(t).finalString}return t}();t.Exception=b,b.prototype=new Error;var w=function(){function t(t,e,i,n){this.l=t,this.m=e,this.n=i,this.t=n}return t}();t.LogItem=w;var x=function(){function r(e,i){this.appenderName=e,this.sendLogItems=i,this.level=t.getTraceLevel(),this.sendWithBufferLevel=2147483647,this.storeInBufferLevel=-2147483648,this.bufferSize=0,this.batchSize=1,this.buffer=[],this.batchBuffer=[]}return r.prototype.setOptions=function(t){return e("level",t,this),e("ipRegex",t,this),e("userAgentRegex",t,this),e("disallow",t,this),e("sendWithBufferLevel",t,this),e("storeInBufferLevel",t,this),e("bufferSize",t,this),e("batchSize",t,this),this.bufferSize&lt;this.buffer.length&amp;&amp;(this.buffer.length=this.bufferSize),this},r.prototype.log=function(t,e,r,s,o,a,l){var u;if(i(this)&amp;&amp;n(this,a)&amp;&amp;!(o&lt;this.storeInBufferLevel))return u=new w(o,a,l,(new Date).getTime()),o&lt;this.level?void(this.bufferSize&gt;0&amp;&amp;(this.buffer.push(u),this.buffer.length&gt;this.bufferSize&amp;&amp;this.buffer.shift())):(o&lt;this.sendWithBufferLevel?this.batchBuffer.push(u):(this.buffer.length&amp;&amp;(this.batchBuffer=this.batchBuffer.concat(this.buffer),this.buffer.length=0),this.batchBuffer.push(u)),this.batchBuffer.length&gt;=this.batchSize?void this.sendBatch():void 0)},r.prototype.sendBatch=function(){0!=this.batchBuffer.length&amp;&amp;(null!=t.maxMessages&amp;&amp;t.maxMessages&lt;1||(null!=t.maxMessages&amp;&amp;(t.maxMessages-=this.batchBuffer.length),this.sendLogItems(this.batchBuffer),this.batchBuffer.length=0))},r}();t.Appender=x;var k=function(i){function n(t){i.call(this,t,n.prototype.sendLogItemsAjax)}return r(n,i),n.prototype.setOptions=function(t){return e("url",t,this),e("beforeSend",t,this),i.prototype.setOptions.call(this,t),this},n.prototype.sendLogItemsAjax=function(e){try{var i="/jsnlog.logger";null!=t.defaultAjaxUrl&amp;&amp;(i=t.defaultAjaxUrl),this.url&amp;&amp;(i=this.url);var n=JSON.stringify({r:t.requestId,lg:e}),r=this.getXhr(i);"function"==typeof this.beforeSend?this.beforeSend(r):"function"==typeof t.defaultBeforeSend&amp;&amp;t.defaultBeforeSend(r),r.send(n)}catch(s){}},n.prototype.getXhr=function(e){var i=new XMLHttpRequest;if(!("withCredentials"in i)&amp;&amp;"undefined"!=typeof XDomainRequest){var n=new XDomainRequest;return n.open("POST",e),n}return i.open("POST",e),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("JSNLog-RequestId",t.requestId),i},n}(x);t.AjaxAppender=k;var M=function(e){function i(t){e.call(this,t,i.prototype.sendLogItemsConsole)}return r(i,e),i.prototype.clog=function(t){console.log(t)},i.prototype.cerror=function(t){console.error?console.error(t):this.clog(t)},i.prototype.cwarn=function(t){console.warn?console.warn(t):this.clog(t)},i.prototype.cinfo=function(t){console.info?console.info(t):this.clog(t)},i.prototype.cdebug=function(t){console.debug?console.debug(t):this.cinfo(t)},i.prototype.sendLogItemsConsole=function(e){try{if(!console)return;var i;for(i=0;i&lt;e.length;++i){var n=e[i],r=n.n+": "+n.m;"undefined"==typeof window&amp;&amp;(r=new Date(n.t)+" | "+r),n.l&lt;=t.getDebugLevel()?this.cdebug(r):n.l&lt;=t.getInfoLevel()?this.cinfo(r):n.l&lt;=t.getWarnLevel()?this.cwarn(r):this.cerror(r)}}catch(s){}},i}(x);t.ConsoleAppender=M;var C=function(){function t(t){this.loggerName=t,this.seenRegexes=[]}return t.prototype.setOptions=function(t){return e("level",t,this),e("userAgentRegex",t,this),e("disallow",t,this),e("ipRegex",t,this),e("appenders",t,this),e("onceOnly",t,this),this.seenRegexes=[],this},t.prototype.buildExceptionObject=function(t){var e={};return t.stack?e.stack=t.stack:e.e=t,t.message&amp;&amp;(e.message=t.message),t.name&amp;&amp;(e.name=t.name),t.data&amp;&amp;(e.data=t.data),t.inner&amp;&amp;(e.inner=this.buildExceptionObject(t.inner)),e},t.prototype.log=function(t,e,r){var a,l,u=0;if(!this.appenders)return this;if(t&gt;=this.level&amp;&amp;i(this)&amp;&amp;(r?(l=this.buildExceptionObject(r),l.logData=s(e)):l=e,a=o(l),n(this,a.finalString))){if(this.onceOnly)for(u=this.onceOnly.length-1;u&gt;=0;){if(new RegExp(this.onceOnly[u]).test(a.finalString)){if(this.seenRegexes[u])return this;this.seenRegexes[u]=!0}u--}for(a.meta=a.meta||{},a.meta.loggerName=this.loggerName,u=this.appenders.length-1;u&gt;=0;)this.appenders[u].log(m(t),a.msg,a.meta,function(){},t,a.finalString,this.loggerName),u--}return this},t.prototype.trace=function(t){return this.log(u(),t)},t.prototype.debug=function(t){return this.log(h(),t)},t.prototype.info=function(t){return this.log(c(),t)},t.prototype.warn=function(t){return this.log(p(),t)},t.prototype.error=function(t){return this.log(d(),t)},t.prototype.fatal=function(t){return this.log(f(),t)},t.prototype.fatalException=function(t,e){return this.log(f(),t,e)},t}();t.Logger=C,t.createAjaxAppender=_,t.createConsoleAppender=v;var D=new k("");"undefined"==typeof window&amp;&amp;(D=new M("")),t.__=new t.Logger(""),t.__.setOptions({level:t.getDebugLevel(),appenders:[D]})}(n||(n={}));var i;"undefined"!=typeof i&amp;&amp;(i.JL=n);var s;"function"==typeof s&amp;&amp;s.amd&amp;&amp;s("jsnlog",[],function(){return n}),"function"==typeof __jsnlog_configure&amp;&amp;__jsnlog_configure(n)},{}],20:[function(t,e,i){function n(t,e,i){if(!(this instanceof n))return new n(t,e,i);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&amp;&amp;"undefined"==typeof e){var r=t.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=t,this.y=e,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}var r=t("mgrs");n.fromMGRS=function(t){return new n(r.toPoint(t))},n.prototype.toMGRS=function(t){return r.forward([this.x,this.y],t)},e.exports=n},{mgrs:87}],21:[function(t,e,i){function n(t,e){if(!(this instanceof n))return new n(t);e=e||function(t){if(t)throw t};var i=r(t);if("object"!=typeof i)return void e(t);var o=a(i),l=n.projections.get(o.projName);l?(s(this,o),s(this,l),this.init(),e(null,this)):e(t)}var r=t("./parseCode"),s=t("./extend"),o=t("./projections"),a=t("./deriveConstants");n.projections=o,n.projections.start(),e.exports=n},{"./deriveConstants":52,"./extend":53,"./parseCode":57,"./projections":59}],22:[function(t,e,i){e.exports=function(t,e,i){var n,r,s,o=i.x,a=i.y,l=i.z||0;for(s=0;3&gt;s;s++)if(!e||2!==s||void 0!==i.z)switch(0===s?(n=o,r="x"):1===s?(n=a,r="y"):(n=l,r="z"),t.axis[s]){case"e":i[r]=n;break;case"w":i[r]=-n;break;case"n":i[r]=n;break;case"s":i[r]=-n;break;case"u":void 0!==i[r]&amp;&amp;(i.z=n);break;case"d":void 0!==i[r]&amp;&amp;(i.z=-n);break;default:return null}return i}},{}],23:[function(t,e,i){var n=Math.PI/2,r=t("./sign");e.exports=function(t){return Math.abs(t)&lt;n?t:t-r(t)*Math.PI}},{"./sign":40}],24:[function(t,e,i){var n=2*Math.PI,r=3.14159265359,s=t("./sign");e.exports=function(t){return Math.abs(t)&lt;=r?t:t-s(t)*n}},{"./sign":40}],25:[function(t,e,i){e.exports=function(t){return Math.abs(t)&gt;1&amp;&amp;(t=t&gt;1?1:-1),Math.asin(t)}},{}],26:[function(t,e,i){e.exports=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))}},{}],27:[function(t,e,i){e.exports=function(t){return.375*t*(1+.25*t*(1+.46875*t))}},{}],28:[function(t,e,i){e.exports=function(t){return.05859375*t*t*(1+.75*t)}},{}],29:[function(t,e,i){e.exports=function(t){return t*t*t*(35/3072)}},{}],30:[function(t,e,i){e.exports=function(t,e,i){var n=e*i;return t/Math.sqrt(1-n*n)}},{}],31:[function(t,e,i){e.exports=function(t,e,i,n,r){var s,o;s=t/e;for(var a=0;15&gt;a;a++)if(o=(t-(e*s-i*Math.sin(2*s)+n*Math.sin(4*s)-r*Math.sin(6*s)))/(e-2*i*Math.cos(2*s)+4*n*Math.cos(4*s)-6*r*Math.cos(6*s)),s+=o,Math.abs(o)&lt;=1e-10)return s;return NaN}},{}],32:[function(t,e,i){var n=Math.PI/2;e.exports=function(t,e){var i=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-i)&lt;1e-6)return 0&gt;e?-1*n:n;for(var r,s,o,a,l=Math.asin(.5*e),u=0;30&gt;u;u++)if(s=Math.sin(l),o=Math.cos(l),a=t*s,r=Math.pow(1-a*a,2)/(2*o)*(e/(1-t*t)-s/(1-a*a)+.5/t*Math.log((1-a)/(1+a))),l+=r,Math.abs(r)&lt;=1e-10)return l;return NaN}},{}],33:[function(t,e,i){e.exports=function(t,e,i,n,r){return t*r-e*Math.sin(2*r)+i*Math.sin(4*r)-n*Math.sin(6*r)}},{}],34:[function(t,e,i){e.exports=function(t,e,i){var n=t*e;return i/Math.sqrt(1-n*n)}},{}],35:[function(t,e,i){var n=Math.PI/2;e.exports=function(t,e){for(var i,r,s=.5*t,o=n-2*Math.atan(e),a=0;15&gt;=a;a++)if(i=t*Math.sin(o),r=n-2*Math.atan(e*Math.pow((1-i)/(1+i),s))-o,o+=r,Math.abs(r)&lt;=1e-10)return o;return-9999}},{}],36:[function(t,e,i){var n=1,r=.25,s=.046875,o=.01953125,a=.01068115234375,l=.75,u=.46875,h=.013020833333333334,c=.007120768229166667,p=.3645833333333333,d=.005696614583333333,f=.3076171875;e.exports=function(t){var e=[];e[0]=n-t*(r+t*(s+t*(o+t*a))),e[1]=t*(l-t*(s+t*(o+t*a)));var i=t*t;return e[2]=i*(u-t*(h+t*c)),i*=t,e[3]=i*(p-t*d),e[4]=i*t*f,e}},{}],37:[function(t,e,i){var n=t("./pj_mlfn"),r=1e-10,s=20;e.exports=function(t,e,i){for(var o=1/(1-e),a=t,l=s;l;--l){var u=Math.sin(a),h=1-e*u*u;if(h=(n(a,u,Math.cos(a),i)-t)*(h*Math.sqrt(h))*o,a-=h,Math.abs(h)&lt;r)return a}return a}},{"./pj_mlfn":38}],38:[function(t,e,i){e.exports=function(t,e,i,n){return i*=e,e*=e,n[0]*t-i*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}},{}],39:[function(t,e,i){e.exports=function(t,e){var i;return t&gt;1e-7?(i=t*e,(1-t*t)*(e/(1-i*i)-.5/t*Math.log((1-i)/(1+i)))):2*e}},{}],40:[function(t,e,i){e.exports=function(t){return 0&gt;t?-1:1}},{}],41:[function(t,e,i){e.exports=function(t,e){return Math.pow((1-t)/(1+t),e)}},{}],42:[function(t,e,i){e.exports=function(t){var e={x:t[0],y:t[1]};return t.length&gt;2&amp;&amp;(e.z=t[2]),t.length&gt;3&amp;&amp;(e.m=t[3]),e}},{}],43:[function(t,e,i){var n=Math.PI/2;e.exports=function(t,e,i){var r=t*i,s=.5*t;return r=Math.pow((1-r)/(1+r),s),Math.tan(.5*(n-e))/r}},{}],44:[function(t,e,i){i.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},i.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},i.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},i.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},i.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},i.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},i.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},i.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},i.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},i.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},i.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},i.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},i.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},i.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},i.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},i.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},{}],45:[function(t,e,i){i.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},i.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},i.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},i.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},i.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},i.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},i.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},i.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},i.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},i.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl &amp; S. Amer. 1969"},i.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},i.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},i.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},i.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},i.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},i.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},i.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},i.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},i.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},i.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},i.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},i.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},i.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},i.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah &amp; Sarawak)"},i.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},i.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},i.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},i.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},i.hough={a:6378270,rf:297,ellipseName:"Hough"},i.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},i.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},i.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},i.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},i.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},i.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},i.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},i.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},i.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},i.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},i.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},i.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"},i.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"},i.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},{}],46:[function(t,e,i){i.greenwich=0,i.lisbon=-9.131906111111,i.paris=2.337229166667,i.bogota=-74.080916666667,i.madrid=-3.687938888889,i.rome=12.452333333333,i.bern=7.439583333333,i.jakarta=106.807719444444,i.ferro=-17.666666666667,i.brussels=4.367975,i.stockholm=18.058277777778,i.athens=23.7163375,i.oslo=10.722916666667},{}],47:[function(t,e,i){i.ft={to_meter:.3048},i["us-ft"]={to_meter:1200/3937}},{}],48:[function(t,e,i){function n(t,e,i){var n;return Array.isArray(i)?(n=a(t,e,i),3===i.length?[n.x,n.y,n.z]:[n.x,n.y]):a(t,e,i)}function r(t){return t instanceof o?t:t.oProj?t.oProj:o(t)}function s(t,e,i){t=r(t);var s,o=!1;return"undefined"==typeof e?(e=t,t=l,o=!0):("undefined"!=typeof e.x||Array.isArray(e))&amp;&amp;(i=e,e=t,t=l,o=!0),e=r(e),i?n(t,e,i):(s={forward:function(i){return n(t,e,i)},inverse:function(i){return n(e,t,i)}},o&amp;&amp;(s.oProj=e),s)}var o=t("./Proj"),a=t("./transform"),l=o("WGS84");e.exports=s},{"./Proj":21,"./transform":85}],49:[function(t,e,i){var n=Math.PI/2,r=1,s=2,o=3,a=4,l=5,u=484813681109536e-20,h=1.0026,c=.3826834323650898,p=function(t){if(!(this instanceof p))return new p(t);if(this.datum_type=a,t){if(t.datumCode&amp;&amp;"none"===t.datumCode&amp;&amp;(this.datum_type=l),t.datum_params){for(var e=0;e&lt;t.datum_params.length;e++)t.datum_params[e]=parseFloat(t.datum_params[e]);(0!==t.datum_params[0]||0!==t.datum_params[1]||0!==t.datum_params[2])&amp;&amp;(this.datum_type=r),t.datum_params.length&gt;3&amp;&amp;(0!==t.datum_params[3]||0!==t.datum_params[4]||0!==t.datum_params[5]||0!==t.datum_params[6])&amp;&amp;(this.datum_type=s,t.datum_params[3]*=u,t.datum_params[4]*=u,t.datum_params[5]*=u,t.datum_params[6]=t.datum_params[6]/1e6+1)}this.datum_type=t.grids?o:this.datum_type,this.a=t.a,this.b=t.b,this.es=t.es,this.ep2=t.ep2,this.datum_params=t.datum_params,this.datum_type===o&amp;&amp;(this.grids=t.grids)}};p.prototype={compare_datums:function(t){return this.datum_type!==t.datum_type?!1:this.a!==t.a||Math.abs(this.es-t.es)&gt;5e-11?!1:this.datum_type===r?this.datum_params[0]===t.datum_params[0]&amp;&amp;this.datum_params[1]===t.datum_params[1]&amp;&amp;this.datum_params[2]===t.datum_params[2]:this.datum_type===s?this.datum_params[0]===t.datum_params[0]&amp;&amp;this.datum_params[1]===t.datum_params[1]&amp;&amp;this.datum_params[2]===t.datum_params[2]&amp;&amp;this.datum_params[3]===t.datum_params[3]&amp;&amp;this.datum_params[4]===t.datum_params[4]&amp;&amp;this.datum_params[5]===t.datum_params[5]&amp;&amp;this.datum_params[6]===t.datum_params[6]:this.datum_type===o||t.datum_type===o?this.nadgrids===t.nadgrids:!0},geodetic_to_geocentric:function(t){var e,i,r,s,o,a,l,u=t.x,h=t.y,c=t.z?t.z:0,p=0;if(-n&gt;h&amp;&amp;h&gt;-1.001*n)h=-n;else if(h&gt;n&amp;&amp;1.001*n&gt;h)h=n;else if(-n&gt;h||h&gt;n)return null;return u&gt;Math.PI&amp;&amp;(u-=2*Math.PI),o=Math.sin(h),l=Math.cos(h),a=o*o,s=this.a/Math.sqrt(1-this.es*a),e=(s+c)*l*Math.cos(u),i=(s+c)*l*Math.sin(u),r=(s*(1-this.es)+c)*o,t.x=e,t.y=i,t.z=r,p},geocentric_to_geodetic:function(t){var e,i,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y=1e-12,b=y*y,w=30,x=t.x,k=t.y,M=t.z?t.z:0;if(f=!1,e=Math.sqrt(x*x+k*k),i=Math.sqrt(x*x+k*k+M*M),e/this.a&lt;y){if(f=!0,m=0,i/this.a&lt;y)return _=n,void(v=-this.b)}else m=Math.atan2(k,x);r=M/i,s=e/i,o=1/Math.sqrt(1-this.es*(2-this.es)*s*s),u=s*(1-this.es)*o,h=r*o,g=0;do g++,l=this.a/Math.sqrt(1-this.es*h*h),v=e*u+M*h-l*(1-this.es*h*h),a=this.es*l/(l+v),o=1/Math.sqrt(1-a*(2-a)*s*s),c=s*(1-a)*o,p=r*o,d=p*u-c*h,u=c,h=p;while(d*d&gt;b&amp;&amp;w&gt;g);return _=Math.atan(p/Math.abs(c)),t.x=m,t.y=_,t.z=v,t},geocentric_to_geodetic_noniter:function(t){var e,i,r,s,o,a,l,u,p,d,f,g,m,_,v,y,b,w=t.x,x=t.y,k=t.z?t.z:0;if(w=parseFloat(w),x=parseFloat(x),k=parseFloat(k),b=!1,0!==w)e=Math.atan2(x,w);else if(x&gt;0)e=n;else if(0&gt;x)e=-n;else if(b=!0,
        e=0,k&gt;0)i=n;else{if(!(0&gt;k))return i=n,void(r=-this.b);i=-n}return o=w*w+x*x,s=Math.sqrt(o),a=k*h,u=Math.sqrt(a*a+o),d=a/u,g=s/u,f=d*d*d,l=k+this.b*this.ep2*f,y=s-this.a*this.es*g*g*g,p=Math.sqrt(l*l+y*y),m=l/p,_=y/p,v=this.a/Math.sqrt(1-this.es*m*m),r=_&gt;=c?s/_-v:-c&gt;=_?s/-_-v:k/m+v*(this.es-1),b===!1&amp;&amp;(i=Math.atan(m/_)),t.x=e,t.y=i,t.z=r,t},geocentric_to_wgs84:function(t){if(this.datum_type===r)t.x+=this.datum_params[0],t.y+=this.datum_params[1],t.z+=this.datum_params[2];else if(this.datum_type===s){var e=this.datum_params[0],i=this.datum_params[1],n=this.datum_params[2],o=this.datum_params[3],a=this.datum_params[4],l=this.datum_params[5],u=this.datum_params[6],h=u*(t.x-l*t.y+a*t.z)+e,c=u*(l*t.x+t.y-o*t.z)+i,p=u*(-a*t.x+o*t.y+t.z)+n;t.x=h,t.y=c,t.z=p}},geocentric_from_wgs84:function(t){if(this.datum_type===r)t.x-=this.datum_params[0],t.y-=this.datum_params[1],t.z-=this.datum_params[2];else if(this.datum_type===s){var e=this.datum_params[0],i=this.datum_params[1],n=this.datum_params[2],o=this.datum_params[3],a=this.datum_params[4],l=this.datum_params[5],u=this.datum_params[6],h=(t.x-e)/u,c=(t.y-i)/u,p=(t.z-n)/u;t.x=h+l*c-a*p,t.y=-l*h+c+o*p,t.z=a*h-o*c+p}}},e.exports=p},{}],50:[function(t,e,i){var n=1,r=2,s=3,o=5,a=6378137,l=.006694379990141316;e.exports=function(t,e,i){function u(t){return t===n||t===r}var h,c,p;if(t.compare_datums(e))return i;if(t.datum_type===o||e.datum_type===o)return i;var d=t.a,f=t.es,g=e.a,m=e.es,_=t.datum_type;if(_===s)if(0===this.apply_gridshift(t,0,i))t.a=a,t.es=l;else{if(!t.datum_params)return t.a=d,t.es=t.es,i;for(h=1,c=0,p=t.datum_params.length;p&gt;c;c++)h*=t.datum_params[c];if(0===h)return t.a=d,t.es=t.es,i;_=t.datum_params.length&gt;3?r:n}return e.datum_type===s&amp;&amp;(e.a=a,e.es=l),(t.es!==e.es||t.a!==e.a||u(_)||u(e.datum_type))&amp;&amp;(t.geodetic_to_geocentric(i),u(t.datum_type)&amp;&amp;t.geocentric_to_wgs84(i),u(e.datum_type)&amp;&amp;e.geocentric_from_wgs84(i),e.geocentric_to_geodetic(i)),e.datum_type===s&amp;&amp;this.apply_gridshift(e,1,i),t.a=d,t.es=f,e.a=g,e.es=m,i}},{}],51:[function(t,e,i){function n(t){var e=this;if(2===arguments.length){var i=arguments[1];"string"==typeof i?"+"===i.charAt(0)?n[t]=s(arguments[1]):n[t]=o(arguments[1]):n[t]=i}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?n.apply(e,t):n(t)});if("string"==typeof t){if(t in n)return n[t]}else"EPSG"in t?n["EPSG:"+t.EPSG]=t:"ESRI"in t?n["ESRI:"+t.ESRI]=t:"IAU2000"in t?n["IAU2000:"+t.IAU2000]=t:console.log(t);return}}var r=t("./global"),s=t("./projString"),o=t("./wkt");r(n),e.exports=n},{"./global":54,"./projString":58,"./wkt":86}],52:[function(t,e,i){var n=t("./constants/Datum"),r=t("./constants/Ellipsoid"),s=t("./extend"),o=t("./datum"),a=1e-10,l=.16666666666666666,u=.04722222222222222,h=.022156084656084655;e.exports=function(t){if(t.datumCode&amp;&amp;"none"!==t.datumCode){var e=n[t.datumCode];e&amp;&amp;(t.datum_params=e.towgs84?e.towgs84.split(","):null,t.ellps=e.ellipse,t.datumName=e.datumName?e.datumName:t.datumCode)}if(!t.a){var i=r[t.ellps]?r[t.ellps]:r.WGS84;s(t,i)}return t.rf&amp;&amp;!t.b&amp;&amp;(t.b=(1-1/t.rf)*t.a),(0===t.rf||Math.abs(t.a-t.b)&lt;a)&amp;&amp;(t.sphere=!0,t.b=t.a),t.a2=t.a*t.a,t.b2=t.b*t.b,t.es=(t.a2-t.b2)/t.a2,t.e=Math.sqrt(t.es),t.R_A&amp;&amp;(t.a*=1-t.es*(l+t.es*(u+t.es*h)),t.a2=t.a*t.a,t.b2=t.b*t.b,t.es=0),t.ep2=(t.a2-t.b2)/t.b2,t.k0||(t.k0=1),t.axis||(t.axis="enu"),t.datum||(t.datum=o(t)),t}},{"./constants/Datum":44,"./constants/Ellipsoid":45,"./datum":49,"./extend":53}],53:[function(t,e,i){e.exports=function(t,e){t=t||{};var i,n;if(!e)return t;for(n in e)i=e[n],void 0!==i&amp;&amp;(t[n]=i);return t}},{}],54:[function(t,e,i){e.exports=function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}},{}],55:[function(t,e,i){var n=[t("./projections/tmerc"),t("./projections/utm"),t("./projections/sterea"),t("./projections/stere"),t("./projections/somerc"),t("./projections/omerc"),t("./projections/lcc"),t("./projections/krovak"),t("./projections/cass"),t("./projections/laea"),t("./projections/aea"),t("./projections/gnom"),t("./projections/cea"),t("./projections/eqc"),t("./projections/poly"),t("./projections/nzmg"),t("./projections/mill"),t("./projections/sinu"),t("./projections/moll"),t("./projections/eqdc"),t("./projections/vandg"),t("./projections/aeqd")];e.exports=function(t){n.forEach(function(e){t.Proj.projections.add(e)})}},{"./projections/aea":60,"./projections/aeqd":61,"./projections/cass":62,"./projections/cea":63,"./projections/eqc":64,"./projections/eqdc":65,"./projections/gnom":67,"./projections/krovak":68,"./projections/laea":69,"./projections/lcc":70,"./projections/mill":73,"./projections/moll":74,"./projections/nzmg":75,"./projections/omerc":76,"./projections/poly":77,"./projections/sinu":78,"./projections/somerc":79,"./projections/stere":80,"./projections/sterea":81,"./projections/tmerc":82,"./projections/utm":83,"./projections/vandg":84}],56:[function(t,e,i){var n=t("./core");n.defaultDatum="WGS84",n.Proj=t("./Proj"),n.WGS84=new n.Proj("WGS84"),n.Point=t("./Point"),n.toPoint=t("./common/toPoint"),n.defs=t("./defs"),n.transform=t("./transform"),n.mgrs=t("mgrs"),n.version=t("../package.json").version,t("./includedProjections")(n),e.exports=n},{"../package.json":88,"./Point":20,"./Proj":21,"./common/toPoint":42,"./core":48,"./defs":51,"./includedProjections":55,"./transform":85,mgrs:87}],57:[function(t,e,i){function n(t){return"string"==typeof t}function r(t){return t in l}function s(t){var e=["GEOGCS","GEOCCS","PROJCS","LOCAL_CS"];return e.reduce(function(e,i){return e+1+t.indexOf(i)},0)}function o(t){return"+"===t[0]}function a(t){return n(t)?r(t)?l[t]:s(t)?u(t):o(t)?h(t):void 0:t}var l=t("./defs"),u=t("./wkt"),h=t("./projString");e.exports=a},{"./defs":51,"./projString":58,"./wkt":86}],58:[function(t,e,i){var n=.017453292519943295,r=t("./constants/PrimeMeridian"),s=t("./constants/units");e.exports=function(t){var e={},i={};t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).forEach(function(t){var e=t.split("=");e.push(!0),i[e[0].toLowerCase()]=e[1]});var o,a,l,u={proj:"projName",datum:"datumCode",rf:function(t){e.rf=parseFloat(t)},lat_0:function(t){e.lat0=t*n},lat_1:function(t){e.lat1=t*n},lat_2:function(t){e.lat2=t*n},lat_ts:function(t){e.lat_ts=t*n},lon_0:function(t){e.long0=t*n},lon_1:function(t){e.long1=t*n},lon_2:function(t){e.long2=t*n},alpha:function(t){e.alpha=parseFloat(t)*n},lonc:function(t){e.longc=t*n},x_0:function(t){e.x0=parseFloat(t)},y_0:function(t){e.y0=parseFloat(t)},k_0:function(t){e.k0=parseFloat(t)},k:function(t){e.k0=parseFloat(t)},a:function(t){e.a=parseFloat(t)},b:function(t){e.b=parseFloat(t)},r_a:function(){e.R_A=!0},zone:function(t){e.zone=parseInt(t,10)},south:function(){e.utmSouth=!0},towgs84:function(t){e.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){e.to_meter=parseFloat(t)},units:function(t){e.units=t,s[t]&amp;&amp;(e.to_meter=s[t].to_meter)},from_greenwich:function(t){e.from_greenwich=t*n},pm:function(t){e.from_greenwich=(r[t]?r[t]:parseFloat(t))*n},nadgrids:function(t){"@null"===t?e.datumCode="none":e.nadgrids=t},axis:function(t){var i="ewnsud";3===t.length&amp;&amp;-1!==i.indexOf(t.substr(0,1))&amp;&amp;-1!==i.indexOf(t.substr(1,1))&amp;&amp;-1!==i.indexOf(t.substr(2,1))&amp;&amp;(e.axis=t)}};for(o in i)a=i[o],o in u?(l=u[o],"function"==typeof l?l(a):e[l]=a):e[o]=a;return"string"==typeof e.datumCode&amp;&amp;"WGS84"!==e.datumCode&amp;&amp;(e.datumCode=e.datumCode.toLowerCase()),e}},{"./constants/PrimeMeridian":46,"./constants/units":47}],59:[function(t,e,i){function n(t,e){var i=o.length;return t.names?(o[i]=t,t.names.forEach(function(t){s[t.toLowerCase()]=i}),this):(console.log(e),!0)}var r=[t("./projections/merc"),t("./projections/longlat")],s={},o=[];i.add=n,i.get=function(t){if(!t)return!1;var e=t.toLowerCase();return"undefined"!=typeof s[e]&amp;&amp;o[s[e]]?o[s[e]]:void 0},i.start=function(){r.forEach(n)}},{"./projections/longlat":71,"./projections/merc":72}],60:[function(t,e,i){var n=1e-10,r=t("../common/msfnz"),s=t("../common/qsfnz"),o=t("../common/adjust_lon"),a=t("../common/asinz");i.init=function(){Math.abs(this.lat1+this.lat2)&lt;n||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=r(this.e3,this.sin_po,this.cos_po),this.qs1=s(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=r(this.e3,this.sin_po,this.cos_po),this.qs2=s(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=s(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)&gt;n?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},i.forward=function(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var n=s(this.e3,this.sin_phi,this.cos_phi),r=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*o(e-this.long0),l=r*Math.sin(a)+this.x0,u=this.rh-r*Math.cos(a)+this.y0;return t.x=l,t.y=u,t},i.inverse=function(t){var e,i,n,r,s,a;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0&gt;=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),n=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),n=-1),r=0,0!==e&amp;&amp;(r=Math.atan2(n*t.x,n*t.y)),n=e*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(i=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,i)),s=o(r/this.ns0+this.long0),t.x=s,t.y=a,t},i.phi1z=function(t,e){var i,r,s,o,l,u=a(.5*e);if(n&gt;t)return u;for(var h=t*t,c=1;25&gt;=c;c++)if(i=Math.sin(u),r=Math.cos(u),s=t*i,o=1-s*s,l=.5*o*o/r*(e/(1-h)-i/o+.5/t*Math.log((1-s)/(1+s))),u+=l,Math.abs(l)&lt;=1e-7)return u;return null},i.names=["Albers_Conic_Equal_Area","Albers","aea"]},{"../common/adjust_lon":24,"../common/asinz":25,"../common/msfnz":34,"../common/qsfnz":39}],61:[function(t,e,i){var n=t("../common/adjust_lon"),r=Math.PI/2,s=1e-10,o=t("../common/mlfn"),a=t("../common/e0fn"),l=t("../common/e1fn"),u=t("../common/e2fn"),h=t("../common/e3fn"),c=t("../common/gN"),p=t("../common/asinz"),d=t("../common/imlfn");i.init=function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},i.forward=function(t){var e,i,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N=t.x,R=t.y,z=Math.sin(t.y),j=Math.cos(t.y),O=n(N-this.long0);return this.sphere?Math.abs(this.sin_p12-1)&lt;=s?(t.x=this.x0+this.a*(r-R)*Math.sin(O),t.y=this.y0-this.a*(r-R)*Math.cos(O),t):Math.abs(this.sin_p12+1)&lt;=s?(t.x=this.x0+this.a*(r+R)*Math.sin(O),t.y=this.y0+this.a*(r+R)*Math.cos(O),t):(T=this.sin_p12*z+this.cos_p12*j*Math.cos(O),C=Math.acos(T),D=C/Math.sin(C),t.x=this.x0+this.a*D*j*Math.sin(O),t.y=this.y0+this.a*D*(this.cos_p12*z-this.sin_p12*j*Math.cos(O)),t):(e=a(this.es),i=l(this.es),p=u(this.es),d=h(this.es),Math.abs(this.sin_p12-1)&lt;=s?(f=this.a*o(e,i,p,d,r),g=this.a*o(e,i,p,d,R),t.x=this.x0+(f-g)*Math.sin(O),t.y=this.y0-(f-g)*Math.cos(O),t):Math.abs(this.sin_p12+1)&lt;=s?(f=this.a*o(e,i,p,d,r),g=this.a*o(e,i,p,d,R),t.x=this.x0+(f+g)*Math.sin(O),t.y=this.y0+(f+g)*Math.cos(O),t):(m=z/j,_=c(this.a,this.e,this.sin_p12),v=c(this.a,this.e,z),y=Math.atan((1-this.es)*m+this.es*_*this.sin_p12/(v*j)),b=Math.atan2(Math.sin(O),this.cos_p12*Math.tan(y)-this.sin_p12*Math.cos(O)),S=0===b?Math.asin(this.cos_p12*Math.sin(y)-this.sin_p12*Math.cos(y)):Math.abs(Math.abs(b)-Math.PI)&lt;=s?-Math.asin(this.cos_p12*Math.sin(y)-this.sin_p12*Math.cos(y)):Math.asin(Math.sin(O)*Math.cos(y)/Math.sin(b)),w=this.e*this.sin_p12/Math.sqrt(1-this.es),x=this.e*this.cos_p12*Math.cos(b)/Math.sqrt(1-this.es),k=w*x,M=x*x,A=S*S,P=A*S,E=P*S,I=E*S,C=_*S*(1-A*M*(1-M)/6+P/8*k*(1-2*M)+E/120*(M*(4-7*M)-3*w*w*(1-7*M))-I/48*k),t.x=this.x0+C*Math.sin(b),t.y=this.y0+C*Math.cos(b),t))},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,i,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R;if(this.sphere){if(e=Math.sqrt(t.x*t.x+t.y*t.y),e&gt;2*r*this.a)return;return i=e/this.a,f=Math.sin(i),g=Math.cos(i),m=this.long0,Math.abs(e)&lt;=s?_=this.lat0:(_=p(g*this.sin_p12+t.y*f*this.cos_p12/e),v=Math.abs(this.lat0)-r,m=n(Math.abs(v)&lt;=s?this.lat0&gt;=0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y):this.long0+Math.atan2(t.x*f,e*this.cos_p12*g-t.y*this.sin_p12*f))),t.x=m,t.y=_,t}return y=a(this.es),b=l(this.es),w=u(this.es),x=h(this.es),Math.abs(this.sin_p12-1)&lt;=s?(k=this.a*o(y,b,w,x,r),e=Math.sqrt(t.x*t.x+t.y*t.y),M=k-e,_=d(M/this.a,y,b,w,x),m=n(this.long0+Math.atan2(t.x,-1*t.y)),t.x=m,t.y=_,t):Math.abs(this.sin_p12+1)&lt;=s?(k=this.a*o(y,b,w,x,r),e=Math.sqrt(t.x*t.x+t.y*t.y),M=e-k,_=d(M/this.a,y,b,w,x),m=n(this.long0+Math.atan2(t.x,t.y)),t.x=m,t.y=_,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),T=Math.atan2(t.x,t.y),C=c(this.a,this.e,this.sin_p12),S=Math.cos(T),A=this.e*this.cos_p12*S,P=-A*A/(1-this.es),E=3*this.es*(1-P)*this.sin_p12*this.cos_p12*S/(1-this.es),I=e/C,N=I-P*(1+P)*Math.pow(I,3)/6-E*(1+3*P)*Math.pow(I,4)/24,R=1-P*N*N/2-I*N*N*N/6,D=Math.asin(this.sin_p12*Math.cos(N)+this.cos_p12*Math.sin(N)*S),m=n(this.long0+Math.asin(Math.sin(T)*Math.sin(N)/Math.cos(D))),_=Math.atan((1-this.es*R*this.sin_p12/Math.sin(D))*Math.tan(D)/(1-this.es)),t.x=m,t.y=_,t)},i.names=["Azimuthal_Equidistant","aeqd"]},{"../common/adjust_lon":24,"../common/asinz":25,"../common/e0fn":26,"../common/e1fn":27,"../common/e2fn":28,"../common/e3fn":29,"../common/gN":30,"../common/imlfn":31,"../common/mlfn":33}],62:[function(t,e,i){var n=t("../common/mlfn"),r=t("../common/e0fn"),s=t("../common/e1fn"),o=t("../common/e2fn"),a=t("../common/e3fn"),l=t("../common/gN"),u=t("../common/adjust_lon"),h=t("../common/adjust_lat"),c=t("../common/imlfn"),p=Math.PI/2,d=1e-10;i.init=function(){this.sphere||(this.e0=r(this.es),this.e1=s(this.es),this.e2=o(this.es),this.e3=a(this.es),this.ml0=this.a*n(this.e0,this.e1,this.e2,this.e3,this.lat0))},i.forward=function(t){var e,i,r=t.x,s=t.y;if(r=u(r-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(s)*Math.sin(r)),i=this.a*(Math.atan2(Math.tan(s),Math.cos(r))-this.lat0);else{var o=Math.sin(s),a=Math.cos(s),h=l(this.a,this.e,o),c=Math.tan(s)*Math.tan(s),p=r*Math.cos(s),d=p*p,f=this.es*a*a/(1-this.es),g=this.a*n(this.e0,this.e1,this.e2,this.e3,s);e=h*p*(1-d*c*(1/6-(8-c+8*f)*d/120)),i=g-this.ml0+h*o/a*d*(.5+(5-c+6*f)*d/24)}return t.x=e+this.x0,t.y=i+this.y0,t},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,i,n=t.x/this.a,r=t.y/this.a;if(this.sphere){var s=r+this.lat0;e=Math.asin(Math.sin(s)*Math.cos(n)),i=Math.atan2(Math.tan(n),Math.cos(s))}else{var o=this.ml0/this.a+r,a=c(o,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(a)-p)&lt;=d)return t.x=this.long0,t.y=p,0&gt;r&amp;&amp;(t.y*=-1),t;var f=l(this.a,this.e,Math.sin(a)),g=f*f*f/this.a/this.a*(1-this.es),m=Math.pow(Math.tan(a),2),_=n*this.a/f,v=_*_;e=a-f*Math.tan(a)/g*_*_*(.5-(1+3*m)*_*_/24),i=_*(1-v*(m/3+(1+3*m)*m*v/15))/Math.cos(a)}return t.x=u(i+this.long0),t.y=h(e),t},i.names=["Cassini","Cassini_Soldner","cass"]},{"../common/adjust_lat":23,"../common/adjust_lon":24,"../common/e0fn":26,"../common/e1fn":27,"../common/e2fn":28,"../common/e3fn":29,"../common/gN":30,"../common/imlfn":31,"../common/mlfn":33}],63:[function(t,e,i){var n=t("../common/adjust_lon"),r=t("../common/qsfnz"),s=t("../common/msfnz"),o=t("../common/iqsfnz");i.init=function(){this.sphere||(this.k0=s(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},i.forward=function(t){var e,i,s=t.x,o=t.y,a=n(s-this.long0);if(this.sphere)e=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var l=r(this.e,Math.sin(o));e=this.x0+this.a*this.k0*a,i=this.y0+this.a*l*.5/this.k0}return t.x=e,t.y=i,t},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,i;return this.sphere?(e=n(this.long0+t.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=o(this.e,2*t.y*this.k0/this.a),e=n(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=i,t},i.names=["cea"]},{"../common/adjust_lon":24,"../common/iqsfnz":32,"../common/msfnz":34,"../common/qsfnz":39}],64:[function(t,e,i){var n=t("../common/adjust_lon"),r=t("../common/adjust_lat");i.init=function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},i.forward=function(t){var e=t.x,i=t.y,s=n(e-this.long0),o=r(i-this.lat0);return t.x=this.x0+this.a*s*this.rc,t.y=this.y0+this.a*o,t},i.inverse=function(t){var e=t.x,i=t.y;return t.x=n(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=r(this.lat0+(i-this.y0)/this.a),t},i.names=["Equirectangular","Equidistant_Cylindrical","eqc"]},{"../common/adjust_lat":23,"../common/adjust_lon":24}],65:[function(t,e,i){var n=t("../common/e0fn"),r=t("../common/e1fn"),s=t("../common/e2fn"),o=t("../common/e3fn"),a=t("../common/msfnz"),l=t("../common/mlfn"),u=t("../common/adjust_lon"),h=t("../common/adjust_lat"),c=t("../common/imlfn"),p=1e-10;i.init=function(){Math.abs(this.lat1+this.lat2)&lt;p||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=n(this.es),this.e1=r(this.es),this.e2=s(this.es),this.e3=o(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=a(this.e,this.sinphi,this.cosphi),this.ml1=l(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)&lt;p?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=a(this.e,this.sinphi,this.cosphi),this.ml2=l(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=l(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},i.forward=function(t){var e,i=t.x,n=t.y;if(this.sphere)e=this.a*(this.g-n);else{var r=l(this.e0,this.e1,this.e2,this.e3,n);e=this.a*(this.g-r)}var s=this.ns*u(i-this.long0),o=this.x0+e*Math.sin(s),a=this.y0+this.rh-e*Math.cos(s);return t.x=o,t.y=a,t},i.inverse=function(t){t.x-=this.x0,t.y=this.rh-t.y+this.y0;var e,i,n,r;this.ns&gt;=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var s=0;if(0!==i&amp;&amp;(s=Math.atan2(e*t.x,e*t.y)),this.sphere)return r=u(this.long0+s/this.ns),n=h(this.g-i/this.a),t.x=r,t.y=n,t;var o=this.g-i/this.a;return n=c(o,this.e0,this.e1,this.e2,this.e3),r=u(this.long0+s/this.ns),t.x=r,t.y=n,t},i.names=["Equidistant_Conic","eqdc"]},{"../common/adjust_lat":23,"../common/adjust_lon":24,"../common/e0fn":26,"../common/e1fn":27,"../common/e2fn":28,"../common/e3fn":29,"../common/imlfn":31,"../common/mlfn":33,"../common/msfnz":34}],66:[function(t,e,i){var n=Math.PI/4,r=t("../common/srat"),s=Math.PI/2,o=20;i.init=function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+n)/(Math.pow(Math.tan(.5*this.lat0+n),this.C)*r(this.e*t,this.ratexp))},i.forward=function(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+n),this.C)*r(this.e*Math.sin(i),this.ratexp))-s,t.x=this.C*e,t},i.inverse=function(t){for(var e=1e-14,i=t.x/this.C,a=t.y,l=Math.pow(Math.tan(.5*a+n)/this.K,1/this.C),u=o;u&gt;0&amp;&amp;(a=2*Math.atan(l*r(this.e*Math.sin(t.y),-.5*this.e))-s,!(Math.abs(a-t.y)&lt;e));--u)t.y=a;return u?(t.x=i,t.y=a,t):null},i.names=["gauss"]},{"../common/srat":41}],67:[function(t,e,i){var n=t("../common/adjust_lon"),r=1e-10,s=t("../common/asinz");i.init=function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},i.forward=function(t){var e,i,s,o,a,l,u,h,c=t.x,p=t.y;return s=n(c-this.long0),e=Math.sin(p),i=Math.cos(p),o=Math.cos(s),l=this.sin_p14*e+this.cos_p14*i*o,a=1,l&gt;0||Math.abs(l)&lt;=r?(u=this.x0+this.a*a*i*Math.sin(s)/l,h=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*i*o)/l):(u=this.x0+this.infinity_dist*i*Math.sin(s),h=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*o)),t.x=u,t.y=h,t},i.inverse=function(t){var e,i,r,o,a,l;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(o=Math.atan2(e,this.rc),i=Math.sin(o),r=Math.cos(o),l=s(r*this.sin_p14+t.y*i*this.cos_p14/e),a=Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i),a=n(this.long0+a)):(l=this.phic0,a=0),t.x=a,t.y=l,t},i.names=["gnom"]},{"../common/adjust_lon":24,"../common/asinz":25}],68:[function(t,e,i){var n=t("../common/adjust_lon");i.init=function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},i.forward=function(t){var e,i,r,s,o,a,l,u=t.x,h=t.y,c=n(u-this.long0);return e=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/e)-this.s45),r=-c*this.alfa,s=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),o=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(s)),a=this.n*o,l=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(s/2+this.s45),this.n),t.y=l*Math.cos(a)/1,t.x=l*Math.sin(a)/1,this.czech||(t.y*=-1,t.x*=-1),t},i.inverse=function(t){var e,i,n,r,s,o,a,l,u=t.x;t.x=t.y,t.y=u,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),s=Math.atan2(t.y,t.x),r=s/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),i=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(e)),t.x=this.long0-i/this.alfa,a=e,l=0;var h=0;do t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)&lt;1e-10&amp;&amp;(l=1),a=t.y,h+=1;while(0===l&amp;&amp;15&gt;h);return h&gt;=15?null:t},i.names=["Krovak","krovak"]},{"../common/adjust_lon":24}],69:[function(t,e,i){var n=Math.PI/2,r=Math.PI/4,s=1e-10,o=t("../common/qsfnz"),a=t("../common/adjust_lon");i.S_POLE=1,i.N_POLE=2,i.EQUIT=3,i.OBLIQ=4,i.init=function(){var t=Math.abs(this.lat0);if(Math.abs(t-n)&lt;s?this.mode=this.lat0&lt;0?this.S_POLE:this.N_POLE:Math.abs(t)&lt;s?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es&gt;0){var e;switch(this.qp=o(this.e,1),this.mmf=.5/(1-this.es),this.apa=this.authset(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=o(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}}else this.mode===this.OBLIQ&amp;&amp;(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},i.forward=function(t){var e,i,l,u,h,c,p,d,f,g,m=t.x,_=t.y;if(m=a(m-this.long0),this.sphere){if(h=Math.sin(_),g=Math.cos(_),l=Math.cos(m),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(i=this.mode===this.EQUIT?1+g*l:1+this.sinph0*h+this.cosph0*g*l,s&gt;=i)return null;i=Math.sqrt(2/i),e=i*g*Math.sin(m),i*=this.mode===this.EQUIT?h:this.cosph0*h-this.sinph0*g*l}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&amp;&amp;(l=-l),Math.abs(_+this.phi0)&lt;s)return null;i=r-.5*_,i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)),e=i*Math.sin(m),i*=l}}else{switch(p=0,d=0,f=0,l=Math.cos(m),u=Math.sin(m),h=Math.sin(_),c=o(this.e,h),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&amp;&amp;(p=c/this.qp,d=Math.sqrt(1-p*p)),this.mode){case this.OBLIQ:f=1+this.sinb1*p+this.cosb1*d*l;break;case this.EQUIT:f=1+d*l;break;case this.N_POLE:f=n+_,c=this.qp-c;break;case this.S_POLE:f=_-n,c=this.qp+c}if(Math.abs(f)&lt;s)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:f=Math.sqrt(2/f),i=this.mode===this.OBLIQ?this.ymf*f*(this.cosb1*p-this.sinb1*d*l):(f=Math.sqrt(2/(1+d*l)))*p*this.ymf,e=this.xmf*f*d*u;break;case this.N_POLE:case this.S_POLE:c&gt;=0?(e=(f=Math.sqrt(c))*u,i=l*(this.mode===this.S_POLE?f:-f)):e=i=0}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,i,r,o,l,u,h,c=t.x/this.a,p=t.y/this.a;if(this.sphere){var d,f=0,g=0;if(d=Math.sqrt(c*c+p*p),i=.5*d,i&gt;1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&amp;&amp;(g=Math.sin(i),f=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(d)&lt;=s?0:Math.asin(p*g/d),c*=g,p=f*d;break;case this.OBLIQ:i=Math.abs(d)&lt;=s?this.phi0:Math.asin(f*this.sinph0+p*g*this.cosph0/d),c*=g*this.cosph0,p=(f-Math.sin(i)*this.sinph0)*d;break;case this.N_POLE:p=-p,i=n-i;break;case this.S_POLE:i-=n}e=0!==p||this.mode!==this.EQUIT&amp;&amp;this.mode!==this.OBLIQ?Math.atan2(c,p):0}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(c/=this.dd,p*=this.dd,u=Math.sqrt(c*c+p*p),s&gt;u)return t.x=0,t.y=this.phi0,t;o=2*Math.asin(.5*u/this.rq),r=Math.cos(o),c*=o=Math.sin(o),this.mode===this.OBLIQ?(h=r*this.sinb1+p*o*this.cosb1/u,l=this.qp*h,p=u*this.cosb1*r-p*this.sinb1*o):(h=p*o/u,l=this.qp*h,p=u*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&amp;&amp;(p=-p),l=c*c+p*p,!l)return t.x=0,t.y=this.phi0,t;h=1-l/this.qp,this.mode===this.S_POLE&amp;&amp;(h=-h)}e=Math.atan2(c,p),i=this.authlat(Math.asin(h),this.apa)}return t.x=a(this.long0+e),t.y=i,t},i.P00=.3333333333333333,i.P01=.17222222222222222,i.P02=.10257936507936508,i.P10=.06388888888888888,i.P11=.0664021164021164,i.P20=.016415012942191543,i.authset=function(t){var e,i=[];return i[0]=t*this.P00,e=t*t,i[0]+=e*this.P01,i[1]=e*this.P10,e*=t,i[0]+=e*this.P02,i[1]+=e*this.P11,i[2]=e*this.P20,i},i.authlat=function(t,e){var i=t+t;return t+e[0]*Math.sin(i)+e[1]*Math.sin(i+i)+e[2]*Math.sin(i+i+i)},i.names=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"]},{"../common/adjust_lon":24,"../common/qsfnz":39}],70:[function(t,e,i){var n=1e-10,r=t("../common/msfnz"),s=t("../common/tsfnz"),o=Math.PI/2,a=t("../common/sign"),l=t("../common/adjust_lon"),u=t("../common/phi2z");i.init=function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)&lt;n)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),i=Math.cos(this.lat1),o=r(this.e,e,i),a=s(this.e,this.lat1,e),l=Math.sin(this.lat2),u=Math.cos(this.lat2),h=r(this.e,l,u),c=s(this.e,this.lat2,l),p=s(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)&gt;n?this.ns=Math.log(o/h)/Math.log(a/c):this.ns=e,isNaN(this.ns)&amp;&amp;(this.ns=e),this.f0=o/(this.ns*Math.pow(a,this.ns)),this.rh=this.a*this.f0*Math.pow(p,this.ns),this.title||(this.title="Lambert Conformal Conic")}},i.forward=function(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)&lt;=n&amp;&amp;(i=a(i)*(o-2*n));var r,u,h=Math.abs(Math.abs(i)-o);if(h&gt;n)r=s(this.e,i,Math.sin(i)),u=this.a*this.f0*Math.pow(r,this.ns);else{if(h=i*this.ns,0&gt;=h)return null;u=0}var c=this.ns*l(e-this.long0);return t.x=this.k0*(u*Math.sin(c))+this.x0,t.y=this.k0*(this.rh-u*Math.cos(c))+this.y0,t},i.inverse=function(t){var e,i,n,r,s,a=(t.x-this.x0)/this.k0,h=this.rh-(t.y-this.y0)/this.k0;this.ns&gt;0?(e=Math.sqrt(a*a+h*h),i=1):(e=-Math.sqrt(a*a+h*h),i=-1);var c=0;if(0!==e&amp;&amp;(c=Math.atan2(i*a,i*h)),0!==e||this.ns&gt;0){if(i=1/this.ns,n=Math.pow(e/(this.a*this.f0),i),r=u(this.e,n),-9999===r)return null}else r=-o;return s=l(c/this.ns+this.long0),t.x=s,t.y=r,t},i.names=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]},{"../common/adjust_lon":24,"../common/msfnz":34,"../common/phi2z":35,"../common/sign":40,"../common/tsfnz":43}],71:[function(t,e,i){function n(t){return t}i.init=function(){},i.forward=n,i.inverse=n,i.names=["longlat","identity"]},{}],72:[function(t,e,i){var n=t("../common/msfnz"),r=Math.PI/2,s=1e-10,o=57.29577951308232,a=t("../common/adjust_lon"),l=Math.PI/4,u=t("../common/tsfnz"),h=t("../common/phi2z");i.init=function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=n(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},i.forward=function(t){var e=t.x,i=t.y;if(i*o&gt;90&amp;&amp;-90&gt;i*o&amp;&amp;e*o&gt;180&amp;&amp;-180&gt;e*o)return null;var n,h;if(Math.abs(Math.abs(i)-r)&lt;=s)return null;if(this.sphere)n=this.x0+this.a*this.k0*a(e-this.long0),h=this.y0+this.a*this.k0*Math.log(Math.tan(l+.5*i));else{var c=Math.sin(i),p=u(this.e,i,c);n=this.x0+this.a*this.k0*a(e-this.long0),h=this.y0-this.a*this.k0*Math.log(p)}return t.x=n,t.y=h,t},i.inverse=function(t){var e,i,n=t.x-this.x0,s=t.y-this.y0;if(this.sphere)i=r-2*Math.atan(Math.exp(-s/(this.a*this.k0)));else{var o=Math.exp(-s/(this.a*this.k0));if(i=h(this.e,o),-9999===i)return null}return e=a(this.long0+n/(this.a*this.k0)),t.x=e,t.y=i,t},i.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{"../common/adjust_lon":24,"../common/msfnz":34,"../common/phi2z":35,"../common/tsfnz":43}],73:[function(t,e,i){var n=t("../common/adjust_lon");i.init=function(){},i.forward=function(t){var e=t.x,i=t.y,r=n(e-this.long0),s=this.x0+this.a*r,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=s,t.y=o,t},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e=n(this.long0+t.x/this.a),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=i,t},i.names=["Miller_Cylindrical","mill"]},{"../common/adjust_lon":24}],74:[function(t,e,i){var n=t("../common/adjust_lon"),r=1e-10;i.init=function(){},i.forward=function(t){for(var e=t.x,i=t.y,s=n(e-this.long0),o=i,a=Math.PI*Math.sin(i),l=0;!0;l++){var u=-(o+Math.sin(o)-a)/(1+Math.cos(o));if(o+=u,Math.abs(u)&lt;r)break}o/=2,Math.PI/2-Math.abs(i)&lt;r&amp;&amp;(s=0);var h=.900316316158*this.a*s*Math.cos(o)+this.x0,c=1.4142135623731*this.a*Math.sin(o)+this.y0;return t.x=h,t.y=c,t},i.inverse=function(t){var e,i;t.x-=this.x0,t.y-=this.y0,i=t.y/(1.4142135623731*this.a),Math.abs(i)&gt;.999999999999&amp;&amp;(i=.999999999999),e=Math.asin(i);var r=n(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));r&lt;-Math.PI&amp;&amp;(r=-Math.PI),r&gt;Math.PI&amp;&amp;(r=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)&gt;1&amp;&amp;(i=1);var s=Math.asin(i);return t.x=r,t.y=s,t},i.names=["Mollweide","moll"]},{"../common/adjust_lon":24}],75:[function(t,e,i){var n=484813681109536e-20;i.iterations=1,i.init=function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,
        this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},i.forward=function(t){var e,i=t.x,r=t.y,s=r-this.lat0,o=i-this.long0,a=s/n*1e-5,l=o,u=1,h=0;for(e=1;10&gt;=e;e++)u*=a,h+=this.A[e]*u;var c,p,d=h,f=l,g=1,m=0,_=0,v=0;for(e=1;6&gt;=e;e++)c=g*d-m*f,p=m*d+g*f,g=c,m=p,_=_+this.B_re[e]*g-this.B_im[e]*m,v=v+this.B_im[e]*g+this.B_re[e]*m;return t.x=v*this.a+this.x0,t.y=_*this.a+this.y0,t},i.inverse=function(t){var e,i,r,s=t.x,o=t.y,a=s-this.x0,l=o-this.y0,u=l/this.a,h=a/this.a,c=1,p=0,d=0,f=0;for(e=1;6&gt;=e;e++)i=c*u-p*h,r=p*u+c*h,c=i,p=r,d=d+this.C_re[e]*c-this.C_im[e]*p,f=f+this.C_im[e]*c+this.C_re[e]*p;for(var g=0;g&lt;this.iterations;g++){var m,_,v=d,y=f,b=u,w=h;for(e=2;6&gt;=e;e++)m=v*d-y*f,_=y*d+v*f,v=m,y=_,b+=(e-1)*(this.B_re[e]*v-this.B_im[e]*y),w+=(e-1)*(this.B_im[e]*v+this.B_re[e]*y);v=1,y=0;var x=this.B_re[1],k=this.B_im[1];for(e=2;6&gt;=e;e++)m=v*d-y*f,_=y*d+v*f,v=m,y=_,x+=e*(this.B_re[e]*v-this.B_im[e]*y),k+=e*(this.B_im[e]*v+this.B_re[e]*y);var M=x*x+k*k;d=(b*x+w*k)/M,f=(w*x-b*k)/M}var C=d,D=f,T=1,S=0;for(e=1;9&gt;=e;e++)T*=C,S+=this.D[e]*T;var A=this.lat0+S*n*1e5,P=this.long0+D;return t.x=P,t.y=A,t},i.names=["New_Zealand_Map_Grid","nzmg"]},{}],76:[function(t,e,i){var n=t("../common/tsfnz"),r=t("../common/adjust_lon"),s=t("../common/phi2z"),o=Math.PI/2,a=Math.PI/4,l=1e-10;i.init=function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&amp;&amp;(this.k0=1);var t=Math.sin(this.lat0),e=Math.cos(this.lat0),i=this.e*t;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(e,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-i*i);var s=n(this.e,this.lat0,t),o=this.bl/e*Math.sqrt((1-this.es)/(1-i*i));1&gt;o*o&amp;&amp;(o=1);var a,l;if(isNaN(this.longc)){var u=n(this.e,this.lat1,Math.sin(this.lat1)),h=n(this.e,this.lat2,Math.sin(this.lat2));this.lat0&gt;=0?this.el=(o+Math.sqrt(o*o-1))*Math.pow(s,this.bl):this.el=(o-Math.sqrt(o*o-1))*Math.pow(s,this.bl);var c=Math.pow(u,this.bl),p=Math.pow(h,this.bl);a=this.el/c,l=.5*(a-1/a);var d=(this.el*this.el-p*c)/(this.el*this.el+p*c),f=(p-c)/(p+c),g=r(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(d*Math.tan(.5*this.bl*g)/f)/this.bl,this.long0=r(this.long0);var m=r(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*m)/l),this.alpha=Math.asin(o*Math.sin(this.gamma0))}else a=this.lat0&gt;=0?o+Math.sqrt(o*o-1):o-Math.sqrt(o*o-1),this.el=a*Math.pow(s,this.bl),l=.5*(a-1/a),this.gamma0=Math.asin(Math.sin(this.alpha)/o),this.long0=this.longc-Math.asin(l*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0&gt;=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(o*o-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(o*o-1),Math.cos(this.alpha))},i.forward=function(t){var e,i,s,u=t.x,h=t.y,c=r(u-this.long0);if(Math.abs(Math.abs(h)-o)&lt;=l)s=h&gt;0?-1:1,i=this.al/this.bl*Math.log(Math.tan(a+s*this.gamma0*.5)),e=-1*s*o*this.al/this.bl;else{var p=n(this.e,h,Math.sin(h)),d=this.el/Math.pow(p,this.bl),f=.5*(d-1/d),g=.5*(d+1/d),m=Math.sin(this.bl*c),_=(f*Math.sin(this.gamma0)-m*Math.cos(this.gamma0))/g;i=Math.abs(Math.abs(_)-1)&lt;=l?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-_)/(1+_))/this.bl,e=Math.abs(Math.cos(this.bl*c))&lt;=l?this.al*this.bl*c:this.al*Math.atan2(f*Math.cos(this.gamma0)+m*Math.sin(this.gamma0),Math.cos(this.bl*c))/this.bl}return this.no_rot?(t.x=this.x0+e,t.y=this.y0+i):(e-=this.uc,t.x=this.x0+i*Math.cos(this.alpha)+e*Math.sin(this.alpha),t.y=this.y0+e*Math.cos(this.alpha)-i*Math.sin(this.alpha)),t},i.inverse=function(t){var e,i;this.no_rot?(i=t.y-this.y0,e=t.x-this.x0):(i=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),e=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),e+=this.uc);var n=Math.exp(-1*this.bl*i/this.al),a=.5*(n-1/n),u=.5*(n+1/n),h=Math.sin(this.bl*e/this.al),c=(h*Math.cos(this.gamma0)+a*Math.sin(this.gamma0))/u,p=Math.pow(this.el/Math.sqrt((1+c)/(1-c)),1/this.bl);return Math.abs(c-1)&lt;l?(t.x=this.long0,t.y=o):Math.abs(c+1)&lt;l?(t.x=this.long0,t.y=-1*o):(t.y=s(this.e,p),t.x=r(this.long0-Math.atan2(a*Math.cos(this.gamma0)-h*Math.sin(this.gamma0),Math.cos(this.bl*e/this.al))/this.bl)),t},i.names=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]},{"../common/adjust_lon":24,"../common/phi2z":35,"../common/tsfnz":43}],77:[function(t,e,i){var n=t("../common/e0fn"),r=t("../common/e1fn"),s=t("../common/e2fn"),o=t("../common/e3fn"),a=t("../common/adjust_lon"),l=t("../common/adjust_lat"),u=t("../common/mlfn"),h=1e-10,c=t("../common/gN"),p=20;i.init=function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=n(this.es),this.e1=r(this.es),this.e2=s(this.es),this.e3=o(this.es),this.ml0=this.a*u(this.e0,this.e1,this.e2,this.e3,this.lat0)},i.forward=function(t){var e,i,n,r=t.x,s=t.y,o=a(r-this.long0);if(n=o*Math.sin(s),this.sphere)Math.abs(s)&lt;=h?(e=this.a*o,i=-1*this.a*this.lat0):(e=this.a*Math.sin(n)/Math.tan(s),i=this.a*(l(s-this.lat0)+(1-Math.cos(n))/Math.tan(s)));else if(Math.abs(s)&lt;=h)e=this.a*o,i=-1*this.ml0;else{var p=c(this.a,this.e,Math.sin(s))/Math.tan(s);e=p*Math.sin(n),i=this.a*u(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+p*(1-Math.cos(n))}return t.x=e+this.x0,t.y=i+this.y0,t},i.inverse=function(t){var e,i,n,r,s,o,l,c,d;if(n=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)&lt;=h)e=a(n/this.a+this.long0),i=0;else{o=this.lat0+r/this.a,l=n*n/this.a/this.a+o*o,c=o;var f;for(s=p;s;--s)if(f=Math.tan(c),d=-1*(o*(c*f+1)-c-.5*(c*c+l)*f)/((c-o)/f-1),c+=d,Math.abs(d)&lt;=h){i=c;break}e=a(this.long0+Math.asin(n*Math.tan(c)/this.a)/Math.sin(i))}else if(Math.abs(r+this.ml0)&lt;=h)i=0,e=a(this.long0+n/this.a);else{o=(this.ml0+r)/this.a,l=n*n/this.a/this.a+o*o,c=o;var g,m,_,v,y;for(s=p;s;--s)if(y=this.e*Math.sin(c),g=Math.sqrt(1-y*y)*Math.tan(c),m=this.a*u(this.e0,this.e1,this.e2,this.e3,c),_=this.e0-2*this.e1*Math.cos(2*c)+4*this.e2*Math.cos(4*c)-6*this.e3*Math.cos(6*c),v=m/this.a,d=(o*(g*v+1)-v-.5*g*(v*v+l))/(this.es*Math.sin(2*c)*(v*v+l-2*o*v)/(4*g)+(o-v)*(g*_-2/Math.sin(2*c))-_),c-=d,Math.abs(d)&lt;=h){i=c;break}g=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=a(this.long0+Math.asin(n*g/this.a)/Math.sin(i))}return t.x=e,t.y=i,t},i.names=["Polyconic","poly"]},{"../common/adjust_lat":23,"../common/adjust_lon":24,"../common/e0fn":26,"../common/e1fn":27,"../common/e2fn":28,"../common/e3fn":29,"../common/gN":30,"../common/mlfn":33}],78:[function(t,e,i){var n=t("../common/adjust_lon"),r=t("../common/adjust_lat"),s=t("../common/pj_enfn"),o=20,a=t("../common/pj_mlfn"),l=t("../common/pj_inv_mlfn"),u=Math.PI/2,h=1e-10,c=t("../common/asinz");i.init=function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=s(this.es)},i.forward=function(t){var e,i,r=t.x,s=t.y;if(r=n(r-this.long0),this.sphere){if(this.m)for(var l=this.n*Math.sin(s),u=o;u;--u){var c=(this.m*s+Math.sin(s)-l)/(this.m+Math.cos(s));if(s-=c,Math.abs(c)&lt;h)break}else s=1!==this.n?Math.asin(this.n*Math.sin(s)):s;e=this.a*this.C_x*r*(this.m+Math.cos(s)),i=this.a*this.C_y*s}else{var p=Math.sin(s),d=Math.cos(s);i=this.a*a(s,p,d,this.en),e=this.a*r*d/Math.sqrt(1-this.es*p*p)}return t.x=e,t.y=i,t},i.inverse=function(t){var e,i,s,o;return t.x-=this.x0,s=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,s/=this.C_x*(this.m+Math.cos(e)),this.m?e=c((this.m*e+Math.sin(e))/this.n):1!==this.n&amp;&amp;(e=c(Math.sin(e)/this.n)),s=n(s+this.long0),e=r(e)):(e=l(t.y/this.a,this.es,this.en),o=Math.abs(e),u&gt;o?(o=Math.sin(e),i=this.long0+t.x*Math.sqrt(1-this.es*o*o)/(this.a*Math.cos(e)),s=n(i)):u&gt;o-h&amp;&amp;(s=this.long0)),t.x=s,t.y=e,t},i.names=["Sinusoidal","sinu"]},{"../common/adjust_lat":23,"../common/adjust_lon":24,"../common/asinz":25,"../common/pj_enfn":36,"../common/pj_inv_mlfn":37,"../common/pj_mlfn":38}],79:[function(t,e,i){i.init=function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),i=this.a,n=this.rf,r=1/n,s=2*r-Math.pow(r,2),o=this.e=Math.sqrt(s);this.R=this.k0*i*Math.sqrt(1-s)/(1-s*Math.pow(e,2)),this.alpha=Math.sqrt(1+s/(1-s)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+t/2)),u=Math.log((1+o*e)/(1-o*e));this.K=a-this.alpha*l+this.alpha*o/2*u},i.forward=function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),n=-this.alpha*(e+i)+this.K,r=2*(Math.atan(Math.exp(n))-Math.PI/4),s=this.alpha*(t.x-this.lambda0),o=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(s))),a=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(s));return t.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*o+this.x0,t},i.inverse=function(t){for(var e=t.x-this.x0,i=t.y-this.y0,n=e/this.R,r=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(r))),a=this.lambda0+o/this.alpha,l=0,u=s,h=-1e3,c=0;Math.abs(u-h)&gt;1e-7;){if(++c&gt;20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),h=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=a,t.y=u,t},i.names=["somerc"]},{}],80:[function(t,e,i){var n=Math.PI/2,r=1e-10,s=t("../common/sign"),o=t("../common/msfnz"),a=t("../common/tsfnz"),l=t("../common/phi2z"),u=t("../common/adjust_lon");i.ssfn_=function(t,e,i){return e*=i,Math.tan(.5*(n+t))*Math.pow((1-e)/(1+e),.5*i)},i.init=function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&amp;&amp;!isNaN(this.lat_ts)&amp;&amp;Math.abs(this.coslat0)&lt;=r&amp;&amp;(this.k0=.5*(1+s(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)&lt;=r&amp;&amp;(this.lat0&gt;0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&amp;&amp;!isNaN(this.lat_ts)&amp;&amp;Math.abs(this.coslat0)&lt;=r&amp;&amp;(this.k0=.5*this.cons*o(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/a(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=o(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-n,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},i.forward=function(t){var e,i,s,o,l,h,c=t.x,p=t.y,d=Math.sin(p),f=Math.cos(p),g=u(c-this.long0);return Math.abs(Math.abs(c-this.long0)-Math.PI)&lt;=r&amp;&amp;Math.abs(p+this.lat0)&lt;=r?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*d+this.coslat0*f*Math.cos(g)),t.x=this.a*e*f*Math.sin(g)+this.x0,t.y=this.a*e*(this.coslat0*d-this.sinlat0*f*Math.cos(g))+this.y0,t):(i=2*Math.atan(this.ssfn_(p,d,this.e))-n,o=Math.cos(i),s=Math.sin(i),Math.abs(this.coslat0)&lt;=r?(l=a(this.e,p*this.con,this.con*d),h=2*this.a*this.k0*l/this.cons,t.x=this.x0+h*Math.sin(c-this.long0),t.y=this.y0-this.con*h*Math.cos(c-this.long0),t):(Math.abs(this.sinlat0)&lt;r?(e=2*this.a*this.k0/(1+o*Math.cos(g)),t.y=e*s):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*s+this.cosX0*o*Math.cos(g))),t.y=e*(this.cosX0*s-this.sinX0*o*Math.cos(g))+this.y0),t.x=e*o*Math.sin(g)+this.x0,t))},i.inverse=function(t){t.x-=this.x0,t.y-=this.y0;var e,i,s,o,a,h=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var c=2*Math.atan(h/(.5*this.a*this.k0));return e=this.long0,i=this.lat0,r&gt;=h?(t.x=e,t.y=i,t):(i=Math.asin(Math.cos(c)*this.sinlat0+t.y*Math.sin(c)*this.coslat0/h),e=u(Math.abs(this.coslat0)&lt;r?this.lat0&gt;0?this.long0+Math.atan2(t.x,-1*t.y):this.long0+Math.atan2(t.x,t.y):this.long0+Math.atan2(t.x*Math.sin(c),h*this.coslat0*Math.cos(c)-t.y*this.sinlat0*Math.sin(c))),t.x=e,t.y=i,t)}if(Math.abs(this.coslat0)&lt;=r){if(r&gt;=h)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,s=h*this.cons/(2*this.a*this.k0),i=this.con*l(this.e,s),e=this.con*u(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else o=2*Math.atan(h*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,r&gt;=h?a=this.X0:(a=Math.asin(Math.cos(o)*this.sinX0+t.y*Math.sin(o)*this.cosX0/h),e=u(this.long0+Math.atan2(t.x*Math.sin(o),h*this.cosX0*Math.cos(o)-t.y*this.sinX0*Math.sin(o)))),i=-1*l(this.e,Math.tan(.5*(n+a)));return t.x=e,t.y=i,t},i.names=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"]},{"../common/adjust_lon":24,"../common/msfnz":34,"../common/phi2z":35,"../common/sign":40,"../common/tsfnz":43}],81:[function(t,e,i){var n=t("./gauss"),r=t("../common/adjust_lon");i.init=function(){n.init.apply(this),this.rc&amp;&amp;(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},i.forward=function(t){var e,i,s,o;return t.x=r(t.x-this.long0),n.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),s=Math.cos(t.x),o=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*s),t.x=o*i*Math.sin(t.x),t.y=o*(this.cosc0*e-this.sinc0*i*s),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},i.inverse=function(t){var e,i,s,o,a;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,a=Math.sqrt(t.x*t.x+t.y*t.y)){var l=2*Math.atan2(a,this.R2);e=Math.sin(l),i=Math.cos(l),o=Math.asin(i*this.sinc0+t.y*e*this.cosc0/a),s=Math.atan2(t.x*e,a*this.cosc0*i-t.y*this.sinc0*e)}else o=this.phic0,s=0;return t.x=s,t.y=o,n.inverse.apply(this,[t]),t.x=r(t.x+this.long0),t},i.names=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"]},{"../common/adjust_lon":24,"./gauss":66}],82:[function(t,e,i){var n=t("../common/e0fn"),r=t("../common/e1fn"),s=t("../common/e2fn"),o=t("../common/e3fn"),a=t("../common/mlfn"),l=t("../common/adjust_lon"),u=Math.PI/2,h=1e-10,c=t("../common/sign"),p=t("../common/asinz");i.init=function(){this.e0=n(this.es),this.e1=r(this.es),this.e2=s(this.es),this.e3=o(this.es),this.ml0=this.a*a(this.e0,this.e1,this.e2,this.e3,this.lat0)},i.forward=function(t){var e,i,n,r=t.x,s=t.y,o=l(r-this.long0),u=Math.sin(s),h=Math.cos(s);if(this.sphere){var c=h*Math.sin(o);if(Math.abs(Math.abs(c)-1)&lt;1e-10)return 93;i=.5*this.a*this.k0*Math.log((1+c)/(1-c)),e=Math.acos(h*Math.cos(o)/Math.sqrt(1-c*c)),0&gt;s&amp;&amp;(e=-e),n=this.a*this.k0*(e-this.lat0)}else{var p=h*o,d=Math.pow(p,2),f=this.ep2*Math.pow(h,2),g=Math.tan(s),m=Math.pow(g,2);e=1-this.es*Math.pow(u,2);var _=this.a/Math.sqrt(e),v=this.a*a(this.e0,this.e1,this.e2,this.e3,s);i=this.k0*_*p*(1+d/6*(1-m+f+d/20*(5-18*m+Math.pow(m,2)+72*f-58*this.ep2)))+this.x0,n=this.k0*(v-this.ml0+_*g*(d*(.5+d/24*(5-m+9*f+4*Math.pow(f,2)+d/30*(61-58*m+Math.pow(m,2)+600*f-330*this.ep2)))))+this.y0}return t.x=i,t.y=n,t},i.inverse=function(t){var e,i,n,r,s,o,a=6;if(this.sphere){var d=Math.exp(t.x/(this.a*this.k0)),f=.5*(d-1/d),g=this.lat0+t.y/(this.a*this.k0),m=Math.cos(g);e=Math.sqrt((1-m*m)/(1+f*f)),s=p(e),0&gt;g&amp;&amp;(s=-s),o=0===f&amp;&amp;0===m?this.long0:l(Math.atan2(f,m)+this.long0)}else{var _=t.x-this.x0,v=t.y-this.y0;for(e=(this.ml0+v/this.k0)/this.a,i=e,r=0;!0&amp;&amp;(n=(e+this.e1*Math.sin(2*i)-this.e2*Math.sin(4*i)+this.e3*Math.sin(6*i))/this.e0-i,i+=n,!(Math.abs(n)&lt;=h));r++)if(r&gt;=a)return 95;if(Math.abs(i)&lt;u){var y=Math.sin(i),b=Math.cos(i),w=Math.tan(i),x=this.ep2*Math.pow(b,2),k=Math.pow(x,2),M=Math.pow(w,2),C=Math.pow(M,2);e=1-this.es*Math.pow(y,2);var D=this.a/Math.sqrt(e),T=D*(1-this.es)/e,S=_/(D*this.k0),A=Math.pow(S,2);s=i-D*w*A/T*(.5-A/24*(5+3*M+10*x-4*k-9*this.ep2-A/30*(61+90*M+298*x+45*C-252*this.ep2-3*k))),o=l(this.long0+S*(1-A/6*(1+2*M+x-A/20*(5-2*x+28*M-3*k+8*this.ep2+24*C)))/b)}else s=u*c(v),o=this.long0}return t.x=o,t.y=s,t},i.names=["Transverse_Mercator","Transverse Mercator","tmerc"]},{"../common/adjust_lon":24,"../common/asinz":25,"../common/e0fn":26,"../common/e1fn":27,"../common/e2fn":28,"../common/e3fn":29,"../common/mlfn":33,"../common/sign":40}],83:[function(t,e,i){var n=.017453292519943295,r=t("./tmerc");i.dependsOn="tmerc",i.init=function(){this.zone&amp;&amp;(this.lat0=0,this.long0=(6*Math.abs(this.zone)-183)*n,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,r.init.apply(this),this.forward=r.forward,this.inverse=r.inverse)},i.names=["Universal Transverse Mercator System","utm"]},{"./tmerc":82}],84:[function(t,e,i){var n=t("../common/adjust_lon"),r=Math.PI/2,s=1e-10,o=t("../common/asinz");i.init=function(){this.R=this.a},i.forward=function(t){var e,i,a=t.x,l=t.y,u=n(a-this.long0);Math.abs(l)&lt;=s&amp;&amp;(e=this.x0+this.R*u,i=this.y0);var h=o(2*Math.abs(l/Math.PI));(Math.abs(u)&lt;=s||Math.abs(Math.abs(l)-r)&lt;=s)&amp;&amp;(e=this.x0,i=l&gt;=0?this.y0+Math.PI*this.R*Math.tan(.5*h):this.y0+Math.PI*this.R*-Math.tan(.5*h));var c=.5*Math.abs(Math.PI/u-u/Math.PI),p=c*c,d=Math.sin(h),f=Math.cos(h),g=f/(d+f-1),m=g*g,_=g*(2/d-1),v=_*_,y=Math.PI*this.R*(c*(g-v)+Math.sqrt(p*(g-v)*(g-v)-(v+p)*(m-v)))/(v+p);0&gt;u&amp;&amp;(y=-y),e=this.x0+y;var b=p+g;return y=Math.PI*this.R*(_*b-c*Math.sqrt((v+p)*(p+1)-b*b))/(v+p),i=l&gt;=0?this.y0+y:this.y0-y,t.x=e,t.y=i,t},i.inverse=function(t){var e,i,r,o,a,l,u,h,c,p,d,f,g;return t.x-=this.x0,t.y-=this.y0,d=Math.PI*this.R,r=t.x/d,o=t.y/d,a=r*r+o*o,l=-Math.abs(o)*(1+a),u=l-2*o*o+r*r,h=-2*l+1+2*o*o+a*a,g=o*o/h+(2*u*u*u/h/h/h-9*l*u/h/h)/27,c=(l-u*u/3/h)/h,p=2*Math.sqrt(-c/3),d=3*g/c/p,Math.abs(d)&gt;1&amp;&amp;(d=d&gt;=0?1:-1),f=Math.acos(d)/3,i=t.y&gt;=0?(-p*Math.cos(f+Math.PI/3)-u/3/h)*Math.PI:-(-p*Math.cos(f+Math.PI/3)-u/3/h)*Math.PI,e=Math.abs(r)&lt;s?this.long0:n(this.long0+Math.PI*(a-1+Math.sqrt(1+2*(r*r-o*o)+a*a))/2/r),t.x=e,t.y=i,t},i.names=["Van_der_Grinten_I","VanDerGrinten","vandg"]},{"../common/adjust_lon":24,"../common/asinz":25}],85:[function(t,e,i){var n=.017453292519943295,r=57.29577951308232,s=1,o=2,a=t("./datum_transform"),l=t("./adjust_axis"),u=t("./Proj"),h=t("./common/toPoint");e.exports=function c(t,e,i){function p(t,e){return(t.datum.datum_type===s||t.datum.datum_type===o)&amp;&amp;"WGS84"!==e.datumCode}var d;return Array.isArray(i)&amp;&amp;(i=h(i)),t.datum&amp;&amp;e.datum&amp;&amp;(p(t,e)||p(e,t))&amp;&amp;(d=new u("WGS84"),c(t,d,i),t=d),"enu"!==t.axis&amp;&amp;l(t,!1,i),"longlat"===t.projName?(i.x*=n,i.y*=n):(t.to_meter&amp;&amp;(i.x*=t.to_meter,i.y*=t.to_meter),t.inverse(i)),t.from_greenwich&amp;&amp;(i.x+=t.from_greenwich),i=a(t.datum,e.datum,i),e.from_greenwich&amp;&amp;(i.x-=e.from_greenwich),"longlat"===e.projName?(i.x*=r,i.y*=r):(e.forward(i),e.to_meter&amp;&amp;(i.x/=e.to_meter,i.y/=e.to_meter)),"enu"!==e.axis&amp;&amp;l(e,!0,i),i}},{"./Proj":21,"./adjust_axis":22,"./common/toPoint":42,"./datum_transform":50}],86:[function(t,e,i){function n(t,e,i){t[e]=i.map(function(t){var e={};return r(t,e),e}).reduce(function(t,e){return u(t,e)},{})}function r(t,e){var i;return Array.isArray(t)?(i=t.shift(),"PARAMETER"===i&amp;&amp;(i=t.shift()),1===t.length?Array.isArray(t[0])?(e[i]={},r(t[0],e[i])):e[i]=t[0]:t.length?"TOWGS84"===i?e[i]=t:(e[i]={},["UNIT","PRIMEM","VERT_DATUM"].indexOf(i)&gt;-1?(e[i]={name:t[0].toLowerCase(),convert:t[1]},3===t.length&amp;&amp;(e[i].auth=t[2])):"SPHEROID"===i?(e[i]={name:t[0],a:t[1],rf:t[2]},4===t.length&amp;&amp;(e[i].auth=t[3])):["GEOGCS","GEOCCS","DATUM","VERT_CS","COMPD_CS","LOCAL_CS","FITTED_CS","LOCAL_DATUM"].indexOf(i)&gt;-1?(t[0]=["name",t[0]],n(e,i,t)):t.every(function(t){return Array.isArray(t)})?n(e,i,t):r(t,e[i])):e[i]=!0,void 0):void(e[t]=!0)}function s(t,e){var i=e[0],n=e[1];!(i in t)&amp;&amp;n in t&amp;&amp;(t[i]=t[n],3===e.length&amp;&amp;(t[i]=e[2](t[i])))}function o(t){return t*l}function a(t){function e(e){var i=t.to_meter||1;return parseFloat(e,10)*i}"GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.UNIT&amp;&amp;(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&amp;&amp;(t.units="meter"),t.UNIT.convert&amp;&amp;(t.to_meter=parseFloat(t.UNIT.convert,10))),t.GEOGCS&amp;&amp;(t.GEOGCS.DATUM?t.datumCode=t.GEOGCS.DATUM.name.toLowerCase():t.datumCode=t.GEOGCS.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&amp;&amp;(t.datumCode=t.datumCode.slice(2)),("new_zealand_geodetic_datum_1949"===t.datumCode||"new_zealand_1949"===t.datumCode)&amp;&amp;(t.datumCode="nzgd49"),"wgs_1984"===t.datumCode&amp;&amp;("Mercator_Auxiliary_Sphere"===t.PROJECTION&amp;&amp;(t.sphere=!0),t.datumCode="wgs84"),"_ferro"===t.datumCode.slice(-6)&amp;&amp;(t.datumCode=t.datumCode.slice(0,-6)),"_jakarta"===t.datumCode.slice(-8)&amp;&amp;(t.datumCode=t.datumCode.slice(0,-8)),~t.datumCode.indexOf("belge")&amp;&amp;(t.datumCode="rnb72"),t.GEOGCS.DATUM&amp;&amp;t.GEOGCS.DATUM.SPHEROID&amp;&amp;(t.ellps=t.GEOGCS.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&amp;&amp;(t.ellps="intl"),t.a=t.GEOGCS.DATUM.SPHEROID.a,t.rf=parseFloat(t.GEOGCS.DATUM.SPHEROID.rf,10)),~t.datumCode.indexOf("osgb_1936")&amp;&amp;(t.datumCode="osgb36")),t.b&amp;&amp;!isFinite(t.b)&amp;&amp;(t.b=t.a);var i=function(e){return s(t,e)},n=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",o],["longitude_of_center","Longitude_Of_Center"],["longc","longitude_of_center",o],["x0","false_easting",e],["y0","false_northing",e],["long0","central_meridian",o],["lat0","latitude_of_origin",o],["lat0","standard_parallel_1",o],["lat1","standard_parallel_1",o],["lat2","standard_parallel_2",o],["alpha","azimuth",o],["srsCode","name"]];n.forEach(i),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&amp;&amp;"Lambert_Azimuthal_Equal_Area"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||"Stereographic_South_Pole"!==t.projName&amp;&amp;"Polar Stereographic (variant B)"!==t.projName||(t.lat0=o(t.lat1&gt;0?90:-90),t.lat_ts=t.lat1)}var l=.017453292519943295,u=t("./extend");e.exports=function(t,e){var i=JSON.parse((","+t).replace(/\s*\,\s*([A-Z_0-9]+?)(\[)/g,',["$1",').slice(1).replace(/\s*\,\s*([A-Z_0-9]+?)\]/g,',"$1"]').replace(/,\["VERTCS".+/,"")),n=i.shift(),s=i.shift();i.unshift(["name",s]),i.unshift(["type",n]),i.unshift("output");var o={};return r(i,o),a(o.output),u(e,o.output)}},{"./extend":53}],87:[function(t,e,i){function n(t){return t*(Math.PI/180)}function r(t){return 180*(t/Math.PI)}function s(t){var e,i,r,s,o,l,u,h,c,p=t.lat,d=t.lon,f=6378137,g=.00669438,m=.9996,_=n(p),v=n(d);c=Math.floor((d+180)/6)+1,180===d&amp;&amp;(c=60),p&gt;=56&amp;&amp;64&gt;p&amp;&amp;d&gt;=3&amp;&amp;12&gt;d&amp;&amp;(c=32),p&gt;=72&amp;&amp;84&gt;p&amp;&amp;(d&gt;=0&amp;&amp;9&gt;d?c=31:d&gt;=9&amp;&amp;21&gt;d?c=33:d&gt;=21&amp;&amp;33&gt;d?c=35:d&gt;=33&amp;&amp;42&gt;d&amp;&amp;(c=37)),e=6*(c-1)-180+3,h=n(e),i=g/(1-g),r=f/Math.sqrt(1-g*Math.sin(_)*Math.sin(_)),s=Math.tan(_)*Math.tan(_),o=i*Math.cos(_)*Math.cos(_),l=Math.cos(_)*(v-h),u=f*((1-g/4-3*g*g/64-5*g*g*g/256)*_-(3*g/8+3*g*g/32+45*g*g*g/1024)*Math.sin(2*_)+(15*g*g/256+45*g*g*g/1024)*Math.sin(4*_)-35*g*g*g/3072*Math.sin(6*_));var y=m*r*(l+(1-s+o)*l*l*l/6+(5-18*s+s*s+72*o-58*i)*l*l*l*l*l/120)+5e5,b=m*(u+r*Math.tan(_)*(l*l/2+(5-s+9*o+4*o*o)*l*l*l*l/24+(61-58*s+s*s+600*o-330*i)*l*l*l*l*l*l/720));return 0&gt;p&amp;&amp;(b+=1e7),{northing:Math.round(b),easting:Math.round(y),zoneNumber:c,zoneLetter:a(p)}}function o(t){var e=t.northing,i=t.easting,n=t.zoneLetter,s=t.zoneNumber;if(0&gt;s||s&gt;60)return null;var a,l,u,h,c,p,d,f,g,m,_=.9996,v=6378137,y=.00669438,b=(1-Math.sqrt(1-y))/(1+Math.sqrt(1-y)),w=i-5e5,x=e;"N"&gt;n&amp;&amp;(x-=1e7),f=6*(s-1)-180+3,a=y/(1-y),d=x/_,g=d/(v*(1-y/4-3*y*y/64-5*y*y*y/256)),m=g+(3*b/2-27*b*b*b/32)*Math.sin(2*g)+(21*b*b/16-55*b*b*b*b/32)*Math.sin(4*g)+151*b*b*b/96*Math.sin(6*g),l=v/Math.sqrt(1-y*Math.sin(m)*Math.sin(m)),u=Math.tan(m)*Math.tan(m),h=a*Math.cos(m)*Math.cos(m),c=v*(1-y)/Math.pow(1-y*Math.sin(m)*Math.sin(m),1.5),p=w/(l*_);var k=m-l*Math.tan(m)/c*(p*p/2-(5+3*u+10*h-4*h*h-9*a)*p*p*p*p/24+(61+90*u+298*h+45*u*u-252*a-3*h*h)*p*p*p*p*p*p/720);k=r(k);var M=(p-(1+2*u+h)*p*p*p/6+(5-2*h+28*u-3*h*h+8*a+24*u*u)*p*p*p*p*p/120)/Math.cos(m);M=f+r(M);var C;if(t.accuracy){var D=o({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});C={top:D.lat,right:D.lon,bottom:k,left:M}}else C={lat:k,lon:M};return C}function a(t){var e="Z";return 84&gt;=t&amp;&amp;t&gt;=72?e="X":72&gt;t&amp;&amp;t&gt;=64?e="W":64&gt;t&amp;&amp;t&gt;=56?e="V":56&gt;t&amp;&amp;t&gt;=48?e="U":48&gt;t&amp;&amp;t&gt;=40?e="T":40&gt;t&amp;&amp;t&gt;=32?e="S":32&gt;t&amp;&amp;t&gt;=24?e="R":24&gt;t&amp;&amp;t&gt;=16?e="Q":16&gt;t&amp;&amp;t&gt;=8?e="P":8&gt;t&amp;&amp;t&gt;=0?e="N":0&gt;t&amp;&amp;t&gt;=-8?e="M":-8&gt;t&amp;&amp;t&gt;=-16?e="L":-16&gt;t&amp;&amp;t&gt;=-24?e="K":-24&gt;t&amp;&amp;t&gt;=-32?e="J":-32&gt;t&amp;&amp;t&gt;=-40?e="H":-40&gt;t&amp;&amp;t&gt;=-48?e="G":-48&gt;t&amp;&amp;t&gt;=-56?e="F":-56&gt;t&amp;&amp;t&gt;=-64?e="E":-64&gt;t&amp;&amp;t&gt;=-72?e="D":-72&gt;t&amp;&amp;t&gt;=-80&amp;&amp;(e="C"),e}function l(t,e){var i="00000"+t.easting,n="00000"+t.northing;return t.zoneNumber+t.zoneLetter+u(t.easting,t.northing,t.zoneNumber)+i.substr(i.length-5,e)+n.substr(n.length-5,e)}function u(t,e,i){var n=h(i),r=Math.floor(t/1e5),s=Math.floor(e/1e5)%20;return c(r,s,n)}function h(t){var e=t%m;return 0===e&amp;&amp;(e=m),e}function c(t,e,i){var n=i-1,r=_.charCodeAt(n),s=v.charCodeAt(n),o=r+t-1,a=s+e,l=!1;o&gt;k&amp;&amp;(o=o-k+y-1,l=!0),(o===b||b&gt;r&amp;&amp;o&gt;b||(o&gt;b||b&gt;r)&amp;&amp;l)&amp;&amp;o++,(o===w||w&gt;r&amp;&amp;o&gt;w||(o&gt;w||w&gt;r)&amp;&amp;l)&amp;&amp;(o++,o===b&amp;&amp;o++),o&gt;k&amp;&amp;(o=o-k+y-1),a&gt;x?(a=a-x+y-1,l=!0):l=!1,(a===b||b&gt;s&amp;&amp;a&gt;b||(a&gt;b||b&gt;s)&amp;&amp;l)&amp;&amp;a++,(a===w||w&gt;s&amp;&amp;a&gt;w||(a&gt;w||w&gt;s)&amp;&amp;l)&amp;&amp;(a++,a===b&amp;&amp;a++),a&gt;x&amp;&amp;(a=a-x+y-1);var u=String.fromCharCode(o)+String.fromCharCode(a);return u}function p(t){if(t&amp;&amp;0===t.length)throw"MGRSPoint coverting from nothing";for(var e,i=t.length,n=null,r="",s=0;!/[A-Z]/.test(e=t.charAt(s));){if(s&gt;=2)throw"MGRSPoint bad conversion from: "+t;r+=e,s++}var o=parseInt(r,10);if(0===s||s+3&gt;i)throw"MGRSPoint bad conversion from: "+t;var a=t.charAt(s++);if("A"&gt;=a||"B"===a||"Y"===a||a&gt;="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+t;n=t.substring(s,s+=2);for(var l=h(o),u=d(n.charAt(0),l),c=f(n.charAt(1),l);c&lt;g(a);)c+=2e6;var p=i-s;if(p%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var m,_,v,y,b,w=p/2,x=0,k=0;return w&gt;0&amp;&amp;(m=1e5/Math.pow(10,w),_=t.substring(s,s+w),x=parseFloat(_)*m,v=t.substring(s+w),k=parseFloat(v)*m),y=x+u,b=k+c,{easting:y,northing:b,zoneLetter:a,zoneNumber:o,accuracy:m}}function d(t,e){for(var i=_.charCodeAt(e-1),n=1e5,r=!1;i!==t.charCodeAt(0);){if(i++,i===b&amp;&amp;i++,i===w&amp;&amp;i++,i&gt;k){if(r)throw"Bad character: "+t;i=y,r=!0}n+=1e5}return n}function f(t,e){if(t&gt;"V")throw"MGRSPoint given invalid Northing "+t;for(var i=v.charCodeAt(e-1),n=0,r=!1;i!==t.charCodeAt(0);){if(i++,i===b&amp;&amp;i++,i===w&amp;&amp;i++,i&gt;x){if(r)throw"Bad character: "+t;i=y,r=!0}n+=1e5}return n}function g(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e&gt;=0)return e;throw"Invalid zone letter: "+t}var m=6,_="AJSAJS",v="AFAFAF",y=65,b=73,w=79,x=86,k=90;i.forward=function(t,e){return e=e||5,l(s({lat:t[1],lon:t[0]}),e)},i.inverse=function(t){var e=o(p(t.toUpperCase()));return e.lat&amp;&amp;e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]},i.toPoint=function(t){var e=o(p(t.toUpperCase()));return e.lat&amp;&amp;e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}},{}],88:[function(t,e,i){e.exports={name:"proj4",version:"2.3.10",description:"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",main:"lib/index.js",directories:{test:"test",doc:"docs"},scripts:{test:"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},repository:{type:"git",url:"git://github.com/proj4js/proj4js.git"},author:"",license:"MIT",jam:{main:"dist/proj4.js",include:["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},devDependencies:{"grunt-cli":"~0.1.13",grunt:"~0.4.2","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0",chai:"~1.8.1",mocha:"~1.17.1","grunt-mocha-phantomjs":"~0.4.0",browserify:"~3.24.5","grunt-browserify":"~1.3.0","grunt-contrib-uglify":"~0.3.2",curl:"git://github.com/cujojs/curl.git",istanbul:"~0.2.4",tin:"~0.4.0"},dependencies:{mgrs:"~0.0.2"},contributors:[{name:"Mike Adair",email:"madair@dmsolutions.ca"},{name:"Richard Greenwood",email:"rich@greenwoodmap.com"},{name:"Calvin Metcalf",email:"calvin.metcalf@gmail.com"},{name:"Richard Marsden",url:"http://www.winwaed.com"},{name:"T. Mittan"},{name:"D. Steinwand"},{name:"S. Nelson"}],gitHead:"ac03d1439491dc313da80985193f702ca471b3d0",bugs:{url:"https://github.com/proj4js/proj4js/issues"},homepage:"https://github.com/proj4js/proj4js#readme",_id:"proj4@2.3.10",_shasum:"f6e66bdcca332c25a5e3d8ef265cfc9d7b60fd0c",_from:"proj4@&gt;=2.3.10 &lt;3.0.0",_npmVersion:"2.11.2",_nodeVersion:"0.12.5",_npmUser:{name:"ahocevar",email:"andreas.hocevar@gmail.com"},maintainers:[{name:"cwmma",email:"calvin.metcalf@gmail.com"},{name:"ahocevar",email:"andreas.hocevar@gmail.com"}],dist:{shasum:"f6e66bdcca332c25a5e3d8ef265cfc9d7b60fd0c",tarball:"http://registry.npmjs.org/proj4/-/proj4-2.3.10.tgz"},_resolved:"https://registry.npmjs.org/proj4/-/proj4-2.3.10.tgz"}},{}],89:[function(t,e,i){!function(){"use strict";function t(e,i){return this instanceof t?(this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),i&amp;&amp;this._initFormat(i),void this.clear()):new t(e,i)}function i(t,e){t.bbox=n(t,0,t.children.length,e)}function n(t,e,i,n){for(var o,a=r(),l=e;i&gt;l;l++)o=t.children[l],s(a,t.leaf?n(o):o.bbox);return a}function r(){return[1/0,1/0,-(1/0),-(1/0)]}function s(t,e){return t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t}function o(t,e){return t.bbox[0]-e.bbox[0]}function a(t,e){return t.bbox[1]-e.bbox[1]}function l(t){return(t[2]-t[0])*(t[3]-t[1])}function u(t){return t[2]-t[0]+(t[3]-t[1])}function h(t,e){return(Math.max(e[2],t[2])-Math.min(e[0],t[0]))*(Math.max(e[3],t[3])-Math.min(e[1],t[1]))}function c(t,e){var i=Math.max(t[0],e[0]),n=Math.max(t[1],e[1]),r=Math.min(t[2],e[2]),s=Math.min(t[3],e[3]);return Math.max(0,r-i)*Math.max(0,s-n)}function p(t,e){return t[0]&lt;=e[0]&amp;&amp;t[1]&lt;=e[1]&amp;&amp;e[2]&lt;=t[2]&amp;&amp;e[3]&lt;=t[3]}function d(t,e){return e[0]&lt;=t[2]&amp;&amp;e[1]&lt;=t[3]&amp;&amp;e[2]&gt;=t[0]&amp;&amp;e[3]&gt;=t[1]}function f(t,e,i,n,r){for(var s,o=[e,i];o.length;)i=o.pop(),e=o.pop(),n&gt;=i-e||(s=e+Math.ceil((i-e)/n/2)*n,g(t,e,i,s,r),o.push(e,s,s,i))}function g(t,e,i,n,r){for(var s,o,a,l,u,h,c,p,d;i&gt;e;){for(i-e&gt;600&amp;&amp;(s=i-e+1,o=n-e+1,a=Math.log(s),l=.5*Math.exp(2*a/3),u=.5*Math.sqrt(a*l*(s-l)/s)*(0&gt;o-s/2?-1:1),h=Math.max(e,Math.floor(n-o*l/s+u)),c=Math.min(i,Math.floor(n+(s-o)*l/s+u)),g(t,h,c,n,r)),p=t[n],o=e,d=i,m(t,e,n),r(t[i],p)&gt;0&amp;&amp;m(t,e,i);d&gt;o;){for(m(t,o,d),o++,d--;r(t[o],p)&lt;0;)o++;for(;r(t[d],p)&gt;0;)d--}0===r(t[e],p)?m(t,e,d):(d++,m(t,d,i)),n&gt;=d&amp;&amp;(e=d+1),d&gt;=n&amp;&amp;(i=d-1)}}function m(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}t.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!d(t,e.bbox))return i;for(var r,s,o,a,l=[];e;){for(r=0,s=e.children.length;s&gt;r;r++)o=e.children[r],a=e.leaf?n(o):o.bbox,d(t,a)&amp;&amp;(e.leaf?i.push(o):p(t,a)?this._all(o,i):l.push(o));e=l.pop()}return i},load:function(t){if(!t||!t.length)return this;if(t.length&lt;this._minEntries){for(var e=0,i=t.length;i&gt;e;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height&lt;n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(t){
        return t&amp;&amp;this._insert(t,this.data.height-1),this},clear:function(){return this.data={children:[],height:1,bbox:r(),leaf:!0},this},remove:function(t){if(!t)return this;for(var e,i,n,r,s=this.data,o=this.toBBox(t),a=[],l=[];s||a.length;){if(s||(s=a.pop(),i=a[a.length-1],e=l.pop(),r=!0),s.leaf&amp;&amp;(n=s.children.indexOf(t),-1!==n))return s.children.splice(n,1),a.push(s),this._condense(a),this;r||s.leaf||!p(s.bbox,o)?i?(e++,s=i.children[e],r=!1):s=null:(a.push(s),l.push(e),e=0,i=s,s=s.children[0])}return this},toBBox:function(t){return t},compareMinX:function(t,e){return t[0]-e[0]},compareMinY:function(t,e){return t[1]-e[1]},toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var i=[];t;)t.leaf?e.push.apply(e,t.children):i.push.apply(i,t.children),t=i.pop();return e},_build:function(t,e,n,r){var s,o=n-e+1,a=this._maxEntries;if(a&gt;=o)return s={children:t.slice(e,n+1),height:1,bbox:null,leaf:!0},i(s,this.toBBox),s;r||(r=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,r-1))),s={children:[],height:r,bbox:null};var l,u,h,c,p=Math.ceil(o/a),d=p*Math.ceil(Math.sqrt(a));for(f(t,e,n,d,this.compareMinX),l=e;n&gt;=l;l+=d)for(h=Math.min(l+d-1,n),f(t,l,h,p,this.compareMinY),u=l;h&gt;=u;u+=p)c=Math.min(u+p-1,h),s.children.push(this._build(t,u,c,r-1));return i(s,this.toBBox),s},_chooseSubtree:function(t,e,i,n){for(var r,s,o,a,u,c,p,d;;){if(n.push(e),e.leaf||n.length-1===i)break;for(p=d=1/0,r=0,s=e.children.length;s&gt;r;r++)o=e.children[r],u=l(o.bbox),c=h(t,o.bbox)-u,d&gt;c?(d=c,p=p&gt;u?u:p,a=o):c===d&amp;&amp;p&gt;u&amp;&amp;(p=u,a=o);e=a}return e},_insert:function(t,e,i){var n=this.toBBox,r=i?t.bbox:n(t),o=[],a=this._chooseSubtree(r,this.data,e,o);for(a.children.push(t),s(a.bbox,r);e&gt;=0&amp;&amp;o[e].children.length&gt;this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(r,o,e)},_split:function(t,e){var n=t[e],r=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,r);var o={children:n.children.splice(this._chooseSplitIndex(n,s,r)),height:n.height};n.leaf&amp;&amp;(o.leaf=!0),i(n,this.toBBox),i(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(n,o)},_splitRoot:function(t,e){this.data={children:[t,e],height:t.height+1},i(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var r,s,o,a,u,h,p,d;for(h=p=1/0,r=e;i-e&gt;=r;r++)s=n(t,0,r,this.toBBox),o=n(t,r,i,this.toBBox),a=c(s,o),u=l(s)+l(o),h&gt;a?(h=a,d=r,p=p&gt;u?u:p):a===h&amp;&amp;p&gt;u&amp;&amp;(p=u,d=r);return d},_chooseSplitAxis:function(t,e,i){var n=t.leaf?this.compareMinX:o,r=t.leaf?this.compareMinY:a,s=this._allDistMargin(t,e,i,n),l=this._allDistMargin(t,e,i,r);l&gt;s&amp;&amp;t.children.sort(n)},_allDistMargin:function(t,e,i,r){t.children.sort(r);var o,a,l=this.toBBox,h=n(t,0,e,l),c=n(t,i-e,i,l),p=u(h)+u(c);for(o=e;i-e&gt;o;o++)a=t.children[o],s(h,t.leaf?l(a):a.bbox),p+=u(h);for(o=i-e-1;o&gt;=e;o--)a=t.children[o],s(c,t.leaf?l(a):a.bbox),p+=u(c);return p},_adjustParentBBoxes:function(t,e,i){for(var n=i;n&gt;=0;n--)s(e[n].bbox,t)},_condense:function(t){for(var e,n=t.length-1;n&gt;=0;n--)0===t[n].children.length?n&gt;0?(e=t[n-1].children,e.splice(e.indexOf(t[n]),1)):this.clear():i(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return [a"+t.join(", a")+"];")}},"function"==typeof define&amp;&amp;define.amd?define("rbush",function(){return t}):"undefined"!=typeof e?e.exports=t:"undefined"!=typeof self?self.rbush=t:window.rbush=t}()},{}],90:[function(t,e,i){var n=function(){function t(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function e(t,e){for(var i=[];e&gt;0;i[--e]=t);return i.join("")}var i=function(){return i.cache.hasOwnProperty(arguments[0])||(i.cache[arguments[0]]=i.parse(arguments[0])),i.format.call(null,i.cache[arguments[0]],arguments)};return i.object_stringify=function(t,e,n,r){var s="";if(null!=t)switch(typeof t){case"function":return"[Function"+(t.name?": "+t.name:"")+"]";case"object":if(t instanceof Error)return"["+t.toString()+"]";if(e&gt;=n)return"[Object]";if(r&amp;&amp;(r=r.slice(0),r.push(t)),null!=t.length){s+="[";var o=[];for(var a in t)r&amp;&amp;r.indexOf(t[a])&gt;=0?o.push("[Circular]"):o.push(i.object_stringify(t[a],e+1,n,r));s+=o.join(", ")+"]"}else{if("getMonth"in t)return"Date("+t+")";s+="{";var o=[];for(var l in t)t.hasOwnProperty(l)&amp;&amp;(r&amp;&amp;r.indexOf(t[l])&gt;=0?o.push(l+": [Circular]"):o.push(l+": "+i.object_stringify(t[l],e+1,n,r)));s+=o.join(", ")+"}"}return s;case"string":return'"'+t+'"'}return""+t},i.format=function(r,s){var o,a,l,u,h,c,p,d=1,f=r.length,g="",m=[];for(a=0;f&gt;a;a++)if(g=t(r[a]),"string"===g)m.push(r[a]);else if("array"===g){if(u=r[a],u[2])for(o=s[d],l=0;l&lt;u[2].length;l++){if(!o.hasOwnProperty(u[2][l]))throw new Error(n('[sprintf] property "%s" does not exist',u[2][l]));o=o[u[2][l]]}else o=u[1]?s[u[1]]:s[d++];if(/[^sO]/.test(u[8])&amp;&amp;"number"!=t(o))throw new Error(n('[sprintf] expecting number but found %s "'+o+'"',t(o)));switch(u[8]){case"b":o=o.toString(2);break;case"c":o=String.fromCharCode(o);break;case"d":o=parseInt(o,10);break;case"e":o=u[7]?o.toExponential(u[7]):o.toExponential();break;case"f":o=u[7]?parseFloat(o).toFixed(u[7]):parseFloat(o);break;case"O":o=i.object_stringify(o,0,parseInt(u[7])||5);break;case"o":o=o.toString(8);break;case"s":o=(o=String(o))&amp;&amp;u[7]?o.substring(0,u[7]):o;break;case"u":o=Math.abs(o);break;case"x":o=o.toString(16);break;case"X":o=o.toString(16).toUpperCase()}o=/[def]/.test(u[8])&amp;&amp;u[3]&amp;&amp;o&gt;=0?"+"+o:o,c=u[4]?"0"==u[4]?"0":u[4].charAt(1):" ",p=u[6]-String(o).length,h=u[6]?e(c,p):"",m.push(u[5]?o+h:h+o)}return m.join("")},i.cache={},i.parse=function(t){for(var e=t,i=[],n=[],r=0;e;){if(null!==(i=/^[^\x25]+/.exec(e)))n.push(i[0]);else if(null!==(i=/^\x25{2}/.exec(e)))n.push("%");else{if(null===(i=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosOuxX])/.exec(e)))throw new Error("[sprintf] "+e);if(i[2]){r|=1;var s=[],o=i[2],a=[];if(null===(a=/^([a-z_][a-z_\d]*)/i.exec(o)))throw new Error("[sprintf] "+o);for(s.push(a[1]);""!==(o=o.substring(a[0].length));)if(null!==(a=/^\.([a-z_][a-z_\d]*)/i.exec(o)))s.push(a[1]);else{if(null===(a=/^\[(\d+)\]/.exec(o)))throw new Error("[sprintf] "+o);s.push(a[1])}i[2]=s}else r|=2;if(3===r)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push(i)}e=e.substring(i[0].length)}return n},i}(),r=function(t,e){var i=e.slice();return i.unshift(t),n.apply(null,i)};e.exports=n,n.sprintf=n,n.vsprintf=r},{}],91:[function(t,e,i){!function(t){"object"==typeof e&amp;&amp;e.exports?e.exports=t():"function"==typeof define?define(t):this.tz=t()}(function(){function t(t,e,i){var n,r=e.day[1];do n=new Date(Date.UTC(i,e.month,Math.abs(r++)));while(e.day[0]&lt;7&amp;&amp;n.getUTCDay()!=e.day[0]);return n={clock:e.clock,sort:n.getTime(),rule:e,save:6e4*e.save,offset:t.offset},n[n.clock]=n.sort+6e4*e.time,n.posix?n.wallclock=n[n.clock]+(t.offset+e.saved):n.posix=n[n.clock]-(t.offset+e.saved),n}function e(e,i,n){var r,s,o,a,l,u,h,c=e[e.zone],p=[],d=new Date(n).getUTCFullYear(),f=1;for(r=1,s=c.length;s&gt;r&amp;&amp;!(c[r][i]&lt;=n);r++);if(o=c[r],o.rules){for(u=e[o.rules],h=d+1;h&gt;=d-f;--h)for(r=0,s=u.length;s&gt;r;r++)u[r].from&lt;=h&amp;&amp;h&lt;=u[r].to?p.push(t(o,u[r],h)):u[r].to&lt;h&amp;&amp;1==f&amp;&amp;(f=h-u[r].to);for(p.sort(function(t,e){return t.sort-e.sort}),r=0,s=p.length;s&gt;r;r++)n&gt;=p[r][i]&amp;&amp;p[r][p[r].clock]&gt;o[p[r].clock]&amp;&amp;(a=p[r])}return a&amp;&amp;((l=/^(.*)\/(.*)$/.exec(o.format))?a.abbrev=l[a.save?2:1]:a.abbrev=o.format.replace(/%s/,a.rule.letter)),a||o}function i(t,i){return"UTC"==t.zone?i:(t.entry=e(t,"posix",i),i+t.entry.offset+t.entry.save)}function n(t,i){if("UTC"==t.zone)return i;var n,r;return t.entry=n=e(t,"wallclock",i),r=i-n.wallclock,r&gt;0&amp;&amp;r&lt;n.save?null:i-n.offset-n.save}function r(t,e,r){var s,o=+(r[1]+1),a=r[2]*o,l=u.indexOf(r[3].toLowerCase());if(l&gt;9)e+=a*c[l-10];else{if(s=new Date(i(t,e)),7&gt;l)for(;a;)s.setUTCDate(s.getUTCDate()+o),s.getUTCDay()==l&amp;&amp;(a-=o);else 7==l?s.setUTCFullYear(s.getUTCFullYear()+a):8==l?s.setUTCMonth(s.getUTCMonth()+a):s.setUTCDate(s.getUTCDate()+a);null==(e=n(t,s.getTime()))&amp;&amp;(e=n(t,s.getTime()+864e5*o)-864e5*o)}return e}function s(t){if(!t.length)return"0.0.38";var e,s,o,a,l,u=Object.create(this),c=[];for(e=0;e&lt;t.length;e++)if(a=t[e],Array.isArray(a))e||isNaN(a[1])?a.splice.apply(t,[e--,1].concat(a)):l=a;else if(isNaN(a)){if(o=typeof a,"string"==o)~a.indexOf("%")?u.format=a:e||"*"!=a?!e&amp;&amp;(o=/^(\d{4})-(\d{2})-(\d{2})(?:[T\s](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|(([+-])(\d{2}(:\d{2}){0,2})))?)?$/.exec(a))?(l=[],l.push.apply(l,o.slice(1,8)),o[9]?(l.push(o[10]+1),l.push.apply(l,o[11].split(/:/))):o[8]&amp;&amp;l.push(1)):/^\w{2,3}_\w{2}$/.test(a)?u.locale=a:(o=h.exec(a))?c.push(o):u.zone=a:l=a;else if("function"==o){if(o=a.call(u))return o}else if(/^\w{2,3}_\w{2}$/.test(a.name))u[a.name]=a;else if(a.zones){for(o in a.zones)u[o]=a.zones[o];for(o in a.rules)u[o]=a.rules[o]}}else e||(l=a);if(u[u.locale]||delete u.locale,u[u.zone]||delete u.zone,null!=l){if("*"==l)l=u.clock();else if(Array.isArray(l)){for(s=!l[7],e=0;11&gt;e;e++)l[e]=+(l[e]||0);--l[1],l=Date.UTC.apply(Date.UTC,l.slice(0,8))+-l[7]*(36e5*l[8]+6e4*l[9]+1e3*l[10])}else l=Math.floor(l);if(!isNaN(l)){if(s&amp;&amp;(l=n(u,l)),null==l)return l;for(e=0,s=c.length;s&gt;e;e++)l=r(u,l,c[e]);return u.format?(o=new Date(i(u,l)),u.format.replace(/%([-0_^]?)(:{0,3})(\d*)(.)/g,function(t,e,i,n,r){var s,a,h="0";if(s=u[r]){for(t=String(s.call(u,o,l,e,i.length)),"_"==(e||s.style)&amp;&amp;(h=" "),a="-"==e?0:s.pad||0;t.length&lt;a;)t=h+t;for(a="-"==e?0:n||s.pad;t.length&lt;a;)t=h+t;"N"==r&amp;&amp;a&lt;t.length&amp;&amp;(t=t.slice(0,a)),"^"==e&amp;&amp;(t=t.toUpperCase())}return t})):l}}return function(){return u.convert(arguments)}}function o(t,e){var i,n,r;return n=new Date(Date.UTC(t.getUTCFullYear(),0)),i=Math.floor((t.getTime()-n.getTime())/864e5),n.getUTCDay()==e?r=0:(r=7-n.getUTCDay()+e,8==r&amp;&amp;(r=1)),i&gt;=r?Math.floor((i-r)/7)+1:0}function a(t){var e,i,n;return i=t.getUTCFullYear(),e=new Date(Date.UTC(i,0)).getUTCDay(),n=o(t,1)+(e&gt;1&amp;&amp;4&gt;=e?1:0),n?53!=n||4==e||3==e&amp;&amp;29==new Date(i,1,29).getDate()?[n,t.getUTCFullYear()]:[1,t.getUTCFullYear()+1]:(i=t.getUTCFullYear()-1,e=new Date(Date.UTC(i,0)).getUTCDay(),n=4==e||3==e&amp;&amp;29==new Date(i,1,29).getDate()?53:52,[n,t.getUTCFullYear()-1])}var l={clock:function(){return+new Date},zone:"UTC",entry:{abbrev:"UTC",offset:0,save:0},UTC:1,z:function(t,e,i,n){var r,s,o=this.entry.offset+this.entry.save,a=Math.abs(o/1e3),l=[],u=3600;for(r=0;3&gt;r;r++)l.push(("0"+Math.floor(a/u)).slice(-2)),a%=u,u/=60;return"^"!=i||o?("^"==i&amp;&amp;(n=3),3==n?(s=l.join(":"),s=s.replace(/:00$/,""),"^"!=i&amp;&amp;(s=s.replace(/:00$/,""))):n?(s=l.slice(0,n+1).join(":"),"^"==i&amp;&amp;(s=s.replace(/:00$/,""))):s=l.slice(0,2).join(""),s=(0&gt;o?"-":"+")+s,s=s.replace(/([-+])(0)/,{_:" $1","-":"$1"}[i]||"$1$2")):"Z"},"%":function(t){return"%"},n:function(t){return"\n"},t:function(t){return"	"},U:function(t){return o(t,0)},W:function(t){return o(t,1)},V:function(t){return a(t)[0]},G:function(t){return a(t)[1]},g:function(t){return a(t)[1]%100},j:function(t){return Math.floor((t.getTime()-Date.UTC(t.getUTCFullYear(),0))/864e5)+1},s:function(t){return Math.floor(t.getTime()/1e3)},C:function(t){return Math.floor(t.getUTCFullYear()/100)},N:function(t){return t.getTime()%1e3*1e6},m:function(t){return t.getUTCMonth()+1},Y:function(t){return t.getUTCFullYear()},y:function(t){return t.getUTCFullYear()%100},H:function(t){return t.getUTCHours()},M:function(t){return t.getUTCMinutes()},S:function(t){return t.getUTCSeconds()},e:function(t){return t.getUTCDate()},d:function(t){return t.getUTCDate()},u:function(t){return t.getUTCDay()||7},w:function(t){return t.getUTCDay()},l:function(t){return t.getUTCHours()%12||12},I:function(t){return t.getUTCHours()%12||12},k:function(t){return t.getUTCHours()},Z:function(t){return this.entry.abbrev},a:function(t){return this[this.locale].day.abbrev[t.getUTCDay()]},A:function(t){return this[this.locale].day.full[t.getUTCDay()]},h:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},b:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},B:function(t){return this[this.locale].month.full[t.getUTCMonth()]},P:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)].toLowerCase()},p:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)]},R:function(t,e){return this.convert([e,"%H:%M"])},T:function(t,e){return this.convert([e,"%H:%M:%S"])},D:function(t,e){return this.convert([e,"%m/%d/%y"])},F:function(t,e){return this.convert([e,"%Y-%m-%d"])},x:function(t,e){return this.convert([e,this[this.locale].date])},r:function(t,e){return this.convert([e,this[this.locale].time12||"%I:%M:%S"])},X:function(t,e){return this.convert([e,this[this.locale].time24])},c:function(t,e){return this.convert([e,this[this.locale].dateTime])},convert:s,locale:"en_US",en_US:{date:"%m/%d/%Y",time24:"%I:%M:%S %p",time12:"%I:%M:%S %p",dateTime:"%a %d %b %Y %I:%M:%S %p %Z",meridiem:["AM","PM"],month:{abbrev:"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|"),full:"January|February|March|April|May|June|July|August|September|October|November|December".split("|")},day:{abbrev:"Sun|Mon|Tue|Wed|Thu|Fri|Sat".split("|"),full:"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday".split("|")}}},u="Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond",h=new RegExp("^\\s*([+-])(\\d+)\\s+("+u+")s?\\s*$","i"),c=[36e5,6e4,1e3,1];return u=u.toLowerCase().split("|"),"delmHMSUWVgCIky".replace(/./g,function(t){l[t].pad=2}),l.N.pad=9,l.j.pad=3,l.k.style="_",l.l.style="_",l.e.style="_",function(){return l.convert(arguments)}})},{}],92:[function(t,e,i){(function(){function t(t){function e(e,i,n,r,s,o){for(;s&gt;=0&amp;&amp;o&gt;s;s+=t){var a=r?r[s]:s;n=i(n,e[a],a,e)}return n}return function(i,n,r,s){n=w(n,s,4);var o=!S(i)&amp;&amp;b.keys(i),a=(o||i).length,l=t&gt;0?0:a-1;return arguments.length&lt;3&amp;&amp;(r=i[o?o[l]:l],l+=t),e(i,n,r,o,l,a)}}function n(t){return function(e,i,n){i=x(i,n);for(var r=T(e),s=t&gt;0?0:r-1;s&gt;=0&amp;&amp;r&gt;s;s+=t)if(i(e[s],s,e))return s;return-1}}function r(t,e,i){return function(n,r,s){var o=0,a=T(n);if("number"==typeof s)t&gt;0?o=s&gt;=0?s:Math.max(s+a,o):a=s&gt;=0?Math.min(s+1,a):s+a+1;else if(i&amp;&amp;s&amp;&amp;a)return s=i(n,r),n[s]===r?s:-1;if(r!==r)return s=e(p.call(n,o,a),b.isNaN),s&gt;=0?s+o:-1;for(s=t&gt;0?o:a-1;s&gt;=0&amp;&amp;a&gt;s;s+=t)if(n[s]===r)return s;return-1}}function s(t,e){var i=N.length,n=t.constructor,r=b.isFunction(n)&amp;&amp;n.prototype||u,s="constructor";for(b.has(t,s)&amp;&amp;!b.contains(e,s)&amp;&amp;e.push(s);i--;)s=N[i],s in t&amp;&amp;t[s]!==r[s]&amp;&amp;!b.contains(e,s)&amp;&amp;e.push(s)}var o=this,a=o._,l=Array.prototype,u=Object.prototype,h=Function.prototype,c=l.push,p=l.slice,d=u.toString,f=u.hasOwnProperty,g=Array.isArray,m=Object.keys,_=h.bind,v=Object.create,y=function(){},b=function(t){return t instanceof b?t:this instanceof b?void(this._wrapped=t):new b(t)};"undefined"!=typeof i?("undefined"!=typeof e&amp;&amp;e.exports&amp;&amp;(i=e.exports=b),i._=b):o._=b,b.VERSION="1.8.3";var w=function(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)};case 4:return function(i,n,r,s){return t.call(e,i,n,r,s)}}return function(){return t.apply(e,arguments)}},x=function(t,e,i){return null==t?b.identity:b.isFunction(t)?w(t,e,i):b.isObject(t)?b.matcher(t):b.property(t)};b.iteratee=function(t,e){return x(t,e,1/0)};var k=function(t,e){return function(i){var n=arguments.length;if(2&gt;n||null==i)return i;for(var r=1;n&gt;r;r++)for(var s=arguments[r],o=t(s),a=o.length,l=0;a&gt;l;l++){var u=o[l];e&amp;&amp;void 0!==i[u]||(i[u]=s[u])}return i}},M=function(t){if(!b.isObject(t))return{};if(v)return v(t);y.prototype=t;var e=new y;return y.prototype=null,e},C=function(t){return function(e){return null==e?void 0:e[t]}},D=Math.pow(2,53)-1,T=C("length"),S=function(t){var e=T(t);return"number"==typeof e&amp;&amp;e&gt;=0&amp;&amp;D&gt;=e};b.each=b.forEach=function(t,e,i){e=w(e,i);var n,r;if(S(t))for(n=0,r=t.length;r&gt;n;n++)e(t[n],n,t);else{var s=b.keys(t);for(n=0,r=s.length;r&gt;n;n++)e(t[s[n]],s[n],t)}return t},b.map=b.collect=function(t,e,i){e=x(e,i);for(var n=!S(t)&amp;&amp;b.keys(t),r=(n||t).length,s=Array(r),o=0;r&gt;o;o++){var a=n?n[o]:o;s[o]=e(t[a],a,t)}return s},b.reduce=b.foldl=b.inject=t(1),b.reduceRight=b.foldr=t(-1),b.find=b.detect=function(t,e,i){var n;return n=S(t)?b.findIndex(t,e,i):b.findKey(t,e,i),void 0!==n&amp;&amp;-1!==n?t[n]:void 0},b.filter=b.select=function(t,e,i){var n=[];return e=x(e,i),b.each(t,function(t,i,r){e(t,i,r)&amp;&amp;n.push(t)}),n},b.reject=function(t,e,i){return b.filter(t,b.negate(x(e)),i)},b.every=b.all=function(t,e,i){e=x(e,i);for(var n=!S(t)&amp;&amp;b.keys(t),r=(n||t).length,s=0;r&gt;s;s++){var o=n?n[s]:s;if(!e(t[o],o,t))return!1}return!0},b.some=b.any=function(t,e,i){e=x(e,i);for(var n=!S(t)&amp;&amp;b.keys(t),r=(n||t).length,s=0;r&gt;s;s++){var o=n?n[s]:s;if(e(t[o],o,t))return!0}return!1},b.contains=b.includes=b.include=function(t,e,i,n){return S(t)||(t=b.values(t)),("number"!=typeof i||n)&amp;&amp;(i=0),b.indexOf(t,e,i)&gt;=0},b.invoke=function(t,e){var i=p.call(arguments,2),n=b.isFunction(e);return b.map(t,function(t){var r=n?e:t[e];return null==r?r:r.apply(t,i)})},b.pluck=function(t,e){return b.map(t,b.property(e))},b.where=function(t,e){return b.filter(t,b.matcher(e))},b.findWhere=function(t,e){return b.find(t,b.matcher(e))},b.max=function(t,e,i){var n,r,s=-(1/0),o=-(1/0);if(null==e&amp;&amp;null!=t){t=S(t)?t:b.values(t);for(var a=0,l=t.length;l&gt;a;a++)n=t[a],n&gt;s&amp;&amp;(s=n)}else e=x(e,i),b.each(t,function(t,i,n){r=e(t,i,n),(r&gt;o||r===-(1/0)&amp;&amp;s===-(1/0))&amp;&amp;(s=t,o=r)});return s},b.min=function(t,e,i){var n,r,s=1/0,o=1/0;if(null==e&amp;&amp;null!=t){t=S(t)?t:b.values(t);for(var a=0,l=t.length;l&gt;a;a++)n=t[a],s&gt;n&amp;&amp;(s=n)}else e=x(e,i),b.each(t,function(t,i,n){r=e(t,i,n),(o&gt;r||r===1/0&amp;&amp;s===1/0)&amp;&amp;(s=t,o=r)});return s},b.shuffle=function(t){for(var e,i=S(t)?t:b.values(t),n=i.length,r=Array(n),s=0;n&gt;s;s++)e=b.random(0,s),e!==s&amp;&amp;(r[s]=r[e]),r[e]=i[s];return r},b.sample=function(t,e,i){return null==e||i?(S(t)||(t=b.values(t)),t[b.random(t.length-1)]):b.shuffle(t).slice(0,Math.max(0,e))},b.sortBy=function(t,e,i){return e=x(e,i),b.pluck(b.map(t,function(t,i,n){return{value:t,index:i,criteria:e(t,i,n)}}).sort(function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i&gt;n||void 0===i)return 1;if(n&gt;i||void 0===n)return-1}return t.index-e.index}),"value")};var A=function(t){return function(e,i,n){var r={};return i=x(i,n),b.each(e,function(n,s){var o=i(n,s,e);t(r,n,o)}),r}};b.groupBy=A(function(t,e,i){b.has(t,i)?t[i].push(e):t[i]=[e]}),b.indexBy=A(function(t,e,i){t[i]=e}),b.countBy=A(function(t,e,i){b.has(t,i)?t[i]++:t[i]=1}),b.toArray=function(t){return t?b.isArray(t)?p.call(t):S(t)?b.map(t,b.identity):b.values(t):[]},b.size=function(t){return null==t?0:S(t)?t.length:b.keys(t).length},b.partition=function(t,e,i){e=x(e,i);var n=[],r=[];return b.each(t,function(t,i,s){(e(t,i,s)?n:r).push(t)}),[n,r]},b.first=b.head=b.take=function(t,e,i){return null==t?void 0:null==e||i?t[0]:b.initial(t,t.length-e)},b.initial=function(t,e,i){return p.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))},b.last=function(t,e,i){return null==t?void 0:null==e||i?t[t.length-1]:b.rest(t,Math.max(0,t.length-e))},b.rest=b.tail=b.drop=function(t,e,i){return p.call(t,null==e||i?1:e)},b.compact=function(t){return b.filter(t,b.identity)};var P=function(t,e,i,n){for(var r=[],s=0,o=n||0,a=T(t);a&gt;o;o++){var l=t[o];if(S(l)&amp;&amp;(b.isArray(l)||b.isArguments(l))){e||(l=P(l,e,i));var u=0,h=l.length;for(r.length+=h;h&gt;u;)r[s++]=l[u++]}else i||(r[s++]=l)}return r};b.flatten=function(t,e){return P(t,e,!1)},b.without=function(t){return b.difference(t,p.call(arguments,1))},b.uniq=b.unique=function(t,e,i,n){b.isBoolean(e)||(n=i,i=e,e=!1),null!=i&amp;&amp;(i=x(i,n));for(var r=[],s=[],o=0,a=T(t);a&gt;o;o++){var l=t[o],u=i?i(l,o,t):l;e?(o&amp;&amp;s===u||r.push(l),s=u):i?b.contains(s,u)||(s.push(u),r.push(l)):b.contains(r,l)||r.push(l)}return r},b.union=function(){return b.uniq(P(arguments,!0,!0))},b.intersection=function(t){for(var e=[],i=arguments.length,n=0,r=T(t);r&gt;n;n++){var s=t[n];if(!b.contains(e,s)){for(var o=1;i&gt;o&amp;&amp;b.contains(arguments[o],s);o++);o===i&amp;&amp;e.push(s)}}return e},b.difference=function(t){var e=P(arguments,!0,!0,1);return b.filter(t,function(t){return!b.contains(e,t)})},b.zip=function(){return b.unzip(arguments)},b.unzip=function(t){for(var e=t&amp;&amp;b.max(t,T).length||0,i=Array(e),n=0;e&gt;n;n++)i[n]=b.pluck(t,n);return i},b.object=function(t,e){for(var i={},n=0,r=T(t);r&gt;n;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i},b.findIndex=n(1),b.findLastIndex=n(-1),b.sortedIndex=function(t,e,i,n){i=x(i,n,1);for(var r=i(e),s=0,o=T(t);o&gt;s;){var a=Math.floor((s+o)/2);i(t[a])&lt;r?s=a+1:o=a}return s},b.indexOf=r(1,b.findIndex,b.sortedIndex),b.lastIndexOf=r(-1,b.findLastIndex),b.range=function(t,e,i){null==e&amp;&amp;(e=t||0,t=0),i=i||1;for(var n=Math.max(Math.ceil((e-t)/i),0),r=Array(n),s=0;n&gt;s;s++,t+=i)r[s]=t;return r};var E=function(t,e,i,n,r){if(!(n instanceof e))return t.apply(i,r);var s=M(t.prototype),o=t.apply(s,r);return b.isObject(o)?o:s};b.bind=function(t,e){if(_&amp;&amp;t.bind===_)return _.apply(t,p.call(arguments,1));if(!b.isFunction(t))throw new TypeError("Bind must be called on a function");var i=p.call(arguments,2),n=function(){return E(t,n,e,this,i.concat(p.call(arguments)))};return n},b.partial=function(t){var e=p.call(arguments,1),i=function(){for(var n=0,r=e.length,s=Array(r),o=0;r&gt;o;o++)s[o]=e[o]===b?arguments[n++]:e[o];for(;n&lt;arguments.length;)s.push(arguments[n++]);return E(t,i,this,this,s)};return i},b.bindAll=function(t){var e,i,n=arguments.length;if(1&gt;=n)throw new Error("bindAll must be passed function names");for(e=1;n&gt;e;e++)i=arguments[e],t[i]=b.bind(t[i],t);return t},b.memoize=function(t,e){var i=function(n){var r=i.cache,s=""+(e?e.apply(this,arguments):n);return b.has(r,s)||(r[s]=t.apply(this,arguments)),r[s]};return i.cache={},i},b.delay=function(t,e){var i=p.call(arguments,2);return setTimeout(function(){return t.apply(null,i)},e)},b.defer=b.partial(b.delay,b,1),b.throttle=function(t,e,i){var n,r,s,o=null,a=0;i||(i={});var l=function(){a=i.leading===!1?0:b.now(),o=null,s=t.apply(n,r),o||(n=r=null)};return function(){var u=b.now();a||i.leading!==!1||(a=u);var h=e-(u-a);return n=this,r=arguments,0&gt;=h||h&gt;e?(o&amp;&amp;(clearTimeout(o),o=null),a=u,s=t.apply(n,r),o||(n=r=null)):o||i.trailing===!1||(o=setTimeout(l,h)),s}},b.debounce=function(t,e,i){var n,r,s,o,a,l=function(){var u=b.now()-o;e&gt;u&amp;&amp;u&gt;=0?n=setTimeout(l,e-u):(n=null,i||(a=t.apply(s,r),n||(s=r=null)))};return function(){s=this,r=arguments,o=b.now();var u=i&amp;&amp;!n;return n||(n=setTimeout(l,e)),u&amp;&amp;(a=t.apply(s,r),s=r=null),a}},b.wrap=function(t,e){return b.partial(e,t)},b.negate=function(t){return function(){return!t.apply(this,arguments)}},b.compose=function(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}},b.after=function(t,e){return function(){return--t&lt;1?e.apply(this,arguments):void 0}},b.before=function(t,e){var i;return function(){return--t&gt;0&amp;&amp;(i=e.apply(this,arguments)),1&gt;=t&amp;&amp;(e=null),i}},b.once=b.partial(b.before,2);var I=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];b.keys=function(t){if(!b.isObject(t))return[];if(m)return m(t);var e=[];for(var i in t)b.has(t,i)&amp;&amp;e.push(i);return I&amp;&amp;s(t,e),e},b.allKeys=function(t){if(!b.isObject(t))return[];var e=[];for(var i in t)e.push(i);return I&amp;&amp;s(t,e),e},b.values=function(t){for(var e=b.keys(t),i=e.length,n=Array(i),r=0;i&gt;r;r++)n[r]=t[e[r]];return n},b.mapObject=function(t,e,i){e=x(e,i);for(var n,r=b.keys(t),s=r.length,o={},a=0;s&gt;a;a++)n=r[a],o[n]=e(t[n],n,t);return o},b.pairs=function(t){for(var e=b.keys(t),i=e.length,n=Array(i),r=0;i&gt;r;r++)n[r]=[e[r],t[e[r]]];return n},b.invert=function(t){for(var e={},i=b.keys(t),n=0,r=i.length;r&gt;n;n++)e[t[i[n]]]=i[n];return e},b.functions=b.methods=function(t){var e=[];for(var i in t)b.isFunction(t[i])&amp;&amp;e.push(i);return e.sort()},b.extend=k(b.allKeys),b.extendOwn=b.assign=k(b.keys),b.findKey=function(t,e,i){e=x(e,i);for(var n,r=b.keys(t),s=0,o=r.length;o&gt;s;s++)if(n=r[s],e(t[n],n,t))return n},b.pick=function(t,e,i){var n,r,s={},o=t;if(null==o)return s;b.isFunction(e)?(r=b.allKeys(o),n=w(e,i)):(r=P(arguments,!1,!1,1),n=function(t,e,i){return e in i},o=Object(o));for(var a=0,l=r.length;l&gt;a;a++){var u=r[a],h=o[u];n(h,u,o)&amp;&amp;(s[u]=h)}return s},b.omit=function(t,e,i){if(b.isFunction(e))e=b.negate(e);else{var n=b.map(P(arguments,!1,!1,1),String);e=function(t,e){return!b.contains(n,e)}}return b.pick(t,e,i)},b.defaults=k(b.allKeys,!0),b.create=function(t,e){var i=M(t);return e&amp;&amp;b.extendOwn(i,e),i},b.clone=function(t){return b.isObject(t)?b.isArray(t)?t.slice():b.extend({},t):t},b.tap=function(t,e){return e(t),t},b.isMatch=function(t,e){var i=b.keys(e),n=i.length;if(null==t)return!n;for(var r=Object(t),s=0;n&gt;s;s++){var o=i[s];if(e[o]!==r[o]||!(o in r))return!1}return!0};var R=function(t,e,i,n){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof b&amp;&amp;(t=t._wrapped),e instanceof b&amp;&amp;(e=e._wrapped);var r=d.call(t);if(r!==d.call(e))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var s="[object Array]"===r;if(!s){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,a=e.constructor;if(o!==a&amp;&amp;!(b.isFunction(o)&amp;&amp;o instanceof o&amp;&amp;b.isFunction(a)&amp;&amp;a instanceof a)&amp;&amp;"constructor"in t&amp;&amp;"constructor"in e)return!1}i=i||[],n=n||[];for(var l=i.length;l--;)if(i[l]===t)return n[l]===e;if(i.push(t),n.push(e),s){if(l=t.length,l!==e.length)return!1;for(;l--;)if(!R(t[l],e[l],i,n))return!1}else{var u,h=b.keys(t);if(l=h.length,b.keys(e).length!==l)return!1;for(;l--;)if(u=h[l],!b.has(e,u)||!R(t[u],e[u],i,n))return!1}return i.pop(),n.pop(),!0};b.isEqual=function(t,e){return R(t,e)},b.isEmpty=function(t){return null==t?!0:S(t)&amp;&amp;(b.isArray(t)||b.isString(t)||b.isArguments(t))?0===t.length:0===b.keys(t).length},b.isElement=function(t){return!(!t||1!==t.nodeType)},b.isArray=g||function(t){return"[object Array]"===d.call(t)},b.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&amp;&amp;!!t},b.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){b["is"+t]=function(e){return d.call(e)==="[object "+t+"]"}}),b.isArguments(arguments)||(b.isArguments=function(t){return b.has(t,"callee")}),"function"!=typeof/./&amp;&amp;"object"!=typeof Int8Array&amp;&amp;(b.isFunction=function(t){return"function"==typeof t||!1}),b.isFinite=function(t){return isFinite(t)&amp;&amp;!isNaN(parseFloat(t))},b.isNaN=function(t){return b.isNumber(t)&amp;&amp;t!==+t},b.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===d.call(t)},b.isNull=function(t){return null===t},b.isUndefined=function(t){return void 0===t},b.has=function(t,e){return null!=t&amp;&amp;f.call(t,e)},b.noConflict=function(){return o._=a,this},b.identity=function(t){return t},b.constant=function(t){return function(){return t}},b.noop=function(){},b.property=C,b.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},b.matcher=b.matches=function(t){return t=b.extendOwn({},t),function(e){return b.isMatch(e,t)}},b.times=function(t,e,i){var n=Array(Math.max(0,t));e=w(e,i,1);for(var r=0;t&gt;r;r++)n[r]=e(r);return n},b.random=function(t,e){return null==e&amp;&amp;(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},b.now=Date.now||function(){return(new Date).getTime()};var z={"&amp;":"&amp;amp;","&lt;":"&amp;lt;","&gt;":"&amp;gt;",'"':"&amp;quot;","'":"&amp;#x27;","`":"&amp;#x60;"},j=b.invert(z),O=function(t){var e=function(e){return t[e]},i="(?:"+b.keys(t).join("|")+")",n=RegExp(i),r=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(r,e):t}};b.escape=O(z),b.unescape=O(j),b.result=function(t,e,i){var n=null==t?void 0:t[e];return void 0===n&amp;&amp;(n=i),b.isFunction(n)?n.call(t):n};var F=0;b.uniqueId=function(t){var e=++F+"";return t?t+e:e},b.templateSettings={evaluate:/&lt;%([\s\S]+?)%&gt;/g,interpolate:/&lt;%=([\s\S]+?)%&gt;/g,escape:/&lt;%-([\s\S]+?)%&gt;/g};var L=/(.)^/,H={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},B=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+H[t]};b.template=function(t,e,i){!e&amp;&amp;i&amp;&amp;(e=i),e=b.defaults({},e,b.templateSettings);var n=RegExp([(e.escape||L).source,(e.interpolate||L).source,(e.evaluate||L).source].join("|")+"|$","g"),r=0,s="__p+='";t.replace(n,function(e,i,n,o,a){return s+=t.slice(r,a).replace(B,W),r=a+e.length,i?s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":o&amp;&amp;(s+="';\n"+o+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var o=new Function(e.variable||"obj","_",s)}catch(a){throw a.source=s,a}var l=function(t){return o.call(this,t,b)},u=e.variable||"obj";return l.source="function("+u+"){\n"+s+"}",l},b.chain=function(t){var e=b(t);return e._chain=!0,e};var q=function(t,e){return t._chain?b(e).chain():e};b.mixin=function(t){b.each(b.functions(t),function(e){var i=b[e]=t[e];b.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),q(this,i.apply(b,t))}})},b.mixin(b),b.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=l[t];b.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),"shift"!==t&amp;&amp;"splice"!==t||0!==i.length||delete i[0],q(this,i)}}),b.each(["concat","join","slice"],function(t){var e=l[t];b.prototype[t]=function(){return q(this,e.apply(this._wrapped,arguments))}}),b.prototype.value=function(){return this._wrapped},b.prototype.valueOf=b.prototype.toJSON=b.prototype.value,b.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&amp;&amp;define.amd&amp;&amp;define("underscore",[],function(){return b})}).call(this)},{}],93:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D;l=t("underscore"),w=t("../common/base"),o=t("../common/logging"),s=t("../range/factor_range"),a=t("../range/range1d"),r=t("../source/column_data_source"),k="./helpers",n=w.Collections,M=o.logger,h=function(t,e){return null==e?0:l.isNumber(e)?(1&gt;=e&amp;&amp;(M.error("num_minor_ticks must be &gt; 1"),e=0),e):"auto"===e?null!=t==="Log"?10:5:(M.error("unrecognized num_minor_ticks: "+e),0)},u=function(t,e){var i;if(null==t)return null;if("auto"===t){if(e instanceof s.Model)return n("CategoricalAxis");if(e instanceof a.Model){try{return new Date.parse(e.get("start")),n("DatetimeAxis")}catch(r){i=r}return n("LinearAxis")}}try{return n(t+"Axis")}catch(r){return i=r,M.error("unrecognized axis_type: "+t),null}},c=function(t){if(null==t)return n("DataRange1d").create();if(l.isArray(t)){if(l.every(t,l.isString))return n("FactorRange").create({factors:t});if(2===t.length&amp;&amp;l.every(t,l.isNumber))return n("Range1d").create({start:t[0],end:t[1]})}return M.error("Unrecognized range input: "+t.toJSON),null},p=function(t,e){return e instanceof r.Model?e:l.isString(e)?t[e]:n("ColumnDataSource").create({data:e})},d=function(t){var e;return e=[]},m=function(t,e){var i,r,s,o,a,u,h,c;for(h=[],r=0,s=t.length;s&gt;r;r++){o=t[r],l.isString(o)?(c=o+"Tool",a={plot:e}):(c=o.type+"Tool",a=l.omit(o,"type"));try{u=n(c).create(a),h.push(u)}catch(p){i=p,M.error("unrecognized tool: "+o)}}return h},f=function(t,e){var i,r,s,o,a,u,h,c,d,f,g,m,_,v,y,b;for(m=[],a=0,h=t.length;h&gt;a;a++){for(i=t[a],o=i.type,_=p(e,i.source),r=l.omit(i,"source","selection","inspection","nonselection"),s=n(o).create(r),g={data_source:_,glyph:s},d=["selection","inspection","nonselection"],u=0,c=d.length;c&gt;u;u++)v=d[u],null!=i[v]&amp;&amp;(null!=i[v].type?(y=l.omit(i[v],"type"),b=n(i[v].type).create(y)):(b=l.clone(s),b.set(i[v])),g[v]=b);f=n("GlyphRenderer").create(g),m.push(f)}return m},g=function(t,e){var i,r,s,o,a,h,c,p,d,f,g;for(c=[],p=0,d=t.length;d&gt;p;p++){if(h=t[p],f=h.location,"below"===f||"above"===f)o=0,g=e.get("x_range");else{if("left"!==f&amp;&amp;"right"!==f){M.error("unrecognized axis location: "+f);continue}o=1,g=e.get("y_range")}s=u(h.type,g),r=l.omit(h,"type","grid"),r.plot=e,i=s.create(r),c.push(i),h.grid===!0&amp;&amp;(a=n("Grid").create({
        dimension:o,plot:e,ticker:i.get("ticker")}),c.push(a))}return c},C=function(t){var e;return t.x_range=c(t.x_range),t.y_range=c(t.y_range),e=n("Plot").create(t)},D=function(t){var e,i,r;i={};for(e in t)r=t[e],i[e]=n("ColumnDataSource").create({data:r});return i},v=function(t,e,i){return i=f(i,e),t.add_renderers(i)},y=function(t,e){var i,n,r,s,o;for(e=g(e,t),n=0,r=e.length;r&gt;n;n++)i=e[n],o=i.get("location"),null!=o&amp;&amp;(s=t.get(o),s.push(i),t.set(o,s));return t.add_renderers(e)},_=function(t,e){return e=d(e),t.add_renderers(e)},b=function(t,e){var i,n,r;for(e=m(e,t),i=0,n=e.length;n&gt;i;i++)r=e[i],r.set("plot",t);return t.set_obj("tools",e),t.get("tool_manager").set_obj("tools",e),t.get("tool_manager")._init_tools()},x=function(t){var e,i,n,r,s,o,a;return r=t.options,o=t.sources,i=t.glyphs,n=t.guides,e=t.annotations,a=t.tools,null==r&amp;&amp;(r={}),null==o&amp;&amp;(o={}),null==i&amp;&amp;(i=[]),null==n&amp;&amp;(n=[]),null==e&amp;&amp;(e={}),null==a&amp;&amp;(a=[]),s=C(r),o=D(o),v(s,o,i),y(s,n),_(s,e),b(s,a),s},e.exports=x},{"../common/base":99,"../common/logging":119,"../range/factor_range":145,"../range/range1d":146,"../source/column_data_source":204,underscore:92}],94:[function(t,e,i){var n,r,s,o;r=t("underscore"),n=t("../common/logging"),s=n.logger,o=function(t,e){var i;return s.debug("Scheduling render for plot "+e+" on target "+t),i=function(){var i;return i=new e.default_view({model:e}),t.append(i.$el)},r.defer(i)},e.exports={show:o}},{"../common/logging":119,underscore:92}],95:[function(t,e,i){var n,r,s,o,a,l,u,h;s=t("underscore"),n=t("jquery"),r=t("../common/logging"),a=t("./figure"),l=t("./helpers"),u=r.logger,h=l.show,o={figure:a},n.fn.bokeh=function(t,e){var i;return t in o?(i=o[t](e),h(this,i),i):(u.error("Unknown API type '"+t+"'. Recognized API types: "+Object.keys(o)),this)},e.exports=n.fn.bokeh},{"../common/logging":119,"./figure":93,"./helpers":94,jquery:18,underscore:92}],96:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e}(n),s=function(t){var e;return e={},e.Model=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return o(i,e),i.prototype.type=t,i}(r),e},e.exports={AutoEncode:s("AutoEncode"),BinarySegment:s("BinarySegment"),Const:s("Const"),Contour:s("Contour"),Count:s("Count"),CountCategories:s("CountCategories"),Cuberoot:s("Cuberoot"),Encode:s("Encode"),HDAlpha:s("HDAlpha"),Id:s("Id"),Interpolate:s("Interpolate"),InterpolateColor:s("InterpolateColor"),Log:s("Log"),NonZero:s("NonZero"),Ratio:s("Ratio"),Seq:s("Seq"),Spread:s("Spread"),ToCounts:s("ToCounts")}},{"../common/has_properties":115}],97:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty,l=[].slice;s=t("underscore"),r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="CustomJS",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("values",this._make_values,!0),this.add_dependencies("values",this,["args"]),this.register_property("func",this._make_func,!0),this.add_dependencies("func",this,["args","code"])},e.prototype.execute=function(t,e){return this.get("func").apply(null,l.call(this.get("values")).concat([t],[e]))},e.prototype._make_values=function(){return s.map(s.values(this.get("args")),this.resolve_ref)},e.prototype._make_func=function(){return function(t,e,i){i.prototype=t.prototype;var n=new i,r=t.apply(n,e);return Object(r)===r?r:n}(Function,l.call(s.keys(this.get("args"))).concat(["cb_obj"],["cb_data"],[this.get("code")]),function(){})},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{args:{},code:""})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,underscore:92}],98:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("../util/util"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="OpenURL",e.prototype.execute=function(t){var e,i,n,r,o,a,l;for(a=t.get("selected"),i=a["0d"].flag?a["0d"].indices:a["1d"].indices.length&gt;0?a["1d"].indices:a["2d"].indices.length&gt;0?a["2d"].indices:[],o=[],n=0,r=i.length;r&gt;n;n++)e=i[n],l=s.replace_placeholders(this.get("url"),t,e),o.push(window.open(l));return o},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{url:"http://"})},e}(n),e.exports={Model:r}},{"../common/has_properties":115,"../util/util":250,underscore:92}],99:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;o=t("underscore"),n=t("./collection"),("undefined"==typeof f||null===f)&amp;&amp;(f={location:{href:"local"}}),t("./custom").monkey_patch(),s={},d=f.location.href,d.indexOf("/bokeh")&gt;0?s.prefix=d.slice(0,d.lastIndexOf("/bokeh"))+"/":s.prefix="/",console.log("Bokeh: setting prefix to",s.prefix),h={Plot:t("./plot"),GMapPlot:t("./gmap_plot"),GeoJSPlot:t("./geojs_plot"),GridPlot:t("./grid_plot"),PlotContext:t("./plot_context"),PlotList:t("./plot_context"),Canvas:t("./canvas"),LayoutBox:t("./layout_box"),CartesianFrame:t("./cartesian_frame"),SelectionManager:t("./selection_manager"),Selector:t("./selector"),ToolEvents:t("./tool_events"),CustomJS:t("../callback/customjs"),OpenURL:t("../callback/open_url"),CategoricalMapper:t("../mapper/categorical_mapper"),LinearColorMapper:t("../mapper/linear_color_mapper"),LinearMapper:t("../mapper/linear_mapper"),DataRange1d:t("../range/data_range1d"),FactorRange:t("../range/factor_range"),Range1d:t("../range/range1d"),BoxAnnotation:t("../renderer/annotation/box_annotation"),Legend:t("../renderer/annotation/legend"),Span:t("../renderer/annotation/span"),Tooltip:t("../renderer/annotation/tooltip"),GlyphRenderer:t("../renderer/glyph/glyph_renderer"),AnnularWedge:t("../renderer/glyph/annular_wedge"),Annulus:t("../renderer/glyph/annulus"),Arc:t("../renderer/glyph/arc"),Bezier:t("../renderer/glyph/bezier"),Circle:t("../renderer/glyph/circle"),Gear:t("../renderer/glyph/gear"),Image:t("../renderer/glyph/image"),ImageRGBA:t("../renderer/glyph/image_rgba"),ImageURL:t("../renderer/glyph/image_url"),Line:t("../renderer/glyph/line"),MultiLine:t("../renderer/glyph/multi_line"),Oval:t("../renderer/glyph/oval"),Patch:t("../renderer/glyph/patch"),Patches:t("../renderer/glyph/patches"),Quad:t("../renderer/glyph/quad"),Quadratic:t("../renderer/glyph/quadratic"),Ray:t("../renderer/glyph/ray"),Rect:t("../renderer/glyph/rect"),Segment:t("../renderer/glyph/segment"),Text:t("../renderer/glyph/text"),Wedge:t("../renderer/glyph/wedge"),Asterisk:t("../renderer/glyph/marker/asterisk"),CircleCross:t("../renderer/glyph/marker/circle_cross"),CircleX:t("../renderer/glyph/marker/circle_x"),Cross:t("../renderer/glyph/marker/cross"),Diamond:t("../renderer/glyph/marker/diamond"),DiamondCross:t("../renderer/glyph/marker/diamond_cross"),InvertedTriangle:t("../renderer/glyph/marker/inverted_triangle"),Square:t("../renderer/glyph/marker/square"),SquareCross:t("../renderer/glyph/marker/square_cross"),SquareX:t("../renderer/glyph/marker/square_x"),Triangle:t("../renderer/glyph/marker/triangle"),X:t("../renderer/glyph/marker/x"),LinearAxis:t("../renderer/guide/linear_axis"),LogAxis:t("../renderer/guide/log_axis"),CategoricalAxis:t("../renderer/guide/categorical_axis"),DatetimeAxis:t("../renderer/guide/datetime_axis"),Grid:t("../renderer/guide/grid"),BoxSelection:t("../renderer/overlay/box_selection"),PolySelection:t("../renderer/overlay/poly_selection"),ColumnDataSource:t("../source/column_data_source"),ServerDataSource:t("../source/server_data_source"),BlazeDataSource:t("../source/blaze_data_source"),AjaxDataSource:t("../source/ajax_data_source"),AbstractTicker:t("../ticking/abstract_ticker"),AdaptiveTicker:t("../ticking/adaptive_ticker"),BasicTicker:t("../ticking/basic_ticker"),CategoricalTicker:t("../ticking/categorical_ticker"),CompositeTicker:t("../ticking/composite_ticker"),DatetimeTicker:t("../ticking/datetime_ticker"),DaysTicker:t("../ticking/days_ticker"),FixedTicker:t("../ticking/fixed_ticker"),LogTicker:t("../ticking/log_ticker"),MonthsTicker:t("../ticking/months_ticker"),SingleIntervalTicker:t("../ticking/single_interval_ticker"),YearsTicker:t("../ticking/years_ticker"),BasicTickFormatter:t("../ticking/basic_tick_formatter"),LogTickFormatter:t("../ticking/log_tick_formatter"),CategoricalTickFormatter:t("../ticking/categorical_tick_formatter"),DatetimeTickFormatter:t("../ticking/datetime_tick_formatter"),NumeralTickFormatter:t("../ticking/numeral_tick_formatter"),PrintfTickFormatter:t("../ticking/printf_tick_formatter"),ButtonTool:t("../tool/button_tool"),ActionTool:t("../tool/actions/action_tool"),PreviewSaveTool:t("../tool/actions/preview_save_tool"),ResetTool:t("../tool/actions/reset_tool"),HelpTool:t("../tool/actions/help_tool"),BoxSelectTool:t("../tool/gestures/box_select_tool"),BoxZoomTool:t("../tool/gestures/box_zoom_tool"),GestureTool:t("../tool/gestures/gesture_tool"),LassoSelectTool:t("../tool/gestures/lasso_select_tool"),PanTool:t("../tool/gestures/pan_tool"),PolySelectTool:t("../tool/gestures/poly_select_tool"),SelectTool:t("../tool/gestures/select_tool"),ResizeTool:t("../tool/gestures/resize_tool"),TapTool:t("../tool/gestures/tap_tool"),WheelZoomTool:t("../tool/gestures/wheel_zoom_tool"),CrosshairTool:t("../tool/inspectors/crosshair_tool"),HoverTool:t("../tool/inspectors/hover_tool"),InspectTool:t("../tool/inspectors/inspect_tool"),editors:[t("../widget/cell_editors"),"Editor"],formatters:[t("../widget/cell_formatters"),"Formatter"],TableColumn:t("../widget/table_column"),DataTable:t("../widget/data_table"),Paragraph:t("../widget/paragraph"),HBox:t("../widget/hbox"),VBox:t("../widget/vbox"),VBoxForm:t("../widget/vboxform"),TextInput:t("../widget/text_input"),AutocompleteInput:t("../widget/autocomplete_input"),PreText:t("../widget/pretext"),Select:t("../widget/selectbox"),Slider:t("../widget/slider"),CrossFilter:t("../widget/crossfilter"),MultiSelect:t("../widget/multiselect"),DateRangeSlider:t("../widget/date_range_slider"),DatePicker:t("../widget/date_picker"),Panel:t("../widget/panel"),Tabs:t("../widget/tabs"),Dialog:t("../widget/dialog"),Icon:t("../widget/icon"),Button:t("../widget/button"),Toggle:t("../widget/toggle"),Dropdown:t("../widget/dropdown"),CheckboxGroup:t("../widget/checkbox_group"),RadioGroup:t("../widget/radio_group"),CheckboxButtonGroup:t("../widget/checkbox_button_group"),RadioButtonGroup:t("../widget/radio_button_group"),SimpleApp:t("../widget/simpleapp"),AppHBox:t("../widget/layouts/apphbox"),AppVBox:t("../widget/layouts/appvbox"),AppVBoxForm:t("../widget/layouts/appvboxform"),ar_transforms:[t("../ar/transforms")]},l={},p=function(t){var e;return new(e=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return g(i,e),i.prototype.model=t,i}(n))},c=function(t){var e,i,n,r,s,a,l,u,h;s={};for(n in t)if(a=t[n],o.isArray(a)){u=a[0],h=null!=(r=a[1])?r:"";for(l in u)e=u[l],i=l+h,s[i]=e}else s[n]=a;return s},a=null,r=function(t){var e;return null==a&amp;&amp;(a=c(h)),l[t]?l[t]:(e=a[t],null==e.Collection&amp;&amp;(e.Collection=p(e.Model)),e.Collection)},r.register=function(t,e){return l[t]=e},u={},e.exports={collection_overrides:l,locations:h,index:u,Collections:r,Config:s}},{"../ar/transforms":96,"../callback/customjs":97,"../callback/open_url":98,"../mapper/categorical_mapper":138,"../mapper/linear_color_mapper":140,"../mapper/linear_mapper":141,"../range/data_range1d":144,"../range/factor_range":145,"../range/range1d":146,"../renderer/annotation/box_annotation":147,"../renderer/annotation/legend":148,"../renderer/annotation/span":149,"../renderer/annotation/tooltip":150,"../renderer/glyph/annular_wedge":151,"../renderer/glyph/annulus":152,"../renderer/glyph/arc":153,"../renderer/glyph/bezier":154,"../renderer/glyph/circle":156,"../renderer/glyph/gear":157,"../renderer/glyph/glyph_renderer":159,"../renderer/glyph/image":160,"../renderer/glyph/image_rgba":161,"../renderer/glyph/image_url":162,"../renderer/glyph/line":163,"../renderer/glyph/marker/asterisk":164,"../renderer/glyph/marker/circle_cross":165,"../renderer/glyph/marker/circle_x":166,"../renderer/glyph/marker/cross":167,"../renderer/glyph/marker/diamond":168,"../renderer/glyph/marker/diamond_cross":169,"../renderer/glyph/marker/inverted_triangle":170,"../renderer/glyph/marker/square":172,"../renderer/glyph/marker/square_cross":173,"../renderer/glyph/marker/square_x":174,"../renderer/glyph/marker/triangle":175,"../renderer/glyph/marker/x":176,"../renderer/glyph/multi_line":177,"../renderer/glyph/oval":178,"../renderer/glyph/patch":179,"../renderer/glyph/patches":180,"../renderer/glyph/quad":181,"../renderer/glyph/quadratic":182,"../renderer/glyph/ray":183,"../renderer/glyph/rect":184,"../renderer/glyph/segment":185,"../renderer/glyph/text":186,"../renderer/glyph/wedge":187,"../renderer/guide/categorical_axis":189,"../renderer/guide/datetime_axis":190,"../renderer/guide/grid":191,"../renderer/guide/linear_axis":192,"../renderer/guide/log_axis":193,"../renderer/overlay/box_selection":194,"../renderer/overlay/poly_selection":195,"../source/ajax_data_source":202,"../source/blaze_data_source":203,"../source/column_data_source":204,"../source/server_data_source":206,"../ticking/abstract_ticker":207,"../ticking/adaptive_ticker":208,"../ticking/basic_tick_formatter":209,"../ticking/basic_ticker":210,"../ticking/categorical_tick_formatter":211,"../ticking/categorical_ticker":212,"../ticking/composite_ticker":213,"../ticking/datetime_tick_formatter":214,"../ticking/datetime_ticker":215,"../ticking/days_ticker":216,"../ticking/fixed_ticker":217,"../ticking/log_tick_formatter":218,"../ticking/log_ticker":219,"../ticking/months_ticker":220,"../ticking/numeral_tick_formatter":221,"../ticking/printf_tick_formatter":222,"../ticking/single_interval_ticker":223,"../ticking/years_ticker":225,"../tool/actions/action_tool":226,"../tool/actions/help_tool":227,"../tool/actions/preview_save_tool":228,"../tool/actions/reset_tool":230,"../tool/button_tool":231,"../tool/gestures/box_select_tool":233,"../tool/gestures/box_zoom_tool":234,"../tool/gestures/gesture_tool":235,"../tool/gestures/lasso_select_tool":236,"../tool/gestures/pan_tool":237,"../tool/gestures/poly_select_tool":238,"../tool/gestures/resize_tool":239,"../tool/gestures/select_tool":240,"../tool/gestures/tap_tool":241,"../tool/gestures/wheel_zoom_tool":242,"../tool/inspectors/crosshair_tool":243,"../tool/inspectors/hover_tool":244,"../tool/inspectors/inspect_tool":245,"../widget/autocomplete_input":251,"../widget/button":252,"../widget/cell_editors":253,"../widget/cell_formatters":254,"../widget/checkbox_button_group":255,"../widget/checkbox_group":256,"../widget/crossfilter":257,"../widget/data_table":261,"../widget/date_picker":262,"../widget/date_range_slider":263,"../widget/dialog":264,"../widget/dropdown":266,"../widget/hbox":267,"../widget/icon":268,"../widget/layouts/apphbox":269,"../widget/layouts/appvbox":270,"../widget/layouts/appvboxform":271,"../widget/multiselect":273,"../widget/panel":275,"../widget/paragraph":276,"../widget/pretext":277,"../widget/radio_button_group":278,"../widget/radio_group":279,"../widget/selectbox":280,"../widget/simpleapp":282,"../widget/slider":283,"../widget/table_column":285,"../widget/tabs":286,"../widget/text_input":288,"../widget/toggle":290,"../widget/vbox":291,"../widget/vboxform":292,"./canvas":103,"./cartesian_frame":105,"./collection":107,"./custom":110,"./geojs_plot":111,"./gmap_plot":112,"./grid_plot":113,"./layout_box":117,"./plot":121,"./plot_context":122,"./selection_manager":128,"./selector":129,"./tool_events":134,underscore:92}],100:[function(t,e,i){var n,r;n=function(){return[[1/0,-(1/0)],[1/0,-(1/0)]]},r=function(t,e){return t[0][0]=Math.min(t[0][0],e[0][0]),t[0][1]=Math.max(t[0][1],e[0][1]),t[1][0]=Math.min(t[1][0],e[1][0]),t[1][1]=Math.max(t[1][1],e[1][1]),t},e.exports={empty:n,extend:r}},{}],101:[function(t,e,i){var n,r,s;n=t("underscore"),r=function(t,e,i,r){var o,a,l,u,h,c,p,d,f,g,m;for(null==r&amp;&amp;(r=[]),o=[],f=n.filter(e,function(e){return!n.has(t,e.id)}),l=a=0,c=f.length;c&gt;a;l=++a)d=f[l],m=n.extend({},i,{model:d}),l&lt;r.length?t[d.id]=new r[l](m):t[d.id]=new d.default_view(m),t[d.id].$el.find("*[class*='ui-']").each(function(t,e){return e.className=s(e)}),o.push(t[d.id]);for(g=n.difference(n.keys(t),n.pluck(e,"id")),u=0,p=g.length;p&gt;u;u++)h=g[u],t[h].remove(),delete t[h];return o},s=function(t){var e,i;if(null!=t.className)return e=t.className.split(" "),i=n.map(e,function(t){return t=t.trim(),0===t.indexOf("ui-")?"bk-"+t:t}),i.join(" ")},r.jQueryUIPrefixer=s,e.exports=r=r},{underscore:92}],102:[function(t,e,i){var n,r,s,o;r=t("underscore"),n=t("jquery"),o=t("./load_models"),s=function(e){var i,s,a,l,u,h;if(i=t("./base").Config,s=e[0].get("doc"),null==s)throw new Error("Unset 'doc' in "+e[0]);return a=function(){var t,i,n;for(n=[],t=0,i=e.length;i&gt;t;t++)l=e[t],n.push({type:l.type,attributes:r.clone(l.attributes)});return n}(),a=JSON.stringify(a),u=i.prefix+"bokeh/bb/"+s+"/bulkupsert",h=n.ajax({type:"POST",url:u,contentType:"application/json",data:a,header:{client:"javascript"}}),h.done(function(t){return o(t.modelspecs)}),h},e.exports={bulk_save:s}},{"./base":99,"./load_models":118,jquery:18,underscore:92}],103:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;c=t("underscore"),d=null!=i._bokehTest?i._bokehTest.kiwi:t("kiwi"),a=d.Expression,s=d.Constraint,u=d.Operator,p=t("./canvas_template"),o=t("./continuum_view"),l=t("./layout_box"),f=t("./logging").logger,h=t("./solver"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.className="bk-canvas-wrapper",e.prototype.template=p,e.prototype.initialize=function(t){var i,n,r;return e.__super__.initialize.call(this,t),r={map:this.mget("map")},i=this.template(r),this.$el.html(i),this.canvas_wrapper=this.$el,this.canvas=this.$("canvas.bk-canvas"),this.canvas_events=this.$("div.bk-canvas-events"),this.canvas_overlay=this.$("div.bk-canvas-overlays"),this.map_div=null!=(n=this.$("div.bk-canvas-map"))?n:null,this.ctx=this.canvas[0].getContext("2d"),this.ctx.glcanvas=null,f.debug("CanvasView initialized")},e.prototype.render=function(t){var e,i,n,r,s;return null==t&amp;&amp;(t=!1),this.model.new_bounds||t?(this.mget("use_hidpi")?(i=window.devicePixelRatio||1,e=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,r=i/e):r=1,s=this.mget("width"),n=this.mget("height"),this.$el.attr("style","z-index: 50; width:"+s+"px; height:"+n+"px"),this.canvas.attr("style","width:"+s+"px;height:"+n+"px"),this.canvas.attr("width",s*r).attr("height",n*r),this.$el.attr("width",s).attr("height",n),this.canvas_events.attr("style","z-index:100; position:absolute; top:0; left:0; width:"+s+"px; height:"+n+"px;"),this.canvas_overlay.attr("style","z-index:75; position:absolute; top:0; left:0; width:"+s+"px; height:"+n+"px;"),this.ctx.scale(r,r),this.ctx.translate(.5,.5),this._fixup_line_dash(this.ctx),this._fixup_line_dash_offset(this.ctx),this._fixup_image_smoothing(this.ctx),this._fixup_measure_text(this.ctx),this.model.new_bounds=!1):void 0},e.prototype._fixup_line_dash=function(t){return t.setLineDash||(t.setLineDash=function(e){return t.mozDash=e,t.webkitLineDash=e}),t.getLineDash?void 0:t.getLineDash=function(){return t.mozDash}},e.prototype._fixup_line_dash_offset=function(t){return t.setLineDashOffset=function(e){return t.lineDashOffset=e,t.mozDashOffset=e,t.webkitLineDashOffset=e},t.getLineDashOffset=function(){return t.mozDashOffset}},e.prototype._fixup_image_smoothing=function(t){return t.setImageSmoothingEnabled=function(e){return t.imageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.oImageSmoothingEnabled=e,t.webkitImageSmoothingEnabled=e},t.getImageSmoothingEnabled=function(){var e;return null!=(e=t.imageSmoothingEnabled)?e:!0}},e.prototype._fixup_measure_text=function(t){return t.measureText&amp;&amp;null==t.html5MeasureText?(t.html5MeasureText=t.measureText,t.measureText=function(e){var i;return i=t.html5MeasureText(e),i.ascent=1.6*t.html5MeasureText("m").width,i}):void 0},e}(o),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.type="Canvas",e.prototype.default_view=r,e.prototype.initialize=function(t,i){var n;return n=new h,this.set("solver",n),e.__super__.initialize.call(this,t,i),this.new_bounds=!0,n.add_constraint(new s(new a(this._left),u.Eq)),n.add_constraint(new s(new a(this._bottom),u.Eq)),this._set_dims([this.get("canvas_width"),this.get("canvas_height")]),f.debug("Canvas initialized")},e.prototype.vx_to_sx=function(t){return t},e.prototype.vy_to_sy=function(t){return this.get("height")-(t+1)},e.prototype.v_vx_to_sx=function(t){var e,i,n,r;for(i=e=0,n=t.length;n&gt;e;i=++e)r=t[i],t[i]=r;return t},e.prototype.v_vy_to_sy=function(t){var e,i,n,r,s;for(e=this.get("height"),n=i=0,r=t.length;r&gt;i;n=++i)s=t[n],t[n]=e-(s+1);return t},e.prototype.sx_to_vx=function(t){return t},e.prototype.sy_to_vy=function(t){return this.get("height")-(t+1)},e.prototype.v_sx_to_vx=function(t){var e,i,n,r;for(i=e=0,n=t.length;n&gt;e;i=++e)r=t[i],t[i]=r;return t},e.prototype.v_sy_to_vy=function(t){var e,i,n,r,s;for(e=this.get("height"),n=i=0,r=t.length;r&gt;i;n=++i)s=t[n],t[n]=e-(s+1);return t},e.prototype._set_width=function(t,e){return null==e&amp;&amp;(e=!0),null!=this._width_constraint&amp;&amp;this.solver.remove_constraint(this._width_constraint),this._width_constraint=new s(new a(this._width,-t),u.Eq),this.solver.add_constraint(this._width_constraint),e&amp;&amp;this.solver.update_variables(),this.new_bounds=!0},e.prototype._set_height=function(t,e){return null==e&amp;&amp;(e=!0),null!=this._height_constraint&amp;&amp;this.solver.remove_constraint(this._height_constraint),this._height_constraint=new s(new a(this._height,-t),u.Eq),this.solver.add_constraint(this._height_constraint),e&amp;&amp;this.solver.update_variables(),this.new_bounds=!0},e.prototype._set_dims=function(t,e){return null==e&amp;&amp;(e=!0),this._set_width(t[0],!1),this._set_height(t[1],!1),this.solver.update_variables(e)},e.prototype.defaults=function(){return c.extend({},e.__super__.defaults.call(this),{width:300,height:300,map:!1,mousedown_callbacks:[],mousemove_callbacks:[],use_hidpi:!0})},e}(l.Model),e.exports={Model:n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./canvas_template":104,"./continuum_view":109,"./layout_box":117,"./logging":119,"./solver":131,kiwi:303,underscore:92}],104:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){this.map&amp;&amp;i.push('\n&lt;div class="bk-canvas-map"&gt;&lt;/div&gt;\n'),i.push('\n&lt;div class="bk-canvas-events" /&gt;\n&lt;div class="bk-canvas-overlays" /&gt;\n&lt;canvas class=\'bk-canvas\'&gt;&lt;/canvas&gt;')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],105:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t("underscore"),o=t("./layout_box"),h=t("./logging").logging,a=t("../mapper/linear_mapper"),l=t("../mapper/log_mapper"),r=t("../mapper/categorical_mapper"),s=t("../mapper/grid_mapper"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="CartesianFrame",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("x_ranges",function(){return this._get_ranges("x")},!0),this.add_dependencies("x_ranges",this,["x_range","extra_x_ranges"]),this.register_property("y_ranges",function(){return this._get_ranges("y")},!0),this.add_dependencies("y_ranges",this,["y_range","extra_y_ranges"]),this.register_property("x_mappers",function(){return this._get_mappers("x",this.get("x_ranges"),this.get("h_range"))},!0),this.add_dependencies("x_ranges",this,["x_ranges","h_range"]),this.register_property("y_mappers",function(){return this._get_mappers("y",this.get("y_ranges"),this.get("v_range"))},!0),this.add_dependencies("y_ranges",this,["y_ranges","v_range"]),this.register_property("mapper",function(){return new s.Model({domain_mapper:this.get("x_mapper"),codomain_mapper:this.get("y_mapper")})},!0),this.add_dependencies("mapper",this,["x_mapper","y_mapper"]),this.listenTo(this.solver,"layout_update",this._update_mappers)},e.prototype.map_to_screen=function(t,e,i,n,r){var s,o,a,l;return null==n&amp;&amp;(n="default"),null==r&amp;&amp;(r="default"),a=this.get("x_mappers")[n].v_map_to_target(t),s=i.v_vx_to_sx(a),l=this.get("y_mappers")[r].v_map_to_target(e),o=i.v_vy_to_sy(l),[s,o]},e.prototype._get_ranges=function(t){var e,i,n,r;if(r={},r["default"]=this.get(t+"_range"),e=this.get("extra_"+t+"_ranges"),null!=e)for(i in e)n=e[i],r[i]=this.resolve_ref(n);return r},e.prototype._get_mappers=function(t,e,i){var n,s,o,u;s={};for(o in e){if(u=e[o],"Range1d"===u.type||"DataRange1d"===u.type)n="log"===this.get(t+"_mapper_type")?l.Model:a.Model;else{if("FactorRange"!==u.type)return logger.warn("unknown range type for range '"+o+"': "+u),null;n=r.Model}s[o]=new n({source_range:u,target_range:i})}return s},e.prototype._update_mappers=function(){var t,e,i,n,r;i=this.get("x_mappers");for(e in i)t=i[e],t.set("target_range",this.get("h_range"));n=this.get("y_mappers"),r=[];for(e in n)t=n[e],r.push(t.set("target_range",this.get("v_range")));return r},e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{extra_x_ranges:{},extra_y_ranges:{}})},e}(o.Model),e.exports={Model:n}},{"../mapper/categorical_mapper":138,"../mapper/grid_mapper":139,"../mapper/linear_mapper":141,"../mapper/log_mapper":142,"./layout_box":117,"./logging":119,underscore:92}],106:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("./continuum_view"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.attributes={"class":"bk-closewrapper"},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t)},e.prototype.events={"click .bk-close":"close"},e.prototype.close=function(t){return this.view.remove(),this.remove()},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.view=t.view,this.render()},e.prototype.render=function(){return this.view.$el.detach(),this.$el.empty(),this.$el.html("&lt;a href='#' class='bk-close'&gt;[x]&lt;/a&gt;"),this.$el.append(this.view.$el)},e}(r),e.exports={View:n}},{"./continuum_view":109,underscore:92}],107:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("backbone"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e}(n.Collection),e.exports=r},{backbone:2}],108:[function(t,e,i){var n,r,s,o;r=function(t){var e;return e=Number(t).toString(16),e=1===e.length?"0"+e:e},s=function(t){var e,i,s;return t+="",0===t.indexOf("#")?t:null!=n[t]?n[t]:0===t.indexOf("rgb")?(i=t.match(/\d+/g),e=function(){var t,e,n;for(n=[],t=0,e=i.length;e&gt;t;t++)s=i[t],n.push(r(s));return n}().join(""),"#"+e.slice(0,8)):t},o=function(t,e){var i,n,r;if(null==e&amp;&amp;(e=1),!t)return[0,0,0,0];for(i=s(t),i=i.replace(/ |#/g,""),i.length&lt;=4&amp;&amp;(i=i.replace(/(.)/g,"$1$1")),i=i.match(/../g),r=function(){var t,e,r;for(r=[],t=0,e=i.length;e&gt;t;t++)n=i[t],r.push(parseInt(n,16)/255);return r}();r.length&lt;3;)r.push(0);return r.length&lt;4&amp;&amp;r.push(e),r.slice(0,4)},n={k:"#000000",w:"#FFFFFF",r:"#FF0000",g:"#00FF00",b:"#0000FF",y:"#FFFF00",m:"#FF00FF",c:"#00FFFF",aqua:"#00ffff",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",black:"#000000",blue:"#0000ff",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgreen:"#006400",darkturquoise:"#00ced1",deepskyblue:"#00bfff",green:"#008000",lime:"#00ff00",mediumblue:"#0000cd",mediumspringgreen:"#00fa9a",navy:"#000080",springgreen:"#00ff7f",teal:"#008080",midnightblue:"#191970",dodgerblue:"#1e90ff",lightseagreen:"#20b2aa",forestgreen:"#228b22",seagreen:"#2e8b57",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",limegreen:"#32cd32",mediumseagreen:"#3cb371",turquoise:"#40e0d0",royalblue:"#4169e1",steelblue:"#4682b4",darkslateblue:"#483d8b",mediumturquoise:"#48d1cc",indigo:"#4b0082",darkolivegreen:"#556b2f",cadetblue:"#5f9ea0",cornflowerblue:"#6495ed",mediumaquamarine:"#66cdaa",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6a5acd",olivedrab:"#6b8e23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7b68ee",lawngreen:"#7cfc00",aquamarine:"#7fffd4",chartreuse:"#7fff00",gray:"#808080",grey:"#808080",maroon:"#800000",olive:"#808000",purple:"#800080",lightskyblue:"#87cefa",skyblue:"#87ceeb",blueviolet:"#8a2be2",darkmagenta:"#8b008b",darkred:"#8b0000",saddlebrown:"#8b4513",darkseagreen:"#8fbc8f",lightgreen:"#90ee90",mediumpurple:"#9370db",darkviolet:"#9400d3",palegreen:"#98fb98",darkorchid:"#9932cc",yellowgreen:"#9acd32",sienna:"#a0522d",brown:"#a52a2a",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",greenyellow:"#adff2f",lightblue:"#add8e6",paleturquoise:"#afeeee",lightsteelblue:"#b0c4de",powderblue:"#b0e0e6",firebrick:"#b22222",darkgoldenrod:"#b8860b",mediumorchid:"#ba55d3",rosybrown:"#bc8f8f",darkkhaki:"#bdb76b",silver:"#c0c0c0",mediumvioletred:"#c71585",indianred:"#cd5c5c",peru:"#cd853f",chocolate:"#d2691e",tan:"#d2b48c",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",thistle:"#d8bfd8",goldenrod:"#daa520",orchid:"#da70d6",palevioletred:"#db7093",crimson:"#dc143c",gainsboro:"#dcdcdc",plum:"#dda0dd",burlywood:"#deb887",lightcyan:"#e0ffff",lavender:"#e6e6fa",darksalmon:"#e9967a",palegoldenrod:"#eee8aa",violet:"#ee82ee",azure:"#f0ffff",honeydew:"#f0fff0",khaki:"#f0e68c",lightcoral:"#f08080",sandybrown:"#f4a460",beige:"#f5f5dc",mintcream:"#f5fffa",wheat:"#f5deb3",whitesmoke:"#f5f5f5",ghostwhite:"#f8f8ff",lightgoldenrodyellow:"#fafad2",linen:"#faf0e6",salmon:"#fa8072",oldlace:"#fdf5e6",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",coral:"#ff7f50",cornsilk:"#fff8dc",darkorange:"#ff8c00",deeppink:"#ff1493",floralwhite:"#fffaf0",fuchsia:"#ff00ff",gold:"#ffd700",hotpink:"#ff69b4",ivory:"#fffff0",lavenderblush:"#fff0f5",lemonchiffon:"#fffacd",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightyellow:"#ffffe0",magenta:"#ff00ff",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",orange:"#ffa500",orangered:"#ff4500",papayawhip:"#ffefd5",peachpuff:"#ffdab9",pink:"#ffc0cb",red:"#ff0000",seashell:"#fff5ee",snow:"#fffafa",tomato:"#ff6347",white:"#ffffff",yellow:"#ffff00"},e.exports={color2hex:s,color2rgba:o}},{}],109:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t;
        }for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("backbone"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t){return s.has(t,"id")?void 0:this.id=s.uniqueId("ContinuumView")},e.prototype.bind_bokeh_events=function(){return"pass"},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t)},e.prototype.remove=function(){var t,i,n;if(s.has(this,"eventers")){t=this.eventers;for(i in t)a.call(t,i)&amp;&amp;(n=t[i],n.off(null,null,this))}return this.trigger("remove",this),e.__super__.remove.call(this)},e.prototype.mget=function(){return this.model.get.apply(this.model,arguments)},e.prototype.mset=function(){return this.model.set.apply(this.model,arguments)},e.prototype.render_end=function(){return"pass"},e}(n.View),e.exports=r},{backbone:2,underscore:92}],110:[function(t,e,i){var n,r;n=t("underscore"),r=function(){return n.uniqueId=function(t){var e,i,n,r,s;for(r=[],e="0123456789ABCDEF",i=n=0;31&gt;=n;i=++n)r[i]=e.substr(Math.floor(16*Math.random()),1);return r[12]="4",r[16]=e.substr(3&amp;r[16]|8,1),s=r.join(""),t?t+"-"+s:s}},n.isNullOrUndefined=function(t){return n.isNull(t)||n.isUndefined(t)},n.setdefault=function(t,e,i){return n.has(t,e)?t[e]:(t[e]=i,i)},e.exports={monkey_patch:r}},{underscore:92}],111:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),o=t("./solver"),s=t("./plot"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,a.defaults(t,this.default_options)),this.zoom_count=null},e.prototype.bind_bokeh_events=function(){var t,i,n,r,s;return e.__super__.bind_bokeh_events.call(this),s=this.frame.get("width"),i=this.frame.get("height"),n=this.canvas.vx_to_sx(this.frame.get("left")),r=this.canvas.vy_to_sy(this.frame.get("top")),this.canvas_view.map_div.attr("style","top: "+r+"px; left: "+n+"px; position: absolute"),this.canvas_view.map_div.attr("style","width:"+s+"px;"),this.canvas_view.map_div.attr("style","height:"+i+"px;"),this.canvas_view.map_div.width(s+"px").height(i+"px"),this.initial_zoom=this.mget("map_options").zoom,t=function(t){return function(){var e,i;return i=t.mget("map_options"),e={center:[i.lat,i.lng],zoom:i.zoom,node:t.canvas_view.map_div[0]},t.map=geo.map(e),t.map.createLayer("osm")}}(this),$.getScript("http://opengeoscience.github.io/geojs/lib/gl-matrix.js",function(){return $.getScript("http://opengeoscience.github.io/geojs/lib/d3.v3.min.js",function(){return $.getScript("http://opengeoscience.github.io/geojs/lib/proj4.js",function(){return $.getScript("http://opengeoscience.github.io/geojs/lib/vgl.js",function(){return $.getScript("http://opengeoscience.github.io/geojs/lib/geo.js",function(){return t()})})})})})},e.prototype._map_hook=function(t,e){var i,n,r,s;return n=e[0],r=e[1],s=e[2],i=e[3],this.canvas_view.map_div.attr("style","top: "+r+"px; left: "+n+"px;"),this.canvas_view.map_div.width(s+"px").height(i+"px")},e.prototype._paint_empty=function(t,e){var i,n,r,s,o,a;return o=this.canvas.get("width"),s=this.canvas.get("height"),r=e[0],a=e[1],n=e[2],i=e[3],t.clearRect(0,0,o,s),t.beginPath(),t.moveTo(0,0),t.lineTo(0,s),t.lineTo(o,s),t.lineTo(o,0),t.lineTo(0,0),t.moveTo(r,a),t.lineTo(r+n,a),t.lineTo(r+n,a+i),t.lineTo(r,a+i),t.lineTo(r,a),t.closePath(),t.fillStyle=this.mget("border_fill"),t.fill()},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="GeoJSPlot",e.prototype.default_view=r,e.prototype.initialize=function(t,i){return this.use_map=!0,e.__super__.initialize.call(this,t,i)},e.prototype.parent_properties=["border_fill","min_border","min_border_top","min_border_bottom","min_border_left","min_border_right"],e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:"GeoJSPlot"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{border_fill:"#fff"})},e}(s.Model),e.exports={Model:n,View:r}},{"./plot":121,"./solver":131,underscore:92}],112:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;a=t("underscore"),o=t("./solver"),s=t("./plot"),l=t("proj4"),u=l.defs("GOOGLE"),r=function(t){function e(){return this.setRanges=h(this.setRanges,this),this.getProjectedBounds=h(this.getProjectedBounds,this),this.getLatLngBounds=h(this.getLatLngBounds,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,a.defaults(t,this.default_options)),this.zoom_count=0},e.prototype.getLatLngBounds=function(){var t,e,i,n,r,s,o;return e=this.map.getBounds(),i=e.getNorthEast(),t=e.getSouthWest(),r=t.lng(),n=i.lng(),o=t.lat(),s=i.lat(),[r,n,o,s]},e.prototype.getProjectedBounds=function(){var t,e,i,n,r,s,o,a,h,c,p;return r=this.getLatLngBounds(),h=r[0],a=r[1],p=r[2],c=r[3],s=l(u,[h,p]),e=s[0],n=s[1],o=l(u,[a,c]),t=o[0],i=o[1],[e,t,n,i]},e.prototype.setRanges=function(){var t,e,i,n,r;return r=this.getProjectedBounds(),e=r[0],t=r[1],n=r[2],i=r[3],this.x_range.set({start:e,end:t,silent:!0}),this.y_range.set({start:n,end:i,silent:!0})},e.prototype.update_range=function(t){var i,n,r,s,o,a,l,u;if(this.pause(),(null!=t.sdx||null!=t.sdy)&amp;&amp;(this.map.panBy(t.sdx,t.sdy),e.__super__.update_range.call(this,t)),null!=t.factor){if(10!==this.zoom_count)return void(this.zoom_count+=1);this.zoom_count=0,e.__super__.update_range.call(this,t),u=t.factor&lt;0?-1:1,n=this.map.getZoom(),i=n+u,i&gt;=2&amp;&amp;(this.map.setZoom(i),l=this.getProjectedBounds(),s=l[0],r=l[1],a=l[2],o=l[3],0&gt;r-s&amp;&amp;this.map.setZoom(n)),this.setRanges()}return this.unpause()},e.prototype.bind_bokeh_events=function(){var t,i,n,r,s,o;return e.__super__.bind_bokeh_events.call(this),o=this.frame.get("width"),i=this.frame.get("height"),n=this.canvas.vx_to_sx(this.frame.get("left")),s=this.canvas.vy_to_sy(this.frame.get("top")),this.canvas_view.map_div.attr("style","top: "+s+"px; left: "+n+"px; position: absolute"),this.canvas_view.map_div.attr("style","width:"+o+"px;"),this.canvas_view.map_div.attr("style","height:"+i+"px;"),this.canvas_view.map_div.width(o+"px").height(i+"px"),this.initial_zoom=this.mget("map_options").zoom,t=function(t){return function(){var e,i,n,r;return n=window.google.maps,i={satellite:n.MapTypeId.SATELLITE,terrain:n.MapTypeId.TERRAIN,roadmap:n.MapTypeId.ROADMAP,hybrid:n.MapTypeId.HYBRID},r=t.mget("map_options"),e={center:new n.LatLng(r.lat,r.lng),zoom:r.zoom,disableDefaultUI:!0,mapTypeId:i[r.map_type]},null!=r.styles&amp;&amp;(e.styles=JSON.parse(r.styles)),t.map=new n.Map(t.canvas_view.map_div[0],e),n.event.addListenerOnce(t.map,"idle",t.setRanges)}}(this),null==window._bokeh_gmap_loads&amp;&amp;(window._bokeh_gmap_loads=[]),null!=window.google&amp;&amp;null!=window.google.maps?a.defer(t):null!=window._bokeh_gmap_callback?window._bokeh_gmap_loads.push(t):(window._bokeh_gmap_loads.push(t),window._bokeh_gmap_callback=function(){return a.each(window._bokeh_gmap_loads,a.defer)},r=document.createElement("script"),r.type="text/javascript",r.src="https://maps.googleapis.com/maps/api/js?v=3&amp;callback=_bokeh_gmap_callback",document.body.appendChild(r))},e.prototype._map_hook=function(t,e){var i,n,r,s;return n=e[0],r=e[1],s=e[2],i=e[3],this.canvas_view.map_div.attr("style","top: "+r+"px; left: "+n+"px;"),this.canvas_view.map_div.width(s+"px").height(i+"px")},e.prototype._paint_empty=function(t,e){var i,n,r,s,o,a;return o=this.canvas.get("width"),s=this.canvas.get("height"),r=e[0],a=e[1],n=e[2],i=e[3],t.clearRect(0,0,o,s),t.beginPath(),t.moveTo(0,0),t.lineTo(0,s),t.lineTo(o,s),t.lineTo(o,0),t.lineTo(0,0),t.moveTo(r,a),t.lineTo(r+n,a),t.lineTo(r+n,a+i),t.lineTo(r,a+i),t.lineTo(r,a),t.closePath(),t.fillStyle=this.mget("border_fill"),t.fill()},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="GMapPlot",e.prototype.default_view=r,e.prototype.initialize=function(t,i){return this.use_map=!0,e.__super__.initialize.call(this,t,i)},e.prototype.parent_properties=["border_fill","min_border","min_border_top","min_border_bottom","min_border_left","min_border_right"],e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:"GMapPlot"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{border_fill:"#fff"})},e}(s.Model),e.exports={Model:n,View:r}},{"./plot":121,"./solver":131,proj4:56,underscore:92}],113:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_=function(t,e){function i(){this.constructor=t}for(var n in e)v.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},v={}.hasOwnProperty,y=function(t,e){return function(){return t.apply(e,arguments)}};n=t("jquery"),d=t("underscore"),r=t("backbone"),f=t("./build_views"),s=t("./continuum_view"),h=t("./has_properties"),g=t("./logging").logger,c=t("./tool_manager"),m=t("./plot_template"),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this,"do",this["do"]),this.listenTo(this,"change:active",this.active),null},e.prototype["do"]=function(){var t,e,i,n;for(i=this.attributes.tools,t=0,e=i.length;e&gt;t;t++)n=i[t],n.trigger("do");return null},e.prototype.active=function(){var t,e,i,n;for(i=this.attributes.tools,t=0,e=i.length;e&gt;t;t++)n=i[t],n.set("active",this.attributes.active);return null},e.prototype.attrs_and_props=function(){return this.attributes.tools[0].attrs_and_props()},e.prototype.get=function(t){return this.attributes.tools[0].get(t)},e.prototype.set=function(t,i){var n,r,s,o;for(e.__super__.set.call(this,t,i),s=this.attributes.tools,n=0,r=s.length;r&gt;n;n++)o=s[n],o.set(t,i);return null},e}(r.Model),l=function(t){function e(){return this._active_change=y(this._active_change,this),e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype._init_tools=function(){var t,e,i,n,r,s,o,a,l,u,h,c,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S;for(s={},t={},i={},m=this.get("tool_managers"),n=0,u=m.length;u&gt;n;n++){M=m[n],_=M.get("gestures");for(e in _){r=_[e],e in i||(i[e]={}),v=r.tools;for(o=0,h=v.length;h&gt;o;o++)D=v[o],D.type in i[e]||(i[e][D.type]=[]),i[e][D.type].push(D)}for(y=M.get("inspectors"),a=0,c=y.length;c&gt;a;a++)D=y[a],D.type in s||(s[D.type]=[]),s[D.type].push(D);for(b=M.get("actions"),l=0,f=b.length;f&gt;l;l++)D=b[l],D.type in t||(t[D.type]=[]),t[D.type].push(D)}for(e in i){w=i[e];for(S in w)T=w[S],T.length===this.get("num_plots")&amp;&amp;(g=new p({tools:T}),this.get("gestures")[e].tools.push(g),this.listenTo(g,"change:active",d.bind(this._active_change,g)))}for(S in t)T=t[S],T.length===this.get("num_plots")&amp;&amp;(g=new p({tools:T}),C=this.get("actions"),C.push(g),this.set("actions",C));for(S in s)T=s[S],T.length===this.get("num_plots")&amp;&amp;(g=new p({tools:T}),C=this.get("inspectors"),C.push(g),this.set("inspectors",C));x=this.get("gestures"),k=[];for(e in x)r=x[e],T=r.tools,0!==T.length&amp;&amp;(r.tools=d.sortBy(T,function(t){return t.get("default_order")}),k.push(r.tools[0].set("active",!0)));return k},e.prototype._active_change=function(t){var e,i,n,r;return i=t.get("event_type"),(e=t.get("active"))?(n=this.get("gestures"),r=n[i].active,null!=r&amp;&amp;(g.debug("GridToolManager: deactivating tool: "+r.type+" (for event type '"+i+"'"),r.set("active",!1)),n[i].active=t,this.set("gestures",n),g.debug("GridToolManager: activating tool: "+t.type+" (for event type '"+i+"'"),null):null},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{tool_manangers:[]})},e}(c.Model),u=function(t){function e(){return this.layout_widths=y(this.layout_widths,this),this.layout_heights=y(this.layout_heights,this),this.setup_layout_properties=y(this.setup_layout_properties,this),e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.setup_layout_properties=function(){var t,e,i,n,r,s;for(this.register_property("layout_heights",this.layout_heights,!1),this.register_property("layout_widths",this.layout_widths,!1),i=this.get("viewstates"),n=[],t=0,e=i.length;e&gt;t;t++)r=i[t],n.push(function(){var t,e,i;for(i=[],t=0,e=r.length;e&gt;t;t++)s=r[t],this.add_dependencies("layout_heights",s,"height"),i.push(this.add_dependencies("layout_widths",s,"width"));return i}.call(this));return n},e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),this.setup_layout_properties(),this.listenTo(this,"change:viewstates",this.setup_layout_properties),n=function(t){return function(){return d.reduce(t.get("layout_heights"),function(t,e){return t+e},0)}}(this),this.register_property("height",n,!1),this.add_dependencies("height",this,"layout_heights"),r=function(t){return function(){return d.reduce(t.get("layout_widths"),function(t,e){return t+e},0)}}(this),this.register_property("width",r,!1),this.add_dependencies("width",this,"layout_widths")},e.prototype.position_child_x=function(t,e){return t},e.prototype.position_child_y=function(t,e){return this.get("height")-t-e},e.prototype.maxdim=function(t,e){return 0===e.length?0:d.max(d.map(e,function(e){return null!=e?e.get(t):0}))},e.prototype.layout_heights=function(){var t,e;return e=function(){var e,i,n,r;for(n=this.get("viewstates"),r=[],e=0,i=n.length;i&gt;e;e++)t=n[e],r.push(this.maxdim("height",t));return r}.call(this)},e.prototype.layout_widths=function(){var t,e,i,n,r,s;return r=this.get("viewstates")[0].length,i=function(){var t,e,i,o;for(i=d.range(r),o=[],t=0,e=i.length;e&gt;t;t++)n=i[t],o.push(function(){var t,e,i,r;for(i=this.get("viewstates"),r=[],t=0,e=i.length;e&gt;t;t++)s=i[t],r.push(s[n]);return r}.call(this));return o}.call(this),e=function(){var e,n,r;for(r=[],e=0,n=i.length;n&gt;e;e++)t=i[e],r.push(this.maxdim("width",t));return r}.call(this)},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{viewstates:[[]],border_space:0})},e}(h),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.className="",e.prototype.template=m,e.prototype.initialize=function(t){var i,n;return e.__super__.initialize.call(this,t),this.viewstate=new u,this.child_views={},this.build_children(),this.bind_bokeh_events(),this.$el.html(this.template()),i=this.mget("toolbar_location"),null!=i&amp;&amp;(n=".bk-plot-"+i,g.debug("attaching toolbar to "+n+" for plot "+this.model.id),this.tm_view=new c.View({model:this.mget("tool_manager"),el:this.$(n)})),this.render(),this},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:children",this.build_children),this.listenTo(this.model,"change",this.render),this.listenTo(this.viewstate,"change",this.render),this.listenTo(this.model,"destroy",this.remove)},e.prototype.build_children=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d,g,m,_,v,y;for(t=[],p=this.mget("children"),e=0,s=p.length;s&gt;e;e++)for(_=p[e],i=0,o=_.length;o&gt;i;i++)c=_[i],null!=c&amp;&amp;(c.set("toolbar_location",null),t.push(c));for(f(this.child_views,t,{}),v=[],d=this.mget("children"),n=0,a=d.length;a&gt;n;n++){for(_=d[n],y=[],r=0,l=_.length;l&gt;r;r++)c=_[r],null!=c&amp;&amp;y.push(this.child_views[c.id].canvas);v.push(y)}for(this.viewstate.set("viewstates",v),g=this.mget("children"),m=[],h=0,u=g.length;u&gt;h;h++)_=g[h],m.push(function(){var t,e,i;for(i=[],e=0,t=_.length;t&gt;e;e++)c=_[e],null!=c&amp;&amp;i.push(this.listenTo(c.solver,"layout_update",this.render));return i}.call(this));return m},e.prototype.render=function(){var t,i,r,s,o,a,l,u,h,p,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I;for(e.__super__.render.call(this),y=d.values(this.child_views),a=0,p=y.length;p&gt;a;a++)T=y[a],T.$el.detach();for(s=n("&lt;div /&gt;"),this.$(".bk-plot-canvas-wrapper").empty(),this.$(".bk-plot-canvas-wrapper").append(s),M=this.mget("toolbar_location"),null!=M&amp;&amp;(C=".bk-plot-"+M,this.tm_view=new c.View({model:this.mget("tool_manager"),el:this.$(C)}),this.tm_view.render()),k=this.viewstate.get("layout_heights"),r=this.viewstate.get("layout_widths"),E=[0],d.reduceRight(k.slice(1),function(t,e){var i;return i=t+e,E.push(i),i},0),E.reverse(),A=[0],d.reduce(r.slice(0),function(t,e){var i;return i=t+e,A.push(i),i},0),_=[],h=null,b=this.mget("children"),w=l=0,f=b.length;f&gt;l;w=++l)for(x=b[w],i=u=0,g=x.length;g&gt;u;i=++u)m=x[i],null!=m&amp;&amp;(T=this.child_views[m.id],I=this.viewstate.position_child_y(E[w],T.canvas.get("height")),P=this.viewstate.position_child_x(A[i],T.canvas.get("width")),v=n("&lt;div class='gp_plotwrapper'&gt;&lt;/div&gt;"),v.attr("style","position: absolute; left:"+P+"px; top:"+I+"px"),v.append(T.$el),s.append(v));return t=function(t,e){return t+e},D=d.reduce(k,t,0),o=D,S=d.reduce(r,t,0),s.attr("style","position:relative; height:"+o+"px;width:"+S+"px")},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.type="GridPlot",e.prototype.default_view=a,e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tool_manager",function(){var t,e,i,n,r;for(t=[],r=d.flatten(this.get("children")),e=0,i=r.length;i&gt;e;e++)n=r[e],null!=n&amp;&amp;t.push(n);return new l({tool_managers:function(){var e,i,r;for(r=[],e=0,i=t.length;i&gt;e;e++)n=t[e],r.push(n.get("tool_manager"));return r}(),toolbar_location:this.get("toolbar_location"),num_plots:t.length})},!0)},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{children:[[]],toolbar_location:"left"})},e}(h),e.exports={Model:o,View:a}},{"./build_views":101,"./continuum_view":109,"./has_properties":115,"./logging":119,"./plot_template":123,"./tool_manager":135,backbone:2,jquery:18,underscore:92}],114:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("./has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._parent=r.prototype.get.apply(this,["parent"])},e.prototype.get=function(t){var i;return this._display_defaults||(this._display_defaults=this.display_defaults()),"parent"===t?this._parent:(i=e.__super__.get.call(this,t),s.isUndefined(i)?this._parent&amp;&amp;s.indexOf(this._parent.parent_properties,t)&gt;=0&amp;&amp;(i=this._parent.get(t),!s.isUndefined(i))?i:this._display_defaults[t]:i)},e.prototype.display_defaults=function(){return{}},e}(r),e.exports=n},{"./has_properties":115,underscore:92}],115:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;n=t("jquery"),o=t("underscore"),r=t("backbone"),l=t("./logging").logger,a=function(t){var e;if(o.isObject(t)){if(e=o.keys(t).sort(),2===e.length)return"id"===e[0]&amp;&amp;"type"===e[1];if(3===e.length)return"id"===e[0]&amp;&amp;"subtype"===e[1]&amp;&amp;"type"===e[2]}return!1},s=function(e){function i(t,e){this.rpc=u(this.rpc,this),this.resolve_ref=u(this.resolve_ref,this),this.convert_to_ref=u(this.convert_to_ref,this);var i;i=t||{},e||(e={}),this.cid=o.uniqueId("c"),this.attributes={},e.collection&amp;&amp;(this.collection=e.collection),e.parse&amp;&amp;(i=this.parse(i,e)||{}),i=o.defaults({},i,o.result(this,"defaults")),this.set(i,e),this.changed={},this._base=!1,this.properties={},this.property_cache={},o.has(i,this.idAttribute)||(this.id=o.uniqueId(this.type),this.attributes[this.idAttribute]=this.id),e.defer_initialization||this.initialize.apply(this,arguments)}return h(i,e),i.prototype.toString=function(){return this.type+"("+this.id+")"},i.prototype.destroy=function(t){return i.__super__.destroy.call(this,t),this.stopListening()},i.prototype.isNew=function(){return!1},i.prototype.attrs_and_props=function(){var t,e,i,n,r;for(t=o.clone(this.attributes),r=o.keys(this.properties),e=0,i=r.length;i&gt;e;e++)n=r[e],t[n]=this.get(n);return t},i.prototype.forceTrigger=function(t){var e,i,n,r,s;for(o.isArray(t)||(t=[t]),s={},i=this._changing,this._changing=!0,t.length&amp;&amp;(this._pending=!0),n=0,r=t.length;r&gt;n;n++)e=t[n],this.trigger("change:"+e,this,this.attributes[e],s);if(i)return this;for(;this._pending;)this._pending=!1,this.trigger("change",this,s);return this._pending=!1,this._changing=!1,this},i.prototype.set_obj=function(t,e,i){var n,r;o.isObject(t)||null===t?(n=t,i=e):(n={},n[t]=e);for(t in n)c.call(n,t)&amp;&amp;(r=n[t],n[t]=this.convert_to_ref(r));return this.set(n,i)},i.prototype.set=function(t,e,n){var r,s,a,l,u;o.isObject(t)||null===t?(r=t,n=e):(r={},r[t]=e),l=[];for(t in r)c.call(r,t)&amp;&amp;(u=r[t],o.has(this,"properties")&amp;&amp;o.has(this.properties,t)&amp;&amp;this.properties[t].setter&amp;&amp;(this.properties[t].setter.call(this,u,t),l.push(t)));if(!o.isEmpty(l))for(r=o.clone(r),s=0,a=l.length;a&gt;s;s++)t=l[s],delete r[t];return o.isEmpty(r)?void 0:i.__super__.set.call(this,r,n)},i.prototype.convert_to_ref=function(t){return o.isArray(t)?o.map(t,this.convert_to_ref):t instanceof i?t.ref():void 0},i.prototype.add_dependencies=function(t,e,i){var n,r,s,a,l;for(o.isArray(i)||(i=[i]),a=this.properties[t],a.dependencies=a.dependencies.concat({obj:e,fields:i}),l=[],r=0,s=i.length;s&gt;r;r++)n=i[r],l.push(this.listenTo(e,"change:"+n,a.callbacks.changedep));return l},i.prototype.register_setter=function(t,e){var i;return i=this.properties[t],i.setter=e},i.prototype.register_property=function(t,e,i){var n,r,s;return o.isUndefined(i)&amp;&amp;(i=!0),o.has(this.properties,t)&amp;&amp;this.remove_property(t),n=function(e){return function(){return e.trigger("changedep:"+t)}}(this),s=function(e){return function(){var i,n,s;return i=!0,r.use_cache&amp;&amp;(s=e.get_cache(t),e.clear_cache(t),n=e.get(t),i=n!==s),i?(e.trigger("change:"+t,e,e.get(t)),e.trigger("change",e)):void 0}}(this),r={getter:e,dependencies:[],use_cache:i,setter:null,callbacks:{changedep:n,propchange:s}},this.properties[t]=r,this.listenTo(this,"changedep:"+t,r.callbacks.propchange),r},i.prototype.remove_property=function(t){var e,i,n,r,s,o,a,l,u,h;for(u=this.properties[t],i=u.dependencies,r=0,o=i.length;o&gt;r;r++)for(e=i[r],l=e.obj,h=e.fields,s=0,a=h.length;a&gt;s;s++)n=h[s],l.off("change:"+n,u.callbacks.changedep,this);return this.off("changedep:"+e),delete this.properties[t],u.use_cache?this.clear_cache(t):void 0},i.prototype.has_cache=function(t){return o.has(this.property_cache,t)},i.prototype.add_cache=function(t,e){return this.property_cache[t]=e},i.prototype.clear_cache=function(t,e){return delete this.property_cache[t]},i.prototype.get_cache=function(t){return this.property_cache[t]},i.prototype.get=function(t,e){var n;return null==e&amp;&amp;(e=!0),o.has(this.properties,t)?this._get_prop(t):(n=i.__super__.get.call(this,t),e?this.resolve_ref(n):n)},i.prototype._get_prop=function(t){var e,i,n;return n=this.properties[t],n.use_cache&amp;&amp;this.has_cache(t)?this.property_cache[t]:(i=n.getter,e=i.apply(this,[t]),this.properties[t].use_cache&amp;&amp;this.add_cache(t,e),e)},i.prototype.ref=function(){return{type:this.type,id:this.id}},i.prototype.resolve_ref=function(t){var e;return o.isUndefined(t)?t:o.isArray(t)?function(){var i,n,r;for(r=[],i=0,n=t.length;n&gt;i;i++)e=t[i],r.push(this.resolve_ref(e));return r}.call(this):a(t)?t.type===this.type&amp;&amp;t.id===this.id?this:this.get_base().Collections(t.type).get(t.id):t},i.prototype.get_base=function(){return this._base||(this._base=t("./base")),this._base},i.prototype.url=function(){var t,e;return t=this.get("doc"),null==t&amp;&amp;l.error("unset 'doc' in "+this),e=this.get_base().Config.prefix+"bokeh/bb/"+t+"/"+this.type+"/",this.isNew()?e:e+this.get("id")+"/"},i.prototype.sync=function(t,e,i){return i.success(e.attributes,null,{})},i.prototype.defaults=function(){return{}},i.prototype.rpc=function(t,e,i){var r,s,o,a,l,u,h;if(a=this.get_base().Config.prefix,s=this.get("doc"),null==s)throw new Error("Unset 'doc' in "+this);return o=this.get("id"),u=this.type,h=a+"bokeh/bb/rpc/"+s+"/"+u+"/"+o+"/"+t+"/",r={args:e,kwargs:i},l=n.ajax({type:"POST",url:h,data:JSON.stringify(r),contentType:"application/json",xhrFields:{withCredentials:!0}})},i}(r.Model),e.exports=s},{"./base":99,"./logging":119,backbone:2,jquery:18,underscore:92}],116:[function(t,e,i){var n,r,s,o,a,l,u;l=function(t,e,i,n){var r,s,o,a,l,u,h,c;for(s=!1,l=i[i.length-1],h=n[n.length-1],r=o=0,a=i.length;a&gt;=0?a&gt;o:o&gt;a;r=a&gt;=0?++o:--o)u=i[r],c=n[r],e&gt;h!=e&gt;c&amp;&amp;t&gt;l+(e-h)/(c-h)*(u-l)&amp;&amp;(s=!s),l=u,h=c;return s},r=function(){var t;return t={"0d":{flag:!1,indices:[]},"1d":{indices:[]},"2d":{indices:[]}}},u=function(t){return t*t},s=function(t,e,i,n){return u(t-i)+u(e-n)},a=function(t,e,i){var n,r;return n=s(e.x,e.y,i.x,i.y),0===n?s(t.x,t.y,e.x,e.y):(r=((t.x-e.x)*(i.x-e.x)+(t.y-e.y)*(i.y-e.y))/n,0&gt;r?s(t.x,t.y,e.x,e.y):r&gt;1?s(t.x,t.y,i.x,i.y):s(t.x,t.y,e.x+r*(i.x-e.x),e.y+r*(i.y-e.y)))},o=function(t,e,i){return Math.sqrt(a(t,e,i))},n=function(t,e,i,n,r,s,o,a){var l,u,h,c,p,d,f;return h=(a-s)*(i-t)-(o-r)*(n-e),0===h?{hit:!1,x:null,y:null}:(l=e-s,u=t-r,c=(o-r)*l-(a-s)*u,p=(i-t)*l-(n-e)*u,l=c/h,u=p/h,d=t+l*(i-t),f=e+l*(n-e),{hit:l&gt;0&amp;&amp;1&gt;l&amp;&amp;u&gt;0&amp;&amp;1&gt;u,x:d,y:f})},e.exports={point_in_poly:l,create_hit_test_result:r,dist_2_pts:s,dist_to_segment:o,check_2_segments_intersect:n}},{}],117:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;d=t("underscore"),null!=i._bokehTest?f={}:(f=t("kiwi"),p=f.Variable,s=f.Expression,n=f.Constraint,h=f.Operator,r=h.Eq,u=h.Le,o=h.Ge),a=t("./has_properties"),c=t("../range/range1d"),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.type="LayoutBox",e.prototype.initialize=function(t,i){var a,l,u,h,d,g,m,_;for(e.__super__.initialize.call(this,t,i),this.solver=this.get("solver"),this.var_constraints={},g=["top","left","width","height"],a=0,u=g.length;u&gt;a;a++)_=g[a],d="_"+_,this[d]=new p(_),this.register_property(_,this._get_var,!1),this.register_setter(_,this._set_var),this.solver.add_edit_variable(this[d],f.Strength.strong);for(m=["right","bottom"],l=0,h=m.length;h&gt;l;l++)_=m[l],d="_"+_,this[d]=new p(_),this.register_property(_,this._get_var,!1);return this.solver.add_constraint(new n(new s(this._top),o)),this.solver.add_constraint(new n(new s(this._bottom),o)),this.solver.add_constraint(new n(new s(this._left),o)),this.solver.add_constraint(new n(new s(this._right),o)),this.solver.add_constraint(new n(new s(this._width),o)),this.solver.add_constraint(new n(new s(this._height),o)),this.solver.add_constraint(new n(new s(this._left,this._width,[-1,this._right]),r)),this.solver.add_constraint(new n(new s(this._bottom,this._height,[-1,this._top]),r)),this._h_range=new c.Model({start:this.get("left"),end:this.get("left")+this.get("width")}),this.register_property("h_range",function(t){return function(){return t._h_range.set("start",t.get("left")),t._h_range.set("end",t.get("left")+t.get("width")),t._h_range}}(this),!1),this.add_dependencies("h_range",this,["left","width"]),this._v_range=new c.Model({start:this.get("bottom"),end:this.get("bottom")+this.get("height")}),this.register_property("v_range",function(t){return function(){return t._v_range.set("start",t.get("bottom")),t._v_range.set("end",t.get("bottom")+t.get("height")),t._v_range}}(this),!1),this.add_dependencies("v_range",this,["bottom","height"]),this._aspect_constraint=null,this.register_property("aspect",function(t){return function(){return t.get("width")/t.get("height")}}(this),!0),this.register_setter("aspect",this._set_aspect),this.add_dependencies("aspect",this,["width","height"])},e.prototype.contains=function(t,e){return t&gt;=this.get("left")&amp;&amp;t&lt;=this.get("right")&amp;&amp;e&gt;=this.get("bottom")&amp;&amp;e&lt;=this.get("top")},e.prototype._set_var=function(t,e){var i,o;return o=this["_"+e],d.isNumber(t)?this.solver.suggest_value(o,t):d.isString(t)?void 0:(i=new n(new s(o,[-1,t]),r),null==this.var_constraints[e]&amp;&amp;(this.var_constraints[e]=[]),this.var_constraints[e].push(i),this.solver.add_constraint(i))},e.prototype._get_var=function(t){return this["_"+t].value()},e.prototype._set_aspect=function(t){var e;return null!=this._aspect_constraint?(this.solver.remove_constraint(this.aspect_constraint),e=new n(new s([t,this._height],[-1,this._width]),r),this._aspect_constraint=e,this.solver.add_constraint(e)):void 0},e.prototype.defaults=function(){return d.extend({},e.__super__.defaults.call(this),{top_strength:f.Strength.strong,bottom_strength:f.Strength.strong,left_strength:f.Strength.strong,right_strength:f.Strength.strong,width_strength:f.Strength.strong,height_strength:f.Strength.strong})},e}(a),e.exports={Model:l}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../range/range1d":146,"./has_properties":115,kiwi:303,underscore:92}],118:[function(t,e,i){var n,r,s;n=t("./base"),s=t("./logging").logger,r=function(e){var i,n,r,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T;for(_=[],v=[],i=t("./base").Collections,s.debug("load_models: start"),o={},l=0,c=e.length;c&gt;l;l++)d=e[l],g=d.type,n=d.attributes,f=n.id,r=i(g),null!=r?r.get(f)?v.push([r,n,g]):f in o?s.warn("load_models: ignoring duplicate "+g+" ("+f+")"):(o[f]=!0,_.push([r,n,g])):s.warn("load_models: no collection for "+g+" ("+f+"), ignoring");for(s.debug("load_models: adding "+_.length+" new models to collections"),a=u=0,y=_.length;y&gt;=0?y&gt;u:u&gt;y;a=y&gt;=0?++u:--u)b=_[a],r=b[0],n=b[1],T=b[2],s.trace("load_models: adding ["+a+"] "+T+" ("+n.id+")"),r.add(n,{silent:!0,defer_initialization:!0});for(s.debug("load_models: finished adding new models to collections"),s.debug("load_models: starting deferred initializations of "+_.length+" new models"),a=h=0,w=_.length;w&gt;=0?w&gt;h:h&gt;w;a=w&gt;=0?++h:--h)x=_[a],r=x[0],n=x[1],T=x[2],d=r.get(n.id),s.trace("load_models: initializing ["+a+"] "+d.type+" ("+n.id+")"),d.initialize(n);for(s.debug("load_models: finished deferred initializations"),a=p=0,k=_.length;k&gt;=0?k&gt;p:p&gt;k;a=k&gt;=0?++p:--p)M=_[a],r=M[0],n=M[1],T=M[2],d=r.get(n.id),d.trigger("add",d,r,{});for(a=m=0,C=v.length;C&gt;=0?C&gt;m:m&gt;C;a=C&gt;=0?++m:--m)D=v[a],r=D[0],n=D[1],T=D[2],r.get(n.id).set(n);return s.debug("load_models: finish"),null},e.exports=r},{"./base":99,"./logging":119}],119:[function(t,e,i){var n,r,s;n=t("jsnlog").JL,r=n("Bokeh"),r.setOptions({appenders:[n.createConsoleAppender("consoleAppender")]}),s=function(t){var e;return e={trace:n.getTraceLevel(),debug:n.getDebugLevel(),info:n.getInfoLevel(),warn:n.getWarnLevel(),error:n.getErrorLevel(),fatal:n.getFatalLevel()},t in e?(console.log("Bokeh: setting log level to: '"+t+"'"),r.setOptions({level:e[t]})):(console.log("Bokeh: Unrecognized logging level '"+t+"' passed to Bokeh.set_log_level, ignoring."),void console.log("Bokeh: Valid log levels are: "+Object.keys(e)))},e.exports={logger:r,set_log_level:s}},{jsnlog:19}],120:[function(t,e,i){var n,r,s;s=function(t){for(;0&gt;t;)t+=2*Math.PI;for(;t&gt;2*Math.PI;)t-=2*Math.PI;return t},r=function(t,e){return Math.abs(s(t-e))},n=function(t,e,i,n){var o;return t=s(t),o=r(e,i),"anticlock"===n?r(e,t)&lt;=o&amp;&amp;r(t,i)&lt;=o:!(r(e,t)&lt;=o&amp;&amp;r(t,i)&lt;=o)},e.exports={angle_norm:s,angle_dist:r,angle_between:n}},{}],121:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A=function(t,e){return function(){return t.apply(e,arguments)}},P=function(t,e){function i(){this.constructor=t}for(var n in e)E.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,
        t.prototype=new i,t.__super__=e.prototype,t},E={}.hasOwnProperty;w=t("underscore"),n=t("jquery"),r=t("backbone"),null!=i._bokehTest?M={}:(M=t("kiwi"),h=M.Expression,a=M.Constraint,g=M.Operator,u=g.Eq,f=g.Le,c=g.Ge),x=t("./build_views"),s=t("./canvas"),o=t("./cartesian_frame"),l=t("./continuum_view"),b=t("./ui_events"),p=t("./has_parent"),d=t("./layout_box"),C=t("./logging").logger,T=t("./plot_utils"),v=t("./solver"),y=t("./tool_manager"),D=t("./plot_template"),S=t("./properties"),k=null,_=function(t){function e(){return this.resize=A(this.resize,this),this.remove=A(this.remove,this),this.request_render=A(this.request_render,this),e.__super__.constructor.apply(this,arguments)}return P(e,t),e.prototype.className="bk-plot",e.prototype.template=D,e.prototype.view_options=function(){return w.extend({plot_model:this.model,plot_view:this},this.options)},e.prototype.pause=function(){return this.is_paused=!0},e.prototype.unpause=function(){return this.is_paused=!1,this.request_render()},e.prototype.request_render=function(){this.is_paused||this.throttled_render(!0)},e.prototype.remove=function(){var t,i,n,r;e.__super__.remove.call(this),i=this.tools,n=[];for(t in i)r=i[t],n.push(r.remove());return n},e.prototype.initialize=function(t){var i,r,s,o,a,l,u,h,c,p;for(e.__super__.initialize.call(this,t),this.pause(),this.model.initialize_layout(this.model.solver),this.frame=this.mget("frame"),this.x_range=this.frame.get("x_ranges")["default"],this.y_range=this.frame.get("y_ranges")["default"],this.xmapper=this.frame.get("x_mappers")["default"],this.ymapper=this.frame.get("y_mappers")["default"],this.$el.html(this.template()),this.canvas=this.mget("canvas"),this.canvas_view=new this.canvas.default_view({model:this.canvas}),this.$(".bk-plot-canvas-wrapper").append(this.canvas_view.el),this.canvas_view.render(),(this.mget("webgl")||window.location.search.indexOf("webgl=1")&gt;0)&amp;&amp;-1===window.location.search.indexOf("webgl=0")&amp;&amp;this.init_webgl(),this.throttled_render=T.throttle_animation(this.render,15),this.outline_props=new S.Line({obj:this.model,prefix:"outline_"}),this.title_props=new S.Text({obj:this.model,prefix:"title_"}),this.renderers={},this.tools={},this.levels={},a=T.LEVELS,r=0,s=a.length;s&gt;r;r++)o=a[r],this.levels[o]={};this.build_levels(),this.bind_bokeh_events(),this.model.add_constraints(this.canvas.solver),this.listenTo(this.canvas.solver,"layout_update",this.request_render),this.ui_event_bus=new b({tool_manager:this.mget("tool_manager"),hit_area:this.canvas_view.$el}),l=this.tools;for(i in l)h=l[i],this.ui_event_bus.register_tool(h);return c=this.mget("toolbar_location"),null!=c&amp;&amp;(p=".bk-plot-"+c,C.debug("attaching toolbar to "+p+" for plot "+this.model.id),this.tm_view=new y.View({model:this.mget("tool_manager"),el:this.$(p)})),this.update_dataranges(),this.mget("responsive")&amp;&amp;(u=w.throttle(this.resize,100),n(window).on("resize",u),n(this.resize)),this.unpause(),C.debug("PlotView initialized"),this},e.prototype.init_webgl=function(){var t,e;return t=k,null==t&amp;&amp;(k=t=document.createElement("canvas"),e={premultipliedAlpha:!0},t.gl=t.getContext("webgl",e)||t.getContext("experimental-webgl",e)),null!=t.gl?this.canvas_view.ctx.glcanvas=t:C.warn("WebGL is not supported, falling back to 2D canvas.")},e.prototype.update_dataranges=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d,f;i=this.model.get("frame"),e={},l=this.renderers;for(r in l)p=l[r],t=null!=(u=p.glyph)&amp;&amp;"function"==typeof u.bounds?u.bounds():void 0,null!=t&amp;&amp;(e[r]=t);for(h=w.values(i.get("x_ranges")),n=0,o=h.length;o&gt;n;n++)d=h[n],"function"==typeof d.update&amp;&amp;d.update(e,0,this);for(c=w.values(i.get("y_ranges")),s=0,a=c.length;a&gt;s;s++)f=c[s],"function"==typeof f.update&amp;&amp;f.update(e,1,this);return this.range_update_timestamp=Date.now()},e.prototype.map_to_screen=function(t,e,i,n){return null==i&amp;&amp;(i="default"),null==n&amp;&amp;(n="default"),this.frame.map_to_screen(t,e,this.canvas,i,n)},e.prototype.update_range=function(t){var e,i,n,r,s,o;null==t&amp;&amp;(t=this.initial_range_info),this.pause(),i=this.frame.get("x_ranges");for(e in i)o=i[e],(o.get("start")!==t.xrs[e].start||o.get("end")!==t.xrs[e].end)&amp;&amp;(o.set(t.xrs[e]),null!=(n=o.get("callback"))&amp;&amp;n.execute(this.model));r=this.frame.get("y_ranges");for(e in r)o=r[e],(o.get("start")!==t.yrs[e].start||o.get("end")!==t.yrs[e].end)&amp;&amp;(o.set(t.yrs[e]),null!=(s=o.get("callback"))&amp;&amp;s.execute(this.model));return this.unpause()},e.prototype.build_levels=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d;for(l=w.keys(this.renderers),d=x(this.renderers,this.mget("renderers"),this.view_options()),u=w.difference(l,w.pluck(this.mget("renderers"),"id")),e=0,n=u.length;n&gt;e;e++)t=u[e],delete this.levels.glyph[t];for(c=x(this.tools,this.mget("tools"),this.view_options()),i=0,r=d.length;r&gt;i;i++)p=d[i],o=p.mget("level"),this.levels[o][p.model.id]=p,p.bind_bokeh_events();for(a=0,s=c.length;s&gt;a;a++)h=c[a],o=h.mget("level"),this.levels[o][h.model.id]=h,h.bind_bokeh_events();return this},e.prototype.bind_bokeh_events=function(){var t,e,i,n;e=this.mget("frame").get("x_ranges");for(t in e)n=e[t],this.listenTo(n,"change",this.request_render);i=this.mget("frame").get("y_ranges");for(t in i)n=i[t],this.listenTo(n,"change",this.request_render);return this.listenTo(this.model,"change:renderers",this.build_levels),this.listenTo(this.model,"change:tool",this.build_levels),this.listenTo(this.model,"change",this.request_render),this.listenTo(this.model,"destroy",function(t){return function(){return t.remove()}}(this))},e.prototype.set_initial_range=function(){var t,e,i,n,r,s,o;t=!0,s={},i=this.frame.get("x_ranges");for(e in i){if(r=i[e],null==r.get("start")||null==r.get("end")||w.isNaN(r.get("start")+r.get("end"))){t=!1;break}s[e]={start:r.get("start"),end:r.get("end")}}if(t){o={},n=this.frame.get("y_ranges");for(e in n){if(r=n[e],null==r.get("start")||null==r.get("end")||w.isNaN(r.get("start")+r.get("end"))){t=!1;break}o[e]={start:r.get("start"),end:r.get("end")}}}return t?(this.initial_range_info={xrs:s,yrs:o},C.debug("initial ranges set")):C.warn("could not set initial ranges")},e.prototype.render=function(t){var i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,D,T;null==t&amp;&amp;(t=!1),C.trace("Plot.render(force_canvas="+t+")"),Date.now()-this.interactive_timestamp&lt;this.mget("lod_interval")?(this.interactive=!0,f=this.mget("lod_timeout"),setTimeout(function(t){return function(){return t.interactive&amp;&amp;Date.now()-t.interactive_timestamp&gt;f&amp;&amp;(t.interactive=!1),t.request_render()}}(this),f)):this.interactive=!1,T=this.mget("plot_width"),l=this.mget("plot_height"),(this.canvas.get("canvas_width")!==T||this.canvas.get("canvas_height")!==l)&amp;&amp;this.canvas._set_dims([T,l],M=!1),e.__super__.render.call(this),this.canvas_view.render(t),null!=this.tm_view&amp;&amp;this.tm_view.render(),n=this.canvas_view.ctx,s=this.model.get("frame"),i=this.model.get("canvas"),m=this.renderers;for(h in m)D=m[h],null!=D.model.update_layout&amp;&amp;D.model.update_layout(D,this.canvas.solver);_=this.renderers;for(h in _)if(D=_[h],D.set_data_timestamp&gt;(null!=this.range_update_timestamp)){this.update_dataranges();break}if(k=this.mget("title"),k&amp;&amp;(this.title_props.set_value(this.canvas_view.ctx),x=n.measureText(this.mget("title")).ascent+this.model.get("title_standoff"),x!==this.model.title_panel.get("height")&amp;&amp;this.model.title_panel.set("height",x)),this.model.get("frame").set("width",i.get("width")-1),this.model.get("frame").set("height",i.get("height")-1),this.canvas.solver.update_variables(!1),this.model.get("frame")._update_mappers(),o=[this.canvas.vx_to_sx(this.frame.get("left")),this.canvas.vy_to_sy(this.frame.get("top")),this.frame.get("width"),this.frame.get("height")],this._map_hook(n,o),this._paint_empty(n,o),n.glcanvas&amp;&amp;(n.glcanvas.width=this.canvas_view.canvas[0].width,n.glcanvas.height=this.canvas_view.canvas[0].height,a=n.glcanvas.gl,a.viewport(0,0,n.glcanvas.width,n.glcanvas.height),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT||a.DEPTH_BUFFER_BIT),a.enable(a.SCISSOR_TEST),r=n.glcanvas.height-(o[1]+o[3]),a.scissor(o[0],r,o[2],o[3]),a.enable(a.BLEND),a.blendFuncSeparate(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA,a.ONE_MINUS_DST_ALPHA,a.ONE)),this.outline_props.do_stroke&amp;&amp;(this.outline_props.set_value(n),n.strokeRect.apply(n,o)),this._render_levels(n,["image","underlay","glyph","annotation"],o),n.glcanvas){for(v=["image","mozImage","webkitImage","msImage"],u=0,p=v.length;p&gt;u;u++)g=v[u],n[g+"SmoothingEnabled"]=!1;for(n.drawImage(n.glcanvas,.1,.1),y=["image","mozImage","webkitImage","msImage"],c=0,d=y.length;d&gt;c;c++)g=y[c],n[g+"SmoothingEnabled"]=!0;C.debug("drawing with WebGL")}return this._render_levels(n,["overlay","tool"]),k&amp;&amp;(b=this.canvas.vx_to_sx(this.canvas.get("width")/2),w=this.canvas.vy_to_sy(this.model.title_panel.get("bottom")+this.model.get("title_standoff")),this.title_props.set_value(n),n.fillText(k,b,w)),null==this.initial_range_info?this.set_initial_range():void 0},e.prototype.resize=function(){var t,e,i,n,r,s;return e=this.canvas.get("height"),i=this.canvas.get("width"),t=i/e,n=this.mget("min_size"),s=Math.max(this.el.clientWidth,n),r=parseInt(s/t),n&gt;r&amp;&amp;(r=100,s=r*t),this.canvas._set_dims([s,r]),null},e.prototype._render_levels=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m;for(t.save(),null!=i&amp;&amp;(t.beginPath(),t.rect.apply(t,i),t.clip(),t.beginPath()),r={},p=this.mget("renderers"),n=s=0,a=p.length;a&gt;s;n=++s)d=p[n],r[d.id]=n;for(m=function(t){return r[t.model.id]},o=0,l=e.length;l&gt;o;o++)for(h=e[o],g=w.sortBy(w.values(this.levels[h]),m),c=0,u=g.length;u&gt;c;c++)f=g[c],f.render();return t.restore()},e.prototype._map_hook=function(t,e){},e.prototype._paint_empty=function(t,e){return t.fillStyle=this.mget("border_fill"),t.fillRect(0,0,this.canvas_view.mget("canvas_width"),this.canvas_view.mget("canvas_height")),t.fillStyle=this.mget("background_fill"),t.fillRect.apply(t,e)},e}(l),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return P(e,t),e.prototype.type="Plot",e.prototype.default_view=_,e.prototype.initialize=function(t,i){var n,r,o,a,l,u,h,c,p,d,f,g,m,_,b;for(e.__super__.initialize.call(this,t,i),d=w.values(this.get("extra_x_ranges")).concat(this.get("x_range")),r=0,a=d.length;a&gt;r;r++)_=d[r],_=this.resolve_ref(_),c=_.get("plots"),w.isArray(c)&amp;&amp;(c=c.concat(this),_.set("plots",c));for(f=w.values(this.get("extra_y_ranges")).concat(this.get("y_range")),o=0,l=f.length;l&gt;o;o++)b=f[o],b=this.resolve_ref(b),c=b.get("plots"),w.isArray(c)&amp;&amp;(c=c.concat(this),b.set("plots",c));for(n=new s.Model({map:null!=(g=this.use_map)?g:!1,canvas_width:this.get("plot_width"),canvas_height:this.get("plot_height"),hidpi:this.get("hidpi"),solver:new v}),this.set("canvas",n),this.solver=n.get("solver"),m=this.get("renderers"),h=0,u=m.length;u&gt;h;h++)p=m[h],p.set("parent",this);return this.set("tool_manager",new y.Model({tools:this.get("tools"),toolbar_location:this.get("toolbar_location"),logo:this.get("logo")})),C.debug("Plot initialized")},e.prototype.initialize_layout=function(t){var e,i,n;return e=this.get("canvas"),n=new o.Model({x_range:this.get("x_range"),extra_x_ranges:this.get("extra_x_ranges"),x_mapper_type:this.get("x_mapper_type"),y_range:this.get("y_range"),extra_y_ranges:this.get("extra_y_ranges"),y_mapper_type:this.get("y_mapper_type"),solver:t}),this.set("frame",n),this.title_panel=new d.Model({solver:t}),this.title_panel._anchor=this.title_panel._bottom,i=this.get("above"),i.push(this.title_panel),this.set("above",i)},e.prototype.add_constraints=function(t){var e,i,n,r,s,o,l,p,g;return s=null!=(o=this.get("min_border_top"))?o:this.get("min_border"),i=null!=(l=this.get("min_border_bottom"))?l:this.get("min_border"),n=null!=(p=this.get("min_border_left"))?p:this.get("min_border"),r=null!=(g=this.get("min_border_right"))?g:this.get("min_border"),e=function(t){return function(e,i,n,r,s,o){var l,p,f,g,m,_,v,y,b,w,x,k;for(g=t.get("canvas"),_=t.get("frame"),l=new d.Model({solver:e}),p="_"+r[0],f="_"+r[1],e.add_constraint(new a(new h(l["_"+s],-i),c),M.Strength.strong),e.add_constraint(new a(new h(_[p],[-1,l[f]]),u)),e.add_constraint(new a(new h(l[p],[-1,g[p]]),u)),y=_,m=t.get(n),v=0,b=m.length;b&gt;v;v++)x=m[v],(null!=(k=x.get("location"))?k:!0)&amp;&amp;x.set("location",n,{silent:!0}),null!=x.initialize_layout&amp;&amp;x.initialize_layout(e),e.add_constraint(new a(new h(y[p],[-1,x[f]]),u),M.Strength.strong),y=x;return w=new d.Model({solver:e}),e.add_constraint(new a(new h(y[p],[-1,w[f]]),u),M.Strength.strong),e.add_constraint(new a(new h(w[p],[-1,g[p]]),u),M.Strength.strong)}}(this),e(t,s,"above",["top","bottom"],"height",f),e(t,i,"below",["bottom","top"],"height",c),e(t,n,"left",["left","right"],"width",c),e(t,r,"right",["right","left"],"width",f)},e.prototype.add_renderers=function(t){var e;return e=this.get("renderers"),e=e.concat(t),this.set("renderers",e)},e.prototype.parent_properties=["background_fill","border_fill","min_border","min_border_top","min_border_bottom","min_border_left","min_border_right"],e.prototype.defaults=function(){return w.extend({},e.__super__.defaults.call(this),{renderers:[],tools:[],h_symmetry:!0,v_symmetry:!1,x_mapper_type:"auto",y_mapper_type:"auto",plot_width:600,plot_height:600,title:"",above:[],below:[],left:[],right:[],toolbar_location:"above",logo:"normal",lod_factor:10,lod_interval:300,lod_threshold:2e3,lod_timeout:500,webgl:!1,responsive:!1,min_size:100})},e.prototype.display_defaults=function(){return w.extend({},e.__super__.display_defaults.call(this),{hidpi:!0,background_fill:"#fff",border_fill:"#fff",min_border:40,title_standoff:8,title_text_font:"helvetica",title_text_font_size:"20pt",title_text_font_style:"normal",title_text_color:"#444444",title_text_alpha:1,title_text_align:"center",title_text_baseline:"alphabetic",outline_line_color:"#aaaaaa",outline_line_width:1,outline_line_alpha:1,outline_line_join:"miter",outline_line_cap:"butt",outline_line_dash:[],outline_line_dash_offset:0})},e}(p),e.exports={Model:m,View:_}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./build_views":101,"./canvas":103,"./cartesian_frame":105,"./continuum_view":109,"./has_parent":114,"./layout_box":117,"./logging":119,"./plot_template":123,"./plot_utils":124,"./properties":126,"./solver":131,"./tool_manager":135,"./ui_events":137,backbone:2,jquery:18,kiwi:303,underscore:92}],122:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),l=t("underscore"),u=t("./build_views"),s=t("./has_parent"),r=t("./continuum_view"),a=function(t){function e(){return this.removeplot=h(this.removeplot,this),this.closeall=h(this.closeall,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t){return this.views={},this.child_models=[],e.__super__.initialize.call(this,t),this.render()},e.prototype.delegateEvents=function(){return this.listenTo(this.model,"destroy",this.remove),this.listenTo(this.model,"change",this.render),e.__super__.delegateEvents.call(this)},e.prototype.build_children=function(){var t;return t=u(this.views,this.mget("children"),{}),window.pc_created_views=t,window.pc_views=this.views,null},e.prototype.size_textarea=function(t){var e;return e=n(t).height(0).prop("scrollHeight"),n(t).height(e)},e.prototype.closeall=function(t){return this.mset("children",[]),this.model.save()},e.prototype.removeplot=function(t){var e,i,r,s,o;return i=parseInt(n(t.currentTarget).parent().attr("data-plot_num")),r=this.mget("children")[i],s=this.views[r.get("id")],s.remove(),e=function(){var t,e,i,n;for(i=this.mget("children"),n=[],t=0,e=i.length;e&gt;t;t++)o=i[t],o.id!==s.model.id&amp;&amp;n.push(o);return n}.call(this),this.mset("children",e),this.model.save(),!1},e.prototype.render=function(){var t,i,r,s,o,a,u,h,c,d,f,g,m;e.__super__.render.call(this),this.build_children(),h=this.views;for(r in h)p.call(h,r)&amp;&amp;(g=h[r],g.$el.detach());for(this.$el.html(""),u=l.keys(this.views).length,f=[],d={},c=this.mget("children"),i=t=0,s=c.length;s&gt;t;i=++t)o=c[i],m=this.views[o.id],a=n("&lt;div class='jsp' data-plot_num='"+i+"'&gt;&lt;/div&gt;"),this.$el.append(a),a.append(m.el);return l.defer(function(t){return function(){var e,i,r,s,o;for(r=t.$el.find(".plottitle"),s=[],e=0,i=r.length;i&gt;e;e++)o=r[e],s.push(t.size_textarea(n(o)));return s}}(this)),null},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="PlotContext",e.prototype.default_view=a,e.prototype.url=function(){return e.__super__.url.call(this)},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{children:[]})},e}(s),e.exports={Model:o,View:a}},{"./build_views":101,"./continuum_view":109,"./has_parent":114,jquery:18,underscore:92}],123:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push("&lt;div class='bk-plot-wrapper'&gt;\n	&lt;table&gt;\n		&lt;tr&gt;\n			&lt;td&gt;&lt;/td&gt;\n			&lt;td class='bk-plot-above'&gt;&lt;/td&gt;\n			&lt;td&gt;&lt;/td&gt;\n		&lt;/tr&gt;\n		&lt;tr&gt;\n			&lt;td class=\"bk-plot-left\"&gt;&lt;/td&gt;\n			&lt;td class='bk-plot-canvas-wrapper'&gt;&lt;/td&gt;\n			&lt;td class=\"bk-plot-right\"&gt;&lt;/td&gt;\n		&lt;/tr&gt;\n		&lt;tr&gt;\n			&lt;td&gt;&lt;/td&gt;\n			&lt;td class='bk-plot-below'&gt;&lt;/td&gt;\n			&lt;td&gt;&lt;/td&gt;\n		&lt;/tr&gt;\n	&lt;/table&gt;\n&lt;/div&gt;\n")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],124:[function(t,e,i){var n,r,s,o;n=["image","underlay","glyph","overlay","annotation","tool"],r=function(t){return t()},s=("undefined"!=typeof window&amp;&amp;null!==window?window.requestAnimationFrame:void 0)||("undefined"!=typeof window&amp;&amp;null!==window?window.mozRequestAnimationFrame:void 0)||("undefined"!=typeof window&amp;&amp;null!==window?window.webkitRequestAnimationFrame:void 0)||("undefined"!=typeof window&amp;&amp;null!==window?window.msRequestAnimationFrame:void 0)||r,o=function(t,e){var i,n,r,o,a,l,u,h;return l=[null,null,null,null],n=l[0],i=l[1],h=l[2],u=l[3],a=0,o=!1,r=function(){return a=new Date,h=null,o=!1,u=t.apply(n,i)},function(){var t,l;return t=new Date,l=e-(t-a),n=this,i=arguments,0&gt;=l&amp;&amp;!o?(clearTimeout(h),o=!0,s(r)):h||(h=setTimeout(function(){return s(r)},l)),u}},e.exports={LEVELS:n,throttle_animation:o}},{}],125:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("./continuum_view"),r=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return s(i,t),i.prototype.tagName="div",i.prototype.initialize=function(t){return this.plot_model=t.plot_model,this.plot_view=t.plot_view},i.prototype.bind_bokeh_events=function(){},i.prototype.request_render=function(){return this.plot_view.request_render()},e.exports=i,i}(n)},{"./continuum_view":109}],126:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D=function(t,e){function i(){this.constructor=t}for(var n in e)T.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},T={}.hasOwnProperty,S=[].indexOf||function(t){for(var e=0,i=this.length;i&gt;e;e++)if(e in this&amp;&amp;this[e]===t)return e;return-1};y=t("underscore"),d=t("./has_properties"),M=t("./svg_colors"),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.obj=this.get("obj"),this.attr=this.get("attr"),this.listenTo(this.obj,"change:"+this.attr,function(){return this._init(),this.obj.trigger("propchange")}),this._init()},e.prototype._init=function(){var t;if(t=this.obj.get(this.attr),y.isObject(t)&amp;&amp;!y.isArray(t))if(this.spec=t,y.isUndefined(this.spec.value)){if(null==this.spec.field)throw new Error("spec for property '"+attr+"' needs one of 'value' or 'field'");this.field=this.spec.field}else this.fixed_value=this.spec.value;else this.fixed_value=t;if(null!=this.field&amp;&amp;!y.isString(this.field))throw new Error("field value for property '"+attr+"' is not a string");return null!=this.fixed_value?this.validate(this.fixed_value,this.attr):void 0},e.prototype.value=function(){var t;return t=null!=this.fixed_value?this.fixed_value:NaN,this.transform([t])[0]},e.prototype.array=function(t){var e,i,n,r;return e=t.get("data"),null!=this.field&amp;&amp;this.field in e?this.transform(t.get_column(this.field)):(n=t.get_length(),null==n&amp;&amp;(n=1),r=this.value(),function(){var t,e,s;for(s=[],i=t=0,e=n;e&gt;=0?e&gt;t:t&gt;e;i=e&gt;=0?++t:--t)s.push(r);return s}())},e.prototype.transform=function(t){return t},e.prototype.validate=function(t,e){return!0},e}(d),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isNumber(t))throw new Error("numeric property '"+e+"' given invalid value: "+t);return!0},e.prototype.transform=function(t){var e,i,n,r;for(r=new Float64Array(t.length),e=i=0,n=t.length;n&gt;=0?n&gt;i:i&gt;n;e=n&gt;=0?++i:--i)r[e]=t[e];return r},e}(m),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r,s,o,a;if(e.__super__.initialize.call(this,t,i),r=this.get("obj"),n=this.get("attr"),this.units=null!=(s=null!=(o=null!=(a=this.spec)?a.units:void 0)?o:r.get(n+"_units"))?s:"rad","deg"!==this.units&amp;&amp;"rad"!==this.units)throw new Error("Angle units must be one of 'deg' or 'rad', given invalid value: "+this.units)},e.prototype.transform=function(t){var i;return"deg"===this.units&amp;&amp;(t=function(){var e,n,r;for(r=[],e=0,n=t.length;n&gt;e;e++)i=t[e],r.push(i*Math.PI/180);return r}()),t=function(){var e,n,r;for(r=[],e=0,n=t.length;n&gt;e;e++)i=t[e],r.push(-i);return r}(),e.__super__.transform.call(this,t)},e}(g),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r,s,o,a;if(e.__super__.initialize.call(this,t,i),r=this.get("obj"),n=this.get("attr"),this.units=null!=(s=null!=(o=null!=(a=this.spec)?a.units:void 0)?o:r.get(n+"_units"))?s:"data","data"!==this.units&amp;&amp;"screen"!==this.units)throw new Error("Distance units must be one of 'data' or 'screen', given invalid value: "+this.units)},e}(g),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isArray(t))throw new Error("array property '"+e+"' given invalid value: "+t);return!0},e}(m),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isBoolean(t))throw new Error("boolean property '"+e+"' given invalid value: "+t);return!0},e}(m),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isNumber(t)&amp;&amp;!y.isString(t))throw new Error("coordinate property '"+e+"' given invalid value: "+t);return!0},e}(m),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(null==M[t.toLowerCase()]&amp;&amp;"#"!==t.substring(0,1)&amp;&amp;!this.valid_rgb(t))throw new Error("color property '"+e+"' given invalid value: "+t);return!0},e.prototype.valid_rgb=function(t){var e,i,n,r;switch(t.substring(0,4)){case"rgba":i={start:"rgba(",len:4,alpha:!0};break;case"rgb(":i={start:"rgb(",len:3,alpha:!1};break;default:return!1}if(new RegExp(".*?(\\.).*(,)").test(t))throw new Error("color expects integers for rgb in rgb/rgba tuple, received "+t);if(e=t.replace(i.start,"").replace(")","").split(",").map(parseFloat),e.length!==i.len)throw new Error("color expects rgba "+expect_len+"-tuple, received "+t);if(i.alpha&amp;&amp;!(0&lt;=(n=e[3])&amp;&amp;1&gt;=n))throw new Error("color expects rgba 4-tuple to have alpha value between 0 and 1");if(S.call(function(){var t,i,n,s;for(n=e.slice(0,3),s=[],t=0,i=n.length;i&gt;t;t++)r=n[t],s.push(r&gt;=0&amp;&amp;255&gt;=r);return s}(),!1)&gt;=0)throw new Error("color expects rgb to have value between 0 and 255");return!0},e}(m),_=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isString(t))throw new Error("string property '"+e+"' given invalid value: "+t);return!0},e}(m),c=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return this.levels=t.values.split(" "),e.__super__.initialize.call(this,t,i)},e.prototype.validate=function(t,e){if(S.call(this.levels,t)&lt;0)throw new Error("enum property '"+e+"' given invalid value: "+t+", valid values are: "+this.levels);return!0},e}(m),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return t.values="anticlock clock",e.__super__.initialize.call(this,t,i)},e.prototype.transform=function(t){var e,i,n,r;for(r=new Uint8Array(t.length),e=i=0,n=t.length;n&gt;=0?n&gt;i:i&gt;n;e=n&gt;=0?++i:--i)switch(t[e]){case"clock":r[e]=!1;break;case"anticlock":r[e]=!0}return r},e}(c),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return this.cache={},e.__super__.initialize.call(this,t,i)},e.prototype.warm_cache=function(t,e){var i,n,r,s,o;for(o=[],n=0,r=e.length;r&gt;n;n++)i=e[n],s=this[i],null!=s.fixed_value?o.push(this.cache[i]=s.fixed_value):o.push(this.cache[i+"_array"]=s.array(t));return o},e.prototype.cache_select=function(t,e){var i;return i=this[t],null!=i.fixed_value?this.cache[t]=i.fixed_value:this.cache[t]=this.cache[t+"_array"][e]},e}(d),f=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,s;return e.__super__.initialize.call(this,t,i),n=this.get("obj"),s=this.get("prefix"),this.color=new o({obj:n,attr:s+"line_color"}),this.width=new g({obj:n,attr:s+"line_width"}),this.alpha=new g({obj:n,attr:s+"line_alpha"}),this.join=new c({obj:n,attr:s+"line_join",values:"miter round bevel"}),this.cap=new c({obj:n,attr:s+"line_cap",values:"butt round square"}),this.dash=new r({obj:n,attr:s+"line_dash"}),this.dash_offset=new g({obj:n,attr:s+"line_dash_offset"}),this.do_stroke=!0,!y.isUndefined(this.color.fixed_value)&amp;&amp;y.isNull(this.color.fixed_value)?this.do_stroke=!1:void 0},e.prototype.warm_cache=function(t){return e.__super__.warm_cache.call(this,t,["color","width","alpha","join","cap","dash","dash_offset"])},e.prototype.set_value=function(t){return t.strokeStyle=this.color.value(),t.globalAlpha=this.alpha.value(),t.lineWidth=this.width.value(),t.lineJoin=this.join.value(),t.lineCap=this.cap.value(),t.setLineDash(this.dash.value()),t.setLineDashOffset(this.dash_offset.value())},e.prototype.set_vectorize=function(t,e){return this.cache_select("color",e),t.strokeStyle!==this.cache.fill&amp;&amp;(t.strokeStyle=this.cache.color),this.cache_select("alpha",e),t.globalAlpha!==this.cache.alpha&amp;&amp;(t.globalAlpha=this.cache.alpha),this.cache_select("width",e),t.lineWidth!==this.cache.width&amp;&amp;(t.lineWidth=this.cache.width),this.cache_select("join",e),t.lineJoin!==this.cache.join&amp;&amp;(t.lineJoin=this.cache.join),this.cache_select("cap",e),t.lineCap!==this.cache.cap&amp;&amp;(t.lineCap=this.cache.cap),this.cache_select("dash",e),t.getLineDash()!==this.cache.dash&amp;&amp;t.setLineDash(this.cache.dash),this.cache_select("dash_offset",e),t.getLineDashOffset()!==this.cache.dash_offset?t.setLineDashOffset(this.cache.dash_offset):void 0},e}(a),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),n=this.get("obj"),r=this.get("prefix"),this.color=new o({obj:n,attr:r+"fill_color"}),this.alpha=new g({obj:n,attr:r+"fill_alpha"}),this.do_fill=!0,!y.isUndefined(this.color.fixed_value)&amp;&amp;y.isNull(this.color.fixed_value)?this.do_fill=!1:void 0},e.prototype.warm_cache=function(t){return e.__super__.warm_cache.call(this,t,["color","alpha"])},e.prototype.set_value=function(t){return t.fillStyle=this.color.value(),t.globalAlpha=this.alpha.value()},e.prototype.set_vectorize=function(t,e){return this.cache_select("color",e),t.fillStyle!==this.cache.fill&amp;&amp;(t.fillStyle=this.cache.color),this.cache_select("alpha",e),t.globalAlpha!==this.cache.alpha?t.globalAlpha=this.cache.alpha:void 0},e}(a),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),n=this.get("obj"),r=this.get("prefix"),this.font=new _({obj:n,attr:r+"text_font"}),this.font_size=new _({obj:n,attr:r+"text_font_size"}),this.font_style=new c({obj:n,attr:r+"text_font_style",values:"normal italic bold"}),this.color=new o({obj:n,attr:r+"text_color"}),this.alpha=new g({obj:n,attr:r+"text_alpha"}),this.align=new c({obj:n,attr:r+"text_align",values:"left right center"}),this.baseline=new c({obj:n,attr:r+"text_baseline",values:"top middle bottom alphabetic hanging"})},e.prototype.warm_cache=function(t){return e.__super__.warm_cache.call(this,t,["font","font_size","font_style","color","alpha","align","baseline"])},e.prototype.cache_select=function(t,i){var n;return"font"===t?(n=e.__super__.cache_select.call(this,"font_style",i)+" "+e.__super__.cache_select.call(this,"font_size",i)+" "+e.__super__.cache_select.call(this,"font",i),this.cache.font=n):e.__super__.cache_select.call(this,t,i)},e.prototype.font_value=function(){var t,e,i;return t=this.font.value(),e=this.font_size.value(),i=this.font_style.value(),i+" "+e+" "+t},e.prototype.set_value=function(t){return t.font=this.font_value(),t.fillStyle=this.color.value(),t.globalAlpha=this.alpha.value(),t.textAlign=this.align.value(),t.textBaseline=this.baseline.value()},e.prototype.set_vectorize=function(t,e){return this.cache_select("font",e),t.font!==this.cache.font&amp;&amp;(t.font=this.cache.font),this.cache_select("color",e),t.fillStyle!==this.cache.color&amp;&amp;(t.fillStyle=this.cache.color),this.cache_select("alpha",e),t.globalAlpha!==this.cache.alpha&amp;&amp;(t.globalAlpha=this.cache.alpha),this.cache_select("align",e),t.textAlign!==this.cache.align&amp;&amp;(t.textAlign=this.cache.align),this.cache_select("baseline",e),t.textBaseline!==this.cache.baseline?t.textBaseline=this.cache.baseline:void 0},e}(a),b=function(t,e){var i,r,s,o,a;for(null==e&amp;&amp;(e="angles"),a={},o=t[e],r=0,s=o.length;s&gt;r;r++)i=o[r],a[i]=new n({obj:t,attr:i});return a},w=function(t,e){var i,n,r,s,o,a,u;for(null==e&amp;&amp;(e="coords"),o={},r=t[e],i=0,n=r.length;n&gt;i;i++)s=r[i],a=s[0],u=s[1],o[a]=new l({obj:t,attr:a}),o[u]=new l({obj:t,attr:u});return o},x=function(t,e){var i,n,r,s,o;for(null==e&amp;&amp;(e="distances"),o={},s=t[e],n=0,r=s.length;r&gt;n;n++)i=s[n],("?"!==i[0]||(i=i.slice(1),null!=t.get(i)))&amp;&amp;(o[i]=new h({obj:t,attr:i}));return o},k=function(t,e){var i,n,a,l,h,p,d,f;for(null==e&amp;&amp;(e="fields"),d={},h=t[e],a=0,l=h.length;l&gt;a;a++)if(n=h[a],f="number",n.indexOf(":")&gt;-1&amp;&amp;(p=n.split(":"),n=p[0],f=p[1],i=p[2]),"?"!==n[0]||(n=n.slice(1),null!=t.attributes[n]))switch(f){case"array":d[n]=new r({obj:t,attr:n});break;case"bool":d[n]=new s({obj:t,attr:n});break;case"color":d[n]=new o({obj:t,attr:n});break;case"direction":d[n]=new u({obj:t,attr:n});break;case"enum":d[n]=new c({obj:t,attr:n,values:i});break;case"number":d[n]=new g({obj:t,attr:n});break;case"string":d[n]=new _({obj:t,attr:n})}return d},C=function(t,e){var i,n,r,s,o,a,l,u;for(null==e&amp;&amp;(e="visuals"),u={},a=t[e],i=0,n=a.length;n&gt;i;i++)switch(o=a[i],s="",o.indexOf(":")&gt;-1&amp;&amp;(l=o.split(":"),o=l[0],s=l[1]),r=""+s+o,o){case"line":u[r]=new f({obj:t,prefix:s});break;case"fill":u[r]=new p({obj:t,prefix:s});break;case"text":u[r]=new v({obj:t,prefix:s})}return u},e.exports={Angle:n,Array:r,Bool:s,Color:o,Coord:l,Direction:u,Distance:h,Enum:c,Numeric:g,Property:m,String:_,Line:f,Fill:p,
        Text:v,factories:{coords:w,distances:x,angles:b,fields:k,visuals:C}}},{"./has_properties":115,"./svg_colors":132,underscore:92}],127:[function(t,e,i){var n;n=function(){function t(t){var e;this.seed=t,this.multiplier=1664525,this.modulo=4294967296,this.offset=1013904223,null!=this.seed&amp;&amp;0&lt;=(e=this.seed)&amp;&amp;e&lt;this.modulo||(this.seed=(new Date).valueOf()*(new Date).getMilliseconds()%this.modulo)}return t.prototype.seed=function(t){return this.seed=t},t.prototype.randn=function(){return this.seed=(this.multiplier*this.seed+this.offset)%this.modulo},t.prototype.randf=function(){return this.randn()/this.modulo},t.prototype.rand=function(t){return Math.floor(this.randf()*t)},t.prototype.rand2=function(t,e){return t+this.rand(e-t)},t}(),e.exports=n},{}],128:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),n=t("./has_properties"),l=t("./logging").logger,s=t("./selector"),a=t("./hittest"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="SelectionManager",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.selectors={}},e.prototype.set_selection=function(t){var e;return this._save_indices(t),e=this.get("source"),e.trigger("select")},e.prototype.select=function(t,e,i,n,r){var s,o,a;return null==r&amp;&amp;(r=!1),a=this.get("source"),a!==e.mget("data_source")&amp;&amp;l.warn("select called with mis-matched data sources"),s=e.hit_test(i),s?(o=this._get_selector(e),o.update(s,n,r),this._save_indices(o.get("indices")),a.trigger("select"),a.trigger("select-"+e.mget("id"))):void 0},e.prototype.inspect=function(t,e,i,n){var r,s;return s=this.get("source"),s!==e.mget("data_source")&amp;&amp;l.warn("inspect called with mis-matched data sources"),r=e.hit_test(i),null!=r?(s.trigger("inspect",r,t,e,s,n),s.trigger("inspect"+e.mget("id"),r,t,e,s,n)):void 0},e.prototype.clear=function(t){var e,i,n,r;if(null!=t)r=this._get_selector(t),r.clear();else{i=this.selectors;for(e in i)n=i[e],n.clear()}return this._save_indices(a.create_hit_test_result())},e.prototype._get_selector=function(t){return o.setdefault(this.selectors,t.model.id,new s),this.selectors[t.model.id]},e.prototype._save_indices=function(t){return this.get("source").save({selected:t},{patch:!0})},e}(n),e.exports=r},{"./has_properties":115,"./hittest":116,"./logging":119,"./selector":129,underscore:92}],129:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t("underscore"),n=t("./has_properties"),o=t("./hittest"),a=t("./logging").logger,r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="Selector",e.prototype.update=function(t,e,i){return this.set("timestamp",new Date),this.set("final",e),i&amp;&amp;(t["0d"].indices=s.union(this.get("indices")["0d"].indices,t["0d"].indices),t["0d"].flag=this.get("indices")["0d"].flag||t["0d"].flag,t["1d"].indices=s.union(this.get("indices")["1d"].indices,t["1d"].indices),t["2d"].indices=s.union(this.get("indices")["2d"].indices,t["2d"].indices)),this.set("indices",t)},e.prototype.clear=function(){return this.set("timestamp",new Date),this.set("final",!0),this.set("indices",o.create_hit_test_result())},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{indices:o.create_hit_test_result()})},e}(n),e.exports=r},{"./has_properties":115,"./hittest":116,"./logging":119,underscore:92}],130:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){return function(){return t.apply(e,arguments)}};n=t("jquery"),a=t("underscore"),r=t("backbone"),s=t("./base").Config,l=t("./load_models"),u=t("./logging").logger,o=function(){function t(t){this.onmessage=c(this.onmessage,this);var e;this.auth={},this.ws_conn_string=t,this._connected=n.Deferred(),this.connected=this._connected.promise();try{window.MozWebSocket?this.s=new MozWebSocket(t):this.s=new WebSocket(t)}catch(i){e=i,u.error("websocket creation failed for connection string: "+t),u.error(" - "+e)}this.s.onopen=function(t){return function(){return t._connected.resolve()}}(this),this.s.onmessage=this.onmessage}return a.extend(t.prototype,r.Events),t.prototype.onmessage=function(t){var e,i,n;return e=t.data,i=e.indexOf(":"),i=e.indexOf(":",i+1),n=e.substring(0,i),e=e.substring(i+1),this.trigger("msg:"+n,e),null},t.prototype.send=function(t){return n.when(this.connected).done(function(e){return function(){return e.s.send(t)}}(this))},t.prototype.subscribe=function(t,e){var i;return this.auth[t]=e,i=JSON.stringify({msgtype:"subscribe",topic:t,auth:e}),this.send(i)},t}(),h=function(t,e,i){return t.subscribe(e,i),t.on("msg:"+e,function(t){var e,i,r,o,a,u,h;if(a=JSON.parse(t),"modelpush"===a.msgtype)l(a.modelspecs);else if("modeldel"===a.msgtype)for(h=a.modelspecs,i=0,r=h.length;r&gt;i;i++)u=h[i],o=resolve_ref(u.type,u.id),o&amp;&amp;o.destroy({local:!0});else"status"===a.msgtype&amp;&amp;"subscribesuccess"===a.status[0]?(e=a.status[2],s.clientid=e,n.ajaxSetup({headers:{"Continuum-Clientid":e}})):log.warn("unknown msgtype '"+a.msgtype+"' for message: "+a);return null})},e.exports={WebSocketWrapper:o,submodels:h}},{"./base":99,"./load_models":118,"./logging":119,backbone:2,jquery:18,underscore:92}],131:[function(t,e,i){(function(i){var n,r,s,o;s=t("underscore"),n=t("backbone"),o=null!=i._bokehTest?i._bokehTest.kiwi:t("kiwi"),r=function(){function t(){this.solver=new o.Solver}return t.prototype.update_variables=function(t){return null==t&amp;&amp;(t=!0),this.solver.updateVariables(),t?this.trigger("layout_update"):void 0},t.prototype.add_constraint=function(t){return this.solver.addConstraint(t)},t.prototype.remove_constraint=function(t){return this.solver.removeConstraint(t)},t.prototype.add_edit_variable=function(t,e){return null==e&amp;&amp;(e=o.Strength.strong),this.solver.addEditVariable(t,e)},t.prototype.suggest_value=function(t,e){return this.solver.suggestValue(t,e)},t}(),s.extend(r.prototype,n.Events),e.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{backbone:2,kiwi:303,underscore:92}],132:[function(t,e,i){e.exports={indianred:"#CD5C5C",lightcoral:"#F08080",salmon:"#FA8072",darksalmon:"#E9967A",lightsalmon:"#FFA07A",crimson:"#DC143C",red:"#FF0000",firebrick:"#B22222",darkred:"#8B0000",pink:"#FFC0CB",lightpink:"#FFB6C1",hotpink:"#FF69B4",deeppink:"#FF1493",mediumvioletred:"#C71585",palevioletred:"#DB7093",coral:"#FF7F50",tomato:"#FF6347",orangered:"#FF4500",darkorange:"#FF8C00",orange:"#FFA500",gold:"#FFD700",yellow:"#FFFF00",lightyellow:"#FFFFE0",lemonchiffon:"#FFFACD",lightgoldenrodyellow:"#FAFAD2",papayawhip:"#FFEFD5",moccasin:"#FFE4B5",peachpuff:"#FFDAB9",palegoldenrod:"#EEE8AA",khaki:"#F0E68C",darkkhaki:"#BDB76B",lavender:"#E6E6FA",thistle:"#D8BFD8",plum:"#DDA0DD",violet:"#EE82EE",orchid:"#DA70D6",fuchsia:"#FF00FF",magenta:"#FF00FF",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",blueviolet:"#8A2BE2",darkviolet:"#9400D3",darkorchid:"#9932CC",darkmagenta:"#8B008B",purple:"#800080",indigo:"#4B0082",slateblue:"#6A5ACD",darkslateblue:"#483D8B",mediumslateblue:"#7B68EE",greenyellow:"#ADFF2F",chartreuse:"#7FFF00",lawngreen:"#7CFC00",lime:"#00FF00",limegreen:"#32CD32",palegreen:"#98FB98",lightgreen:"#90EE90",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",mediumseagreen:"#3CB371",seagreen:"#2E8B57",forestgreen:"#228B22",green:"#008000",darkgreen:"#006400",yellowgreen:"#9ACD32",olivedrab:"#6B8E23",olive:"#808000",darkolivegreen:"#556B2F",mediumaquamarine:"#66CDAA",darkseagreen:"#8FBC8F",lightseagreen:"#20B2AA",darkcyan:"#008B8B",teal:"#008080",aqua:"#00FFFF",cyan:"#00FFFF",lightcyan:"#E0FFFF",paleturquoise:"#AFEEEE",aquamarine:"#7FFFD4",turquoise:"#40E0D0",mediumturquoise:"#48D1CC",darkturquoise:"#00CED1",cadetblue:"#5F9EA0",steelblue:"#4682B4",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",lightblue:"#ADD8E6",skyblue:"#87CEEB",lightskyblue:"#87CEFA",deepskyblue:"#00BFFF",dodgerblue:"#1E90FF",cornflowerblue:"#6495ED",royalblue:"#4169E1",blue:"#0000FF",mediumblue:"#0000CD",darkblue:"#00008B",navy:"#000080",midnightblue:"#191970",cornsilk:"#FFF8DC",blanchedalmond:"#FFEBCD",bisque:"#FFE4C4",navajowhite:"#FFDEAD",wheat:"#F5DEB3",burlywood:"#DEB887",tan:"#D2B48C",rosybrown:"#BC8F8F",sandybrown:"#F4A460",goldenrod:"#DAA520",darkgoldenrod:"#B8860B",peru:"#CD853F",chocolate:"#D2691E",saddlebrown:"#8B4513",sienna:"#A0522D",brown:"#A52A2A",maroon:"#800000",white:"#FFFFFF",snow:"#FFFAFA",honeydew:"#F0FFF0",mintcream:"#F5FFFA",azure:"#F0FFFF",aliceblue:"#F0F8FF",ghostwhite:"#F8F8FF",whitesmoke:"#F5F5F5",seashell:"#FFF5EE",beige:"#F5F5DC",oldlace:"#FDF5E6",floralwhite:"#FFFAF0",ivory:"#FFFFF0",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lavenderblush:"#FFF0F5",mistyrose:"#FFE4E1",gainsboro:"#DCDCDC",lightgrey:"#D3D3D3",silver:"#C0C0C0",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",gray:"#808080",grey:"#808080",dimgray:"#696969",dimgrey:"#696969",lightslategray:"#778899",lightslategrey:"#778899",slategray:"#708090",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",black:"#000000"}},{}],133:[function(t,e,i){var n,r,s;n=t("jquery"),r={},s=function(t){var e,i,s,o,a;if(null!=r[t])return r[t];a=n("&lt;span&gt;Hg&lt;/span&gt;").css({font:t}),e=n('&lt;div style="display: inline-block; width: 1px; height: 0px;"&gt; &lt;/div&gt;'),s=n("&lt;div&gt;&lt;/div&gt;"),s.append(a,e),i=n("body"),i.append(s);try{o={},e.css({verticalAlign:"baseline"}),o.ascent=e.offset().top-a.offset().top,e.css({verticalAlign:"bottom"}),o.height=e.offset().top-a.offset().top,o.descent=o.height-o.ascent}finally{s.remove()}return r[t]=o,o},e.exports={getTextHeight:s}},{jquery:18}],134:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("./has_properties"),s=t("./logging").logger,r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="ToolEvents",e}(n),e.exports={Model:r}},{"./has_properties":115,"./logging":119}],135:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty,v=function(t,e){return function(){return t.apply(e,arguments)}};d=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/dropdown"),o=t("backbone"),s=t("../tool/actions/action_tool"),u=t("../tool/actions/help_tool"),a=t("../tool/gestures/gesture_tool"),h=t("../tool/inspectors/inspect_tool"),f=t("./logging").logger,g=t("./toolbar_template"),l=t("./has_properties"),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.template=g,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"change",this.render),this.render()},e.prototype.render=function(){var t,e,i,r,o,l;this.$el.html(this.template(this.model.attributes)),this.$el.addClass("bk-sidebar"),this.$el.addClass("bk-toolbar-active"),e=this.$(".bk-button-bar-list"),o=this.model.get("inspectors"),e=this.$(".bk-bs-dropdown[type='inspectors']"),0===o.length?e.hide():(t=n('&lt;a href="#" data-bk-bs-toggle="dropdown" class="bk-bs-dropdown-toggle"&gt;inspect &lt;span class="bk-bs-caret"&gt;&lt;/a&gt;'),t.appendTo(e),l=n('&lt;ul class="bk-bs-dropdown-menu" /&gt;'),d.each(o,function(t){var e;return e=n("&lt;li /&gt;"),e.append(new h.ListItemView({model:t}).el),e.appendTo(l)}),l.on("click",function(t){return t.stopPropagation()}),l.appendTo(e),t.dropdown()),e=this.$(".bk-button-bar-list[type='help']"),d.each(this.model.get("help"),function(t){return e.append(new s.ButtonView({model:t}).el)}),e=this.$(".bk-button-bar-list[type='actions']"),d.each(this.model.get("actions"),function(t){return e.append(new s.ButtonView({model:t}).el)}),r=this.model.get("gestures");for(i in r)e=this.$(".bk-button-bar-list[type='"+i+"']"),d.each(r[i].tools,function(t){return e.append(new a.ButtonView({model:t}).el)});return this},e}(o.View),c=function(t){function e(){return this._active_change=v(this._active_change,this),e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._init_tools()},e.prototype._init_tools=function(){var t,e,i,n,r,o,l,c,p,g,m;for(i=this.get("gestures"),c=this.get("tools"),r=0,l=c.length;l&gt;r;r++)if(g=c[r],g instanceof h.Model)o=this.get("inspectors"),o.push(g),this.set("inspectors",o);else if(g instanceof u.Model)n=this.get("help"),n.push(g),this.set("help",n);else if(g instanceof s.Model)t=this.get("actions"),t.push(g),this.set("actions",t);else if(g instanceof a.Model){if(e=g.get("event_type"),!(e in i)){f.warn("ToolManager: unknown event type '"+e+"' for tool: "+g.type+" ("+g.id+")");continue}i[e].tools.push(g),this.listenTo(g,"change:active",d.bind(this._active_change,g))}p=[];for(e in i)m=i[e].tools,0!==m.length&amp;&amp;(i[e].tools=d.sortBy(m,function(t){return t.get("default_order")}),p.push(i[e].tools[0].set("active",!0)));return p},e.prototype._active_change=function(t){var e,i,n,r;return i=t.get("event_type"),(e=t.get("active"))?(n=this.get("gestures"),r=n[i].active,null!=r&amp;&amp;(f.debug("ToolManager: deactivating tool: "+r.type+" ("+r.id+") for event type '"+i+"'"),r.set("active",!1)),n[i].active=t,this.set("gestures",n),f.debug("ToolManager: activating tool: "+t.type+" ("+t.id+") for event type '"+i+"'"),null):null},e.prototype.defaults=function(){return{gestures:{pan:{tools:[],active:null},tap:{tools:[],active:null},doubletap:{tools:[],active:null},scroll:{tools:[],active:null},pinch:{tools:[],active:null},press:{tools:[],active:null},rotate:{tools:[],active:null}},actions:[],inspectors:[],help:[]}},e}(l),e.exports={Model:c,View:p}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../tool/actions/action_tool":226,"../tool/actions/help_tool":227,"../tool/gestures/gesture_tool":235,"../tool/inspectors/inspect_tool":245,"./has_properties":115,"./logging":119,"./toolbar_template":136,backbone:2,"bootstrap/dropdown":294,jquery:18,underscore:92}],136:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){null!=this.logo&amp;&amp;"grey"===this.logo?i.push("\n  &lt;a href='http://bokeh.pydata.org/' target='_blank' class='bk-logo bk-logo-small grey'&gt;&lt;/a&gt;\n"):null!=this.logo&amp;&amp;i.push("\n&lt;a href='http://bokeh.pydata.org/' target='_blank' class='bk-logo bk-logo-small'&gt;&lt;/a&gt;\n"),i.push("\n&lt;div class='bk-button-bar'&gt;\n  &lt;ul class='bk-button-bar-list' type=\"pan\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"scroll\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"pinch\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"tap\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"press\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"rotate\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"actions\" /&gt;\n  &lt;div class='bk-button-bar-list bk-bs-dropdown' type=\"inspectors\" /&gt;\n  &lt;ul class='bk-button-bar-list' type=\"help\" /&gt;\n&lt;/div&gt;\n")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],137:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),r=t("backbone"),null!=i._bokehTest?(h=i._bokehTest,s=h.Hammer,u=h.mousewhweel):(s=t("hammerjs"),l=t("jquery-mousewheel")(n)),a=t("./logging").logger,o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._hammer_element()},e.prototype._hammer_element=function(){var t;return t=this.get("hit_area"),this.hammer=new s(t[0]),this.hammer.get("doubletap").recognizeWith("tap"),this.hammer.get("tap").requireFailure("doubletap"),this.hammer.get("doubletap").dropRequireFailure("tap"),this.hammer.on("doubletap",function(t){return function(e){return t._doubletap(e)}}(this)),this.hammer.on("tap",function(t){return function(e){return t._tap(e)}}(this)),this.hammer.on("press",function(t){return function(e){return t._press(e)}}(this)),this.hammer.get("pan").set({direction:s.DIRECTION_ALL}),this.hammer.on("panstart",function(t){return function(e){return t._pan_start(e)}}(this)),this.hammer.on("pan",function(t){return function(e){return t._pan(e)}}(this)),this.hammer.on("panend",function(t){return function(e){return t._pan_end(e)}}(this)),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("pinchstart",function(t){return function(e){return t._pinch_start(e)}}(this)),this.hammer.on("pinch",function(t){return function(e){return t._pinch(e)}}(this)),this.hammer.on("pinchend",function(t){return function(e){return t._pinch_end(e)}}(this)),this.hammer.get("rotate").set({enable:!0}),this.hammer.on("rotatestart",function(t){return function(e){return t._rotate_start(e)}}(this)),this.hammer.on("rotate",function(t){return function(e){return t._rotate(e)}}(this)),this.hammer.on("rotateend",function(t){return function(e){return t._rotate_end(e)}}(this)),t.mousemove(function(t){return function(e){return t._mouse_move(e)}}(this)),t.mouseenter(function(t){return function(e){return t._mouse_enter(e)}}(this)),t.mouseleave(function(t){return function(e){return t._mouse_exit(e)}}(this)),t.mousewheel(function(t){return function(e,i){return t._mouse_wheel(e,i)}}(this)),n(document).keydown(function(t){return function(e){return t._key_down(e)}}(this)),n(document).keyup(function(t){return function(e){return t._key_up(e)}}(this))},e.prototype.register_tool=function(t){var e,i,n;return e=t.mget("event_type"),i=t.mget("id"),n=t.model.type,null==e?void a.debug("Button tool: "+n):("pan"===e||"pinch"===e||"rotate"===e?(a.debug("Registering tool: "+n+" for event '"+e+"'"),null!=t["_"+e+"_start"]&amp;&amp;t.listenTo(this,e+":start:"+i,t["_"+e+"_start"]),t["_"+e]&amp;&amp;t.listenTo(this,e+":"+i,t["_"+e]),t["_"+e+"_end"]&amp;&amp;t.listenTo(this,e+":end:"+i,t["_"+e+"_end"])):"move"===e?(a.debug("Registering tool: "+n+" for event '"+e+"'"),null!=t._move_enter&amp;&amp;t.listenTo(this,"move:enter",t._move_enter),t.listenTo(this,"move",t._move),null!=t._move_exit&amp;&amp;t.listenTo(this,"move:exit",t._move_exit)):(a.debug("Registering tool: "+n+" for event '"+e+"'"),t.listenTo(this,e+":"+i,t["_"+e])),null!=t._keydown&amp;&amp;(a.debug("Registering tool: "+n+" for event 'keydown'"),t.listenTo(this,"keydown",t._keydown)),null!=t._keyup&amp;&amp;(a.debug("Registering tool: "+n+" for event 'keyup'"),t.listenTo(this,"keyup",t._keyup)),null!=t._doubletap?(a.debug("Registering tool: "+n+" for event 'doubletap'"),t.listenTo(this,"doubletap",t._doubletap)):void 0)},e.prototype._trigger=function(t,e){var i,n,r,s;return s=this.get("tool_manager"),n=t.split(":")[0],r=s.get("gestures"),i=r[n].active,this._trigger_event(t,i,e)},e.prototype._trigger_event=function(t,e,i){return null!=e?("scroll"===t&amp;&amp;(i.preventDefault(),i.stopPropagation()),this.trigger(t+":"+e.id,i)):void 0},e.prototype._bokify_hammer=function(t){var e,i,r,s,o;return"mouse"===t.pointerType?(i=n(t.target).offset(),e=null!=(r=i.left)?r:0,o=null!=(s=i.top)?s:0,t.bokeh={sx:t.srcEvent.pageX-e,sy:t.srcEvent.pageY-o}):t.bokeh={sx:t.center.x,sy:t.center.y}},e.prototype._bokify_jq=function(t){var e,i,r,s,o;return i=n(t.currentTarget).offset(),e=null!=(r=i.left)?r:0,o=null!=(s=i.top)?s:0,t.bokeh={sx:t.pageX-e,sy:t.pageY-o}},e.prototype._tap=function(t){return this._bokify_hammer(t),this._trigger("tap",t)},e.prototype._doubletap=function(t){return this._bokify_hammer(t),this.trigger("doubletap",t)},e.prototype._press=function(t){return this._bokify_hammer(t),this._trigger("press",t)},e.prototype._pan_start=function(t){return this._bokify_hammer(t),t.bokeh.sx-=t.deltaX,t.bokeh.sy-=t.deltaY,this._trigger("pan:start",t)},e.prototype._pan=function(t){return this._bokify_hammer(t),this._trigger("pan",t)},e.prototype._pan_end=function(t){return this._bokify_hammer(t),this._trigger("pan:end",t)},e.prototype._pinch_start=function(t){return this._bokify_hammer(t),this._trigger("pinch:start",t)},e.prototype._pinch=function(t){return this._bokify_hammer(t),this._trigger("pinch",t)},e.prototype._pinch_end=function(t){return this._bokify_hammer(t),this._trigger("pinch:end",t)},e.prototype._rotate_start=function(t){return this._bokify_hammer(t),this._trigger("rotate:start",t)},e.prototype._rotate=function(t){return this._bokify_hammer(t),this._trigger("rotate",t)},e.prototype._rotate_end=function(t){return this._bokify_hammer(t),this._trigger("rotate:end",t)},e.prototype._mouse_enter=function(t){return this._bokify_jq(t),this.trigger("move:enter",t)},e.prototype._mouse_move=function(t){return this._bokify_jq(t),this.trigger("move",t)},e.prototype._mouse_exit=function(t){return this._bokify_jq(t),this.trigger("move:exit",t)},e.prototype._mouse_wheel=function(t,e){return this._bokify_jq(t),t.bokeh.delta=e,this._trigger("scroll",t)},e.prototype._key_down=function(t){return this.trigger("keydown",t)},e.prototype._key_up=function(t){return this.trigger("keyup",t)},e}(r.Model),e.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./logging":119,backbone:2,hammerjs:3,jquery:18,"jquery-mousewheel":4}],138:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("./linear_mapper"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.map_to_target=function(t,i){var n,r,o,a,l,u;return null==i&amp;&amp;(i=!1),s.isNumber(t)?i?t:e.__super__.map_to_target.call(this,t):(a=this.get("source_range"),r=a.get("factors"),t.indexOf(":")&gt;=0?(l=t.split(":"),n=l[0],o=l[1],o=parseFloat(o),u=r.indexOf(n)+.5+a.get("offset")+o):u=r.indexOf(t)+1+a.get("offset"),i?u:e.__super__.map_to_target.call(this,u))},e.prototype.v_map_to_target=function(t,i){var n,r,o,a,l,u,h,c,p,d;if(null==i&amp;&amp;(i=!1),s.isNumber(t[0]))return i?t:e.__super__.v_map_to_target.call(this,t);for(u=this.get("source_range"),r=u.get("factors"),p=Array(t.length),o=a=0,h=t.length;h&gt;=0?h&gt;a:a&gt;h;o=h&gt;=0?++a:--a)d=t[o],d.indexOf(":")&gt;=0?(c=d.split(":"),n=c[0],l=c[1],l=parseFloat(l),p[o]=r.indexOf(n)+.5+u.get("offset")+l):p[o]=r.indexOf(d)+1+u.get("offset");return i?p:e.__super__.v_map_to_target.call(this,p)},e.prototype.map_from_target=function(t,i){var n,r;return null==i&amp;&amp;(i=!1),t=e.__super__.map_from_target.call(this,t),i?t:(r=this.get("source_range"),n=r.get("factors"),n[Math.floor(t-.5-r.get("offset"))])},e.prototype.v_map_from_target=function(t,i){var n,r,s,o,a,l,u,h,c;for(null==i&amp;&amp;(i=!1),c=e.__super__.v_map_from_target.call(this,t),r=s=0,l=c.length;l&gt;=0?l&gt;s:s&gt;l;r=l&gt;=0?++s:--s)c[r]=c[r];if(i)return c;for(h=Array(c),a=this.get("source_range"),n=a.get("factors"),r=o=0,u=t.length;u&gt;=0?u&gt;o:o&gt;u;r=u&gt;=0?++o:--o)h[r]=n[Math.floor(c[r]-.5-a.get("offset"))];return h},e}(r.Model),e.exports={Model:n}},{"./linear_mapper":141,underscore:92}],139:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.map_to_target=function(t,e){var i,n;return i=this.get("domain_mapper").map_to_target(t),n=this.get("codomain_mapper").map_to_target(e),[i,n]},e.prototype.v_map_to_target=function(t,e){var i,n;return i=this.get("domain_mapper").v_map_to_target(t),n=this.get("codomain_mapper").v_map_to_target(e),[i,n]},e.prototype.map_from_target=function(t,e){var i,n;return i=this.get("domain_mapper").map_from_target(t),n=this.get("codomain_mapper").map_from_target(e),[i,n]},e.prototype.v_map_from_target=function(t,e){var i,n;return i=this.get("domain_mapper").v_map_from_target(t),n=this.get("codomain_mapper").v_map_from_target(e),[i,n]},e}(r),e.exports={Model:n}},{"../common/has_properties":115}],140:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.palette=this._build_palette(this.get("palette")),this.little_endian=this._is_little_endian(),null!=this.get("reserve_color")?(this.reserve_color=parseInt(this.get("reserve_color").slice(1),16),this.reserve_val=this.get("reserve_val")):void 0},e.prototype.v_map_screen=function(t){var e,i,n,r,o,a,l,u,h,c,p,d,f,g,m,_;if(i=new ArrayBuffer(4*t.length),n=new Uint32Array(i),h=null!=(p=this.get("low"))?p:s.min(t),o=null!=(d=this.get("high"))?d:s.max(t),e=this.palette.length-1,m=e/(o-h),c=-m*h,this.little_endian)for(a=l=0,f=t.length;f&gt;=0?f&gt;l:l&gt;f;a=f&gt;=0?++l:--l)r=t[a],r===this.reserve_val?_=this.reserve_color:(r&gt;o&amp;&amp;(r=o),h&gt;r&amp;&amp;(r=h),_=this.palette[Math.floor(r*m+c)]),n[a]=255&lt;&lt;24|(16711680&amp;_)&gt;&gt;16|65280&amp;_|(255&amp;_)&lt;&lt;16;else for(a=u=0,g=t.length;g&gt;=0?g&gt;u:u&gt;g;a=g&gt;=0?++u:--u)r=t[a],r===this.reserve_val?_=this.reserve_color:(r&gt;o&amp;&amp;(r=o),h&gt;r&amp;&amp;(r=h),_=this.palette[Math.floor(r*m+c)]),n[a]=_&lt;&lt;8|255;return i},e.prototype._is_little_endian=function(){var t,e,i,n;return t=new ArrayBuffer(4),i=new Uint8ClampedArray(t),e=new Uint32Array(t),e[1]=168496141,n=!0,10===i[4]&amp;&amp;11===i[5]&amp;&amp;12===i[6]&amp;&amp;13===i[7]&amp;&amp;(n=!1),n},e.prototype._build_palette=function(t){var e,i,n,r,o;for(r=new Uint32Array(t.length+1),e=function(t){return s.isNumber(t)?t:parseInt(t.slice(1),16)},i=n=0,o=t.length;o&gt;=0?o&gt;n:n&gt;o;i=o&gt;=0?++n:--n)r[i]=e(t[i]);return r[r.length-1]=e(t[t.length-1]),r},e}(n),e.exports={Model:r}},{"../common/has_properties":115,underscore:92}],141:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("mapper_state",this._mapper_state,!0),this.add_dependencies("mapper_state",this,["source_range","target_range"]),this.add_dependencies("mapper_state",this.get("source_range"),["start","end"]),this.add_dependencies("mapper_state",this.get("target_range"),["start","end"])},e.prototype.map_to_target=function(t){var e,i,n;return i=this.get("mapper_state"),n=i[0],e=i[1],n*t+e},e.prototype.v_map_to_target=function(t){var e,i,n,r,s,o,a,l;for(s=this.get("mapper_state"),a=s[0],r=s[1],o=new Float64Array(t.length),i=e=0,n=t.length;n&gt;e;i=++e)l=t[i],o[i]=a*l+r;return o},e.prototype.map_from_target=function(t){var e,i,n;return i=this.get("mapper_state"),n=i[0],e=i[1],(t-e)/n},e.prototype.v_map_from_target=function(t){var e,i,n,r,s,o,a,l;for(s=this.get("mapper_state"),a=s[0],r=s[1],o=new Float64Array(t.length),i=e=0,n=t.length;n&gt;e;i=++e)l=t[i],o[i]=(l-r)/a;return o},e.prototype._mapper_state=function(){var t,e,i,n,r,s;return n=this.get("source_range").get("start"),i=this.get("source_range").get("end"),s=this.get("target_range").get("start"),r=this.get("target_range").get("end"),e=(r-s)/(i-n),t=-(e*n)+s,[e,t]},e}(n),e.exports={Model:r}},{"../common/has_properties":115}],142:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("mapper_state",this._mapper_state,!0),this.add_dependencies("mapper_state",this,["source_range","target_range"]),this.add_dependencies("mapper_state",this.get("source_range"),["start","end"]),this.add_dependencies("mapper_state",this.get("target_range"),["start","end"])},e.prototype.map_to_target=function(t){var e,i,n,r,s,o,a,l;if(o=this.get("mapper_state"),l=o[0],s=o[1],n=o[2],i=o[3],r=0,a=0,0===n)r=0;else try{if(r=(Math.log(t)-i)/n,isNaN(r))throw new Error("NaN");if(isFinite(r)===!1)throw new Error("Infinite")}catch(u){e=u,r=0}return a=r*l+s},e.prototype.v_map_to_target=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v;if(g=this.get("mapper_state"),_=g[0],f=g[1],s=g[2],r=g[3],o=new Float64Array(t.length),m=new Float64Array(t.length),0===s)o=t.map(function(t){return 0*t});else try{for(p=t.map(function(t){return 0&gt;=t}),d=t.map(function(t){return isNaN(t)}),c=function(){var e,n,r;for(r=[],i=e=0,n=t.length;n&gt;=0?n&gt;e:e&gt;n;i=n&gt;=0?++e:--e)r.push(p[i]|d[i]);return r}(),c=c.reduce(function(t,e){return t||e}),1===c&amp;&amp;(t[c]=1),o=t.map(function(t){return(Math.log(t)-r)/s}),n=a=0,u=o.length;u&gt;a;n=++a){if(v=o[n],isNaN(o[n]))throw new Error("NaN");if(isFinite(o[n])===!1)throw new Error("Infinite")}}catch(y){e=y,o=t.map(function(t){return 0*t})}for(n=l=0,h=t.length;h&gt;l;n=++l)v=t[n],m[n]=o[n]*_+f;return m},e.prototype.map_from_target=function(t){var e,i,n,r,s,o;return s=this.get("mapper_state"),o=s[0],r=s[1],i=s[2],e=s[3],n=(t-r)/o,n=Math.exp(i*n+e)},e.prototype.v_map_from_target=function(t){var e,i,n,r,s,o;return s=this.get("mapper_state"),o=s[0],r=s[1],i=s[2],e=s[3],n=t.map(function(t){return(t-r)/o}),n=n.map(function(t){return Math.exp(i*t+e)})},e.prototype._get_safe_scale=function(t,e){var i,n,r;return r=0&gt;t?0:t,i=0&gt;e?0:e,r===i&amp;&amp;(0===r?(r=1,i=10):(n=Math.log(r)/Math.log(10),r=Math.pow(10,Math.floor(n)),i=Math.ceil(n)!==Math.floor(n)?Math.pow(10,Math.ceil(n)):Math.pow(10,Math.ceil(n)+1))),[r,i]},e.prototype._mapper_state=function(){var t,e,i,n,r,s,o,a,l,u,h,c;return l=this.get("source_range").get("start"),a=this.get("source_range").get("end"),c=this.get("target_range").get("start"),h=this.get("target_range").get("end"),o=h-c,r=this._get_safe_scale(l,a),u=r[0],t=r[1],0===u?(i=Math.log(t),e=0):(i=Math.log(t)-Math.log(u),e=Math.log(u)),s=o,n=c,[s,n,i,e]},e}(n),e.exports={Model:r}},{"../common/has_properties":115}],143:[function(t,e,i){e.exports={YlGn3:[3253076,11394446,16252089],YlGn4:[2327619,7915129,12773017,16777164],YlGn5:[26679,3253076,7915129,12773017,16777164],YlGn6:[26679,3253076,7915129,11394446,14282915,16777164],YlGn7:[23090,2327619,4303709,7915129,11394446,14282915,16777164],YlGn8:[23090,2327619,4303709,7915129,11394446,14282915,16252089,16777189],YlGn9:[17705,26679,2327619,4303709,7915129,11394446,14282915,16252089,16777189],YlGnBu3:[2916280,8375739,15595697],YlGnBu4:[2252456,4306628,10607284,16777164],YlGnBu5:[2438292,2916280,4306628,10607284,16777164],YlGnBu6:[2438292,2916280,4306628,8375739,13101492,16777164],YlGnBu7:[797828,2252456,1937856,4306628,8375739,13101492,16777164],YlGnBu8:[797828,2252456,1937856,4306628,8375739,13101492,15595697,16777177],YlGnBu9:[531800,2438292,2252456,1937856,4306628,8375739,13101492,15595697,16777177],GnBu3:[4432586,11066805,14742491],GnBu4:[2854078,8113348,12248252,15792616],GnBu5:[551084,4432586,8113348,12248252,15792616],GnBu6:[551084,4432586,8113348,11066805,13429701,15792616],GnBu7:[546974,2854078,5157843,8113348,11066805,13429701,15792616],
        GnBu8:[546974,2854078,5157843,8113348,11066805,13429701,14742491,16252144],GnBu9:[540801,551084,2854078,5157843,8113348,11066805,13429701,14742491,16252144],BuGn3:[2925151,10082505,15070713],BuGn4:[2329413,6734500,11723490,15595771],BuGn5:[27948,2925151,6734500,11723490,15595771],BuGn6:[27948,2925151,6734500,10082505,13429990,15595771],BuGn7:[22564,2329413,4304502,6734500,10082505,13429990,15595771],BuGn8:[22564,2329413,4304502,6734500,10082505,13429990,15070713,16252157],BuGn9:[17435,27948,2329413,4304502,6734500,10082505,13429990,15070713,16252157],PuBuGn3:[1872025,10927579,15524592],PuBuGn4:[164234,6793679,12437985,16183287],PuBuGn5:[93273,1872025,6793679,12437985,16183287],PuBuGn6:[93273,1872025,6793679,10927579,13685222,16183287],PuBuGn7:[91216,164234,3576e3,6793679,10927579,13685222,16183287],PuBuGn8:[91216,164234,3576e3,6793679,10927579,13685222,15524592,16775163],PuBuGn9:[83510,93273,164234,3576e3,6793679,10927579,13685222,15524592,16775163],PuBu3:[2854078,10927579,15525874],PuBu4:[356528,7645647,12437985,15855350],PuBu5:[285325,2854078,7645647,12437985,15855350],PuBu6:[285325,2854078,7645647,10927579,13685222,15855350],PuBu7:[216699,356528,3576e3,7645647,10927579,13685222,15855350],PuBu8:[216699,356528,3576e3,7645647,10927579,13685222,15525874,16775163],PuBu9:[145496,285325,356528,3576e3,7645647,10927579,13685222,15525874,16775163],BuPu3:[8935079,10403034,14740724],BuPu4:[8929693,9213638,11783651,15595771],BuPu5:[8458108,8935079,9213638,11783651,15595771],BuPu6:[8458108,8935079,9213638,10403034,12571622,15595771],BuPu7:[7209323,8929693,9202609,9213638,10403034,12571622,15595771],BuPu8:[7209323,8929693,9202609,9213638,10403034,12571622,14740724,16252157],BuPu9:[5046347,8458108,8929693,9202609,9213638,10403034,12571622,14740724,16252157],RdPu3:[12917642,16424885,16638173],RdPu4:[11403646,16214177,16495801,16706530],RdPu5:[7995767,12917642,16214177,16495801,16706530],RdPu6:[7995767,12917642,16214177,16424885,16565696,16706530],RdPu7:[7995767,11403646,14496919,16214177,16424885,16565696,16706530],RdPu8:[7995767,11403646,14496919,16214177,16424885,16565696,16638173,16775155],RdPu9:[4784234,7995767,11403646,14496919,16214177,16424885,16565696,16638173,16775155],PuRd3:[14490743,13210823,15196655],PuRd4:[13505110,14640560,14136792,15855350],PuRd5:[9961539,14490743,14640560,14136792,15855350],PuRd6:[9961539,14490743,14640560,13210823,13941210,15855350],PuRd7:[9502783,13505110,15149450,14640560,13210823,13941210,15855350],PuRd8:[9502783,13505110,15149450,14640560,13210823,13941210,15196655,16250105],PuRd9:[6750239,9961539,13505110,15149450,14640560,13210823,13941210,15196655,16250105],OrRd3:[14895667,16628612,16705736],OrRd4:[14102559,16551257,16632970,16707801],OrRd5:[11730944,14895667,16551257,16632970,16707801],OrRd6:[11730944,14895667,16551257,16628612,16635038,16707801],OrRd7:[10027008,14102559,15689032,16551257,16628612,16635038,16707801],OrRd8:[10027008,14102559,15689032,16551257,16628612,16635038,16705736,16775148],OrRd9:[8323072,11730944,14102559,15689032,16551257,16628612,16635038,16705736,16775148],YlOrRd3:[15743776,16691788,16772512],YlOrRd4:[14883356,16616764,16698460,16777138],YlOrRd5:[12386342,15743776,16616764,16698460,16777138],YlOrRd6:[12386342,15743776,16616764,16691788,16701814,16777138],YlOrRd7:[11599910,14883356,16535082,16616764,16691788,16701814,16777138],YlOrRd8:[11599910,14883356,16535082,16616764,16691788,16701814,16772512,16777164],YlOrRd9:[8388646,12386342,14883356,16535082,16616764,16691788,16701814,16772512,16777164],YlOrBr3:[14245646,16696399,16775100],YlOrBr4:[13388802,16685353,16701838,16777172],YlOrBr5:[10040324,14245646,16685353,16701838,16777172],YlOrBr6:[10040324,14245646,16685353,16696399,16704401,16777172],YlOrBr7:[9186564,13388802,15495188,16685353,16696399,16704401,16777172],YlOrBr8:[9186564,13388802,15495188,16685353,16696399,16704401,16775100,16777189],YlOrBr9:[6694150,10040324,13388802,15495188,16685353,16696399,16704401,16775100,16777189],Purples3:[7695281,12369372,15724021],Purples4:[6967715,10394312,13355490,15921399],Purples5:[5515151,7695281,10394312,13355490,15921399],Purples6:[5515151,7695281,10394312,12369372,14342891,15921399],Purples7:[4854918,6967715,8420794,10394312,12369372,14342891,15921399],Purples8:[4854918,6967715,8420794,10394312,12369372,14342891,15724021,16579581],Purples9:[4128893,5515151,6967715,8420794,10394312,12369372,14342891,15724021,16579581],Blues3:[3244733,10406625,14609399],Blues4:[2191797,7057110,12441575,15725567],Blues5:[545180,3244733,7057110,12441575,15725567],Blues6:[545180,3244733,7057110,10406625,13032431,15725567],Blues7:[542100,2191797,4362950,7057110,10406625,13032431,15725567],Blues8:[542100,2191797,4362950,7057110,10406625,13032431,14609399,16251903],Blues9:[536683,545180,2191797,4362950,7057110,10406625,13032431,14609399,16251903],Greens3:[3253076,10607003,15070688],Greens4:[2329413,7652470,12248243,15595753],Greens5:[27948,3253076,7652470,12248243,15595753],Greens6:[27948,3253076,7652470,10607003,13101504,15595753],Greens7:[23090,2329413,4303709,7652470,10607003,13101504,15595753],Greens8:[23090,2329413,4303709,7652470,10607003,13101504,15070688,16252149],Greens9:[17435,27948,2329413,4303709,7652470,10607003,13101504,15070688,16252149],Oranges3:[15095053,16625259,16705230],Oranges4:[14239489,16616764,16629381,16707038],Oranges5:[10892803,15095053,16616764,16629381,16707038],Oranges6:[10892803,15095053,16616764,16625259,16634018,16707038],Oranges7:[9186564,14239745,15821075,16616764,16625259,16634018,16707038],Oranges8:[9186564,14239745,15821075,16616764,16625259,16634018,16705230,16774635],Oranges9:[8333060,10892803,14239745,15821075,16616764,16625259,16634018,16705230,16774635],Reds3:[14560550,16552562,16703698],Reds4:[13309981,16476746,16559761,16704985],Reds5:[10817301,14560550,16476746,16559761,16704985],Reds6:[10817301,14560550,16476746,16552562,16563105,16704985],Reds7:[10027021,13309981,15678252,16476746,16552562,16563105,16704985],Reds8:[10027021,13309981,15678252,16476746,16552562,16563105,16703698,16774640],Reds9:[6750221,10817301,13309981,15678252,16476746,16552562,16563105,16703698,16774640],Greys3:[6513507,12434877,15790320],Greys4:[5395026,9868950,13421772,16250871],Greys5:[2434341,6513507,9868950,13421772,16250871],Greys6:[2434341,6513507,9868950,12434877,14277081,16250871],Greys7:[2434341,5395026,7566195,9868950,12434877,14277081,16250871],Greys8:[2434341,5395026,7566195,9868950,12434877,14277081,15790320,16777215],Greys9:[0,2434341,5395026,7566195,9868950,12434877,14277081,15790320,16777215],PuOr3:[10063555,16250871,15835968],PuOr4:[6175897,11709394,16627811,15098113],PuOr5:[6175897,11709394,16250871,16627811,15098113],PuOr6:[5515144,10063555,14211819,16703670,15835968,11753478],PuOr7:[5515144,10063555,14211819,16250871,16703670,15835968,11753478],PuOr8:[5515144,8418220,11709394,14211819,16703670,16627811,14713364,11753478],PuOr9:[5515144,8418220,11709394,14211819,16250871,16703670,16627811,14713364,11753478],PuOr10:[2949195,5515144,8418220,11709394,14211819,16703670,16627811,14713364,11753478,8338184],PuOr11:[2949195,5515144,8418220,11709394,14211819,16250871,16703670,16627811,14713364,11753478,8338184],BrBG3:[5944492,16119285,14201701],BrBG4:[99697,8441281,14664317,10903834],BrBG5:[99697,8441281,16119285,14664317,10903834],BrBG6:[91742,5944492,13101797,16181443,14201701,9195786],BrBG7:[91742,5944492,13101797,16119285,16181443,14201701,9195786],BrBG8:[91742,3512207,8441281,13101797,16181443,14664317,12550445,9195786],BrBG9:[91742,3512207,8441281,13101797,16119285,16181443,14664317,12550445,9195786],BrBG10:[15408,91742,3512207,8441281,13101797,16181443,14664317,12550445,9195786,5517317],BrBG11:[15408,91742,3512207,8441281,13101797,16119285,16181443,14664317,12550445,9195786,5517317],PRGn3:[8372091,16250871,11505091],PRGn4:[34871,10935200,12756431,8073876],PRGn5:[34871,10935200,16250871,12756431,8073876],PRGn6:[1800247,8372091,14282963,15193320,11505091,7744131],PRGn7:[1800247,8372091,14282963,16250871,15193320,11505091,7744131],PRGn8:[1800247,5942881,10935200,14282963,15193320,12756431,10055851,7744131],PRGn9:[1800247,5942881,10935200,14282963,16250871,15193320,12756431,10055851,7744131],PRGn10:[17435,1800247,5942881,10935200,14282963,15193320,12756431,10055851,7744131,4194379],PRGn11:[17435,1800247,5942881,10935200,14282963,16250871,15193320,12756431,10055851,7744131,4194379],PiYG3:[10606442,16250871,15311817],PiYG4:[5090342,12116358,15840986,13638795],PiYG5:[5090342,12116358,16250871,15840986,13638795],PiYG6:[5083681,10606442,15136208,16638191,15311817,12917629],PiYG7:[5083681,10606442,15136208,16250871,16638191,15311817,12917629],PiYG8:[5083681,8371265,12116358,15136208,16638191,15840986,14579630,12917629],PiYG9:[5083681,8371265,12116358,15136208,16250871,16638191,15840986,14579630,12917629],PiYG10:[2581529,5083681,8371265,12116358,15136208,16638191,15840986,14579630,12917629,9306450],PiYG11:[2581529,5083681,8371265,12116358,15136208,16250871,16638191,15840986,14579630,12917629,9306450],RdBu3:[6793679,16250871,15698530],RdBu4:[356784,9618910,16033154,13238304],RdBu5:[356784,9618910,16250871,16033154,13238304],RdBu6:[2188972,6793679,13755888,16636871,15698530,11671595],RdBu7:[2188972,6793679,13755888,16250871,16636871,15698530,11671595],RdBu8:[2188972,4428739,9618910,13755888,16636871,16033154,14049357,11671595],RdBu9:[2188972,4428739,9618910,13755888,16250871,16636871,16033154,14049357,11671595],RdBu10:[340065,2188972,4428739,9618910,13755888,16636871,16033154,14049357,11671595,6750239],RdBu11:[340065,2188972,4428739,9618910,13755888,16250871,16636871,16033154,14049357,11671595,6750239],RdGy3:[10066329,16777215,15698530],RdGy4:[4210752,12237498,16033154,13238304],RdGy5:[4210752,12237498,16777215,16033154,13238304],RdGy6:[5066061,10066329,14737632,16636871,15698530,11671595],RdGy7:[5066061,10066329,14737632,16777215,16636871,15698530,11671595],RdGy8:[5066061,8882055,12237498,14737632,16636871,16033154,14049357,11671595],RdGy9:[5066061,8882055,12237498,14737632,16777215,16636871,16033154,14049357,11671595],RdGy10:[1710618,5066061,8882055,12237498,14737632,16636871,16033154,14049357,11671595,6750239],RdGy11:[1710618,5066061,8882055,12237498,14737632,16777215,16636871,16033154,14049357,11671595,6750239],RdYlBu3:[9551835,16777151,16551257],RdYlBu4:[2915254,11262441,16625249,14096668],RdYlBu5:[2915254,11262441,16777151,16625249,14096668],RdYlBu6:[4552116,9551835,14742520,16703632,16551257,14102567],RdYlBu7:[4552116,9551835,14742520,16777151,16703632,16551257,14102567],RdYlBu8:[4552116,7646673,11262441,14742520,16703632,16625249,16018755,14102567],RdYlBu9:[4552116,7646673,11262441,14742520,16777151,16703632,16625249,16018755,14102567],RdYlBu10:[3225237,4552116,7646673,11262441,14742520,16703632,16625249,16018755,14102567,10813478],RdYlBu11:[3225237,4552116,7646673,11262441,14742520,16777151,16703632,16625249,16018755,14102567,10813478],Spectral3:[10081684,16777151,16551257],Spectral4:[2851770,11263396,16625249,14096668],Spectral5:[2851770,11263396,16777151,16625249,14096668],Spectral6:[3311805,10081684,15136152,16703627,16551257,13975119],Spectral7:[3311805,10081684,15136152,16777151,16703627,16551257,13975119],Spectral8:[3311805,6734501,11263396,15136152,16703627,16625249,16018755,13975119],Spectral9:[3311805,6734501,11263396,15136152,16777151,16703627,16625249,16018755,13975119],Spectral10:[6180770,3311805,6734501,11263396,15136152,16703627,16625249,16018755,13975119,10355010],Spectral11:[6180770,3311805,6734501,11263396,15136152,16777151,16703627,16625249,16018755,13975119,10355010],RdYlGn3:[9555808,16777151,16551257],RdYlGn4:[1742401,10934634,16625249,14096668],RdYlGn5:[1742401,10934634,16777151,16625249,14096668],RdYlGn6:[1742928,9555808,14282635,16703627,16551257,14102567],RdYlGn7:[1742928,9555808,14282635,16777151,16703627,16551257,14102567],RdYlGn8:[1742928,6733155,10934634,14282635,16703627,16625249,16018755,14102567],RdYlGn9:[1742928,6733155,10934634,14282635,16777151,16703627,16625249,16018755,14102567],RdYlGn10:[26679,1742928,6733155,10934634,14282635,16703627,16625249,16018755,14102567,10813478],RdYlGn11:[26679,1742928,6733155,10934634,14282635,16777151,16703627,16625249,16018755,14102567,10813478]}},{}],144:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;s=t("underscore"),o=t("../common/bbox"),a=t("../common/logging").logger,r=t("./range1d"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="DataRange1d",e.prototype._get_start=function(){var t;return null!=(t=this.get("_start"))?t:this.get("_auto_start")},e.prototype._set_start=function(t){return this.set("_start",t)},e.prototype._get_end=function(){var t;return null!=(t=this.get("_end"))?t:this.get("_auto_end")},e.prototype._set_end=function(t){return this.set("_end",t)},e.prototype.initialize=function(t,i){return this.register_property("start",this._get_start,!0),this.register_setter("start",this._set_start),this.add_dependencies("start",this,["_start","flipped","_auto_start","range_padding","default_span"]),this.register_property("end",this._get_end,!0),this.register_setter("end",this._set_end),this.add_dependencies("end",this,["_end","flipped","_auto_end","range_padding","default_span"]),null!=(null!=t?t.start:void 0)&amp;&amp;(this.set("start",t.start),delete t.start),null!=(null!=t?t.end:void 0)&amp;&amp;(this.set("end",t.end),delete t.end),e.__super__.initialize.call(this,t,i),this.plot_bounds={}},e.prototype.update=function(t,e,i){var n,r,s,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D;if(w=null!=(m=this.get("renderers"))?m:[],n=[],0===w.length){for(_=this.get("plots"),s=0,u=_.length;u&gt;s;s++)f=_[s],k=f.get("renderers"),k=function(){var t,e,i;for(i=[],t=0,e=k.length;e&gt;t;t++)g=k[t],"GlyphRenderer"===g.type&amp;&amp;i.push(g);return i}(),n=n.concat(k);w=n}for(this.set("renderers",w),x=new o.empty,v=this.get("renderers"),a=0,h=v.length;h&gt;a;a++)g=v[a],null!=t[g.id]&amp;&amp;(x=o.extend(x,t[g.id]));this.plot_bounds[i.model.id]=x,d=new o.empty,y=this.plot_bounds;for(l in y)D=y[l],d=o.extend(d,D);return b=d[e],p=b[0],c=b[1],C=c!==p?(c-p)*(1+this.get("range_padding")):this.get("default_span"),r=(c+p)/2,M=1,this.get("flipped")&amp;&amp;(M=-1),this.set("_auto_start",r-M*C/2),this.set("_auto_end",r+M*C/2)},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{plots:[],sources:[],range_padding:.1,default_span:2,flipped:!1})},e}(r.Model),e.exports={Model:n}},{"../common/bbox":100,"../common/logging":119,"./range1d":146,underscore:92}],145:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="FactorRange",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._init(),this.register_property("min",function(){return this.get("start")},!1),this.add_dependencies("min",this,["factors","offset"]),this.register_property("max",function(){return this.get("end")},!1),this.add_dependencies("max",this,["factors","offset"]),this.listenTo(this,"change:factors",this._init),this.listenTo(this,"change:offset",this._init)},e.prototype._init=function(){return this.set("start",.5+this.get("offset")),this.set("end",this.get("factors").length+this.get("start"))},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{offset:0,factors:[]})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,underscore:92}],146:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="Range1d",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("min",function(){return Math.min(this.get("start"),this.get("end"))},!0),this.add_dependencies("min",this,["start","end"]),this.register_property("max",function(){return Math.max(this.get("start"),this.get("end"))},!0),this.add_dependencies("max",this,["start","end"])},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{start:0,end:1})},e}(n),e.exports={Model:r}},{"../common/has_properties":115,underscore:92}],147:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),s=t("../../common/has_parent"),o=t("../../common/plot_widget"),l=t("../../common/properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.fill_props=new l.Fill({obj:this.model,prefix:""}),this.line_props=new l.Line({obj:this.model,prefix:""})},e.prototype.render=function(){var t,e,i,n,r;return this.frame=this.plot_model.get("frame"),this.canvas=this.plot_model.get("canvas"),this.xmapper=this.plot_view.frame.get("x_mappers")[this.mget("x_range_name")],this.ymapper=this.plot_view.frame.get("y_mappers")[this.mget("y_range_name")],i=this.canvas.vx_to_sx(this._calc_dim("left",this.xmapper,this.frame.get("h_range").get("start"))),n=this.canvas.vx_to_sx(this._calc_dim("right",this.xmapper,this.frame.get("h_range").get("end"))),e=this.canvas.vy_to_sy(this._calc_dim("bottom",this.ymapper,this.frame.get("v_range").get("start"))),r=this.canvas.vy_to_sy(this._calc_dim("top",this.ymapper,this.frame.get("v_range").get("end"))),t=this.plot_view.canvas_view.ctx,t.save(),t.beginPath(),t.rect(i,r,n-i,e-r),this.fill_props.set_value(t),t.fill(),this.line_props.set_value(t),t.stroke(),t.restore()},e.prototype._calc_dim=function(t,e,i){var n;return n=null!=this.mget(t)?"data"===this.mget(t+"_units")?e.map_to_target(this.mget(t)):this.mget(t):i},e}(o),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type="BoxAnnotation",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{x_range_name:"default",y_range_name:"default"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{level:"annotation",left_units:"data",right_units:"data",top_units:"data",bottom_units:"data",fill_color:"#fff9ba",fill_alpha:.4,line_color:"#cccccc",line_width:1,line_alpha:.3,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0})},e}(s),e.exports={Model:n,View:r}},{"../../common/has_parent":114,"../../common/plot_widget":125,"../../common/properties":126,underscore:92}],148:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t("underscore"),n=t("../../common/has_parent"),o=t("../../common/plot_widget"),l=t("../../common/properties"),u=t("../../common/textutils"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.label_props=new l.Text({obj:this.model,prefix:"label_"}),this.border_props=new l.Line({obj:this.model,prefix:"border_"}),this.background_props=new l.Fill({obj:this.model,prefix:"background_"}),this.need_calc_dims=!0,this.listenTo(this.plot_model.solver,"layout_update",function(){return this.need_calc_dims=!0})},e.prototype.calc_dims=function(t){var e,i,n,r,s,o,l,h,c,p,d,f,g,m,_,v;return l=function(){var t,e,n,r,s;for(n=this.mget("legends"),s=[],t=0,e=n.length;e&gt;t;t++)r=n[t],o=r[0],i=r[1],s.push(o);return s}.call(this),r=this.mget("label_height"),this.glyph_height=this.mget("glyph_height"),s=this.mget("label_width"),this.glyph_width=this.mget("glyph_width"),c=this.mget("legend_spacing"),this.label_height=a.max([u.getTextHeight(this.label_props.font_value()),r,this.glyph_height]),this.legend_height=this.label_height,this.legend_height=l.length*this.legend_height+(1+l.length)*c,e=this.plot_view.canvas_view.ctx,e.save(),this.label_props.set_value(e),g=a.map(l,function(t){return e.measureText(t).width}),e.restore(),f=a.max(g),this.label_width=a.max([f,s]),this.legend_width=this.label_width+this.glyph_width+3*c,p=this.mget("orientation"),h=this.mget("legend_padding"),n=this.plot_view.frame.get("h_range"),m=this.plot_view.frame.get("v_range"),"top_right"===p?(_=n.get("end")-h-this.legend_width,v=m.get("end")-h):"top_left"===p?(_=n.get("start")+h,v=m.get("end")-h):"bottom_left"===p?(_=n.get("start")+h,v=m.get("start")+h+this.legend_height):"bottom_right"===p?(_=n.get("end")-h-this.legend_width,v=m.get("start")+h+this.legend_height):"absolute"===p&amp;&amp;(d=this.absolute_coords,_=d[0],v=d[1]),_=this.plot_view.canvas.vx_to_sx(_),v=this.plot_view.canvas.vy_to_sy(v),this.box_coords=[_,v]},e.prototype.render=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w;for(this.need_calc_dims&amp;&amp;(this.calc_dims(),this.need_calc_dims=!1),t=this.plot_view.canvas_view.ctx,t.save(),t.beginPath(),t.rect(this.box_coords[0],this.box_coords[1],this.legend_width,this.legend_height),this.background_props.set_value(t),t.fill(),this.border_props.do_stroke&amp;&amp;(this.border_props.set_value(t),t.stroke()),o=this.mget("legend_spacing"),u=this.mget("legends"),n=i=0,a=u.length;a&gt;i;n=++i)for(h=u[n],s=h[0],e=h[1],b=n*this.label_height,w=(1+n)*o,_=this.box_coords[1]+this.label_height/2+b+w,f=this.box_coords[0]+o,g=this.box_coords[0]+2*o+this.label_width,m=g+this.glyph_width,v=this.box_coords[1]+b+w,y=v+this.glyph_height,this.label_props.set_value(t),t.fillText(s,f,_),c=this.model.resolve_ref(e),r=0,l=c.length;l&gt;r;r++)p=c[r],d=this.plot_view.renderers[p.id],d.draw_legend(t,g,m,v,y);return t.restore()},e}(o),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.default_view=s,e.prototype.type="Legend",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{legends:[]})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{level:"overlay",border_line_color:"black",border_line_width:1,border_line_alpha:1,border_line_join:"miter",border_line_cap:"butt",border_line_dash:[],border_line_dash_offset:0,background_fill_color:"#fff",background_fill_alpha:1,label_standoff:15,label_text_font:"helvetica",label_text_font_size:"10pt",label_text_font_style:"normal",label_text_color:"#444444",label_text_alpha:1,label_text_align:"left",label_text_baseline:"middle",glyph_height:20,glyph_width:20,label_height:20,label_width:50,legend_padding:10,legend_spacing:3,orientation:"top_right",datapoint:null})},e}(n),e.exports={Model:r,View:s}},{"../../common/has_parent":114,"../../common/plot_widget":125,"../../common/properties":126,"../../common/textutils":133,underscore:92}],149:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),n=t("../../common/has_parent"),r=t("../../common/plot_widget"),l=t("../../common/logging").logger,o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.$el.appendTo(this.plot_view.$el.find("div.bk-canvas-overlays")),this.$el.css({position:"absolute"}),this.$el.hide()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:location",this._draw_span)},e.prototype.render=function(){return this._draw_span()},e.prototype._draw_span=function(){var t,e,i,n,r,s;return null==this.mget("location")?void this.$el.hide():(e=this.plot_model.get("frame"),t=this.plot_model.get("canvas"),"width"===this.mget("dimension")?(r=t.vy_to_sy(this.mget("location")),n=t.vx_to_sx(e.get("left")),s=e.get("width")+"px",i="1px"):(r=t.vy_to_sy(e.get("top")),n=t.vx_to_sx(this.mget("location")),s="1px",i=e.get("height")+"px"),this.$el.css({top:r,left:n,width:s,height:i,"z-index":1e3,"background-color":this.mget("color")}),this.$el.show())},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type="Span",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{level:"overlay",dimension:"width",units:"screen",color:"black"})},e}(n),e.exports={Model:s,View:o}},{"../../common/has_parent":114,"../../common/logging":119,"../../common/plot_widget":125,underscore:92}],150:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;n=t("jquery"),l=t("underscore"),r=t("../../common/has_parent"),s=t("../../common/plot_widget"),u=t("../../common/logging").logger,a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.className="bk-tooltip",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.$el.appendTo(this.plot_view.$el.find("div.bk-canvas-overlays")),this.$el.css({"z-index":1010}),this.$el.hide()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:data",this._draw_tips)},e.prototype.render=function(){return this._draw_tips()},e.prototype._draw_tips=function(){var t,e,i,r,s,o,a,u,h,c,p,d,f,g,m;if(this.$el.empty(),this.$el.hide(),this.$el.toggleClass("bk-tooltip-custom",this.mget("custom")),!l.isEmpty(this.mget("data"))){for(a=this.mget("data"),i=0,s=a.length;s&gt;i;i++)f=a[i],g=f[0],m=f[1],e=f[2],(!this.mget("inner_only")||this.plot_view.frame.contains(g,m))&amp;&amp;(p=n("&lt;div /&gt;").appendTo(this.$el),p.append(e));switch(h=this.plot_view.mget("canvas").vx_to_sx(g),c=this.plot_view.mget("canvas").vy_to_sy(m),u=this.mget("side"),"auto"===u&amp;&amp;(o=this.plot_view.frame.get("width"),u=g-this.plot_view.frame.get("left")&lt;o/2?"right":"left"),this.$el.removeClass("bk-right"),this.$el.removeClass("bk-left"),t=10,u){case"right":this.$el.addClass("bk-left"),r=h+(this.$el.outerWidth()-this.$el.innerWidth())+t;break;case"left":this.$el.addClass("bk-right"),r=h-this.$el.outerWidth()-t}return d=c-this.$el.outerHeight()/2,this.$el.children().length&gt;0?(this.$el.css({top:d,left:r}),this.$el.show()):void 0}},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.default_view=a,e.prototype.type="Tooltip",e.prototype.clear=function(){return this.set("data",[])},e.prototype.add=function(t,e,i){var n;return n=this.get("data"),n.push([t,e,i]),this.set("data",n)},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{level:"overlay",side:"auto",inner_only:!0})},e}(r),e.exports={Model:o,View:a}},{"../../common/has_parent":114,"../../common/logging":119,"../../common/plot_widget":125,jquery:18,underscore:92}],151:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),l=t("../../common/mathutils"),s=t("./glyph"),a=t("../../common/hittest"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){var t,e,i,n;for("data"===this.distances.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xmapper,this.x,this.inner_radius):this.sinner_radius=this.inner_radius,"data"===this.distances.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xmapper,this.x,this.outer_radius):this.souter_radius=this.outer_radius,this.angle=new Float32Array(this.start_angle.length),n=[],t=e=0,i=this.start_angle.length;i&gt;=0?i&gt;e:e&gt;i;t=i&gt;=0?++e:--e)n.push(this.angle[t]=this.end_angle[t]-this.start_angle[t]);return n},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d;for(p=i.sx,d=i.sy,c=i.start_angle,n=i.angle,u=i.sinner_radius,h=i.souter_radius,r=i.direction,l=[],o=0,a=e.length;a&gt;o;o++)s=e[o],isNaN(p[s]+d[s]+u[s]+h[s]+c[s]+n[s]+r[s])||(t.translate(p[s],d[s]),t.rotate(this.start_angle[s]),t.moveTo(h[s],0),t.beginPath(),t.arc(0,0,h[s],0,n[s],r[s]),t.rotate(this.angle[s]),t.lineTo(u[s],0),t.arc(0,0,u[s],0,-n[s],!r[s]),t.closePath(),t.rotate(-n[s]-c[s]),t.translate(-p[s],-d[s]),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,s),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,s),l.push(t.stroke())):l.push(void 0));return l},e.prototype._hit_point=function(t){var e,i,n,r,s,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F,L;for(m=[t.vx,t.vy],S=m[0],E=m[1],R=this.renderer.xmapper.map_from_target(S,!0),O=this.renderer.ymapper.map_from_target(E,!0),"data"===this.distances.outer_radius.units?(z=R-this.max_outer_radius,j=R+this.max_outer_radius,F=O-this.max_outer_radius,L=O+this.max_outer_radius):(A=S-this.max_outer_radius,P=S+this.max_outer_radius,_=this.renderer.xmapper.v_map_from_target([A,P],!0),z=_[0],j=_[1],I=E-this.max_outer_radius,N=E+this.max_outer_radius,v=this.renderer.ymapper.v_map_from_target([I,N],!0),F=v[0],L=v[1]),i=[],y=function(){var t,e,i,n;for(i=this.index.search([z,F,j,L]),n=[],t=0,e=i.length;e&gt;t;t++)g=i[t],n.push(g[4].i);return n}.call(this),h=0,p=y.length;p&gt;h;h++)s=y[h],f=Math.pow(this.souter_radius[s],2),u=Math.pow(this.sinner_radius[s],2),k=this.renderer.xmapper.map_to_target(R,!0),M=this.renderer.xmapper.map_to_target(this.x[s],!0),D=this.renderer.ymapper.map_to_target(O,!0),T=this.renderer.ymapper.map_to_target(this.y[s],!0),n=Math.pow(k-M,2)+Math.pow(D-T,2),f&gt;=n&amp;&amp;n&gt;=u&amp;&amp;i.push([s,n]);for(r=[],c=0,d=i.length;d&gt;c;c++)b=i[c],s=b[0],n=b[1],x=this.renderer.plot_view.canvas.vx_to_sx(S),C=this.renderer.plot_view.canvas.vy_to_sy(E),e=Math.atan2(C-this.sy[s],x-this.sx[s]),l.angle_between(-e,-this.start_angle[s],-this.end_angle[s],this.direction[s])&amp;&amp;r.push([s,n]);return w=a.create_hit_test_result(),w["1d"].indices=o.chain(r).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),w},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type="AnnularWedge",e.prototype.distances=["inner_radius","outer_radius"],e.prototype.angles=["start_angle","end_angle"],e.prototype.fields=["direction:direction"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{direction:"anticlock"})},e}(s.Model),e.exports={Model:n,View:r}},{"../../common/hittest":116,"../../common/mathutils":120,"./glyph":158,underscore:92}],152:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),s=t("./glyph"),a=t("../../common/hittest"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return"data"===this.distances.inner_radius.units?this.sinner_radius=this.sdist(this.renderer.xmapper,this.x,this.inner_radius):this.sinner_radius=this.inner_radius,"data"===this.distances.outer_radius.units?this.souter_radius=this.sdist(this.renderer.xmapper,this.x,this.outer_radius):this.souter_radius=this.outer_radius;
        },e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h;for(u=i.sx,h=i.sy,a=i.sinner_radius,l=i.souter_radius,o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(u[n]+h[n]+a[n]+l[n])||(t.beginPath(),t.arc(u[n],h[n],a[n],0,2*Math.PI*2,!1),t.moveTo(u[n]+l[n],h[n]),t.arc(u[n],h[n],l[n],0,2*Math.PI*2,!0),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,n),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,n),o.push(t.stroke())):o.push(void 0));return o},e.prototype._hit_point=function(t){var e,i,n,r,s,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C;for(c=[t.vx,t.vy],v=c[0],y=c[1],b=this.renderer.xmapper.map_from_target(v,!0),w=b-this.max_radius,x=b+this.max_radius,k=this.renderer.ymapper.map_from_target(y,!0),M=k-this.max_radius,C=k+this.max_radius,i=[],p=function(){var t,e,i,n;for(i=this.index.search([w,M,x,C]),n=[],t=0,e=i.length;e&gt;t;t++)h=i[t],n.push(h[4].i);return n}.call(this),s=0,l=p.length;l&gt;s;s++)n=p[s],u=Math.pow(this.souter_radius[n],2),r=Math.pow(this.sinner_radius[n],2),f=this.renderer.xmapper.map_to_target(b),g=this.renderer.xmapper.map_to_target(this.x[n]),m=this.renderer.ymapper.map_to_target(k),_=this.renderer.ymapper.map_to_target(this.y[n]),e=Math.pow(f-g,2)+Math.pow(m-_,2),u&gt;=e&amp;&amp;e&gt;=r&amp;&amp;i.push([n,e]);return d=a.create_hit_test_result(),d["1d"].indices=o.chain(i).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),d},e.prototype.draw_legend=function(t,e,i,n,r){var s,o,a,l,u,h,c,p,d;return u=null!=(l=this.get_reference_point())?l:0,o=[u],p={},p[u]=(e+i)/2,d={},d[u]=(n+r)/2,a=.5*Math.min(Math.abs(i-e),Math.abs(r-n)),h={},h[u]=.4*a,c={},c[u]=.8*a,s={sx:p,sy:d,sinner_radius:h,souter_radius:c},this._render(t,o,s)},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="Annulus",e.prototype.distances=["inner_radius","outer_radius"],e}(s.Model),e.exports={Model:n,View:r}},{"../../common/hittest":116,"./glyph":158,underscore:92}],153:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./glyph"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return"data"===this.distances.radius.units?this.sradius=this.sdist(this.renderer.xmapper,this.x,this.radius):this.sradius=this.radius},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;if(c=i.sx,p=i.sy,u=i.sradius,h=i.start_angle,r=i.end_angle,n=i.direction,this.visuals.line.do_stroke){for(l=[],o=0,a=e.length;a&gt;o;o++)s=e[o],isNaN(c[s]+p[s]+u[s]+h[s]+r[s]+n[s])||(t.beginPath(),t.arc(c[s],p[s],u[s],h[s],r[s],n[s]),this.visuals.line.set_vectorize(t,s),l.push(t.stroke()));return l}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="Arc",e.prototype.visuals=["line"],e.prototype.distances=["radius"],e.prototype.angles=["start_angle","end_angle"],e.prototype.fields=["direction:direction"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{direction:"anticlock"})},e}(s.Model),e.exports={Model:n,View:r}},{"./glyph":158,underscore:92}],154:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),l=t("rbush"),s=t("./glyph"),a=function(t,e,i,n,r,s,o,a){var l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M;for(x=[],c=[[],[]],d=m=0;2&gt;=m;d=++m)if(0===d?(u=6*t-12*i+6*r,l=-3*t+9*i-9*r+3*o,p=3*i-3*t):(u=6*e-12*n+6*s,l=-3*e+9*n-9*s+3*a,p=3*n-3*e),Math.abs(l)&lt;1e-12){if(Math.abs(u)&lt;1e-12)continue;y=-p/u,y&gt;0&amp;&amp;1&gt;y&amp;&amp;x.push(y)}else h=u*u-4*p*l,v=Math.sqrt(h),0&gt;h||(b=(-u+v)/(2*l),b&gt;0&amp;&amp;1&gt;b&amp;&amp;x.push(b),w=(-u-v)/(2*l),w&gt;0&amp;&amp;1&gt;w&amp;&amp;x.push(w));for(f=x.length,g=f;f--;)y=x[f],_=1-y,k=_*_*_*t+3*_*_*y*i+3*_*y*y*r+y*y*y*o,c[0][f]=k,M=_*_*_*e+3*_*_*y*n+3*_*y*y*s+y*y*y*a,c[1][f]=M;return c[0][g]=t,c[1][g]=e,c[0][g+1]=o,c[1][g+1]=a,[Math.min.apply(null,c[0]),Math.max.apply(null,c[1]),Math.max.apply(null,c[0]),Math.min.apply(null,c[1])]},r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){var t,e,i,n,r,s,o,u,h,c;for(e=l(),n=[],t=i=0,r=this.x0.length;r&gt;=0?r&gt;i:i&gt;r;t=r&gt;=0?++i:--i)isNaN(this.x0[t]+this.x1[t]+this.y0[t]+this.y1[t]+this.cx0[t]+this.cy0[t]+this.cx1[t]+this.cy1[t])||(s=a(this.x0[t],this.y0[t],this.x1[t],this.y1[t],this.cx0[t],this.cy0[t],this.cx1[t],this.cy1[t]),o=s[0],h=s[1],u=s[2],c=s[3],n.push([o,h,u,c,{i:t}]));return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g;if(p=i.sx0,f=i.sy0,d=i.sx1,g=i.sy1,a=i.scx,l=i.scx0,h=i.scy0,u=i.scx1,c=i.scy1,this.visuals.line.do_stroke){for(o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(p[n]+f[n]+d[n]+g[n]+l[n]+h[n]+u[n]+c[n])||(t.beginPath(),t.moveTo(p[n],f[n]),t.bezierCurveTo(l[n],h[n],u[n],c[n],d[n],g[n]),this.visuals.line.set_vectorize(t,n),o.push(t.stroke()));return o}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type="Bezier",e.prototype.visuals=["line"],e.prototype.coords=[["x0","y0"],["x1","y1"],["cx0","cy0"],["cx1","cy1"]],e}(s.Model),e.exports={Model:n,View:r}},{"./glyph":158,rbush:89,underscore:92}],155:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty;f=null!=i._bokehTest?void 0:t("gloo2"),h=t("../../common/color"),c=h.color2rgba,g=function(t){return 2&gt;t&amp;&amp;(t=Math.sqrt(2*t)),t},p=function(t,e){var i,n,r,s;for(i=new Float32Array(t),n=r=0,s=t;s&gt;=0?s&gt;r:r&gt;s;n=s&gt;=0?++r:--r)i[n]=e;return i},d=function(t,e,i){var n,r,s,o,a,l,u;for(n=new Float32Array(t*e),r=o=0,l=t;l&gt;=0?l&gt;o:o&gt;l;r=l&gt;=0?++o:--o)for(s=a=0,u=e;u&gt;=0?u&gt;a:a&gt;u;s=u&gt;=0?++a:--a)n[r*e+s]=i[s];return n},u=function(t,e,i,n,r,s){var o;return e.used=!0,null!=r[s].fixed_value?(t.set_attribute(i,"float",null,r[s].fixed_value),e.used=!1):(o=new Float32Array(r.cache[s+"_array"]),e.set_size(4*n),e.set_data(0,o),t.set_attribute(i,"float",[e,0,0])),o},l=function(t,e,i,n,r){var s,o,a,l,u,h,d,f,g,m,_;if(f=4,e.used=!0,null!=r.color.fixed_value&amp;&amp;null!=r.alpha.fixed_value)_=c(r.color.fixed_value,r.alpha.fixed_value),t.set_attribute(i,"vec4",null,_),e.used=!1;else{for(a=null!=r.color.fixed_value?function(){var t,e,i;for(i=[],l=t=0,e=n;e&gt;=0?e&gt;t:t&gt;e;l=e&gt;=0?++t:--t)i.push(r.color.fixed_value);return i}():r.cache.color_array,o=null!=r.alpha.fixed_value?p(n,r.alpha.fixed_value):r.cache.alpha_array,s=new Float32Array(n*f),l=h=0,g=n;g&gt;=0?g&gt;h:h&gt;g;l=g&gt;=0?++h:--h)for(_=c(a[l],o[l]),u=d=0,m=f;m&gt;=0?m&gt;d:d&gt;m;u=m&gt;=0?++d:--d)s[l*f+u]=_[u];e.set_size(n*f*4),e.set_data(0,s),t.set_attribute(i,"vec4",[e,0,0])}return s},n=function(){function t(t,e){this.gl=t,this.glyph=e,this.nvertices=0,this.size_changed=!1,this.data_changed=!1,this.visuals_changed=!1,this.init()}return t.prototype.GLYPH="",t.prototype.VERT="",t.prototype.FRAG="",t.prototype.set_data_changed=function(t){return t!==this.nvertices&amp;&amp;(this.nvertices=t,this.size_changed=!0),this.data_changed=!0},t.prototype.set_visuals_changed=function(){return this.visuals_changed=!0},t}(),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.GLYPH="line",e.prototype.VERT="xxx",e.prototype.FRAG="xxx",e}(n),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.VERT="precision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\n//\nuniform vec2 u_canvas_size;\nuniform vec2 u_offset;\nuniform vec2 u_scale;\nuniform float u_antialias;\n//\nattribute float a_x;\nattribute float a_y;\nattribute float a_size;\nattribute float a_angle;  // in radians\nattribute float a_linewidth;\nattribute vec4  a_fg_color;\nattribute vec4  a_bg_color;\n//\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec4  v_fg_color;\nvarying vec4  v_bg_color;\nvarying vec2  v_rotation;\n\nvoid main (void)\n{\n    v_size = a_size;\n    v_linewidth = a_linewidth;\n    v_fg_color = a_fg_color;\n    v_bg_color = a_bg_color;\n    v_rotation = vec2(cos(-a_angle), sin(-a_angle));\n    // Calculate position - the -0.5 is to correct for canvas origin\n    vec2 pos = vec2(a_x, a_y) * u_scale + u_offset - vec2(0.5, 0.5); // in pixels\n    pos /= u_canvas_size;  // in 0..1\n    gl_Position = vec4(pos*2.0-1.0, 0.0, 1.0);\n    gl_Position.y *= -1.0;        \n    gl_PointSize = SQRT_2 * v_size + 2.0 * (a_linewidth + 1.5*u_antialias);\n}",e.prototype.FRAG="precision mediump float;\nconst float SQRT_2 = 1.4142135623730951;\nconst float PI = 3.14159265358979323846264;\n//\nuniform float u_antialias;\n//\nvarying vec4  v_fg_color;\nvarying vec4  v_bg_color;\nvarying float v_linewidth;\nvarying float v_size;\nvarying vec2  v_rotation;\n\nMARKERCODE\n\nvec4 outline(float distance, float linewidth, float antialias, vec4 fg_color, vec4 bg_color)\n{\n    vec4 frag_color;\n    float t = linewidth/2.0 - antialias;\n    float signed_distance = distance;\n    float border_distance = abs(signed_distance) - t;\n    float alpha = border_distance/antialias;\n    alpha = exp(-alpha*alpha);\n    \n    // If fg alpha is zero, it probably means no outline. To avoid a dark outline\n    // shining through due to aa, we set the fg color to the bg color. Avoid if (i.e. branching).\n    float select = float(bool(fg_color.a));\n    fg_color.rgb = select * fg_color.rgb + (1.0  - select) * bg_color.rgb;\n    // Similarly, if we want a transparent bg\n    select = float(bool(bg_color.a));\n    bg_color.rgb = select * bg_color.rgb + (1.0  - select) * fg_color.rgb;\n    \n    if( border_distance &lt; 0.0)\n        frag_color = fg_color;\n    else if( signed_distance &lt; 0.0 ) {\n        frag_color = mix(bg_color, fg_color, sqrt(alpha));\n    } else {\n        if( abs(signed_distance) &lt; (linewidth/2.0 + antialias) ) {\n            frag_color = vec4(fg_color.rgb, fg_color.a * alpha);\n        } else {\n            discard;\n        }\n    }\n    return frag_color;\n}\n\nvoid main()\n{\n    vec2 P = gl_PointCoord.xy - vec2(0.5, 0.5);\n    P = vec2(v_rotation.x*P.x - v_rotation.y*P.y,\n             v_rotation.y*P.x + v_rotation.x*P.y);\n    float point_size = SQRT_2*v_size  + 2.0 * (v_linewidth + 1.5*u_antialias);\n    float distance = marker(P*point_size, v_size);\n    gl_FragColor = outline(distance, v_linewidth, u_antialias, v_fg_color, v_bg_color);\n    //gl_FragColor.rgb *= gl_FragColor.a;  // pre-multiply alpha\n}",e.prototype.MARKERCODE="&lt;defined in subclasses&gt;",e.prototype.init=function(){var t,e;return e=this.gl,t=this.FRAG.replace(/MARKERCODE/,this.MARKERCODE),this.last_trans={},this.prog=new f.Program(e),this.prog.set_shaders(this.VERT,t),this.vbo_x=new f.VertexBuffer(e),this.prog.set_attribute("a_x","float",[this.vbo_x,0,0]),this.vbo_y=new f.VertexBuffer(e),this.prog.set_attribute("a_y","float",[this.vbo_y,0,0]),this.vbo_s=new f.VertexBuffer(e),this.prog.set_attribute("a_size","float",[this.vbo_s,0,0]),this.vbo_a=new f.VertexBuffer(e),this.prog.set_attribute("a_angle","float",[this.vbo_a,0,0]),this.vbo_linewidth=new f.VertexBuffer(e),this.vbo_fg_color=new f.VertexBuffer(e),this.vbo_bg_color=new f.VertexBuffer(e),this.index_buffer=new f.IndexBuffer(e)},e.prototype.draw=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v;if(u=e.glglyph.nvertices,this.data_changed?(this._set_data(u),this.data_changed=!1):null==this.glyph.radius||i.sx===this.last_trans.sx&amp;&amp;i.sy===this.last_trans.sy||(this.last_trans=i,this.vbo_s.set_data(0,new Float32Array(function(){var t,e,i,n;for(i=this.glyph.sradius,n=[],t=0,e=i.length;e&gt;t;t++)m=i[t],n.push(2*m);return n}.call(this)))),this.visuals_changed&amp;&amp;(this._set_visuals(u),this.visuals_changed=!1),this.prog.set_uniform("u_canvas_size","vec2",[i.width,i.height]),this.prog.set_uniform("u_offset","vec2",[i.dx[0],i.dy[0]]),this.prog.set_uniform("u_scale","vec2",[i.sx,i.sy]),this.prog.set_attribute("a_x","float",[e.glglyph.vbo_x,0,0]),this.prog.set_attribute("a_y","float",[e.glglyph.vbo_y,0,0]),this.prog.set_attribute("a_size","float",[e.glglyph.vbo_s,0,0]),this.prog.set_attribute("a_angle","float",[e.glglyph.vbo_a,0,0]),0!==t.length){if(t.length===u)return this.prog.draw(this.gl.POINTS,[0,u]);if(65535&gt;u)return this.index_buffer.set_size(2*t.length),this.index_buffer.set_data(0,new Uint16Array(t)),this.prog.draw(this.gl.POINTS,this.index_buffer);for(s=64e3,r=[],o=a=0,p=Math.ceil(u/s);p&gt;=0?p&gt;a:a&gt;p;o=p&gt;=0?++a:--a)r.push([]);for(o=l=0,d=t.length;d&gt;=0?d&gt;l:l&gt;d;o=d&gt;=0?++l:--l)v=t[o]%s,n=Math.floor(t[o]/s),r[n].push(v);for(g=[],n=h=0,f=r.length;f&gt;=0?f&gt;h:h&gt;f;n=f&gt;=0?++h:--h)_=new Uint16Array(r[n]),c=n*s*4,0!==_.length&amp;&amp;(this.prog.set_attribute("a_x","float",[e.glglyph.vbo_x,0,c]),this.prog.set_attribute("a_y","float",[e.glglyph.vbo_y,0,c]),this.prog.set_attribute("a_size","float",[e.glglyph.vbo_s,0,c]),this.prog.set_attribute("a_angle","float",[e.glglyph.vbo_a,0,c]),this.vbo_linewidth.used&amp;&amp;this.prog.set_attribute("a_linewidth","float",[this.vbo_linewidth,0,c]),this.vbo_fg_color.used&amp;&amp;this.prog.set_attribute("a_fg_color","vec4",[this.vbo_fg_color,0,4*c]),this.vbo_bg_color.used&amp;&amp;this.prog.set_attribute("a_bg_color","vec4",[this.vbo_bg_color,0,4*c]),this.index_buffer.set_size(2*_.length),this.index_buffer.set_data(0,_),g.push(this.prog.draw(this.gl.POINTS,this.index_buffer)));return g}},e.prototype._set_data=function(t){var e,i;return e=4*t,this.vbo_x.set_size(e),this.vbo_y.set_size(e),this.vbo_a.set_size(e),this.vbo_s.set_size(e),this.vbo_x.set_data(0,new Float32Array(this.glyph.x)),this.vbo_y.set_data(0,new Float32Array(this.glyph.y)),null!=this.glyph.angle&amp;&amp;this.vbo_a.set_data(0,new Float32Array(this.glyph.angle)),null!=this.glyph.radius?this.vbo_s.set_data(0,new Float32Array(function(){var t,e,n,r;for(n=this.glyph.sradius,r=[],t=0,e=n.length;e&gt;t;t++)i=n[t],r.push(2*i);return r}.call(this))):this.vbo_s.set_data(0,new Float32Array(this.glyph.size))},e.prototype._set_visuals=function(t){return u(this.prog,this.vbo_linewidth,"a_linewidth",t,this.glyph.visuals.line,"width"),l(this.prog,this.vbo_fg_color,"a_fg_color",t,this.glyph.visuals.line),l(this.prog,this.vbo_bg_color,"a_bg_color",t,this.glyph.visuals.fill),this.prog.set_uniform("u_antialias","float",[.9])},e}(n),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.GLYPH="circle",e.prototype.MARKERCODE="// --- disc\nfloat marker(vec2 P, float size)\n{\n    return length(P) - size/2.0;\n}",e}(o),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.GLYPH="square",e.prototype.MARKERCODE="// --- square\nfloat marker(vec2 P, float size)\n{\n    return max(abs(P.x), abs(P.y)) - size/2.0;\n}",e}(o),e.exports={CircleGLGlyph:r,SquareGLGlyph:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../common/color":108,gloo2:298}],156:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),a=t("./bokehgl"),s=t("./glyph"),l=t("../../common/hittest"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._init_gl=function(t){return this.glglyph=new a.CircleGLGlyph(t,this)},e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){var t,e;return null!=this.radius?"data"===this.distances.radius.units?(t=this.fields.radius_dimension.fixed_value,this.sradius=this.sdist(this.renderer[t+"mapper"],this[t],this.radius)):(this.sradius=this.radius,this.max_size=2*this.max_radius):this.sradius=function(){var t,i,n,r;for(n=this.size,r=[],t=0,i=n.length;i&gt;t;t++)e=n[t],r.push(e/2);return r}.call(this)},e.prototype._mask_data=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_;return e=this.renderer.plot_view.frame.get("h_range"),p=this.renderer.plot_view.frame.get("v_range"),null!=this.radius&amp;&amp;"data"===this.distances.radius.units?(l=e.get("start"),u=e.get("end"),i=this.renderer.xmapper.v_map_from_target([l,u],!0),f=i[0],g=i[1],f-=this.max_radius,g+=this.max_radius,h=p.get("start"),c=p.get("end"),n=this.renderer.ymapper.v_map_from_target([h,c],!0),m=n[0],_=n[1],m-=this.max_radius,_+=this.max_radius):(l=e.get("start")-this.max_size,u=e.get("end")+this.max_size,r=this.renderer.xmapper.v_map_from_target([l,u],!0),f=r[0],g=r[1],h=p.get("start")-this.max_size,c=p.get("end")+this.max_size,s=this.renderer.ymapper.v_map_from_target([h,c],!0),m=s[0],_=s[1]),f&gt;g&amp;&amp;(o=[g,f],f=o[0],g=o[1]),m&gt;_&amp;&amp;(a=[_,m],m=a[0],_=a[1]),function(){var t,e,i,n;for(i=this.index.search([f,m,g,_]),n=[],t=0,e=i.length;e&gt;t;t++)d=i[t],n.push(d[4].i);return n}.call(this)},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u;for(l=i.sx,u=i.sy,a=i.sradius,o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(l[n]+u[n]+a[n])||(t.beginPath(),t.arc(l[n],u[n],a[n],0,2*Math.PI,!1),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,n),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,n),o.push(t.stroke())):o.push(void 0));return o},e.prototype._hit_point=function(t){var e,i,n,r,s,a,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j;if(d=[t.vx,t.vy],C=d[0],S=d[1],E=this.renderer.xmapper.map_from_target(C,!0),R=this.renderer.ymapper.map_from_target(S,!0),null!=this.radius&amp;&amp;"data"===this.distances.radius.units?(I=E-this.max_radius,N=E+this.max_radius,z=R-this.max_radius,j=R+this.max_radius):(D=C-this.max_size,T=C+this.max_size,f=this.renderer.xmapper.v_map_from_target([D,T],!0),I=f[0],N=f[1],g=[Math.min(I,N),Math.max(I,N)],I=g[0],N=g[1],A=S-this.max_size,P=S+this.max_size,m=this.renderer.ymapper.v_map_from_target([A,P],!0),z=m[0],j=m[1],_=[Math.min(z,j),Math.max(z,j)],z=_[0],j=_[1]),e=function(){var t,e,i,n;for(i=this.index.search([I,z,N,j]),n=[],t=0,e=i.length;e&gt;t;t++)c=i[t],n.push(c[4].i);return n}.call(this),n=[],null!=this.radius&amp;&amp;"data"===this.distances.radius.units)for(s=0,u=e.length;u&gt;s;s++)r=e[s],p=Math.pow(this.sradius[r],2),b=this.renderer.xmapper.map_to_target(E,!0),w=this.renderer.xmapper.map_to_target(this.x[r],!0),k=this.renderer.ymapper.map_to_target(R,!0),M=this.renderer.ymapper.map_to_target(this.y[r],!0),i=Math.pow(b-w,2)+Math.pow(k-M,2),p&gt;=i&amp;&amp;n.push([r,i]);else for(y=this.renderer.plot_view.canvas.vx_to_sx(C),x=this.renderer.plot_view.canvas.vy_to_sy(S),a=0,h=e.length;h&gt;a;a++)r=e[a],p=Math.pow(this.sradius[r],2),i=Math.pow(this.sx[r]-y,2)+Math.pow(this.sy[r]-x,2),p&gt;=i&amp;&amp;n.push([r,i]);return n=o.chain(n).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),v=l.create_hit_test_result(),v["1d"].indices=n,v},e.prototype._hit_span=function(t){var e,i,n,r,s,o,a,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k;return n=[t.vx,t.vy],c=n[0],f=n[1],r=this.bounds(),y=r[0],k=r[1],h=l.create_hit_test_result(),"h"===t.direction?(w=k[0],x=k[1],null!=this.radius&amp;&amp;"data"===this.distances.radius.units?(p=c-this.max_radius,d=c+this.max_radius,s=this.renderer.xmapper.v_map_from_target([p,d]),_=s[0],v=s[1]):(i=this.max_size/2,p=c-i,d=c+i,o=this.renderer.xmapper.v_map_from_target([p,d],!0),_=o[0],v=o[1])):(_=y[0],v=y[1],null!=this.radius&amp;&amp;"data"===this.distances.radius.units?(g=f-this.max_radius,m=f+this.max_radius,a=this.renderer.ymapper.v_map_from_target([g,m]),w=a[0],x=a[1]):(i=this.max_size/2,g=f-i,m=f+i,u=this.renderer.ymapper.v_map_from_target([g,m],!0),w=u[0],x=u[1])),e=function(){var t,e,i,n;for(i=this.index.search([_,w,v,x]),n=[],t=0,e=i.length;e&gt;t;t++)b=i[t],n.push(b[4].i);return n}.call(this),h["1d"].indices=e,h},e.prototype._hit_rect=function(t){var e,i,n,r,s,o,a,u;return e=this.renderer.xmapper.v_map_from_target([t.vx0,t.vx1],!0),s=e[0],o=e[1],i=this.renderer.ymapper.v_map_from_target([t.vy0,t.vy1],!0),a=i[0],u=i[1],n=l.create_hit_test_result(),n["1d"].indices=function(){var t,e,i,n;for(i=this.index.search([s,a,o,u]),n=[],t=0,e=i.length;e&gt;t;t++)r=i[t],n.push(r[4].i);return n}.call(this),n},e.prototype._hit_poly=function(t){var e,i,n,r,s,a,u,h,c,p,d,f,g;for(a=[o.clone(t.vx),o.clone(t.vy)],f=a[0],g=a[1],p=this.renderer.plot_view.canvas.v_vx_to_sx(f),d=this.renderer.plot_view.canvas.v_vy_to_sy(g),e=function(){c=[];for(var t=0,e=this.sx.length;e&gt;=0?e&gt;t:t&gt;e;e&gt;=0?t++:t--)c.push(t);return c}.apply(this),i=[],n=s=0,u=e.length;u&gt;=0?u&gt;s:s&gt;u;n=u&gt;=0?++s:--s)r=e[n],l.point_in_poly(this.sx[n],this.sy[n],p,d)&amp;&amp;i.push(r);return h=l.create_hit_test_result(),h["1d"].indices=i,h},e.prototype.draw_legend=function(t,e,i,n,r){var s,o,a,l,u,h,c;return l=null!=(a=this.get_reference_point())?a:0,o=[l],h={},h[l]=(e+i)/2,c={},c[l]=(n+r)/2,u={},u[l]=.2*Math.min(Math.abs(i-e),Math.abs(r-n)),s={sx:h,sy:c,sradius:u},this._render(t,o,s)},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type="Circle",e.prototype.distances=["?radius","?size"],e.prototype.fields=["radius_dimension:string"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{size:4})},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{radius_dimension:"x"})},e}(s.Model),e.exports={Model:n,View:r}},{"../../common/hittest":116,"./bokehgl":155,"./glyph":158,underscore:92}],157:[function(t,e,i){(function(i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t("underscore"),a=t("./glyph"),s=null!=i._bokehTest?void 0:t("gear_utils"),n=t("../../util/bezier"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.smodule=this.sdist(this.renderer.xmapper,this.x,this.module,"edge")},e.prototype._render=function(t,e,i){var n,r,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S;for(M=i.sx,C=i.sy,k=i.smodule,r=i.angle,D=i.teeth,f=i.pressure_angle,x=i.shaft_size,l=i.internal,h=0,p=e.length;p&gt;h;h++)if(a=e[h],!isNaN(M[a]+C[a]+r[a]+k[a]+D[a]+f[a]+x[a]+l[a])){for(d=k[a]*D[a]/2,o=l[a]?s.create_internal_gear_tooth:s.create_gear_tooth,b=o(k[a],D[a],f[a]),g=b.slice(0,3),n=g[0],T=g[1],S=g[2],y=b.slice(3),t.save(),t.translate(M[a],C[a]),t.rotate(r[a]),t.beginPath(),v=2*Math.PI/D[a],t.moveTo(T,S),u=c=0,m=D[a];m&gt;=0?m&gt;c:c&gt;m;u=m&gt;=0?++c:--c)this._render_seq(t,y),t.rotate(v);t.closePath(),l[a]?(_=d+2.75*k[a],t.moveTo(_,0),t.arc(0,0,_,0,2*Math.PI,!0)):x[a]&gt;0&amp;&amp;(w=d*x[a],t.moveTo(w,0),t.arc(0,0,w,0,2*Math.PI,!0)),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,a),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,a),t.stroke()),t.restore()}},e.prototype._render_seq=function(t,e){var i,r,s,o,a,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I;for(u=0;u&lt;e.length;)switch(l.isString(e[u])&amp;&amp;(i=e[u],u+=1),i){case"M":g=e.slice(u,u+2),P=g[0],I=g[1],t.moveTo(P,I),m=[P,I],d=m[0],f=m[1],u+=2;break;case"L":v=e.slice(u,u+2),P=v[0],I=v[1],t.lineTo(P,I),y=[P,I],d=y[0],f=y[1],u+=2;break;case"C":b=e.slice(u,u+6),r=b[0],o=b[1],s=b[2],a=b[3],P=b[4],I=b[5],t.bezierCurveTo(r,o,s,a,P,I),w=[P,I],d=w[0],f=w[1],u+=6;break;case"Q":x=e.slice(u,u+4),r=x[0],o=x[1],P=x[2],I=x[3],t.quadraticCurveTo(r,o,P,I),k=[P,I],d=k[0],f=k[1],u+=4;break;case"A":for(M=e.slice(u,u+7),D=M[0],T=M[1],E=M[2],c=M[3],A=M[4],P=M[5],I=M[6],S=n.arc_to_bezier(d,f,D,T,-E,c,1-A,P,I),h=0,p=S.length;p&gt;h;h++)C=S[h],r=C[0],o=C[1],s=C[2],a=C[3],P=C[4],I=C[5],t.bezierCurveTo(r,o,s,a,P,I);_=[P,I],d=_[0],f=_[1],u+=7;break;default:throw new Error("unexpected command: "+i)}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(a.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type="Gear",e.prototype.angles=["angle"],e.prototype.fields=["module","internal:bool","pressure_angle","shaft_size","teeth"],e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{angle:0,pressure_angle:20,shaft_size:.3,internal:!1})},e}(a.Model),e.exports={Model:r,View:o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../util/bezier":248,"./glyph":158,gear_utils:297,underscore:92}],158:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g=function(t,e){function i(){this.constructor=t}for(var n in e)m.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},m={}.hasOwnProperty;l=t("underscore"),d=t("rbush"),u=t("../../common/bbox"),h=t("../../common/logging").logger,a=t("../../common/has_parent"),r=t("../../common/continuum_view"),p=t("../../common/properties"),n=t("../../mapper/categorical_mapper"),c=t("proj4"),f=c.defs("GOOGLE"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.initialize=function(t){var i,n,r,s;e.__super__.initialize.call(this,t),this.renderer=t.renderer,i=this.renderer.plot_view.canvas_view.ctx,null!=i.glcanvas&amp;&amp;this._init_gl(i.glcanvas.gl),s=p.factories;for(r in s)n=s[r],this[r]={},this[r]=l.extend(this[r],n(this.model));return this.warned={},this},e.prototype.render=function(t,e,i){if(this.mget("visible")){if(t.beginPath(),null!=this.glglyph&amp;&amp;this._render_gl(t,e,i))return;return this._render(t,e,i)}},e.prototype._render_gl=function(t,e,i){var n,r,s,o;return s=this.renderer.map_to_screen([0,1,2],[0,1,2]),n=s[0],r=s[1],Math.abs(n[1]-n[0]-(n[2]-n[1]))&gt;1e-6||Math.abs(r[1]-r[0]-(r[2]-r[1]))&gt;1e-6?!1:(o={width:t.glcanvas.width,height:t.glcanvas.height,dx:n,dy:r,sx:n[1]-n[0],sy:r[1]-r[0]},this.glglyph.draw(e,i,o),!0)},e.prototype.map_data=function(){var t,e,i,n,r,s,o,a,u,h,c,p,d,f,g,m,_;for(r=this.model.coords,e=0,n=r.length;n&gt;e;e++)if(s=r[e],m=s[0],_=s[1],d="s"+m,g="s"+_,l.isArray(null!=(o=this[m])?o[0]:void 0))for(a=[[],[]],this[d]=a[0],this[g]=a[1],t=i=0,u=this[m].length;u&gt;=0?u&gt;i:i&gt;u;t=u&gt;=0?++i:--i)h=this.renderer.map_to_screen(this[m][t],this[_][t]),p=h[0],f=h[1],this[d].push(p),this[g].push(f);else c=this.renderer.map_to_screen(this[m],this[_]),this[d]=c[0],this[g]=c[1];return this._map_data()},e.prototype.project_xy=function(t,e){var i,n,r,s,o,a,l,u;for(s=[],a=[],i=n=0,l=t.length;l&gt;=0?l&gt;n:n&gt;l;i=l&gt;=0?++n:--n)u=c(f,[t[i],e[i]]),r=u[0],o=u[1],s[i]=r,a[i]=o;return[s,a]},e.prototype.project_xsys=function(t,e){var i,n,r,s,o,a,l,u;for(s=[],a=[],i=n=0,l=t.length;l&gt;=0?l&gt;n:n&gt;l;i=l&gt;=0?++n:--n)u=this.project_xy(t[i],e[i]),r=u[0],o=u[1],s[i]=r,a[i]=o;return[s,a]},e.prototype.set_data=function(t){var e,i,n,r,s,o,a,l;n=this.coords;for(e in n)i=n[e],this[e]=i.array(t);this.renderer.plot_model.use_map&amp;&amp;(null!=this.x&amp;&amp;(r=this.project_xy(this.x,this.y),this.x=r[0],this.y=r[1]),null!=this.xs&amp;&amp;(s=this.project_xsys(this.xs,this.ys),this.xs=s[0],this.ys=s[1])),o=this.angles;for(e in o)i=o[e],this[e]=i.array(t);a=this.distances;for(e in a)i=a[e],this[e]=i.array(t),this["max_"+e]=Math.max.apply(null,this[e]);l=this.fields;for(e in l)i=l[e],this[e]=i.array(t);return null!=this.glglyph&amp;&amp;this.glglyph.set_data_changed(this.x.length),this._set_data(),this.index=this._index_data()},e.prototype.set_visuals=function(t){var e,i,n;n=this.visuals;for(e in n)i=n[e],i.warm_cache(t);return null!=this.glglyph?this.glglyph.set_visuals_changed():void 0},e.prototype.bounds=function(){var t;return null==this.index?u.empty():(t=this.index.data.bbox,this._bounds([[t[0],t[2]],[t[1],t[3]]]))},e.prototype.scx=function(t){return this.sx[t]},e.prototype.scy=function(t){return this.sy[t]},e.prototype._init_gl=function(){return!1},e.prototype._set_data=function(){return null},e.prototype._map_data=function(){return null},e.prototype._mask_data=function(t){return t},e.prototype._bounds=function(t){return t},e.prototype._xy_index=function(){var t,e,i,r,s,o,a,l,u;for(e=d(),r=[],a=this.renderer.xmapper instanceof n.Model?this.renderer.xmapper.v_map_to_target(this.x,!0):this.x,u=this.renderer.ymapper instanceof n.Model?this.renderer.ymapper.v_map_to_target(this.y,!0):this.y,t=i=0,s=a.length;s&gt;=0?s&gt;i:i&gt;s;t=s&gt;=0?++i:--i)o=a[t],!isNaN(o)&amp;&amp;isFinite(o)&amp;&amp;(l=u[t],!isNaN(l)&amp;&amp;isFinite(l)&amp;&amp;r.push([o,l,o,l,{i:t}]));return e.load(r),e},e.prototype.sdist=function(t,e,i,n,r){var s,o,a,u,h,c,p;return null==n&amp;&amp;(n="edge"),null==r&amp;&amp;(r=!1),l.isString(e[0])&amp;&amp;(e=t.v_map_to_target(e)),"center"===n?(o=function(){var t,e,n;for(n=[],t=0,e=i.length;e&gt;t;t++)s=i[t],n.push(s/2);return n}(),u=function(){var t,i,n;for(n=[],a=t=0,i=e.length;i&gt;=0?i&gt;t:t&gt;i;a=i&gt;=0?++t:--t)n.push(e[a]-o[a]);return n}(),h=function(){var t,i,n;for(n=[],a=t=0,i=e.length;i&gt;=0?i&gt;t:t&gt;i;a=i&gt;=0?++t:--t)n.push(e[a]+o[a]);return n}()):(u=e,h=function(){var t,e,n;for(n=[],a=t=0,e=u.length;e&gt;=0?e&gt;t:t&gt;e;a=e&gt;=0?++t:--t)n.push(u[a]+i[a]);return n}()),c=t.v_map_to_target(u),p=t.v_map_to_target(h),r?function(){var t,e,i;for(i=[],a=t=0,e=c.length;e&gt;=0?e&gt;t:t&gt;e;a=e&gt;=0?++t:--t)i.push(Math.ceil(Math.abs(p[a]-c[a])));return i}():function(){var t,e,i;for(i=[],a=t=0,e=c.length;e&gt;=0?e&gt;t:t&gt;e;a=e&gt;=0?++t:--t)i.push(Math.abs(p[a]-c[a]));return i}()},e.prototype.hit_test=function(t){var e,i;return i=null,e="_hit_"+t.type,null!=this[e]?i=this[e](t):null==this.warned[t.type]&amp;&amp;(h.error("'"+t.type+"' selection not available for "+this.model.type),this.warned[t.type]=!0),i},e.prototype.get_reference_point=function(){var t;return t=this.mget("reference_point"),l.isNumber(t)?this.data[t]:t},e.prototype.draw_legend=function(t,e,i,n,r){return null},e.prototype._generic_line_legend=function(t,e,i,n,r){var s,o;return o=null!=(s=this.get_reference_point())?s:0,t.save(),t.beginPath(),t.moveTo(e,(n+r)/2),t.lineTo(i,(n+r)/2),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,o),t.stroke()),t.restore()},e.prototype._generic_area_legend=function(t,e,i,n,r){var s,o,a,l,u,h,c,p,d,f,g;return h=null!=(u=this.get_reference_point())?u:0,l=[h],g=Math.abs(i-e),o=.1*g,a=Math.abs(r-n),s=.1*a,c=e+o,p=i-o,d=n+s,f=r-s,this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,h),t.fillRect(c,d,p-c,f-d)),this.visuals.line.do_stroke?(t.beginPath(),t.rect(c,d,p-c,f-d),this.visuals.line.set_vectorize(t,h),t.stroke()):void 0},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return g(e,t),e.prototype.visuals=["line","fill"],e.prototype.coords=[["x","y"]],e.prototype.distances=[],e.prototype.angles=[],e.prototype.fields=[],e.prototype.fill_defaults={fill_color:"gray",fill_alpha:1},e.prototype.line_defaults={line_color:"black",line_width:1,line_alpha:1,line_join:"miter",line_cap:"butt",line_dash:[],line_dash_offset:0},e.prototype.text_defaults={text_font:"helvetica",text_font_size:"12pt",text_font_style:"normal",text_color:"#444444",text_alpha:1,text_align:"left",text_baseline:"bottom"},e.prototype.defaults=function(){return l.extend({visible:!0})},e.prototype.display_defaults=function(){var t,i,n,r,s,o;for(o={},s=this.visuals,i=0,n=s.length;n&gt;i;i++){switch(r=s[i]){case"line":t=this.line_defaults;break;case"fill":t=this.fill_defaults;break;case"text":t=this.text_defaults;break;default:h.warn("unknown visual property type '"+r+"'");continue}o=l.extend(o,e.__super__.display_defaults.call(this),t)}return o},e}(a),e.exports={Model:s,View:o}},{"../../common/bbox":100,"../../common/continuum_view":109,"../../common/has_parent":114,"../../common/logging":119,"../../common/properties":126,
        "../../mapper/categorical_mapper":138,proj4:56,rbush:89,underscore:92}],159:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t("underscore"),h=t("../../common/logging").logger,o=t("../../common/has_parent"),a=t("../../common/plot_widget"),n=t("../../range/factor_range"),l=t("../../source/remote_data_source"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t){var i,n,r;return e.__super__.initialize.call(this,t),this.glyph=this.build_glyph_view(this.mget("glyph")),r=this.mget("selection_glyph"),null==r&amp;&amp;(r=this.mget("glyph").clone(),r.set(this.model.selection_defaults,{silent:!0})),this.selection_glyph=this.build_glyph_view(r),n=this.mget("nonselection_glyph"),null==n&amp;&amp;(n=this.mget("glyph").clone(),n.set(this.model.nonselection_defaults,{silent:!0})),this.nonselection_glyph=this.build_glyph_view(n),i=this.mget("glyph").clone(),i.set(this.model.decimated_defaults,{silent:!0}),this.decimated_glyph=this.build_glyph_view(i),this.xmapper=this.plot_view.frame.get("x_mappers")[this.mget("x_range_name")],this.ymapper=this.plot_view.frame.get("y_mappers")[this.mget("y_range_name")],this.set_data(!1),this.mget("data_source")instanceof l.RemoteDataSource?this.mget("data_source").setup(this.plot_view,this.glyph):void 0},e.prototype.build_glyph_view=function(t){return new t.default_view({model:t,renderer:this})},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change",this.request_render),this.listenTo(this.mget("data_source"),"change",this.set_data),this.listenTo(this.mget("data_source"),"select",this.request_render),this.listenTo(this.mget("glyph"),"propchange",function(){return this.glyph.set_visuals(this.mget("data_source")),this.request_render()})},e.prototype.have_selection_glyphs=function(){return!0},e.prototype.setup_server_data=function(){},e.prototype.set_data=function(t,e){var i,n,r,s,o,a,l,u,c;for(null==t&amp;&amp;(t=!0),c=Date.now(),u=this.mget("data_source"),this.glyph.set_data(u,e),this.glyph.set_visuals(u),this.decimated_glyph.set_visuals(u),this.selection_glyph.set_visuals(u),this.nonselection_glyph.set_visuals(u),s=u.get_length(),null==s&amp;&amp;(s=1),this.all_indices=function(){l=[];for(var t=0;s&gt;=0?s&gt;t:t&gt;s;s&gt;=0?t++:t--)l.push(t);return l}.apply(this),o=this.plot_model.get("lod_factor"),this.decimated=[],n=r=0,a=Math.floor(this.all_indices.length/o);a&gt;=0?a&gt;r:r&gt;a;n=a&gt;=0?++r:--r)this.decimated.push(this.all_indices[n*o]);return i=Date.now()-c,h.debug(this.glyph.model.type+" GlyphRenderer ("+this.model.id+"): set_data finished in "+i+"ms"),this.set_data_timestamp=Date.now(),t?this.request_render():void 0},e.prototype.render=function(){var t,e,i,n,r,s,o,a,l,u,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C;if(w=Date.now(),o=this.glyph.glglyph,x=Date.now(),this.glyph.map_data(),e=Date.now()-w,k=Date.now(),u=o?this.all_indices:this.glyph._mask_data(this.all_indices),i=Date.now()-k,t=this.plot_view.canvas_view.ctx,t.save(),v=this.mget("data_source").get("selected"),v=v&amp;&amp;0!==v.length?v["0d"].flag?u:v["1d"].indices.length&gt;0?v["1d"].indices:v["2d"].indices.length&gt;0?v["2d"].indices:[]:[],g=this.plot_model.get("lod_threshold"),this.plot_view.interactive&amp;&amp;!o&amp;&amp;null!=g&amp;&amp;this.all_indices.length&gt;g?(u=this.decimated,a=this.decimated_glyph,_=this.decimated_glyph,b=this.selection_glyph):(a=this.glyph,_=this.nonselection_glyph,b=this.selection_glyph),v.length&amp;&amp;this.have_selection_glyphs()){for(C=Date.now(),y={},c=0,d=v.length;d&gt;c;c++)l=v[c],y[l]=!0;for(v=new Array,m=new Array,p=0,f=u.length;f&gt;p;p++)l=u[p],null!=y[l]?v.push(l):m.push(l);r=Date.now()-C,M=Date.now(),_.render(t,m,this.glyph),b.render(t,v,this.glyph),n=Date.now()-M}else M=Date.now(),a.render(t,u,this.glyph),n=Date.now()-M;return this.last_dtrender=n,s=Date.now()-w,h.debug(this.glyph.model.type+" GlyphRenderer ("+this.model.id+"): render finished in "+s+"ms"),h.trace(" - map_data finished in       : "+e+"ms"),null!=i&amp;&amp;h.trace(" - mask_data finished in      : "+i+"ms"),null!=r&amp;&amp;h.trace(" - selection mask finished in : "+r+"ms"),h.trace(" - glyph renders finished in  : "+n+"ms"),t.restore()},e.prototype.map_to_screen=function(t,e){return this.plot_view.map_to_screen(t,e,this.mget("x_range_name"),this.mget("y_range_name"))},e.prototype.draw_legend=function(t,e,i,n,r){return this.glyph.draw_legend(t,e,i,n,r)},e.prototype.hit_test=function(t){return this.glyph.hit_test(t)},e}(a),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.default_view=s,e.prototype.type="GlyphRenderer",e.prototype.selection_defaults={},e.prototype.decimated_defaults={fill_alpha:.3,line_alpha:.3,fill_color:"grey",line_color:"grey"},e.prototype.nonselection_defaults={fill_alpha:.2,line_alpha:.2},e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{x_range_name:"default",y_range_name:"default",data_source:null})},e.prototype.display_defaults=function(){return u.extend({},e.__super__.display_defaults.call(this),{level:"glyph"})},e}(o),e.exports={Model:r,View:s}},{"../../common/has_parent":114,"../../common/logging":119,"../../common/plot_widget":125,"../../range/factor_range":145,"../../source/remote_data_source":205,underscore:92}],160:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("./glyph"),o=t("../../mapper/linear_color_mapper"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._set_data=function(){var t,e,i,n,r,s,o,l,u,h,c;for((null==this.image_data||this.image_data.length!==this.image.length)&amp;&amp;(this.image_data=new Array(this.image.length)),(null==this.width||this.width.length!==this.image.length)&amp;&amp;(this.width=new Array(this.image.length)),(null==this.height||this.height.length!==this.image.length)&amp;&amp;(this.height=new Array(this.image.length)),c=[],s=u=0,h=this.image.length;h&gt;=0?h&gt;u:u&gt;h;s=h&gt;=0?++u:--u)null!=this.rows?(this.height[s]=this.rows[s],this.width[s]=this.cols[s]):(this.height[s]=this.image[s].length,this.width[s]=this.image[s][0].length),i=document.createElement("canvas"),i.width=this.width[s],i.height=this.height[s],r=i.getContext("2d"),o=r.getImageData(0,0,this.width[s],this.height[s]),n=this.mget("color_mapper"),l=null!=this.rows?this.image[s]:a.flatten(this.image[s]),t=n.v_map_screen(l),e=new Uint8ClampedArray(t),o.data.set(e),r.putImageData(o,0,0),this.image_data[s]=i,this.max_dw=0,"data"===this.dw.units&amp;&amp;(this.max_dw=a.max(this.dw)),this.max_dh=0,"data"===this.dh.units&amp;&amp;(this.max_dh=a.max(this.dh)),c.push(this._xy_index());return c},e.prototype._map_data=function(){return this.sw=this.sdist(this.renderer.xmapper,this.x,this.dw,"edge",this.mget("dilate")),this.sh=this.sdist(this.renderer.ymapper,this.y,this.dh,"edge",this.mget("dilate"))},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;for(r=i.image_data,h=i.sx,c=i.sy,u=i.sw,l=i.sh,a=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),s=0,o=e.length;o&gt;s;s++)n=e[s],null!=r[n]&amp;&amp;(isNaN(h[n]+c[n]+u[n]+l[n])||(p=c[n],t.translate(0,p),t.scale(1,-1),t.translate(0,-p),t.drawImage(r[n],0|h[n],0|c[n],u[n],l[n]),t.translate(0,p),t.scale(1,-1),t.translate(0,-p)));return t.setImageSmoothingEnabled(a)},e.prototype.bounds=function(){var t;return t=this.index.data.bbox,[[t[0],t[2]+this.max_dw],[t[1],t[3]+this.max_dh]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Image",e.prototype.visuals=[],e.prototype.distances=["dw","dh"],e.prototype.fields=["image:array","?rows","?cols","palette:string"],e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{dilate:!1})},e}(n.Model),e.exports={Model:r,View:s}},{"../../mapper/linear_color_mapper":140,"./glyph":158,underscore:92}],161:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._set_data=function(t,e){var i,n,r,s,a,l,u,h,c,p,d,f,g,m;for((null==this.image_data||this.image_data.length!==this.image.length)&amp;&amp;(this.image_data=new Array(this.image.length)),(null==this.width||this.width.length!==this.image.length)&amp;&amp;(this.width=new Array(this.image.length)),(null==this.height||this.height.length!==this.image.length)&amp;&amp;(this.height=new Array(this.image.length)),m=[],u=p=0,f=this.image.length;f&gt;=0?f&gt;p:p&gt;f;u=f&gt;=0?++p:--p)if(null==e||u===e){if(null!=this.rows?(this.height[u]=this.rows[u],this.width[u]=this.cols[u]):(this.height[u]=this.image[u].length,this.width[u]=this.image[u][0].length),r=document.createElement("canvas"),r.width=this.width[u],r.height=this.height[u],a=r.getContext("2d"),h=a.getImageData(0,0,this.width[u],this.height[u]),null!=this.rows)h.data.set(new Uint8ClampedArray(this.image[u]));else{for(l=o.flatten(this.image[u]),i=new ArrayBuffer(4*l.length),s=new Uint32Array(i),c=d=0,g=l.length;g&gt;=0?g&gt;d:d&gt;g;c=g&gt;=0?++d:--d)s[c]=l[c];n=new Uint8ClampedArray(i),h.data.set(n)}a.putImageData(h,0,0),this.image_data[u]=r,this.max_dw=0,"data"===this.dw.units&amp;&amp;(this.max_dw=o.max(this.dw)),this.max_dh=0,"data"===this.dh.units?m.push(this.max_dh=o.max(this.dh)):m.push(void 0)}return m},e.prototype._map_data=function(){return this.sw=this.sdist(this.renderer.xmapper,this.x,this.dw,"edge",this.mget("dilate")),this.sh=this.sdist(this.renderer.ymapper,this.y,this.dh,"edge",this.mget("dilate"))},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;for(r=i.image_data,h=i.sx,c=i.sy,u=i.sw,l=i.sh,a=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),s=0,o=e.length;o&gt;s;s++)n=e[s],isNaN(h[n]+c[n]+u[n]+l[n])||(p=c[n],t.translate(0,p),t.scale(1,-1),t.translate(0,-p),t.drawImage(r[n],0|h[n],0|c[n],u[n],l[n]),t.translate(0,p),t.scale(1,-1),t.translate(0,-p));return t.setImageSmoothingEnabled(a)},e.prototype.bounds=function(){var t;return t=this.index.data.bbox,[[t[0],t[2]+this.max_dw],[t[1],t[3]+this.max_dh]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="ImageRGBA",e.prototype.visuals=[],e.prototype.distances=["dw","dh"],e.prototype.fields=["image:array","?rows","?cols"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{dilate:!1})},e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,underscore:92}],162:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._set_data=function(){var t;return this.image=function(){var e,i,n,r;for(n=this.url,r=[],e=0,i=n.length;i&gt;e;e++)t=n[e],r.push(null);return r}.call(this),this.need_load=function(){var e,i,n,r;for(n=this.url,r=[],e=0,i=n.length;i&gt;e;e++)t=n[e],r.push(!0);return r}.call(this),this.loaded=function(){var e,i,n,r;for(n=this.url,r=[],e=0,i=n.length;i&gt;e;e++)t=n[e],r.push(!1);return r}.call(this),this._xy_index()},e.prototype._map_data=function(){return this.sw=this.sdist(this.renderer.xmapper,this.x,this.w,"edge",this.mget("dilate")),this.sh=this.sdist(this.renderer.ymapper,this.y,this.h,"edge",this.mget("dilate"))},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g;for(g=i.url,s=i.image,u=i.need_load,d=i.sx,f=i.sy,p=i.sw,c=i.sh,n=i.angle,h=[],a=0,l=e.length;l&gt;a;a++)r=e[a],isNaN(d[r]+f[r]+n[r])||(u[r]?(o=new Image,o.onload=function(t){return function(e,i){return function(){return t.loaded[i]=!0,s[i]=e,t.renderer.request_render()}}}(this)(o,r),o.src=g[r],h.push(u[r]=!1)):this.loaded[r]?h.push(this._render_image(t,r,s[r],d,f,p,c,n)):h.push(void 0));return h},e.prototype._final_sx_sy=function(t,e,i,n,r){switch(t){case"top_left":return[e,i];case"top_center":return[e-n/2,i];case"top_right":return[e-n,i];case"right_center":return[e-n,i-r/2];case"bottom_right":return[e-n,i-r];case"bottom_center":return[e-n/2,i-r];case"bottom_left":return[e,i-r];case"left_center":return[e,i-r/2];case"center":return[e-n/2,i-r/2]}},e.prototype._render_image=function(t,e,i,n,r,s,o,a){var l,u;return isNaN(s[e])&amp;&amp;(s[e]=i.width),isNaN(o[e])&amp;&amp;(o[e]=i.height),l=this.mget("anchor")||"top_left",u=this._final_sx_sy(l,n[e],r[e],s[e],o[e]),n=u[0],r=u[1],t.save(),t.globalAlpha=this.mget("global_alpha"),a[e]?(t.translate(n,r),t.rotate(a[e]),t.drawImage(i,0,0,s[e],o[e]),t.rotate(-a[e]),t.translate(-n,-r)):t.drawImage(i,n,r,s[e],o[e]),t.restore()},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="ImageURL",e.prototype.visuals=[],e.prototype.distances=["w","h"],e.prototype.angles=["angle"],e.prototype.fields=["url:string"],e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{angle:0,global_alpha:1})},e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{})},e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,underscore:92}],163:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),a=t("../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._render=function(t,e,i){var n,r,s,o,a,l;for(a=i.sx,l=i.sy,n=!1,this.visuals.line.set_value(t),s=0,o=e.length;o&gt;s;s++)r=e[s],isFinite(a[r]+l[r])||!n?n?t.lineTo(a[r],l[r]):(t.beginPath(),t.moveTo(a[r],l[r]),n=!0):(t.stroke(),t.beginPath(),n=!1);return n?t.stroke():void 0},e.prototype._hit_point=function(t){var e,i,n,r,s,o,l,u,h,c,p,d,f,g,m,_;for(l=[t.vx,t.vy],f=l[0],g=l[1],m=this.renderer.xmapper.map_from_target(f),_=this.renderer.ymapper.map_from_target(g),c=a.create_hit_test_result(),o={x:m,y:_},p=100,d=1,i=n=0,u=this.x.length-1;u&gt;=0?u&gt;n:n&gt;u;i=u&gt;=0?++n:--n)h=[{x:this.x[i],y:this.y[i]},{x:this.x[i+1],y:this.y[i+1]}],r=h[0],s=h[1],e=a.dist_to_segment(o,r,s),d&gt;e&amp;&amp;p&gt;e&amp;&amp;(p=e,c["0d"].flag=!0,c["0d"].indices=[i]);return c},e.prototype._hit_span=function(t){var e,i,n,r,s,o,l,u,h;for(n=[t.vx,t.vy],u=n[0],h=n[1],s=a.create_hit_test_result(),"v"===t.direction?(o=this.renderer.ymapper.map_from_target(h),l=this.y):(o=this.renderer.xmapper.map_from_target(u),l=this.x),e=i=0,r=l.length-1;r&gt;=0?r&gt;i:i&gt;r;e=r&gt;=0?++i:--i)l[e]&lt;=o&amp;&amp;o&lt;=l[e+1]&amp;&amp;(s["0d"].flag=!0,s["0d"].indices.push(e));return s},e.prototype.get_interpolation_hit=function(t,e){var i,n,r,s,o,l,u,h,c,p,d,f,g,m,_,v,y,b,w;return i=[e.vx,e.vy],p=i[0],d=i[1],n=[this.x[t],this.y[t],this.x[t+1],this.y[t+1]],m=n[0],b=n[1],_=n[2],w=n[3],"point"===e.type?(r=this.renderer.ymapper.v_map_from_target([d-1,d+1]),v=r[0],y=r[1],s=this.renderer.xmapper.v_map_from_target([p-1,p+1]),f=s[0],g=s[1]):"v"===e.direction?(o=this.renderer.ymapper.v_map_from_target([d,d]),v=o[0],y=o[1],l=[m,_],f=l[0],g=l[1]):(u=this.renderer.xmapper.v_map_from_target([p,p]),f=u[0],g=u[1],h=[b,w],v=h[0],y=h[1]),c=a.check_2_segments_intersect(f,v,g,y,m,b,_,w),[c.x,c.y]},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Line",e.prototype.visuals=["line"],e}(n.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"./glyph":158,underscore:92}],164:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;for(c=i.sx,p=i.sy,h=i.size,n=i.angle,u=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(c[r]+p[r]+h[r]+n[r])||(a=h[r]/2,l=.65*a,t.beginPath(),t.translate(c[r],p[r]),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),t.moveTo(-l,l),t.lineTo(l,-l),t.moveTo(-l,-l),t.lineTo(l,l),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),t.stroke()),u.push(t.translate(-c[r],-p[r])));return u},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="Asterisk",e.prototype.props=["line"],e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],165:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),t.arc(0,0,a,0,2*Math.PI,!1),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),n[r]&amp;&amp;t.rotate(-n[r]),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="CircleCross",e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],166:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),t.arc(0,0,a,0,2*Math.PI,!1),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(-a,a),t.lineTo(a,-a),t.moveTo(-a,-a),t.lineTo(a,a),n[r]&amp;&amp;t.rotate(-n[r]),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="CircleX",e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],167:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),n[r]&amp;&amp;t.rotate(n[r]),t.stroke(),n[r]&amp;&amp;t.rotate(-n[r])),l.push(t.translate(-h[r],-c[r])));return l},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="Cross",e.prototype.props=["line"],e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],168:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(a/1.5,0),t.lineTo(0,-a),t.lineTo(-a/1.5,0),n[r]&amp;&amp;t.rotate(-n[r]),t.translate(-h[r],-c[r]),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,r),l.push(t.stroke())):l.push(void 0));return l},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="Diamond",e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],169:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(a/1.5,0),t.lineTo(0,-a),t.lineTo(-a/1.5,0),n[r]&amp;&amp;t.rotate(-n[r]),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a/1.5,0),t.lineTo(a/1.5,0),n[r]&amp;&amp;t.rotate(-n[r]),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="DiamondCross",e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],170:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("./marker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d;for(p=i.sx,d=i.sy,c=i.size,r=i.angle,h=[],a=0,l=e.length;l&gt;a;a++)o=e[a],isNaN(p[o]+d[o]+c[o]+r[o])||(n=c[o]*Math.sqrt(3)/6,u=c[o]/2,s=c[o]*Math.sqrt(3)/2,t.beginPath(),t.translate(p[o],d[o]),r[o]&amp;&amp;t.rotate(r[o]),t.moveTo(-u,-n),t.lineTo(u,-n),t.lineTo(0,-n+s),r[o]&amp;&amp;t.rotate(-r[o]),t.translate(-p[o],-d[o]),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,o),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,o),h.push(t.stroke())):h.push(void 0));return h},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=r,e.prototype.type="InvertedTriangle",e}(s.Model),e.exports={Model:n,View:r}},{"./marker":171,underscore:92}],171:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("../glyph"),a=t("../../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.draw_legend=function(t,e,i,n,r){var s,o,a,l,u,h,c,p;return u=null!=(l=this.get_reference_point())?l:0,a=[u],c={},c[u]=(e+i)/2,p={},p[u]=(n+r)/2,h={},h[u]=.4*Math.min(Math.abs(i-e),Math.abs(r-n)),s={},s[u]=0,o={sx:c,sy:p,size:h,angle:s},this._render(t,a,o)},e.prototype._index_data=function(){return this._xy_index()},e.prototype._mask_data=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g;return e=this.renderer.plot_view.frame.get("h_range"),a=e.get("start")-this.max_size,l=e.get("end")+this.max_size,i=this.renderer.xmapper.v_map_from_target([a,l],!0),p=i[0],d=i[1],n=[Math.min(p,d),Math.max(p,d)],p=n[0],d=n[1],o=this.renderer.plot_view.frame.get("v_range"),u=o.get("start")-this.max_size,h=o.get("end")+this.max_size,r=this.renderer.ymapper.v_map_from_target([u,h],!0),f=r[0],g=r[1],s=[Math.min(f,g),Math.max(f,g)],f=s[0],g=s[1],function(){var t,e,i,n;for(i=this.index.search([p,f,d,g]),n=[],t=0,e=i.length;e&gt;t;t++)c=i[t],n.push(c[4].i);return n}.call(this)},e.prototype._hit_point=function(t){var e,i,n,r,s,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D;for(u=[t.vx,t.vy],m=u[0],y=u[1],f=this.renderer.plot_view.canvas.vx_to_sx(m),g=this.renderer.plot_view.canvas.vy_to_sy(y),_=m-this.max_size,v=m+this.max_size,h=this.renderer.xmapper.v_map_from_target([_,v],!0),k=h[0],M=h[1],b=y-this.max_size,w=y+this.max_size,c=this.renderer.ymapper.v_map_from_target([b,w],!0),C=c[0],D=c[1],e=function(){var t,e,i,n;for(i=this.index.search([k,C,M,D]),n=[],t=0,e=i.length;e&gt;t;t++)x=i[t],n.push(x[4].i);return n}.call(this),n=[],s=0,l=e.length;l&gt;s;s++)r=e[s],d=this.size[r]/2,i=Math.abs(this.sx[r]-f)+Math.abs(this.sy[r]-g),Math.abs(this.sx[r]-f)&lt;=d&amp;&amp;Math.abs(this.sy[r]-g)&lt;=d&amp;&amp;n.push([r,i]);return p=a.create_hit_test_result(),p["1d"].indices=o.chain(n).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),p},e.prototype._hit_rect=function(t){var e,i,n,r,s,o,l,u;return e=this.renderer.xmapper.v_map_from_target([t.vx0,t.vx1],!0),s=e[0],o=e[1],i=this.renderer.ymapper.v_map_from_target([t.vy0,t.vy1],!0),l=i[0],u=i[1],n=a.create_hit_test_result(),n["1d"].indices=function(){var t,e,i,n;for(i=this.index.search([s,l,o,u]),n=[],t=0,e=i.length;e&gt;t;t++)r=i[t],n.push(r[4].i);return n}.call(this),n},e.prototype._hit_poly=function(t){var e,i,n,r,s,o,l,u,h,c,p,d,f;for(o=[t.vx,t.vy],d=o[0],f=o[1],c=this.renderer.plot_view.canvas.v_vx_to_sx(d),p=this.renderer.plot_view.canvas.v_vy_to_sy(f),e=function(){h=[];for(var t=0,e=this.sx.length;e&gt;=0?e&gt;t:t&gt;e;e&gt;=0?t++:t--)h.push(t);return h}.apply(this),i=[],n=s=0,l=e.length;l&gt;=0?l&gt;s:s&gt;l;n=l&gt;=0?++s:--s)r=e[n],a.point_in_poly(this.sx[n],this.sy[n],c,p)&amp;&amp;i.push(r);return u=a.create_hit_test_result(),u["1d"].indices=i,u},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.distances=["size"],e.prototype.angles=["angle"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{size:4,angle:0})},e}(n.Model),e.exports={Model:r,View:s}},{"../../../common/hittest":116,"../glyph":158,underscore:92}],172:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("./marker"),a=t("../bokehgl"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._init_gl=function(t){return this.glglyph=new a.SquareGLGlyph(t,this)},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h;for(u=i.sx,h=i.sy,l=i.size,n=i.angle,a=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(u[r]+h[r]+l[r]+n[r])||(t.beginPath(),t.translate(u[r],h[r]),n[r]&amp;&amp;t.rotate(n[r]),t.rect(-l[r]/2,-l[r]/2,l[r],l[r]),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),t.stroke()),a.push(t.translate(-u[r],-h[r])));return a},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Square",e}(n.Model),e.exports={Model:r,View:s}},{"../bokehgl":155,"./marker":171,underscore:92}],173:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./marker"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.rect(-u[r]/2,-u[r]/2,u[r],u[r]),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),a=u[r]/2,n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(0,a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(a,0),n[r]&amp;&amp;t.rotate(-n[r]),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="SquareCross",e}(n.Model),e.exports={Model:r,View:s}},{"./marker":171,underscore:92}],174:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./marker"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.rect(-u[r]/2,-u[r]/2,u[r],u[r]),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,r),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),t.stroke(),a=u[r]/2,n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(-a,a),t.lineTo(a,-a),t.moveTo(-a,-a),t.lineTo(a,a),n[r]&amp;&amp;t.rotate(-n[r]),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="SquareX",e}(n.Model),e.exports={Model:r,View:s}},{"./marker":171,underscore:92}],175:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./marker"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d;for(p=i.sx,d=i.sy,c=i.size,r=i.angle,h=[],a=0,l=e.length;l&gt;a;a++)o=e[a],isNaN(p[o]+d[o]+c[o]+r[o])||(n=c[o]*Math.sqrt(3)/6,u=c[o]/2,s=c[o]*Math.sqrt(3)/2,t.beginPath(),t.translate(p[o],d[o]),r[o]&amp;&amp;t.rotate(r[o]),t.moveTo(-u,n),t.lineTo(u,n),t.lineTo(0,n-s),r[o]&amp;&amp;t.rotate(-r[o]),t.translate(-p[o],-d[o]),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,o),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,o),
        h.push(t.stroke())):h.push(void 0));return h},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="Triangle",e}(n.Model),e.exports={Model:r,View:s}},{"./marker":171,underscore:92}],176:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./marker"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c;for(h=i.sx,c=i.sy,u=i.size,n=i.angle,l=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(h[r]+c[r]+u[r]+n[r])||(a=u[r]/2,t.beginPath(),t.translate(h[r],c[r]),n[r]&amp;&amp;t.rotate(n[r]),t.moveTo(-a,a),t.lineTo(a,-a),t.moveTo(-a,-a),t.lineTo(a,a),n[r]&amp;&amp;t.rotate(-n[r]),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,r),t.stroke()),l.push(t.translate(-h[r],-c[r])));return l},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="X",e.prototype.props=["line"],e}(n.Model),e.exports={Model:r,View:s}},{"./marker":171,underscore:92}],177:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),a=t("rbush"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){var t,e,i,n,r,s,l,u,h;for(e=a(),n=[],t=i=0,r=this.xs.length;r&gt;=0?r&gt;i:i&gt;r;t=r&gt;=0?++i:--i)l=function(){var e,i,n,r;for(n=this.xs[t],r=[],e=0,i=n.length;i&gt;e;e++)s=n[e],o.isNaN(s)||r.push(s);return r}.call(this),h=function(){var e,i,n,r;for(n=this.ys[t],r=[],e=0,i=n.length;i&gt;e;e++)u=n[e],o.isNaN(u)||r.push(u);return r}.call(this),0!==l.length&amp;&amp;n.push([o.min(l),o.min(h),o.max(l),o.max(h),{i:t}]);return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f;for(p=i.sxs,f=i.sys,h=[],s=0,a=e.length;a&gt;s;s++){for(n=e[s],l=[p[n],f[n]],c=l[0],d=l[1],this.visuals.line.set_vectorize(t,n),r=o=0,u=c.length;u&gt;=0?u&gt;o:o&gt;u;r=u&gt;=0?++o:--o)0!==r?isNaN(c[r])||isNaN(d[r])?(t.stroke(),t.beginPath()):t.lineTo(c[r],d[r]):(t.beginPath(),t.moveTo(c[r],d[r]));h.push(t.stroke())}return h},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="MultiLine",e.prototype.visuals=["line"],e.prototype.coords=[["xs","ys"]],e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,rbush:89,underscore:92}],178:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._set_data=function(){return this.max_w2=0,"data"===this.distances.width.units&amp;&amp;(this.max_w2=this.max_width/2),this.max_h2=0,"data"===this.distances.height.units?this.max_h2=this.max_height/2:void 0},e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return"data"===this.distances.width.units?this.sw=this.sdist(this.renderer.xmapper,this.x,this.width,"center"):this.sw=this.width,"data"===this.distances.height.units?this.sh=this.sdist(this.renderer.ymapper,this.y,this.height,"center"):this.sh=this.height},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h;for(u=i.sx,h=i.sy,l=i.sw,a=i.sh,o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(u[n]+h[n]+l[n]+a[n]+this.angle[n])||(t.translate(u[n],h[n]),t.rotate(this.angle[n]),t.beginPath(),t.moveTo(0,-a[n]/2),t.bezierCurveTo(l[n]/2,-a[n]/2,l[n]/2,a[n]/2,0,a[n]/2),t.bezierCurveTo(-l[n]/2,a[n]/2,-l[n]/2,-a[n]/2,0,-a[n]/2),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,n),t.fill()),this.visuals.line.do_stroke&amp;&amp;(this.visuals.line.set_vectorize(t,n),t.stroke()),t.rotate(-this.angle[n]),o.push(t.translate(-u[n],-h[n])));return o},e.prototype.draw_legend=function(t,e,i,n,r){var s,o,a,l,u,h,c,p,d;return l=null!=(a=this.get_reference_point())?a:0,o=[l],p={},p[l]=(e+i)/2,d={},d[l]=(n+r)/2,u=this.sw[l]/this.sh[l],s=.8*Math.min(Math.abs(i-e),Math.abs(r-n)),c={},h={},u&gt;1?(c[l]=s,h[l]=s/u):(c[l]=s*u,h[l]=s),this._render(t,o,p,d,c,h)},e.prototype._bounds=function(t){return[[t[0][0]-this.max_w2,t[0][1]+this.max_w2],[t[1][0]-this.max_h2,t[1][1]+this.max_h2]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="Oval",e.prototype.distances=["width","height"],e.prototype.angles=["angle"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{angle:0})},e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,underscore:92}],179:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u;if(l=i.sx,u=i.sy,this.visuals.fill.do_fill){for(this.visuals.fill.set_value(t),r=0,o=e.length;o&gt;r;r++)n=e[r],0!==n?isNaN(l[n]+u[n])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(l[n],u[n]):(t.beginPath(),t.moveTo(l[n],u[n]));t.closePath(),t.fill()}if(this.visuals.line.do_stroke){for(this.visuals.line.set_value(t),s=0,a=e.length;a&gt;s;s++)n=e[s],0!==n?isNaN(l[n]+u[n])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(l[n],u[n]):(t.beginPath(),t.moveTo(l[n],u[n]));return t.closePath(),t.stroke()}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="Patch",e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,underscore:92}],180:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),l=t("rbush"),a=t("../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._build_discontinuous_object=function(t){var e,i,n,r,s,a,l,u,h;for(i={},n=r=0,h=t.length;h&gt;=0?h&gt;r:r&gt;h;n=h&gt;=0?++r:--r)for(i[n]=[],l=o.toArray(t[n]);l.length&gt;0;)s=o.findLastIndex(l,function(t){return o.isNaN(t)}),s&gt;=0?u=l.splice(s):(u=l,l=[]),e=function(){var t,e,i;for(i=[],t=0,e=u.length;e&gt;t;t++)a=u[t],o.isNaN(a)||i.push(a);return i}(),i[n].push(e);return i},e.prototype._index_data=function(){var t,e,i,n,r,s,a,u,h,c,p,d;for(e=l(),s=[],c=this._build_discontinuous_object(this.xs),d=this._build_discontinuous_object(this.ys),t=n=0,a=this.xs.length;a&gt;=0?a&gt;n:n&gt;a;t=a&gt;=0?++n:--n)for(i=r=0,u=c[t].length;u&gt;=0?u&gt;r:r&gt;u;i=u&gt;=0?++r:--r)h=c[t][i],p=d[t][i],0!==h.length&amp;&amp;s.push([o.min(h),o.min(p),o.max(h),o.max(p),{i:t}]);return e.load(s),e},e.prototype._mask_data=function(t){var e,i,n,r,s,o,a,l,u;return o=this.renderer.plot_view.x_range,e=[o.get("min"),o.get("max")],r=e[0],s=e[1],u=this.renderer.plot_view.y_range,i=[u.get("min"),u.get("max")],a=i[0],l=i[1],function(){var t,e,i,o;for(i=this.index.search([r,a,s,l]),o=[],t=0,e=i.length;e&gt;t;t++)n=i[t],o.push(n[4].i);return o}.call(this)},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m;for(f=i.sxs,m=i.sys,this.sxss=this._build_discontinuous_object(f),this.syss=this._build_discontinuous_object(m),p=[],s=0,a=e.length;a&gt;s;s++){if(n=e[s],u=[f[n],m[n]],d=u[0],g=u[1],this.visuals.fill.do_fill){for(this.visuals.fill.set_vectorize(t,n),r=o=0,h=d.length;h&gt;=0?h&gt;o:o&gt;h;r=h&gt;=0?++o:--o)0!==r?isNaN(d[r]+g[r])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(d[r],g[r]):(t.beginPath(),t.moveTo(d[r],g[r]));t.closePath(),t.fill()}if(this.visuals.line.do_stroke){for(this.visuals.line.set_vectorize(t,n),r=l=0,c=d.length;c&gt;=0?c&gt;l:l&gt;c;r=c&gt;=0?++l:--l)0!==r?isNaN(d[r]+g[r])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(d[r],g[r]):(t.beginPath(),t.moveTo(d[r],g[r]));t.closePath(),p.push(t.stroke())}else p.push(void 0)}return p},e.prototype._hit_point=function(t){var e,i,n,r,s,o,l,u,h,c,p,d,f,g,m,_,v,y,b;for(u=[t.vx,t.vy],_=u[0],v=u[1],d=this.renderer.plot_view.canvas.vx_to_sx(_),g=this.renderer.plot_view.canvas.vy_to_sy(v),y=this.renderer.xmapper.map_from_target(_,!0),b=this.renderer.ymapper.map_from_target(v,!0),e=function(){var t,e,i,n;for(i=this.index.search([y,b,y,b]),n=[],t=0,e=i.length;e&gt;t;t++)y=i[t],n.push(y[4].i);return n}.call(this),i=[],n=o=0,h=e.length;h&gt;=0?h&gt;o:o&gt;h;n=h&gt;=0?++o:--o)for(r=e[n],f=this.sxss[r],m=this.syss[r],s=l=0,c=f.length;c&gt;=0?c&gt;l:l&gt;c;s=c&gt;=0?++l:--l)a.point_in_poly(d,g,f[s],m[s])&amp;&amp;i.push(r);return p=a.create_hit_test_result(),p["1d"].indices=i,p},e.prototype._get_snap_coord=function(t){var e,i,n,r;for(r=0,e=0,i=t.length;i&gt;e;e++)n=t[e],r+=n;return r/t.length},e.prototype.scx=function(t,e,i){var n,r,s,o,l;if(1===this.sxss[t].length)return this._get_snap_coord(this.sxs[t]);for(o=this.sxss[t],l=this.syss[t],n=r=0,s=o.length;s&gt;=0?s&gt;r:r&gt;s;n=s&gt;=0?++r:--r)if(a.point_in_poly(e,i,o[n],l[n]))return this._get_snap_coord(o[n]);return null},e.prototype.scy=function(t,e,i){var n,r,s,o,l;if(1===this.syss[t].length)return this._get_snap_coord(this.sys[t]);for(o=this.sxss[t],l=this.syss[t],n=r=0,s=o.length;s&gt;=0?s&gt;r:r&gt;s;n=s&gt;=0?++r:--r)if(a.point_in_poly(e,i,o[n],l[n]))return this._get_snap_coord(l[n])},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type="Patches",e.prototype.coords=[["xs","ys"]],e}(n.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"./glyph":158,rbush:89,underscore:92}],181:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),l=t("rbush"),n=t("./glyph"),a=t("../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){var t,e,i,n,r;for(e=l(),n=[],t=i=0,r=this.left.length;r&gt;=0?r&gt;i:i&gt;r;t=r&gt;=0?++i:--i)isNaN(this.left[t]+this.right[t]+this.top[t]+this.bottom[t])||n.push([this.left[t],this.bottom[t],this.right[t],this.top[t],{i:t}]);return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h;for(l=i.sleft,u=i.sright,h=i.stop,a=i.sbottom,o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(l[n]+h[n]+u[n]+a[n])||(this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,n),t.fillRect(l[n],h[n],u[n]-l[n],a[n]-h[n])),this.visuals.line.do_stroke?(t.beginPath(),t.rect(l[n],h[n],u[n]-l[n],a[n]-h[n]),this.visuals.line.set_vectorize(t,n),o.push(t.stroke())):o.push(void 0));return o},e.prototype._hit_point=function(t){var e,i,n,r,s,o,l;return i=[t.vx,t.vy],r=i[0],s=i[1],o=this.renderer.xmapper.map_from_target(r,!0),l=this.renderer.ymapper.map_from_target(s,!0),e=function(){var t,e,i,n;for(i=this.index.search([o,l,o,l]),n=[],t=0,e=i.length;e&gt;t;t++)o=i[t],n.push(o[4].i);return n}.call(this),n=a.create_hit_test_result(),n["1d"].indices=e,n},e.prototype.scx=function(t){return(this.sleft[t]+this.sright[t])/2},e.prototype.scy=function(t){return(this.stop[t]+this.sbottom[t])/2},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type="Quad",e.prototype.coords=[["right","bottom"],["left","top"]],e}(n.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"./glyph":158,rbush:89,underscore:92}],182:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),l=t("rbush"),n=t("./glyph"),a=function(t,e,i){var n,r;return e===(t+i)/2?[t,i]:(r=(t-e)/(t-2*e+i),n=t*Math.pow(1-r,2)+2*e*(1-r)*r+i*Math.pow(r,2),[Math.min(t,i,n),Math.max(t,i,n)])},s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){var t,e,i,n,r,s,o,u,h,c,p;for(e=l(),n=[],t=i=0,r=this.x0.length;r&gt;=0?r&gt;i:i&gt;r;t=r&gt;=0?++i:--i)isNaN(this.x0[t]+this.x1[t]+this.y0[t]+this.y1[t]+this.cx[t]+this.cy[t])||(s=a(this.x0[t],this.cx[t],this.x1[t]),u=s[0],h=s[1],o=a(this.y0[t],this.cy[t],this.y1[t]),c=o[0],p=o[1],n.push([u,c,h,p,{i:t}]));return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;if(u=i.sx0,c=i.sy0,h=i.sx1,p=i.sy1,a=i.scx,l=i.scy,this.visuals.line.do_stroke){for(o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(u[n]+c[n]+h[n]+p[n]+a[n]+l[n])||(t.beginPath(),t.moveTo(u[n],c[n]),t.quadraticCurveTo(a[n],l[n],h[n],p[n]),this.visuals.line.set_vectorize(t,n),o.push(t.stroke()));return o}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type="Quadratic",e.prototype.visuals=["line"],e.prototype.coords=[["x0","y0"],["x1","y1"],["cx","cy"]],e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,rbush:89,underscore:92}],183:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return this.slength=this.sdist(this.renderer.xmapper,this.x,this.length)},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g;if(d=i.sx,f=i.sy,p=i.slength,n=i.angle,this.visuals.line.do_stroke){for(g=this.renderer.plot_view.frame.get("width"),r=this.renderer.plot_view.frame.get("height"),o=2*(g+r),s=a=0,h=p.length;h&gt;=0?h&gt;a:a&gt;h;s=h&gt;=0?++a:--a)0===p[s]&amp;&amp;(p[s]=o);for(c=[],l=0,u=e.length;u&gt;l;l++)s=e[l],isNaN(d[s]+f[s]+n[s]+p[s])||(t.translate(d[s],f[s]),t.rotate(n[s]),t.beginPath(),t.moveTo(0,0),t.lineTo(p[s],0),this.visuals.line.set_vectorize(t,s),t.stroke(),t.rotate(-n[s]),c.push(t.translate(-d[s],-f[s])));return c}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="Ray",e.prototype.visuals=["line"],e.prototype.distances=["length"],e.prototype.angles=["angle"],e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,underscore:92}],184:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),a=t("../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._set_data=function(){return this.max_w2=0,"data"===this.distances.width.units&amp;&amp;(this.max_w2=this.max_width/2),this.max_h2=0,"data"===this.distances.height.units?this.max_h2=this.max_height/2:void 0},e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return"data"===this.distances.width.units?this.sw=this.sdist(this.renderer.xmapper,this.x,this.width,"center",this.mget("dilate")):this.sw=this.width,"data"===this.distances.height.units?this.sh=this.sdist(this.renderer.ymapper,this.y,this.height,"center",this.mget("dilate")):this.sh=this.height},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;if(c=i.sx,p=i.sy,h=i.sw,u=i.sh,n=i.angle,this.visuals.fill.do_fill)for(s=0,a=e.length;a&gt;s;s++)r=e[s],isNaN(c[r]+p[r]+h[r]+u[r]+n[r])||(this.visuals.fill.set_vectorize(t,r),n[r]?(t.translate(c[r],p[r]),t.rotate(n[r]),t.fillRect(-h[r]/2,-u[r]/2,h[r],u[r]),t.rotate(-n[r]),t.translate(-c[r],-p[r])):t.fillRect(c[r]-h[r]/2,p[r]-u[r]/2,h[r],u[r]));if(this.visuals.line.do_stroke){for(t.beginPath(),o=0,l=e.length;l&gt;o;o++)r=e[o],isNaN(c[r]+p[r]+h[r]+u[r]+n[r])||0!==h[r]&amp;&amp;0!==u[r]&amp;&amp;(n[r]?(t.translate(c[r],p[r]),t.rotate(n[r]),t.rect(-h[r]/2,-u[r]/2,h[r],u[r]),t.rotate(-n[r]),t.translate(-c[r],-p[r])):t.rect(c[r]-h[r]/2,p[r]-u[r]/2,h[r],u[r]),this.visuals.line.set_vectorize(t,r),t.stroke(),t.beginPath());return t.stroke()}},e.prototype._hit_rect=function(t){var e,i,n,r,s,o,l,u;return e=this.renderer.xmapper.v_map_from_target([t.vx0,t.vx1],!0),s=e[0],o=e[1],i=this.renderer.ymapper.v_map_from_target([t.vy0,t.vy1],!0),l=i[0],u=i[1],n=a.create_hit_test_result(),n["1d"].indices=function(){var t,e,i,n;for(i=this.index.search([s,l,o,u]),n=[],t=0,e=i.length;e&gt;t;t++)r=i[t],n.push(r[4].i);return n}.call(this),n},e.prototype._hit_point=function(t){var e,i,n,r,s,o,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I;for(p=[t.vx,t.vy],b=p[0],k=p[1],T=this.renderer.xmapper.map_from_target(b,!0),P=this.renderer.ymapper.map_from_target(k,!0),"screen"===this.distances.width.units?(w=b-2*this.max_width,x=b+2*this.max_width,d=this.renderer.xmapper.v_map_from_target([w,x],!0),S=d[0],A=d[1]):(S=T-2*this.max_width,A=T+2*this.max_width),"screen"===this.distances.height.units?(M=k-2*this.max_height,C=k+2*this.max_height,f=this.renderer.ymapper.v_map_from_target([M,C],!0),E=f[0],I=f[1]):(E=P-2*this.max_height,I=P+2*this.max_height),r=[],g=function(){var t,e,i,n;for(i=this.index.search([S,E,A,I]),n=[],t=0,e=i.length;e&gt;t;t++)u=i[t],n.push(u[4].i);return n}.call(this),o=0,l=g.length;l&gt;o;o++)s=g[o],v=this.renderer.plot_view.canvas.vx_to_sx(b),y=this.renderer.plot_view.canvas.vy_to_sy(k),this.angle[s]&amp;&amp;(i=Math.sqrt(Math.pow(v-this.sx[s],2)+Math.pow(y-this.sy[s],2)),_=Math.sin(-this.angle[s]),e=Math.cos(-this.angle[s]),h=e*(v-this.sx[s])-_*(y-this.sy[s])+this.sx[s],c=_*(v-this.sx[s])+e*(y-this.sy[s])+this.sy[s],v=h,y=c),D=Math.abs(this.sx[s]-v)&lt;=this.sw[s]/2,n=Math.abs(this.sy[s]-y)&lt;=this.sh[s]/2,n&amp;&amp;D&amp;&amp;r.push(s);return m=a.create_hit_test_result(),m["1d"].indices=r,m},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e.prototype._bounds=function(t){return[[t[0][0]-this.max_w2,t[0][1]+this.max_w2],[t[1][0]-this.max_h2,t[1][1]+this.max_h2]]},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Rect",e.prototype.distances=["width","height"],e.prototype.angles=["angle"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{angle:0,dilate:!1})},e}(n.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"./glyph":158,underscore:92}],185:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),a=t("rbush"),n=t("./glyph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._index_data=function(){var t,e,i,n,r;for(e=a(),n=[],t=i=0,r=this.x0.length;r&gt;=0?r&gt;i:i&gt;r;t=r&gt;=0?++i:--i)isNaN(this.x0[t]+this.x1[t]+this.y0[t]+this.y1[t])||n.push([this.x0[t],this.y0[t],this.x1[t],this.y1[t],{i:t}]);return e.load(n),e},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h;if(a=i.sx0,u=i.sy0,l=i.sx1,h=i.sy1,this.visuals.line.do_stroke){for(o=[],r=0,s=e.length;s&gt;r;r++)n=e[r],isNaN(a[n]+u[n]+l[n]+h[n])||(t.beginPath(),t.moveTo(a[n],u[n]),t.lineTo(l[n],h[n]),this.visuals.line.set_vectorize(t,n),o.push(t.stroke()));return o}},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_line_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Segment",e.prototype.visuals=["line"],e.prototype.coords=[["x0","y0"],["x1","y1"]],e}(n.Model),e.exports={Model:r,View:s}},{"./glyph":158,rbush:89,underscore:92}],186:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("./glyph"),a=t("../../common/properties"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.text_props=new a.Text({obj:this.model,prefix:""})},e.prototype._index_data=function(){return this._xy_index()},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;for(l=i.sx,u=i.sy,c=i.x_offset,p=i.y_offset,n=i.angle,h=i.text,a=[],s=0,o=e.length;o&gt;s;s++)r=e[s],isNaN(l[r]+u[r]+c[r]+p[r]+n[r])||null==h[r]||(t.save(),t.translate(l[r]+c[r],u[r]+p[r]),t.rotate(n[r]),this.visuals.text.set_vectorize(t,r),t.fillText(h[r],0,0),a.push(t.restore()));return a},e.prototype.draw_legend=function(t,e,i,n,r){return t.save(),this.text_props.set_value(t),t.font=this.text_props.font_value(),t.font=t.font.replace(/\b[\d\.]+[\w]+\b/,"10pt"),t.textAlign="right",t.textBaseline="middle",t.fillText("text",i,(n+r)/2),t.restore()},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="Text",e.prototype.visuals=["text"],e.prototype.distances=["x_offset","y_offset"],e.prototype.angles=["angle"],e.prototype.fields=["text:string"],e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{angle:0,x_offset:0,y_offset:0})},e}(n.Model),e.exports={Model:r,View:s}},{"../../common/properties":126,"./glyph":158,underscore:92}],187:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),l=t("../../common/mathutils"),n=t("./glyph"),a=t("../../common/hittest"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._index_data=function(){return this._xy_index()},e.prototype._map_data=function(){return"data"===this.distances.radius.units?this.sradius=this.sdist(this.renderer.xmapper,this.x,this.radius):this.sradius=this.radius},e.prototype._render=function(t,e,i){var n,r,s,o,a,l,u,h,c,p;for(c=i.sx,p=i.sy,u=i.sradius,h=i.start_angle,r=i.end_angle,n=i.direction,l=[],o=0,a=e.length;a&gt;o;o++)s=e[o],isNaN(c[s]+p[s]+u[s]+h[s]+r[s]+n[s])||(t.beginPath(),t.arc(c[s],p[s],u[s],h[s],r[s],n[s]),t.lineTo(c[s],p[s]),t.closePath(),this.visuals.fill.do_fill&amp;&amp;(this.visuals.fill.set_vectorize(t,s),t.fill()),this.visuals.line.do_stroke?(this.visuals.line.set_vectorize(t,s),l.push(t.stroke())):l.push(void 0));return l},e.prototype._hit_point=function(t){var e,i,n,r,s,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F;for(g=[t.vx,t.vy],T=g[0],P=g[1],N=this.renderer.xmapper.map_from_target(T,!0),j=this.renderer.ymapper.map_from_target(P,!0),"data"===this.distances.radius.units?(R=N-this.max_radius,z=N+this.max_radius,O=j-this.max_radius,F=j+this.max_radius):(S=T-this.max_radius,A=T+this.max_radius,m=this.renderer.xmapper.v_map_from_target([S,A],!0),R=m[0],z=m[1],E=P-this.max_radius,I=P+this.max_radius,_=this.renderer.ymapper.v_map_from_target([E,I],!0),O=_[0],F=_[1]),i=[],v=function(){var t,e,i,n;for(i=this.index.search([R,O,z,F]),n=[],t=0,e=i.length;e&gt;t;t++)d=i[t],n.push(d[4].i);return n}.call(this),u=0,c=v.length;c&gt;u;u++)s=v[u],f=Math.pow(this.sradius[s],2),x=this.renderer.xmapper.map_to_target(N,!0),k=this.renderer.xmapper.map_to_target(this.x[s],!0),C=this.renderer.ymapper.map_to_target(j,!0),D=this.renderer.ymapper.map_to_target(this.y[s],!0),n=Math.pow(x-k,2)+Math.pow(C-D,2),f&gt;=n&amp;&amp;i.push([s,n]);for(r=[],h=0,p=i.length;p&gt;h;h++)y=i[h],s=y[0],n=y[1],w=this.renderer.plot_view.canvas.vx_to_sx(T),M=this.renderer.plot_view.canvas.vy_to_sy(P),e=Math.atan2(M-this.sy[s],w-this.sx[s]),l.angle_between(-e,-this.start_angle[s],-this.end_angle[s],this.direction[s])&amp;&amp;r.push([s,n]);return b=a.create_hit_test_result(),b["1d"].indices=o.chain(r).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value(),b},e.prototype.draw_legend=function(t,e,i,n,r){return this._generic_area_legend(t,e,i,n,r)},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=s,e.prototype.type="Wedge",e.prototype.distances=["radius"],e.prototype.angles=["start_angle","end_angle"],e.prototype.fields=["direction:direction"],e.prototype.display_defaults=function(){return o.extend({},e.__super__.display_defaults.call(this),{direction:"anticlock"})},e}(n.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"../../common/mathutils":120,"./glyph":158,underscore:92}],188:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C=function(t,e){function i(){this.constructor=t}for(var n in e)D.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},D={}.hasOwnProperty;f=t("underscore"),w=null!=i._bokehTest?i._bokehTest.kiwi:t("kiwi"),l=t("../../common/has_parent"),h=t("../../common/layout_box"),x=t("../../common/logging").logger,p=t("../../common/plot_widget"),M=t("../../common/properties"),k=Math.PI/2,n="alphabetic",c="middle",a="hanging",u="left",d="right",o="center",v={above:{parallel:0,normal:-k,horizontal:0,vertical:-k},below:{parallel:0,normal:k,horizontal:0,vertical:k},left:{parallel:-k,normal:0,horizontal:0,vertical:-k},right:{parallel:k,normal:0,horizontal:0,vertical:k}},b={above:{parallel:n,normal:c,horizontal:n,vertical:c},below:{parallel:a,normal:c,horizontal:a,vertical:c},left:{parallel:n,normal:c,horizontal:c,vertical:n},right:{parallel:n,normal:c,horizontal:c,vertical:n}},g={above:{parallel:o,normal:u,horizontal:o,vertical:u},below:{parallel:o,normal:u,horizontal:o,vertical:d},left:{parallel:o,normal:d,horizontal:d,vertical:o},right:{parallel:o,normal:u,horizontal:u,vertical:o}},m={above:d,below:u,left:d,right:u},_={above:u,below:d,left:d,right:u},y=function(t,e,i){var n,r;return f.isString(i)?(r=b[e][i],n=g[e][i]):0===i?(r=b[e][i],n=g[e][i]):0&gt;i?(r="middle",n=m[e]):i&gt;0&amp;&amp;(r="middle",n=_[e]),t.textBaseline=r,t.textAlign=n},s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return C(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.rule_props=new M.Line({obj:this.model,prefix:"axis_"}),this.major_tick_props=new M.Line({obj:this.model,prefix:"major_tick_"}),this.minor_tick_props=new M.Line({obj:this.model,prefix:"minor_tick_"}),this.major_label_props=new M.Text({obj:this.model,prefix:"major_label_"}),this.axis_label_props=new M.Text({obj:this.model,prefix:"axis_label_"}),this.x_range_name=this.mget("x_range_name"),this.y_range_name=this.mget("y_range_name")},e.prototype.render=function(){var t;if(this.mget("visible"))return t=this.plot_view.canvas_view.ctx,t.save(),this._draw_rule(t),this._draw_major_ticks(t),this._draw_minor_ticks(t),this._draw_major_labels(t),this._draw_axis_label(t),t.restore()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change",this.plot_view.request_render)},e.prototype._draw_rule=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m;if(this.rule_props.do_stroke){for(o=e=this.mget("rule_coords"),d=o[0],g=o[1],a=this.plot_view.map_to_screen(d,g,this.x_range_name,this.y_range_name),c=a[0],p=a[1],l=this.mget("normals"),r=l[0],s=l[1],u=this.mget("offsets"),f=u[0],m=u[1],this.rule_props.set_value(t),t.beginPath(),t.moveTo(Math.round(c[0]+r*f),Math.round(p[0]+s*m)),i=n=1,h=c.length;h&gt;=1?h&gt;n:n&gt;h;i=h&gt;=1?++n:--n)t.lineTo(Math.round(c[i]+r*f),Math.round(p[i]+s*m));return t.stroke()}},e.prototype._draw_major_ticks=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y;if(this.major_tick_props.do_stroke){for(e=this.mget("tick_coords"),o=e.major,m=o[0],v=o[1],a=this.plot_view.map_to_screen(m,v,this.x_range_name,this.y_range_name),p=a[0],d=a[1],l=this.mget("normals"),r=l[0],s=l[1],u=this.mget("offsets"),_=u[0],y=u[1],f=this.mget("major_tick_in"),g=this.mget("major_tick_out"),this.major_tick_props.set_value(t),c=[],i=n=0,h=p.length;h&gt;=0?h&gt;n:n&gt;h;i=h&gt;=0?++n:--n)t.beginPath(),t.moveTo(Math.round(p[i]+r*g+r*_),Math.round(d[i]+s*g+s*y)),t.lineTo(Math.round(p[i]-r*f+r*_),Math.round(d[i]-s*f+s*y)),c.push(t.stroke());return c}},e.prototype._draw_minor_ticks=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y;if(this.minor_tick_props.do_stroke){for(e=this.mget("tick_coords"),o=e.minor,m=o[0],v=o[1],a=this.plot_view.map_to_screen(m,v,this.x_range_name,this.y_range_name),p=a[0],d=a[1],l=this.mget("normals"),r=l[0],s=l[1],u=this.mget("offsets"),_=u[0],y=u[1],f=this.mget("minor_tick_in"),g=this.mget("minor_tick_out"),this.minor_tick_props.set_value(t),c=[],i=n=0,h=p.length;h&gt;=0?h&gt;n:n&gt;h;i=h&gt;=0?++n:--n)t.beginPath(),t.moveTo(Math.round(p[i]+r*g+r*_),Math.round(d[i]+s*g+s*y)),t.lineTo(Math.round(p[i]-r*f+r*_),Math.round(d[i]-s*f+s*y)),c.push(t.stroke());return c}},e.prototype._draw_major_labels=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,g,m,_,b,w,x,k,M,C,D;for(i=this.mget("tick_coords"),h=i.major,k=h[0],C=h[1],c=this.plot_view.map_to_screen(k,C,this.x_range_name,this.y_range_name),w=c[0],x=c[1],p=this.mget("normals"),a=p[0],l=p[1],d=this.mget("offsets"),M=d[0],D=d[1],n=this.mget("dimension"),_=this.mget("location"),u=this.mget("major_label_orientation"),e=f.isString(u)?v[_][u]:-u,b=this.model._tick_extent(this)+this.mget("major_label_standoff"),o=this.mget("formatter").format(i.major[n]),this.major_label_props.set_value(t),y(t,_,u),m=[],r=s=0,g=w.length;g&gt;=0?g&gt;s:s&gt;g;r=g&gt;=0?++s:--s)e?(t.translate(w[r]+a*b+a*M,x[r]+l*b+l*D),t.rotate(e),t.fillText(o[r],0,0),t.rotate(-e),m.push(t.translate(-w[r]-a*b+a*M,-x[r]-l*b+l*D))):m.push(t.fillText(o[r],Math.round(w[r]+a*b+a*M),Math.round(x[r]+l*b+l*D)));return m},e.prototype._draw_axis_label=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_;return i=this.mget("axis_label"),null!=i?(o=this.mget("rule_coords"),f=o[0],m=o[1],a=this.plot_view.map_to_screen(f,m,this.x_range_name,this.y_range_name),p=a[0],d=a[1],l=this.mget("normals"),n=l[0],r=l[1],u=this.mget("offsets"),g=u[0],_=u[1],h=this.mget("location"),s="parallel",e=v[h][s],c=this.model._tick_extent(this)+this.model._tick_label_extent(this)+this.mget("axis_label_standoff"),p=(p[0]+p[p.length-1])/2,d=(d[0]+d[d.length-1])/2,this.axis_label_props.set_value(t),y(t,h,s),e?(t.translate(p+n*c+n*g,d+r*c+r*_),t.rotate(e),t.fillText(i,0,0),t.rotate(-e),t.translate(-p-n*c+n*g,-d-r*c+r*_)):t.fillText(i,p+n*c+n*g,d+r*c+r*_)):void 0},e}(p),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return C(e,t),e.prototype.default_view=s,e.prototype.type="Axis",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("computed_bounds",this._computed_bounds,!1),this.add_dependencies("computed_bounds",this,["bounds"]),this.add_dependencies("computed_bounds",this.get("plot"),["x_range","y_range"]),
        this.register_property("rule_coords",this._rule_coords,!1),this.add_dependencies("rule_coords",this,["computed_bounds","side"]),this.register_property("tick_coords",this._tick_coords,!1),this.add_dependencies("tick_coords",this,["computed_bounds","location"]),this.register_property("ranges",this._ranges,!0),this.register_property("normals",function(){return this._normals},!0),this.register_property("dimension",function(){return this._dim},!0),this.register_property("offsets",this._offsets,!0)},e.prototype.initialize_layout=function(t){var e,i;return e=new h.Model({solver:t}),this.panel=e,this._top=e._top,this._bottom=e._bottom,this._left=e._left,this._right=e._right,this._width=e._width,this._height=e._height,i=this.get("location"),"above"===i?(this._dim=0,this._normals=[0,-1],this._size=e._height,this._anchor=e._bottom):"below"===i?(this._dim=0,this._normals=[0,1],this._size=e._height,this._anchor=e._top):"left"===i?(this._dim=1,this._normals=[-1,0],this._size=e._width,this._anchor=e._right):"right"===i?(this._dim=1,this._normals=[1,0],this._size=e._width,this._anchor=e._left):x.error("unrecognized side: '"+i+"'")},e.prototype.update_layout=function(t,e){var i;return i=this.get("visible")?this._tick_extent(t)+this._tick_label_extent(t)+this._axis_label_extent(t):0,null==this._last_size&amp;&amp;(this._last_size=-1),i!==this._last_size?(this._last_size=i,null!=this._size_constraint&amp;&amp;e.remove_constraint(this._size_constraint),this._size_constraint=new w.Constraint(new w.Expression(this._size,-i),w.Operator.Eq),e.add_constraint(this._size_constraint)):void 0},e.prototype._offsets=function(){var t,e,i,n,r;return i=this.get("location"),e=[0,0],n=e[0],r=e[1],t=this.get("plot").get("frame"),"below"===i?r=Math.abs(this.panel.get("top")-t.get("bottom")):"above"===i?r=Math.abs(this.panel.get("bottom")-t.get("top")):"right"===i?n=Math.abs(this.panel.get("left")-t.get("right")):"left"===i&amp;&amp;(n=Math.abs(this.panel.get("right")-t.get("left"))),[n,r]},e.prototype._ranges=function(){var t,e,i,n;return e=this.get("dimension"),i=(e+1)%2,t=this.get("plot").get("frame"),n=[t.get("x_ranges")[this.get("x_range_name")],t.get("y_ranges")[this.get("y_range_name")]],[n[e],n[i]]},e.prototype._computed_bounds=function(){var t,e,i,n,r,s,o,a;return r=this.get("ranges"),i=r[0],t=r[1],a=null!=(s=this.get("bounds"))?s:"auto",n=[i.get("min"),i.get("max")],"auto"===a?n:f.isArray(a)?(Math.abs(a[0]-a[1])&gt;Math.abs(n[0]-n[1])?(o=Math.max(Math.min(a[0],a[1]),n[0]),e=Math.min(Math.max(a[0],a[1]),n[1])):(o=Math.min(a[0],a[1]),e=Math.max(a[0],a[1])),[o,e]):(x.error("user bounds '"+a+"' not understood"),null)},e.prototype._rule_coords=function(){var t,e,i,n,r,s,o,a,l,u,h,c;return n=this.get("dimension"),r=(n+1)%2,a=this.get("ranges"),o=a[0],e=a[1],l=this.get("computed_bounds"),u=l[0],i=l[1],h=new Array(2),c=new Array(2),t=[h,c],s=this._get_loc(e),t[n][0]=Math.max(u,o.get("min")),t[n][1]=Math.min(i,o.get("max")),t[n][0]&gt;t[n][1]&amp;&amp;(t[n][0]=t[n][1]=NaN),t[r][0]=s,t[r][1]=s,t},e.prototype._tick_coords=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T;if(n=this.get("dimension"),s=(n+1)%2,v=this.get("ranges"),g=v[0],e=v[1],y=this.get("computed_bounds"),M=y[0],i=y[1],C=this.get("ticker").get_ticks(M,i,g,{}),h=C.major,f=C.minor,l=this._get_loc(e),D=[],T=[],t=[D,T],p=[],d=[],c=[p,d],"FactorRange"===g.type)for(r=o=0,b=h.length;b&gt;=0?b&gt;o:o&gt;b;r=b&gt;=0?++o:--o)t[n].push(h[r]),t[s].push(l);else{for(w=[g.get("min"),g.get("max")],_=w[0],m=w[1],r=a=0,x=h.length;x&gt;=0?x&gt;a:a&gt;x;r=x&gt;=0?++a:--a)h[r]&lt;_||h[r]&gt;m||(t[n].push(h[r]),t[s].push(l));for(r=u=0,k=f.length;k&gt;=0?k&gt;u:u&gt;k;r=k&gt;=0?++u:--u)f[r]&lt;_||f[r]&gt;m||(c[n].push(f[r]),c[s].push(l))}return{major:t,minor:c}},e.prototype._get_loc=function(t){var e,i,n,r;return i=t.get("start"),e=t.get("end"),r=this.get("location"),"left"===r||"below"===r?n="start":("right"===r||"above"===r)&amp;&amp;(n="end"),t.get(n)},e.prototype._tick_extent=function(t){return this.get("major_tick_out")},e.prototype._tick_label_extent=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,g,m,_,y,b,w;for(o=0,s=this.get("dimension"),r=t.plot_view.canvas_view.ctx,n=this.get("tick_coords").major,_=this.get("location"),d=this.get("major_label_orientation"),p=this.get("formatter").format(n[s]),t.major_label_props.set_value(r),f.isString(d)?(u=1,e=v[_][d]):(u=2,e=-d),e=Math.abs(e),i=Math.cos(e),m=Math.sin(e),"above"===_||"below"===_?(w=m,l=i):(w=i,l=m),h=c=0,g=p.length;g&gt;=0?g&gt;c:c&gt;g;h=g&gt;=0?++c:--c)null!=p[h]&amp;&amp;(b=1.1*r.measureText(p[h]).width,a=.9*r.measureText(p[h]).ascent,y=b*w+a/u*l,y&gt;o&amp;&amp;(o=y));return o&gt;0&amp;&amp;(o+=this.get("major_label_standoff")),o},e.prototype._axis_label_extent=function(t){var e,i,n,r,s,o,a,l,u;return r=0,l=this.get("location"),o="parallel",n=t.plot_view.canvas_view.ctx,t.axis_label_props.set_value(n),e=Math.abs(v[l][o]),i=Math.cos(e),a=Math.sin(e),this.get("axis_label")&amp;&amp;(r+=this.get("axis_label_standoff"),t.axis_label_props.set_value(n),u=1.1*n.measureText(this.get("axis_label")).width,s=.9*n.measureText(this.get("axis_label")).ascent,r+="above"===l||"below"===l?u*a+s*i:u*i+s*a),r},e.prototype.defaults=function(){return f.extend({},e.__super__.defaults.call(this),{x_range_name:"default",y_range_name:"default"})},e.prototype.display_defaults=function(){return f.extend({},e.__super__.display_defaults.call(this),{level:"overlay",visible:!0,axis_line_color:"black",axis_line_width:1,axis_line_alpha:1,axis_line_join:"miter",axis_line_cap:"butt",axis_line_dash:[],axis_line_dash_offset:0,major_tick_in:2,major_tick_out:6,major_tick_line_color:"black",major_tick_line_width:1,major_tick_line_alpha:1,major_tick_line_join:"miter",major_tick_line_cap:"butt",major_tick_line_dash:[],major_tick_line_dash_offset:0,minor_tick_in:0,minor_tick_out:4,minor_tick_line_color:"black",minor_tick_line_width:1,minor_tick_line_alpha:1,minor_tick_line_join:"miter",minor_tick_line_cap:"butt",minor_tick_line_dash:[],minor_tick_line_dash_offset:0,major_label_standoff:5,major_label_orientation:"horizontal",major_label_text_font:"helvetica",major_label_text_font_size:"10pt",major_label_text_font_style:"normal",major_label_text_color:"#444444",major_label_text_alpha:1,major_label_text_align:"center",major_label_text_baseline:"alphabetic",axis_label:"",axis_label_standoff:5,axis_label_text_font:"helvetica",axis_label_text_font_size:"16pt",axis_label_text_font_style:"normal",axis_label_text_color:"#444444",axis_label_text_alpha:1,axis_label_text_align:"center",axis_label_text_baseline:"alphabetic"})},e}(l),e.exports={Model:r,View:s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../common/has_parent":114,"../../common/layout_box":117,"../../common/logging":119,"../../common/plot_widget":125,"../../common/properties":126,kiwi:303,underscore:92}],189:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("../../common/logging").logger,n=t("./axis"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(n.View),r=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return a(i,e),i.prototype.default_view=s,i.prototype.type="CategoricalAxis",i.prototype.initialize=function(e,n){var r;return i.__super__.initialize.call(this,e,n),r=t("../../common/base").Collections,null==this.get("ticker")&amp;&amp;this.set_obj("ticker",r("CategoricalTicker").create()),null==this.get("formatter")?this.set_obj("formatter",r("CategoricalTickFormatter").create()):void 0},i.prototype._computed_bounds=function(){var t,e,i,n,r,s;return n=this.get("ranges"),e=n[0],t=n[1],s=null!=(r=this.get("bounds"))?r:"auto",i=[e.get("min"),e.get("max")],"auto"!==s&amp;&amp;o.warn("Categorical Axes only support user_bounds='auto', ignoring"),i},i}(n.Model),e.exports={Model:r,View:s}},{"../../common/base":99,"../../common/logging":119,"./axis":188}],190:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;r=t("../../common/base").Collections,l=t("../../ticking/datetime_ticker"),a=t("../../ticking/datetime_tick_formatter"),n=t("./axis"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e}(n.View),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type="DatetimeAxis",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),null==this.get("ticker")&amp;&amp;this.set_obj("ticker",r("DatetimeTicker").create()),null==this.get("formatter")?this.set_obj("formatter",r("DatetimeTickFormatter").create()):void 0},e}(n.Model),e.exports={Model:s,View:o}},{"../../common/base":99,"../../ticking/datetime_tick_formatter":214,"../../ticking/datetime_ticker":215,"./axis":188}],191:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),s=t("../../common/has_parent"),o=t("../../common/plot_widget"),l=t("../../common/properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.grid_props=new l.Line({obj:this.model,prefix:"grid_"}),this.minor_grid_props=new l.Line({obj:this.model,prefix:"minor_grid_"}),this.band_props=new l.Fill({obj:this.model,prefix:"band_"}),this.x_range_name=this.mget("x_range_name"),this.y_range_name=this.mget("y_range_name")},e.prototype.render=function(){var t;return t=this.plot_view.canvas_view.ctx,t.save(),this._draw_regions(t),this._draw_minor_grids(t),this._draw_grids(t),t.restore()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change",this.request_render)},e.prototype._draw_regions=function(t){var e,i,n,r,s,o,a,l,u,h,c,p;if(this.band_props.do_fill)for(n=this.mget("grid_coords"),c=n[0],p=n[1],this.band_props.set_value(t),e=i=0,r=c.length-1;r&gt;=0?r&gt;i:i&gt;r;e=r&gt;=0?++i:--i)e%2===1&amp;&amp;(s=this.plot_view.map_to_screen(c[e],p[e],this.x_range_name,this.y_range_name),a=s[0],u=s[1],o=this.plot_view.map_to_screen(c[e+1],p[e+1],this.x_range_name,this.y_range_name),l=o[0],h=o[1],t.fillRect(a[0],u[0],l[1]-a[0],h[1]-u[0]),t.fill())},e.prototype._draw_grids=function(t){var e,i,n;if(this.grid_props.do_stroke)return e=this.mget("grid_coords"),i=e[0],n=e[1],this._draw_grid_helper(t,this.grid_props,i,n)},e.prototype._draw_minor_grids=function(t){var e,i,n;if(this.minor_grid_props.do_stroke)return e=this.mget("minor_grid_coords"),i=e[0],n=e[1],this._draw_grid_helper(t,this.minor_grid_props,i,n)},e.prototype._draw_grid_helper=function(t,e,i,n){var r,s,o,a,l,u,h,c;for(e.set_value(t),r=s=0,a=i.length;a&gt;=0?a&gt;s:s&gt;a;r=a&gt;=0?++s:--s){for(l=this.plot_view.map_to_screen(i[r],n[r],this.x_range_name,this.y_range_name),h=l[0],c=l[1],t.beginPath(),t.moveTo(Math.round(h[0]),Math.round(c[0])),r=o=1,u=h.length;u&gt;=1?u&gt;o:o&gt;u;r=u&gt;=1?++o:--o)t.lineTo(Math.round(h[r]),Math.round(c[r]));t.stroke()}},e}(o),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=r,e.prototype.type="Grid",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("computed_bounds",this._bounds,!1),this.add_dependencies("computed_bounds",this,["bounds"]),this.register_property("grid_coords",this._grid_coords,!1),this.add_dependencies("grid_coords",this,["computed_bounds","dimension","ticker"]),this.register_property("minor_grid_coords",this._minor_grid_coords,!1),this.add_dependencies("minor_grid_coords",this,["computed_bounds","dimension","ticker"]),this.register_property("ranges",this._ranges,!0)},e.prototype._ranges=function(){var t,e,i,n;return e=this.get("dimension"),i=(e+1)%2,t=this.get("plot").get("frame"),n=[t.get("x_ranges")[this.get("x_range_name")],t.get("y_ranges")[this.get("y_range_name")]],[n[e],n[i]]},e.prototype._bounds=function(){var t,e,i,n,r,s,o,l;return r=this.get("ranges"),i=r[0],t=r[1],l=null!=(s=this.get("bounds"))?s:"auto",n=[i.get("min"),i.get("max")],a.isArray(l)?(o=Math.min(l[0],l[1]),e=Math.max(l[0],l[1]),o&lt;n[0]?o=n[0]:o&gt;n[1]&amp;&amp;(o=null),e&gt;n[1]?e=n[1]:e&lt;n[0]&amp;&amp;(e=null)):(o=n[0],e=n[1]),[o,e]},e.prototype._grid_coords=function(){return this._grid_coords_helper("major")},e.prototype._minor_grid_coords=function(){return this._grid_coords_helper("minor")},e.prototype._grid_coords_helper=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C;for(u=this.get("dimension"),c=(u+1)%2,y=this.get("ranges"),v=y[0],s=y[1],b=this.get("computed_bounds"),k=b[0],l=b[1],C=Math.min(k,l),l=Math.max(k,l),k=C,M=this.get("ticker").get_ticks(k,l,v,{})[t],m=v.get("min"),g=v.get("max"),n=s.get("min"),i=s.get("max"),r=[[],[]],h=p=0,w=M.length;w&gt;=0?w&gt;p:p&gt;w;h=w&gt;=0?++p:--p)if(M[h]!==m&amp;&amp;M[h]!==g){for(o=[],a=[],e=2,_=d=0,x=e;x&gt;=0?x&gt;d:d&gt;x;_=x&gt;=0?++d:--d)f=n+(i-n)/(e-1)*_,o.push(M[h]),a.push(f);r[u].push(o),r[c].push(a)}return r},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{x_range_name:"default",y_range_name:"default"})},e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{level:"underlay",band_fill_color:null,band_fill_alpha:0,grid_line_color:"#cccccc",grid_line_width:1,grid_line_alpha:1,grid_line_join:"miter",grid_line_cap:"butt",grid_line_dash:[],grid_line_dash_offset:0,minor_grid_line_color:null,minor_grid_line_width:1,minor_grid_line_alpha:1,minor_grid_line_join:"miter",minor_grid_line_cap:"butt",minor_grid_line_dash:[],minor_grid_line_dash_offset:0})},e}(s),e.exports={Model:n,View:r}},{"../../common/has_parent":114,"../../common/plot_widget":125,"../../common/properties":126,underscore:92}],192:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("./axis"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e}(n.View),r=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return o(i,e),i.prototype.default_view=s,i.prototype.type="LinearAxis",i.prototype.initialize=function(e,n){var r;return i.__super__.initialize.call(this,e,n),r=t("../../common/base").Collections,null==this.get("ticker")&amp;&amp;this.set_obj("ticker",r("BasicTicker").create()),null==this.get("formatter")?this.set_obj("formatter",r("BasicTickFormatter").create()):void 0},i}(n.Model),e.exports={Model:r,View:s}},{"../../common/base":99,"./axis":188}],193:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("./axis"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e}(n.View),r=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return o(i,e),i.prototype.default_view=s,i.prototype.type="LogAxis",i.prototype.initialize=function(e,n){var r;return i.__super__.initialize.call(this,e,n),r=t("../../common/base").Collections,null==this.get("ticker")&amp;&amp;this.set_obj("ticker",r("LogTicker").create()),null==this.get("formatter")?this.set_obj("formatter",r("LogTickFormatter").create()):void 0},i}(n.Model),e.exports={Model:r,View:s}},{"../../common/base":99,"./axis":188}],194:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),s=t("../../common/has_parent"),o=t("../../common/plot_widget"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.$el.appendTo(this.plot_view.$el.find("div.bk-canvas-overlays")),this.$el.addClass("shading"),this.$el.hide()},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:data",this._draw_box)},e.prototype.render=function(){return this._draw_box(),this},e.prototype._draw_box=function(){var t,e,i,n,r,s,o,l,u;return e=this.mget("data"),a.isEmpty(e)?void this.$el.hide():(l=e.vxlim,u=e.vylim,t=this.plot_view.canvas,s=Math.min(t.vx_to_sx(l[0]),t.vx_to_sx(l[1])),o=Math.min(t.vy_to_sy(u[0]),t.vy_to_sy(u[1])),r=Math.abs(l[1]-l[0]),i=Math.abs(u[1]-u[0]),n="left:"+s+"px; width:"+r+"px; top:"+o+"px; height:"+i+"px",this.$el.attr("style",n),this.$el.show())},e}(o),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="BoxSelection",e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{level:"overlay",data:{}})},e}(s),e.exports={Model:n,View:r}},{"../../common/has_parent":114,"../../common/plot_widget":125,underscore:92}],195:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),n=t("../../common/has_parent"),r=t("../../common/plot_widget"),l=t("../../common/properties"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.line=new l.Line({obj:this.model,prefix:""}),this.fill=new l.Fill({obj:this.model,prefix:""})},e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:data",this.plot_view.request_render)},e.prototype.render=function(t){var e,i,n,r,s,o,l;if(i=a.clone(this.mget("data")),a.isEmpty(i)||null==i)return null;for(e=this.plot_view.canvas,t=this.plot_view.canvas_view.ctx,n=r=0,s=i.vx.length;s&gt;=0?s&gt;r:r&gt;s;n=s&gt;=0?++r:--r)o=e.vx_to_sx(i.vx[n]),l=e.vy_to_sy(i.vy[n]),0===n?(t.beginPath(),t.moveTo(o,l)):t.lineTo(o,l);return this.mget("auto_close")&amp;&amp;t.closePath(),this.line.do_stroke&amp;&amp;(this.line.set_value(t),t.stroke()),this.fill.do_fill&amp;&amp;this.mget("auto_close")?(this.fill.set_value(t),t.fill()):void 0},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.default_view=o,e.prototype.type="PolySelection",e.prototype.display_defaults=function(){return a.extend({},e.__super__.display_defaults.call(this),{fill_color:null,fill_alpha:.2,line_color:"grey",line_width:3,line_alpha:.8,line_join:"miter",line_cap:"butt",line_dash:[4],line_dash_offset:0})},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{level:"overlay",auto_close:!0,data:{}})},e}(n),e.exports={Model:s,View:o}},{"../../common/has_parent":114,"../../common/plot_widget":125,"../../common/properties":126,underscore:92}],196:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x;n=t("jquery"),o=t("underscore"),r=t("backbone"),p=t("../common/base"),s=t("../common/has_properties"),_=t("../common/load_models"),v=t("../common/logging").logger,w=t("./serverutils"),x=t("./usercontext/usercontext"),f=p.index,y=function(){var e,i;return e=t("../common/base").Config,i=e.prefix+"bokeh/ping",n.get(i).success(function(){return v.info("reloading"),window.location.reload()}).fail(o.delay(function(){return y()},1e3)),null},g=function(t){var e;return e=n("&lt;link href='"+t+"' rel='stylesheet' type='text/css'&gt;"),n("body").append(e)},c=function(t,e,i,r){var s,a;return _(r),s=p.Collections(i).get(e),a=new s.default_view({model:s}),e in f||(f[e]=a),o.delay(function(){return n(t).replaceWith(a.$el)})},d={},h=function(t,e,i,r){var s;return s=w.utility.load_one_object_chain(e,i,r),s.done(function(e){var r,s,a;return r=p.Collections(e.type).get(i),s=new r.default_view({model:r}),o.delay(function(){return n(t).replaceWith(s.$el)}),i in f||(f[i]=s),a=w.wswrapper,a.subscribe("debug:debug",""),a.on("msg:debug:debug",function(t){return"reload"===t?y():void 0})})},m=function(t,e){var i,r,s;if(s=n("#"+t),0===s.length)throw new Error("Error injecting plot: could not find script tag with id: "+t);if(s.length&gt;1)throw new Error("Error injecting plot: found too many script tags with id: "+t);if(!document.body.contains(s[0]))throw new Error("Error injecting plot: autoload script tag may only be under &lt;body&gt;");if(r=s.data(),Bokeh.set_log_level(r.bokehLoglevel),v.info("Injecting plot for script tag with id: #"+t),p.Config.prefix=r.bokehRootUrl,i=n("&lt;div&gt;",{"class":"bokeh-container"}),i.insertBefore(s),"static"===r.bokehData)return v.info("  - using static data"),c(i,r.bokehModelid,r.bokehModeltype,e);if("server"===r.bokehData)return v.info("  - using server data"),h(i,r.bokehDocid,r.bokehModelid,r.bokehPublic);throw new Error("Unknown bokehData value for inject_plot: "+r.bokehData)},b=function(t){return s.prototype.sync=r.sync,n(function(){var e;return e=w.utility.make_websocket(),e.then(function(){var e,i,n;return n=w.wswrapper,i=new x.UserDocs,i.subscribe(n,"defaultuser"),e=i.fetch(),e.done(function(){return null!=t?u(i,t):l(i)}),v.info("subscribing to debug"),n.subscribe("debug:debug",""),n.on("msg:debug:debug",function(t){return"reload"===t?y():void 0})})})},l=function(t){var e;return e=new x.UserDocsView({collection:t}),a(e.el)},u=function(t,e){var i,n;return i=t.find(function(t){return t.get("title")===e}),null!=i?(i.on("loaded",function(){var t,e;return t=i.get("plot_context"),e=new t.default_view({model:t}),a(e.el)}),i.load()):(n="Document '"+e+"' wasn't found on this server.",a(n),v.error(n))},a=function(t){return n("#PlotPane").append(t)},e.exports={inject_css:g,inject_plot:m,add_plot_server:h,add_plot_static:c,server_page:b}},{"../common/base":99,"../common/has_properties":115,"../common/load_models":118,"../common/logging":119,"./serverutils":197,"./usercontext/usercontext":199,backbone:2,jquery:18,underscore:92}],197:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_;n=t("jquery"),u=t("underscore"),r=t("backbone"),h=t("../common/base"),g=t("../common/socket"),l=g.WebSocketWrapper,m=g.submodels,d=t("../common/load_models"),f=t("../common/logging").logger,o=t("../common/has_properties"),s={},a={},s._doc_loaded=n.Deferred(),s._doc_requested=n.Deferred(),a.doc_loaded=s._doc_loaded.promise(),a.doc_requested=s._doc_requested.promise(),a.doc_promises={},p={},i.wswrapper=null,i.plotcontext=null,i.plotcontextview=null,i.Promises=a,p={},_={load_one_object_chain:function(e,s,a){var l,h,c,g;return a&amp;&amp;(p[e]||(p[e]=u.uniqueId("temporary")),g=p[e],h="temporary-"+e,l={},l[h]=g,n.ajaxSetup({headers:l})),o.prototype.sync=r.sync,c=_.make_websocket(),c=c.then(function(){var i,r;return i=t("../common/base").Config,r=i.prefix+"bokeh/objinfo/"+e+"/"+s,f.debug("load one object chain: "+r),c=n.get(r)}),c.done(function(t){var n,r;return n=t.all_models,d(n),r=t.apikey,m(i.wswrapper,"bokehplot:"+e,r),a?m(i.wswrapper,"bokehplot:"+g,null):void 0}),c},load_user:function(){var t;return t=n.get("/bokeh/userinfo/",{})},load_doc_by_title:function(e){var r,s;return r=t("../common/base").Config,s=n.get(r.prefix+"bokeh/doc",{title:e}).done(function(t){var e,n,r;return e=t.all_models,d(e),n=t.apikey,r=t.docid,m(i.wswrapper,"bokehplot:"+r,n)})},load_doc_static:function(t,e){" loads data without making a websocket connection ";var i;return load_data(e.all_models),i=jQuery.Deferred(),i.resolve(),i},load_doc:function(e){var r;return r=_.make_websocket(),r=r.then(function(){var i;return i=t("../common/base").Config,n.get(i.prefix+("bokeh/bokehinfo/"+e+"/"),{})}),r.done(function(t){var n,r;return n=t.all_models,d(n),r=t.apikey,m(i.wswrapper,"bokehplot:"+e,r)}),r},make_websocket:function(){var e,r;return null!=i.wswrapper?i._wswrapper_deferred:(e=t("../common/base").Config,i._wswrapper_deferred=n.get(e.prefix+"bokeh/wsurl/"),r=i._wswrapper_deferred,r.done(function(n){var r;return e=t("../common/base").Config,c(n,null),r=new l(e.ws_conn_string),i.wswrapper=r}),r)},render_plots:function(e,n,r){var s,o,a,l;return null==n&amp;&amp;(n=null),null==r&amp;&amp;(r={}),s=t("../common/base").Collections,a=s(e.type).get(e.id),n||(n=a.default_view),o=u.extend(r,{model:a}),l=new n(o),a=a,l=l,l.render(),i.plotcontext=a,i.plotcontextview=l},bokeh_connection:function(t,e,i){return u.isUndefined(i)&amp;&amp;(i="https"),"pending"===a.doc_requested.state()?(s._doc_requested.resolve(),n.get(i+"://"+t+"/bokeh/publicbokehinfo/"+e,{},function(t){return f.debug("instantiate_doc_single "+e),t=JSON.parse(t),d(t.all_models),s._doc_loaded.resolve(t)})):void 0}},c=function(e,i){var n;return n=t("../common/base").Config,e&amp;&amp;(n.ws_conn_string=e,f.debug("setting ws_conn_string to: "+n.ws_conn_string)),i&amp;&amp;(n.prefix=i,f.debug("setting prefix to "+n.prefix)),null},i.utility=_,i.configure_server=c,e.exports=i},{"../common/base":99,"../common/has_properties":115,"../common/load_models":118,"../common/logging":119,"../common/socket":130,backbone:2,jquery:18,underscore:92}],198:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push("&lt;p&gt;\n  &lt;b&gt;\n    You have no Plots. Follow the instructions below to create some.\n  &lt;/b&gt;\n&lt;/p&gt;\n")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],199:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y=function(t,e){function i(){this.constructor=t}for(var n in e)b.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},b={}.hasOwnProperty;c=t("underscore"),n=t("jquery"),p=t("../../common/base"),d=t("../../common/build_views"),s=t("../../common/continuum_view"),r=t("../../common/collection"),l=t("../../common/has_parent"),g=t("../../common/load_models"),f=t("./documentationtemplate"),_=t("../serverutils").utility,m=t("./userdocstemplate"),v=t("./wrappertemplate"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.template=v,e.prototype.attributes={"class":"panel-group"},e.prototype.events={"click .bokehdoclabel":"loaddoc","click .bokehdelete":"deldoc"},e.prototype.deldoc=function(t){return t.preventDefault(),this.model.destroy(),!1},e.prototype.loaddoc=function(){return this.model.load()},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render_init()},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t),this.listenTo(this.model,"loaded",this.render)},e.prototype.render_init=function(){var t;return t=this.template({model:this.model,bodyid:c.uniqueId()}),this.$el.html(t)},e.prototype.render=function(){var t;return t=this.model.get("plot_context"),this.plot_context_view=new t.default_view({model:t}),this.$el.find(".plots").append(this.plot_context_view.el),!0},e}(s),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.initialize=function(t){return this.docs=t.docs,this.collection=t.collection,this.views={},e.__super__.initialize.call(this,t),this.render()},e.prototype.attributes={"class":"usercontext"},e.prototype.events={"click .bokehrefresh":function(){return this.collection.fetch({update:!0})}},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t),this.listenTo(this.collection,"add",this.render),this.listenTo(this.collection,"remove",this.render),this.listenTo(this.collection,"add",function(t){return function(e,i,n){return t.listenTo(e,"loaded",function(){return t.listenTo(e.get("plot_context"),"change",function(){return t.trigger("show")})})}}(this)),this.listenTo(this.collection,"remove",function(t){return function(e,i,n){return t.stopListening(e)}}(this))},e.prototype.render_docs=function(){return this.$el.html(f()),this.$el.append(this.docs)},e.prototype.render=function(){var t,e,i,n,r;if(0===this.collection.models.length&amp;&amp;this.docs)return this.render_docs();for(t=m(),c.map(c.values(this.views),function(t){return t.$el.detach()}),r=this.collection.models.slice().reverse(),d(this.views,r,{}),this.$el.html(t),e=0,i=r.length;i&gt;e;e++)n=r[e],this.$el.find(".accordion").append(this.views[n.id].el);return this},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.default_view=a,e.prototype.idAttribute="docid",e.prototype.defaults=function(){return c.extend({},e.__super__.defaults.call(this),{docid:null,title:null,plot_context:null,apikey:null})},e.prototype.sync=function(){},e.prototype.destroy=function(t){return e.__super__.destroy.call(this,t),n.ajax({url:"/bokeh/doc/"+this.get("docid")+"/",type:"delete"})},e.prototype.load=function(t){var e,i,n;if(!this.loaded)return t?(n=this.get("title"),i=_.load_doc_by_title(n)):(e=this.get("docid"),i=_.load_doc(e)),i.done(function(t){return function(e){return t.set("docid",e.docid),t.set("apikey",e.apikey),t.set("plot_context",e.plot_context_ref),t.trigger("loaded"),t.loaded=!0}}(this))},e}(l),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.model=o,e.prototype.subscribe=function(t,e){return t.subscribe("bokehuser:"+e,null),this.listenTo(t,"msg:bokehuser:"+e,function(t){return t=JSON.parse(t),"docchange"===t.msgtype?this.fetch({update:!0}):void 0})},e.prototype.fetch=function(t){var e,i,r;return c.isUndefined(t)&amp;&amp;(t={}),r=p.Config.prefix+"bokeh/userinfo/",e=i=n.get(r,{}),e.done(function(e){return function(i){var n;return n=i.docs,t.update?e.set(n,t):e.reset(n,t)}}(this)),e},e}(r),e.exports={UserDocs:u,UserDocsView:h,Doc:o,DocView:a}},{"../../common/base":99,"../../common/build_views":101,"../../common/collection":107,"../../common/continuum_view":109,"../../common/has_parent":114,"../../common/load_models":118,"../serverutils":197,"./documentationtemplate":198,"./userdocstemplate":200,"./wrappertemplate":201,jquery:18,underscore:92}],200:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;div class="accordion"&gt;\n&lt;/div&gt;\n')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],201:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;div class="panel panel-default"&gt;\n  &lt;div class="panel-heading"&gt;\n    &lt;h4 class="panel-title"&gt;\n      &lt;a class="bokehdoclabel" href="#'),i.push(n(this.bodyid)),i.push('" data-toggle="collapse"&gt;\n        Document: '),i.push(n(this.model.get("title"))),i.push(' &lt;span class="bokehdelete glyphicon glyphicon-trash"&gt;&lt;/i&gt;\n      &lt;/a&gt;\n    &lt;/h4&gt;\n  &lt;/div&gt;\n  &lt;div id="'),i.push(n(this.bodyid)),i.push('" class="panel-collapse collapse"&gt;\n    &lt;div class="panel-body plots"&gt;&lt;/div&gt;\n  &lt;/div&gt;\n&lt;/div&gt;\n')}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],202:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,
        t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),l=t("underscore"),o=t("backbone"),u=t("../common/logging").logger,a=t("./remote_data_source"),r=function(t){function e(){return this.defaults=h(this.defaults,this),this.get_data=h(this.get_data,this),this.setup=h(this.setup,this),this.destroy=h(this.destroy,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="AjaxDataSource",e.prototype.destroy=function(){return null!=this.interval?clearInterval(this.interval):void 0},e.prototype.setup=function(t,e){return this.pv=t,this.get_data(this.get("mode")),this.get("polling_interval")?this.interval=setInterval(this.get_data,this.get("polling_interval"),this.get("mode"),this.get("max_size"),this.get("if_modified")):void 0},e.prototype.get_data=function(t,e,i){return null==e&amp;&amp;(e=0),null==i&amp;&amp;(i=!1),n.ajax({dataType:"json",ifModified:i,url:this.get("data_url"),xhrField:{withCredentials:!0},method:this.get("method"),contentType:"application/json"}).done(function(i){return function(n){var r,s,o,a,l;if("replace"===t)i.set("data",n);else if("append"===t){for(a=i.get("data"),l=i.columns(),s=0,o=l.length;o&gt;s;s++)r=l[s],n[r]=a[r].concat(n[r]).slice(-e);i.set("data",n)}else u.error("unsupported mode: "+t);return u.trace(n),null}}(this)).error(function(){return u.error(arguments)}),null},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{mode:"replace"})},e}(a.RemoteDataSource),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.model=r,e.prototype.defaults={url:"",expr:null},e}(o.Collection),e.exports={Model:r,Collection:new s}},{"../common/logging":119,"./remote_data_source":205,backbone:2,jquery:18,underscore:92}],203:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),l=t("underscore"),r=t("backbone"),u=t("../common/logging").logger,a=t("./remote_data_source"),s=function(t){function e(){return this.update=h(this.update,this),this.setup=h(this.setup,this),this.destroy=h(this.destroy,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="BlazeDataSource",e.prototype.destroy=function(){return null!=this.interval?clearInterval(this.interval):void 0},e.prototype.setup=function(t,e){return this.pv=t,this.update(),this.get("polling_interval")?this.interval=setInterval(this.update,this.get("polling_interval")):void 0},e.prototype.update=function(){var t;return t=JSON.stringify({expr:this.get("expr"),namespace:this.get("namespace")}),n.ajax({dataType:"json",url:this.get("data_url"),data:t,xhrField:{withCredentials:!0},method:"POST",contentType:"application/json"}).done(function(t){return function(e){var i,n,r,s,o,a,u,h;for(n=l.zip.apply(l,e.data),r={},h=e.names,o=s=0,a=h.length;a&gt;s;o=++s)i=h[o],r[i]=n[o];return u=l.clone(t.get("data")),l.extend(u,r),t.set("data",u),null}}(this))},e}(a.RemoteDataSource),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.model=s,e.prototype.defaults={url:"",expr:null},e}(r.Collection),e.exports={Model:s,Collection:new o}},{"../common/logging":119,"./remote_data_source":205,backbone:2,jquery:18,underscore:92}],204:[function(t,e,i){var n,r,s,o,a,l=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),r=t("../common/has_properties"),s=t("../common/selection_manager"),a=t("../common/hittest"),n=function(t){function e(){return this.defaults=l(this.defaults,this),e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="ColumnDataSource",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this,"change:selected",function(t){return function(){var e;return null!=(e=t.get("callback"))?e.execute(t):void 0}}(this))},e.prototype.get_column=function(t){var e;return null!=(e=this.get("data")[t])?e:null},e.prototype.get_length=function(){var t,e,i,n;return t=this.get("data"),0===o.keys(t).length?null:(i=o.uniq(function(){var i;i=[];for(e in t)n=t[e],i.push(n.length);return i}()),i[0])},e.prototype.columns=function(){return o.keys(this.get("data"))},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{data:{},selection_manager:new s({source:this}),selected:a.create_hit_test_result()})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,"../common/hittest":116,"../common/selection_manager":128,underscore:92}],205:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("backbone"),r=t("./column_data_source"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(r.Model),e.exports={RemoteDataSource:s}},{"./column_data_source":204,backbone:2,underscore:92}],206:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_=function(t,e){function i(){this.constructor=t}for(var n in e)v.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},v={}.hasOwnProperty,y=function(t,e){return function(){return t.apply(e,arguments)}};n=t("jquery"),f=t("underscore"),s=t("backbone"),a=t("../common/has_properties"),m=t("../common/logging").logger,h=t("../range/range1d"),o=t("../range/data_range1d"),c=t("./remote_data_source"),g=function(t){var e,i,n,r;return e=!1,r=null,n=!1,i=function(){return e?n?m.debug("already bound, ignoring"):(m.debug("busy, so doing it later"),n=!0,r.done(function(){return n=!1,i()})):(m.debug("executing"),e=!0,r=t(),r.done(function(){return m.debug("done, setting to false"),e=!1,r=null}))}},d=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.callbacks=[],this.plot_state={data_x:i.data_x,data_y:i.data_y,screen_x:i.screen_x,screen_y:i.screen_y},this.glyph=i.glyph,this.data_source=i.data_source,this.render_state=i.render_state,this.auto_bounds=i.data_source.get("transform").auto_bounds},e.prototype.stoplistening_for_updates=function(){var t,e,i,n,r;for(n=this.callbacks,r=[],e=0,i=n.length;i&gt;e;e++)t=n[e],r.push(this.stopListening.apply(this,t));return r},e.prototype.listen_for_updates=function(){var t,e,i,n,r;for(this.stoplistening_for_updates(),t=g(function(t){return function(){return t.update()}}(this)),t=f.debounce(t,100),t(),r=[this.plot_state.data_x,this.plot_state.data_x,this.plot_state.screen_x,this.plot_state.screen_y],e=0,i=r.length;i&gt;e;e++)n=r[e],this.listenTo(n,"change",t),this.callbacks.push([n,"change",t]);return null},e.prototype.update=function(){return null},e.prototype.plot_state_json=function(){var t,e,i,n,r;r={},n=this.plot_state;for(e in n)t=n[e],i=new h.Model,i.set("start",t.get("start")),i.set("end",t.get("end")),r[e]=i;return r},e.prototype.update_url=function(){var t,e,i,n,r,s;return i=this.glyph,this.get("data_url")?(s=data_url,t=s.replace("/compute.json","/render")):t=i.get_base().Config.prefix+"render",e=this.glyph.get("doc"),r=this.data_source.get("id"),n=i.get("id"),s=t+"/"+e+"/"+r+"/"+n},e}(s.Model),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get("start")===e.screen_x.get("end")||e.screen_y.get("start")===e.screen_y.get("end")?(m.debug("skipping due to under-defined view state"),n.ajax()):(m.debug("Sent render State",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:"POST",dataType:"json",url:this.update_url(),xhrField:{withCredentials:!0},contentType:"application/json",data:JSON.stringify(t),success:function(t){return function(i){var n;return"NO UPDATE"===i.render_state?void m.info("No update"):(t.auto_bounds&amp;&amp;(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug("New render State:",i.render_state),n=f.clone(t.data_source.get("data")),f.extend(n,i.data),t.data_source.set("data",n),null)}}(this)}))},e}(d),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get("start")===e.screen_x.get("end")||e.screen_y.get("start")===e.screen_y.get("end")?(m.debug("skipping due to under-defined view state"),n.ajax()):(m.debug("Sent render State",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:"POST",dataType:"json",url:this.update_url(),xhrField:{withCredentials:!0},contentType:"application/json",data:JSON.stringify(t),success:function(t){return function(i){var n;return"NO UPDATE"===i.render_state?void m.info("No update"):(t.auto_bounds&amp;&amp;(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug("New render State:",i.render_state),n=f.clone(t.data_source.get("data")),f.extend(n,i.data),t.data_source.set("data",n),null)}}(this)}))},e}(d),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get("start")===e.screen_x.get("end")||e.screen_y.get("start")===e.screen_y.get("end")?(m.debug("skipping due to under-defined view state"),n.ajax()):(m.debug("Sent render State",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:"POST",dataType:"json",url:this.update_url(),xhrField:{withCredentials:!0},contentType:"application/json",data:JSON.stringify(t),success:function(t){return function(i){var n;return"NO UPDATE"===i.render_state?void m.info("No update"):(t.auto_bounds&amp;&amp;(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug("New render State:",i.render_state),n=f.clone(t.data_source.get("data")),f.extend(n,i.data),t.data_source.set("data",n),null)}}(this)}))},e}(d),p=function(t){function e(){return this.setup_proxy=y(this.setup_proxy,this),this.setup=y(this.setup,this),this.initialize=y(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.type="ServerDataSource",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i)},e.prototype.setup=function(t,e){var i,n,r,s,o;return s=o=i=n=r={data_x:t.x_range,data_y:t.y_range,screen_x:t.frame.get("h_range"),screen_y:t.frame.get("v_range"),glyph:e.model},this.setup_proxy(r)},e.prototype.setup_proxy=function(t){return t.data_source=this,"abstract rendering"===this.get("transform").resample?this.proxy=new r({},t):"line1d"===this.get("transform").resample?this.proxy=new u({},t):"heatmap"===this.get("transform").resample&amp;&amp;(this.proxy=new l({},t)),this.proxy.listen_for_updates()},e}(c.RemoteDataSource),e.exports={Model:p}},{"../common/has_properties":115,"../common/logging":119,"../range/data_range1d":144,"../range/range1d":146,"./remote_data_source":205,backbone:2,jquery:18,underscore:92}],207:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),s=t("../common/has_properties"),a=function(t){var e,i,n,r,s;return null===t?"null":null==t?"undefined":t.constructor===Array?(i=function(){var i,n,r;for(r=[],i=0,n=t.length;n&gt;i;i++)e=t[i],r.push(a(e));return r}().join(", "),"["+i+"]"):t.constructor===Object?(s=function(){var e;e=[];for(n in t)e.push(n+": "+a(t[n]));return e}().join(", "),"{"+s+"}"):t.constructor===String?'"'+t+'"':t.constructor===Function?"&lt;Function: "+t.name+"&gt;":(r=t.toString(),"[object Object]"===r?"&lt;"+t.constructor.name+"&gt;":r)},r=6,n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="AbstractTicker",e.prototype.get_ticks=function(t,e,i,n){var r;return r=n.desired_n_ticks,this.get_ticks_no_defaults(t,e,this.get("desired_num_ticks"))},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,s,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x;if(l=this.get_interval(t,e,i),y=Math.floor(t/l),n=Math.ceil(e/l),s=o.isNaN(y)||o.isNaN(n)?[]:o.range(y,n+1),w=function(){var t,e,i;for(i=[],t=0,e=s.length;e&gt;t;t++)r=s[t],i.push(r*l);return i}(),v=this.get("num_minor_ticks"),_=[],v&gt;1){for(g=l/v,m=function(){var t,e,i;for(i=[],a=t=1,e=v;e&gt;=1?e&gt;=t:t&gt;=e;a=e&gt;=1?++t:--t)i.push(a*g);return i}(),u=0,p=m.length;p&gt;u;u++)x=m[u],_.push(w[0]-x);for(h=0,d=w.length;d&gt;h;h++)for(b=w[h],c=0,f=m.length;f&gt;c;c++)x=m[c],_.push(b+x)}return{major:w,minor:_}},e.prototype.get_interval=void 0,e.prototype.get_min_interval=function(){return this.get("min_interval")},e.prototype.get_max_interval=function(){return this.get("max_interval")},e.prototype.toString=function(){var t,e,i,n;return t=typeof this,n=this.get("toString_properties"),i=function(){var t,i,r;for(r=[],t=0,i=n.length;i&gt;t;t++)e=n[t],r.push(e+"="+a(this[e]));return r}.call(this).join(", "),t+"("+i+")"},e.prototype.get_ideal_interval=function(t,e,i){var n;return n=e-t,n/i},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{toString_properties:[],num_minor_ticks:5,desired_num_ticks:r})},e}(s),e.exports={Model:n}},{"../common/has_properties":115,underscore:92}],208:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;s=t("underscore"),n=t("./abstract_ticker"),o=t("./util").argmin,a=function(t,e,i){return Math.max(e,Math.min(i,t))},l=function(t,e){return null==e&amp;&amp;(e=Math.E),Math.log(t)/Math.log(e)},r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="AdaptiveTicker",e.prototype.initialize=function(t,i){var n,r;return e.__super__.initialize.call(this,t,i),n=s.last(this.get("mantissas"))/this.get("base"),r=s.first(this.get("mantissas"))*this.get("base"),this.extended_mantissas=s.flatten([n,this.get("mantissas"),r]),this.base_factor=0===this.get("min_interval")?1:this.get("min_interval")},e.prototype.get_interval=function(t,e,i){var n,r,s,u,h,c,p,d,f;return s=e-t,h=this.get_ideal_interval(t,e,i),f=Math.floor(l(h/this.base_factor,this.get("base"))),c=Math.pow(this.get("base"),f)*this.base_factor,p=h/c,r=this.extended_mantissas,u=r.map(function(t){return Math.abs(i-s/(t*c))}),n=r[o(u)],d=n*c,a(d,this.get("min_interval"),this.get("max_interval"))},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{toString_properties:["mantissas","base","min_magnitude","max_magnitude"],base:10,mantissas:[2,5,10],min_interval:0,max_interval:1/0})},e}(n.Model),e.exports={Model:r}},{"./abstract_ticker":207,"./util":224,underscore:92}],209:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="BasicTickFormatter",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("scientific_limit_low",function(){return Math.pow(10,this.get("power_limit_low"))},!0),this.add_dependencies("scientific_limit_low",this,["power_limit_low"]),this.register_property("scientific_limit_high",function(){return Math.pow(10,this.get("power_limit_high"))},!0),this.add_dependencies("scientific_limit_high",this,["power_limit_high"]),this.last_precision=3},e.prototype.format=function(t){var e,i,n,r,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x;if(0===t.length)return[];if(x=0,t.length&gt;=2&amp;&amp;(x=Math.abs(t[1]-t[0])/1e4),c=!1,this.get("use_scientific"))for(n=0,l=t.length;l&gt;n;n++)if(y=t[n],b=Math.abs(y),b&gt;x&amp;&amp;(b&gt;=this.get("scientific_limit_high")||b&lt;=this.get("scientific_limit_low"))){c=!0;break}if(d=this.get("precision"),null==d||s.isNumber(d)){if(a=new Array(t.length),c)for(e=r=0,f=t.length;f&gt;=0?f&gt;r:r&gt;f;e=f&gt;=0?++r:--r)a[e]=t[e].toExponential(d||void 0);else for(e=o=0,g=t.length;g&gt;=0?g&gt;o:o&gt;g;e=g&gt;=0?++o:--o)a[e]=t[e].toFixed(d||void 0).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,"");return a}if("auto"===d)for(a=new Array(t.length),w=u=m=this.last_precision;15&gt;=m?15&gt;=u:u&gt;=15;w=15&gt;=m?++u:--u){if(i=!0,c){for(e=h=0,_=t.length;_&gt;=0?_&gt;h:h&gt;_;e=_&gt;=0?++h:--h)if(a[e]=t[e].toExponential(w),e&gt;0&amp;&amp;a[e]===a[e-1]){i=!1;break}if(i)break}else{for(e=p=0,v=t.length;v&gt;=0?v&gt;p:p&gt;v;e=v&gt;=0?++p:--p)if(a[e]=t[e].toFixed(w).replace(/(\.[0-9]*?)0+$/,"$1").replace(/\.$/,""),e&gt;0&amp;&amp;a[e]===a[e-1]){i=!1;break}if(i)break}if(i)return this.last_precision=w,a}return a},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{precision:"auto",use_scientific:!0,power_limit_high:5,power_limit_low:-3})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,underscore:92}],210:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("./adaptive_ticker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="BasicTicker",e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{mantissas:[1,2,5]})},e}(n.Model),e.exports={Model:r}},{"./adaptive_ticker":208,underscore:92}],211:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type="CategoricalTickFormatter",e.prototype.format=function(t){return t},e}(r),e.exports={Model:n}},{"../common/has_properties":115}],212:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.type="CategoricalTicker",e.prototype.get_ticks=function(t,e,i,n){var r,s,o,a,l,u,h;for(r=n.desired_n_ticks,u=[],s=i.get("factors"),o=l=0,h=s.length;h&gt;=0?h&gt;l:l&gt;h;o=h&gt;=0?++l:--l)a=o+i.get("offset"),a+1&gt;t&amp;&amp;e&gt;a+1&amp;&amp;u.push(s[o]);return{major:u,minor:[]}},e}(r),e.exports={Model:n}},{"../common/has_properties":115}],213:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t("underscore"),n=t("./abstract_ticker"),o=t("./util").argmin,r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="CompositeTicker",e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),n=this.get("tickers"),this.register_property("min_intervals",function(){return s.invoke(n,"get_min_interval")},!0),this.add_dependencies("min_intervals",this,["tickers"]),this.register_property("max_intervals",function(){return s.invoke(n,"get_max_interval")},!0),this.add_dependencies("max_intervals",this,["tickers"]),this.register_property("min_interval",function(){return s.first(this.get("min_intervals"))},!0),this.add_dependencies("min_interval",this,["min_intervals"]),this.register_property("max_interval",function(){return s.first(this.get("max_intervals"))},!0),this.add_dependencies("max_interval",this,["max_interval"])},e.prototype.get_best_ticker=function(t,e,i){var n,r,a,l,u,h,c,p;return l=e-t,h=this.get_ideal_interval(t,e,i),p=[s.sortedIndex(this.get("min_intervals"),h)-1,s.sortedIndex(this.get("max_intervals"),h)],c=[this.get("min_intervals")[p[0]],this.get("max_intervals")[p[1]]],u=c.map(function(t){return Math.abs(i-l/t)}),n=o(u),n===1/0?this.get("tickers")[0]:(a=p[n],r=this.get("tickers")[a])},e.prototype.get_interval=function(t,e,i){var n;return n=this.get_best_ticker(t,e,i),n.get_interval(t,e,i)},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r;return n=this.get_best_ticker(t,e,i),r=n.get_ticks_no_defaults(t,e,i)},e}(n.Model),e.exports={Model:r}},{"./abstract_ticker":207,"./util":224,underscore:92}],214:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f=function(t,e){function i(){this.constructor=t}for(var n in e)g.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},g={}.hasOwnProperty;o=t("underscore"),s=t("sprintf"),d=t("timezone"),r=t("../common/has_properties"),p=t("../common/logging").logger,c=function(t){return Math.round(t/1e3%1*1e6)},h=function(t){var e,i;return e=new Date(t),i=e.getFullYear(),e.getMonth()&gt;=7&amp;&amp;(i+=1),s.sprintf("'%02d",i%100)},l=function(t){var e,i;return e=new Date(t),i=e.getFullYear(),e.getMonth()&gt;=7&amp;&amp;(i+=1),s.sprintf("%d",i)},a=function(t){return d(t,"%Y %m %d %H %M %S").split(/\s+/).map(function(t){return parseInt(t,10)})},u=function(t,e){var i;return o.isFunction(e)?e(t):(i=s.sprintf("$1%06d",c(t)),e=e.replace(/((^|[^%])(%%)*)%f/,i),-1===e.indexOf("%")?e:d(t,e))},n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,t),e.prototype.type="DatetimeTickFormatter",e.prototype.format_order=["microseconds","milliseconds","seconds","minsec","minutes","hourmin","hours","days","months","years"],e.prototype._formats={microseconds:["%fus"],milliseconds:["%3Nms","%S.%3Ns"],seconds:["%Ss"],minsec:[":%M:%S"],minutes:[":%M","%Mm"],hourmin:["%H:%M"],hours:["%Hh","%H:%M"],days:["%m/%d","%a%d"],months:["%m/%Y","%b%y"],years:["%Y",h,l]},e.prototype.strip_leading_zeros=!0,e.prototype.initialize=function(t,i){var n,r,s,a,l,h,c,p;e.__super__.initialize.call(this,t,i),n=o.extend({},this._formats,this.get("formats")),l=d(new Date),this.formats={},h=[];for(r in n)a=n[r],c=function(){var t,e,i;for(i=[],t=0,e=a.length;e&gt;t;t++)s=a[t],i.push(u(l,s).length);return i}(),p=o.sortBy(o.zip(c,a),function(t){var e,i;return i=t[0],e=t[1],i}),h.push(this.formats[r]=o.zip.apply(o,p));return h},e.prototype._get_resolution_str=function(t,e){var i,n;return i=1.1*t,n=.001&gt;i?"microseconds":1&gt;i?"milliseconds":60&gt;i?e&gt;=60?"minsec":"seconds":3600&gt;i?e&gt;=3600?"hourmin":"minutes":86400&gt;i?"hours":2678400&gt;i?"days":31536e3&gt;i?"months":"years"},e.prototype.format=function(t,e,i,n,r){var s,l,h,c,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j;if(null==e&amp;&amp;(e=null),null==i&amp;&amp;(i=null),null==n&amp;&amp;(n=.3),null==r&amp;&amp;(r=null),0===t.length)return[];if(E=Math.abs(t[t.length-1]-t[0])/1e3,M=r?r.resolution:E/(t.length-1),S=this._get_resolution_str(M,E),C=this.formats[S],j=C[0],c=C[1],h=c[0],i){for(d=[],g=m=0,D=j.length;D&gt;=0?D&gt;m:m&gt;D;g=D&gt;=0?++m:--m)j[g]*t.length&lt;n*i&amp;&amp;d.push(this.formats[g]);d.length&gt;0&amp;&amp;(h=o.last(d))}for(y=[],A=this.format_order.indexOf(S),R={},T=this.format_order,_=0,b=T.length;b&gt;_;_++)l=T[_],R[l]=0;for(R.seconds=5,R.minsec=4,R.minutes=4,R.hourmin=3,R.hours=3,v=0,w=t.length;w&gt;v;v++){N=t[v];try{z=a(N),P=u(N,h)}catch(O){s=O,p.warn("unable to format tick for timestamp value "+N),p.warn(" - "+s),y.push("ERR");continue}for(f=!1,k=A;0===z[R[this.format_order[k]]]&amp;&amp;(k+=1,k!==this.format_order.length);){if(("minsec"===S||"hourmin"===S)&amp;&amp;!f){if("minsec"===S&amp;&amp;0===z[4]&amp;&amp;0!==z[5]||"hourmin"===S&amp;&amp;0===z[3]&amp;&amp;0!==z[4]){x=this.formats[this.format_order[A-1]][1][0],P=u(N,x);break}f=!0}x=this.formats[this.format_order[k]][1][0],P=u(N,x)}this.strip_leading_zeros?(I=P.replace(/^0+/g,""),I!==P&amp;&amp;isNaN(parseInt(I))&amp;&amp;(I="0"+I),y.push(I)):y.push(P)}return y},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{formats:{}})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,"../common/logging":119,sprintf:90,timezone:91,underscore:92}],215:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty;f=t("underscore"),n=t("./adaptive_ticker"),r=t("./composite_ticker"),o=t("./days_ticker"),a=t("./months_ticker"),d=t("./years_ticker"),g=t("./util"),u=g.ONE_MILLI,p=g.ONE_SECOND,h=g.ONE_MINUTE,l=g.ONE_HOUR,c=g.ONE_MONTH,s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.type="DatetimeTicker",e.prototype.defaults=function(){return f.extend({},e.__super__.defaults.call(this),{num_minor_ticks:0,tickers:[new n.Model({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*u,num_minor_ticks:0}),new n.Model({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:p,max_interval:30*h,num_minor_ticks:0}),new n.Model({mantissas:[1,2,4,6,8,12],base:24,min_interval:l,max_interval:12*l,num_minor_ticks:0}),new o.Model({days:f.range(1,32)}),new o.Model({days:f.range(1,31,3)}),new o.Model({days:[1,8,15,22]}),new o.Model({days:[1,15]}),new a.Model({months:f.range(0,12,1)}),new a.Model({months:f.range(0,12,2)}),new a.Model({months:f.range(0,12,4)}),new a.Model({months:f.range(0,12,6)}),new d.Model({})]})},e}(r.Model),e.exports={Model:s}},{"./adaptive_ticker":208,"./composite_ticker":213,"./days_ticker":216,"./months_ticker":220,"./util":224,"./years_ticker":225,underscore:92}],216:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;o=t("underscore"),s=t("./single_interval_ticker"),h=t("./util"),a=h.copy_date,u=h.last_month_no_later_than,r=h.ONE_DAY,l=function(t,e){var i,n,r,s,o;for(o=u(new Date(t)),r=u(new Date(e)),s=a(r),r.setUTCMonth(r.getUTCMonth()+1),n=[],i=o;;)if(n.push(a(i)),i.setUTCMonth(i.getUTCMonth()+1),i&gt;r)break;return n},n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="DaysTicker",e.prototype.initialize=function(t,i){var n,s;return t.num_minor_ticks=0,e.__super__.initialize.call(this,t,i),n=this.get("days"),s=n.length&gt;1?(n[1]-n[0])*r:31*r,this.set("interval",s)},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,s,u,h,c,p,d;return p=l(t,e),u=this.get("days"),h=function(t){return function(t,e){var i,n,r,s,o,l;for(i=[],o=0,l=u.length;l&gt;o;o++)n=u[o],r=a(t),r.setUTCDate(n),s=new Date(r.getTime()+e/2),s.getUTCMonth()===t.getUTCMonth()&amp;&amp;i.push(r);return i}}(this),c=this.get("interval"),s=o.flatten(function(){var t,e,i;for(i=[],t=0,e=p.length;e&gt;t;t++)r=p[t],i.push(h(r,c));return i}()),n=o.invoke(s,"getTime"),d=o.filter(n,function(i){return i&gt;=t&amp;&amp;e&gt;=i}),{major:d,minor:[]}},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{toString_properties:["days"]})},e}(s.Model),e.exports={Model:n}},{"./single_interval_ticker":223,"./util":224,underscore:92}],217:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("./abstract_ticker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="FixedTicker",e.prototype.get_ticks_no_defaults=function(t,e,i){return{major:this.get("ticks"),minor:[]}},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{ticks:[]})},e}(n.Model),e.exports={Model:r}},{"./abstract_ticker":207,underscore:92}],218:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),r=t("../common/has_properties"),a=t("../common/logging").logger,n=t("./basic_tick_formatter"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="LogTickFormatter",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.basic_formatter=new n.Model,null==this.get("ticker")?a.warn("LogTickFormatter not configured with a ticker, using default base of 10 (labels will be incorrect if ticker base is not 10)"):void 0},e.prototype.format=function(t){var e,i,n,r,s,o;if(0===t.length)return[];for(e=null!=this.get("ticker")?this.get("ticker").get("base"):10,o=!1,r=new Array(t.length),i=n=0,s=t.length;s&gt;=0?s&gt;n:n&gt;s;i=s&gt;=0?++n:--n)if(r[i]=e+"^"+Math.round(Math.log(t[i])/Math.log(e)),i&gt;0&amp;&amp;r[i]===r[i-1]){o=!0;break}return o&amp;&amp;(r=this.basic_formatter.format(t)),r},e}(r),e.exports={Model:s}},{"../common/has_properties":115,"../common/logging":119,"./basic_tick_formatter":209,underscore:92}],219:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t("underscore"),n=t("./adaptive_ticker"),o=function(t,e,i){var n,r;if(s.isUndefined(e)&amp;&amp;(e=t,t=0),s.isUndefined(i)&amp;&amp;(i=1),i&gt;0&amp;&amp;t&gt;=e||0&gt;i&amp;&amp;e&gt;=t)return[];for(r=[],n=t;i&gt;0?e&gt;n:n&gt;e;)r.push(n),n+=i;return r},r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="LogTicker",e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j;if(A=this.get("num_minor_ticks"),T=[],0&gt;=t&amp;&amp;(t=1),t&gt;e&amp;&amp;(E=[e,t],t=E[0],e=E[1]),n=this.get("base"),k=Math.log(t)/Math.log(n),w=Math.log(e)/Math.log(n),x=w-k,2&gt;x){if(c=this.get_interval(t,e,i),I=Math.floor(t/c),r=Math.ceil(e/c),u=s.isNaN(I)||s.isNaN(r)?[]:s.range(I,r+1),z=function(){var t,e,i;for(i=[],t=0,e=u.length;e&gt;t;t++)l=u[t],0!==l&amp;&amp;i.push(l*c);return i}(),A&gt;1){for(C=c/A,D=function(){var t,e,i;for(i=[],h=t=1,e=A;e&gt;=1?e&gt;=t:t&gt;=e;h=e&gt;=1?++t:--t)i.push(h*C);return i}(),p=0,g=D.length;g&gt;p;p++)j=D[p],T.push(z[0]-j);for(d=0,m=z.length;m&gt;d;d++)for(R=z[d],f=0,_=D.length;_&gt;f;f++)j=D[f],T.push(R+j)}}else if(N=Math.ceil(k),a=Math.floor(w),c=Math.ceil((a-N)/9),z=o(N,a,c),(a-N)%c===0&amp;&amp;(z=z.concat([a])),z=z.map(function(t){return Math.pow(n,t)}),A&gt;1){for(C=Math.pow(n,c)/A,D=function(){var t,e,i;for(i=[],h=t=1,e=A;e&gt;=1?e&gt;=t:t&gt;=e;h=e&gt;=1?++t:--t)i.push(h*C);return i}(),M=0,v=D.length;v&gt;M;M++)j=D[M],T.push(z[0]/j);for(S=0,y=z.length;y&gt;S;S++)for(R=z[S],P=0,b=D.length;b&gt;P;P++)j=D[P],T.push(R*j)}return{major:z,minor:T}},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{mantissas:[1,5]})},e}(n.Model),e.exports={Model:r}},{"./adaptive_ticker":208,underscore:92}],220:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;o=t("underscore"),s=t("./single_interval_ticker"),h=t("./util"),a=h.copy_date,u=h.last_year_no_later_than,r=h.ONE_MONTH,l=function(t,e){var i,n,r,s;for(s=u(new Date(t)),r=u(new Date(e)),r.setUTCFullYear(r.getUTCFullYear()+1),n=[],i=s;;)if(n.push(a(i)),i.setUTCFullYear(i.getUTCFullYear()+1),i&gt;r)break;return n},n=function(t){function e(){
        return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="MonthsTicker",e.prototype.initialize=function(t,i){var n,s;return e.__super__.initialize.call(this,t,i),s=this.get("months"),n=s.length&gt;1?(s[1]-s[0])*r:12*r,this.set("interval",n)},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,s,u,h,c,p;return p=l(t,e),u=this.get("months"),h=function(t){return u.map(function(e){var i;return i=a(t),i.setUTCMonth(e),i})},s=o.flatten(function(){var t,e,i;for(i=[],t=0,e=p.length;e&gt;t;t++)r=p[t],i.push(h(r));return i}()),n=o.invoke(s,"getTime"),c=o.filter(n,function(i){return i&gt;=t&amp;&amp;e&gt;=i}),{major:c,minor:[]}},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{toString_properties:["months"]})},e}(s.Model),e.exports={Model:n}},{"./single_interval_ticker":223,"./util":224,underscore:92}],221:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),r=t("../../vendor/numeral.js-1.5.3/numeral.js"),n=t("../common/has_properties"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="NumeralTickFormatter",e.prototype.format=function(t){var e,i,n,s,o;return e=this.get("format"),n=this.get("language"),s=function(){switch(this.get("rounding")){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}.call(this),i=function(){var i,a,l;for(l=[],i=0,a=t.length;a&gt;i;i++)o=t[i],l.push(r.format(o,e,n,s));return l}()},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{format:"0,0",language:"en",rounding:"round"})},e}(n),e.exports={Model:s}},{"../../vendor/numeral.js-1.5.3/numeral.js":304,"../common/has_properties":115,underscore:92}],222:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),s=t("sprintf"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="PrintfTickFormatter",e.prototype.format=function(t){var e,i,n;return e=this.get("format"),i=function(){var i,r,o;for(o=[],i=0,r=t.length;r&gt;i;i++)n=t[i],o.push(s.sprintf(e,n));return o}()},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{format:"%s"})},e}(n),e.exports={Model:r}},{"../common/has_properties":115,sprintf:90,underscore:92}],223:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("./abstract_ticker"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="SingleIntervalTicker",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("min_interval",function(){return this.get("interval")},!0),this.add_dependencies("min_interval",this,["interval"]),this.register_property("max_interval",function(){return this.get("interval")},!0),this.add_dependencies("max_interval",this,["interval"])},e.prototype.get_interval=function(t,e,i){return this.get("interval")},e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{toString_properties:["interval"]})},e}(n.Model),e.exports={Model:r}},{"./abstract_ticker":207,underscore:92}],224:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f;h=t("underscore"),s=1,l=1e3,o=60*l,r=60*o,n=24*r,a=30*n,u=365*n,c=function(t){var e;return e=h.min(h.range(t.length),function(e){return t[e]})},p=function(t){return new Date(t.getTime())},d=function(t){return t=p(t),t.setUTCDate(1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t},f=function(t){return t=d(t),t.setUTCMonth(0),t},e.exports={argmin:c,copy_date:p,last_month_no_later_than:d,last_year_no_later_than:f,ONE_MILLI:s,ONE_SECOND:l,ONE_MINUTE:o,ONE_HOUR:r,ONE_DAY:n,ONE_MONTH:a,ONE_YEAR:u}},{underscore:92}],225:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t("underscore"),n=t("./basic_ticker"),s=t("./single_interval_ticker"),u=t("./util"),l=u.last_year_no_later_than,r=u.ONE_YEAR,o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="YearsTicker",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.set("interval",r),this.basic_ticker=new n.Model({num_minor_ticks:0})},e.prototype.get_ticks_no_defaults=function(t,e,i){var n,r,s,o,u,h;return s=l(new Date(t)).getUTCFullYear(),r=l(new Date(e)).getUTCFullYear(),h=this.basic_ticker.get_ticks_no_defaults(s,r,i).major,n=function(){var t,e,i;for(i=[],t=0,e=h.length;e&gt;t;t++)u=h[t],i.push(Date.UTC(u,0,1));return i}(),o=a.filter(n,function(i){return i&gt;=t&amp;&amp;e&gt;=i}),{major:o,minor:[]}},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{toString_properties:["years"]})},e}(s.Model),e.exports={Model:o}},{"./basic_ticker":210,"./single_interval_ticker":223,"./util":224,underscore:92}],226:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("../button_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._clicked=function(){return this.model.trigger("do")},e}(o.ButtonView),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"do",this["do"])},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(o.Model),e.exports={Model:n,View:s,ButtonView:r}},{"../button_tool":231}],227:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./action_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype["do"]=function(){return window.open(this.mget("redirect"))},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="HelpTool",e.prototype.tool_name="Help",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhDRjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhDRTIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTdFQUZCRjQ4NjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6QBYrgAAABb0lEQVR42ozTwUeEQRjH8W3bKEs6JkpESqfVpS4RHaJL2b2sLepUh3To0KFVIjp0iegQUdG21WmVvUWsKBGRlIiU7Q+IVaT0ffi9eY33peFj7cw8zzvzzEzV7v5hxGltGEUvutR3hwvs4ck/OeoET6KACrJolaz6Cprz12L6rcEOajGEFyfxtRxhDX0Yx5e3ggV8IqlgW/4J3vCKddRrLKm5894KOjGCHiVrwDZ+sKKvpRQ0pzkzuETeEqSxpT1aa8ezCmbyuEW3b0sVxaQtQT+mfINXGPT9T+n3xqnLKTYsQQseI8FtWnstYdEZs9o0eqdQZxUNSWD9YwHj36i2UyijOWQFVvmPkOR2P8qW4AwDIQma0BEyZjGlqCo9gXjA1+0ePAQExxWTtwT3KOqG/bfZ3GOL9W7ikrIe6FSsvQdswcZymrvsf0xWpIzqYauZRcIXmFBfUUea8Qobc5a2qQtiz3nVec7nGHaf868AAwDKW1RIPmvhEQAAAABJRU5ErkJggg==",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this.get("help_tooltip")})},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{help_tooltip:"Click the question mark to learn more about Bokeh plot tools.",redirect:"http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html"})},e}(n.Model),e.exports={Model:r,View:s}},{"./action_tool":226,underscore:92}],228:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;l=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/modal"),s=t("./action_tool"),u=t("./preview_save_tool_template"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.className="bk-bs-modal",e.prototype.template=u,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){return this.$el.empty(),this.$el.html(this.template()),this.$el.attr("tabindex","-1"),this.$el.on("hidden",function(t){return function(){return t.$el.modal("hide")}}(this)),this.$el.modal({show:!1})},e.prototype["do"]=function(){var t;return t=this.plot_view.canvas_view.canvas[0],this.$(".bk-bs-modal-body img").attr("src",t.toDataURL()),this.$el.modal("show")},e}(s.View),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.default_view=a,e.prototype.type="PreviewSaveTool",e.prototype.tool_name="Preview/Save",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhENjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhENzIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQ0MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjMyMUREOEQ1MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+h5hT8AAAAKBJREFUeNpiWbhs5QcGBgZ+hgECTAwDDGAO+AjEjGj4Lw5xUrAAkl3ocr8IhQAzjT3PRu0o+I+EHw65NDDqgJHrABYC8t9JMIuRmiHACS2IKC0LOKH0X1JDAOTzs0BsBs3XlIKz5KSBRCA+RQXLjwNxNDlp4BoQm9Mo7fGPZsNRB4w6YNQBI94BfwfaAV9G08CoA9DbA/xUavkMvRAACDAAaPgYViexODkAAAAASUVORK5CYII=",e}(s.Model),e.exports={Model:o,View:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./action_tool":226,"./preview_save_tool_template":229,"bootstrap/modal":295,jquery:18,underscore:92}],229:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;div class="bk-bs-modal-dialog"&gt;\n  &lt;div class="bk-bs-modal-content"&gt;\n    &lt;div class="bk-bs-modal-header"&gt;\n      &lt;button type="button" class="bk-bs-close" data-bk-bs-dismiss="modal"&gt;&amp;times;&lt;/button&gt;\n      &lt;h4 class="bk-bs-modal-title"&gt;Image Preview (right click -&gt; \'Save As\' to save PNG)&lt;/h4&gt;\n    &lt;/div&gt;\n    &lt;div class="bk-bs-modal-body"&gt;\n      &lt;img style="max-height: 300px; max-width: 400px"&gt;\n    &lt;/div&gt;\n    &lt;div class="bk-bs-modal-footer"&gt;\n      &lt;button type="button" class="bk-bs-btn bk-bs-btn-primary" data-bk-bs-dismiss="modal"&gt;Close&lt;/button&gt;\n    &lt;/div&gt;\n  &lt;/div&gt;\n&lt;/div&gt;')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],230:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("./action_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype["do"]=function(){return this.plot_view.update_range()},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.default_view=s,e.prototype.type="ResetTool",e.prototype.tool_name="Reset",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhFMDIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyOUMzNDE3NDIwQkIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOERFMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOERGMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+kFHGtQAAAm1JREFUeNrMmE9ExFEQx3+7ZYmlLrEsUUTHaEV0iESJVqduXaJr1xKlFB1bdYqoQ9GlFBFdikgpIhLd0rLqUsQqrW2G7+YZr+2993vaHT6H3583M795897M+0U2t3cCR6kh+kA3rtvx7IYoEGfEMSi4GIk4OJgg5ogRot5wzBvBhmaJnI2xqMW7dcQC8UCMWzgX4N1xjF2ALq8OctROiGkiHrhLHDpOoNOLg5xXF0Sn5lmWWCUGiBRRC1K4t4p3pLCuKyVnnXMwAUVJcT+HfFo3SH5ePGPI24TmA1Pl8rJcBGPEvsa5I6KVWDNcmQW824qxqiRhI+bi4IxmWjOYuneH/HvH2Ixmumd8bjNhhad8lxgSzrfp8jUa/L/wlI8KZ3h1T4bdB30Kb9zz4t6YbgurlIMBdoBHUQiGTBx8JYoKPqVe0ftFNInnW8J20SSCjRWM8k8E1S+TNfbZYyQ59yJEg0kjw1QyB42k1iI6ReXLfEWSK8iHJnJVsYqN8jtammuFc/FOr3juU7Ia+39uM7fiuq8aVrEqp+J6BPWzahw8IPLKdTPKUNU4yJ3Fhqb1inu0y7qeRNVYsWkWFkXPl0QZ8iVbohFmW0s2DmY1jSUX8mUPzi1rmoLML2eXsvsgR/FO3JtAix53nNZ96FDlDrasW35eKGniRRPJeywck9VdOjTdayL3Ahv5MC1/xy+Hp1Iq7BGHMHatjOEqMUgMlxmbVsaEOpMk4GSnp0VyCedyLtuMTlhRD1ZaPoRjeejoMf1HE7VUPkW04Jz7Ztm9rGHslM1Hhjl2xlCn+4muQP/77RyHdf799uli5FuAAQC+l5Sj5nEBdwAAAABJRU5ErkJggg==",e}(n.Model),e.exports={Model:r,View:s}},{"./action_tool":226}],231:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;l=t("underscore"),n=t("backbone"),a=t("./tool"),u=t("./button_tool_template"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="li",e.prototype.template=u,e.prototype.events=function(){return"ontouchstart"in document?{"touchstart .bk-toolbar-button":"_clicked"}:{"click .bk-toolbar-button":"_clicked"}},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.$el.html(this.template(this.model.attrs_and_props())),this.listenTo(this.model,"change:active",this.render),this.render()},e.prototype.render=function(){return this.model.get("active")?this.$el.children("button").addClass("active"):this.$el.children("button").removeClass("active"),this},e.prototype._clicked=function(t){},e}(n.View),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e}(a.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this.get("tool_name")})},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:!1,tool_name:this.tool_name,icon:this.icon})},e}(a.Model),e.exports={Model:r,View:o,ButtonView:s}},{"./button_tool_template":232,"./tool":247,backbone:2,underscore:92}],232:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;button type="button" class="bk-toolbar-button hover"&gt;\n  &lt;img class=\'bk-btn-icon\' src='),i.push(n(this.icon)),i.push(" /&gt;\n  &lt;span class='tip'&gt;"),i.push(n(this.tooltip)),i.push("&lt;/span&gt;\n&lt;/button&gt;\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],233:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),s=t("../../renderer/overlay/box_selection"),o=t("./select_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this._baseboint=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],null},e.prototype._pan=function(t){var e,i,n,r,s,o,a,l,u;return i=this.plot_view.canvas,n=[i.sx_to_vx(t.bokeh.sx),i.sy_to_vy(t.bokeh.sy)],s=this.plot_model.get("frame"),r=this.mget("dimensions"),o=this.model._get_dim_limits(this._baseboint,n,s,r),l=o[0],u=o[1],this.mget("overlay").set("data",{vxlim:l,vylim:u}),this.mget("select_every_mousemove")&amp;&amp;(e=null!=(a=t.srcEvent.shiftKey)?a:!1,this._select(l,u,!1,e)),null},e.prototype._pan_end=function(t){var e,i,n,r,s,o,a,l,u;return i=this.plot_view.canvas,n=[i.sx_to_vx(t.bokeh.sx),i.sy_to_vy(t.bokeh.sy)],s=this.plot_model.get("frame"),r=this.mget("dimensions"),o=this.model._get_dim_limits(this._baseboint,n,s,r),l=o[0],u=o[1],e=null!=(a=t.srcEvent.shiftKey)?a:!1,this._select(l,u,!0,e),this.mget("overlay").set("data",{}),this._baseboint=null,null},e.prototype._select=function(t,e,i,n){var r,s,o,a,l,u,h,c,p,d,f;for(c=t[0],p=t[1],d=e[0],f=e[1],null==n&amp;&amp;(n=!1),s={type:"rect",vx0:c,vx1:p,vy0:d,vy1:f},u=this.mget("renderers"),o=0,a=u.length;a&gt;o;o++)l=u[o],r=l.get("data_source"),h=r.get("selection_manager"),h.select(this,this.plot_view.renderers[l.id],s,i,n);return null!=this.mget("callback")&amp;&amp;this._emit_callback(s),this._save_geometry(s,i,n),null},e.prototype._emit_callback=function(t){var e,i,n,r,s;n=this.mget("renderers")[0],e=this.plot_model.get("canvas"),i=this.plot_model.get("frame"),t.sx0=e.vx_to_sx(t.vx0),t.sx1=e.vx_to_sx(t.vx1),t.sy0=e.vy_to_sy(t.vy0),t.sy1=e.vy_to_sy(t.vy1),r=i.get("x_mappers")[n.get("x_range_name")],s=i.get("y_mappers")[n.get("y_range_name")],t.x0=r.map_from_target(t.vx0),t.x1=r.map_from_target(t.vx1),t.y0=s.map_from_target(t.vy0),t.y1=s.map_from_target(t.vy1),this.mget("callback").execute(this.model,{geometry:t})},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="BoxSelectTool",e.prototype.tool_name="Box Select",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCRjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBDMDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE4NUM0MEJEMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJFMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+hdQ7dQAAAJdJREFUeNpiXLhs5X8GBPgIxAJQNjZxfiD+wIAKGCkUZ0SWZGIYZIAF3YVoPkEHH6kojhUMyhD6jydEaAlgaWnwh9BAgf9DKpfxDxYHjeay0Vw2bHMZw2guG81lwyXKRnMZWlt98JdDTFAX/x9NQwPkIH6kGMAVEyjyo7lstC4jouc69Moh9L42rlyBTZyYXDS00xBAgAEAqsguPe03+cYAAAAASUVORK5CYII=",e.prototype.event_type="pan",e.prototype.default_order=30,e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip(this.get("tool_name"),this._check_dims(this.get("dimensions"),"box select tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"]),this.set("overlay",new s.Model),n=this.get("plot").get("renderers"),n.push(this.get("overlay")),this.get("plot").set("renderers",n)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"],select_every_mousemove:!1})},e}(o.Model),e.exports={Model:n,View:r}},{"../../renderer/overlay/box_selection":194,"./select_tool":240,underscore:92}],234:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../../renderer/overlay/box_selection"),o=t("./gesture_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this._baseboint=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],null},e.prototype._pan=function(t){var e,i,n,r,s,o,a;return e=this.plot_view.canvas,i=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],r=this.plot_model.get("frame"),n=this.mget("dimensions"),s=this.model._get_dim_limits(this._baseboint,i,r,n),o=s[0],a=s[1],this.mget("overlay").set("data",{vxlim:o,vylim:a}),null},e.prototype._pan_end=function(t){var e,i,n,r,s,o,a;return e=this.plot_view.canvas,i=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],r=this.plot_model.get("frame"),n=this.mget("dimensions"),s=this.model._get_dim_limits(this._baseboint,i,r,n),o=s[0],a=s[1],this._update(o,a),this.mget("overlay").set("data",{}),this._baseboint=null,null},e.prototype._update=function(t,e){var i,n,r,s,o,a,l,u,h,c,p;if(!(Math.abs(t[1]-t[0])&lt;=5||Math.abs(e[1]-e[0])&lt;=5)){h={},s=this.plot_view.frame.get("x_mappers");for(r in s)n=s[r],o=n.v_map_from_target(t,!0),u=o[0],i=o[1],h[r]={start:u,end:i};c={},a=this.plot_view.frame.get("y_mappers");for(r in a)n=a[r],l=n.v_map_from_target(e,!0),u=l[0],i=l[1],c[r]={start:u,end:i};return p={xrs:h,yrs:c},this.plot_view.update_range(p)}},e}(o.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="BoxZoomTool",e.prototype.tool_name="Box Zoom",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhEMjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhEMzIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQwMjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjMyMUREOEQxMjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+a2Q0KAAAAmVJREFUeNq8V19EpFEUvzOtmKfpJSJKDL2WiLJExKaUEq0eeikiaolZLT2lVUpPydqHqIlIo1ilFOmphxj1miKWWHppnobIt7+zeyZ3jjvz/bnf9OPHd8/9d77z3XN+94ts7ew6SqksWKX+w1GFiLjYdVSAfeAQ2Ag2sf0GvAXT4C/wle1x3lt9UOGBNk6BrYa+FuYIeAWOsmNviGqe6W+q081OmAGvizgh0cpjZ3RjGBFZBpMG+xn4wM8NYJfWFwNXwXrwS96RiIUTwwYn6AxMgb+FvQ5c4zOUxzR4Ce5GLZyo5LfSsQP2G5xQbKO+bWFfoLWinA1OAEcoM2rFRpMe5sloJWgtm4j0iPZcPhVdkOWxBWvZONIi2uc+5sqxbTaO1Ij2o4+5T6JdGy1SF4Kg2mLsi01E/oh2l4+5HTKaNlmTEe0ka40XyNqTsYnIkWiTwC16rMRNci0bR0hJ7w1veizqy9uB5D4ZDZKBtI3WvLCCJoT9E3jHny4j1DdmWOcbrWWjNYuGoqaL2kdmKayTztio7yzTJprz4A/9PuI3a8YMh5IKVC9fetxAY5rB79pNzXdESMJ/GrSjm8/DCTjAgpjQZCDDh5I+w4HuQBBHOsE9USty4KB2KF85m9J+v5XX9KXr3T7fQZS26WefYlcU+ayJlxhDIT40jBnn21hQOPrfgFtEqAhdGETqK7gZ4h/Av4g4Jf5TUoYquQSuqJDhFpEJca3b4EoYOtyyhrSkHTzlcj4R4t4FZ9NL+j6yMzlT/ocZES9aky3D3r6y5t2gaw3xWXgs7XFhdyzsgSpr2fFXgAEAmp2J9DuX/WgAAAAASUVORK5CYII=",e.prototype.event_type="pan",e.prototype.default_order=20,e.prototype.initialize=function(t,i){var r;return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip(this.get("tool_name"),this._check_dims(this.get("dimensions"),"box zoom tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"]),this.set("overlay",new n.Model),r=this.get("plot").get("renderers"),r.push(this.get("overlay")),this.get("plot").set("renderers",r)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"]})},e}(o.Model),e.exports={Model:r,View:s}},{"../../renderer/overlay/box_selection":194,"./gesture_tool":235,underscore:92}],235:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../button_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._clicked=function(){return this.model.set("active",!0)},e}(n.ButtonView),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{event_type:this.event_type,default_order:this.default_order})},e}(n.Model),e.exports={Model:r,View:o,ButtonView:s}},{"../button_tool":231,underscore:92}],236:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),s=t("../../renderer/overlay/poly_selection"),o=t("./select_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"change:active",this._active_change),this.data=null},e.prototype._active_change=function(){return this.mget("active")?void 0:this._clear_overlay()},e.prototype._keyup=function(t){return 13===t.keyCode?this._clear_overlay():void 0},e.prototype._pan_start=function(t){var e,i,n;return e=this.plot_view.canvas,i=e.sx_to_vx(t.bokeh.sx),n=e.sy_to_vy(t.bokeh.sy),this.data={vx:[i],vy:[n]},null},e.prototype._pan=function(t){var e,i,n,r,s,o,l;return i=this.plot_view.canvas,o=i.sx_to_vx(t.bokeh.sx),l=i.sy_to_vy(t.bokeh.sy),this.data.vx.push(o),this.data.vy.push(l),r=this.mget("overlay"),n={},n.vx=a.clone(this.data.vx),n.vy=a.clone(this.data.vy),r.set("data",n),this.mget("select_every_mousemove")?(e=null!=(s=t.srcEvent.shiftKey)?s:!1,this._select(this.data.vx,this.data.vy,!1,e)):void 0},e.prototype._pan_end=function(t){var e,i;return this._clear_overlay(),e=null!=(i=t.srcEvent.shiftKey)?i:!1,this._select(this.data.vx,this.data.vy,!0,e)},e.prototype._clear_overlay=function(){return this.mget("overlay").set("data",null)},e.prototype._select=function(t,e,i,n){var r,s,o,a,l,u,h;for(s={type:"poly",vx:t,vy:e},u=this.mget("renderers"),o=0,a=u.length;a&gt;o;o++)l=u[o],r=l.get("data_source"),h=r.get("selection_manager"),h.select(this,this.plot_view.renderers[l.id],s,i,n);return this._save_geometry(s,i,n),null},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="LassoSelectTool",e.prototype.tool_name="Lasso Select",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAQCAYAAAAbBi9cAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGlSURBVDiNldNNiM1hFMfxz/3PHQqxoCgWYmNDk0jyUqwsuP/719xnPVkQStl4mYWpsVXKQkYpL1m4qWmyYElZkDLKyiSbkdKYNBovo8m1uM+d/nPd/2TO6nn5nW+/c57zlCwQ9eGRBPuwF7uxAUswjme4V6tWxqFUAFiLXlSxDaswiz9RkqAL79Ffq1YeldoAXTiNs9iIn3iN0Zj0OULWYycORU1fKQdZh5s4ggncxX28DVk6W+D8MG5hrJQr5Ql68AADIUvfFTZvPuw5VpZjOVcjZCBk6eD/ACJkF7ZgMMEJVHB7kZDNeIhXGEpwEg3cWASkFy9i3vFatTJTxvJ4sAcvo3ANpkOW/sold+MgTsUKRlGbm6P68Mh59GvOSR2/cVTzqYfifisOYDtm4vmlkKVTjUZDC5TgIi5gBX7gG7qxVHNuluEjHuN6yNI3LadzoJz1HejDMXzP3X2Njp+GLJ1o79c/oBzwGgK+YHV0cyVk6eV27YKgCNuEKZzBubjeH7J0rAiUdAKFLP0QsnQSdzCp+Wl7Omlb0RGUi0+YRlmz+YXxF2YZkqkolYwKAAAAAElFTkSuQmCC",e.prototype.event_type="pan",e.prototype.default_order=12,e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.set("overlay",new s.Model({line_width:2})),n=this.get("plot").get("renderers"),n.push(this.get("overlay")),this.get("plot").set("renderers",n)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{select_every_mousemove:!0})},e}(o.Model),e.exports={Model:n,View:r}},{"../../renderer/overlay/poly_selection":195,"./select_tool":240,underscore:92}],237:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),
        n=t("./gesture_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._pan_start=function(t){var e,i,n,r,s,o;return this.last_dx=0,this.last_dy=0,e=this.plot_view.canvas,i=this.plot_view.frame,s=e.sx_to_vx(t.bokeh.sx),o=e.sy_to_vy(t.bokeh.sy),i.contains(s,o)||(n=i.get("h_range"),r=i.get("v_range"),(s&lt;n.get("start")||s&gt;n.get("end"))&amp;&amp;(this.v_axis_only=!0),(o&lt;r.get("start")||o&gt;r.get("end"))&amp;&amp;(this.h_axis_only=!0)),this.plot_view.interactive_timestamp=Date.now()},e.prototype._pan=function(t){return this._update(t.deltaX,-t.deltaY),this.plot_view.interactive_timestamp=Date.now()},e.prototype._pan_end=function(t){return this.h_axis_only=!1,this.v_axis_only=!1},e.prototype._update=function(t,e){var i,n,r,s,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A;r=this.plot_view.frame,u=t-this.last_dx,h=e-this.last_dy,s=o.clone(r.get("h_range")),x=s.get("start")-u,w=s.get("end")-u,T=o.clone(r.get("v_range")),D=T.get("start")-h,C=T.get("end")-h,i=this.mget("dimensions"),i.indexOf("width")&gt;-1&amp;&amp;!this.v_axis_only?(y=x,b=w,m=-u):(y=s.get("start"),b=s.get("end"),m=0),i.indexOf("height")&gt;-1&amp;&amp;!this.h_axis_only?(k=D,M=C,_=h):(k=T.get("start"),M=T.get("end"),_=0),this.last_dx=t,this.last_dy=e,S={},p=r.get("x_mappers");for(l in p)a=p[l],d=a.v_map_from_target([y,b],!0),v=d[0],n=d[1],S[l]={start:v,end:n};A={},f=r.get("y_mappers");for(l in f)a=f[l],g=a.v_map_from_target([k,M],!0),v=g[0],n=g[1],A[l]={start:v,end:n};return c={xrs:S,yrs:A,sdx:m,sdy:_},this.plot_view.update_range(c),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="PanTool",e.prototype.tool_name="Pan",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhEODIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCRTI5MDhEOTIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOEQ2MjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOEQ3MjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+OXzPwwAAAKNJREFUeNrsVsEKgCAM3cyj0f8fuwT9XdEHrLyVIOKYY4kPPDim0+fenF+3HZi4nhFec+Rs4oCPAALwjDVUsKMWA6DNAFX6YXcMYIERdRWIYBzAZbKYGsSKex6mVUAK8Za0TphgoFTbpSvlx3/I0EQOILO2i/ibegLk/mgVONM4JvuBVizgkGH3XTGrR/xlV0ycbO8qCeMN54wdtVQwSTFwCzAATqEZUn8W8W4AAAAASUVORK5CYII=",e.prototype.event_type="pan",e.prototype.default_order=10,e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip("Pan",this._check_dims(this.get("dimensions"),"pan tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"])},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"]})},e}(n.Model),e.exports={Model:r,View:s}},{"./gesture_tool":235,underscore:92}],238:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),s=t("../../renderer/overlay/poly_selection"),o=t("./select_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"change:active",this._active_change),this.data=null},e.prototype._active_change=function(){return this.mget("active")?void 0:this._clear_data()},e.prototype._keyup=function(t){return 13===t.keyCode?this._clear_data():void 0},e.prototype._doubletap=function(t){var e,i;return e=null!=(i=t.srcEvent.shiftKey)?i:!1,this._select(this.data.vx,this.data.vy,!0,e),this._clear_data()},e.prototype._clear_data=function(){return this.data=null,this.mget("overlay").set("data",null)},e.prototype._tap=function(t){var e,i,n,r,s;return e=this.plot_view.canvas,r=e.sx_to_vx(t.bokeh.sx),s=e.sy_to_vy(t.bokeh.sy),null==this.data?(this.data={vx:[r],vy:[s]},null):(this.data.vx.push(r),this.data.vy.push(s),n=this.mget("overlay"),i={},i.vx=a.clone(this.data.vx),i.vy=a.clone(this.data.vy),n.set("data",i))},e.prototype._select=function(t,e,i,n){var r,s,o,a,l,u,h;for(s={type:"poly",vx:t,vy:e},u=this.mget("renderers"),o=0,a=u.length;a&gt;o;o++)l=u[o],r=l.get("data_source"),h=r.get("selection_manager"),h.select(this,this.plot_view.renderers[l.id],s,i,n);return this._save_geometry(s,i,n),null},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="PolySelectTool",e.prototype.tool_name="Poly Select",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAQCAYAAAAbBi9cAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGdSURBVDiNjdO/axRBGMbxT8IiwSBBi4AiBBVRJE3UIqIIilrYLGuxMYo/AimsrNTCWkH/AbFR78Dc5dZiWW3SKQaVaKWlIFEiithooaiIZ7EbPM7b3D0wzLzzvvOdZ5iZviTNmnKN4gE2YSteYjW24A2+Yh/ux1G4uVij2cyXB0V8AYuYwBq8x5Ei/wEH8LNoHRVgWxyFr4v4RUvuScv4ESRpFhTQ/9SPmSTNdpbt1KZhXCsD7cZQj6AB7OqUCDCCTz2C3mF/maNnGOsRtB53y0BD/t1eN32T32pH0HY870ZI0mwMFZwvA73F+AqA4STNduCS3PlSpdbY0F4XFKAfJZA9mMO9OAonl+crtcZcpdaYP3ti4mqro0Py79AKOJqk2TwGMRVH4XTbHqtwpVJrVKv1ZGDZ0SIO4mGSZqNYh2m8wtM4Cr93MPur6E9jY7WenAvkz38pSbO9eIzrcRQe63TUFg3iDz7iIj73Yxa3i4LxOAovr0S4MzPbhzoOYy1GzkzGXwLcxC0sxFH4u4sTUyePN3EDKrXGAk4h/QvU5XGB9rRYawAAAABJRU5ErkJggg==",e.prototype.event_type="tap",e.prototype.default_order=11,e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.set("overlay",new s.Model),n=this.get("plot").get("renderers"),n.push(this.get("overlay")),this.get("plot").set("renderers",n)},e}(o.Model),e.exports={Model:n,View:r}},{"../../renderer/overlay/poly_selection":195,"./select_tool":240,underscore:92}],239:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./gesture_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.className="bk-resize-popup",e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),i=this.plot_view.$el.find("div.bk-canvas-wrapper"),this.$el.appendTo(i),this.$el.hide(),this.active=!1,null},e.prototype.activate=function(){return this.active=!0,this.render(),null},e.prototype.deactivate=function(){return this.active=!1,this.render(),null},e.prototype.render=function(t){var e,i,n,r;return this.active?(e=this.plot_view.canvas,i=this.plot_view.frame,n=e.vx_to_sx(i.get("h_range").get("end")-40),r=e.vy_to_sy(i.get("v_range").get("start")+40),this.$el.attr("style","position:absolute; top:"+r+"px; left:"+n+"px;"),this.$el.show()):this.$el.hide(),this},e.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this.ch=e.get("height"),this.cw=e.get("width"),this.plot_view.interactive_timestamp=Date.now(),null},e.prototype._pan=function(t){return this._update(t.deltaX,t.deltaY),this.plot_view.interactive_timestamp=Date.now(),null},e.prototype._update=function(t,e){var i;return this.plot_view.pause(),i=this.plot_view.canvas,i._set_dims([this.cw+t,this.ch+e]),this.plot_view.unpause(),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="ResizeTool",e.prototype.tool_name="Resize",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCQjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBCQzIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQ4MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJBMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+nIbQ0AAAAIJJREFUeNpiXLhs5X8G7ICRgTYAq31MDIMEwBzyERoCyJhWAN2ej4MqRFiIjUMahczgSyMsNE4PxACBQZlrcAFsuYkcLECpQwZNiIw6ZNQhow4ZdcioQ0YdMuoQerRZkQE/vdqwgypqQD7+MIBuANn9f1CnEcbRXIMjd4zM0QCAAAMAbdAPQaze1JcAAAAASUVORK5CYII=",e.prototype.event_type="pan",e.prototype.default_order=40,e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{level:"overlay",data:{}})},e}(n.Model),e.exports={Model:r,View:s}},{"./gesture_tool":235,underscore:92}],240:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),a=t("../../common/logging").logger,n=t("./gesture_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._keyup=function(t){var e,i,n,r,s,o,a;if(27===t.keyCode){for(s=this.mget("renderers"),o=[],i=0,n=s.length;n&gt;i;i++)r=s[i],e=r.get("data_source"),a=e.get("selection_manager"),o.push(a.clear());return o}},e.prototype._save_geometry=function(t,e,i){var n,r,s,l,u,h,c,p;if(n=o.clone(t),c=this.plot_view.frame.get("x_mappers")["default"],p=this.plot_view.frame.get("y_mappers")["default"],"point"===n.type)n.x=c.map_from_target(n.vx),n.y=p.map_from_target(n.vy);else if("rect"===n.type)n.x0=c.map_from_target(n.vx0),n.y0=p.map_from_target(n.vy0),n.x1=c.map_from_target(n.vx1),n.y1=p.map_from_target(n.vy1);else if("poly"===n.type)for(n.x=new Array(n.vx.length),n.y=new Array(n.vy.length),s=l=0,u=n.vx.length;u&gt;=0?u&gt;l:l&gt;u;s=u&gt;=0?++l:--l)n.x[s]=c.map_from_target(n.vx[s]),n.y[s]=p.map_from_target(n.vy[s]);else a.debug("Unrecognized selection geometry type: '"+n.type+"'");return e&amp;&amp;(h=this.plot_model.get("tool_events"),i?(r=h.get("geometries"),r.push(n)):r=[n],h.set("geometries",r),h.save()),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.initialize=function(t,i){var n,r,s,o,l,u;for(e.__super__.initialize.call(this,t,i),o=this.get("names"),u=this.get("renderers"),0===u.length&amp;&amp;(n=this.get("plot").get("renderers"),u=function(){var t,e,i;for(i=[],t=0,e=n.length;e&gt;t;t++)l=n[t],"GlyphRenderer"===l.type&amp;&amp;i.push(l);return i}()),o.length&gt;0&amp;&amp;(u=function(){var t,e,i;for(i=[],t=0,e=u.length;e&gt;t;t++)l=u[t],o.indexOf(l.get("name"))&gt;=0&amp;&amp;i.push(l);return i}()),this.set("renderers",u),a.debug("setting "+u.length+" renderers for "+this.type+" "+this.id),r=0,s=u.length;s&gt;r;r++)l=u[r],a.debug(" - "+l.type+" "+l.id);return null},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{renderers:[],names:[],multi_select_modifier:"shift"})},e}(n.Model),e.exports={Model:r,View:s}},{"../../common/logging":119,"./gesture_tool":235,underscore:92}],241:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./select_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype._tap=function(t){var e,i,n,r,s;return i=this.plot_view.canvas,r=i.sx_to_vx(t.bokeh.sx),s=i.sy_to_vy(t.bokeh.sy),e=null!=(n=t.srcEvent.shiftKey)?n:!1,this._select(r,s,!0,e)},e.prototype._select=function(t,e,i,n){var r,s,o,a,l,u,h,c;for(o={type:"point",vx:t,vy:e},r=this.mget("callback"),h=this.mget("renderers"),a=0,l=h.length;l&gt;a;a++)u=h[a],s=u.get("data_source"),c=s.get("selection_manager"),c.select(this,this.plot_view.renderers[u.id],o,i,n),null!=r&amp;&amp;r.execute(s);return this._save_geometry(o,i,n),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.default_view=s,e.prototype.type="TapTool",e.prototype.tool_name="Tap",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAHWSURBVDiNbdJfaI9RGAfwz/7JNlLGjdxLyDU2u0EIx6uc7UIpF5pIU1OSGzfkUhvSiuSCvZbXGxeT0IxcSYlIiVxSJmqZzbj4nbafcer0nM75Ps/5Pt/vU2PWyouyAbsRsTJdv0SOGzELE9X4mlnJ7TiOtentV3qqS/EJTsUsDP9TIC/KvTiHZgyhwHP8Tkx2Ygd+4EDMwpXpAnlRtuJu+vFozMLF2a0lXAfOowkbYxYe1+RF2Yhb2IT9MQv9eVHOxTGsSwxGcCZm4WdelLuSHg8QatGZeh5KyQtxB/NwCIfRgtt5US6IWbiJgZTTWZ/UrsG1xLQHL2IWeqrYd+dF2YdunMRVBMRaLMckXiVwK3r/I0E/tqXzW0xgdX0VYCrFOjO2Va+PuJTO4/iE8Xq8RhuWqdj2FAdxpDo7ZmEUF/KiXIwxrMJUvYqibSrTdx2nUeZFeRaX8SFm4Suk5PcYiVnYAtU2bkBHzMJgXpTNOIHtqfdeLMUS3Mcz7GFmkNbjHr6jK2ZhsJp+XpQt6ec6jKIB86cLJNA+9GFOamsAb1Qc+qJic2PSagzv/iqQirQn6mvS1SQ+Y0WawkXJjUcxC5uhdpbSw9iKLjzEt7QnE6QpxWmb/wA4250STmTc7QAAAABJRU5ErkJggg==",e.prototype.event_type="tap",e.prototype.default_order=10,e}(n.Model),e.exports={Model:r,View:s}},{"./select_tool":240,underscore:92}],242:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),n=t("./gesture_tool"),("undefined"==typeof a||null===a)&amp;&amp;(a={}),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._pinch=function(t){var e;return e=t.scale&gt;=1?20*(t.scale-1):-20/t.scale,t.bokeh.delta=e,this._scroll(t)},e.prototype._scroll=function(t){var e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E;s=this.plot_model.get("frame"),a=s.get("h_range"),x=s.get("v_range"),k=this.plot_view.canvas.sx_to_vx(t.bokeh.sx),D=this.plot_view.canvas.sy_to_vy(t.bokeh.sy),(k&lt;a.get("start")||k&gt;a.get("end"))&amp;&amp;(w=!0),(D&lt;x.get("start")||D&gt;x.get("end"))&amp;&amp;(o=!0),u=navigator.userAgent.toLowerCase().indexOf("firefox")&gt;-1?20:1,e=null!=(null!=(c=t.originalEvent)?c.deltaY:void 0)?-t.originalEvent.deltaY*u:t.bokeh.delta,r=this.mget("speed")*e,r&gt;.9?r=.9:-.9&gt;r&amp;&amp;(r=-.9),C=a.get("start"),M=a.get("end"),S=x.get("start"),T=x.get("end"),i=this.mget("dimensions"),i.indexOf("width")&gt;-1&amp;&amp;!w?(_=C-(C-k)*r,v=M-(M-k)*r):(_=C,v=M),i.indexOf("height")&gt;-1&amp;&amp;!o?(y=S-(S-D)*r,b=T-(T-D)*r):(y=S,b=T),A={},p=s.get("x_mappers");for(h in p)l=p[h],d=l.v_map_from_target([_,v],!0),m=d[0],n=d[1],A[h]={start:m,end:n};P={},f=s.get("y_mappers");for(h in f)l=f[h],g=l.v_map_from_target([y,b],!0),m=g[0],n=g[1],P[h]={start:m,end:n};return E={xrs:A,yrs:P,factor:r},this.plot_view.update_range(E),this.plot_view.interactive_timestamp=Date.now(),null},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=s,e.prototype.type="WheelZoomTool",e.prototype.tool_name="Wheel Zoom",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAgCAYAAABpRpp6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhEQzIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCRTI5MDhERDIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOERBMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOERCMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+sFLapAAAA8xJREFUeNq8WH9k1VEU/+67ecTYxKM8xlJiifKIMUqUKMvy1CqbEmUxJZbSlGXTLBuJpYi18dpqStOzacT+WcTXpkiRUjziETEeY9bnzHm5O53vj/te7fDx3r3fc+/9fM/3nHPPvWWP0mOOIlVAC3AQqOc2SRZ4A9Cg58CSNrj1+FEnSIYfPynHTyOQArYCO/jRPPAJGAcmMM9f87vKfG3AF+AucMAgS5LgRZ4CH/mFrARkieAs8Aw4ASSBckaS++jZLOv6El4HjAKDwPoIa28GXgLdFmQv4WcO2BVBnXTmeIxK+D5wzLGXa8D1CGT78NPPhjFlGnjAmBbPSLefx65IBf+eZZ81hfznIfsr+W0eaACa2G3MhbuAt8CUD1kyRIfongDa4affhW4Nu2Oj0d2Bfg+6Y2UIukr2x4ShkAMOMQlNyLcmgVqj7z2wk17UDDosFOOYMOdPQ+dkyBcZFkb8DGxz2ckTwrKHA8g6HMn7gQWjbzsHqZSUmJ8sej6Cq7WzrhkzKVeYnmSEXSBM6I17RZ+WNWRfJ6z7K2xy1umUc7lGDizIkDL+AsNRXs6U3YpOUrRfWwS01K2noIuLzg+iTcFSiFLKlQPi8+aNAIwri24QlstaEM6JdoIsHBOdiyJl9RntfiXazUljEdJb3IKw1F10Q/Krtin0KaSD5Ido77MYK10sG0S4ByjzwW2LRT3pYlxLRBFpGM91/r9kRJuC/FbEnVEmhEwQYRqw7IMuC8LjnAKllSeBhEI0Qc8U636luWinWxYPqoFCnuxmX16VR9ldCvINqOH/NK5alpe8NY8qL5Nnl/GMFJhU6g2SZtqaw1xCkrss2pGEFhLp0CxuGow83+BDdoDn+FP8hJFeYusNlODL9LI/ubKLRRxDKfamuaNWRBx4o9TI49NDD9yjSdn9NKFa5jTGrdrIKpw1FJCtU8h6Rp/HwbVyBNOOSGtKGHJKtGdAao/NBO4aWrecS9mwQiuU8KLoi1nOEfepQ6TsFXVxnnO0NWFZEdVZjK8RaSgXoHtGbihwh4ViCM+LvhaL8VJ3xscdqnwOCk4xhDNKYNRHPOZfCakbzGOS+SWyloX8KsIj4lNScLwIuTsgsq+ASnFkmor4JdJayopKeEHZGOJ8OzMoatIkF0XvxIm5cGhcUtyhVqlrh4rNNoU8fI+jOCUs3cYIk14L63py9yo2D7fyBZ+t3AGuWgTmiFOCuCIvHuHFo6QbCpxm4GLIxZ+880j/K8Lm593EVZqnXF9N8UXIFt7zgwoeunDZCJzju44M+nKlEP4twAAD1RclkNDukAAAAABJRU5ErkJggg==",e.prototype.event_type="ontouchstart"in a?"pinch":"scroll",e.prototype.default_order=10,e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip(this.get("tool_name"),this._check_dims(this.get("dimensions"),"wheel zoom tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"])},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"],speed:1/600})},e}(n.Model),e.exports={Model:r,View:s}},{"./gesture_tool":235,underscore:92}],243:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),o=t("../../renderer/annotation/span"),s=t("./inspect_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._move=function(t){var e,i,n,r,s,o,a,l,u,h;if(this.mget("active")){for(n=this.plot_model.get("frame"),e=this.plot_model.get("canvas"),u=e.sx_to_vx(t.bokeh.sx),h=e.sy_to_vy(t.bokeh.sy),o=this.mget("dimensions"),a=[],r=0,s=o.length;s&gt;r;r++)i=o[r],l=this.mget("spans")[i],n.contains(u,h)?"width"===i?a.push(l.set("location",h)):a.push(l.set("location",u)):a.push(l.unset("location"));return a}},e.prototype._move_exit=function(t){var e,i,n,r,s,o;for(r=this.mget("dimensions"),s=[],i=0,n=r.length;n&gt;i;i++)e=r[i],o=this.mget("spans")[e],s.push(o.unset("location"));return s},e}(s.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="CrosshairTool",e.prototype.tool_name="Crosshair",e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip("Crosshair",this._check_dims(this.get("dimensions"),"crosshair tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"]),this.set("spans",{width:new o.Model({dimension:"width"}),height:new o.Model({dimension:"height"})}),n=this.get("plot").get("renderers"),n.push(this.get("spans").width),n.push(this.get("spans").height),this.get("plot").set("renderers",n)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"]})},e}(s.Model),e.exports={Model:n,View:r}},{"../../renderer/annotation/span":149,"./inspect_tool":245,underscore:92}],244:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),a=t("../../renderer/annotation/tooltip"),l=t("../../util/util"),o=t("./inspect_tool"),c=t("../../common/hittest"),h=function(t){var e,i,n,r,s;return"#"===t.substr(0,1)?t:(i=/(.*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t),r=parseInt(i[2]),n=parseInt(i[3]),e=parseInt(i[4]),s=e|n&lt;&lt;8|r&lt;&lt;16,i[1]+"#"+s.toString(16))},s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.bind_bokeh_events=function(){var t,e,i,n;for(n=this.mget("renderers"),t=0,e=n.length;e&gt;t;t++)i=n[t],this.listenTo(i.get("data_source"),"inspect",this._update);return this.plot_view.canvas_view.canvas_wrapper.css("cursor","crosshair")},e.prototype._move=function(t){var e,i,n,r,s,o;if(this.mget("active")){if(e=this.plot_view.canvas,s=e.sx_to_vx(t.bokeh.sx),o=e.sy_to_vy(t.bokeh.sy),this.plot_view.frame.contains(s,o))return this._inspect(s,o);i=this.mget("ttmodels");for(n in i)r=i[n],r.clear()}},e.prototype._move_exit=function(){var t,e,i,n;t=this.mget("ttmodels"),e=[];for(i in t)n=t[i],e.push(n.clear());return e},e.prototype._inspect=function(t,e,i){var n,r,s,o,a,l,u,h;for(n={type:"point",vx:t,vy:e},"mouse"===this.mget("mode")?n.type="point":(n.type="span","vline"===this.mget("mode")?n.direction="h":n.direction="v"),r=[],s=[],u=this.mget("renderers"),o=0,a=u.length;a&gt;o;o++)l=u[o],h=l.get("data_source").get("selection_manager"),h.inspect(this,this.plot_view.renderers[l.id],n,{geometry:n});null!=this.mget("callback")&amp;&amp;this._emit_callback(n)},e.prototype._update=function(t,e,i,n,r){var s,o,a,l,u,h,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F,L,H,B,W,q,Y,V,$,U,G;if(m=r.geometry,B=null!=(M=this.mget("ttmodels")[i.model.id])?M:null,null!=B&amp;&amp;(B.clear(),C=[t["1d"].indices,t["2d"].indices],v=C[0],y=C[1],t["0d"].flag!==!1||0!==v.length||0!==y.length)){for(q=m.vx,Y=m.vy,s=this.plot_model.get("canvas"),g=this.plot_model.get("frame"),L=s.vx_to_sx(q),H=s.vy_to_sy(Y),$=g.get("x_mappers")[i.mget("x_range_name")],G=g.get("y_mappers")[i.mget("y_range_name")],V=$.map_from_target(q),U=G.map_from_target(Y),T=t["0d"].indices,b=0,x=T.length;x&gt;b;b++)_=T[b],h=i.glyph.x[_+1],p=i.glyph.y[_+1],"interp"===this.mget("line_policy")?(S=i.glyph.get_interpolation_hit(_,m),h=S[0],p=S[1],z=$.map_to_target(h),j=G.map_to_target(p)):"prev"===this.mget("line_policy")?(z=s.sx_to_vx(i.glyph.sx[_]),j=s.sy_to_vy(i.glyph.sy[_])):"next"===this.mget("line_policy")?(z=s.sx_to_vx(i.glyph.sx[_+1]),j=s.sy_to_vy(i.glyph.sy[_+1])):"nearest"===this.mget("line_policy")?(o=i.glyph.sx[_],a=i.glyph.sy[_],d=c.dist_2_pts(o,a,L,H),l=i.glyph.sx[_+1],u=i.glyph.sy[_+1],f=c.dist_2_pts(l,u,L,H),f&gt;d?(A=[o,a],O=A[0],F=A[1]):(P=[l,u],O=P[0],F=P[1],_+=1),h=i.glyph.x[_],p=i.glyph.y[_],z=s.sx_to_vx(O),j=s.sy_to_vy(F)):(E=[q,Y],z=E[0],j=E[1]),W={index:_,x:V,y:U,vx:q,vy:Y,sx:L,sy:H,data_x:h,data_y:p,rx:z,ry:j},B.add(z,j,this._render_tooltips(n,_,W));for(I=t["1d"].indices,w=0,k=I.length;k&gt;w;w++)_=I[w],h=null!=(N=i.glyph.x)?N[_]:void 0,p=null!=(R=i.glyph.y)?R[_]:void 0,"snap_to_data"===this.mget("point_policy")?(z=s.sx_to_vx(i.glyph.scx(_,L,H)),j=s.sy_to_vy(i.glyph.scy(_,L,H))):(D=[q,Y],z=D[0],j=D[1]),W={index:_,x:V,y:U,vx:q,vy:Y,sx:L,sy:H,data_x:h,data_y:p},B.add(z,j,this._render_tooltips(n,_,W));return null}},e.prototype._emit_callback=function(t){var e,i,n,r,s,o;r=this.mget("renderers")[0],n=this.plot_view.renderers[r.id].hit_test(t),e=this.plot_model.get("canvas"),i=this.plot_model.get("frame"),t.sx=e.vx_to_sx(t.vx),t.sy=e.vy_to_sy(t.vy),s=i.get("x_mappers")[r.get("x_range_name")],o=i.get("y_mappers")[r.get("y_range_name")],t.x=s.map_from_target(t.vx),t.y=o.map_from_target(t.vy),this.mget("callback").execute(this.model,{index:n,geometry:t})},e.prototype._render_tooltips=function(t,e,i){var r,s,o,a,c,p,d,f,g,m,_,v,y,b,w,x,k,M;if(k=this.mget("tooltips"),u.isString(k))return n("&lt;div&gt;").html(l.replace_placeholders(k,t,e,i));for(w=n("&lt;table&gt;&lt;/table&gt;"),c=0,d=k.length;d&gt;c;c++){if(m=k[c],p=m[0],M=m[1],v=n("&lt;tr&gt;&lt;/tr&gt;"),v.append(n("&lt;td class='bk-tooltip-row-label'&gt;").text(p+": ")),x=n("&lt;td class='bk-tooltip-row-value'&gt;&lt;/td&gt;"),M.indexOf("$color")&gt;=0){if(_=M.match(/\$color(\[.*\])?:(\w*)/),f=_[0],g=_[1],r=_[2],o=t.get_column(r),null==o){y=n("&lt;span&gt;").text(r+" unknown"),x.append(y);continue}if(a=(null!=g?g.indexOf("hex"):void 0)&gt;=0,b=(null!=g?g.indexOf("swatch"):void 0)&gt;=0,s=o[e],null==s){y=n("&lt;span&gt;(null)&lt;/span&gt;"),x.append(y);continue}a&amp;&amp;(s=h(s)),y=n("&lt;span&gt;").text(s),x.append(y),b&amp;&amp;(y=n("&lt;span class='bk-tooltip-color-block'&gt; &lt;/span&gt;"),y.css({backgroundColor:s})),x.append(y)}else M=M.replace("$~","$data_"),M=l.replace_placeholders(M,t,e,i),x.append(n("&lt;span&gt;").html(M));v.append(x),w.append(v)}return w},e}(o.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}var i;return p(e,t),e.prototype.default_view=s,e.prototype.type="HoverTool",e.prototype.tool_name="Hover Tool",i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA8ElEQVQ4T42T0Q2CMBCGaQjPxgmMG/jelIQN3ECZQEfADRwBJzBuQCC81wlkBHxvqP8lmhTsUfpSWvp/vfvvKiJn1HVdpml6dPdC38I90DSNxVobYzKMPiSm/z5AZK3t4zjOpJQ6BPECfiKAcqRUzkFmASQEhHzJOUgQ8BWyviwFsL4sBnC+LAE84YMWQnSAVCixdkvMAiB6Q7TCfJtrLq4PHkmSnHHbi0LHvOYa6w/g3kitjSgOYFyUUoWvlCPA9C1gvQfgDmiHNLZBgO8A3geZt+G6chQBA7hi/0QVQBrZ9EwQ0LbtbhgGghQAVFPAB25HmRH8b2/nAAAAAElFTkSuQmCC",e.prototype.initialize=function(t,i){var n,r,s,o,l,h,c,p;if(e.__super__.initialize.call(this,t,i),p={},l=this.get("plot").get("renderers"),c=this.get("tooltips"))for(o=this.get("renderers"),n=0,r=o.length;r&gt;n;n++)s=o[n],h=new a.Model,h.set("custom",u.isString(c)),p[s.id]=h,l.push(h);this.set("ttmodels",p),this.get("plot").set("renderers",l)},e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{tooltips:[["index","$index"],["data (x, y)","($x, $y)"],["canvas (x, y)","($sx, $sy)"]],mode:"mouse",point_policy:"snap_to_data",line_policy:"prev"})},e}(o.Model),e.exports={Model:r,View:s}},{"../../common/hittest":116,"../../renderer/annotation/tooltip":150,"../../util/util":250,"./inspect_tool":245,jquery:18,underscore:92}],245:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;l=t("underscore"),n=t("backbone"),h=t("../../common/logging").logger,a=t("../tool"),u=t("./inspect_tool_list_item_template"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.className="bk-toolbar-inspector",e.prototype.template=u,e.prototype.events={'click [type="checkbox"]':"_clicked"},e.prototype.initialize=function(t){return this.listenTo(this.model,"change:active",this.render),this.render()},e.prototype.render=function(){return this.$el.html(this.template(this.model.attrs_and_props())),this},e.prototype._clicked=function(t){var e;return e=this.model.get("active"),this.model.set("active",!e)},e}(n.View),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e}(a.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.event_type="move",e.prototype.initialize=function(t,i){var n,r,s,o,a,l,u;for(e.__super__.initialize.call(this,t,i),o=this.get("names"),l=this.get("renderers"),0===l.length&amp;&amp;(n=this.get("plot").get("renderers"),l=function(){var t,e,i;for(i=[],t=0,e=n.length;e&gt;t;t++)a=n[t],"GlyphRenderer"===a.type&amp;&amp;i.push(a);return i}()),o.length&gt;0&amp;&amp;(l=function(){var t,e,i;for(i=[],t=0,e=l.length;e&gt;t;t++)a=l[t],o.indexOf(a.get("name"))&gt;=0&amp;&amp;i.push(a);return i}()),this.set("renderers",l),h.debug("setting "+l.length+" renderers for "+this.type+" "+this.id),u=[],r=0,s=l.length;s&gt;r;r++)a=l[r],u.push(h.debug(" - "+a.type+" "+a.id));return u},e.prototype.bind_bokeh_events=function(){return e.__super__.bind_bokeh_events.call(this),this.listenTo(events,"move",this._inspect)},e.prototype._inspect=function(t,e,i){},e.prototype._exit_inner=function(){},e.prototype._exit_outer=function(){},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{renderers:[],names:[],inner_only:!0,active:!0,event_type:"move"})},e}(a.Model),e.exports={Model:r,View:o,ListItemView:s}},{"../../common/logging":119,"../tool":247,"./inspect_tool_list_item_template":246,backbone:2,underscore:92}],246:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;input type="checkbox" '),this.active&amp;&amp;i.push("checked"),i.push("&gt;"),i.push(n(this.tool_name)),i.push("&lt;/input&gt;\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],247:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),n=t("../common/has_properties"),l=t("../common/logging").logger,r=t("../common/plot_widget"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:active",function(t){return function(){return t.mget("active")?t.activate():t.deactivate()}}(this))},e.prototype.activate=function(){},e.prototype.deactivate=function(){},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._check_dims=function(t,e){var i,n,r;return n=[!1,!1],r=n[0],i=n[1],0===t.length?l.warn(e+" given empty dimensions"):1===t.length?"width"!==t[0]&amp;&amp;"height"!==t[0]&amp;&amp;l.warn(e+" given unrecognized dimensions: "+t):2===t.length?(t.indexOf("width")&lt;0||t.indexOf("height")&lt;0)&amp;&amp;l.warn(e+" given unrecognized dimensions: "+t):l.warn(e+" given more than two dimensions: "+t),t.indexOf("width")&gt;=0&amp;&amp;(r=!0),t.indexOf("height")&gt;=0&amp;&amp;(i=!0),[r,i]},e.prototype._get_dim_tooltip=function(t,e){var i,n;return n=e[0],i=e[1],n&amp;&amp;!i?t+" (x-axis)":i&amp;&amp;!n?t+" (y-axis)":t},e.prototype._get_dim_limits=function(t,e,i,n){var r,s,o,l,u,h,c,p;return o=t[0],h=t[1],l=e[0],c=e[1],r=i.get("h_range"),n.indexOf("width")&gt;=0?(u=[a.min([o,l]),a.max([o,l])],
        u=[a.max([u[0],r.get("min")]),a.min([u[1],r.get("max")])]):u=[r.get("min"),r.get("max")],s=i.get("v_range"),n.indexOf("height")&gt;=0?(p=[a.min([h,c]),a.max([h,c])],p=[a.max([p[0],s.get("min")]),a.min([p[1],s.get("max")])]):p=[s.get("min"),s.get("max")],[u,p]},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{tool_name:this.tool_name,level:"overlay"})},e}(n),e.exports={Model:s,View:o}},{"../common/has_properties":115,"../common/logging":119,"../common/plot_widget":125,underscore:92}],248:[function(t,e,i){var n,r;r=function(t,e,i,n,r,s,o,a){var l,u,h,c,p,d,f,g,m,_,v,y;return l=a*r,u=-o*s,h=o*r,c=a*s,d=.5*(n-i),p=8/3*Math.sin(.5*d)*Math.sin(.5*d)/Math.sin(d),f=t+Math.cos(i)-p*Math.sin(i),_=e+Math.sin(i)+p*Math.cos(i),m=t+Math.cos(n),y=e+Math.sin(n),g=m+p*Math.sin(n),v=y-p*Math.cos(n),[l*f+u*_,h*f+c*_,l*g+u*v,h*g+c*v,l*m+u*y,h*m+c*y]},n=function(t,e,i,n,s,o,a,l,u){var h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I,N,R,z,j,O,F;return T=s*(Math.PI/180),D=Math.sin(T),f=Math.cos(T),w=Math.abs(i),x=Math.abs(n),v=f*(t-l)*.5+D*(e-u)*.5,y=f*(e-u)*.5-D*(t-l)*.5,_=v*v/(w*w)+y*y/(x*x),_&gt;1&amp;&amp;(_=Math.sqrt(_),w*=_,x*=_),h=f/w,c=D/w,p=-D/x,d=f/x,N=h*t+c*e,j=p*t+d*e,R=h*l+c*u,O=p*l+d*u,g=(R-N)*(R-N)+(O-j)*(O-j),C=1/g-.25,0&gt;C&amp;&amp;(C=0),M=Math.sqrt(C),a===o&amp;&amp;(M=-M),z=.5*(N+R)-M*(O-j),F=.5*(j+O)+M*(R-N),S=Math.atan2(j-F,N-z),A=Math.atan2(O-F,R-z),I=A-S,0&gt;I&amp;&amp;1===a?I+=2*Math.PI:I&gt;0&amp;&amp;0===a&amp;&amp;(I-=2*Math.PI),k=Math.ceil(Math.abs(I/(.5*Math.PI+.001))),b=function(){var t,e,i;for(i=[],m=t=0,e=k;e&gt;=0?e&gt;t:t&gt;e;m=e&gt;=0?++t:--t)P=S+m*I/k,E=S+(m+1)*I/k,i.push(r(z,F,P,E,w,x,D,f));return i}()},e.exports={arc_to_bezier:n,segment_to_bezier:r}},{}],249:[function(t,e,i){var n,r,s;r=t("underscore"),n=t("jquery"),s=function(t,e){var i,r;return i=function(i){return function(){return n.contains(document.documentElement,t)?(clearInterval(r),e()):void 0}}(this),r=setInterval(i,50)},e.exports={waitForElement:s}},{jquery:18,underscore:92}],250:[function(t,e,i){var n,r,s,o,a;s=t("underscore"),r=t("sprintf"),n=t("../../vendor/numeral.js-1.5.3/numeral.js"),o=function(t){var e;return s.isNumber(t)?(e=function(){switch(!1){case Math.floor(t)!==t:return"%d";case!(Math.abs(t)&gt;.1&amp;&amp;Math.abs(t)&lt;1e3):return"%0.3f";default:return"%0.3e"}}(),r.sprintf(e,t)):""+t},a=function(t,e,i,r){return null==r&amp;&amp;(r={}),t=t.replace(/(^|[^\$])\$(\w+)/g,function(t){return function(t,e,i){return e+"@$"+i}}(this)),t=t.replace(/(^|[^@])@(?:(\$?\w+)|{([^{}]+)})(?:{([^{}]+)})?/g,function(t){return function(t,a,l,u,h){var c,p,d;return l=null!=u?u:l,d="$"===l[0]?r[l.substring(1)]:null!=(c=e.get_column(l))?c[i]:void 0,p=null==d?"???":null!=h?n.format(d,h):o(d),""+a+s.escape(p)}}(this))},e.exports={replace_placeholders:a}},{"../../vendor/numeral.js-1.5.3/numeral.js":304,sprintf:90,underscore:92}],251:[function(t,e,i){(function(i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=null!=i._bokehTest?void 0:t("jquery-ui/autocomplete"),o=t("./text_input"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.render=function(){var t;return e.__super__.render.call(this),t=this.$el.find("input"),t.autocomplete({source:this.mget("completions")}),t.autocomplete("widget").addClass("bk-autocomplete-input"),this},e}(o.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="AutocompleteInput",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{completions:[]})},e}(o.Model),e.exports={View:s,Model:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./text_input":288,"jquery-ui/autocomplete":5,underscore:92}],252:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),s=t("../common/continuum_view"),o=t("../common/has_parent"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="button",e.prototype.events={click:"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,n,r;if(t=this.mget("icon"),null!=t){l(this.views,[t]),n=this.views;for(e in n)h.call(n,e)&amp;&amp;(r=n[e],r.$el.detach())}return this.$el.empty(),this.$el.addClass("bk-bs-btn"),this.$el.addClass("bk-bs-btn-"+this.mget("type")),this.mget("disabled")&amp;&amp;this.$el.attr("disabled","disabled"),i=this.mget("label"),null!=t&amp;&amp;(this.$el.append(this.views[t.id].$el),i=" "+i),this.$el.append(document.createTextNode(i)),this},e.prototype.change_input=function(){var t;return this.mset("clicks",this.mget("clicks")+1),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e}(s),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="Button",e.prototype.default_view=r,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{clicks:0,label:"Button",icon:null,type:"default",disabled:!1})},e}(o),e.exports={Model:n,View:r}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],253:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A=function(t,e){function i(){this.constructor=t}for(var n in e)P.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},P={}.hasOwnProperty;S=t("underscore"),n=t("jquery"),null!=i._bokehTest?(r=void 0,s=void 0):(r=t("jquery-ui/autocomplete"),s=t("jquery-ui/spinner")),h=t("../common/continuum_view"),d=t("../common/has_properties"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.editorDefaults={},e.prototype.defaults=function(){return S.extend({},e.__super__.defaults.call(this),this.editorDefaults)},e}(d),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.tagName="div",e.prototype.className="bk-cell-editor",e.prototype.input=null,e.prototype.emptyValue=null,e.prototype.defaultValue=null,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,{}),this.args=t,this.model=this.args.column.editor,this.render()},e.prototype.render=function(){return this.$el.appendTo(this.args.container),this.$input=n(this.input),this.$el.append(this.$input),this.renderEditor(),this.disableNavigation(),this},e.prototype.renderEditor=function(){},e.prototype.disableNavigation=function(){return this.$input.keydown(function(t){return function(t){var e;switch(e=function(){return t.stopImmediatePropagation()},t.keyCode){case n.ui.keyCode.LEFT:return e();case n.ui.keyCode.RIGHT:return e();case n.ui.keyCode.UP:return e();case n.ui.keyCode.DOWN:return e();case n.ui.keyCode.PAGE_UP:return e();case n.ui.keyCode.PAGE_DOWN:return e()}}}(this))},e.prototype.destroy=function(){return this.remove()},e.prototype.focus=function(){return this.$input.focus()},e.prototype.show=function(){},e.prototype.hide=function(){},e.prototype.position=function(){},e.prototype.getValue=function(){return this.$input.val()},e.prototype.setValue=function(t){return this.$input.val(t)},e.prototype.serializeValue=function(){return this.getValue()},e.prototype.isValueChanged=function(){return!(""===this.getValue()&amp;&amp;null==this.defaultValue)&amp;&amp;this.getValue()!==this.defaultValue},e.prototype.applyValue=function(t,e){return this.args.grid.getData().setField(t.index,this.args.column.field,e)},e.prototype.loadValue=function(t){var e;return e=t[this.args.column.field],this.defaultValue=null!=e?e:this.emptyValue,this.setValue(this.defaultValue)},e.prototype.validateValue=function(t){var e;return this.args.column.validator&amp;&amp;(e=this.args.column.validator(t),!e.valid)?e:{valid:!0,msg:null}},e.prototype.validate=function(){return this.validateValue(this.getValue())},e}(h),k=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.emptyValue="",e.prototype.input='&lt;input type="text" /&gt;',e.prototype.renderEditor=function(){var t;return t=this.model.get("completions"),S.isEmpty(t)||(this.$input.autocomplete({source:t}),this.$input.autocomplete("widget").addClass("bk-cell-editor-completion")),this.$input.focus().select()},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input[0].defaultValue=this.defaultValue,this.$input.select()},e}(a),x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="StringEditor",e.prototype.default_view=k,e.prototype.editorDefaults={completions:[]},e}(o),C=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e}(a),M=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="TextEditor",e.prototype.default_view=C,e}(o),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input="&lt;select /&gt;",e.prototype.renderEditor=function(){var t,e,i,r;for(r=this.model.get("options"),t=0,e=r.length;e&gt;t;t++)i=r[t],this.$input.append(n("&lt;option&gt;").attr({value:i}).text(i));return this.focus()},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input.select()},e}(a),b=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="SelectEditor",e.prototype.default_view=w,e.prototype.editorDefaults={options:[]},e}(o),y=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e}(a),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="PercentEditor",e.prototype.default_view=y,e}(o),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input='&lt;input type="checkbox" value="true" /&gt;',e.prototype.renderEditor=function(){return this.focus()},e.prototype.loadValue=function(t){return this.defaultValue=!!t[this.args.column.field],this.$input.prop("checked",this.defaultValue)},e.prototype.serializeValue=function(){return this.$input.prop("checked")},e}(a),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="CheckboxEditor",e.prototype.default_view=u,e}(o),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input='&lt;input type="text" /&gt;',e.prototype.renderEditor=function(){return this.$input.spinner({step:this.model.get("step")}),this.$input.focus().select()},e.prototype.remove=function(){return this.$input.spinner("destroy"),e.__super__.remove.call(this)},e.prototype.serializeValue=function(){return parseInt(this.getValue(),10)||0},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input[0].defaultValue=this.defaultValue,this.$input.select()},e.prototype.validateValue=function(t){return isNaN(t)?{valid:!1,msg:"Please enter a valid integer"}:e.__super__.validateValue.call(this,t)},e}(a),f=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="IntEditor",e.prototype.default_view=g,e.prototype.editorDefaults={step:1},e}(o),_=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.input='&lt;input type="text" /&gt;',e.prototype.renderEditor=function(){return this.$input.spinner({step:this.model.get("step")}),this.$input.focus().select()},e.prototype.remove=function(){return this.$input.spinner("destroy"),e.__super__.remove.call(this)},e.prototype.serializeValue=function(){return parseFloat(this.getValue())||0},e.prototype.loadValue=function(t){return e.__super__.loadValue.call(this,t),this.$input[0].defaultValue=this.defaultValue,this.$input.select()},e.prototype.validateValue=function(t){return isNaN(t)?{valid:!1,msg:"Please enter a valid number"}:e.__super__.validateValue.call(this,t)},e}(a),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="NumberEditor",e.prototype.default_view=_,e.prototype.editorDefaults={step:.01},e}(o),T=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e}(a),D=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="TimeEditor",e.prototype.default_view=T,e}(o),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.emptyValue=new Date,e.prototype.input='&lt;input type="text" /&gt;',e.prototype.renderEditor=function(){return this.calendarOpen=!1,this.$input.datepicker({showOn:"button",buttonImageOnly:!0,beforeShow:function(t){return function(){return t.calendarOpen=!0}}(this),onClose:function(t){return function(){return t.calendarOpen=!1}}(this)}),this.$input.siblings(".bk-ui-datepicker-trigger").css({"vertical-align":"middle"}),this.$input.width(this.$input.width()-26),this.$input.focus().select()},e.prototype.destroy=function(){return n.datepicker.dpDiv.stop(!0,!0),this.$input.datepicker("hide"),this.$input.datepicker("destroy"),e.__super__.destroy.call(this)},e.prototype.show=function(){return this.calendarOpen&amp;&amp;n.datepicker.dpDiv.stop(!0,!0).show(),e.__super__.show.call(this)},e.prototype.hide=function(){return this.calendarOpen&amp;&amp;n.datepicker.dpDiv.stop(!0,!0).hide(),e.__super__.hide.call(this)},e.prototype.position=function(t){return this.calendarOpen&amp;&amp;n.datepicker.dpDiv.css({top:t.top+30,left:t.left}),e.__super__.position.call(this)},e.prototype.getValue=function(){return this.$input.datepicker("getDate").getTime()},e.prototype.setValue=function(t){return this.$input.datepicker("setDate",new Date(t))},e}(a),c=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return A(e,t),e.prototype.type="DateEditor",e.prototype.default_view=p,e}(o),e.exports={String:{Model:x,View:k},Text:{Model:M,View:C},Select:{Model:b,View:w},Percent:{Model:v,View:y},Checkbox:{Model:l,View:u},Int:{Model:f,View:g},Number:{Model:m,View:_},Time:{Model:D,View:T},Date:{Model:c,View:p}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,jquery:18,"jquery-ui/autocomplete":5,"jquery-ui/spinner":16,underscore:92}],254:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;c=t("underscore"),n=t("jquery"),u=t("../../vendor/numeral.js-1.5.3/numeral.js"),a=t("../common/has_properties"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.formatterDefaults={},e.prototype.format=function(t,e,i,n,r){return null===i?"":(i+"").replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;")},e.prototype.defaults=function(){return c.extend({},e.__super__.defaults.call(this),this.formatterDefaults)},e}(a),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="StringFormatter",e.prototype.formatterDefaults={font_style:null,text_align:null,text_color:null},e.prototype.format=function(t,i,r,s,o){var a,l,u,h;if(l=e.__super__.format.call(this,t,i,r,s,o),a=this.get("font_style"),u=this.get("text_align"),h=this.get("text_color"),null!=a||null!=u||null!=h){switch(l=n("&lt;span&gt;"+l+"&lt;/span&gt;"),a){case"bold":l=l.css("font-weight","bold");break;case"italic":l=l.css("font-style","italic")}null!=u&amp;&amp;(l=l.css("text-align",u)),null!=h&amp;&amp;(l=l.css("color",h)),l=l.prop("outerHTML")}return l},e}(s),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="NumberFormatter",e.prototype.formatterDefaults={font_style:null,text_align:null,text_color:null,format:"0,0",language:"en",rounding:"round"},e.prototype.format=function(t,i,n,r,s){var o,a,l;return o=this.get("format"),a=this.get("language"),l=function(){switch(this.get("rounding")){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}.call(this),n=u.format(n,o,a,l),e.__super__.format.call(this,t,i,n,r,s)},e}(h),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="BooleanFormatter",e.prototype.formatterDefaults={icon:"check"},e.prototype.format=function(t,e,i,r,s){return i?n("&lt;i&gt;").addClass(this.get("icon")).html():""},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="DateFormatter",e.prototype.formatterDefaults={format:"yy M d"},e.prototype.getFormat=function(){var t,e;return t=this.get("format"),e=function(){switch(t){case"ATOM":case"W3C":case"RFC-3339":case"ISO-8601":return"ISO-8601";case"COOKIE":return"COOKIE";case"RFC-850":return"RFC-850";case"RFC-1036":return"RFC-1036";case"RFC-1123":return"RFC-1123";case"RFC-2822":return"RFC-2822";case"RSS":case"RFC-822":return"RFC-822";case"TICKS":return"TICKS";case"TIMESTAMP":return"TIMESTAMP";default:return null}}(),null!=e?n.datepicker[e]:t},e.prototype.format=function(t,i,r,s,o){var a;return r=c.isString(r)?parseInt(r,10):r,a=n.datepicker.formatDate(this.getFormat(),new Date(r)),e.__super__.format.call(this,t,i,a,s,o)},e}(s),e.exports={String:{Model:h},Number:{Model:l},Boolean:{Model:r},Date:{Model:o}}},{"../../vendor/numeral.js-1.5.3/numeral.js":304,"../common/has_properties":115,jquery:18,underscore:92}],255:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty,p=[].indexOf||function(t){for(var e=0,i=this.length;i&gt;e;e++)if(e in this&amp;&amp;this[e]===t)return e;return-1};u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/button"),a=t("../common/continuum_view"),l=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="div",e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l;for(this.$el.empty(),this.$el.addClass("bk-bs-btn-group"),this.$el.attr("data-bk-bs-toggle","buttons"),i=this.mget("active"),l=this.mget("labels"),r=s=0,a=l.length;a&gt;s;r=++s)o=l[r],t=n('&lt;input type="checkbox"&gt;').attr({value:""+r}),p.call(i,r)&gt;=0&amp;&amp;t.prop("checked",!0),e=n('&lt;label class="bk-bs-btn"&gt;&lt;/label&gt;'),e.text(o).prepend(t),e.addClass("bk-bs-btn-"+this.mget("type")),p.call(i,r)&gt;=0&amp;&amp;e.addClass("bk-bs-active"),this.$el.append(e);return this},e.prototype.change_input=function(){var t,e,i,n;return t=function(){var t,n,r,s;for(r=this.$("input"),s=[],i=t=0,n=r.length;n&gt;t;i=++t)e=r[i],e.checked&amp;&amp;s.push(i);return s}.call(this),this.mset("active",t),this.model.save(),null!=(n=this.mget("callback"))?n.execute(this.model):void 0},e}(a),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="CheckboxButtonGroup",e.prototype.default_view=o,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{active:[],labels:[],type:"default",disabled:!1})},e}(l),e.exports={Model:s,View:o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_parent":114,"bootstrap/button":293,jquery:18,underscore:92}],256:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty,c=[].indexOf||function(t){for(var e=0,i=this.length;i&gt;e;e++)if(e in this&amp;&amp;this[e]===t)return e;return-1};l=t("underscore"),n=t("jquery"),o=t("../common/continuum_view"),a=t("../common/has_parent"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="div",e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l,u;for(this.$el.empty(),r=this.mget("active"),u=this.mget("labels"),s=o=0,l=u.length;l&gt;o;s=++o)a=u[s],e=n('&lt;input type="checkbox"&gt;').attr({value:""+s}),this.mget("disabled")&amp;&amp;e.prop("disabled",!0),c.call(r,s)&gt;=0&amp;&amp;e.prop("checked",!0),i=n("&lt;label&gt;&lt;/label&gt;").text(a).prepend(e),this.mget("inline")?(i.addClass("bk-bs-checkbox-inline"),this.$el.append(i)):(t=n('&lt;div class="bk-bs-checkbox"&gt;&lt;/div&gt;').append(i),this.$el.append(t));return this},e.prototype.change_input=function(){var t,e,i,n;return t=function(){var t,n,r,s;for(r=this.$("input"),s=[],i=t=0,n=r.length;n&gt;t;i=++t)e=r[i],e.checked&amp;&amp;s.push(i);return s}.call(this),this.mset("active",t),this.model.save(),null!=(n=this.mget("callback"))?n.execute(this.model):void 0},e}(o),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="CheckboxGroup",e.prototype.default_view=s,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:[],labels:[],inline:!1,disabled:!1})},e}(a),e.exports={Model:r,View:s}},{"../common/continuum_view":109,"../common/has_parent":114,jquery:18,underscore:92}],257:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I=function(t,e){function i(){this.constructor=t}for(var n in e)N.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},N={}.hasOwnProperty,R=function(t,e){return function(){return t.apply(e,arguments)}};M=t("underscore"),null!=i._bokehTest?(P=void 0,E=void 0):(P=t("jquery-ui/draggable"),E=t("jquery-ui/droppable")),C=t("../common/build_views"),n=t("../common/close_wrapper"),r=t("../common/collection"),h=t("../common/continuum_view"),y=t("../common/has_parent"),b=t("../common/has_properties"),A=t("./crossfilter_template"),T=t("./crossfilter_column_template"),S=t("./crossfilter_facet_template"),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.tag="div",e.prototype.attributes={"class":"bk-crossfilter"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.listenTo(this.model,"change:plot",this.render_plot),this.render(),this.render_plot()},e.prototype.render_plot=function(){var t;return null!=this.plot_view&amp;&amp;this.plot_view.remove(),t=this.mget("plot"),this.plot_view=new t.default_view({model:t}),this.$el.find(".bk-crossfilter-plot").empty(),this.$el.find(".bk-crossfilter-plot").append(this.plot_view.$el),this},e.prototype.render=function(){var t;return null!=this.columnview&amp;&amp;this.columnview.$el.detach(),this.$el.empty(),t=A(),this.$el.html(t),this.filterview=new v({el:this.$(".bk-filters"),collection:this.model.columns,model:this.model}),this.facetsview=new _({el:this.$el,model:this.model}),this.plotattributeview=new w({el:this.$el,model:this.model}),this.columnview=new a({collection:this.model.columns}),this.$(".bk-column-list").append(this.columnview.el),this.$(".bk-crossfilter-configuration").height(this.mget("height")),this.$(".bk-crossfilter-configuration").width(400),this},e}(h),c=function(t){function e(){return this._set_columns=R(this._set_columns,this),e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.default_view=p,e.prototype.type="CrossFilter",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.columns=new s,this._set_columns(),this.listenTo(this,"change:columns",this._set_columns)},e.prototype._set_columns=function(){return this.columns.reset(this.get("columns"))},e.prototype.defaults=function(){return M.extend({},e.__super__.defaults.call(this),{height:700,width:1300})},e}(y),d=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.model=c,e}(r),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"change:plot_selector",M.bind(this.render_selector,"plot")),this.listenTo(this.model,"change:x_selector",M.bind(this.render_selector,"x")),this.listenTo(this.model,"change:y_selector",M.bind(this.render_selector,"y")),this.listenTo(this.model,"change:agg_selector",M.bind(this.render_selector,"agg")),this.render_selector("plot"),this.render_selector("x"),this.render_selector("y"),this.render_selector("agg")},e.prototype.render_selector=function(t){var e,i;return i=this.$(".bk-"+t+"-selector").empty(),e=this.mget(t+"_selector"),this.plot_selector_view=new e.default_view({model:e}),i.append(this.plot_selector_view.$el)},e}(h),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.listenTo(this.collection,"all",this.render),this.render()},e.prototype.render=function(){return M.map(this.views,function(t){return t.$el.detach()}),C(this.views,this.collection.models),M.map(this.collection.models,function(t){return function(e){return t.$el.append(t.views[e.id].$el)}}(this)),this},e}(h),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.tagName="span",e.prototype.attributes={"class":"bk-facet-label"},e.prototype.events={click:"remove"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.name=t.name,this.render()},e.prototype.render=function(){return this.$el.html(S({name:this.name})),this},e}(h),_=function(t){function e(){return this.drop_tab=R(this.drop_tab,this),this.drop_y=R(this.drop_y,this),this.drop_x=R(this.drop_x,this),this.drop=R(this.drop,this),this.add_facet=R(this.add_facet,this),this.remove_facet=R(this.remove_facet,this),e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render_init(),this.render_all_facets(),this.listenTo(this.model,"change:facet_x",this.render_all_facets),this.listenTo(this.model,"change:facet_y",this.render_all_facets),this.listenTo(this.model,"change:facet_tab",this.render_all_facets)},e.prototype.render_init=function(){return this.facet_x_node=this.$(".bk-facet-x"),this.facet_y_node=this.$(".bk-facet-y"),this.facet_tab_node=this.$(".bk-facet-tab"),this.facet_x_node.droppable({drop:this.drop_x,tolerance:"pointer",hoverClass:"bk-droppable-hover"}),this.facet_y_node.droppable({drop:this.drop_y,tolerance:"pointer",hoverClass:"bk-droppable-hover"}),this.facet_tab_node.droppable({drop:this.drop_tab,tolerance:"pointer",hoverClass:"bk-droppable-hover"})},e.prototype.render_all_facets=function(){this.render_facets(this.facet_x_node,"facet_x",this.model.get("facet_x")),this.render_facets(this.facet_y_node,"facet_y",this.model.get("facet_y")),this.render_facets(this.facet_tab_node,"facet_tab",this.model.get("facet_tab"))},e.prototype.render_facets=function(t,e,i){var n,r,s,o,a;for(t=t.find(".bk-facets-selections"),t.empty(),o=[],r=0,s=i.length;s&gt;r;r++)n=i[r],a=new m({name:n}),this.listenTo(a,"remove",function(){var t;return this.remove_facet(n,t=!0)}),o.push(t.append(a.$el));return o},e.prototype.remove_facet=function(t,e){var i,n,r,s,o,a;for(null==e&amp;&amp;(e=!0),s=["facet_x","facet_y","facet_tab"],n=0,r=s.length;r&gt;n;n++)o=s[n],i=M.clone(this.model.get(o)),i=function(){var e,n,r;for(r=[],e=0,n=i.length;n&gt;e;e++)a=i[e],a!==t&amp;&amp;r.push(a);return r}(),this.model.set(o,i);return e?this.model.save():void 0},e.prototype.add_facet=function(t,e){var i,n;return this.remove_facet(e,n=!1),i=M.clone(this.model.get(t)),i.indexOf(e)&lt;0&amp;&amp;(i.push(e),this.model.set(t,i)),this.model.save()},e.prototype.drop=function(t,e,i){var n,r;return n=i.helper.data("model"),r=n.get("name"),this.add_facet(t,r)},e.prototype.drop_x=function(t,e){return this.drop("facet_x",t,e)},e.prototype.drop_y=function(t,e){return this.drop("facet_y",t,e)},e.prototype.drop_tab=function(t,e){return this.drop("facet_tab",t,e)},e}(h),v=function(t){function e(){return this.drop=R(this.drop,this),e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.render_columns_selectors,this.listenTo(this.model,"change:filter_widgets",this.render_column_selectors)},e.prototype.drop=function(t,e){var i,n;return i=e.helper.data("model"),n=M.clone(this.model.get("filtering_columns")),n.push(i.get("name")),this.model.set("filtering_columns",n),this.model.save()},e.prototype.render=function(){return this.$el.droppable({drop:this.drop,tolerance:"pointer",hoverClass:"bk-droppable-hover"}),this},e.prototype.render_column_selectors=function(){var t,e,i,r,s,o,a,l;M.map(this.views,function(t){return t.$el.detach()}),this.$el.find(".bk-filters-selections").empty(),e={},a=this.mget("filter_widgets");for(s in a)N.call(a,s)&amp;&amp;(l=a[s],e[s]=this.model.resolve_ref(l));return r=this.mget("filtering_columns"),i=function(){var i,n,s;for(s=[],i=0,n=r.length;n&gt;i;i++)t=r[i],null!=e[t]&amp;&amp;s.push(e[t]);return s}(),o=C(this.views,i),M.map(o,function(t){return function(e){return t.listenTo(e,"remove",t.child_remove)}}(this)),M.map(i,function(t){return function(e){var i;return i=new n.View({view:t.views[e.id]}),t.$el.find(".bk-filters-selections").append(i.$el)}}(this))},e.prototype.child_remove=function(t){var e,i,n,r,s,o;r=this.mget("filter_widgets");for(e in r)if(N.call(r,e)&amp;&amp;(o=r[e],i=this.model.resolve_ref(o),i===t.model)){s=e;break}return n=M.filter(this.mget("filtering_columns"),function(t){return t!==s}),this.mset("filtering_columns",n),this.model.save()},e}(h),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.template=T,e.prototype.attributes={"class":"bk-crossfilter-column-entry bk-bs-panel bk-bs-panel-primary"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){return this.$el.html(this.template(this.model.attributes)),this.$el.draggable({appendTo:"body",containment:"document",helper:"clone",start:function(t){return function(e,i){return i.helper.data("model",t.model)}}(this)}),this},e}(h),k=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e}(o),x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.default_view=k,e.prototype.defaults=function(){return M.extend({},e.__super__.defaults.call(this),{type:"TimeColumn",label:"Time",name:"",fields:["count","unique","first","last"],count:0,unique:0,first:0,last:0})},e}(b),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e}(o),f=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.default_view=g,e.prototype.defaults=function(){return M.extend({},e.__super__.defaults.call(this),{type:"DiscreteColumn",label:"Factor",name:"",fields:["count","unique","top","freq"],count:0,unique:0,top:0,freq:0})},e}(b),u=function(t){
        function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e}(o),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.default_view=u,e.prototype.defaults=function(){return M.extend({},e.__super__.defaults.call(this),{type:"ContinuousColumn",label:"Continuous",name:"",fields:["count","mean","std","min","max"],count:0,mean:0,std:0,min:0,max:0})},e}(b),D={DiscreteColumn:f,TimeColumn:x,ContinuousColumn:l},s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.model=function(t,e){return t.type in D?new D[t.type](t):(console.log("Unknown column type: '"+t.type+"'"),null)},e}(r),e.exports={Model:c,View:p,Collection:new d}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/build_views":101,"../common/close_wrapper":106,"../common/collection":107,"../common/continuum_view":109,"../common/has_parent":114,"../common/has_properties":115,"./crossfilter_column_template":258,"./crossfilter_facet_template":259,"./crossfilter_template":260,"jquery-ui/draggable":9,"jquery-ui/droppable":10,underscore:92}],258:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){var t,e,r,s;for("Continuous"===this.label?i.push('\n&lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading bk-crossfilter-panel-continuous-heading"&gt;\n'):i.push('\n&lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading bk-crossfilter-panel-factor-heading"&gt;\n'),i.push("\n  "),i.push(n(this.name)),i.push(' &lt;span style="font-size:x-small;"&gt;('),i.push(n(this.label)),i.push(')&lt;/span&gt;\n&lt;/div&gt;\n\n\n&lt;div class="bk-bs-panel-body"&gt;\n\n  &lt;table class="bk-table"&gt;\n\n    &lt;tbody&gt;\n\n      '),s=this.fields,e=0,r=s.length;r&gt;e;e++)t=s[e],i.push("\n      &lt;tr&gt; &lt;td&gt; "),i.push(n(t)),i.push("  &lt;/td&gt; &lt;td&gt; "),i.push(n(this[t])),i.push("  &lt;/td&gt; &lt;/tr&gt;\n      ");i.push("\n\n    &lt;/tbody&gt;\n\n  &lt;/table&gt;\n\n&lt;/div&gt;")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],259:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push(n(this.name)),i.push(" &amp;nbsp; [x]")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],260:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;div class="bk-crossfilter-container"&gt;\n\n  &lt;table&gt;\n\n    &lt;tr&gt;\n\n      &lt;td class="aligntable"&gt;\n\n        &lt;div class="bk-crossfilter-configuration bk-bs-container"&gt;\n\n          &lt;div class="bk-crossfilter-row"&gt;\n\n            &lt;div class="col-md-5 bk-column-list" /&gt;\n\n            &lt;div class="col-md-7 bk-filters-facets"&gt;\n\n              &lt;div class="bk-bs-panel bk-bs-panel-primary bk-filters"&gt;\n                &lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading"&gt; Filter &lt;/div&gt;\n                &lt;div class="bk-bs-panel-body bk-filters-selections" /&gt;\n              &lt;/div&gt;\n\n              &lt;div class="bk-bs-panel bk-bs-panel-primary bk-facet bk-facet-x"&gt;\n                &lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading"&gt; Facet X &lt;/div&gt;\n                &lt;div class="bk-facets-selections " /&gt;\n              &lt;/div&gt;\n\n              &lt;div class="bk-bs-panel bk-bs-panel-primary bk-facet bk-facet-y"&gt;\n                &lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading"&gt; Facet Y &lt;/div&gt;\n                &lt;div class="bk-facets-selections " /&gt;\n              &lt;/div&gt;\n\n              &lt;div class="bk-bs-panel bk-bs-panel-primary bk-facet bk-facet-tab"&gt;\n                &lt;div class="bk-bs-panel-heading bk-crossfilter-panel-heading"&gt; Facet Tab &lt;/div&gt;\n                &lt;div class="bk-facets-selections " /&gt;\n              &lt;/div&gt;\n\n            &lt;/div&gt;\n\n          &lt;/div&gt;\n\n        &lt;/div&gt;\n\n      &lt;/td&gt;\n\n      &lt;td class="aligntable"&gt;\n\n        &lt;div class="bk-plot-selection"&gt;\n\n          &lt;form class="bk-widget-form"&gt;\n            &lt;ul class="bk-crossfilter-selector"&gt;\n              &lt;li class="bk-plot-selector col-md-3"&gt; &lt;/li&gt;\n              &lt;li class="bk-x-selector col-md-3"&gt; &lt;/li&gt;\n              &lt;li class="bk-y-selector col-md-3"&gt; &lt;/li&gt;\n              &lt;li class="bk-agg-selector col-md-3"&gt; &lt;/li&gt;\n            &lt;/ul&gt;\n          &lt;/form&gt;\n\n        &lt;/div&gt;\n\n        &lt;div class="bk-crossfilter-plot" /&gt;\n      &lt;/td&gt;\n\n    &lt;/tr&gt;\n\n  &lt;/table&gt;\n\n&lt;/div&gt;\n')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],261:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty;f=t("underscore"),n=t("jquery"),null!=i._bokehTest?(r=void 0,d=void 0,p=void 0,s=void 0):(r=t("jquery-ui/sortable"),d=t("slick_grid/slick.grid"),p=t("slick_grid/plugins/slick.rowselectionmodel"),s=t("slick_grid/plugins/slick.checkboxselectcolumn")),o=t("../common/continuum_view"),c=t("../common/has_properties"),a=t("../util/dom_util"),g=t("../common/hittest"),l=function(){function t(t){var e;this.source=t,this.data=this.source.get("data"),this.fields=f.keys(this.data),f.contains(this.fields,"index")||(this.data.index=function(){e=[];for(var t=0,i=this.getLength();i&gt;=0?i&gt;t:t&gt;i;i&gt;=0?t++:t--)e.push(t);return e}.apply(this),this.fields.push("index"))}return t.prototype.getLength=function(){return this.source.get_length()},t.prototype.getItem=function(t){var e,i,n,r,s;for(i={index:t},s=this.fields,n=0,r=s.length;r&gt;n;n++)e=s[n],i[e]=this.data[e][t];return i},t.prototype._setItem=function(t,e){var i,n;for(i in e)n=e[i],this.data[i][t]=n},t.prototype.setItem=function(t,e){return this._setItem(t,e),this.updateSource()},t.prototype.getField=function(t,e){return this.data[e][t]},t.prototype._setField=function(t,e,i){this.data[e][t]=i},t.prototype.setField=function(t,e,i){return this._setField(t,e,i),this.updateSource()},t.prototype.updateSource=function(){return this.source.forceTrigger("data")},t.prototype.getItemMetadata=function(t){return null},t.prototype.getRecords=function(){var t;return function(){var e,i,n;for(n=[],t=e=0,i=this.getLength();i&gt;=0?i&gt;e:e&gt;i;t=i&gt;=0?++e:--e)n.push(this.getItem(t));return n}.call(this)},t.prototype.sort=function(t){var e,i,n,r,s,o,a;for(e=function(){var e,n,r;for(r=[],e=0,n=t.length;n&gt;e;e++)i=t[e],r.push([i.sortCol.field,i.sortAsc?1:-1]);return r}(),f.isEmpty(e)&amp;&amp;(e=[["index",1]]),a=this.getRecords(),a.sort(function(t,i){var n,r,s,o,a,l,u,h;for(r=0,s=e.length;s&gt;r;r++)if(o=e[r],n=o[0],l=o[1],u=t[n],h=i[n],a=u===h?0:u&gt;h?l:-l,0!==a)return a;return 0}),n=r=0,s=a.length;s&gt;r;n=++r)o=a[n],this._setItem(n,o);return this.updateSource()},t}(),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.attributes={"class":"bk-data-table"},e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),a.waitForElement(this.el,function(t){return function(){return t.render()}}(this)),this.listenTo(this.model,"change",function(t){return function(){return t.render()}}(this)),i=this.mget("source"),this.listenTo(i,"change:data",function(t){return function(){return t.updateGrid()}}(this)),this.listenTo(i,"change:selected",function(t){return function(){return t.updateSelection()}}(this))},e.prototype.updateGrid=function(){return this.data=new l(this.mget("source")),this.grid.setData(this.data),this.grid.render()},e.prototype.updateSelection=function(){var t;return t=this.mget("source").get("selected"),this.grid.setSelectedRows(t["1d"].indices)},e.prototype.newIndexColumn=function(){return{id:f.uniqueId(),name:"#",field:"index",width:40,behavior:"select",cannotTriggerInsert:!0,resizable:!1,selectable:!1,sortable:!0,cssClass:"bk-cell-index"}},e.prototype.render=function(){var t,e,i,n,r,o;return i=function(){var t,i,n,r;for(n=this.mget("columns"),r=[],t=0,i=n.length;i&gt;t;t++)e=n[t],r.push(e.toColumn());return r}.call(this),"checkbox"===this.mget("selectable")&amp;&amp;(t=new s({cssClass:"bk-cell-select"}),i.unshift(t.getColumnDefinition())),this.mget("row_headers")&amp;&amp;null!=this.mget("source").get_column("index")&amp;&amp;i.unshift(this.newIndexColumn()),o=this.mget("width"),n=this.mget("height"),r={enableCellNavigation:this.mget("selectable")!==!1,enableColumnReorder:!0,forceFitColumns:this.mget("fit_columns"),autoHeight:"auto"===n,multiColumnSort:this.mget("sortable"),editable:this.mget("editable"),autoEdit:!1},null!=o&amp;&amp;this.$el.css({width:this.mget("width")+"px"}),null!=n&amp;&amp;"auto"!==n&amp;&amp;this.$el.css({height:this.mget("height")+"px"}),this.data=new l(this.mget("source")),this.grid=new d(this.el,this.data,i,r),this.grid.onSort.subscribe(function(t){return function(e,n){return i=n.sortCols,t.data.sort(i),t.grid.invalidate(),t.grid.render()}}(this)),this.mget("selectable")!==!1&amp;&amp;(this.grid.setSelectionModel(new p({selectActiveRow:null==t})),null!=t&amp;&amp;this.grid.registerPlugin(t),this.grid.onSelectedRowsChanged.subscribe(function(t){return function(e,i){var n;return n=g.create_hit_test_result(),n["1d"].indices=i.rows,t.mget("source").set("selected",n)}}(this))),this},e}(o),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.type="DataTable",e.prototype.default_view=h,e.prototype.defaults=function(){return f.extend({},e.__super__.defaults.call(this),{columns:[],width:null,height:400,fit_columns:!0,sortable:!0,editable:!1,selectable:!0,row_headers:!0})},e}(c),e.exports={Model:u,View:h}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,"../common/hittest":116,"../util/dom_util":249,jquery:18,"jquery-ui/sortable":15,"slick_grid/plugins/slick.checkboxselectcolumn":305,"slick_grid/plugins/slick.rowselectionmodel":306,"slick_grid/slick.grid":308,underscore:92}],262:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("jquery-ui/datepicker"),s=t("../common/continuum_view"),l=t("../common/has_properties"),a=function(t){function e(){return this.onSelect=h(this.onSelect,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t,e;return this.$el.empty(),e=n("&lt;label&gt;").text(this.mget("title")),t=n("&lt;div&gt;").datepicker({defaultDate:new Date(this.mget("value")),minDate:null!=this.mget("min_date")?new Date(this.mget("min_date")):null,maxDate:null!=this.mget("max_date")?new Date(this.mget("max_date")):null,onSelect:this.onSelect}),this.$el.append([e,t]),this},e.prototype.onSelect=function(t,e){var i;return this.mset("value",new Date(t)),this.model.save(),null!=(i=this.mget("callback"))?i.execute(this.model):void 0},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="DatePicker",e.prototype.default_view=a,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{value:Date.now()})},e}(l),e.exports={Model:o,View:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,jquery:18,"jquery-ui/datepicker":8,underscore:92}],263:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("jqrangeslider/jQDateRangeSlider"),s=t("../common/continuum_view"),l=t("../common/has_properties"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",function(t){return function(){return t.render}}(this))},e.prototype.render=function(){var t,e,i,n,r,s,o,a,l;return this.$el.empty(),r=this.mget("value"),l=r[0],a=r[1],s=this.mget("range"),n=s[0],i=s[1],o=this.mget("bounds"),e=o[0],t=o[1],this.$el.dateRangeSlider({defaultValues:{min:new Date(l),max:new Date(a)},bounds:{min:new Date(e),max:new Date(t)},range:{min:u.isObject(n)?n:!1,max:u.isObject(i)?i:!1},step:this.mget("step")||{},enabled:this.mget("enabled"),arrows:this.mget("arrows"),valueLabels:this.mget("value_labels"),wheelMode:this.mget("wheel_mode")}),this.$el.on("userValuesChanged",function(t){return function(e,i){var n;return t.mset("value",[i.values.min,i.values.max]),t.model.save(),null!=(n=t.mget("callback"))?n.execute(t.model):void 0}}(this)),this},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="DateRangeSlider",e.prototype.default_view=a,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{})},e}(l),e.exports={Model:o,View:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,"jqrangeslider/jQDateRangeSlider":299,jquery:18,underscore:92}],264:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c=function(t,e){return function(){return t.apply(e,arguments)}},p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/modal"),s=t("../common/continuum_view"),l=t("../common/has_properties"),h=t("./dialog_template"),a=function(t){function e(){return this.change_content=c(this.change_content,this),this.change_visibility=c(this.change_visibility,this),this.onHide=c(this.onHide,this),e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.render_content(),this.render_buttons(),this.listenTo(this.model,"destroy",this.remove),this.listenTo(this.model,"change:visible",this.change_visibility),this.listenTo(this.model,"change:content",this.change_content)},e.prototype.render_content=function(){var t;return null!=this.content_view&amp;&amp;this.content_view.remove(),t=this.mget("content"),null!=t&amp;&amp;("object"==typeof t?(this.content_view=new t.default_view({model:t}),this.$el.find(".bk-dialog-content").empty(),this.$el.find(".bk-dialog-content").append(this.content_view.$el)):(this.$el.find(".bk-dialog-content").empty(),this.$el.find(".bk-dialog-content").text(t))),this},e.prototype.render_buttons=function(){var t;return null!=this.buttons_box_view&amp;&amp;this.buttons_box_view.remove(),t=this.mget("buttons_box"),null!=t&amp;&amp;(this.buttons_box_view=new t.default_view({model:t}),this.$el.find(".bk-dialog-buttons_box").empty(),this.$el.find(".bk-dialog-buttons_box").append(this.buttons_box_view.$el)),this},e.prototype.render=function(){return this.$modal=n(h(this.model.attributes)),this.$modal.modal({show:this.mget("visible")}),this.$modal.on("hidden.bk-bs.modal",this.onHide),this.$el.html(this.$modal),this},e.prototype.onHide=function(t){return this.mset("visible",!1,{silent:!0})},e.prototype.change_visibility=function(){return this.$modal.modal(this.mget("visible")?"show":"hide")},e.prototype.change_content=function(){return this.render_content()},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="Dialog",e.prototype.default_view=a,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{visible:!1,closable:!0,title:"",content:"",buttons:[],buttons_box:null})},e}(l),e.exports={Model:o,View:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,"./dialog_template":265,"bootstrap/modal":295,jquery:18,underscore:92}],265:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;div class="bk-bs-modal" tabindex="-1"&gt;\n  &lt;div class="bk-bs-modal-dialog"&gt;\n    &lt;div class="bk-bs-modal-content"&gt;\n      &lt;div class="bk-bs-modal-header"&gt;\n        '),this.closable&amp;&amp;i.push('\n          &lt;button type="button" class="bk-bs-close" data-bk-bs-dismiss="modal"&gt;&amp;times;&lt;/button&gt;\n        '),i.push('\n        &lt;h4 class="bk-bs-modal-title"&gt;'),i.push(n(this.title)),i.push('&lt;/h4&gt;\n      &lt;/div&gt;\n      &lt;div class="bk-bs-modal-body"&gt;\n        &lt;div class="bk-dialog-content" /&gt;\n      &lt;/div&gt;\n      &lt;div class="bk-bs-modal-footer"&gt;\n        &lt;div class="bk-dialog-buttons_box" /&gt;\n      &lt;/div&gt;\n    &lt;/div&gt;\n  &lt;/div&gt;\n&lt;/div&gt;\n')}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],266:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t("underscore"),n=t("jquery"),r=t("../common/continuum_view"),a=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="div",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l,u,h,c,p,d,f,g;for(this.$el.empty(),d=null!=this.mget("default_value"),e=n("&lt;button&gt;&lt;/button&gt;"),e.addClass("bk-bs-btn"),e.addClass("bk-bs-btn-"+this.mget("type")),e.text(this.mget("label")),i=n('&lt;span class="bk-bs-caret"&gt;&lt;/span&gt;'),d?(e.click(function(t){return function(){return t.change_input(t.mget("default_value"))}}(this)),a=n("&lt;button&gt;&lt;/button&gt;"),a.addClass("bk-bs-btn"),a.addClass("bk-bs-btn-"+this.mget("type")),a.addClass("bk-bs-dropdown-toggle"),a.attr("data-bk-bs-toggle","dropdown"),a.append(i)):(e.addClass("bk-bs-dropdown-toggle"),e.attr("data-bk-bs-toggle","dropdown"),e.append(document.createTextNode(" ")),e.append(i),a=n("")),o=n('&lt;ul class="bk-bs-dropdown-menu"&gt;&lt;/ul&gt;'),r=n('&lt;li class="bk-bs-divider"&gt;&lt;/li&gt;'),p=this.mget("menu"),l=0,c=p.length;c&gt;l;l++)u=p[l],s=null!=u?(h=u[0],g=u[1],u,t=n("&lt;a&gt;&lt;/a&gt;").text(h).data("value",g),f=this,t.click(function(t){return f.change_input(n(this).data("value"))}),n("&lt;li&gt;&lt;/li&gt;").append(t)):r,o.append(s);return this.$el.addClass("bk-bs-btn-group"),this.$el.append([e,a,o]),this},e.prototype.change_input=function(t){var e;return this.mset("value",t),this.model.save(),null!=(e=this.mget("callback"))?e.execute(this.model):void 0},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="Dropdown",e.prototype.default_view=o,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{value:null,default_value:null,label:"Dropdown",icon:null,type:"default",menu:[],disabled:!1})},e}(a),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,jquery:18,underscore:92}],267:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),n=t("../common/continuum_view"),o=t("../common/has_parent"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tag="div",e.prototype.attributes={"class":"bk-hbox"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,n,r,s,o,a,u;e=this.model.children(),l(this.views,e),o=this.views;for(r in o)h.call(o,r)&amp;&amp;(a=o[r],a.$el.detach());for(this.$el.empty(),u=this.mget("width"),null!=u&amp;&amp;this.$el.css({width:u+"px"}),i=this.mget("height"),null!=i&amp;&amp;this.$el.css({height:i+"px"}),n=0,s=e.length;s&gt;n;n++)t=e[n],this.$el.append(this.views[t.id].$el);return this},e}(n),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="HBox",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{children:[]})},e.prototype.children=function(){return this.get("children")},e}(o),e.exports={Model:r,View:s}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],268:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName="i",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e;return this.$el.empty(),this.$el.addClass("bk-fa"),this.$el.addClass("bk-fa-"+this.mget("name")),e=this.mget("size"),null!=e&amp;&amp;this.$el.css({"font-size":e+"em"}),t=this.mget("flip"),null!=t&amp;&amp;this.$el.addClass("bk-fa-flip-"+t),this.mget("spin")&amp;&amp;this.$el.addClass("bk-fa-spin"),this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="Icon",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{name:"",size:null,flip:null,spin:!1})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],269:[function(t,e,i){var n,r;r=t("../hbox"),n=t("./base"),e.exports=n("AppHBox",r)},{"../hbox":267,"./base":272}],270:[function(t,e,i){var n,r;r=t("../vbox"),n=t("./base"),e.exports=n("AppVBox",r)},{"../vbox":291,"./base":272}],271:[function(t,e,i){var n;n=t("../vboxform"),e.exports=t("./base")("AppVBoxForm",n)},{"../vboxform":292,"./base":272}],272:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t("underscore"),o=t("../../common/build_views"),n=t("../../common/continuum_view"),r=t("../../common/has_parent"),e.exports=function(t,e){var i,n;return n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),i=this.mget("app"),this.listenTo(i,"change:objects",this.render)},e}(e.View),i=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return a(i,e),i.prototype.type=t,i.prototype.default_view=n,i.prototype.children=function(){var t,e,i,n;return t=this.get("app"),n=this.get("children"),i=t.get("objects"),e=s.map(n,function(t){return function(e){return s.isString(e)?t.resolve_ref(i[e]):e}}(this))},i}(r),{Model:i,View:n}}},{"../../common/build_views":101,"../../common/continuum_view":109,"../../common/has_parent":114,underscore:92}],273:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;l=t("jquery"),n=t("underscore"),r=t("../common/continuum_view"),s=t("../common/has_parent"),u=t("./multiselecttemplate"),a=function(t){function e(){return this.render_selection=h(this.render_selection,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName="div",e.prototype.template=u,e.prototype.events={"change select":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change:value",this.render_selection),this.listenTo(this.model,"change:options",this.render),this.listenTo(this.model,"change:name",this.render),this.listenTo(this.model,"change:title",this.render)},e.prototype.render=function(){var t;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),this.render_selection(),this},e.prototype.render_selection=function(){var t;return t={},l.map(this.mget("value"),function(e){return t[e]=!0}),this.$("option").each(function(e){return function(i){return i=e.$(i),t[i.attr("value")]?i.attr("selected","selected"):void 0}}(this))},e.prototype.change_input=function(){var t;return this.mset("value",this.$("select").val(),{silent:!0}),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="MultiSelect",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{title:"",value:[],options:[]})},e}(s),e.exports={Model:o,View:a}},{"../common/continuum_view":109,"../common/has_parent":114,"./multiselecttemplate":274,jquery:18,underscore:92}],274:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){var t,e,r,s;for(i.push('&lt;label for="'),i.push(n(this.id)),i.push('"&gt; '),i.push(n(this.title)),i.push(' &lt;/label&gt;\n&lt;select multiple class="bk-widget-form-input" id="'),i.push(n(this.id)),i.push('" name="'),i.push(n(this.name)),i.push('"&gt;\n  '),s=this.options,t=0,e=s.length;e&gt;t;t++)r=s[t],i.push("\n  "),r.value===this.value?(i.push('\n  &lt;option selected="selected" value="'),i.push(n(r.value)),i.push('"&gt;'),i.push(n(r.name)),i.push("&lt;/option&gt;\n  ")):(i.push('\n  &lt;option value="'),i.push(n(r.value)),i.push('"&gt;'),i.push(n(r.name)),i.push("&lt;/option&gt; \n  ")),i.push("\n\n  ");i.push("\n&lt;/select&gt;\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],275:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t("underscore"),n=t("jquery"),r=t("../common/continuum_view"),s=t("../common/has_properties"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){return this.$el.empty(),this},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="Panel",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{title:"",child:null,closable:!1})},e}(s),e.exports={Model:o,View:a}},{"../common/continuum_view":109,"../common/has_properties":115,jquery:18,underscore:92}],276:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName="p",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){return this.mget("height")&amp;&amp;this.$el.height(this.mget("height")),this.mget("width")&amp;&amp;this.$el.width(this.mget("width")),this.$el.text(this.mget("text")),this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="Paragraph",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{text:""})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],277:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("./paragraph"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.tagName="pre",e.prototype.attributes={style:"overflow:scroll"},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="PreText",e.prototype.default_view=s,e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{text:"",height:400,width:400})},e}(n.Model),e.exports={Model:r,View:s}},{"./paragraph":276,underscore:92}],278:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/button"),s=t("../common/continuum_view"),o=t("../common/has_parent"),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="div",e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l,h;for(this.$el.empty(),this.$el.addClass("bk-bs-btn-group"),this.$el.attr("data-bk-bs-toggle","buttons"),l=u.uniqueId("RadioButtonGroup"),i=this.mget("active"),h=this.mget("labels"),r=s=0,a=h.length;a&gt;s;r=++s)o=h[r],t=n('&lt;input type="radio"&gt;').attr({name:l,value:""+r}),r===i&amp;&amp;t.prop("checked",!0),e=n('&lt;label class="bk-bs-btn"&gt;&lt;/label&gt;'),e.text(o).prepend(t),e.addClass("bk-bs-btn-"+this.mget("type")),r===i&amp;&amp;e.addClass("bk-bs-active"),this.$el.append(e);return this},e.prototype.change_input=function(){var t,e,i,n;
        return t=function(){var t,n,r,s;for(r=this.$("input"),s=[],e=t=0,n=r.length;n&gt;t;e=++t)i=r[e],i.checked&amp;&amp;s.push(e);return s}.call(this),this.mset("active",t[0]),this.model.save(),null!=(n=this.mget("callback"))?n.execute(this.model):void 0},e}(s),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="RadioButtonGroup",e.prototype.default_view=l,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{active:null,labels:[],type:"default",disabled:!1})},e}(o),e.exports={Model:a,View:l}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_parent":114,"bootstrap/button":293,jquery:18,underscore:92}],279:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t("underscore"),n=t("jquery"),r=t("../common/continuum_view"),s=t("../common/has_parent"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="div",e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,u,h,c;for(this.$el.empty(),h=l.uniqueId("RadioGroup"),r=this.mget("active"),c=this.mget("labels"),s=o=0,u=c.length;u&gt;o;s=++o)a=c[s],e=n('&lt;input type="radio"&gt;').attr({name:h,value:""+s}),this.mget("disabled")&amp;&amp;e.prop("disabled",!0),s===r&amp;&amp;e.prop("checked",!0),i=n("&lt;label&gt;&lt;/label&gt;").text(a).prepend(e),this.mget("inline")?(i.addClass("bk-bs-radio-inline"),this.$el.append(i)):(t=n('&lt;div class="bk-bs-radio"&gt;&lt;/div&gt;').append(i),this.$el.append(t));return this},e.prototype.change_input=function(){var t,e,i;return t=function(){var t,n,r,s;for(r=this.$("input"),s=[],e=t=0,n=r.length;n&gt;t;e=++t)i=r[e],i.checked&amp;&amp;s.push(e);return s}.call(this),this.mset("active",t[0]),this.model.save()},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="RadioGroup",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:null,labels:[],inline:!1,disabled:!1})},e}(s),e.exports={Model:o,View:a}},{"../common/continuum_view":109,"../common/has_parent":114,jquery:18,underscore:92}],280:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),l=t("../common/logging").logger,u=t("./selecttemplate"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="div",e.prototype.template=u,e.prototype.events={"change select":"change_input"},e.prototype.change_input=function(){var t,e;return e=this.$("select").val(),l.debug("selectbox: value = "+e),this.mset("value",e),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="Select",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:"",value:"",options:[]})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,"../common/logging":119,"./selecttemplate":281,underscore:92}],281:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){var t,e,r,s;for(i.push('&lt;label for="'),i.push(n(this.id)),i.push('"&gt; '),i.push(n(this.title)),i.push(' &lt;/label&gt;\n&lt;select class="bk-widget-form-input" id="'),i.push(n(this.id)),i.push('" name="'),i.push(n(this.name)),i.push('"&gt;\n  '),s=this.options,t=0,e=s.length;e&gt;t;t++)r=s[t],i.push("\n    "),"string"==typeof r?(i.push("\n      &lt;option "),i.push(n(r===this.value?i.push('selected="selected"'):void 0)),i.push(' value="'),i.push(n(r)),i.push('"&gt;'),i.push(n(r)),i.push("&lt;/option&gt;\n    ")):(i.push("\n      &lt;option "),i.push(n(r.value===this.value?i.push('selected="selected"'):void 0)),i.push(' value="'),i.push(n(r.value)),i.push('"&gt;'),i.push(n(r.name)),i.push("&lt;/option&gt;\n    ")),i.push("\n  ");i.push("\n&lt;/select&gt;\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],282:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t;return this.$el.html(""),t=this.mget("layout"),this.layout_view=new t.default_view({model:t}),this.$el.append(this.layout_view.$el),this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="SimpleApp",e.prototype.default_view=o,e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114}],283:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),l=t("../common/logging").logger,u=t("./slidertemplate"),o=function(t){function e(){return this.slide=h(this.slide,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName="div",e.prototype.template=u,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t,e,i,n;return this.$el.empty(),t=this.template(this.model.attributes),this.$el.html(t),e=this.mget("end"),i=this.mget("start"),n=this.mget("step")||(e-i)/50,l.debug("slider render: min, max, step = ("+i+", "+e+", "+n+")"),this.$(".slider").slider({orientation:this.mget("orientation"),animate:"fast",slide:a.throttle(this.slide,200),value:this.mget("value"),min:i,max:e,step:n}),this.$("#"+this.mget("id")).val(this.$(".slider").slider("value")),this},e.prototype.slide=function(t,e){var i,n;return n=e.value,l.debug("slide value = "+n),this.$("#"+this.mget("id")).val(e.value),this.mset("value",n),this.model.save(),null!=(i=this.mget("callback"))?i.execute(this.model):void 0},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="Slider",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:"",value:.5,start:0,end:1,step:0,orientation:"horizontal"})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,"../common/logging":119,"./slidertemplate":284,underscore:92}],284:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;label for="'),i.push(n(this.id)),i.push('"&gt; '),i.push(n(this.title)),i.push(': &lt;/label&gt;\n&lt;input type="text" id="'),i.push(n(this.id)),i.push('" readonly style="border:0; color:#f6931f; font-weight:bold;"&gt;\n&lt;div class="bk-slider-'),i.push(n(this.orientation)),i.push('"&gt;\n  &lt;div class="slider " id="'),i.push(n(this.id)),i.push('"&gt;\n&lt;/div&gt;\n')}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],285:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.type="TableColumn",e.prototype.default_view=null,e.prototype.defaults=function(){return s.extend({},e.__super__.defaults.call(this),{field:null,title:null,width:300,formatter:null,editor:null,sortable:!0,default_sort:"ascending"})},e.prototype.toColumn=function(){return{id:s.uniqueId(),field:this.get("field"),name:this.get("title"),width:this.get("width"),formatter:this.get("formatter"),editor:this.get("editor"),sortable:this.get("sortable"),defaultSortAsc:"ascending"===this.get("default_sort")}},e}(n),e.exports={Model:r}},{"../common/has_properties":115,underscore:92}],286:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p=function(t,e){function i(){this.constructor=t}for(var n in e)d.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},d={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/tab"),h=t("../common/build_views"),s=t("../common/continuum_view"),o=t("../common/has_properties"),c=t("./tabs_template"),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l,p,f,g,m,_,v,y,b;f=this.views;for(a in f)d.call(f,a)&amp;&amp;(b=f[a],b.$el.detach());for(this.$el.empty(),v=this.mget("tabs"),e=this.mget("active"),r=function(){var t,e,i;for(i=[],t=0,e=v.length;e&gt;t;t++)_=v[t],i.push(_.get("child"));return i}(),h(this.views,r),s=n(c({tabs:v,active:function(t){return t===e?"bk-bs-active":""}})),y=this,s.find("&gt; li &gt; a").click(function(t){var e,i,r;return t.preventDefault(),n(this).tab("show"),e=n(this).attr("href").replace("#tab-",""),v=y.model.get("tabs"),i=u.indexOf(v,u.find(v,function(t){return t.id===e})),y.model.save("active",i),null!=(r=y.model.get("callback"))?r.execute(y.model):void 0}),t=s.children(".bk-bs-tab-pane"),g=u.zip(r,t),o=0,l=g.length;l&gt;o;o++)m=g[o],i=m[0],p=m[1],n(p).html(this.views[i.id].$el);return this.$el.append(s),this.$el.tabs,this},e}(s),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="Tabs",e.prototype.default_view=l,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{tabs:[],active:0})},e}(o),e.exports={Model:a,View:l}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_properties":115,"./tabs_template":287,"bootstrap/tab":296,jquery:18,underscore:92}],287:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){var t,e,r,s,o,a,l,u;for(i.push('&lt;ul class="bk-bs-nav bk-bs-nav-tabs"&gt;\n  '),a=this.tabs,t=e=0,s=a.length;s&gt;e;t=++e)u=a[t],i.push('\n    &lt;li class="'),i.push(n(this.active(t))),i.push('"&gt;\n      &lt;a href="#tab-'),i.push(n(u.get("id"))),i.push('"&gt;'),i.push(n(u.get("title"))),i.push("&lt;/a&gt;\n    &lt;/li&gt;\n  ");for(i.push('\n&lt;/ul&gt;\n&lt;div class="bk-bs-tab-content"&gt;\n  '),l=this.tabs,t=r=0,o=l.length;o&gt;r;t=++r)u=l[t],i.push('\n    &lt;div class="bk-bs-tab-pane '),i.push(n(this.active(t))),i.push('" id="tab-'),i.push(n(u.get("id"))),i.push('"&gt;&lt;/div&gt;\n  ');i.push("\n&lt;/div&gt;\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],288:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),n=t("../common/continuum_view"),r=t("../common/has_parent"),u=t("../common/logging").logger,h=t("./text_input_template"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName="div",e.prototype.attributes={"class":"bk-widget-form-group"},e.prototype.template=h,e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){return this.$el.html(this.template(this.model.attributes)),this},e.prototype.change_input=function(){var t,e;return e=this.$("input").val(),u.debug("widget/text_input: value = "+e),this.mset("value",e),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="TextInput",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{name:"",value:"",title:""})},e}(r),e.exports={Model:s,View:o}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,"../common/logging":119,"./text_input_template":289,underscore:92}],289:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&amp;&amp;t.ecoSafe?t:"undefined"!=typeof t&amp;&amp;null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&amp;&amp;t.ecoSafe)return t;("undefined"==typeof t||null==t)&amp;&amp;(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;").replace(/"/g,"&amp;quot;")}),function(){(function(){i.push('&lt;label for="'),i.push(n(this.id)),i.push('"&gt; '),i.push(n(this.title)),i.push(' &lt;/label&gt;\n&lt;input class="bk-widget-form-input" type="text" id="'),i.push(n(this.id)),i.push('" name="'),i.push(n(this.name)),i.push('" value="'),i.push(n(this.value)),i.push('"/&gt;\n')}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],290:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName="button",e.prototype.events={click:"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,n,r;if(t=this.mget("icon"),null!=t){build_views(this.views,[t]),n=this.views;for(e in n)u.call(n,e)&amp;&amp;(r=n[e],r.$el.detach())}return this.$el.empty(),this.$el.addClass("bk-bs-btn"),this.$el.addClass("bk-bs-btn-"+this.mget("type")),this.mget("disabled")&amp;&amp;this.$el.attr("disabled","disabled"),i=this.mget("label"),null!=t&amp;&amp;(this.$el.append(this.views[t.id].$el),i=" "+i),this.$el.append(document.createTextNode(i)),this.mget("active")&amp;&amp;this.$el.addClass("bk-bs-active"),this.$el.attr("data-bk-bs-toggle","button"),this},e.prototype.change_input=function(){var t;return this.mset("active",this.$el.hasClass("bk-bs-active")),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="Toggle",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{active:!1,label:"Toggle",icon:null,type:"default",disabled:!1})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],291:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tag="div",e.prototype.attributes={"class":"bk-vbox"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,n,r,s,o,a,u;e=this.model.children(),l(this.views,e),o=this.views;for(r in o)h.call(o,r)&amp;&amp;(a=o[r],a.$el.detach());for(this.$el.empty(),u=this.mget("width"),null!=u&amp;&amp;this.$el.css({width:u+"px"}),i=this.mget("height"),null!=i&amp;&amp;this.$el.css({height:i+"px"}),n=0,s=e.length;s&gt;n;n++)t=e[n],this.$el.append(this.views[t.id].$el);return this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="VBox",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{children:[]})},e.prototype.children=function(){return this.get("children")},e}(r),e.exports={Model:s,View:o}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],292:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="form",e.prototype.attributes={"class":"bk-widget-form",role:"form"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render()},e.prototype.render=function(){var t,e,i,n,r,s,o;e=this.model.children(),l(this.views,e),s=this.views;for(n in s)h.call(s,n)&amp;&amp;(o=s[n],o.$el.detach());for(this.$el.empty(),i=0,r=e.length;r&gt;i;i++)t=e[i],this.$el.append("&lt;br/"),this.$el.append(this.views[t.id].$el);return this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="VBoxForm",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{children:[]})},e.prototype.children=function(){return this.get("children")},e}(r),e.exports={Model:s,View:o}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],293:[function(t,e,i){var n=t("jquery"),r=function(t,e){this.$element=n(t),this.options=n.extend({},r.DEFAULTS,e),this.isLoading=!1};r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(t){var e="bk-bs-disabled",i=this.$element,r=i.is("input")?"val":"html",s=i.data();t+="Text",s.resetText||i.data("resetText",i[r]()),i[r](s[t]||this.options[t]),setTimeout(n.proxy(function(){"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e)):this.isLoading&amp;&amp;(this.isLoading=!1,i.removeClass(e).removeAttr(e))},this),0)},r.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-bk-bs-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&amp;&amp;(i.prop("checked")&amp;&amp;this.$element.hasClass("bk-bs-active")?t=!1:e.find(".bk-bs-active").removeClass("bk-bs-active")),t&amp;&amp;i.prop("checked",!this.$element.hasClass("bk-bs-active")).trigger("change")}t&amp;&amp;this.$element.toggleClass("bk-bs-active")};var s=n.fn.button;n.fn.button=function(t){return this.each(function(){var e=n(this),i=e.data("bk-bs.button"),s="object"==typeof t&amp;&amp;t;i||e.data("bk-bs.button",i=new r(this,s)),"toggle"==t?i.toggle():t&amp;&amp;i.setState(t)})},n.fn.button.Constructor=r,n.fn.button.noConflict=function(){return n.fn.button=s,this},n(document).on("click.bk-bs.button.data-api","[data-bk-bs-toggle^=button]",function(t){var e=n(t.target);e.hasClass("bk-bs-btn")||(e=e.closest(".bk-bs-btn")),e.button("toggle"),t.preventDefault()})},{jquery:18}],294:[function(t,e,i){function n(t){s(o).remove(),s(a).each(function(){var e=r(s(this)),i={relatedTarget:this};e.hasClass("bk-bs-open")&amp;&amp;(e.trigger(t=s.Event("hide.bk-bs.dropdown",i)),t.isDefaultPrevented()||e.removeClass("bk-bs-open").trigger("hidden.bk-bs.dropdown",i))})}function r(t){var e=t.attr("data-bk-bs-target");e||(e=t.attr("href"),e=e&amp;&amp;/#[A-Za-z]/.test(e)&amp;&amp;e.replace(/.*(?=#[^\s]*$)/,""));var i=e&amp;&amp;s(e);return i&amp;&amp;i.length?i:t.parent()}var s=t("jquery"),o=".bk-bs-dropdown-backdrop",a="[data-bk-bs-toggle=dropdown]",l=function(t){s(t).on("click.bk-bs.dropdown",this.toggle)};l.prototype.toggle=function(t){var e=s(this);if(!e.is(".bk-bs-disabled, :disabled")){var i=r(e),o=i.hasClass("bk-bs-open");if(n(),!o){"ontouchstart"in document.documentElement&amp;&amp;!i.closest(".bk-bs-navbar-nav").length&amp;&amp;s('&lt;div class="bk-bs-dropdown-backdrop"/&gt;').insertAfter(s(this)).on("click",n);var a={relatedTarget:this};if(i.trigger(t=s.Event("show.bk-bs.dropdown",a)),t.isDefaultPrevented())return;i.toggleClass("bk-bs-open").trigger("shown.bk-bs.dropdown",a),e.focus()}return!1}},l.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var e=s(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".bk-bs-disabled, :disabled")){var i=r(e),n=i.hasClass("bk-bs-open");if(!n||n&amp;&amp;27==t.keyCode)return 27==t.which&amp;&amp;i.find(a).focus(),e.click();var o=" li:not(.bk-bs-divider):visible a",l=i.find("[role=menu]"+o+", [role=listbox]"+o);if(l.length){var u=l.index(l.filter(":focus"));38==t.keyCode&amp;&amp;u&gt;0&amp;&amp;u--,40==t.keyCode&amp;&amp;u&lt;l.length-1&amp;&amp;u++,~u||(u=0),l.eq(u).focus()}}}};var u=s.fn.dropdown;s.fn.dropdown=function(t){return this.each(function(){var e=s(this),i=e.data("bk-bs.dropdown");i||e.data("bk-bs.dropdown",i=new l(this)),"string"==typeof t&amp;&amp;i[t].call(e)})},s.fn.dropdown.Constructor=l,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=u,this},s(document).on("click.bk-bs.dropdown.data-api",n).on("click.bk-bs.dropdown.data-api",".bk-bs-dropdown form",function(t){t.stopPropagation()}).on("click.bk-bs.dropdown.data-api",a,l.prototype.toggle).on("keydown.bk-bs.dropdown.data-api",a+", [role=menu], [role=listbox]",l.prototype.keydown)},{jquery:18}],295:[function(t,e,i){var n=t("jquery"),r=function(t,e){this.options=e,this.$element=n(t),this.$backdrop=this.isShown=null,this.options.remote&amp;&amp;this.$element.find(".bk-bs-modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bk-bs.modal")},this))};r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this[this.isShown?"hide":"show"](t)},r.prototype.show=function(t){var e=this,i=n.Event("show.bk-bs.modal",{relatedTarget:t});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bk-bs.modal",'[data-bk-bs-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var i=n.support.transition&amp;&amp;e.$element.hasClass("bk-bs-fade");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show().scrollTop(0),i&amp;&amp;e.$element[0].offsetWidth,e.$element.addClass("bk-bs-in").attr("aria-hidden",!1),e.enforceFocus();var r=n.Event("shown.bk-bs.modal",{relatedTarget:t});i?e.$element.find(".bk-bs-modal-dialog").one(n.support.transition.end,function(){e.$element.focus().trigger(r)}).emulateTransitionEnd(300):e.$element.focus().trigger(r)}))},r.prototype.hide=function(t){t&amp;&amp;t.preventDefault(),t=n.Event("hide.bk-bs.modal"),this.$element.trigger(t),this.isShown&amp;&amp;!t.isDefaultPrevented()&amp;&amp;(this.isShown=!1,this.escape(),n(document).off("focusin.bk-bs.modal"),this.$element.removeClass("bk-bs-in").attr("aria-hidden",!0).off("click.dismiss.bk-bs.modal"),n.support.transition&amp;&amp;this.$element.hasClass("bk-bs-fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},r.prototype.enforceFocus=function(){n(document).off("focusin.bk-bs.modal").on("focusin.bk-bs.modal",n.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},r.prototype.escape=function(){this.isShown&amp;&amp;this.options.keyboard?this.$element.on("keyup.dismiss.bk-bs.modal",n.proxy(function(t){27==t.which&amp;&amp;this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bk-bs.modal")},r.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden.bk-bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&amp;&amp;this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var e=this.$element.hasClass("bk-bs-fade")?"bk-bs-fade":"";if(this.isShown&amp;&amp;this.options.backdrop){var i=n.support.transition&amp;&amp;e;if(this.$backdrop=n('&lt;div class="bk-bs-modal-backdrop '+e+'" /&gt;').appendTo(document.body),this.$element.on("click.dismiss.bk-bs.modal",n.proxy(function(t){t.target===t.currentTarget&amp;&amp;("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&amp;&amp;this.$backdrop[0].offsetWidth,this.$backdrop.addClass("bk-bs-in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&amp;&amp;this.$backdrop?(this.$backdrop.removeClass("bk-bs-in"),n.support.transition&amp;&amp;this.$element.hasClass("bk-bs-fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&amp;&amp;t()};var s=n.fn.modal;n.fn.modal=function(t,e){return this.each(function(){var i=n(this),s=i.data("bk-bs.modal"),o=n.extend({},r.DEFAULTS,i.data(),"object"==typeof t&amp;&amp;t);s||i.data("bk-bs.modal",s=new r(this,o)),"string"==typeof t?s[t](e):o.show&amp;&amp;s.show(e)})},n.fn.modal.Constructor=r,n.fn.modal.noConflict=function(){return n.fn.modal=s,this},n(document).on("click.bk-bs.modal.data-api",'[data-bk-bs-toggle="modal"]',function(t){var e=n(this),i=e.attr("href"),r=n(e.attr("data-bk-bs-target")||i&amp;&amp;i.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("bk-bs.modal")?"toggle":n.extend({remote:!/#/.test(i)&amp;&amp;i},r.data(),e.data());e.is("a")&amp;&amp;t.preventDefault(),r.modal(s,this).one("hide",function(){e.is(":visible")&amp;&amp;e.focus()})}),n(document).on("show.bk-bs.modal",".bk-bs-modal",function(){n(document.body).addClass("bk-bs-modal-open")}).on("hidden.bk-bs.modal",".bk-bs-modal",function(){n(document.body).removeClass("bk-bs-modal-open")})},{jquery:18}],296:[function(t,e,i){var n=t("jquery"),r=function(t){this.element=n(t)};r.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.bk-bs-dropdown-menu)"),i=t.data("bk-bs-target");if(i||(i=t.attr("href"),i=i&amp;&amp;i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("bk-bs-active")){var r=e.find(".bk-bs-active:last a")[0],s=n.Event("show.bk-bs.tab",{relatedTarget:r});if(t.trigger(s),!s.isDefaultPrevented()){var o=n(i);this.activate(t.parent("li"),e),this.activate(o,o.parent(),function(){t.trigger({type:"shown.bk-bs.tab",relatedTarget:r})})}}},r.prototype.activate=function(t,e,i){function r(){s.removeClass("bk-bs-active").find("&gt; .bk-bs-dropdown-menu &gt; .bk-bs-active").removeClass("bk-bs-active"),t.addClass("bk-bs-active"),o?(t[0].offsetWidth,t.addClass("bk-bs-in")):t.removeClass("bk-bs-fade"),t.parent(".bk-bs-dropdown-menu")&amp;&amp;t.closest("li.bk-bs-dropdown").addClass("bk-bs-active"),i&amp;&amp;i()}var s=e.find("&gt; .bk-bs-active"),o=i&amp;&amp;n.support.transition&amp;&amp;s.hasClass("bk-bs-fade");o?s.one(n.support.transition.end,r).emulateTransitionEnd(150):r(),s.removeClass("bk-bs-in")};var s=n.fn.tab;n.fn.tab=function(t){return this.each(function(){var e=n(this),i=e.data("bk-bs.tab");i||e.data("bk-bs.tab",i=new r(this)),"string"==typeof t&amp;&amp;i[t]()})},n.fn.tab.Constructor=r,n.fn.tab.noConflict=function(){return n.fn.tab=s,this},n(document).on("click.bk-bs.tab.data-api",'[data-bk-bs-toggle="tab"], [data-bk-bs-toggle="pill"]',function(t){t.preventDefault(),n(this).tab("show")})},{jquery:18}],297:[function(t,e,i){var n,r,s;!function(){"use strict";n=function(t,e,i,n,r,s){function o(t,e){var i,n=50,r=0;for(i=1;n&gt;=i;i++)r+=e(Math.cos(m*(i-.5)/n))*Math.cos(m*t*(i-.5)/n);return 2*r/n}function a(t,e){var i,n,r,s,a=[],l=[],u=[[],[]];for(i=0;t+1&gt;i;i++)u[0][i]=0,u[1][i]=0;for(u[0][0]=1,u[1][1]=1,r=1;t+1&gt;r;r++){for(u[r+1]=[0],n=0;n&lt;u[r].length-1;n++)u[r+1][n+1]=2*u[r][n];for(n=0;n&lt;u[r-1].length;n++)u[r+1][n]-=u[r-1][n]}for(r=0;t&gt;=r;r++)l[r]=o(r,e),a[r]=0;for(r=0;t&gt;=r;r++)for(s=0;t&gt;=s;s++)a[s]+=l[r]*u[r][s];return a[0]-=o(0,e)/2,a}function l(t){var e=2*t-1,i=e*(p-d)/2+(d+p)/2;return y*(Math.cos(i)+i*Math.sin(i))}function u(t){var e=2*t-1,i=e*(p-d)/2+(d+p)/2;return y*(Math.sin(i)-i*Math.cos(i))}function h(t,e){var i,n=1;for(i=t-e+1;t&gt;=i;i++)n*=i;for(i=1;e&gt;=i;i++)n/=i;return n}function c(t,e){var i,n,r=a(w,e);for(i=0,n=0;t&gt;=n;n++)i+=h(t,n)*r[n]/h(w,n);return i}var p,d,f,g,m=Math.PI,_=t*e/2,v=i||20,y=_*Math.cos(v*m/180),b=_+t,w=n||3,x=Math.sqrt(b*b-y*y)/y,k=s||1,M=.01,C=[];for(void 0!==r&amp;&amp;k&gt;r&amp;&amp;(M=r),p=Math.sqrt(k)*x,d=Math.sqrt(M)*x,f=0;w&gt;=f;f++)g={},g.x=c(f,l),g.y=c(f,u),C.push(g);return C},r=function(t,e,i){function r(t,e){return Math.sqrt(e*e-t*t)/t-Math.acos(t/e)}function s(t,e){var i=Math.sin(e),n=Math.cos(e);return{x:t.x*n-t.y*i,y:t.x*i+t.y*n}}function o(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}}var a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k=t,M=e,C=i||20,D=k,T=1.25*k,S=T-D,A=M*k/2,P=A*Math.cos(C*Math.PI/180),E=A+D,I=A-T,N=1.5*S,R=2*Math.PI/M,z=r(P,A),j=z,O=Math.atan(N/(N+I));for(a=Math.sqrt((I+N)*(I+N)-N*N),a&gt;P&amp;&amp;(a=I+S),a&gt;P&amp;&amp;(j-=r(P,a)),l=1,u=.01,a&gt;P&amp;&amp;(u=(a*a-P*P)/(E*E-P*P)),h=u+(l-u)/4,c=n(k,M,C,3,u,h),p=n(k,M,C,3,h,l),d=c.concat(p.slice(1)),f=[],w=0;w&lt;d.length;w++)b=s(d[w],-z-R/4),d[w]=b,f[w]={x:b.x,y:-b.y};return g=o(a,-R/4-j),m={x:g.x,y:-g.y},v=o(I,R/4+j+O),y=o(I,3*R/4-j-O),_=s(g,R),x=[],x.push("M",g.x,g.y),P&gt;a&amp;&amp;x.push("L",d[0].x,d[0].y),x.push("C",d[1].x,d[1].y,d[2].x,d[2].y,d[3].x,d[3].y,d[4].x,d[4].y,d[5].x,d[5].y,d[6].x,d[6].y),x.push("A",E,E,0,0,0,f[6].x,f[6].y),x.push("C",f[5].x,f[5].y,f[4].x,f[4].y,f[3].x,f[3].y,f[2].x,f[2].y,f[1].x,f[1].y,f[0].x,f[0].y),P&gt;a&amp;&amp;x.push("L",m.x,m.y),y.y&gt;v.y&amp;&amp;(x.push("A",N,N,0,0,1,v.x,v.y),x.push("A",I,I,0,0,0,y.x,y.y)),x.push("A",N,N,0,0,1,_.x,_.y),x},s=function(t,e,i){function r(t,e){return Math.sqrt(e*e-t*t)/t-Math.acos(t/e)}function s(t,e){var i=Math.sin(e),n=Math.cos(e);return{x:t.x*n-t.y*i,y:t.x*i+t.y*n}}function o(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}}var a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S=t,A=e,P=i||20,E=.6*S,I=1.25*S,N=A*S/2,R=N*Math.cos(P*Math.PI/180),z=N-E,j=N+I,O=.25*S,F=j-O,L=1.5*O;for(a=2*Math.PI/A,l=r(R,N),u=l,z&gt;R&amp;&amp;(u-=r(R,z)),h=r(R,F)-l,c=1.414*O/F,p=1,d=.01,z&gt;R&amp;&amp;(d=(z*z-R*R)/(F*F-R*R)),f=d+(p-d)/4,g=n(S,A,P,3,d,f),m=n(S,A,P,3,f,p),v=g.concat(m.slice(1)),_=[],b=0;b&lt;v.length;b++)y=s(v[b],a/4-l),v[b]=y,_[b]={x:y.x,y:-y.y};return x={x:_[6].x,y:_[6].y},M=o(z,-a/4+u),C={x:M.x,y:-M.y},D=o(j,a/4+h+c),
        T=o(j,3*a/4-h-c),k=s(x,a),w=[],w.push("M",_[6].x,_[6].y),w.push("C",_[5].x,_[5].y,_[4].x,_[4].y,_[3].x,_[3].y,_[2].x,_[2].y,_[1].x,_[1].y,_[0].x,_[0].y),R&gt;z&amp;&amp;w.push("L",M.x,M.y),w.push("A",z,z,0,0,0,C.x,C.y),R&gt;z&amp;&amp;w.push("L",v[0].x,v[0].y),w.push("C",v[1].x,v[1].y,v[2].x,v[2].y,v[3].x,v[3].y,v[4].x,v[4].y,v[5].x,v[5].y,v[6].x,v[6].y),D.y&lt;T.y&amp;&amp;(w.push("A",L,L,0,0,0,D.x,D.y),w.push("A",j,j,0,0,0,T.x,T.y)),w.push("A",L,L,0,0,0,k.x,k.y),w}}(),e.exports={create_gear_tooth:r,create_internal_gear_tooth:s}},{}],298:[function(t,e,i){!function(t,n){"function"==typeof define&amp;&amp;define.amd?define([],n):"undefined"!=typeof i?(e.exports=n(),"undefined"==typeof window&amp;&amp;(t.gloo2=e.exports)):t.gloo2=n()}(this,function(){var t,e,i,n,r,s,o;return o=function(t,e){var i,n,r,s,o,a,l,u;for(e=void 0===e?"periodic check":e,l=[];;){if(o=t.getError(),o==t.NO_ERROR||l&amp;&amp;o==l[l.length-1])break;(l.append||l.push).apply(l,[o])}if(l.length){for(u="",i=l,"object"!=typeof i||Array.isArray(i)||(i=Object.keys(i)),r=i.length,n=0;r&gt;n;n+=1)s=i[n],u+=s;throw a=new Error("RuntimeError:"+("OpenGL got errors ("+e+"): "+u)),a.name="RuntimeError",a}},e=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},e.prototype._base_class=Object,e.prototype.__init__=function(t){if(this._gl=t,this._handle=null,this._create(),null===this._handle)throw"AssertionError: this._handle !== null"},e.prototype._create=function(){var t;throw t=new Error("NotImplementedError:"),t.name="NotImplementedError",t},n=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},n.prototype=Object.create(e.prototype),n.prototype._base_class=e.prototype,n.prototype.UTYPEMAP={"float":"uniform1fv",vec2:"uniform2fv",vec3:"uniform3fv",vec4:"uniform4fv","int":"uniform1iv",ivec2:"uniform2iv",ivec3:"uniform3iv",ivec4:"uniform4iv",bool:"uniform1iv",bvec2:"uniform2iv",bvec3:"uniform3iv",bvec4:"uniform4iv",mat2:"uniformMatrix2fv",mat3:"uniformMatrix3fv",mat4:"uniformMatrix4fv",sampler1D:"uniform1i",sampler2D:"uniform1i",sampler3D:"uniform1i"},n.prototype.ATYPEMAP={"float":"vertexAttrib1f",vec2:"vertexAttrib2f",vec3:"vertexAttrib3f",vec4:"vertexAttrib4f"},n.prototype.ATYPEINFO={"float":[1,5126],vec2:[2,5126],vec3:[3,5126],vec4:[4,5126]},n.prototype._create=function(){this._handle=this._gl.createProgram(),this._handles=[],this._unset_variables=[],this._validated=!1,this._samplers={},this._attributes={},this._known_invalid=[]},n.prototype["delete"]=function(){this._gl.deleteProgram(this._handle)},n.prototype.activate=function(){this._gl.useProgram(this._handle)},n.prototype.deactivate=function(){this._gl.useProgram(0)},n.prototype.set_shaders=function(t,e){var i,n,r,s,o,a,l,u,h,c,p,d,f;for(l=this._gl,this._linked=!1,f=l.createShader(l.VERTEX_SHADER),a=l.createShader(l.FRAGMENT_SHADER),p=[[t,f,"vertex"],[e,a,"fragment"]],h=0;2&gt;h;h+=1)if(n=p[h],i=n[0],u=n[1],d=n[2],l.shaderSource(u,i),l.compileShader(u),c=l.getShaderParameter(u,l.COMPILE_STATUS),!c)throw o=l.getShaderInfoLog(u),s=new Error("RuntimeError:"+("errors in "+d+" shader:\n"+o)),s.name="RuntimeError",s;if(l.attachShader(this._handle,f),l.attachShader(this._handle,a),l.linkProgram(this._handle),!l.getProgramParameter(this._handle,l.LINK_STATUS))throw r=new Error("RuntimeError:Program link error:\n"+l.getProgramInfoLog(this._handle)),r.name="RuntimeError",r;l.detachShader(this._handle,f),l.detachShader(this._handle,a),l.deleteShader(f),l.deleteShader(a),this._unset_variables=this._get_active_attributes_and_uniforms(),this._handles={},this._known_invalid=[],this._linked=!0},n.prototype._get_active_attributes_and_uniforms=function(){var t,e,i,n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M;for(m=this._gl,w=new RegExp("(\\w+)\\s*(\\[(\\d+)\\])\\s*"),r=m.getProgramParameter(this._handle,m.ACTIVE_UNIFORMS),e=m.getProgramParameter(this._handle,m.ACTIVE_ATTRIBUTES),t=[],x=[],c=[[t,e,m.getActiveAttrib],[x,r,m.getActiveUniform]],"object"!=typeof c||Array.isArray(c)||(c=Object.keys(c)),d=c.length,p=0;d&gt;p;p+=1)for(M=c[p],h=M,i=h[0],n=h[1],g=h[2],_=0;n&gt;_;_+=1)if(v=g.call(m,this._handle,_),b=v.name,y=b.match(w))for(b=y.group(0),_=0;_&lt;v.size;_+=1)(i.append||i.push).apply(i,[[""+b+"["+_+"]",v.type]]);else(i.append||i.push).apply(i,[[b,v.type]]);for(M=[],f=t,"object"!=typeof f||Array.isArray(f)||(f=Object.keys(f)),o=f.length,s=0;o&gt;s;s+=1)k=f[s],(M.append||M.push).apply(M,[k[0]]);for(a=x,"object"!=typeof a||Array.isArray(a)||(a=Object.keys(a)),u=a.length,l=0;u&gt;l;l+=1)k=a[l],(M.append||M.push).apply(M,[k[0]]);return M},n.prototype.set_texture=function(t,e){var i,n,r,s,o,a,l;if(!this._linked)throw o=new Error("RuntimeError:Cannot set uniform when program has no code"),o.name="RuntimeError",o;if(a="function"==typeof(i=this._handles).get?i.get(t,-1):i[t]||-1,0&gt;a){if(((n=this._known_invalid).indexOf?n:Object.keys(n)).indexOf(t)&gt;=0)return;if(a=this._gl.getUniformLocation(this._handle,t),((r=this._unset_variables).indexOf?r:Object.keys(r)).indexOf(t)&gt;=0&amp;&amp;(this._unset_variables.remove||function(t){this.splice(this.indexOf(t),1)}).apply(this._unset_variables,[t]),this._handles[t]=a,0&gt;a)return(this._known_invalid.append||this._known_invalid.push).apply(this._known_invalid,[t]),void console.log("Variable "+t+" is not an active uniform")}this.activate(),l=Object.keys(this._samplers).length,((s=this._samplers).indexOf?s:Object.keys(s)).indexOf(t)&gt;=0&amp;&amp;(l=this._samplers[t][this._samplers[t].length-1]),this._samplers[t]=[e._target,e._handle,l],this._gl.uniform1i(a,l)},n.prototype.set_uniform=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d;if(!this._linked)throw u=new Error("RuntimeError:Cannot set uniform when program has no code"),u.name="RuntimeError",u;if(c="function"==typeof(r=this._handles).get?r.get(t,-1):r[t]||-1,n=1,0&gt;c){if(((s=this._known_invalid).indexOf?s:Object.keys(s)).indexOf(t)&gt;=0)return;if(c=this._gl.getUniformLocation(this._handle,t),((o=this._unset_variables).indexOf?o:Object.keys(o)).indexOf(t)&gt;=0&amp;&amp;(this._unset_variables.remove||function(t){this.splice(this.indexOf(t),1)}).apply(this._unset_variables,[t]),0!=e.indexOf("mat")&amp;&amp;(n=Math.floor(i.length/this.ATYPEINFO[e][0])),n&gt;1)for(p=0;n&gt;p;p+=1)((a=this._unset_variables).indexOf?a:Object.keys(a)).indexOf(""+t+"["+p+"]")&gt;=0&amp;&amp;(d=""+t+"["+p+"]",((l=this._unset_variables).indexOf?l:Object.keys(l)).indexOf(d)&gt;=0&amp;&amp;(this._unset_variables.remove||function(t){this.splice(this.indexOf(t),1)}).apply(this._unset_variables,[d]));if(this._handles[t]=c,0&gt;c)return this._known_invalid.add(t),void logger.info("Variable "+t+" is not an active uniform")}h=this.UTYPEMAP[e],this.activate(),this._gl[h](c,i)},n.prototype.set_attribute=function(t,e,i,n){var r,s,o,a,l,u,h,c,p,d,f,g,m,_;if(n=void 0===n?null:n,!this._linked)throw h=new Error("RuntimeError:Cannot set attribute when program has no code"),h.name="RuntimeError",h;if(d="function"==typeof(s=this._handles).get?s.get(t,-1):s[t]||-1,0&gt;d){if(((o=this._known_invalid).indexOf?o:Object.keys(o)).indexOf(t)&gt;=0)return;if(d=this._gl.getAttribLocation(this._handle,t),((a=this._unset_variables).indexOf?a:Object.keys(a)).indexOf(t)&gt;=0&amp;&amp;(this._unset_variables.remove||function(t){this.splice(this.indexOf(t),1)}).apply(this._unset_variables,[t]),this._handles[t]=d,0&gt;d){if((this._known_invalid.append||this._known_invalid.push).apply(this._known_invalid,[t]),i&amp;&amp;0!=i[0]&amp;&amp;i[2]&gt;0)return;return void console.log("Variable "+t+" is not an active attribute")}}this.activate(),null===i?(c=this.ATYPEMAP[e],this._attributes[t]=[0,d,c,n]):(l=i,_=l[0],m=l[1],f=l[2],u=this.ATYPEINFO[e],g=u[0],p=u[1],c="vertexAttribPointer",r=[g,p,this._gl.FALSE,m,f],this._attributes[t]=[_._handle,d,c,r])},n.prototype._pre_draw=function(){var t,e,i,n,r,s,o,a,l,u,h,c;this.activate(),n=this._samplers;for(c in n)n.hasOwnProperty(c)&amp;&amp;(c=n[c],i=c,l=i[0],a=i[1],u=i[2],this._gl.activeTexture(this._gl.TEXTURE0+u),this._gl.bindTexture(l,a));s=this._attributes;for(c in s)s.hasOwnProperty(c)&amp;&amp;(c=s[c],r=c,h=r[0],e=r[1],o=r[2],t=r[3],h?(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,h),this._gl.enableVertexAttribArray(e),this._gl[o].apply(this._gl,[e].concat(t))):(this._gl.bindBuffer(this._gl.ARRAY_BUFFER,null),this._gl.disableVertexAttribArray(e),this._gl[o].apply(this._gl,[e].concat(t))));this._validated||(this._validated=!0,this._validate())},n.prototype._validate=function(){var t;if(this._unset_variables.length&amp;&amp;console.log("Program has unset variables: "+this._unset_variables),this._gl.validateProgram(this._handle),!this._gl.getProgramParameter(this._handle,this._gl.VALIDATE_STATUS))throw console.log(this._gl.getProgramInfoLog(this._handle)),t=new Error("RuntimeError:Program validation error"),t.name="RuntimeError",t},n.prototype.draw=function(t,e){var n,r,s,a,l,u;if(!this._linked)throw a=new Error("RuntimeError:Cannot draw program if code has not been set"),a.name="RuntimeError",a;o(this._gl,"before draw"),e instanceof i?(this._pre_draw(),e.activate(),n=e._buffer_size/2,u=this._gl.UNSIGNED_SHORT,this._gl.drawElements(t,n,u,0),e.deactivate()):(r=e,l=r[0],n=r[1],n&amp;&amp;(this._pre_draw(),this._gl.drawArrays(t,l,n))),s=this._gl.getError(),o(this._gl,"after draw")},t=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},t.prototype=Object.create(e.prototype),t.prototype._base_class=e.prototype,t.prototype._target=null,t.prototype._usage=35048,t.prototype._create=function(){this._handle=this._gl.createBuffer(),this._buffer_size=0},t.prototype["delete"]=function(){this._gl.deleteBuffer(this._handle)},t.prototype.activate=function(){this._gl.bindBuffer(this._target,this._handle)},t.prototype.deactivate=function(){this._gl.bindBuffer(this._target,null)},t.prototype.set_size=function(t){t!=this._buffer_size&amp;&amp;(this.activate(),this._gl.bufferData(this._target,t,this._usage),this._buffer_size=t)},t.prototype.set_data=function(t,e){var i;this.activate(),i=e.length*e.BYTES_PER_ELEMENT,this._gl.bufferSubData(this._target,t,e)},s=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},s.prototype=Object.create(t.prototype),s.prototype._base_class=t.prototype,s.prototype._target=34962,i=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},i.prototype=Object.create(t.prototype),i.prototype._base_class=t.prototype,i.prototype._target=34963,r=function(){this.__init__&amp;&amp;this.__init__.apply(this,arguments)},r.prototype=Object.create(e.prototype),r.prototype._base_class=e.prototype,r.prototype._target=3553,r.prototype._types={Int8Array:5120,Uint8Array:5121,Int16Array:5122,Uint16Array:5123,Int32Array:5124,Int32Array:5125,Float32Array:5126},r.prototype._create=function(){this._handle=this._gl.createTexture(),this._shape_format=null},r.prototype["delete"]=function(){this._gl.deleteTexture(this._handle)},r.prototype.activate=function(){this._gl.bindTexture(this._target,this._handle)},r.prototype.deactivate=function(){this._gl.bindTexture(this._target,0)},r.prototype._get_alignment=function(t){var e,i,n,r,s;for(i=[4,8,2,1],n=i,"object"!=typeof n||Array.isArray(n)||(n=Object.keys(n)),s=n.length,r=0;s&gt;r;r+=1)if(e=n[r],t%e==0)return e},r.prototype.set_wrapping=function(t,e){this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_S,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_WRAP_T,e)},r.prototype.set_interpolation=function(t,e){this.activate(),this._gl.texParameterf(this._target,this._gl.TEXTURE_MIN_FILTER,t),this._gl.texParameterf(this._target,this._gl.TEXTURE_MAG_FILTER,e)},r.prototype.set_size=function(t,e){var i,n,r;i=t,n=i[0],r=i[1],[n,r,e]!=this._shape_format&amp;&amp;(this._shape_format=[n,r,e],this.activate(),this._gl.texImage2D(this._target,0,e,r,n,0,e,this._gl.UNSIGNED_BYTE,null))},r.prototype.set_data=function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d;if(this.activate(),l=this._shape_format[2],r=e,h=r[0],c=r[1],s=t,d=s[0],p=s[1],u="function"==typeof(o=this._types).get?o.get(i.constructor.name,null):o[i.constructor.name]||null,null===u)throw a=new Error("ValueError:"+("Type "+i.constructor.name+" not allowed for texture")),a.name="ValueError",a;n=this._get_alignment(e[e.length-2]*e[e.length-1]),4!=n&amp;&amp;this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,n),this._gl.texSubImage2D(this._target,0,p,d,c,h,l,u,i),4!=n&amp;&amp;this._gl.pixelStorei(this._gl.UNPACK_ALIGNMENT,4)},{Buffer:t,GlooObject:e,IndexBuffer:i,Program:n,Texture2D:r,VertexBuffer:s,check_error:o}})},{}],299:[function(t,e,i){var n=t("jquery");t("./jQRangeSlider"),e.exports=n.widget("ui.dateRangeSlider",n.ui.rangeSlider,{options:{bounds:{min:new Date(2010,0,1).valueOf(),max:new Date(2012,0,1).valueOf()},defaultValues:{min:new Date(2010,1,11).valueOf(),max:new Date(2011,1,11).valueOf()}},_create:function(){n.ui.rangeSlider.prototype._create.apply(this),this.element.addClass("bk-ui-dateRangeSlider")},destroy:function(){this.element.removeClass("bk-ui-dateRangeSlider"),n.ui.rangeSlider.prototype.destroy.apply(this)},_setDefaultValues:function(){this._values={min:this.options.defaultValues.min.valueOf(),max:this.options.defaultValues.max.valueOf()}},_setRulerParameters:function(){this.ruler.ruler({min:new Date(this.options.bounds.min),max:new Date(this.options.bounds.max),scales:this.options.scales})},_setOption:function(t,e){("defaultValues"===t||"bounds"===t)&amp;&amp;"undefined"!=typeof e&amp;&amp;null!==e&amp;&amp;this._isValidDate(e.min)&amp;&amp;this._isValidDate(e.max)?n.ui.rangeSlider.prototype._setOption.apply(this,[t,{min:e.min.valueOf(),max:e.max.valueOf()}]):n.ui.rangeSlider.prototype._setOption.apply(this,this._toArray(arguments))},_handleType:function(){return"dateRangeSliderHandle"},option:function(t){if("bounds"===t||"defaultValues"===t){var e=n.ui.rangeSlider.prototype.option.apply(this,arguments);return{min:new Date(e.min),max:new Date(e.max)}}return n.ui.rangeSlider.prototype.option.apply(this,this._toArray(arguments))},_defaultFormatter:function(t){var e=t.getMonth()+1,i=t.getDate();return""+t.getFullYear()+"-"+(10&gt;e?"0"+e:e)+"-"+(10&gt;i?"0"+i:i)},_getFormatter:function(){var t=this.options.formatter;return(this.options.formatter===!1||null===this.options.formatter)&amp;&amp;(t=this._defaultFormatter),function(t){return function(e){return t(new Date(e))}}(t)},values:function(t,e){var i=null;return i=this._isValidDate(t)&amp;&amp;this._isValidDate(e)?n.ui.rangeSlider.prototype.values.apply(this,[t.valueOf(),e.valueOf()]):n.ui.rangeSlider.prototype.values.apply(this,this._toArray(arguments)),{min:new Date(i.min),max:new Date(i.max)}},min:function(t){return this._isValidDate(t)?new Date(n.ui.rangeSlider.prototype.min.apply(this,[t.valueOf()])):new Date(n.ui.rangeSlider.prototype.min.apply(this))},max:function(t){return this._isValidDate(t)?new Date(n.ui.rangeSlider.prototype.max.apply(this,[t.valueOf()])):new Date(n.ui.rangeSlider.prototype.max.apply(this))},bounds:function(t,e){var i;return i=this._isValidDate(t)&amp;&amp;this._isValidDate(e)?n.ui.rangeSlider.prototype.bounds.apply(this,[t.valueOf(),e.valueOf()]):n.ui.rangeSlider.prototype.bounds.apply(this,this._toArray(arguments)),{min:new Date(i.min),max:new Date(i.max)}},_isValidDate:function(t){return"undefined"!=typeof t&amp;&amp;t instanceof Date},_toArray:function(t){return Array.prototype.slice.call(t)}})},{"./jQRangeSlider":300,jquery:18}],300:[function(t,e,i){var n=t("jquery");t("jquery-ui/core"),t("jquery-ui/widget"),t("jquery-ui/mouse"),t("jquery-mousewheel"),e.exports=n.widget("ui.rangeSlider",{options:{bounds:{min:0,max:100},defaultValues:{min:20,max:50},wheelMode:null,wheelSpeed:4,arrows:!0,valueLabels:"show",formatter:null,durationIn:0,durationOut:400,delayOut:200,range:{min:!1,max:!1},step:!1,scales:!1,enabled:!0,symmetricPositionning:!1},_values:null,_valuesChanged:!1,_initialized:!1,bar:null,leftHandle:null,rightHandle:null,innerBar:null,container:null,arrows:null,labels:null,changing:{min:!1,max:!1},changed:{min:!1,max:!1},ruler:null,_create:function(){this._setDefaultValues(),this.labels={left:null,right:null,leftDisplayed:!0,rightDisplayed:!0},this.arrows={left:null,right:null},this.changing={min:!1,max:!1},this.changed={min:!1,max:!1},this._createElements(),this._bindResize(),setTimeout(n.proxy(this.resize,this),1),setTimeout(n.proxy(this._initValues,this),1)},_setDefaultValues:function(){this._values={min:this.options.defaultValues.min,max:this.options.defaultValues.max}},_bindResize:function(){var t=this;this._resizeProxy=function(e){t.resize(e)},n(window).resize(this._resizeProxy)},_initWidth:function(){this.container.css("width",this.element.width()-this.container.outerWidth(!0)+this.container.width()),this.innerBar.css("width",this.container.width()-this.innerBar.outerWidth(!0)+this.innerBar.width())},_initValues:function(){this._initialized=!0,this.values(this._values.min,this._values.max)},_setOption:function(t,e){this._setWheelOption(t,e),this._setArrowsOption(t,e),this._setLabelsOption(t,e),this._setLabelsDurations(t,e),this._setFormatterOption(t,e),this._setBoundsOption(t,e),this._setRangeOption(t,e),this._setStepOption(t,e),this._setScalesOption(t,e),this._setEnabledOption(t,e),this._setPositionningOption(t,e)},_validProperty:function(t,e,i){return null===t||"undefined"==typeof t[e]?i:t[e]},_setStepOption:function(t,e){"step"===t&amp;&amp;(this.options.step=e,this._leftHandle("option","step",e),this._rightHandle("option","step",e),this._changed(!0))},_setScalesOption:function(t,e){"scales"===t&amp;&amp;(e===!1||null===e?(this.options.scales=!1,this._destroyRuler()):e instanceof Array&amp;&amp;(this.options.scales=e,this._updateRuler()))},_setRangeOption:function(t,e){"range"===t&amp;&amp;(this._bar("option","range",e),this.options.range=this._bar("option","range"),this._changed(!0))},_setBoundsOption:function(t,e){"bounds"===t&amp;&amp;"undefined"!=typeof e.min&amp;&amp;"undefined"!=typeof e.max&amp;&amp;this.bounds(e.min,e.max)},_setWheelOption:function(t,e){("wheelMode"===t||"wheelSpeed"===t)&amp;&amp;(this._bar("option",t,e),this.options[t]=this._bar("option",t))},_setLabelsOption:function(t,e){if("valueLabels"===t){if("hide"!==e&amp;&amp;"show"!==e&amp;&amp;"change"!==e)return;this.options.valueLabels=e,"hide"!==e?(this._createLabels(),this._leftLabel("update"),this._rightLabel("update")):this._destroyLabels()}},_setFormatterOption:function(t,e){"formatter"===t&amp;&amp;null!==e&amp;&amp;"function"==typeof e&amp;&amp;"hide"!==this.options.valueLabels&amp;&amp;(this._leftLabel("option","formatter",e),this.options.formatter=this._rightLabel("option","formatter",e))},_setArrowsOption:function(t,e){"arrows"!==t||e!==!0&amp;&amp;e!==!1||e===this.options.arrows||(e===!0?(this.element.removeClass("bk-ui-rangeSlider-noArrow").addClass("bk-ui-rangeSlider-withArrows"),this.arrows.left.css("display","block"),this.arrows.right.css("display","block"),this.options.arrows=!0):e===!1&amp;&amp;(this.element.addClass("bk-ui-rangeSlider-noArrow").removeClass("bk-ui-rangeSlider-withArrows"),this.arrows.left.css("display","none"),this.arrows.right.css("display","none"),this.options.arrows=!1),this._initWidth())},_setLabelsDurations:function(t,e){if("durationIn"===t||"durationOut"===t||"delayOut"===t){if(parseInt(e,10)!==e)return;null!==this.labels.left&amp;&amp;this._leftLabel("option",t,e),null!==this.labels.right&amp;&amp;this._rightLabel("option",t,e),this.options[t]=e}},_setEnabledOption:function(t,e){"enabled"===t&amp;&amp;this.toggle(e)},_setPositionningOption:function(t,e){"symmetricPositionning"===t&amp;&amp;(this._rightHandle("option",t,e),this.options[t]=this._leftHandle("option",t,e))},_createElements:function(){"absolute"!==this.element.css("position")&amp;&amp;this.element.css("position","relative"),this.element.addClass("bk-ui-rangeSlider"),this.container=n("&lt;div class='bk-ui-rangeSlider-container' /&gt;").css("position","absolute").appendTo(this.element),this.innerBar=n("&lt;div class='bk-ui-rangeSlider-innerBar' /&gt;").css("position","absolute").css("top",0).css("left",0),this._createHandles(),this._createBar(),this.container.prepend(this.innerBar),this._createArrows(),"hide"!==this.options.valueLabels?this._createLabels():this._destroyLabels(),this._updateRuler(),this.options.enabled||this._toggle(this.options.enabled)},_createHandle:function(t){return n("&lt;div /&gt;")[this._handleType()](t).bind("sliderDrag",n.proxy(this._changing,this)).bind("stop",n.proxy(this._changed,this))},_createHandles:function(){this.leftHandle=this._createHandle({isLeft:!0,bounds:this.options.bounds,value:this._values.min,step:this.options.step,symmetricPositionning:this.options.symmetricPositionning}).appendTo(this.container),this.rightHandle=this._createHandle({isLeft:!1,bounds:this.options.bounds,value:this._values.max,step:this.options.step,symmetricPositionning:this.options.symmetricPositionning}).appendTo(this.container)},_createBar:function(){this.bar=n("&lt;div /&gt;").prependTo(this.container).bind("sliderDrag scroll zoom",n.proxy(this._changing,this)).bind("stop",n.proxy(this._changed,this)),this._bar({leftHandle:this.leftHandle,rightHandle:this.rightHandle,values:{min:this._values.min,max:this._values.max},type:this._handleType(),range:this.options.range,wheelMode:this.options.wheelMode,wheelSpeed:this.options.wheelSpeed}),this.options.range=this._bar("option","range"),this.options.wheelMode=this._bar("option","wheelMode"),this.options.wheelSpeed=this._bar("option","wheelSpeed")},_createArrows:function(){this.arrows.left=this._createArrow("left"),this.arrows.right=this._createArrow("right"),this.options.arrows?this.element.addClass("bk-ui-rangeSlider-withArrows"):(this.arrows.left.css("display","none"),this.arrows.right.css("display","none"),this.element.addClass("bk-ui-rangeSlider-noArrow"))},_createArrow:function(t){var e,i=n("&lt;div class='bk-ui-rangeSlider-arrow' /&gt;").append("&lt;div class='bk-ui-rangeSlider-arrow-inner' /&gt;").addClass("bk-ui-rangeSlider-"+t+"Arrow").css("position","absolute").css(t,0).appendTo(this.element);return e="right"===t?n.proxy(this._scrollRightClick,this):n.proxy(this._scrollLeftClick,this),i.bind("mousedown touchstart",e),i},_proxy:function(t,e,i){var n=Array.prototype.slice.call(i);return t&amp;&amp;t[e]?t[e].apply(t,n):null},_handleType:function(){return"rangeSliderHandle"},_barType:function(){return"rangeSliderBar"},_bar:function(){return this._proxy(this.bar,this._barType(),arguments)},_labelType:function(){return"rangeSliderLabel"},_leftLabel:function(){return this._proxy(this.labels.left,this._labelType(),arguments)},_rightLabel:function(){return this._proxy(this.labels.right,this._labelType(),arguments)},_leftHandle:function(){return this._proxy(this.leftHandle,this._handleType(),arguments)},_rightHandle:function(){return this._proxy(this.rightHandle,this._handleType(),arguments)},_getValue:function(t,e){return e===this.rightHandle&amp;&amp;(t-=e.outerWidth()),t*(this.options.bounds.max-this.options.bounds.min)/(this.container.innerWidth()-e.outerWidth(!0))+this.options.bounds.min},_trigger:function(t){var e=this;setTimeout(function(){e.element.trigger(t,{label:e.element,values:e.values()})},1)},_changing:function(){this._updateValues()&amp;&amp;(this._trigger("valuesChanging"),this._valuesChanged=!0)},_deactivateLabels:function(){"change"===this.options.valueLabels&amp;&amp;(this._leftLabel("option","show","hide"),this._rightLabel("option","show","hide"))},_reactivateLabels:function(){"change"===this.options.valueLabels&amp;&amp;(this._leftLabel("option","show","change"),this._rightLabel("option","show","change"))},_changed:function(t){t===!0&amp;&amp;this._deactivateLabels(),(this._updateValues()||this._valuesChanged)&amp;&amp;(this._trigger("valuesChanged"),t!==!0&amp;&amp;this._trigger("userValuesChanged"),this._valuesChanged=!1),t===!0&amp;&amp;this._reactivateLabels()},_updateValues:function(){var t=this._leftHandle("value"),e=this._rightHandle("value"),i=this._min(t,e),n=this._max(t,e),r=i!==this._values.min||n!==this._values.max;return this._values.min=this._min(t,e),this._values.max=this._max(t,e),r},_min:function(t,e){return Math.min(t,e)},_max:function(t,e){return Math.max(t,e)},_createLabel:function(t,e){var i;return null===t?(i=this._getLabelConstructorParameters(t,e),t=n("&lt;div /&gt;").appendTo(this.element)[this._labelType()](i)):(i=this._getLabelRefreshParameters(t,e),t[this._labelType()](i)),t},_getLabelConstructorParameters:function(t,e){return{handle:e,handleType:this._handleType(),formatter:this._getFormatter(),show:this.options.valueLabels,durationIn:this.options.durationIn,durationOut:this.options.durationOut,delayOut:this.options.delayOut}},_getLabelRefreshParameters:function(){return{formatter:this._getFormatter(),show:this.options.valueLabels,durationIn:this.options.durationIn,durationOut:this.options.durationOut,delayOut:this.options.delayOut}},_getFormatter:function(){return this.options.formatter===!1||null===this.options.formatter?this._defaultFormatter:this.options.formatter},_defaultFormatter:function(t){return Math.round(t)},_destroyLabel:function(t){return null!==t&amp;&amp;(t[this._labelType()]("destroy"),t.remove(),t=null),t},_createLabels:function(){this.labels.left=this._createLabel(this.labels.left,this.leftHandle),this.labels.right=this._createLabel(this.labels.right,this.rightHandle),this._leftLabel("pair",this.labels.right)},_destroyLabels:function(){this.labels.left=this._destroyLabel(this.labels.left),this.labels.right=this._destroyLabel(this.labels.right)},_stepRatio:function(){return this._leftHandle("stepRatio")},_scrollRightClick:function(t){return this.options.enabled?(t.preventDefault(),this._bar("startScroll"),this._bindStopScroll(),void this._continueScrolling("scrollRight",4*this._stepRatio(),1)):!1},_continueScrolling:function(t,e,i,n){if(!this.options.enabled)return!1;this._bar(t,i),n=n||5,n--;var r=this,s=16,o=Math.max(1,4/this._stepRatio());this._scrollTimeout=setTimeout(function(){0===n&amp;&amp;(e&gt;s?e=Math.max(s,e/1.5):i=Math.min(o,2*i),n=5),r._continueScrolling(t,e,i,n)},e)},_scrollLeftClick:function(t){return this.options.enabled?(t.preventDefault(),this._bar("startScroll"),this._bindStopScroll(),void this._continueScrolling("scrollLeft",4*this._stepRatio(),1)):!1},_bindStopScroll:function(){var t=this;this._stopScrollHandle=function(e){e.preventDefault(),t._stopScroll()},n(document).bind("mouseup touchend",this._stopScrollHandle)},_stopScroll:function(){n(document).unbind("mouseup touchend",this._stopScrollHandle),this._stopScrollHandle=null,this._bar("stopScroll"),clearTimeout(this._scrollTimeout)},_createRuler:function(){this.ruler=n("&lt;div class='bk-ui-rangeSlider-ruler' /&gt;").appendTo(this.innerBar)},_setRulerParameters:function(){this.ruler.ruler({min:this.options.bounds.min,max:this.options.bounds.max,scales:this.options.scales})},_destroyRuler:function(){null!==this.ruler&amp;&amp;n.fn.ruler&amp;&amp;(this.ruler.ruler("destroy"),this.ruler.remove(),this.ruler=null)},_updateRuler:function(){this._destroyRuler(),this.options.scales!==!1&amp;&amp;n.fn.ruler&amp;&amp;(this._createRuler(),this._setRulerParameters())},values:function(t,e){var i;if("undefined"!=typeof t&amp;&amp;"undefined"!=typeof e){if(!this._initialized)return this._values.min=t,this._values.max=e,this._values;this._deactivateLabels(),i=this._bar("values",t,e),this._changed(!0),this._reactivateLabels()}else i=this._bar("values",t,e);return i},min:function(t){return this._values.min=this.values(t,this._values.max).min,this._values.min},max:function(t){return this._values.max=this.values(this._values.min,t).max,this._values.max},bounds:function(t,e){return this._isValidValue(t)&amp;&amp;this._isValidValue(e)&amp;&amp;e&gt;t&amp;&amp;(this._setBounds(t,e),this._updateRuler(),this._changed(!0)),this.options.bounds},_isValidValue:function(t){return"undefined"!=typeof t&amp;&amp;parseFloat(t)===t},_setBounds:function(t,e){this.options.bounds={min:t,max:e},this._leftHandle("option","bounds",this.options.bounds),this._rightHandle("option","bounds",this.options.bounds),this._bar("option","bounds",this.options.bounds)},zoomIn:function(t){this._bar("zoomIn",t)},zoomOut:function(t){this._bar("zoomOut",t)},scrollLeft:function(t){this._bar("startScroll"),this._bar("scrollLeft",t),this._bar("stopScroll")},scrollRight:function(t){this._bar("startScroll"),this._bar("scrollRight",t),this._bar("stopScroll")},resize:function(){this._initWidth(),this._leftHandle("update"),this._rightHandle("update"),this._bar("update")},enable:function(){this.toggle(!0)},disable:function(){this.toggle(!1)},toggle:function(t){void 0===t&amp;&amp;(t=!this.options.enabled),this.options.enabled!==t&amp;&amp;this._toggle(t)},_toggle:function(t){this.options.enabled=t,this.element.toggleClass("bk-ui-rangeSlider-disabled",!t);var e=t?"enable":"disable";this._bar(e),this._leftHandle(e),this._rightHandle(e),this._leftLabel(e),this._rightLabel(e)},destroy:function(){this.element.removeClass("bk-ui-rangeSlider-withArrows bk-ui-rangeSlider-noArrow bk-ui-rangeSlider-disabled"),this._destroyWidgets(),this._destroyElements(),this.element.removeClass("bk-ui-rangeSlider"),this.options=null,n(window).unbind("resize",this._resizeProxy),this._resizeProxy=null,this._bindResize=null,n.Widget.prototype.destroy.apply(this,arguments)},_destroyWidget:function(t){this["_"+t]("destroy"),this[t].remove(),this[t]=null},_destroyWidgets:function(){this._destroyWidget("bar"),this._destroyWidget("leftHandle"),this._destroyWidget("rightHandle"),this._destroyRuler(),this._destroyLabels()},_destroyElements:function(){this.container.remove(),this.container=null,this.innerBar.remove(),this.innerBar=null,this.arrows.left.remove(),this.arrows.right.remove(),this.arrows=null}})},{jquery:18,"jquery-mousewheel":4,"jquery-ui/core":7,"jquery-ui/mouse":13,"jquery-ui/widget":17}],301:[function(t,e,i){var n=t("jquery");n.fn.drag=function(t,e,i){var r="string"==typeof t?t:"",s=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==r.indexOf("drag")&amp;&amp;(r="drag"+r),i=(t==s?e:i)||{},s?this.bind(r,i,s):this.trigger(r)};var r=n.event,s=r.special,o=s.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(t){var e=n.data(this,o.datakey),i=t.data||{};e.related+=1,n.each(o.defaults,function(t,n){void 0!==i[t]&amp;&amp;(e[t]=i[t])})},remove:function(){n.data(this,o.datakey).related-=1},setup:function(){if(!n.data(this,o.datakey)){var t=n.extend({related:0},o.defaults);n.data(this,o.datakey,t),r.add(this,"touchstart mousedown",o.init,t),this.attachEvent&amp;&amp;this.attachEvent("ondragstart",o.dontstart)}},teardown:function(){var t=n.data(this,o.datakey)||{};t.related||(n.removeData(this,o.datakey),r.remove(this,"touchstart mousedown",o.init),o.textselect(!0),this.detachEvent&amp;&amp;this.detachEvent("ondragstart",o.dontstart))},init:function(t){if(!o.touched){var e,i=t.data;if(!(0!=t.which&amp;&amp;i.which&gt;0&amp;&amp;t.which!=i.which)&amp;&amp;!n(t.target).is(i.not)&amp;&amp;(!i.handle||n(t.target).closest(i.handle,t.currentTarget).length)&amp;&amp;(o.touched="touchstart"==t.type?this:null,i.propagates=1,i.mousedown=this,i.interactions=[o.interaction(this,i)],i.target=t.target,i.pageX=t.pageX,i.pageY=t.pageY,i.dragging=null,e=o.hijack(t,"draginit",i),i.propagates))return e=o.flatten(e),e&amp;&amp;e.length&amp;&amp;(i.interactions=[],n.each(e,function(){i.interactions.push(o.interaction(this,i))})),i.propagates=i.interactions.length,i.drop!==!1&amp;&amp;s.drop&amp;&amp;s.drop.handler(t,i),o.textselect(!1),o.touched?r.add(o.touched,"touchmove touchend",o.handler,i):r.add(document,"mousemove mouseup",o.handler,i),!o.touched||i.live?!1:void 0}},interaction:function(t,e){var i=n(t)[e.relative?"position":"offset"]()||{top:0,left:0};return{drag:t,callback:new o.callback,droppable:[],offset:i}},handler:function(t){var e=t.data;switch(t.type){case!e.dragging&amp;&amp;"touchmove":t.preventDefault();case!e.dragging&amp;&amp;"mousemove":if(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2)&lt;Math.pow(e.distance,2))break;t.target=e.target,o.hijack(t,"dragstart",e),e.propagates&amp;&amp;(e.dragging=!0);case"touchmove":t.preventDefault();case"mousemove":if(e.dragging){if(o.hijack(t,"drag",e),e.propagates){e.drop!==!1&amp;&amp;s.drop&amp;&amp;s.drop.handler(t,e);break}t.type="mouseup"}case"touchend":case"mouseup":default:o.touched?r.remove(o.touched,"touchmove touchend",o.handler):r.remove(document,"mousemove mouseup",o.handler),e.dragging&amp;&amp;(e.drop!==!1&amp;&amp;s.drop&amp;&amp;s.drop.handler(t,e),o.hijack(t,"dragend",e)),o.textselect(!0),e.click===!1&amp;&amp;e.dragging&amp;&amp;n.data(e.mousedown,"suppress.click",(new Date).getTime()+5),e.dragging=o.touched=!1}},hijack:function(t,e,i,s,a){if(i){var l,u,h,c={event:t.originalEvent,type:t.type},p=e.indexOf("drop")?"drag":"drop",d=s||0,f=isNaN(s)?i.interactions.length:s;t.type=e,t.originalEvent=null,i.results=[];do if(u=i.interactions[d]){if("dragend"!==e&amp;&amp;u.cancelled)continue;h=o.properties(t,i,u),
        u.results=[],n(a||u[p]||i.droppable).each(function(s,a){return h.target=a,t.isPropagationStopped=function(){return!1},l=a?r.dispatch.call(a,t,h):null,l===!1?("drag"==p&amp;&amp;(u.cancelled=!0,i.propagates-=1),"drop"==e&amp;&amp;(u[p][s]=null)):"dropinit"==e&amp;&amp;u.droppable.push(o.element(l)||a),"dragstart"==e&amp;&amp;(u.proxy=n(o.element(l)||u.drag)[0]),u.results.push(l),delete t.result,"dropinit"!==e?l:void 0}),i.results[d]=o.flatten(u.results),"dropinit"==e&amp;&amp;(u.droppable=o.flatten(u.droppable)),"dragstart"!=e||u.cancelled||h.update()}while(++d&lt;f);return t.type=c.type,t.originalEvent=c.event,o.flatten(i.results)}},properties:function(t,e,i){var n=i.callback;return n.drag=i.drag,n.proxy=i.proxy||i.drag,n.startX=e.pageX,n.startY=e.pageY,n.deltaX=t.pageX-e.pageX,n.deltaY=t.pageY-e.pageY,n.originalX=i.offset.left,n.originalY=i.offset.top,n.offsetX=n.originalX+n.deltaX,n.offsetY=n.originalY+n.deltaY,n.drop=o.flatten((i.drop||[]).slice()),n.available=o.flatten((i.droppable||[]).slice()),n},element:function(t){return t&amp;&amp;(t.jquery||1==t.nodeType)?t:void 0},flatten:function(t){return n.map(t,function(t){return t&amp;&amp;t.jquery?n.makeArray(t):t&amp;&amp;t.length?o.flatten(t):t})},textselect:function(t){n(document)[t?"unbind":"bind"]("selectstart",o.dontstart).css("MozUserSelect",t?"":"none"),document.unselectable=t?"off":"on"},dontstart:function(){return!1},callback:function(){}};o.callback.prototype={update:function(){s.drop&amp;&amp;this.available.length&amp;&amp;n.each(this.available,function(t){s.drop.locate(this,t)})}};var a=r.dispatch;r.dispatch=function(t){return n.data(this,"suppress."+t.type)-(new Date).getTime()&gt;0?void n.removeData(this,"suppress."+t.type):a.apply(this,arguments)};var l=r.fixHooks.touchstart=r.fixHooks.touchmove=r.fixHooks.touchend=r.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(t,e){if(e){var i=e.touches&amp;&amp;e.touches[0]||e.changedTouches&amp;&amp;e.changedTouches[0]||null;i&amp;&amp;n.each(l.props,function(e,n){t[n]=i[n]})}return t}};s.draginit=s.dragstart=s.dragend=o},{jquery:18}],302:[function(t,e,i){var n=t("jquery");t("jquery_event_drag");n.fn.drop=function(t,e,i){var r="string"==typeof t?t:"",s=n.isFunction(t)?t:n.isFunction(e)?e:null;return 0!==r.indexOf("drop")&amp;&amp;(r="drop"+r),i=(t==s?e:i)||{},s?this.bind(r,i,s):this.trigger(r)},n.drop=function(t){t=t||{},o.multi=t.multi===!0?1/0:t.multi===!1?1:isNaN(t.multi)?o.multi:t.multi,o.delay=t.delay||o.delay,o.tolerance=n.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:o.tolerance,o.mode=t.mode||o.mode||"intersect"};var r=n.event,s=r.special,o=n.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(t){var e=n.data(this,o.datakey);e.related+=1},remove:function(){n.data(this,o.datakey).related-=1},setup:function(){if(!n.data(this,o.datakey)){var t={related:0,active:[],anyactive:0,winner:0,location:{}};n.data(this,o.datakey,t),o.targets.push(this)}},teardown:function(){var t=n.data(this,o.datakey)||{};if(!t.related){n.removeData(this,o.datakey);var e=this;o.targets=n.grep(o.targets,function(t){return t!==e})}},handler:function(t,e){var i;if(e)switch(t.type){case"mousedown":case"touchstart":i=n(o.targets),"string"==typeof e.drop&amp;&amp;(i=i.filter(e.drop)),i.each(function(){var t=n.data(this,o.datakey);t.active=[],t.anyactive=0,t.winner=0}),e.droppable=i,s.drag.hijack(t,"dropinit",e);break;case"mousemove":case"touchmove":o.event=t,o.timer||o.tolerate(e);break;case"mouseup":case"touchend":o.timer=clearTimeout(o.timer),e.propagates&amp;&amp;(s.drag.hijack(t,"drop",e),s.drag.hijack(t,"dropend",e))}},locate:function(t,e){var i=n.data(t,o.datakey),r=n(t),s=r.offset()||{},a=r.outerHeight(),l=r.outerWidth(),u={elem:t,width:l,height:a,top:s.top,left:s.left,right:s.left+l,bottom:s.top+a};return i&amp;&amp;(i.location=u,i.index=e,i.elem=t),u},contains:function(t,e){return(e[0]||e.left)&gt;=t.left&amp;&amp;(e[0]||e.right)&lt;=t.right&amp;&amp;(e[1]||e.top)&gt;=t.top&amp;&amp;(e[1]||e.bottom)&lt;=t.bottom},modes:{intersect:function(t,e,i){return this.contains(i,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,i){return Math.max(0,Math.min(i.bottom,e.bottom)-Math.max(i.top,e.top))*Math.max(0,Math.min(i.right,e.right)-Math.max(i.left,e.left))},fit:function(t,e,i){return this.contains(i,e)?1:0},middle:function(t,e,i){return this.contains(i,[e.left+.5*e.width,e.top+.5*e.height])?1:0}},sort:function(t,e){return e.winner-t.winner||t.index-e.index},tolerate:function(t){var e,i,r,a,l,u,h,c,p=0,d=t.interactions.length,f=[o.event.pageX,o.event.pageY],g=o.tolerance||o.modes[o.mode];do if(c=t.interactions[p]){if(!c)return;c.drop=[],l=[],u=c.droppable.length,g&amp;&amp;(r=o.locate(c.proxy)),e=0;do if(h=c.droppable[e]){if(a=n.data(h,o.datakey),i=a.location,!i)continue;a.winner=g?g.call(o,o.event,r,i):o.contains(i,f)?1:0,l.push(a)}while(++e&lt;u);l.sort(o.sort),e=0;do(a=l[e])&amp;&amp;(a.winner&amp;&amp;c.drop.length&lt;o.multi?(a.active[p]||a.anyactive||(s.drag.hijack(o.event,"dropstart",t,p,a.elem)[0]!==!1?(a.active[p]=1,a.anyactive+=1):a.winner=0),a.winner&amp;&amp;c.drop.push(a.elem)):a.active[p]&amp;&amp;1==a.anyactive&amp;&amp;(s.drag.hijack(o.event,"dropend",t,p,a.elem),a.active[p]=0,a.anyactive-=1));while(++e&lt;u)}while(++p&lt;d);o.last&amp;&amp;f[0]==o.last.pageX&amp;&amp;f[1]==o.last.pageY?delete o.timer:o.timer=setTimeout(function(){o.tolerate(t)},o.delay),o.last=o.event}};s.dropinit=s.dropstart=s.dropend=o},{jquery:18,jquery_event_drag:301}],303:[function(t,e,i){var n;!function(t){function e(t){return t instanceof Array?new l(t):t.__iter__()}function i(t){return t instanceof Array?new u(t):t.__reversed__()}function n(t){return t.__next__()}function r(t){if(t instanceof Array)return t.slice();for(var e,i=[],n=t.__iter__();void 0!==(e=n.__next__());)i.push(e);return i}function s(t,e){if(t instanceof Array){for(var i=0,n=t.length;n&gt;i;++i)if(e(t[i])===!1)return}else for(var r,s=t.__iter__();void 0!==(r=s.__next__());)if(e(r)===!1)return}function o(t,e){var i=[];if(t instanceof Array)for(var n=0,r=t.length;r&gt;n;++n)i.push(e(t[n]));else for(var s,o=t.__iter__();void 0!==(s=o.__next__());)i.push(e(s));return i}function a(t,e){var i,n=[];if(t instanceof Array)for(var r=0,s=t.length;s&gt;r;++r)i=t[r],e(i)&amp;&amp;n.push(i);else for(var o=t.__iter__();void 0!==(i=o.__next__());)e(i)&amp;&amp;n.push(i);return n}var l=function(){function t(t,e){"undefined"==typeof e&amp;&amp;(e=0),this._array=t,this._index=Math.max(0,Math.min(e,t.length))}return t.prototype.__next__=function(){return this._array[this._index++]},t.prototype.__iter__=function(){return this},t}();t.ArrayIterator=l;var u=function(){function t(t,e){"undefined"==typeof e&amp;&amp;(e=t.length),this._array=t,this._index=Math.max(0,Math.min(e,t.length))}return t.prototype.__next__=function(){return this._array[--this._index]},t.prototype.__iter__=function(){return this},t}();t.ReverseArrayIterator=u,t.iter=e,t.reversed=i,t.next=n,t.asArray=r,t.forEach=s,t.map=o,t.filter=a}(n||(n={}));var n;!function(t){var e=function(){function t(t,e){this.first=t,this.second=e}return t.prototype.copy=function(){return new t(this.first,this.second)},t}();t.Pair=e}(n||(n={}));var n;!function(t){function e(t,e,i){for(var n,r,s=0,o=t.length;o&gt;0;)n=o&gt;&gt;1,r=s+n,i(t[r],e)&lt;0?(s=r+1,o-=n+1):o=n;return s}function i(t,i,n){var r=e(t,i,n);if(r===t.length)return-1;var s=t[r];return 0!==n(s,i)?-1:r}function n(t,i,n){var r=e(t,i,n);if(r===t.length)return void 0;var s=t[r];return 0!==n(s,i)?void 0:s}function r(e,i){var n=t.asArray(e),r=n.length;if(1&gt;=r)return n;n.sort(i);for(var s=[n[0]],o=1,a=0;r&gt;o;++o){var l=n[o];0!==i(s[a],l)&amp;&amp;(s.push(l),++a)}return s}function s(t,e,i){for(var n=0,r=0,s=t.length,o=e.length;s&gt;n&amp;&amp;o&gt;r;){var a=i(t[n],e[r]);if(0&gt;a)++n;else{if(!(a&gt;0))return!1;++r}}return!0}function o(t,e,i){var n=t.length,r=e.length;if(n&gt;r)return!1;for(var s=0,o=0;n&gt;s&amp;&amp;r&gt;o;){var a=i(t[s],e[o]);if(0&gt;a)return!1;a&gt;0?++o:(++s,++o)}return n&gt;s?!1:!0}function a(t,e,i){for(var n=0,r=0,s=t.length,o=e.length,a=[];s&gt;n&amp;&amp;o&gt;r;){var l=t[n],u=e[r],h=i(l,u);0&gt;h?(a.push(l),++n):h&gt;0?(a.push(u),++r):(a.push(l),++n,++r)}for(;s&gt;n;)a.push(t[n]),++n;for(;o&gt;r;)a.push(e[r]),++r;return a}function l(t,e,i){for(var n=0,r=0,s=t.length,o=e.length,a=[];s&gt;n&amp;&amp;o&gt;r;){var l=t[n],u=e[r],h=i(l,u);0&gt;h?++n:h&gt;0?++r:(a.push(l),++n,++r)}return a}function u(t,e,i){for(var n=0,r=0,s=t.length,o=e.length,a=[];s&gt;n&amp;&amp;o&gt;r;){var l=t[n],u=e[r],h=i(l,u);0&gt;h?(a.push(l),++n):h&gt;0?++r:(++n,++r)}for(;s&gt;n;)a.push(t[n]),++n;return a}function h(t,e,i){for(var n=0,r=0,s=t.length,o=e.length,a=[];s&gt;n&amp;&amp;o&gt;r;){var l=t[n],u=e[r],h=i(l,u);0&gt;h?(a.push(l),++n):h&gt;0?(a.push(u),++r):(++n,++r)}for(;s&gt;n;)a.push(t[n]),++n;for(;o&gt;r;)a.push(e[r]),++r;return a}t.lowerBound=e,t.binarySearch=i,t.binaryFind=n,t.asSet=r,t.setIsDisjoint=s,t.setIsSubset=o,t.setUnion=a,t.setIntersection=l,t.setDifference=u,t.setSymmetricDifference=h}(n||(n={}));var n;!function(t){var e=function(){function e(){this._array=[]}return e.prototype.size=function(){return this._array.length},e.prototype.empty=function(){return 0===this._array.length},e.prototype.itemAt=function(t){return this._array[t]},e.prototype.takeAt=function(t){return this._array.splice(t,1)[0]},e.prototype.clear=function(){this._array=[]},e.prototype.swap=function(t){var e=this._array;this._array=t._array,t._array=e},e.prototype.__iter__=function(){return t.iter(this._array)},e.prototype.__reversed__=function(){return t.reversed(this._array)},e}();t.ArrayBase=e}(n||(n={}));var n,r=this.__extends||function(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&amp;&amp;(t[n]=e[n]);i.prototype=e.prototype,t.prototype=new i};!function(t){function e(t){return function(e,i){return t(e.first,i)}}function i(t,e,i){for(var n=0,r=0,s=t.length,o=e.length,a=[];s&gt;n&amp;&amp;o&gt;r;){var l=t[n],u=e[r],h=i(l.first,u.first);0&gt;h?(a.push(l.copy()),++n):h&gt;0?(a.push(u.copy()),++r):(a.push(u.copy()),++n,++r)}for(;s&gt;n;)a.push(t[n].copy()),++n;for(;o&gt;r;)a.push(e[r].copy()),++r;return a}var n=function(n){function s(t){n.call(this),this._compare=t,this._wrapped=e(t)}return r(s,n),s.prototype.comparitor=function(){return this._compare},s.prototype.indexOf=function(e){return t.binarySearch(this._array,e,this._wrapped)},s.prototype.contains=function(e){return t.binarySearch(this._array,e,this._wrapped)&gt;=0},s.prototype.find=function(e){return t.binaryFind(this._array,e,this._wrapped)},s.prototype.setDefault=function(e,i){var n=this._array,r=t.lowerBound(n,e,this._wrapped);if(r===n.length){var s=new t.Pair(e,i());return n.push(s),s}var o=n[r];if(0!==this._compare(o.first,e)){var s=new t.Pair(e,i());return n.splice(r,0,s),s}return o},s.prototype.insert=function(e,i){var n=this._array,r=t.lowerBound(n,e,this._wrapped);if(r===n.length){var s=new t.Pair(e,i);return n.push(s),s}var o=n[r];if(0!==this._compare(o.first,e)){var s=new t.Pair(e,i);return n.splice(r,0,s),s}return o.second=i,o},s.prototype.update=function(e){var n=this;if(e instanceof s){var r=e;this._array=i(this._array,r._array,this._compare)}else t.forEach(e,function(t){n.insert(t.first,t.second)})},s.prototype.erase=function(e){var i=this._array,n=t.binarySearch(i,e,this._wrapped);return 0&gt;n?void 0:i.splice(n,1)[0]},s.prototype.copy=function(){for(var t=new s(this._compare),e=t._array,i=this._array,n=0,r=i.length;r&gt;n;++n)e.push(i[n].copy());return t},s}(t.ArrayBase);t.AssociativeArray=n}(n||(n={}));var n;!function(t){function e(e,n){return e instanceof i?e._array:t.asSet(e,n)}var i=function(i){function n(t){i.call(this),this._compare=t}return r(n,i),n.prototype.comparitor=function(){return this._compare},n.prototype.indexOf=function(e){return t.binarySearch(this._array,e,this._compare)},n.prototype.contains=function(e){return t.binarySearch(this._array,e,this._compare)&gt;=0},n.prototype.insert=function(e){var i=this._array,n=t.lowerBound(i,e,this._compare);return n===i.length?(i.push(e),!0):0!==this._compare(i[n],e)?(i.splice(n,0,e),!0):!1},n.prototype.erase=function(e){var i=this._array,n=t.binarySearch(i,e,this._compare);return 0&gt;n?!1:(i.splice(n,1),!0)},n.prototype.copy=function(){var t=new n(this._compare);return t._array=this._array.slice(),t},n.prototype.isDisjoint=function(i){var n=this._compare,r=e(i,n);return t.setIsDisjoint(this._array,r,n)},n.prototype.isSubset=function(i){var n=this._compare,r=e(i,n);return t.setIsSubset(this._array,r,n)},n.prototype.isSuperset=function(i){var n=this._compare,r=e(i,n);return t.setIsSubset(r,this._array,n)},n.prototype.union=function(i){var r=this._compare,s=new n(r),o=e(i,r);return s._array=t.setUnion(this._array,o,r),s},n.prototype.intersection=function(i){var r=this._compare,s=new n(r),o=e(i,r);return s._array=t.setIntersection(this._array,o,r),s},n.prototype.difference=function(i){var r=this._compare,s=new n(r),o=e(i,r);return s._array=t.setDifference(this._array,o,r),s},n.prototype.symmetricDifference=function(i){var r=this._compare,s=new n(r),o=e(i,r);return s._array=t.setSymmetricDifference(this._array,o,r),s},n.prototype.unionUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setUnion(this._array,r,n)},n.prototype.intersectionUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setIntersection(this._array,r,n)},n.prototype.differenceUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setDifference(this._array,r,n)},n.prototype.symmetricDifferenceUpdate=function(i){var n=this._compare,r=e(i,n);this._array=t.setSymmetricDifference(this._array,r,n)},n}(t.ArrayBase);t.UniqueArray=i}(n||(n={}));var s;!function(t){!function(t){t[t.Le=0]="Le",t[t.Ge=1]="Ge",t[t.Eq=2]="Eq"}(t.Operator||(t.Operator={}));var e=(t.Operator,function(){function e(e,n,r){"undefined"==typeof r&amp;&amp;(r=t.Strength.required),this._id=i++,this._operator=n,this._expression=e,this._strength=t.Strength.clip(r)}return e.Compare=function(t,e){return t.id()-e.id()},e.prototype.id=function(){return this._id},e.prototype.expression=function(){return this._expression},e.prototype.op=function(){return this._operator},e.prototype.strength=function(){return this._strength},e}());t.Constraint=e;var i=0}(s||(s={}));var s;!function(t){function e(t){return new n.AssociativeArray(t)}t.createMap=e}(s||(s={}));var s;!function(t){var e=function(){function t(t){"undefined"==typeof t&amp;&amp;(t=""),this._value=0,this._context=null,this._id=i++,this._name=t}return t.Compare=function(t,e){return t.id()-e.id()},t.prototype.id=function(){return this._id},t.prototype.name=function(){return this._name},t.prototype.setName=function(t){this._name=t},t.prototype.context=function(){return this._context},t.prototype.setContext=function(t){this._context=t},t.prototype.value=function(){return this._value},t.prototype.setValue=function(t){this._value=t},t}();t.Variable=e;var i=0}(s||(s={}));var s;!function(t){function e(e){for(var i=0,n=function(){return 0},r=t.createMap(t.Variable.Compare),s=0,o=e.length;o&gt;s;++s){var a=e[s];if("number"==typeof a)i+=a;else if(a instanceof t.Variable)r.setDefault(a,n).second+=1;else{if(!(a instanceof Array))throw new Error("invalid Expression argument: "+a);if(2!==a.length)throw new Error("array must have length 2");var l=a[0],u=a[1];if("number"!=typeof l)throw new Error("array item 0 must be a number");if(!(u instanceof t.Variable))throw new Error("array item 1 must be a variable");r.setDefault(u,n).second+=l}}return{terms:r,constant:i}}var i=function(){function t(){var t=e(arguments);this._terms=t.terms,this._constant=t.constant}return t.prototype.terms=function(){return this._terms},t.prototype.constant=function(){return this._constant},t.prototype.value=function(){var t=this._constant;return n.forEach(this._terms,function(e){t+=e.first.value()*e.second}),t},t}();t.Expression=i}(s||(s={}));var s;!function(t){!function(t){function e(t,e,i,n){"undefined"==typeof n&amp;&amp;(n=1);var r=0;return r+=1e6*Math.max(0,Math.min(1e3,t*n)),r+=1e3*Math.max(0,Math.min(1e3,e*n)),r+=Math.max(0,Math.min(1e3,i*n))}function i(e){return Math.max(0,Math.min(t.required,e))}t.create=e,t.required=e(1e3,1e3,1e3),t.strong=e(1,0,0),t.medium=e(0,1,0),t.weak=e(0,0,1),t.clip=i}(t.Strength||(t.Strength={}));t.Strength}(s||(s={}));var s;!function(t){function e(t){var e=1e-8;return 0&gt;t?e&gt;-t:e&gt;t}function i(){return t.createMap(t.Constraint.Compare)}function n(){return t.createMap(l.Compare)}function r(){return t.createMap(t.Variable.Compare)}function s(){return t.createMap(t.Variable.Compare)}var o=function(){function o(){this._cnMap=i(),this._rowMap=n(),this._varMap=r(),this._editMap=s(),this._infeasibleRows=[],this._objective=new h,this._artificial=null,this._idTick=0}return o.prototype.addConstraint=function(t){var i=this._cnMap.find(t);if(void 0!==i)throw new Error("duplicate constraint");var n=this._createRow(t),r=n.row,s=n.tag,o=this._chooseSubject(r,s);if(0===o.type()&amp;&amp;r.allDummies()){if(!e(r.constant()))throw new Error("unsatifiable constraint");o=s.marker}if(0===o.type()){if(!this._addWithArtificialVariable(r))throw new Error("unsatisfiable constraint")}else r.solveFor(o),this._substitute(o,r),this._rowMap.insert(o,r);this._cnMap.insert(t,s),this._optimize(this._objective)},o.prototype.removeConstraint=function(t){var e=this._cnMap.erase(t);if(void 0===e)throw new Error("unknown constraint");this._removeConstraintEffects(t,e.second);var i=e.second.marker,n=this._rowMap.erase(i);if(void 0===n){var r=this._getMarkerLeavingSymbol(i);if(0===r.type())throw new Error("failed to find leaving row");n=this._rowMap.erase(r),n.second.solveForEx(r,i),this._substitute(i,n.second)}this._optimize(this._objective)},o.prototype.hasConstraint=function(t){return this._cnMap.contains(t)},o.prototype.addEditVariable=function(e,i){var n=this._editMap.find(e);if(void 0!==n)throw new Error("duplicate edit variable");if(i=t.Strength.clip(i),i===t.Strength.required)throw new Error("bad required strength");var r=new t.Expression(e),s=new t.Constraint(r,2,i);this.addConstraint(s);var o=this._cnMap.find(s).second,a={tag:o,constraint:s,constant:0};this._editMap.insert(e,a)},o.prototype.removeEditVariable=function(t){var e=this._editMap.erase(t);if(void 0===e)throw new Error("unknown edit variable");this.removeConstraint(e.second.constraint)},o.prototype.hasEditVariable=function(t){return this._editMap.contains(t)},o.prototype.suggestValue=function(t,e){var i=this._editMap.find(t);if(void 0===i)throw new Error("unknown edit variable");var n=this._rowMap,r=i.second,s=e-r.constant;r.constant=e;var o=r.tag.marker,a=n.find(o);if(void 0!==a)return a.second.add(-s)&lt;0&amp;&amp;this._infeasibleRows.push(o),void this._dualOptimize();var l=r.tag.other,a=n.find(l);if(void 0!==a)return a.second.add(s)&lt;0&amp;&amp;this._infeasibleRows.push(l),void this._dualOptimize();for(var u=0,h=n.size();h&gt;u;++u){var a=n.itemAt(u),c=a.second,p=c.coefficientFor(o);0!==p&amp;&amp;c.add(s*p)&lt;0&amp;&amp;1!==a.first.type()&amp;&amp;this._infeasibleRows.push(a.first)}this._dualOptimize()},o.prototype.updateVariables=function(){for(var t=this._varMap,e=this._rowMap,i=0,n=t.size();n&gt;i;++i){var r=t.itemAt(i),s=e.find(r.second);void 0!==s?r.first.setValue(s.second.constant()):r.first.setValue(0)}},o.prototype._getVarSymbol=function(t){var e=this,i=function(){return e._makeSymbol(1)};return this._varMap.setDefault(t,i).second},o.prototype._createRow=function(i){for(var n=i.expression(),r=new h(n.constant()),s=n.terms(),o=0,a=s.size();a&gt;o;++o){var l=s.itemAt(o);if(!e(l.second)){var c=this._getVarSymbol(l.first),p=this._rowMap.find(c);void 0!==p?r.insertRow(p.second,l.second):r.insertSymbol(c,l.second)}}var d=this._objective,f=i.strength(),g={marker:u,other:u};switch(i.op()){case 0:case 1:var m=0===i.op()?1:-1,_=this._makeSymbol(2);if(g.marker=_,r.insertSymbol(_,m),f&lt;t.Strength.required){var v=this._makeSymbol(3);g.other=v,r.insertSymbol(v,-m),d.insertSymbol(v,f)}break;case 2:if(f&lt;t.Strength.required){var y=this._makeSymbol(3),b=this._makeSymbol(3);g.marker=y,g.other=b,r.insertSymbol(y,-1),r.insertSymbol(b,1),d.insertSymbol(y,f),d.insertSymbol(b,f)}else{var w=this._makeSymbol(4);g.marker=w,r.insertSymbol(w)}}return r.constant()&lt;0&amp;&amp;r.reverseSign(),{row:r,tag:g}},o.prototype._chooseSubject=function(t,e){for(var i=t.cells(),n=0,r=i.size();r&gt;n;++n){var s=i.itemAt(n);if(1===s.first.type())return s.first}var o=e.marker.type();return(2===o||3===o)&amp;&amp;t.coefficientFor(e.marker)&lt;0?e.marker:(o=e.other.type(),(2===o||3===o)&amp;&amp;t.coefficientFor(e.other)&lt;0?e.other:u)},o.prototype._addWithArtificialVariable=function(t){var i=this._makeSymbol(2);this._rowMap.insert(i,t.copy()),this._artificial=t.copy(),this._optimize(this._artificial);var n=e(this._artificial.constant());this._artificial=null;var r=this._rowMap.erase(i);if(void 0!==r){var s=r.second;if(s.isConstant())return n;var o=this._anyPivotableSymbol(s);if(0===o.type())return!1;s.solveForEx(i,o),this._substitute(o,s),this._rowMap.insert(o,s)}for(var a=this._rowMap,l=0,u=a.size();u&gt;l;++l)a.itemAt(l).second.removeSymbol(i);return this._objective.removeSymbol(i),n},o.prototype._substitute=function(t,e){for(var i=this._rowMap,n=0,r=i.size();r&gt;n;++n){var s=i.itemAt(n);s.second.substitute(t,e),s.second.constant()&lt;0&amp;&amp;1!==s.first.type()&amp;&amp;this._infeasibleRows.push(s.first)}this._objective.substitute(t,e),this._artificial&amp;&amp;this._artificial.substitute(t,e)},o.prototype._optimize=function(t){for(;;){var e=this._getEnteringSymbol(t);if(0===e.type())return;var i=this._getLeavingSymbol(e);if(0===i.type())throw new Error("the objective is unbounded");var n=this._rowMap.erase(i).second;n.solveForEx(i,e),this._substitute(e,n),this._rowMap.insert(e,n)}},o.prototype._dualOptimize=function(){for(var t=this._rowMap,e=this._infeasibleRows;0!==e.length;){var i=e.pop(),n=t.find(i);if(void 0!==n&amp;&amp;n.second.constant()&lt;0){var r=this._getDualEnteringSymbol(n.second);if(0===r.type())throw new Error("dual optimize failed");var s=n.second;t.erase(i),s.solveForEx(i,r),this._substitute(r,s),t.insert(r,s)}}},o.prototype._getEnteringSymbol=function(t){for(var e=t.cells(),i=0,n=e.size();n&gt;i;++i){var r=e.itemAt(i),s=r.first;if(r.second&lt;0&amp;&amp;4!==s.type())return s}return u},o.prototype._getDualEnteringSymbol=function(t){for(var e=Number.MAX_VALUE,i=u,n=t.cells(),r=0,s=n.size();s&gt;r;++r){var o=n.itemAt(r),a=o.first,l=o.second;if(l&gt;0&amp;&amp;4!==a.type()){var h=this._objective.coefficientFor(a),c=h/l;e&gt;c&amp;&amp;(e=c,i=a)}}return i},o.prototype._getLeavingSymbol=function(t){for(var e=Number.MAX_VALUE,i=u,n=this._rowMap,r=0,s=n.size();s&gt;r;++r){var o=n.itemAt(r),a=o.first;if(1!==a.type()){var l=o.second,h=l.coefficientFor(t);if(0&gt;h){var c=-l.constant()/h;e&gt;c&amp;&amp;(e=c,i=a)}}}return i},o.prototype._getMarkerLeavingSymbol=function(t){for(var e=Number.MAX_VALUE,i=e,n=e,r=u,s=r,o=r,a=r,l=this._rowMap,h=0,c=l.size();c&gt;h;++h){var p=l.itemAt(h),d=p.second,f=d.coefficientFor(t);if(0!==f){var g=p.first;if(1===g.type())a=g;else if(0&gt;f){var m=-d.constant()/f;i&gt;m&amp;&amp;(i=m,s=g)}else{var m=d.constant()/f;n&gt;m&amp;&amp;(n=m,o=g)}}}return s!==r?s:o!==r?o:a},o.prototype._removeConstraintEffects=function(t,e){3===e.marker.type()&amp;&amp;this._removeMarkerEffects(e.marker,t.strength()),3===e.other.type()&amp;&amp;this._removeMarkerEffects(e.other,t.strength())},o.prototype._removeMarkerEffects=function(t,e){var i=this._rowMap.find(t);void 0!==i?this._objective.insertRow(i.second,-e):this._objective.insertSymbol(t,-e)},o.prototype._anyPivotableSymbol=function(t){for(var e=t.cells(),i=0,n=e.size();n&gt;i;++i){var r=e.itemAt(i),s=r.first.type();if(2===s||3===s)return r.first}return u},o.prototype._makeSymbol=function(t){return new l(t,this._idTick++)},o}();t.Solver=o;var a;!function(t){t[t.Invalid=0]="Invalid",t[t.External=1]="External",t[t.Slack=2]="Slack",t[t.Error=3]="Error",t[t.Dummy=4]="Dummy"}(a||(a={}));var l=function(){function t(t,e){this._id=e,this._type=t}return t.Compare=function(t,e){return t.id()-e.id()},t.prototype.id=function(){return this._id},t.prototype.type=function(){return this._type},t}(),u=new l(0,-1),h=function(){function i(e){"undefined"==typeof e&amp;&amp;(e=0),this._cellMap=t.createMap(l.Compare),this._constant=e}return i.prototype.cells=function(){return this._cellMap},i.prototype.constant=function(){return this._constant},i.prototype.isConstant=function(){return this._cellMap.empty()},i.prototype.allDummies=function(){for(var t=this._cellMap,e=0,i=t.size();i&gt;e;++e){var n=t.itemAt(e);if(4!==n.first.type())return!1}return!0},i.prototype.copy=function(){var t=new i(this._constant);return t._cellMap=this._cellMap.copy(),t},i.prototype.add=function(t){return this._constant+=t},i.prototype.insertSymbol=function(t,i){"undefined"==typeof i&amp;&amp;(i=1);var n=this._cellMap.setDefault(t,function(){return 0});e(n.second+=i)&amp;&amp;this._cellMap.erase(t)},i.prototype.insertRow=function(t,e){"undefined"==typeof e&amp;&amp;(e=1),this._constant+=t._constant*e;for(var i=t._cellMap,n=0,r=i.size();r&gt;n;++n){var s=i.itemAt(n);this.insertSymbol(s.first,s.second*e)}},i.prototype.removeSymbol=function(t){this._cellMap.erase(t)},i.prototype.reverseSign=function(){this._constant=-this._constant;for(var t=this._cellMap,e=0,i=t.size();i&gt;e;++e){var n=t.itemAt(e);n.second=-n.second}},i.prototype.solveFor=function(t){var e=this._cellMap,i=e.erase(t),n=-1/i.second;this._constant*=n;for(var r=0,s=e.size();s&gt;r;++r)e.itemAt(r).second*=n},i.prototype.solveForEx=function(t,e){this.insertSymbol(t,-1),this.solveFor(e)},i.prototype.coefficientFor=function(t){var e=this._cellMap.find(t);return void 0!==e?e.second:0},i.prototype.substitute=function(t,e){var i=this._cellMap.erase(t);void 0!==i&amp;&amp;this.insertRow(e,i.second)},i}()}(s||(s={})),e.exports=s},{}],304:[function(t,e,i){function n(t,e,i,n){var r,s,o=Math.pow(10,e);return s=(i(t*o)/o).toFixed(e),n&amp;&amp;(r=new RegExp("0{1,"+n+"}$"),s=s.replace(r,"")),s}function r(t,e,i,n){var r;return r=e.indexOf("$")&gt;-1?s(t,e,i,n):e.indexOf("%")&gt;-1?o(t,e,i,n):e.indexOf(":")&gt;-1?a(t,e,i):l(t,e,i,n)}function s(t,e,i,n){var r,s,o=e.indexOf("$"),a=e.indexOf("("),u=e.indexOf("-"),h="";return e.indexOf(" $")&gt;-1?(h=" ",e=e.replace(" $","")):e.indexOf("$ ")&gt;-1?(h=" ",e=e.replace("$ ","")):e=e.replace("$",""),s=l(t,e,i,n),1&gt;=o?s.indexOf("(")&gt;-1||s.indexOf("-")&gt;-1?(s=s.split(""),r=1,(a&gt;o||u&gt;o)&amp;&amp;(r=0),s.splice(r,0,i.currency.symbol+h),s=s.join("")):s=i.currency.symbol+h+s:s.indexOf(")")&gt;-1?(s=s.split(""),s.splice(-1,0,h+i.currency.symbol),s=s.join("")):s=s+h+i.currency.symbol,s}function o(t,e,i,n){var r,s="",t=100*t;return e.indexOf(" %")&gt;-1?(s=" ",e=e.replace(" %","")):e=e.replace("%",""),r=l(t,e,i,n),r.indexOf(")")&gt;-1?(r=r.split(""),r.splice(-1,0,s+"%"),r=r.join("")):r=r+s+"%",r}function a(t,e){var i=Math.floor(t/60/60),n=Math.floor((t-60*i*60)/60),r=Math.round(t-60*i*60-60*n);return i+":"+(10&gt;n?"0"+n:n)+":"+(10&gt;r?"0"+r:r)}function l(t,e,i,r){var s,o,a,l,u,h,c=!1,p=!1,d=!1,f="",g=!1,m=!1,_=!1,v=!1,y=!1,b="",w="",x=Math.abs(t),k=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],M="",C=!1;if(e.indexOf("(")&gt;-1?(c=!0,e=e.slice(1,-1)):e.indexOf("+")&gt;-1&amp;&amp;(p=!0,e=e.replace(/\+/g,"")),e.indexOf("a")&gt;-1&amp;&amp;(g=e.indexOf("aK")&gt;=0,m=e.indexOf("aM")&gt;=0,_=e.indexOf("aB")&gt;=0,v=e.indexOf("aT")&gt;=0,y=g||m||_||v,e.indexOf(" a")&gt;-1?(f=" ",e=e.replace(" a","")):e=e.replace("a",""),x&gt;=Math.pow(10,12)&amp;&amp;!y||v?(f+=i.abbreviations.trillion,t/=Math.pow(10,12)):x&lt;Math.pow(10,12)&amp;&amp;x&gt;=Math.pow(10,9)&amp;&amp;!y||_?(f+=i.abbreviations.billion,t/=Math.pow(10,9)):x&lt;Math.pow(10,9)&amp;&amp;x&gt;=Math.pow(10,6)&amp;&amp;!y||m?(f+=i.abbreviations.million,t/=Math.pow(10,6)):(x&lt;Math.pow(10,6)&amp;&amp;x&gt;=Math.pow(10,3)&amp;&amp;!y||g)&amp;&amp;(f+=i.abbreviations.thousand,t/=Math.pow(10,3))),e.indexOf("b")&gt;-1)for(e.indexOf(" b")&gt;-1?(b=" ",e=e.replace(" b","")):e=e.replace("b",""),a=0;a&lt;=k.length;a++)if(s=Math.pow(1024,a),o=Math.pow(1024,a+1),t&gt;=s&amp;&amp;o&gt;t){b+=k[a],s&gt;0&amp;&amp;(t/=s);break}return e.indexOf("o")&gt;-1&amp;&amp;(e.indexOf(" o")&gt;-1?(w=" ",e=e.replace(" o","")):e=e.replace("o",""),w+=i.ordinal(t)),e.indexOf("[.]")&gt;-1&amp;&amp;(d=!0,e=e.replace("[.]",".")),l=t.toString().split(".")[0],u=e.split(".")[1],h=e.indexOf(","),u?(u.indexOf("[")&gt;-1?(u=u.replace("]",""),u=u.split("["),M=n(t,u[0].length+u[1].length,r,u[1].length)):M=n(t,u.length,r),l=M.split(".")[0],M=M.split(".")[1].length?i.delimiters.decimal+M.split(".")[1]:"",d&amp;&amp;0===Number(M.slice(1))&amp;&amp;(M="")):l=n(t,null,r),l.indexOf("-")&gt;-1&amp;&amp;(l=l.slice(1),C=!0),h&gt;-1&amp;&amp;(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i.delimiters.thousands)),0===e.indexOf(".")&amp;&amp;(l=""),(c&amp;&amp;C?"(":"")+(!c&amp;&amp;C?"-":"")+(!C&amp;&amp;p?"+":"")+l+M+(w?w:"")+(f?f:"")+(b?b:"")+(c&amp;&amp;C?")":"")}function u(t,e){p[t]=e}function h(t,e,i,n){return r(Number(t),c.isString(e)?e:d,c.isString(i)?p[i]:p[f],c.isUndefined(n)?Math.round:n)}var c=t("underscore"),p={},d="0,0",f="en";u("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$"}}),e.exports={format:h}},{underscore:92}],305:[function(t,e,i){function n(t){function e(t){p=t,d.subscribe(p.onSelectedRowsChanged,n).subscribe(p.onClick,a).subscribe(p.onHeaderClick,u).subscribe(p.onKeyDown,o)}function i(){d.unsubscribeAll()}function n(t,e){var i,n,r=p.getSelectedRows(),s={};for(n=0;n&lt;r.length;n++)i=r[n],s[i]=!0,s[i]!==f[i]&amp;&amp;(p.invalidateRow(i),delete f[i]);for(n in f)p.invalidateRow(n);f=s,p.render(),r.length&amp;&amp;r.length==p.getDataLength()?p.updateColumnHeader(m.columnId,"&lt;input type='checkbox' checked='checked'&gt;",m.toolTip):p.updateColumnHeader(m.columnId,"&lt;input type='checkbox'&gt;",m.toolTip)}function o(t,e){32==t.which&amp;&amp;p.getColumns()[e.cell].id===m.columnId&amp;&amp;((!p.getEditorLock().isActive()||p.getEditorLock().commitCurrentEdit())&amp;&amp;l(e.row),t.preventDefault(),t.stopImmediatePropagation())}function a(t,e){if(p.getColumns()[e.cell].id===m.columnId&amp;&amp;r(t.target).is(":checkbox")){if(p.getEditorLock().isActive()&amp;&amp;!p.getEditorLock().commitCurrentEdit())return t.preventDefault(),void t.stopImmediatePropagation();l(e.row),t.stopPropagation(),t.stopImmediatePropagation()}}function l(t){f[t]?p.setSelectedRows(r.grep(p.getSelectedRows(),function(e){return e!=t})):p.setSelectedRows(p.getSelectedRows().concat(t))}function u(t,e){if(e.column.id==m.columnId&amp;&amp;r(t.target).is(":checkbox")){if(p.getEditorLock().isActive()&amp;&amp;!p.getEditorLock().commitCurrentEdit())return t.preventDefault(),void t.stopImmediatePropagation();if(r(t.target).is(":checked")){for(var i=[],n=0;n&lt;p.getDataLength();n++)i.push(n);p.setSelectedRows(i)}else p.setSelectedRows([]);t.stopPropagation(),t.stopImmediatePropagation()}}function h(){return{id:m.columnId,name:"&lt;input type='checkbox'&gt;",toolTip:m.toolTip,field:"sel",width:m.width,resizable:!1,sortable:!1,cssClass:m.cssClass,formatter:c}}function c(t,e,i,n,r){return r?f[t]?"&lt;input type='checkbox' checked='checked'&gt;":"&lt;input type='checkbox'&gt;":null}var p,d=new s.EventHandler,f={},g={columnId:"_checkbox_selector",cssClass:null,toolTip:"Select/Deselect All",width:30},m=r.extend(!0,{},g,t);r.extend(this,{init:e,destroy:i,getColumnDefinition:h})}var r=t("jquery"),s=t("../slick.core");e.exports=n},{"../slick.core":307,jquery:18}],306:[function(t,e,i){function n(t){function e(e){v=r.extend(!0,{},x,t),m=e,w.subscribe(m.onActiveCellChanged,n(d)),w.subscribe(m.onKeyDown,n(f)),w.subscribe(m.onClick,n(g))}function i(){w.unsubscribeAll()}function n(t){return function(){_||(_=!0,t.apply(this,arguments),_=!1)}}function o(t){for(var e=[],i=0;i&lt;t.length;i++)for(var n=t[i].fromRow;n&lt;=t[i].toRow;n++)e.push(n);return e}function a(t){for(var e=[],i=m.getColumns().length-1,n=0;n&lt;t.length;n++)e.push(new s.Range(t[n],0,t[n],i));return e}function l(t,e){var i,n=[];for(i=t;e&gt;=i;i++)n.push(i);for(i=e;t&gt;i;i++)n.push(i);return n}function u(){return o(y)}function h(t){c(a(t))}function c(t){y=t,b.onSelectedRangesChanged.notify(y)}function p(){return y}function d(t,e){v.selectActiveRow&amp;&amp;null!=e.row&amp;&amp;c([new s.Range(e.row,0,e.row,m.getColumns().length-1)])}function f(t){var e=m.getActiveCell();if(e&amp;&amp;t.shiftKey&amp;&amp;!t.ctrlKey&amp;&amp;!t.altKey&amp;&amp;!t.metaKey&amp;&amp;(38==t.which||40==t.which)){var i=u();i.sort(function(t,e){return t-e}),i.length||(i=[e.row]);var n,r=i[0],s=i[i.length-1];n=40==t.which?e.row&lt;s||r==s?++s:++r:e.row&lt;s?--s:--r,n&gt;=0&amp;&amp;n&lt;m.getDataLength()&amp;&amp;(m.scrollRowIntoView(n),y=a(l(r,s)),c(y)),t.preventDefault(),t.stopPropagation()}}function g(t){var e=m.getCellFromEvent(t);if(!e||!m.canCellBeActive(e.row,e.cell))return!1;if(!m.getOptions().multiSelect||!t.ctrlKey&amp;&amp;!t.shiftKey&amp;&amp;!t.metaKey)return!1;var i=o(y),n=r.inArray(e.row,i);if(-1===n&amp;&amp;(t.ctrlKey||t.metaKey))i.push(e.row),
        m.setActiveCell(e.row,e.cell);else if(-1!==n&amp;&amp;(t.ctrlKey||t.metaKey))i=r.grep(i,function(t,i){return t!==e.row}),m.setActiveCell(e.row,e.cell);else if(i.length&amp;&amp;t.shiftKey){var s=i.pop(),l=Math.min(e.row,s),u=Math.max(e.row,s);i=[];for(var h=l;u&gt;=h;h++)h!==s&amp;&amp;i.push(h);i.push(s),m.setActiveCell(e.row,e.cell)}return y=a(i),c(y),t.stopImmediatePropagation(),!0}var m,_,v,y=[],b=this,w=new s.EventHandler,x={selectActiveRow:!0};r.extend(this,{getSelectedRows:u,setSelectedRows:h,getSelectedRanges:p,setSelectedRanges:c,init:e,destroy:i,onSelectedRangesChanged:new s.Event})}var r=t("jquery"),s=t("../slick.core");e.exports=n},{"../slick.core":307,jquery:18}],307:[function(t,e,i){function n(){var t=!1,e=!1;this.stopPropagation=function(){t=!0},this.isPropagationStopped=function(){return t},this.stopImmediatePropagation=function(){e=!0},this.isImmediatePropagationStopped=function(){return e}}function r(){var t=[];this.subscribe=function(e){t.push(e)},this.unsubscribe=function(e){for(var i=t.length-1;i&gt;=0;i--)t[i]===e&amp;&amp;t.splice(i,1)},this.notify=function(e,i,r){i=i||new n,r=r||this;for(var s,o=0;o&lt;t.length&amp;&amp;!i.isPropagationStopped()&amp;&amp;!i.isImmediatePropagationStopped();o++)s=t[o].call(r,i,e);return s}}function s(){var t=[];this.subscribe=function(e,i){return t.push({event:e,handler:i}),e.subscribe(i),this},this.unsubscribe=function(e,i){for(var n=t.length;n--;)if(t[n].event===e&amp;&amp;t[n].handler===i)return t.splice(n,1),void e.unsubscribe(i);return this},this.unsubscribeAll=function(){for(var e=t.length;e--;)t[e].event.unsubscribe(t[e].handler);return t=[],this}}function o(t,e,i,n){void 0===i&amp;&amp;void 0===n&amp;&amp;(i=t,n=e),this.fromRow=Math.min(t,i),this.fromCell=Math.min(e,n),this.toRow=Math.max(t,i),this.toCell=Math.max(e,n),this.isSingleRow=function(){return this.fromRow==this.toRow},this.isSingleCell=function(){return this.fromRow==this.toRow&amp;&amp;this.fromCell==this.toCell},this.contains=function(t,e){return t&gt;=this.fromRow&amp;&amp;t&lt;=this.toRow&amp;&amp;e&gt;=this.fromCell&amp;&amp;e&lt;=this.toCell},this.toString=function(){return this.isSingleCell()?"("+this.fromRow+":"+this.fromCell+")":"("+this.fromRow+":"+this.fromCell+" - "+this.toRow+":"+this.toCell+")"}}function a(){this.__nonDataRow=!0}function l(){this.__group=!0,this.level=0,this.count=0,this.value=null,this.title=null,this.collapsed=!1,this.totals=null,this.rows=[],this.groups=null,this.groupingKey=null}function u(){this.__groupTotals=!0,this.group=null,this.initialized=!1}function h(){var t=null;this.isActive=function(e){return e?t===e:null!==t},this.activate=function(e){if(e!==t){if(null!==t)throw"SlickGrid.EditorLock.activate: an editController is still active, can't activate another editController";if(!e.commitCurrentEdit)throw"SlickGrid.EditorLock.activate: editController must implement .commitCurrentEdit()";if(!e.cancelCurrentEdit)throw"SlickGrid.EditorLock.activate: editController must implement .cancelCurrentEdit()";t=e}},this.deactivate=function(e){if(t!==e)throw"SlickGrid.EditorLock.deactivate: specified editController is not the currently active one";t=null},this.commitCurrentEdit=function(){return t?t.commitCurrentEdit():!0},this.cancelCurrentEdit=function(){return t?t.cancelCurrentEdit():!0}}var c=(t("jquery"),{Event:r,EventData:n,EventHandler:s,Range:o,NonDataRow:a,Group:l,GroupTotals:u,EditorLock:h,GlobalEditorLock:new h});l.prototype=new a,l.prototype.equals=function(t){return this.value===t.value&amp;&amp;this.count===t.count&amp;&amp;this.collapsed===t.collapsed&amp;&amp;this.title===t.title},u.prototype=new a,e.exports=c},{jquery:18}],308:[function(require,module,exports){function SlickGrid(container,data,columns,options){function init(){if($container=$(container),$container.length&lt;1)throw new Error("SlickGrid requires a valid container, "+container+" does not exist in the DOM.");maxSupportedCssHeight=maxSupportedCssHeight||getMaxSupportedCssHeight(),scrollbarDimensions=scrollbarDimensions||measureScrollbar(),options=$.extend({},defaults,options),validateAndEnforceOptions(),columnDefaults.width=options.defaultColumnWidth,columnsById={};for(var t=0;t&lt;columns.length;t++){var e=columns[t]=$.extend({},columnDefaults,columns[t]);columnsById[e.id]=t,e.minWidth&amp;&amp;e.width&lt;e.minWidth&amp;&amp;(e.width=e.minWidth),e.maxWidth&amp;&amp;e.width&gt;e.maxWidth&amp;&amp;(e.width=e.maxWidth)}if(options.enableColumnReorder&amp;&amp;!$.fn.sortable)throw new Error("SlickGrid's 'enableColumnReorder = true' option requires jquery-ui.sortable module to be loaded");editController={commitCurrentEdit:commitCurrentEdit,cancelCurrentEdit:cancelCurrentEdit},$container.empty().css("overflow","hidden").css("outline",0).addClass(uid).addClass("bk-ui-widget"),/relative|absolute|fixed/.test($container.css("position"))||$container.css("position","relative"),$focusSink=$("&lt;div tabIndex='0' hideFocus style='position:fixed;width:0;height:0;top:0;left:0;outline:0;'&gt;&lt;/div&gt;").appendTo($container),$headerScroller=$("&lt;div class='bk-slick-header bk-ui-state-default' style='overflow:hidden;position:relative;' /&gt;").appendTo($container),$headers=$("&lt;div class='bk-slick-header-columns' style='left:-1000px' /&gt;").appendTo($headerScroller),$headers.width(getHeadersWidth()),$headerRowScroller=$("&lt;div class='bk-slick-headerrow bk-ui-state-default' style='overflow:hidden;position:relative;' /&gt;").appendTo($container),$headerRow=$("&lt;div class='bk-slick-headerrow-columns' /&gt;").appendTo($headerRowScroller),$headerRowSpacer=$("&lt;div style='display:block;height:1px;position:absolute;top:0;left:0;'&gt;&lt;/div&gt;").css("width",getCanvasWidth()+scrollbarDimensions.width+"px").appendTo($headerRowScroller),$topPanelScroller=$("&lt;div class='bk-slick-top-panel-scroller bk-ui-state-default' style='overflow:hidden;position:relative;' /&gt;").appendTo($container),$topPanel=$("&lt;div class='bk-slick-top-panel' style='width:10000px' /&gt;").appendTo($topPanelScroller),options.showTopPanel||$topPanelScroller.hide(),options.showHeaderRow||$headerRowScroller.hide(),$viewport=$("&lt;div class='bk-slick-viewport' style='width:100%;overflow:auto;outline:0;position:relative;;'&gt;").appendTo($container),$viewport.css("overflow-y",options.autoHeight?"hidden":"auto"),$canvas=$("&lt;div class='grid-canvas' /&gt;").appendTo($viewport),$focusSink2=$focusSink.clone().appendTo($container),options.explicitInitialization||finishInitialization()}function finishInitialization(){initialized||(initialized=!0,viewportW=parseFloat($.css($container[0],"width",!0)),measureCellPaddingAndBorder(),disableSelection($headers),options.enableTextSelectionOnCells||$viewport.bind("selectstart.ui",function(t){return $(t.target).is("input,textarea")}),updateColumnCaches(),createColumnHeaders(),setupColumnSort(),createCssRules(),resizeCanvas(),bindAncestorScrollEvents(),$container.bind("resize.bk-slickgrid",resizeCanvas),$viewport.bind("scroll",handleScroll),$headerScroller.bind("contextmenu",handleHeaderContextMenu).bind("click",handleHeaderClick).delegate(".bk-slick-header-column","mouseenter",handleHeaderMouseEnter).delegate(".bk-slick-header-column","mouseleave",handleHeaderMouseLeave),$headerRowScroller.bind("scroll",handleHeaderRowScroll),$focusSink.add($focusSink2).bind("keydown",handleKeyDown),$canvas.bind("keydown",handleKeyDown).bind("click",handleClick).bind("dblclick",handleDblClick).bind("contextmenu",handleContextMenu).bind("draginit",handleDragInit).bind("dragstart",{distance:3},handleDragStart).bind("drag",handleDrag).bind("dragend",handleDragEnd).delegate(".bk-slick-cell","mouseenter",handleMouseEnter).delegate(".bk-slick-cell","mouseleave",handleMouseLeave),navigator.userAgent.toLowerCase().match(/webkit/)&amp;&amp;navigator.userAgent.toLowerCase().match(/macintosh/)&amp;&amp;$canvas.bind("mousewheel",handleMouseWheel))}function registerPlugin(t){plugins.unshift(t),t.init(self)}function unregisterPlugin(t){for(var e=plugins.length;e&gt;=0;e--)if(plugins[e]===t){plugins[e].destroy&amp;&amp;plugins[e].destroy(),plugins.splice(e,1);break}}function setSelectionModel(t){selectionModel&amp;&amp;(selectionModel.onSelectedRangesChanged.unsubscribe(handleSelectedRangesChanged),selectionModel.destroy&amp;&amp;selectionModel.destroy()),selectionModel=t,selectionModel&amp;&amp;(selectionModel.init(self),selectionModel.onSelectedRangesChanged.subscribe(handleSelectedRangesChanged))}function getSelectionModel(){return selectionModel}function getCanvasNode(){return $canvas[0]}function measureScrollbar(){var t=$("&lt;div style='position:absolute; top:-10000px; left:-10000px; width:100px; height:100px; overflow:scroll;'&gt;&lt;/div&gt;").appendTo("body"),e={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),e}function getHeadersWidth(){for(var t=0,e=0,i=columns.length;i&gt;e;e++){var n=columns[e].width;t+=n}return t+=scrollbarDimensions.width,Math.max(t,viewportW)+1e3}function getCanvasWidth(){for(var t=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW,e=0,i=columns.length;i--;)e+=columns[i].width;return options.fullWidthRows?Math.max(e,t):e}function updateCanvasWidth(t){var e=canvasWidth;canvasWidth=getCanvasWidth(),canvasWidth!=e&amp;&amp;($canvas.width(canvasWidth),$headerRow.width(canvasWidth),$headers.width(getHeadersWidth()),viewportHasHScroll=canvasWidth&gt;viewportW-scrollbarDimensions.width),$headerRowSpacer.width(canvasWidth+(viewportHasVScroll?scrollbarDimensions.width:0)),(canvasWidth!=e||t)&amp;&amp;applyColumnWidths()}function disableSelection(t){t&amp;&amp;t.jquery&amp;&amp;t.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return!1})}function getMaxSupportedCssHeight(){for(var t=1e6,e=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,i=$("&lt;div style='display:none' /&gt;").appendTo(document.body);;){var n=2*t;if(i.css("height",n),n&gt;e||i.height()!==n)break;t=n}return i.remove(),t}function bindAncestorScrollEvents(){for(var t=$canvas[0];(t=t.parentNode)!=document.body&amp;&amp;null!=t;)if(t==$viewport[0]||t.scrollWidth!=t.clientWidth||t.scrollHeight!=t.clientHeight){var e=$(t);$boundAncestors=$boundAncestors?$boundAncestors.add(e):e,e.bind("scroll."+uid,handleActiveCellPositionChange)}}function unbindAncestorScrollEvents(){$boundAncestors&amp;&amp;($boundAncestors.unbind("scroll."+uid),$boundAncestors=null)}function updateColumnHeader(t,e,i){if(initialized){var n=getColumnIndex(t);if(null!=n){var r=columns[n],s=$headers.children().eq(n);s&amp;&amp;(void 0!==e&amp;&amp;(columns[n].name=e),void 0!==i&amp;&amp;(columns[n].toolTip=i),trigger(self.onBeforeHeaderCellDestroy,{node:s[0],column:r}),s.attr("title",i||"").children().eq(0).html(e),trigger(self.onHeaderCellRendered,{node:s[0],column:r}))}}}function getHeaderRow(){return $headerRow[0]}function getHeaderRowColumn(t){var e=getColumnIndex(t),i=$headerRow.children().eq(e);return i&amp;&amp;i[0]}function createColumnHeaders(){function t(){$(this).addClass("bk-ui-state-hover")}function e(){$(this).removeClass("bk-ui-state-hover")}$headers.find(".bk-slick-header-column").each(function(){var t=$(this).data("column");t&amp;&amp;trigger(self.onBeforeHeaderCellDestroy,{node:this,column:t})}),$headers.empty(),$headers.width(getHeadersWidth()),$headerRow.find(".bk-slick-headerrow-column").each(function(){var t=$(this).data("column");t&amp;&amp;trigger(self.onBeforeHeaderRowCellDestroy,{node:this,column:t})}),$headerRow.empty();for(var i=0;i&lt;columns.length;i++){var n=columns[i],r=$("&lt;div class='bk-ui-state-default bk-slick-header-column' /&gt;").html("&lt;span class='bk-slick-column-name'&gt;"+n.name+"&lt;/span&gt;").width(n.width-headerColumnWidthDiff).attr("id",""+uid+n.id).attr("title",n.toolTip||"").data("column",n).addClass(n.headerCssClass||"").appendTo($headers);if((options.enableColumnReorder||n.sortable)&amp;&amp;r.on("mouseenter",t).on("mouseleave",e),n.sortable&amp;&amp;(r.addClass("bk-slick-header-sortable"),r.append("&lt;span class='bk-slick-sort-indicator' /&gt;")),trigger(self.onHeaderCellRendered,{node:r[0],column:n}),options.showHeaderRow){var s=$("&lt;div class='bk-ui-state-default bk-slick-headerrow-column l"+i+" r"+i+"'&gt;&lt;/div&gt;").data("column",n).appendTo($headerRow);trigger(self.onHeaderRowCellRendered,{node:s[0],column:n})}}setSortColumns(sortColumns),setupColumnResize(),options.enableColumnReorder&amp;&amp;setupColumnReorder()}function setupColumnSort(){$headers.click(function(t){if(t.metaKey=t.metaKey||t.ctrlKey,!$(t.target).hasClass("bk-slick-resizable-handle")){var e=$(t.target).closest(".bk-slick-header-column");if(e.length){var i=e.data("column");if(i.sortable){if(!getEditorLock().commitCurrentEdit())return;for(var n=null,r=0;r&lt;sortColumns.length;r++)if(sortColumns[r].columnId==i.id){n=sortColumns[r],n.sortAsc=!n.sortAsc;break}t.metaKey&amp;&amp;options.multiColumnSort?n&amp;&amp;sortColumns.splice(r,1):((t.shiftKey||t.metaKey)&amp;&amp;options.multiColumnSort||(sortColumns=[]),n?0==sortColumns.length&amp;&amp;sortColumns.push(n):(n={columnId:i.id,sortAsc:i.defaultSortAsc},sortColumns.push(n))),setSortColumns(sortColumns),options.multiColumnSort?trigger(self.onSort,{multiColumnSort:!0,sortCols:$.map(sortColumns,function(t){return{sortCol:columns[getColumnIndex(t.columnId)],sortAsc:t.sortAsc}})},t):trigger(self.onSort,{multiColumnSort:!1,sortCol:i,sortAsc:n.sortAsc},t)}}}})}function setupColumnReorder(){$headers.filter(":ui-sortable").sortable("destroy"),$headers.sortable({containment:"parent",distance:3,axis:"x",cursor:"default",tolerance:"intersection",helper:"clone",placeholder:"bk-slick-sortable-placeholder bk-ui-state-default bk-slick-header-column",start:function(t,e){e.placeholder.width(e.helper.outerWidth()-headerColumnWidthDiff),$(e.helper).addClass("bk-slick-header-column-active")},beforeStop:function(t,e){$(e.helper).removeClass("bk-slick-header-column-active")},stop:function(t){if(!getEditorLock().commitCurrentEdit())return void $(this).sortable("cancel");for(var e=$headers.sortable("toArray"),i=[],n=0;n&lt;e.length;n++)i.push(columns[getColumnIndex(e[n].replace(uid,""))]);setColumns(i),trigger(self.onColumnsReordered,{}),t.stopPropagation(),setupColumnResize()}})}function setupColumnResize(){var t,e,i,n,r,s,o,a,l;r=$headers.children(),r.find(".bk-slick-resizable-handle").remove(),r.each(function(t,e){columns[t].resizable&amp;&amp;(void 0===a&amp;&amp;(a=t),l=t)}),void 0!==a&amp;&amp;r.each(function(u,h){a&gt;u||options.forceFitColumns&amp;&amp;u&gt;=l||(t=$(h),$("&lt;div class='bk-slick-resizable-handle' /&gt;").appendTo(h).bind("dragstart",function(t,a){if(!getEditorLock().commitCurrentEdit())return!1;n=t.pageX,$(this).parent().addClass("bk-slick-header-column-active");var l=null,h=null;if(r.each(function(t,e){columns[t].previousWidth=$(e).outerWidth()}),options.forceFitColumns)for(l=0,h=0,e=u+1;e&lt;r.length;e++)i=columns[e],i.resizable&amp;&amp;(null!==h&amp;&amp;(i.maxWidth?h+=i.maxWidth-i.previousWidth:h=null),l+=i.previousWidth-Math.max(i.minWidth||0,absoluteColumnMinWidth));var c=0,p=0;for(e=0;u&gt;=e;e++)i=columns[e],i.resizable&amp;&amp;(null!==p&amp;&amp;(i.maxWidth?p+=i.maxWidth-i.previousWidth:p=null),c+=i.previousWidth-Math.max(i.minWidth||0,absoluteColumnMinWidth));null===l&amp;&amp;(l=1e5),null===c&amp;&amp;(c=1e5),null===h&amp;&amp;(h=1e5),null===p&amp;&amp;(p=1e5),o=n+Math.min(l,p),s=n-Math.min(c,h)}).bind("drag",function(t,a){var l,h,c=Math.min(o,Math.max(s,t.pageX))-n;if(0&gt;c){for(h=c,e=u;e&gt;=0;e--)i=columns[e],i.resizable&amp;&amp;(l=Math.max(i.minWidth||0,absoluteColumnMinWidth),h&amp;&amp;i.previousWidth+h&lt;l?(h+=i.previousWidth-l,i.width=l):(i.width=i.previousWidth+h,h=0));if(options.forceFitColumns)for(h=-c,e=u+1;e&lt;r.length;e++)i=columns[e],i.resizable&amp;&amp;(h&amp;&amp;i.maxWidth&amp;&amp;i.maxWidth-i.previousWidth&lt;h?(h-=i.maxWidth-i.previousWidth,i.width=i.maxWidth):(i.width=i.previousWidth+h,h=0))}else{for(h=c,e=u;e&gt;=0;e--)i=columns[e],i.resizable&amp;&amp;(h&amp;&amp;i.maxWidth&amp;&amp;i.maxWidth-i.previousWidth&lt;h?(h-=i.maxWidth-i.previousWidth,i.width=i.maxWidth):(i.width=i.previousWidth+h,h=0));if(options.forceFitColumns)for(h=-c,e=u+1;e&lt;r.length;e++)i=columns[e],i.resizable&amp;&amp;(l=Math.max(i.minWidth||0,absoluteColumnMinWidth),h&amp;&amp;i.previousWidth+h&lt;l?(h+=i.previousWidth-l,i.width=l):(i.width=i.previousWidth+h,h=0))}applyColumnHeaderWidths(),options.syncColumnCellResize&amp;&amp;applyColumnWidths()}).bind("dragend",function(t,n){var s;for($(this).parent().removeClass("bk-slick-header-column-active"),e=0;e&lt;r.length;e++)i=columns[e],s=$(r[e]).outerWidth(),i.previousWidth!==s&amp;&amp;i.rerenderOnResize&amp;&amp;invalidateAllRows();updateCanvasWidth(!0),render(),trigger(self.onColumnsResized,{})}))})}function getVBoxDelta(t){var e=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],i=0;return $.each(e,function(e,n){i+=parseFloat(t.css(n))||0}),i}function measureCellPaddingAndBorder(){var t,e=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],i=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];t=$("&lt;div class='bk-ui-state-default bk-slick-header-column' style='visibility:hidden'&gt;-&lt;/div&gt;").appendTo($headers),headerColumnWidthDiff=headerColumnHeightDiff=0,"border-box"!=t.css("box-sizing")&amp;&amp;"border-box"!=t.css("-moz-box-sizing")&amp;&amp;"border-box"!=t.css("-webkit-box-sizing")&amp;&amp;($.each(e,function(e,i){headerColumnWidthDiff+=parseFloat(t.css(i))||0}),$.each(i,function(e,i){headerColumnHeightDiff+=parseFloat(t.css(i))||0})),t.remove();var n=$("&lt;div class='bk-slick-row' /&gt;").appendTo($canvas);t=$("&lt;div class='bk-slick-cell' id='' style='visibility:hidden'&gt;-&lt;/div&gt;").appendTo(n),cellWidthDiff=cellHeightDiff=0,"border-box"!=t.css("box-sizing")&amp;&amp;"border-box"!=t.css("-moz-box-sizing")&amp;&amp;"border-box"!=t.css("-webkit-box-sizing")&amp;&amp;($.each(e,function(e,i){cellWidthDiff+=parseFloat(t.css(i))||0}),$.each(i,function(e,i){cellHeightDiff+=parseFloat(t.css(i))||0})),n.remove(),absoluteColumnMinWidth=Math.max(headerColumnWidthDiff,cellWidthDiff)}function createCssRules(){$style=$("&lt;style type='text/css' rel='stylesheet' /&gt;").appendTo($("head"));for(var t=options.rowHeight-cellHeightDiff,e=["."+uid+" .bk-slick-header-column { left: 1000px; }","."+uid+" .bk-slick-top-panel { height:"+options.topPanelHeight+"px; }","."+uid+" .bk-slick-headerrow-columns { height:"+options.headerRowHeight+"px; }","."+uid+" .bk-slick-cell { height:"+t+"px; }","."+uid+" .bk-slick-row { height:"+options.rowHeight+"px; }"],i=0;i&lt;columns.length;i++)e.push("."+uid+" .l"+i+" { }"),e.push("."+uid+" .r"+i+" { }");$style[0].styleSheet?$style[0].styleSheet.cssText=e.join(" "):$style[0].appendChild(document.createTextNode(e.join(" ")))}function getColumnCssRules(t){if(!stylesheet){for(var e=document.styleSheets,i=0;i&lt;e.length;i++)if((e[i].ownerNode||e[i].owningElement)==$style[0]){stylesheet=e[i];break}if(!stylesheet)throw new Error("Cannot find stylesheet.");columnCssRulesL=[],columnCssRulesR=[];for(var n,r,s=stylesheet.cssRules||stylesheet.rules,i=0;i&lt;s.length;i++){var o=s[i].selectorText;(n=/\.l\d+/.exec(o))?(r=parseInt(n[0].substr(2,n[0].length-2),10),columnCssRulesL[r]=s[i]):(n=/\.r\d+/.exec(o))&amp;&amp;(r=parseInt(n[0].substr(2,n[0].length-2),10),columnCssRulesR[r]=s[i])}}return{left:columnCssRulesL[t],right:columnCssRulesR[t]}}function removeCssRules(){$style.remove(),stylesheet=null}function destroy(){getEditorLock().cancelCurrentEdit(),trigger(self.onBeforeDestroy,{});for(var t=plugins.length;t--;)unregisterPlugin(plugins[t]);options.enableColumnReorder&amp;&amp;$headers.filter(":ui-sortable").sortable("destroy"),unbindAncestorScrollEvents(),$container.unbind(".bk-slickgrid"),removeCssRules(),$canvas.unbind("draginit dragstart dragend drag"),$container.empty().removeClass(uid)}function trigger(t,e,i){return i=i||new Slick.EventData,e=e||{},e.grid=self,t.notify(e,i,self)}function getEditorLock(){return options.editorLock}function getEditController(){return editController}function getColumnIndex(t){return columnsById[t]}function autosizeColumns(){var t,e,i,n=[],r=0,s=0,o=viewportHasVScroll?viewportW-scrollbarDimensions.width:viewportW;for(t=0;t&lt;columns.length;t++)e=columns[t],n.push(e.width),s+=e.width,e.resizable&amp;&amp;(r+=e.width-Math.max(e.minWidth,absoluteColumnMinWidth));for(i=s;s&gt;o&amp;&amp;r;){var a=(s-o)/r;for(t=0;t&lt;columns.length&amp;&amp;s&gt;o;t++){e=columns[t];var l=n[t];if(!(!e.resizable||l&lt;=e.minWidth||absoluteColumnMinWidth&gt;=l)){var u=Math.max(e.minWidth,absoluteColumnMinWidth),h=Math.floor(a*(l-u))||1;h=Math.min(h,l-u),s-=h,r-=h,n[t]-=h}}if(s&gt;=i)break;i=s}for(i=s;o&gt;s;){var c=o/s;for(t=0;t&lt;columns.length&amp;&amp;o&gt;s;t++){e=columns[t];var p,d=n[t];p=!e.resizable||e.maxWidth&lt;=d?0:Math.min(Math.floor(c*d)-d,e.maxWidth-d||1e6)||1,s+=p,n[t]+=p}if(i&gt;=s)break;i=s}var f=!1;for(t=0;t&lt;columns.length;t++)columns[t].rerenderOnResize&amp;&amp;columns[t].width!=n[t]&amp;&amp;(f=!0),columns[t].width=n[t];applyColumnHeaderWidths(),updateCanvasWidth(!0),f&amp;&amp;(invalidateAllRows(),render())}function applyColumnHeaderWidths(){if(initialized){for(var t,e=0,i=$headers.children(),n=i.length;n&gt;e;e++)t=$(i[e]),t.width()!==columns[e].width-headerColumnWidthDiff&amp;&amp;t.width(columns[e].width-headerColumnWidthDiff);updateColumnCaches()}}function applyColumnWidths(){for(var t,e,i=0,n=0;n&lt;columns.length;n++)t=columns[n].width,e=getColumnCssRules(n),e.left.style.left=i+"px",e.right.style.right=canvasWidth-i-t+"px",i+=columns[n].width}function setSortColumn(t,e){setSortColumns([{columnId:t,sortAsc:e}])}function setSortColumns(t){sortColumns=t;var e=$headers.children();e.removeClass("bk-slick-header-column-sorted").find(".bk-slick-sort-indicator").removeClass("bk-slick-sort-indicator-asc bk-slick-sort-indicator-desc"),$.each(sortColumns,function(t,i){null==i.sortAsc&amp;&amp;(i.sortAsc=!0);var n=getColumnIndex(i.columnId);null!=n&amp;&amp;e.eq(n).addClass("bk-slick-header-column-sorted").find(".bk-slick-sort-indicator").addClass(i.sortAsc?"bk-slick-sort-indicator-asc":"bk-slick-sort-indicator-desc")})}function getSortColumns(){return sortColumns}function handleSelectedRangesChanged(t,e){selectedRows=[];for(var i={},n=0;n&lt;e.length;n++)for(var r=e[n].fromRow;r&lt;=e[n].toRow;r++){i[r]||(selectedRows.push(r),i[r]={});for(var s=e[n].fromCell;s&lt;=e[n].toCell;s++)canCellBeSelected(r,s)&amp;&amp;(i[r][columns[s].id]=options.selectedCellCssClass)}setCellCssStyles(options.selectedCellCssClass,i),trigger(self.onSelectedRowsChanged,{rows:getSelectedRows()},t)}function getColumns(){return columns}function updateColumnCaches(){columnPosLeft=[],columnPosRight=[];for(var t=0,e=0,i=columns.length;i&gt;e;e++)columnPosLeft[e]=t,columnPosRight[e]=t+columns[e].width,t+=columns[e].width}function setColumns(t){columns=t,columnsById={};for(var e=0;e&lt;columns.length;e++){var i=columns[e]=$.extend({},columnDefaults,columns[e]);columnsById[i.id]=e,i.minWidth&amp;&amp;i.width&lt;i.minWidth&amp;&amp;(i.width=i.minWidth),i.maxWidth&amp;&amp;i.width&gt;i.maxWidth&amp;&amp;(i.width=i.maxWidth)}updateColumnCaches(),initialized&amp;&amp;(invalidateAllRows(),createColumnHeaders(),removeCssRules(),createCssRules(),resizeCanvas(),applyColumnWidths(),handleScroll())}function getOptions(){return options}function setOptions(t){getEditorLock().commitCurrentEdit()&amp;&amp;(makeActiveCellNormal(),options.enableAddRow!==t.enableAddRow&amp;&amp;invalidateRow(getDataLength()),options=$.extend(options,t),validateAndEnforceOptions(),$viewport.css("overflow-y",options.autoHeight?"hidden":"auto"),render())}function validateAndEnforceOptions(){options.autoHeight&amp;&amp;(options.leaveSpaceForNewRows=!1)}function setData(t,e){data=t,invalidateAllRows(),updateRowCount(),e&amp;&amp;scrollTo(0)}function getData(){return data}function getDataLength(){return data.getLength?data.getLength():data.length}function getDataLengthIncludingAddNew(){return getDataLength()+(options.enableAddRow?1:0)}function getDataItem(t){return data.getItem?data.getItem(t):data[t]}function getTopPanel(){return $topPanel[0]}function setTopPanelVisibility(t){options.showTopPanel!=t&amp;&amp;(options.showTopPanel=t,t?$topPanelScroller.slideDown("fast",resizeCanvas):$topPanelScroller.slideUp("fast",resizeCanvas))}function setHeaderRowVisibility(t){options.showHeaderRow!=t&amp;&amp;(options.showHeaderRow=t,t?$headerRowScroller.slideDown("fast",resizeCanvas):$headerRowScroller.slideUp("fast",resizeCanvas))}function getContainerNode(){return $container.get(0)}function getRowTop(t){return options.rowHeight*t-offset}function getRowFromPosition(t){return Math.floor((t+offset)/options.rowHeight)}function scrollTo(t){t=Math.max(t,0),t=Math.min(t,th-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0));var e=offset;page=Math.min(n-1,Math.floor(t/ph)),offset=Math.round(page*cj);var i=t-offset;if(offset!=e){var r=getVisibleRange(i);cleanupRows(r),updateRowPositions()}prevScrollTop!=i&amp;&amp;(vScrollDir=i+offset&gt;prevScrollTop+e?1:-1,$viewport[0].scrollTop=lastRenderedScrollTop=scrollTop=prevScrollTop=i,trigger(self.onViewportChanged,{}))}function defaultFormatter(t,e,i,n,r){return null==i?"":(i+"").replace(/&amp;/g,"&amp;amp;").replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;")}function getFormatter(t,e){function i(t,e,i,n,r){return o.format(t,e,i,n,r)}var n=data.getItemMetadata&amp;&amp;data.getItemMetadata(t),r=n&amp;&amp;n.columns&amp;&amp;(n.columns[e.id]||n.columns[getColumnIndex(e.id)]),s=r&amp;&amp;r.formatter||n&amp;&amp;n.formatter||e.formatter||options.formatterFactory&amp;&amp;options.formatterFactory.getFormatter(e)||options.defaultFormatter;if(void 0!==s.format){var o=s;s=i}return s}function getEditor(t,e){var i,n=columns[e],r=data.getItemMetadata&amp;&amp;data.getItemMetadata(t),s=r&amp;&amp;r.columns;return i=s&amp;&amp;s[n.id]&amp;&amp;void 0!==s[n.id].editor?s[n.id].editor:s&amp;&amp;s[e]&amp;&amp;void 0!==s[e].editor?s[e].editor:n.editor||options.editorFactory&amp;&amp;options.editorFactory.getEditor(n),void 0!==i.default_view&amp;&amp;(i=i.default_view),i}function getDataItemValueForColumn(t,e){return options.dataItemColumnValueExtractor?options.dataItemColumnValueExtractor(t,e):t[e.field]}function appendRowHtml(t,e,i,n){var r=getDataItem(e),s=n&gt;e&amp;&amp;!r,o="bk-slick-row"+(s?" loading":"")+(e===activeRow?" active":"")+(e%2==1?" odd":" even");r||(o+=" "+options.addNewRowCssClass);var a=data.getItemMetadata&amp;&amp;data.getItemMetadata(e);a&amp;&amp;a.cssClasses&amp;&amp;(o+=" "+a.cssClasses),t.push("&lt;div class='bk-ui-widget-content "+o+"' style='top:"+getRowTop(e)+"px'&gt;");for(var l,u,h=0,c=columns.length;c&gt;h;h++){if(u=columns[h],l=1,a&amp;&amp;a.columns){var p=a.columns[u.id]||a.columns[h];l=p&amp;&amp;p.colspan||1,"*"===l&amp;&amp;(l=c-h)}if(columnPosRight[Math.min(c-1,h+l-1)]&gt;i.leftPx){if(columnPosLeft[h]&gt;i.rightPx)break;appendCellHtml(t,e,h,l,r)}l&gt;1&amp;&amp;(h+=l-1)}t.push("&lt;/div&gt;")}function appendCellHtml(t,e,i,n,r){var s=columns[i],o="bk-slick-cell l"+i+" r"+Math.min(columns.length-1,i+n-1)+(s.cssClass?" "+s.cssClass:"");e===activeRow&amp;&amp;i===activeCell&amp;&amp;(o+=" active");for(var a in cellCssClasses)cellCssClasses[a][e]&amp;&amp;cellCssClasses[a][e][s.id]&amp;&amp;(o+=" "+cellCssClasses[a][e][s.id]);if(t.push("&lt;div class='"+o+"'&gt;"),r){var l=getDataItemValueForColumn(r,s);t.push(getFormatter(e,s)(e,i,l,s,r))}t.push("&lt;/div&gt;"),rowsCache[e].cellRenderQueue.push(i),rowsCache[e].cellColSpans[i]=n}function cleanupRows(t){for(var e in rowsCache)(e=parseInt(e,10))!==activeRow&amp;&amp;(e&lt;t.top||e&gt;t.bottom)&amp;&amp;removeRowFromCache(e)}function invalidate(){updateRowCount(),invalidateAllRows(),render()}function invalidateAllRows(){currentEditor&amp;&amp;makeActiveCellNormal();for(var t in rowsCache)removeRowFromCache(t)}function removeRowFromCache(t){var e=rowsCache[t];e&amp;&amp;(rowNodeFromLastMouseWheelEvent==e.rowNode?(e.rowNode.style.display="none",zombieRowNodeFromLastMouseWheelEvent=rowNodeFromLastMouseWheelEvent):$canvas[0].removeChild(e.rowNode),delete rowsCache[t],delete postProcessedRows[t],renderedRows--,counter_rows_removed++)}function invalidateRows(t){var e,i;if(t&amp;&amp;t.length)for(vScrollDir=0,e=0,i=t.length;i&gt;e;e++)currentEditor&amp;&amp;activeRow===t[e]&amp;&amp;makeActiveCellNormal(),rowsCache[t[e]]&amp;&amp;removeRowFromCache(t[e])}function invalidateRow(t){invalidateRows([t])}function updateCell(t,e){var i=getCellNode(t,e);if(i){var n=columns[e],r=getDataItem(t);currentEditor&amp;&amp;activeRow===t&amp;&amp;activeCell===e?currentEditor.loadValue(r):(i.innerHTML=r?getFormatter(t,n)(t,e,getDataItemValueForColumn(r,n),n,r):"",invalidatePostProcessingResults(t))}}function updateRow(t){var e=rowsCache[t];if(e){ensureCellNodesInRowsCache(t);var i=getDataItem(t);for(var n in e.cellNodesByColumnIdx)if(e.cellNodesByColumnIdx.hasOwnProperty(n)){n=0|n;var r=columns[n],s=e.cellNodesByColumnIdx[n];t===activeRow&amp;&amp;n===activeCell&amp;&amp;currentEditor?currentEditor.loadValue(i):i?s.innerHTML=getFormatter(t,r)(t,n,getDataItemValueForColumn(i,r),r,i):s.innerHTML=""}invalidatePostProcessingResults(t)}}function getViewportHeight(){return parseFloat($.css($container[0],"height",!0))-parseFloat($.css($container[0],"paddingTop",!0))-parseFloat($.css($container[0],"paddingBottom",!0))-parseFloat($.css($headerScroller[0],"height"))-getVBoxDelta($headerScroller)-(options.showTopPanel?options.topPanelHeight+getVBoxDelta($topPanelScroller):0)-(options.showHeaderRow?options.headerRowHeight+getVBoxDelta($headerRowScroller):0)}function resizeCanvas(){initialized&amp;&amp;(viewportH=options.autoHeight?options.rowHeight*getDataLengthIncludingAddNew():getViewportHeight(),numVisibleRows=Math.ceil(viewportH/options.rowHeight),viewportW=parseFloat($.css($container[0],"width",!0)),options.autoHeight||$viewport.height(viewportH),options.forceFitColumns&amp;&amp;autosizeColumns(),updateRowCount(),handleScroll(),lastRenderedScrollLeft=-1,render())}function updateRowCount(){if(initialized){var t=getDataLengthIncludingAddNew(),e=t+(options.leaveSpaceForNewRows?numVisibleRows-1:0),i=viewportHasVScroll;viewportHasVScroll=!options.autoHeight&amp;&amp;e*options.rowHeight&gt;viewportH,makeActiveCellNormal();var r=t-1;for(var s in rowsCache)s&gt;=r&amp;&amp;removeRowFromCache(s);activeCellNode&amp;&amp;activeRow&gt;r&amp;&amp;resetActiveCell();var o=h;th=Math.max(options.rowHeight*e,viewportH-scrollbarDimensions.height),maxSupportedCssHeight&gt;th?(h=ph=th,n=1,cj=0):(h=maxSupportedCssHeight,ph=h/100,n=Math.floor(th/ph),cj=(th-h)/(n-1)),h!==o&amp;&amp;($canvas.css("height",h),scrollTop=$viewport[0].scrollTop);var a=th-viewportH&gt;=scrollTop+offset;0==th||0==scrollTop?page=offset=0:scrollTo(a?scrollTop+offset:th-viewportH),h!=o&amp;&amp;options.autoHeight&amp;&amp;resizeCanvas(),options.forceFitColumns&amp;&amp;i!=viewportHasVScroll&amp;&amp;autosizeColumns(),updateCanvasWidth(!1)}}function getVisibleRange(t,e){return null==t&amp;&amp;(t=scrollTop),null==e&amp;&amp;(e=scrollLeft),{top:getRowFromPosition(t),bottom:getRowFromPosition(t+viewportH)+1,leftPx:e,rightPx:e+viewportW}}function getRenderedRange(t,e){var i=getVisibleRange(t,e),n=Math.round(viewportH/options.rowHeight),r=3;return-1==vScrollDir?(i.top-=n,i.bottom+=r):1==vScrollDir?(i.top-=r,i.bottom+=n):(i.top-=r,i.bottom+=r),i.top=Math.max(0,i.top),i.bottom=Math.min(getDataLengthIncludingAddNew()-1,i.bottom),i.leftPx-=viewportW,i.rightPx+=viewportW,i.leftPx=Math.max(0,i.leftPx),i.rightPx=Math.min(canvasWidth,i.rightPx),i}function ensureCellNodesInRowsCache(t){var e=rowsCache[t];if(e&amp;&amp;e.cellRenderQueue.length)for(var i=e.rowNode.lastChild;e.cellRenderQueue.length;){var n=e.cellRenderQueue.pop();e.cellNodesByColumnIdx[n]=i,i=i.previousSibling}}function cleanUpCells(t,e){var i=0,n=rowsCache[e],r=[];for(var s in n.cellNodesByColumnIdx)if(n.cellNodesByColumnIdx.hasOwnProperty(s)){s=0|s;var o=n.cellColSpans[s];(columnPosLeft[s]&gt;t.rightPx||columnPosRight[Math.min(columns.length-1,s+o-1)]&lt;t.leftPx)&amp;&amp;(e!=activeRow||s!=activeCell)&amp;&amp;r.push(s)}for(var a;null!=(a=r.pop());)n.rowNode.removeChild(n.cellNodesByColumnIdx[a]),delete n.cellColSpans[a],delete n.cellNodesByColumnIdx[a],postProcessedRows[e]&amp;&amp;delete postProcessedRows[e][a],i++}function cleanUpAndRenderCells(t){for(var e,i,n,r=[],s=[],o=0,a=t.top,l=t.bottom;l&gt;=a;a++)if(e=rowsCache[a]){ensureCellNodesInRowsCache(a),cleanUpCells(t,a),i=0;var u=data.getItemMetadata&amp;&amp;data.getItemMetadata(a);u=u&amp;&amp;u.columns;for(var h=getDataItem(a),c=0,p=columns.length;p&gt;c&amp;&amp;!(columnPosLeft[c]&gt;t.rightPx);c++)if(null==(n=e.cellColSpans[c])){if(n=1,u){var d=u[columns[c].id]||u[c];n=d&amp;&amp;d.colspan||1,"*"===n&amp;&amp;(n=p-c)}columnPosRight[Math.min(p-1,c+n-1)]&gt;t.leftPx&amp;&amp;(appendCellHtml(r,a,c,n,h),i++),c+=n&gt;1?n-1:0}else c+=n&gt;1?n-1:0;i&amp;&amp;(o+=i,s.push(a))}if(r.length){var f=document.createElement("div");f.innerHTML=r.join("");for(var g,m;null!=(g=s.pop());){e=rowsCache[g];for(var _;null!=(_=e.cellRenderQueue.pop());)m=f.lastChild,e.rowNode.appendChild(m),e.cellNodesByColumnIdx[_]=m}}}function renderRows(t){for(var e=$canvas[0],i=[],n=[],r=!1,s=getDataLength(),o=t.top,a=t.bottom;a&gt;=o;o++)rowsCache[o]||(renderedRows++,n.push(o),rowsCache[o]={rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]},appendRowHtml(i,o,t,s),activeCellNode&amp;&amp;activeRow===o&amp;&amp;(r=!0),counter_rows_rendered++);if(n.length){var l=document.createElement("div");l.innerHTML=i.join("");for(var o=0,a=n.length;a&gt;o;o++)rowsCache[n[o]].rowNode=e.appendChild(l.firstChild);
        r&amp;&amp;(activeCellNode=getCellNode(activeRow,activeCell))}}function startPostProcessing(){options.enableAsyncPostRender&amp;&amp;(clearTimeout(h_postrender),h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}function invalidatePostProcessingResults(t){delete postProcessedRows[t],postProcessFromRow=Math.min(postProcessFromRow,t),postProcessToRow=Math.max(postProcessToRow,t),startPostProcessing()}function updateRowPositions(){for(var t in rowsCache)rowsCache[t].rowNode.style.top=getRowTop(t)+"px"}function render(){if(initialized){var t=getVisibleRange(),e=getRenderedRange();cleanupRows(e),lastRenderedScrollLeft!=scrollLeft&amp;&amp;cleanUpAndRenderCells(e),renderRows(e),postProcessFromRow=t.top,postProcessToRow=Math.min(getDataLengthIncludingAddNew()-1,t.bottom),startPostProcessing(),lastRenderedScrollTop=scrollTop,lastRenderedScrollLeft=scrollLeft,h_render=null}}function handleHeaderRowScroll(){var t=$headerRowScroller[0].scrollLeft;t!=$viewport[0].scrollLeft&amp;&amp;($viewport[0].scrollLeft=t)}function handleScroll(){scrollTop=$viewport[0].scrollTop,scrollLeft=$viewport[0].scrollLeft;var t=Math.abs(scrollTop-prevScrollTop),e=Math.abs(scrollLeft-prevScrollLeft);if(e&amp;&amp;(prevScrollLeft=scrollLeft,$headerScroller[0].scrollLeft=scrollLeft,$topPanelScroller[0].scrollLeft=scrollLeft,$headerRowScroller[0].scrollLeft=scrollLeft),t)if(vScrollDir=scrollTop&gt;prevScrollTop?1:-1,prevScrollTop=scrollTop,viewportH&gt;t)scrollTo(scrollTop+offset);else{var i=offset;page=h==viewportH?0:Math.min(n-1,Math.floor(scrollTop*((th-viewportH)/(h-viewportH))*(1/ph))),offset=Math.round(page*cj),i!=offset&amp;&amp;invalidateAllRows()}(e||t)&amp;&amp;(h_render&amp;&amp;clearTimeout(h_render),(Math.abs(lastRenderedScrollTop-scrollTop)&gt;20||Math.abs(lastRenderedScrollLeft-scrollLeft)&gt;20)&amp;&amp;(options.forceSyncScrolling||Math.abs(lastRenderedScrollTop-scrollTop)&lt;viewportH&amp;&amp;Math.abs(lastRenderedScrollLeft-scrollLeft)&lt;viewportW?render():h_render=setTimeout(render,50),trigger(self.onViewportChanged,{}))),trigger(self.onScroll,{scrollLeft:scrollLeft,scrollTop:scrollTop})}function asyncPostProcessRows(){for(var t=getDataLength();postProcessToRow&gt;=postProcessFromRow;){var e=vScrollDir&gt;=0?postProcessFromRow++:postProcessToRow--,i=rowsCache[e];if(i&amp;&amp;!(e&gt;=t)){postProcessedRows[e]||(postProcessedRows[e]={}),ensureCellNodesInRowsCache(e);for(var n in i.cellNodesByColumnIdx)if(i.cellNodesByColumnIdx.hasOwnProperty(n)){n=0|n;var r=columns[n];if(r.asyncPostRender&amp;&amp;!postProcessedRows[e][n]){var s=i.cellNodesByColumnIdx[n];s&amp;&amp;r.asyncPostRender(s,e,getDataItem(e),r),postProcessedRows[e][n]=!0}}return void(h_postrender=setTimeout(asyncPostProcessRows,options.asyncPostRenderDelay))}}}function updateCellCssStylesOnRenderedRows(t,e){var i,n,r,s;for(var o in rowsCache){if(s=e&amp;&amp;e[o],r=t&amp;&amp;t[o],s)for(n in s)r&amp;&amp;s[n]==r[n]||(i=getCellNode(o,getColumnIndex(n)),i&amp;&amp;$(i).removeClass(s[n]));if(r)for(n in r)s&amp;&amp;s[n]==r[n]||(i=getCellNode(o,getColumnIndex(n)),i&amp;&amp;$(i).addClass(r[n]))}}function addCellCssStyles(t,e){if(cellCssClasses[t])throw"addCellCssStyles: cell CSS hash with key '"+t+"' already exists.";cellCssClasses[t]=e,updateCellCssStylesOnRenderedRows(e,null),trigger(self.onCellCssStylesChanged,{key:t,hash:e})}function removeCellCssStyles(t){cellCssClasses[t]&amp;&amp;(updateCellCssStylesOnRenderedRows(null,cellCssClasses[t]),delete cellCssClasses[t],trigger(self.onCellCssStylesChanged,{key:t,hash:null}))}function setCellCssStyles(t,e){var i=cellCssClasses[t];cellCssClasses[t]=e,updateCellCssStylesOnRenderedRows(e,i),trigger(self.onCellCssStylesChanged,{key:t,hash:e})}function getCellCssStyles(t){return cellCssClasses[t]}function flashCell(t,e,i){function n(t){t&amp;&amp;setTimeout(function(){r.queue(function(){r.toggleClass(options.cellFlashingCssClass).dequeue(),n(t-1)})},i)}if(i=i||100,rowsCache[t]){var r=$(getCellNode(t,e));n(4)}}function handleMouseWheel(t){var e=$(t.target).closest(".bk-slick-row")[0];e!=rowNodeFromLastMouseWheelEvent&amp;&amp;(zombieRowNodeFromLastMouseWheelEvent&amp;&amp;zombieRowNodeFromLastMouseWheelEvent!=e&amp;&amp;($canvas[0].removeChild(zombieRowNodeFromLastMouseWheelEvent),zombieRowNodeFromLastMouseWheelEvent=null),rowNodeFromLastMouseWheelEvent=e)}function handleDragInit(t,e){var i=getCellFromEvent(t);if(!i||!cellExists(i.row,i.cell))return!1;var n=trigger(self.onDragInit,e,t);return t.isImmediatePropagationStopped()?n:!1}function handleDragStart(t,e){var i=getCellFromEvent(t);if(!i||!cellExists(i.row,i.cell))return!1;var n=trigger(self.onDragStart,e,t);return t.isImmediatePropagationStopped()?n:!1}function handleDrag(t,e){return trigger(self.onDrag,e,t)}function handleDragEnd(t,e){trigger(self.onDragEnd,e,t)}function handleKeyDown(t){trigger(self.onKeyDown,{row:activeRow,cell:activeCell},t);var e=t.isImmediatePropagationStopped();if(!e)if(t.shiftKey||t.altKey||t.ctrlKey)9!=t.which||!t.shiftKey||t.ctrlKey||t.altKey||(e=navigatePrev());else if(27==t.which){if(!getEditorLock().isActive())return;cancelEditAndSetFocus()}else 34==t.which?(navigatePageDown(),e=!0):33==t.which?(navigatePageUp(),e=!0):37==t.which?e=navigateLeft():39==t.which?e=navigateRight():38==t.which?e=navigateUp():40==t.which?e=navigateDown():9==t.which?e=navigateNext():13==t.which&amp;&amp;(options.editable&amp;&amp;(currentEditor?activeRow===getDataLength()?navigateDown():commitEditAndSetFocus():getEditorLock().commitCurrentEdit()&amp;&amp;makeActiveCellEditable()),e=!0);if(e){t.stopPropagation(),t.preventDefault();try{t.originalEvent.keyCode=0}catch(i){}}}function handleClick(t){currentEditor||(t.target!=document.activeElement||$(t.target).hasClass("bk-slick-cell"))&amp;&amp;setFocus();var e=getCellFromEvent(t);!e||null!==currentEditor&amp;&amp;activeRow==e.row&amp;&amp;activeCell==e.cell||(trigger(self.onClick,{row:e.row,cell:e.cell},t),t.isImmediatePropagationStopped()||activeCell==e.cell&amp;&amp;activeRow==e.row||!canCellBeActive(e.row,e.cell)||(!getEditorLock().isActive()||getEditorLock().commitCurrentEdit())&amp;&amp;(scrollRowIntoView(e.row,!1),setActiveCellInternal(getCellNode(e.row,e.cell))))}function handleContextMenu(t){var e=$(t.target).closest(".bk-slick-cell",$canvas);0!==e.length&amp;&amp;(activeCellNode!==e[0]||null===currentEditor)&amp;&amp;trigger(self.onContextMenu,{},t)}function handleDblClick(t){var e=getCellFromEvent(t);!e||null!==currentEditor&amp;&amp;activeRow==e.row&amp;&amp;activeCell==e.cell||(trigger(self.onDblClick,{row:e.row,cell:e.cell},t),t.isImmediatePropagationStopped()||options.editable&amp;&amp;gotoCell(e.row,e.cell,!0))}function handleHeaderMouseEnter(t){trigger(self.onHeaderMouseEnter,{column:$(this).data("column")},t)}function handleHeaderMouseLeave(t){trigger(self.onHeaderMouseLeave,{column:$(this).data("column")},t)}function handleHeaderContextMenu(t){var e=$(t.target).closest(".bk-slick-header-column",".bk-slick-header-columns"),i=e&amp;&amp;e.data("column");trigger(self.onHeaderContextMenu,{column:i},t)}function handleHeaderClick(t){var e=$(t.target).closest(".bk-slick-header-column",".bk-slick-header-columns"),i=e&amp;&amp;e.data("column");i&amp;&amp;trigger(self.onHeaderClick,{column:i},t)}function handleMouseEnter(t){trigger(self.onMouseEnter,{},t)}function handleMouseLeave(t){trigger(self.onMouseLeave,{},t)}function cellExists(t,e){return!(0&gt;t||t&gt;=getDataLength()||0&gt;e||e&gt;=columns.length)}function getCellFromPoint(t,e){for(var i=getRowFromPosition(e),n=0,r=0,s=0;s&lt;columns.length&amp;&amp;t&gt;r;s++)r+=columns[s].width,n++;return 0&gt;n&amp;&amp;(n=0),{row:i,cell:n-1}}function getCellFromNode(t){var e=/l\d+/.exec(t.className);if(!e)throw"getCellFromNode: cannot get cell - "+t.className;return parseInt(e[0].substr(1,e[0].length-1),10)}function getRowFromNode(t){for(var e in rowsCache)if(rowsCache[e].rowNode===t)return 0|e;return null}function getCellFromEvent(t){var e=$(t.target).closest(".bk-slick-cell",$canvas);if(!e.length)return null;var i=getRowFromNode(e[0].parentNode),n=getCellFromNode(e[0]);return null==i||null==n?null:{row:i,cell:n}}function getCellNodeBox(t,e){if(!cellExists(t,e))return null;for(var i=getRowTop(t),n=i+options.rowHeight-1,r=0,s=0;e&gt;s;s++)r+=columns[s].width;var o=r+columns[e].width;return{top:i,left:r,bottom:n,right:o}}function resetActiveCell(){setActiveCellInternal(null,!1)}function setFocus(){-1==tabbingDirection?$focusSink[0].focus():$focusSink2[0].focus()}function scrollCellIntoView(t,e,i){scrollRowIntoView(t,i);var n=getColspan(t,e),r=columnPosLeft[e],s=columnPosRight[e+(n&gt;1?n-1:0)],o=scrollLeft+viewportW;scrollLeft&gt;r?($viewport.scrollLeft(r),handleScroll(),render()):s&gt;o&amp;&amp;($viewport.scrollLeft(Math.min(r,s-$viewport[0].clientWidth)),handleScroll(),render())}function setActiveCellInternal(t,e){null!==activeCellNode&amp;&amp;(makeActiveCellNormal(),$(activeCellNode).removeClass("active"),rowsCache[activeRow]&amp;&amp;$(rowsCache[activeRow].rowNode).removeClass("active"));var i=activeCellNode!==t;activeCellNode=t,null!=activeCellNode?(activeRow=getRowFromNode(activeCellNode.parentNode),activeCell=activePosX=getCellFromNode(activeCellNode),null==e&amp;&amp;(e=activeRow==getDataLength()||options.autoEdit),$(activeCellNode).addClass("active"),$(rowsCache[activeRow].rowNode).addClass("active"),options.editable&amp;&amp;e&amp;&amp;isCellPotentiallyEditable(activeRow,activeCell)&amp;&amp;(clearTimeout(h_editorLoader),options.asyncEditorLoading?h_editorLoader=setTimeout(function(){makeActiveCellEditable()},options.asyncEditorLoadDelay):makeActiveCellEditable())):activeRow=activeCell=null,i&amp;&amp;trigger(self.onActiveCellChanged,getActiveCell())}function clearTextSelection(){if(document.selection&amp;&amp;document.selection.empty)try{document.selection.empty()}catch(t){}else if(window.getSelection){var e=window.getSelection();e&amp;&amp;e.removeAllRanges&amp;&amp;e.removeAllRanges()}}function isCellPotentiallyEditable(t,e){var i=getDataLength();return i&gt;t&amp;&amp;!getDataItem(t)?!1:columns[e].cannotTriggerInsert&amp;&amp;t&gt;=i?!1:getEditor(t,e)?!0:!1}function makeActiveCellNormal(){if(currentEditor){if(trigger(self.onBeforeCellEditorDestroy,{editor:currentEditor}),currentEditor.destroy(),currentEditor=null,activeCellNode){var t=getDataItem(activeRow);if($(activeCellNode).removeClass("editable invalid"),t){var e=columns[activeCell],i=getFormatter(activeRow,e);activeCellNode.innerHTML=i(activeRow,activeCell,getDataItemValueForColumn(t,e),e,t),invalidatePostProcessingResults(activeRow)}}navigator.userAgent.toLowerCase().match(/msie/)&amp;&amp;clearTextSelection(),getEditorLock().deactivate(editController)}}function makeActiveCellEditable(t){if(activeCellNode){if(!options.editable)throw"Grid : makeActiveCellEditable : should never get called when options.editable is false";if(clearTimeout(h_editorLoader),isCellPotentiallyEditable(activeRow,activeCell)){var e=columns[activeCell],i=getDataItem(activeRow);if(trigger(self.onBeforeEditCell,{row:activeRow,cell:activeCell,item:i,column:e})===!1)return void setFocus();getEditorLock().activate(editController),$(activeCellNode).addClass("editable"),t||(activeCellNode.innerHTML=""),currentEditor=new(t||getEditor(activeRow,activeCell))({grid:self,gridPosition:absBox($container[0]),position:absBox(activeCellNode),container:activeCellNode,column:e,item:i||{},commitChanges:commitEditAndSetFocus,cancelChanges:cancelEditAndSetFocus}),i&amp;&amp;currentEditor.loadValue(i),serializedEditorValue=currentEditor.serializeValue(),currentEditor.position&amp;&amp;handleActiveCellPositionChange()}}}function commitEditAndSetFocus(){getEditorLock().commitCurrentEdit()&amp;&amp;(setFocus(),options.autoEdit&amp;&amp;navigateDown())}function cancelEditAndSetFocus(){getEditorLock().cancelCurrentEdit()&amp;&amp;setFocus()}function absBox(t){var e={top:t.offsetTop,left:t.offsetLeft,bottom:0,right:0,width:$(t).outerWidth(),height:$(t).outerHeight(),visible:!0};e.bottom=e.top+e.height,e.right=e.left+e.width;for(var i=t.offsetParent;(t=t.parentNode)!=document.body;)e.visible&amp;&amp;t.scrollHeight!=t.offsetHeight&amp;&amp;"visible"!=$(t).css("overflowY")&amp;&amp;(e.visible=e.bottom&gt;t.scrollTop&amp;&amp;e.top&lt;t.scrollTop+t.clientHeight),e.visible&amp;&amp;t.scrollWidth!=t.offsetWidth&amp;&amp;"visible"!=$(t).css("overflowX")&amp;&amp;(e.visible=e.right&gt;t.scrollLeft&amp;&amp;e.left&lt;t.scrollLeft+t.clientWidth),e.left-=t.scrollLeft,e.top-=t.scrollTop,t===i&amp;&amp;(e.left+=t.offsetLeft,e.top+=t.offsetTop,i=t.offsetParent),e.bottom=e.top+e.height,e.right=e.left+e.width;return e}function getActiveCellPosition(){return absBox(activeCellNode)}function getGridPosition(){return absBox($container[0])}function handleActiveCellPositionChange(){if(activeCellNode&amp;&amp;(trigger(self.onActiveCellPositionChanged,{}),currentEditor)){var t=getActiveCellPosition();currentEditor.show&amp;&amp;currentEditor.hide&amp;&amp;(t.visible?currentEditor.show():currentEditor.hide()),currentEditor.position&amp;&amp;currentEditor.position(t)}}function getCellEditor(){return currentEditor}function getActiveCell(){return activeCellNode?{row:activeRow,cell:activeCell}:null}function getActiveCellNode(){return activeCellNode}function scrollRowIntoView(t,e){var i=t*options.rowHeight,n=(t+1)*options.rowHeight-viewportH+(viewportHasHScroll?scrollbarDimensions.height:0);(t+1)*options.rowHeight&gt;scrollTop+viewportH+offset?(scrollTo(e?i:n),render()):t*options.rowHeight&lt;scrollTop+offset&amp;&amp;(scrollTo(e?n:i),render())}function scrollRowToTop(t){scrollTo(t*options.rowHeight),render()}function scrollPage(t){var e=t*numVisibleRows;if(scrollTo((getRowFromPosition(scrollTop)+e)*options.rowHeight),render(),options.enableCellNavigation&amp;&amp;null!=activeRow){var i=activeRow+e,n=getDataLengthIncludingAddNew();i&gt;=n&amp;&amp;(i=n-1),0&gt;i&amp;&amp;(i=0);for(var r=0,s=null,o=activePosX;activePosX&gt;=r;)canCellBeActive(i,r)&amp;&amp;(s=r),r+=getColspan(i,r);null!==s?(setActiveCellInternal(getCellNode(i,s)),activePosX=o):resetActiveCell()}}function navigatePageDown(){scrollPage(1)}function navigatePageUp(){scrollPage(-1)}function getColspan(t,e){var i=data.getItemMetadata&amp;&amp;data.getItemMetadata(t);if(!i||!i.columns)return 1;var n=i.columns[columns[e].id]||i.columns[e],r=n&amp;&amp;n.colspan;return r="*"===r?columns.length-e:r||1}function findFirstFocusableCell(t){for(var e=0;e&lt;columns.length;){if(canCellBeActive(t,e))return e;e+=getColspan(t,e)}return null}function findLastFocusableCell(t){for(var e=0,i=null;e&lt;columns.length;)canCellBeActive(t,e)&amp;&amp;(i=e),e+=getColspan(t,e);return i}function gotoRight(t,e,i){if(e&gt;=columns.length)return null;do e+=getColspan(t,e);while(e&lt;columns.length&amp;&amp;!canCellBeActive(t,e));return e&lt;columns.length?{row:t,cell:e,posX:e}:null}function gotoLeft(t,e,i){if(0&gt;=e)return null;var n=findFirstFocusableCell(t);if(null===n||n&gt;=e)return null;for(var r,s={row:t,cell:n,posX:n};;){if(r=gotoRight(s.row,s.cell,s.posX),!r)return null;if(r.cell&gt;=e)return s;s=r}}function gotoDown(t,e,i){for(var n,r=getDataLengthIncludingAddNew();;){if(++t&gt;=r)return null;for(n=e=0;i&gt;=e;)n=e,e+=getColspan(t,e);if(canCellBeActive(t,n))return{row:t,cell:n,posX:i}}}function gotoUp(t,e,i){for(var n;;){if(--t&lt;0)return null;for(n=e=0;i&gt;=e;)n=e,e+=getColspan(t,e);if(canCellBeActive(t,n))return{row:t,cell:n,posX:i}}}function gotoNext(t,e,i){if(null==t&amp;&amp;null==e&amp;&amp;(t=e=i=0,canCellBeActive(t,e)))return{row:t,cell:e,posX:e};var n=gotoRight(t,e,i);if(n)return n;for(var r=null,s=getDataLengthIncludingAddNew();++t&lt;s;)if(r=findFirstFocusableCell(t),null!==r)return{row:t,cell:r,posX:r};return null}function gotoPrev(t,e,i){if(null==t&amp;&amp;null==e&amp;&amp;(t=getDataLengthIncludingAddNew()-1,e=i=columns.length-1,canCellBeActive(t,e)))return{row:t,cell:e,posX:e};for(var n,r;!n&amp;&amp;!(n=gotoLeft(t,e,i));){if(--t&lt;0)return null;e=0,r=findLastFocusableCell(t),null!==r&amp;&amp;(n={row:t,cell:r,posX:r})}return n}function navigateRight(){return navigate("right")}function navigateLeft(){return navigate("left")}function navigateDown(){return navigate("down")}function navigateUp(){return navigate("up")}function navigateNext(){return navigate("next")}function navigatePrev(){return navigate("prev")}function navigate(t){if(!options.enableCellNavigation)return!1;if(!activeCellNode&amp;&amp;"prev"!=t&amp;&amp;"next"!=t)return!1;if(!getEditorLock().commitCurrentEdit())return!0;setFocus();var e={up:-1,down:1,left:-1,right:1,prev:-1,next:1};tabbingDirection=e[t];var i={up:gotoUp,down:gotoDown,left:gotoLeft,right:gotoRight,prev:gotoPrev,next:gotoNext},n=i[t],r=n(activeRow,activeCell,activePosX);if(r){var s=r.row==getDataLength();return scrollCellIntoView(r.row,r.cell,!s),setActiveCellInternal(getCellNode(r.row,r.cell)),activePosX=r.posX,!0}return setActiveCellInternal(getCellNode(activeRow,activeCell)),!1}function getCellNode(t,e){return rowsCache[t]?(ensureCellNodesInRowsCache(t),rowsCache[t].cellNodesByColumnIdx[e]):null}function setActiveCell(t,e){initialized&amp;&amp;(t&gt;getDataLength()||0&gt;t||e&gt;=columns.length||0&gt;e||options.enableCellNavigation&amp;&amp;(scrollCellIntoView(t,e,!1),setActiveCellInternal(getCellNode(t,e),!1)))}function canCellBeActive(t,e){if(!options.enableCellNavigation||t&gt;=getDataLengthIncludingAddNew()||0&gt;t||e&gt;=columns.length||0&gt;e)return!1;var i=data.getItemMetadata&amp;&amp;data.getItemMetadata(t);if(i&amp;&amp;"boolean"==typeof i.focusable)return i.focusable;var n=i&amp;&amp;i.columns;return n&amp;&amp;n[columns[e].id]&amp;&amp;"boolean"==typeof n[columns[e].id].focusable?n[columns[e].id].focusable:n&amp;&amp;n[e]&amp;&amp;"boolean"==typeof n[e].focusable?n[e].focusable:columns[e].focusable}function canCellBeSelected(t,e){if(t&gt;=getDataLength()||0&gt;t||e&gt;=columns.length||0&gt;e)return!1;var i=data.getItemMetadata&amp;&amp;data.getItemMetadata(t);if(i&amp;&amp;"boolean"==typeof i.selectable)return i.selectable;var n=i&amp;&amp;i.columns&amp;&amp;(i.columns[columns[e].id]||i.columns[e]);return n&amp;&amp;"boolean"==typeof n.selectable?n.selectable:columns[e].selectable}function gotoCell(t,e,i){if(initialized&amp;&amp;canCellBeActive(t,e)&amp;&amp;getEditorLock().commitCurrentEdit()){scrollCellIntoView(t,e,!1);var n=getCellNode(t,e);setActiveCellInternal(n,i||t===getDataLength()||options.autoEdit),currentEditor||setFocus()}}function commitCurrentEdit(){var t=getDataItem(activeRow),e=columns[activeCell];if(currentEditor){if(currentEditor.isValueChanged()){var i=currentEditor.validate();if(i.valid){if(activeRow&lt;getDataLength()){var n={row:activeRow,cell:activeCell,editor:currentEditor,serializedValue:currentEditor.serializeValue(),prevSerializedValue:serializedEditorValue,execute:function(){this.editor.applyValue(t,this.serializedValue),updateRow(this.row),trigger(self.onCellChange,{row:activeRow,cell:activeCell,item:t})},undo:function(){this.editor.applyValue(t,this.prevSerializedValue),updateRow(this.row),trigger(self.onCellChange,{row:activeRow,cell:activeCell,item:t})}};options.editCommandHandler?(makeActiveCellNormal(),options.editCommandHandler(t,e,n)):(n.execute(),makeActiveCellNormal())}else{var r={};currentEditor.applyValue(r,currentEditor.serializeValue()),makeActiveCellNormal(),trigger(self.onAddNewRow,{item:r,column:e})}return!getEditorLock().isActive()}return $(activeCellNode).removeClass("invalid"),$(activeCellNode).width(),$(activeCellNode).addClass("invalid"),trigger(self.onValidationError,{editor:currentEditor,cellNode:activeCellNode,validationResults:i,row:activeRow,cell:activeCell,column:e}),currentEditor.focus(),!1}makeActiveCellNormal()}return!0}function cancelCurrentEdit(){return makeActiveCellNormal(),!0}function rowsToRanges(t){for(var e=[],i=columns.length-1,n=0;n&lt;t.length;n++)e.push(new Slick.Range(t[n],0,t[n],i));return e}function getSelectedRows(){if(!selectionModel)throw"Selection model is not set";return selectedRows}function setSelectedRows(t){if(!selectionModel)throw"Selection model is not set";selectionModel.setSelectedRanges(rowsToRanges(t))}var defaults={explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,enableCellNavigation:!0,enableColumnReorder:!0,asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,autoHeight:!1,editorLock:Slick.GlobalEditorLock,showHeaderRow:!1,headerRowHeight:25,showTopPanel:!1,topPanelHeight:25,formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",selectedCellCssClass:"selected",multiSelect:!0,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,fullWidthRows:!1,multiColumnSort:!1,defaultFormatter:defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row"},columnDefaults={name:"",resizable:!0,sortable:!1,minWidth:30,rerenderOnResize:!1,headerCssClass:null,defaultSortAsc:!0,focusable:!0,selectable:!0},th,h,ph,n,cj,page=0,offset=0,vScrollDir=1,initialized=!1,$container,uid="slickgrid_"+Math.round(1e6*Math.random()),self=this,$focusSink,$focusSink2,$headerScroller,$headers,$headerRow,$headerRowScroller,$headerRowSpacer,$topPanelScroller,$topPanel,$viewport,$canvas,$style,$boundAncestors,stylesheet,columnCssRulesL,columnCssRulesR,viewportH,viewportW,canvasWidth,viewportHasHScroll,viewportHasVScroll,headerColumnWidthDiff=0,headerColumnHeightDiff=0,cellWidthDiff=0,cellHeightDiff=0,absoluteColumnMinWidth,tabbingDirection=1,activePosX,activeRow,activeCell,activeCellNode=null,currentEditor=null,serializedEditorValue,editController,rowsCache={},renderedRows=0,numVisibleRows,prevScrollTop=0,scrollTop=0,lastRenderedScrollTop=0,lastRenderedScrollLeft=0,prevScrollLeft=0,scrollLeft=0,selectionModel,selectedRows=[],plugins=[],cellCssClasses={},columnsById={},sortColumns=[],columnPosLeft=[],columnPosRight=[],h_editorLoader=null,h_render=null,h_postrender=null,postProcessedRows={},postProcessToRow=null,postProcessFromRow=null,counter_rows_rendered=0,counter_rows_removed=0,rowNodeFromLastMouseWheelEvent,zombieRowNodeFromLastMouseWheelEvent;this.debug=function(){var t="";t+="\ncounter_rows_rendered:  "+counter_rows_rendered,t+="\ncounter_rows_removed:  "+counter_rows_removed,t+="\nrenderedRows:  "+renderedRows,t+="\nnumVisibleRows:  "+numVisibleRows,t+="\nmaxSupportedCssHeight:  "+maxSupportedCssHeight,t+="\nn(umber of pages):  "+n,t+="\n(current) page:  "+page,t+="\npage height (ph):  "+ph,t+="\nvScrollDir:  "+vScrollDir,alert(t)},this.eval=function(expr){return eval(expr)},$.extend(this,{slickGridVersion:"2.1",onScroll:new Slick.Event,onSort:new Slick.Event,onHeaderMouseEnter:new Slick.Event,onHeaderMouseLeave:new Slick.Event,onHeaderContextMenu:new Slick.Event,onHeaderClick:new Slick.Event,onHeaderCellRendered:new Slick.Event,onBeforeHeaderCellDestroy:new Slick.Event,onHeaderRowCellRendered:new Slick.Event,onBeforeHeaderRowCellDestroy:new Slick.Event,onMouseEnter:new Slick.Event,onMouseLeave:new Slick.Event,onClick:new Slick.Event,onDblClick:new Slick.Event,onContextMenu:new Slick.Event,onKeyDown:new Slick.Event,onAddNewRow:new Slick.Event,onValidationError:new Slick.Event,onViewportChanged:new Slick.Event,onColumnsReordered:new Slick.Event,onColumnsResized:new Slick.Event,onCellChange:new Slick.Event,onBeforeEditCell:new Slick.Event,onBeforeCellEditorDestroy:new Slick.Event,onBeforeDestroy:new Slick.Event,onActiveCellChanged:new Slick.Event,onActiveCellPositionChanged:new Slick.Event,onDragInit:new Slick.Event,onDragStart:new Slick.Event,onDrag:new Slick.Event,onDragEnd:new Slick.Event,onSelectedRowsChanged:new Slick.Event,onCellCssStylesChanged:new Slick.Event,registerPlugin:registerPlugin,unregisterPlugin:unregisterPlugin,getColumns:getColumns,setColumns:setColumns,getColumnIndex:getColumnIndex,updateColumnHeader:updateColumnHeader,setSortColumn:setSortColumn,setSortColumns:setSortColumns,getSortColumns:getSortColumns,autosizeColumns:autosizeColumns,getOptions:getOptions,setOptions:setOptions,getData:getData,getDataLength:getDataLength,getDataItem:getDataItem,setData:setData,getSelectionModel:getSelectionModel,setSelectionModel:setSelectionModel,getSelectedRows:getSelectedRows,setSelectedRows:setSelectedRows,getContainerNode:getContainerNode,render:render,invalidate:invalidate,invalidateRow:invalidateRow,invalidateRows:invalidateRows,invalidateAllRows:invalidateAllRows,updateCell:updateCell,updateRow:updateRow,getViewport:getVisibleRange,getRenderedRange:getRenderedRange,resizeCanvas:resizeCanvas,updateRowCount:updateRowCount,scrollRowIntoView:scrollRowIntoView,scrollRowToTop:scrollRowToTop,scrollCellIntoView:scrollCellIntoView,getCanvasNode:getCanvasNode,focus:setFocus,getCellFromPoint:getCellFromPoint,getCellFromEvent:getCellFromEvent,getActiveCell:getActiveCell,setActiveCell:setActiveCell,getActiveCellNode:getActiveCellNode,getActiveCellPosition:getActiveCellPosition,resetActiveCell:resetActiveCell,editActiveCell:makeActiveCellEditable,getCellEditor:getCellEditor,getCellNode:getCellNode,getCellNodeBox:getCellNodeBox,canCellBeSelected:canCellBeSelected,canCellBeActive:canCellBeActive,navigatePrev:navigatePrev,navigateNext:navigateNext,navigateUp:navigateUp,navigateDown:navigateDown,navigateLeft:navigateLeft,navigateRight:navigateRight,navigatePageUp:navigatePageUp,navigatePageDown:navigatePageDown,gotoCell:gotoCell,getTopPanel:getTopPanel,setTopPanelVisibility:setTopPanelVisibility,setHeaderRowVisibility:setHeaderRowVisibility,getHeaderRow:getHeaderRow,getHeaderRowColumn:getHeaderRowColumn,getGridPosition:getGridPosition,flashCell:flashCell,addCellCssStyles:addCellCssStyles,setCellCssStyles:setCellCssStyles,removeCellCssStyles:removeCellCssStyles,getCellCssStyles:getCellCssStyles,init:finishInitialization,destroy:destroy,getEditorLock:getEditorLock,getEditController:getEditController}),init()}var $=require("jquery"),$1=require("jquery_event_drag"),$2=require("jquery_event_drop"),Slick=require("./slick.core"),scrollbarDimensions,maxSupportedCssHeight;module.exports=SlickGrid},{"./slick.core":307,jquery:18,jquery_event_drag:301,jquery_event_drop:302}]},{},[1])}();
        //# sourceMappingURL=bokeh.min.js.map
        /* END C:\Users\Bradlee Speice\Anaconda3\lib\site-packages\bokeh\server\static\js/bokeh.min.js */
&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    Bokeh.set_log_level("info");
&lt;/script&gt;
    
&lt;style&gt;
    /* BEGIN C:\Users\Bradlee Speice\Anaconda3\lib\site-packages\bokeh\server\static\css/bokeh.min.css */
        .bk-bs-container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media(min-width:768px){.bk-bs-container{width:750px}}@media(min-width:992px){.bk-bs-container{width:970px}}@media(min-width:1200px){.bk-bs-container{width:1170px}}.bk-bs-container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.bk-bs-row{margin-left:-15px;margin-right:-15px}.bk-bs-col-xs-1,.bk-bs-col-sm-1,.bk-bs-col-md-1,.bk-bs-col-lg-1,.bk-bs-col-xs-2,.bk-bs-col-sm-2,.bk-bs-col-md-2,.bk-bs-col-lg-2,.bk-bs-col-xs-3,.bk-bs-col-sm-3,.bk-bs-col-md-3,.bk-bs-col-lg-3,.bk-bs-col-xs-4,.bk-bs-col-sm-4,.bk-bs-col-md-4,.bk-bs-col-lg-4,.bk-bs-col-xs-5,.bk-bs-col-sm-5,.bk-bs-col-md-5,.bk-bs-col-lg-5,.bk-bs-col-xs-6,.bk-bs-col-sm-6,.bk-bs-col-md-6,.bk-bs-col-lg-6,.bk-bs-col-xs-7,.bk-bs-col-sm-7,.bk-bs-col-md-7,.bk-bs-col-lg-7,.bk-bs-col-xs-8,.bk-bs-col-sm-8,.bk-bs-col-md-8,.bk-bs-col-lg-8,.bk-bs-col-xs-9,.bk-bs-col-sm-9,.bk-bs-col-md-9,.bk-bs-col-lg-9,.bk-bs-col-xs-10,.bk-bs-col-sm-10,.bk-bs-col-md-10,.bk-bs-col-lg-10,.bk-bs-col-xs-11,.bk-bs-col-sm-11,.bk-bs-col-md-11,.bk-bs-col-lg-11,.bk-bs-col-xs-12,.bk-bs-col-sm-12,.bk-bs-col-md-12,.bk-bs-col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.bk-bs-col-xs-1,.bk-bs-col-xs-2,.bk-bs-col-xs-3,.bk-bs-col-xs-4,.bk-bs-col-xs-5,.bk-bs-col-xs-6,.bk-bs-col-xs-7,.bk-bs-col-xs-8,.bk-bs-col-xs-9,.bk-bs-col-xs-10,.bk-bs-col-xs-11,.bk-bs-col-xs-12{float:left}.bk-bs-col-xs-12{width:100%}.bk-bs-col-xs-11{width:91.66666667%}.bk-bs-col-xs-10{width:83.33333333%}.bk-bs-col-xs-9{width:75%}.bk-bs-col-xs-8{width:66.66666667%}.bk-bs-col-xs-7{width:58.33333333%}.bk-bs-col-xs-6{width:50%}.bk-bs-col-xs-5{width:41.66666667%}.bk-bs-col-xs-4{width:33.33333333%}.bk-bs-col-xs-3{width:25%}.bk-bs-col-xs-2{width:16.66666667%}.bk-bs-col-xs-1{width:8.33333333%}.bk-bs-col-xs-pull-12{right:100%}.bk-bs-col-xs-pull-11{right:91.66666667%}.bk-bs-col-xs-pull-10{right:83.33333333%}.bk-bs-col-xs-pull-9{right:75%}.bk-bs-col-xs-pull-8{right:66.66666667%}.bk-bs-col-xs-pull-7{right:58.33333333%}.bk-bs-col-xs-pull-6{right:50%}.bk-bs-col-xs-pull-5{right:41.66666667%}.bk-bs-col-xs-pull-4{right:33.33333333%}.bk-bs-col-xs-pull-3{right:25%}.bk-bs-col-xs-pull-2{right:16.66666667%}.bk-bs-col-xs-pull-1{right:8.33333333%}.bk-bs-col-xs-pull-0{right:0}.bk-bs-col-xs-push-12{left:100%}.bk-bs-col-xs-push-11{left:91.66666667%}.bk-bs-col-xs-push-10{left:83.33333333%}.bk-bs-col-xs-push-9{left:75%}.bk-bs-col-xs-push-8{left:66.66666667%}.bk-bs-col-xs-push-7{left:58.33333333%}.bk-bs-col-xs-push-6{left:50%}.bk-bs-col-xs-push-5{left:41.66666667%}.bk-bs-col-xs-push-4{left:33.33333333%}.bk-bs-col-xs-push-3{left:25%}.bk-bs-col-xs-push-2{left:16.66666667%}.bk-bs-col-xs-push-1{left:8.33333333%}.bk-bs-col-xs-push-0{left:0}.bk-bs-col-xs-offset-12{margin-left:100%}.bk-bs-col-xs-offset-11{margin-left:91.66666667%}.bk-bs-col-xs-offset-10{margin-left:83.33333333%}.bk-bs-col-xs-offset-9{margin-left:75%}.bk-bs-col-xs-offset-8{margin-left:66.66666667%}.bk-bs-col-xs-offset-7{margin-left:58.33333333%}.bk-bs-col-xs-offset-6{margin-left:50%}.bk-bs-col-xs-offset-5{margin-left:41.66666667%}.bk-bs-col-xs-offset-4{margin-left:33.33333333%}.bk-bs-col-xs-offset-3{margin-left:25%}.bk-bs-col-xs-offset-2{margin-left:16.66666667%}.bk-bs-col-xs-offset-1{margin-left:8.33333333%}.bk-bs-col-xs-offset-0{margin-left:0}@media(min-width:768px){.bk-bs-col-sm-1,.bk-bs-col-sm-2,.bk-bs-col-sm-3,.bk-bs-col-sm-4,.bk-bs-col-sm-5,.bk-bs-col-sm-6,.bk-bs-col-sm-7,.bk-bs-col-sm-8,.bk-bs-col-sm-9,.bk-bs-col-sm-10,.bk-bs-col-sm-11,.bk-bs-col-sm-12{float:left}.bk-bs-col-sm-12{width:100%}.bk-bs-col-sm-11{width:91.66666667%}.bk-bs-col-sm-10{width:83.33333333%}.bk-bs-col-sm-9{width:75%}.bk-bs-col-sm-8{width:66.66666667%}.bk-bs-col-sm-7{width:58.33333333%}.bk-bs-col-sm-6{width:50%}.bk-bs-col-sm-5{width:41.66666667%}.bk-bs-col-sm-4{width:33.33333333%}.bk-bs-col-sm-3{width:25%}.bk-bs-col-sm-2{width:16.66666667%}.bk-bs-col-sm-1{width:8.33333333%}.bk-bs-col-sm-pull-12{right:100%}.bk-bs-col-sm-pull-11{right:91.66666667%}.bk-bs-col-sm-pull-10{right:83.33333333%}.bk-bs-col-sm-pull-9{right:75%}.bk-bs-col-sm-pull-8{right:66.66666667%}.bk-bs-col-sm-pull-7{right:58.33333333%}.bk-bs-col-sm-pull-6{right:50%}.bk-bs-col-sm-pull-5{right:41.66666667%}.bk-bs-col-sm-pull-4{right:33.33333333%}.bk-bs-col-sm-pull-3{right:25%}.bk-bs-col-sm-pull-2{right:16.66666667%}.bk-bs-col-sm-pull-1{right:8.33333333%}.bk-bs-col-sm-pull-0{right:0}.bk-bs-col-sm-push-12{left:100%}.bk-bs-col-sm-push-11{left:91.66666667%}.bk-bs-col-sm-push-10{left:83.33333333%}.bk-bs-col-sm-push-9{left:75%}.bk-bs-col-sm-push-8{left:66.66666667%}.bk-bs-col-sm-push-7{left:58.33333333%}.bk-bs-col-sm-push-6{left:50%}.bk-bs-col-sm-push-5{left:41.66666667%}.bk-bs-col-sm-push-4{left:33.33333333%}.bk-bs-col-sm-push-3{left:25%}.bk-bs-col-sm-push-2{left:16.66666667%}.bk-bs-col-sm-push-1{left:8.33333333%}.bk-bs-col-sm-push-0{left:0}.bk-bs-col-sm-offset-12{margin-left:100%}.bk-bs-col-sm-offset-11{margin-left:91.66666667%}.bk-bs-col-sm-offset-10{margin-left:83.33333333%}.bk-bs-col-sm-offset-9{margin-left:75%}.bk-bs-col-sm-offset-8{margin-left:66.66666667%}.bk-bs-col-sm-offset-7{margin-left:58.33333333%}.bk-bs-col-sm-offset-6{margin-left:50%}.bk-bs-col-sm-offset-5{margin-left:41.66666667%}.bk-bs-col-sm-offset-4{margin-left:33.33333333%}.bk-bs-col-sm-offset-3{margin-left:25%}.bk-bs-col-sm-offset-2{margin-left:16.66666667%}.bk-bs-col-sm-offset-1{margin-left:8.33333333%}.bk-bs-col-sm-offset-0{margin-left:0}}@media(min-width:992px){.bk-bs-col-md-1,.bk-bs-col-md-2,.bk-bs-col-md-3,.bk-bs-col-md-4,.bk-bs-col-md-5,.bk-bs-col-md-6,.bk-bs-col-md-7,.bk-bs-col-md-8,.bk-bs-col-md-9,.bk-bs-col-md-10,.bk-bs-col-md-11,.bk-bs-col-md-12{float:left}.bk-bs-col-md-12{width:100%}.bk-bs-col-md-11{width:91.66666667%}.bk-bs-col-md-10{width:83.33333333%}.bk-bs-col-md-9{width:75%}.bk-bs-col-md-8{width:66.66666667%}.bk-bs-col-md-7{width:58.33333333%}.bk-bs-col-md-6{width:50%}.bk-bs-col-md-5{width:41.66666667%}.bk-bs-col-md-4{width:33.33333333%}.bk-bs-col-md-3{width:25%}.bk-bs-col-md-2{width:16.66666667%}.bk-bs-col-md-1{width:8.33333333%}.bk-bs-col-md-pull-12{right:100%}.bk-bs-col-md-pull-11{right:91.66666667%}.bk-bs-col-md-pull-10{right:83.33333333%}.bk-bs-col-md-pull-9{right:75%}.bk-bs-col-md-pull-8{right:66.66666667%}.bk-bs-col-md-pull-7{right:58.33333333%}.bk-bs-col-md-pull-6{right:50%}.bk-bs-col-md-pull-5{right:41.66666667%}.bk-bs-col-md-pull-4{right:33.33333333%}.bk-bs-col-md-pull-3{right:25%}.bk-bs-col-md-pull-2{right:16.66666667%}.bk-bs-col-md-pull-1{right:8.33333333%}.bk-bs-col-md-pull-0{right:0}.bk-bs-col-md-push-12{left:100%}.bk-bs-col-md-push-11{left:91.66666667%}.bk-bs-col-md-push-10{left:83.33333333%}.bk-bs-col-md-push-9{left:75%}.bk-bs-col-md-push-8{left:66.66666667%}.bk-bs-col-md-push-7{left:58.33333333%}.bk-bs-col-md-push-6{left:50%}.bk-bs-col-md-push-5{left:41.66666667%}.bk-bs-col-md-push-4{left:33.33333333%}.bk-bs-col-md-push-3{left:25%}.bk-bs-col-md-push-2{left:16.66666667%}.bk-bs-col-md-push-1{left:8.33333333%}.bk-bs-col-md-push-0{left:0}.bk-bs-col-md-offset-12{margin-left:100%}.bk-bs-col-md-offset-11{margin-left:91.66666667%}.bk-bs-col-md-offset-10{margin-left:83.33333333%}.bk-bs-col-md-offset-9{margin-left:75%}.bk-bs-col-md-offset-8{margin-left:66.66666667%}.bk-bs-col-md-offset-7{margin-left:58.33333333%}.bk-bs-col-md-offset-6{margin-left:50%}.bk-bs-col-md-offset-5{margin-left:41.66666667%}.bk-bs-col-md-offset-4{margin-left:33.33333333%}.bk-bs-col-md-offset-3{margin-left:25%}.bk-bs-col-md-offset-2{margin-left:16.66666667%}.bk-bs-col-md-offset-1{margin-left:8.33333333%}.bk-bs-col-md-offset-0{margin-left:0}}@media(min-width:1200px){.bk-bs-col-lg-1,.bk-bs-col-lg-2,.bk-bs-col-lg-3,.bk-bs-col-lg-4,.bk-bs-col-lg-5,.bk-bs-col-lg-6,.bk-bs-col-lg-7,.bk-bs-col-lg-8,.bk-bs-col-lg-9,.bk-bs-col-lg-10,.bk-bs-col-lg-11,.bk-bs-col-lg-12{float:left}.bk-bs-col-lg-12{width:100%}.bk-bs-col-lg-11{width:91.66666667%}.bk-bs-col-lg-10{width:83.33333333%}.bk-bs-col-lg-9{width:75%}.bk-bs-col-lg-8{width:66.66666667%}.bk-bs-col-lg-7{width:58.33333333%}.bk-bs-col-lg-6{width:50%}.bk-bs-col-lg-5{width:41.66666667%}.bk-bs-col-lg-4{width:33.33333333%}.bk-bs-col-lg-3{width:25%}.bk-bs-col-lg-2{width:16.66666667%}.bk-bs-col-lg-1{width:8.33333333%}.bk-bs-col-lg-pull-12{right:100%}.bk-bs-col-lg-pull-11{right:91.66666667%}.bk-bs-col-lg-pull-10{right:83.33333333%}.bk-bs-col-lg-pull-9{right:75%}.bk-bs-col-lg-pull-8{right:66.66666667%}.bk-bs-col-lg-pull-7{right:58.33333333%}.bk-bs-col-lg-pull-6{right:50%}.bk-bs-col-lg-pull-5{right:41.66666667%}.bk-bs-col-lg-pull-4{right:33.33333333%}.bk-bs-col-lg-pull-3{right:25%}.bk-bs-col-lg-pull-2{right:16.66666667%}.bk-bs-col-lg-pull-1{right:8.33333333%}.bk-bs-col-lg-pull-0{right:0}.bk-bs-col-lg-push-12{left:100%}.bk-bs-col-lg-push-11{left:91.66666667%}.bk-bs-col-lg-push-10{left:83.33333333%}.bk-bs-col-lg-push-9{left:75%}.bk-bs-col-lg-push-8{left:66.66666667%}.bk-bs-col-lg-push-7{left:58.33333333%}.bk-bs-col-lg-push-6{left:50%}.bk-bs-col-lg-push-5{left:41.66666667%}.bk-bs-col-lg-push-4{left:33.33333333%}.bk-bs-col-lg-push-3{left:25%}.bk-bs-col-lg-push-2{left:16.66666667%}.bk-bs-col-lg-push-1{left:8.33333333%}.bk-bs-col-lg-push-0{left:0}.bk-bs-col-lg-offset-12{margin-left:100%}.bk-bs-col-lg-offset-11{margin-left:91.66666667%}.bk-bs-col-lg-offset-10{margin-left:83.33333333%}.bk-bs-col-lg-offset-9{margin-left:75%}.bk-bs-col-lg-offset-8{margin-left:66.66666667%}.bk-bs-col-lg-offset-7{margin-left:58.33333333%}.bk-bs-col-lg-offset-6{margin-left:50%}.bk-bs-col-lg-offset-5{margin-left:41.66666667%}.bk-bs-col-lg-offset-4{margin-left:33.33333333%}.bk-bs-col-lg-offset-3{margin-left:25%}.bk-bs-col-lg-offset-2{margin-left:16.66666667%}.bk-bs-col-lg-offset-1{margin-left:8.33333333%}.bk-bs-col-lg-offset-0{margin-left:0}}table{max-width:100%;background-color:transparent}th{text-align:left}.bk-bs-table{width:100%;margin-bottom:20px}.bk-bs-table&gt;thead&gt;tr&gt;th,.bk-bs-table&gt;tbody&gt;tr&gt;th,.bk-bs-table&gt;tfoot&gt;tr&gt;th,.bk-bs-table&gt;thead&gt;tr&gt;td,.bk-bs-table&gt;tbody&gt;tr&gt;td,.bk-bs-table&gt;tfoot&gt;tr&gt;td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.bk-bs-table&gt;thead&gt;tr&gt;th{vertical-align:bottom;border-bottom:2px solid #ddd}.bk-bs-table&gt;caption+thead&gt;tr:first-child&gt;th,.bk-bs-table&gt;colgroup+thead&gt;tr:first-child&gt;th,.bk-bs-table&gt;thead:first-child&gt;tr:first-child&gt;th,.bk-bs-table&gt;caption+thead&gt;tr:first-child&gt;td,.bk-bs-table&gt;colgroup+thead&gt;tr:first-child&gt;td,.bk-bs-table&gt;thead:first-child&gt;tr:first-child&gt;td{border-top:0}.bk-bs-table&gt;tbody+tbody{border-top:2px solid #ddd}.bk-bs-table .bk-bs-table{background-color:#fff}.bk-bs-table-condensed&gt;thead&gt;tr&gt;th,.bk-bs-table-condensed&gt;tbody&gt;tr&gt;th,.bk-bs-table-condensed&gt;tfoot&gt;tr&gt;th,.bk-bs-table-condensed&gt;thead&gt;tr&gt;td,.bk-bs-table-condensed&gt;tbody&gt;tr&gt;td,.bk-bs-table-condensed&gt;tfoot&gt;tr&gt;td{padding:5px}.bk-bs-table-bordered{border:1px solid #ddd}.bk-bs-table-bordered&gt;thead&gt;tr&gt;th,.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th,.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th,.bk-bs-table-bordered&gt;thead&gt;tr&gt;td,.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td,.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td{border:1px solid #ddd}.bk-bs-table-bordered&gt;thead&gt;tr&gt;th,.bk-bs-table-bordered&gt;thead&gt;tr&gt;td{border-bottom-width:2px}.bk-bs-table-striped&gt;tbody&gt;tr:nth-child(odd)&gt;td,.bk-bs-table-striped&gt;tbody&gt;tr:nth-child(odd)&gt;th{background-color:#f9f9f9}.bk-bs-table-hover&gt;tbody&gt;tr:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr:hover&gt;th{background-color:#f5f5f5}table col[class*="col-"]{position:static;float:none;display:table-column}table td[class*="col-"],table th[class*="col-"]{position:static;float:none;display:table-cell}.bk-bs-table&gt;thead&gt;tr&gt;td.active,.bk-bs-table&gt;tbody&gt;tr&gt;td.active,.bk-bs-table&gt;tfoot&gt;tr&gt;td.active,.bk-bs-table&gt;thead&gt;tr&gt;th.active,.bk-bs-table&gt;tbody&gt;tr&gt;th.active,.bk-bs-table&gt;tfoot&gt;tr&gt;th.active,.bk-bs-table&gt;thead&gt;tr.active&gt;td,.bk-bs-table&gt;tbody&gt;tr.active&gt;td,.bk-bs-table&gt;tfoot&gt;tr.active&gt;td,.bk-bs-table&gt;thead&gt;tr.active&gt;th,.bk-bs-table&gt;tbody&gt;tr.active&gt;th,.bk-bs-table&gt;tfoot&gt;tr.active&gt;th{background-color:#f5f5f5}.bk-bs-table-hover&gt;tbody&gt;tr&gt;td.active:hover,.bk-bs-table-hover&gt;tbody&gt;tr&gt;th.active:hover,.bk-bs-table-hover&gt;tbody&gt;tr.active:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr.active:hover&gt;th{background-color:#e8e8e8}.bk-bs-table&gt;thead&gt;tr&gt;td.success,.bk-bs-table&gt;tbody&gt;tr&gt;td.success,.bk-bs-table&gt;tfoot&gt;tr&gt;td.success,.bk-bs-table&gt;thead&gt;tr&gt;th.success,.bk-bs-table&gt;tbody&gt;tr&gt;th.success,.bk-bs-table&gt;tfoot&gt;tr&gt;th.success,.bk-bs-table&gt;thead&gt;tr.success&gt;td,.bk-bs-table&gt;tbody&gt;tr.success&gt;td,.bk-bs-table&gt;tfoot&gt;tr.success&gt;td,.bk-bs-table&gt;thead&gt;tr.success&gt;th,.bk-bs-table&gt;tbody&gt;tr.success&gt;th,.bk-bs-table&gt;tfoot&gt;tr.success&gt;th{background-color:#dff0d8}.bk-bs-table-hover&gt;tbody&gt;tr&gt;td.success:hover,.bk-bs-table-hover&gt;tbody&gt;tr&gt;th.success:hover,.bk-bs-table-hover&gt;tbody&gt;tr.success:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr.success:hover&gt;th{background-color:#d0e9c6}.bk-bs-table&gt;thead&gt;tr&gt;td.info,.bk-bs-table&gt;tbody&gt;tr&gt;td.info,.bk-bs-table&gt;tfoot&gt;tr&gt;td.info,.bk-bs-table&gt;thead&gt;tr&gt;th.info,.bk-bs-table&gt;tbody&gt;tr&gt;th.info,.bk-bs-table&gt;tfoot&gt;tr&gt;th.info,.bk-bs-table&gt;thead&gt;tr.info&gt;td,.bk-bs-table&gt;tbody&gt;tr.info&gt;td,.bk-bs-table&gt;tfoot&gt;tr.info&gt;td,.bk-bs-table&gt;thead&gt;tr.info&gt;th,.bk-bs-table&gt;tbody&gt;tr.info&gt;th,.bk-bs-table&gt;tfoot&gt;tr.info&gt;th{background-color:#d9edf7}.bk-bs-table-hover&gt;tbody&gt;tr&gt;td.info:hover,.bk-bs-table-hover&gt;tbody&gt;tr&gt;th.info:hover,.bk-bs-table-hover&gt;tbody&gt;tr.info:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr.info:hover&gt;th{background-color:#c4e3f3}.bk-bs-table&gt;thead&gt;tr&gt;td.warning,.bk-bs-table&gt;tbody&gt;tr&gt;td.warning,.bk-bs-table&gt;tfoot&gt;tr&gt;td.warning,.bk-bs-table&gt;thead&gt;tr&gt;th.warning,.bk-bs-table&gt;tbody&gt;tr&gt;th.warning,.bk-bs-table&gt;tfoot&gt;tr&gt;th.warning,.bk-bs-table&gt;thead&gt;tr.warning&gt;td,.bk-bs-table&gt;tbody&gt;tr.warning&gt;td,.bk-bs-table&gt;tfoot&gt;tr.warning&gt;td,.bk-bs-table&gt;thead&gt;tr.warning&gt;th,.bk-bs-table&gt;tbody&gt;tr.warning&gt;th,.bk-bs-table&gt;tfoot&gt;tr.warning&gt;th{background-color:#fcf8e3}.bk-bs-table-hover&gt;tbody&gt;tr&gt;td.warning:hover,.bk-bs-table-hover&gt;tbody&gt;tr&gt;th.warning:hover,.bk-bs-table-hover&gt;tbody&gt;tr.warning:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr.warning:hover&gt;th{background-color:#faf2cc}.bk-bs-table&gt;thead&gt;tr&gt;td.danger,.bk-bs-table&gt;tbody&gt;tr&gt;td.danger,.bk-bs-table&gt;tfoot&gt;tr&gt;td.danger,.bk-bs-table&gt;thead&gt;tr&gt;th.danger,.bk-bs-table&gt;tbody&gt;tr&gt;th.danger,.bk-bs-table&gt;tfoot&gt;tr&gt;th.danger,.bk-bs-table&gt;thead&gt;tr.danger&gt;td,.bk-bs-table&gt;tbody&gt;tr.danger&gt;td,.bk-bs-table&gt;tfoot&gt;tr.danger&gt;td,.bk-bs-table&gt;thead&gt;tr.danger&gt;th,.bk-bs-table&gt;tbody&gt;tr.danger&gt;th,.bk-bs-table&gt;tfoot&gt;tr.danger&gt;th{background-color:#f2dede}.bk-bs-table-hover&gt;tbody&gt;tr&gt;td.danger:hover,.bk-bs-table-hover&gt;tbody&gt;tr&gt;th.danger:hover,.bk-bs-table-hover&gt;tbody&gt;tr.danger:hover&gt;td,.bk-bs-table-hover&gt;tbody&gt;tr.danger:hover&gt;th{background-color:#ebcccc}@media(max-width:767px){.bk-bs-table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.bk-bs-table-responsive&gt;.bk-bs-table{margin-bottom:0}.bk-bs-table-responsive&gt;.bk-bs-table&gt;thead&gt;tr&gt;th,.bk-bs-table-responsive&gt;.bk-bs-table&gt;tbody&gt;tr&gt;th,.bk-bs-table-responsive&gt;.bk-bs-table&gt;tfoot&gt;tr&gt;th,.bk-bs-table-responsive&gt;.bk-bs-table&gt;thead&gt;tr&gt;td,.bk-bs-table-responsive&gt;.bk-bs-table&gt;tbody&gt;tr&gt;td,.bk-bs-table-responsive&gt;.bk-bs-table&gt;tfoot&gt;tr&gt;td{white-space:nowrap}.bk-bs-table-responsive&gt;.bk-bs-table-bordered{border:0}.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:first-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:first-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:first-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:first-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:first-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:first-child{border-left:0}.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:last-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:last-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:last-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:last-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:last-child,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:last-child{border-right:0}.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;th,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;th,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;td,.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;td{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}input[type="range"]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.bk-bs-form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bk-bs-form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.6)}.bk-bs-form-control::-moz-placeholder{color:#999;opacity:1}.bk-bs-form-control:-ms-input-placeholder{color:#999}.bk-bs-form-control::-webkit-input-placeholder{color:#999}.bk-bs-form-control[disabled],.bk-bs-form-control[readonly],fieldset[disabled] .bk-bs-form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.bk-bs-form-control{height:auto}input[type="search"]{-webkit-appearance:none}input[type="date"]{line-height:34px}.bk-bs-form-group{margin-bottom:15px}.bk-bs-radio,.bk-bs-checkbox{display:block;min-height:20px;margin-top:10px;margin-bottom:10px;padding-left:20px}.bk-bs-radio label,.bk-bs-checkbox label{display:inline;font-weight:normal;cursor:pointer}.bk-bs-radio input[type="radio"],.bk-bs-radio-inline input[type="radio"],.bk-bs-checkbox input[type="checkbox"],.bk-bs-checkbox-inline input[type="checkbox"]{float:left;margin-left:-20px}.bk-bs-radio+.bk-bs-radio,.bk-bs-checkbox+.bk-bs-checkbox{margin-top:-5px}.bk-bs-radio-inline,.bk-bs-checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:normal;cursor:pointer}.bk-bs-radio-inline+.bk-bs-radio-inline,.bk-bs-checkbox-inline+.bk-bs-checkbox-inline{margin-top:0;margin-left:10px}input[type="radio"][disabled],input[type="checkbox"][disabled],.bk-bs-radio[disabled],.bk-bs-radio-inline[disabled],.bk-bs-checkbox[disabled],.bk-bs-checkbox-inline[disabled],fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"],fieldset[disabled] .bk-bs-radio,fieldset[disabled] .bk-bs-radio-inline,fieldset[disabled] .bk-bs-checkbox,fieldset[disabled] .bk-bs-checkbox-inline{cursor:not-allowed}.bk-bs-input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.bk-bs-input-sm{height:30px;line-height:30px}textarea.bk-bs-input-sm,select[multiple].bk-bs-input-sm{height:auto}.bk-bs-input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.bk-bs-input-lg{height:46px;line-height:46px}textarea.bk-bs-input-lg,select[multiple].bk-bs-input-lg{height:auto}.bk-bs-has-feedback{position:relative}.bk-bs-has-feedback .bk-bs-form-control{padding-right:42.5px}.bk-bs-has-feedback .bk-bs-form-control-feedback{position:absolute;top:25px;right:0;display:block;width:34px;height:34px;line-height:34px;text-align:center}.bk-bs-has-success .bk-bs-help-block,.bk-bs-has-success .bk-bs-control-label,.bk-bs-has-success .bk-bs-radio,.bk-bs-has-success .bk-bs-checkbox,.bk-bs-has-success .bk-bs-radio-inline,.bk-bs-has-success .bk-bs-checkbox-inline{color:#3c763d}.bk-bs-has-success .bk-bs-form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.bk-bs-has-success .bk-bs-form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168}.bk-bs-has-success .bk-bs-input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.bk-bs-has-success .bk-bs-form-control-feedback{color:#3c763d}.bk-bs-has-warning .bk-bs-help-block,.bk-bs-has-warning .bk-bs-control-label,.bk-bs-has-warning .bk-bs-radio,.bk-bs-has-warning .bk-bs-checkbox,.bk-bs-has-warning .bk-bs-radio-inline,.bk-bs-has-warning .bk-bs-checkbox-inline{color:#8a6d3b}.bk-bs-has-warning .bk-bs-form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.bk-bs-has-warning .bk-bs-form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b}.bk-bs-has-warning .bk-bs-input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.bk-bs-has-warning .bk-bs-form-control-feedback{color:#8a6d3b}.bk-bs-has-error .bk-bs-help-block,.bk-bs-has-error .bk-bs-control-label,.bk-bs-has-error .bk-bs-radio,.bk-bs-has-error .bk-bs-checkbox,.bk-bs-has-error .bk-bs-radio-inline,.bk-bs-has-error .bk-bs-checkbox-inline{color:#a94442}.bk-bs-has-error .bk-bs-form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.bk-bs-has-error .bk-bs-form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483}.bk-bs-has-error .bk-bs-input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.bk-bs-has-error .bk-bs-form-control-feedback{color:#a94442}.bk-bs-form-control-static{margin-bottom:0}.bk-bs-help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media(min-width:768px){.bk-bs-form-inline .bk-bs-form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-form-control{display:inline-block;width:auto;vertical-align:middle}.bk-bs-form-inline .bk-bs-input-group&gt;.bk-bs-form-control{width:100%}.bk-bs-form-inline .bk-bs-control-label{margin-bottom:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-radio,.bk-bs-form-inline .bk-bs-checkbox{display:inline-block;margin-top:0;margin-bottom:0;padding-left:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-radio input[type="radio"],.bk-bs-form-inline .bk-bs-checkbox input[type="checkbox"]{float:none;margin-left:0}.bk-bs-form-inline .bk-bs-has-feedback .bk-bs-form-control-feedback{top:0}}.bk-bs-form-horizontal .bk-bs-control-label,.bk-bs-form-horizontal .bk-bs-radio,.bk-bs-form-horizontal .bk-bs-checkbox,.bk-bs-form-horizontal .bk-bs-radio-inline,.bk-bs-form-horizontal .bk-bs-checkbox-inline{margin-top:0;margin-bottom:0;padding-top:7px}.bk-bs-form-horizontal .bk-bs-radio,.bk-bs-form-horizontal .bk-bs-checkbox{min-height:27px}.bk-bs-form-horizontal .bk-bs-form-group{margin-left:-15px;margin-right:-15px}.bk-bs-form-horizontal .bk-bs-form-control-static{padding-top:7px}@media(min-width:768px){.bk-bs-form-horizontal .bk-bs-control-label{text-align:right}}.bk-bs-form-horizontal .bk-bs-has-feedback .bk-bs-form-control-feedback{top:0;right:15px}.bk-bs-btn{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bk-bs-btn:focus,.bk-bs-btn:active:focus,.bk-bs-btn.bk-bs-active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bk-bs-btn:hover,.bk-bs-btn:focus{color:#333;text-decoration:none}.bk-bs-btn:active,.bk-bs-btn.bk-bs-active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.bk-bs-btn.bk-bs-disabled,.bk-bs-btn[disabled],fieldset[disabled] .bk-bs-btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn-default{color:#333;background-color:#fff;border-color:#ccc}.bk-bs-btn-default:hover,.bk-bs-btn-default:focus,.bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-default{background-image:none}.bk-bs-btn-default.bk-bs-disabled,.bk-bs-btn-default[disabled],fieldset[disabled] .bk-bs-btn-default,.bk-bs-btn-default.bk-bs-disabled:hover,.bk-bs-btn-default[disabled]:hover,fieldset[disabled] .bk-bs-btn-default:hover,.bk-bs-btn-default.bk-bs-disabled:focus,.bk-bs-btn-default[disabled]:focus,fieldset[disabled] .bk-bs-btn-default:focus,.bk-bs-btn-default.bk-bs-disabled:active,.bk-bs-btn-default[disabled]:active,fieldset[disabled] .bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-disabled.bk-bs-active,.bk-bs-btn-default[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-default.bk-bs-active{background-color:#fff;border-color:#ccc}.bk-bs-btn-default .bk-bs-badge{color:#fff;background-color:#333}.bk-bs-btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.bk-bs-btn-primary:hover,.bk-bs-btn-primary:focus,.bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-primary{background-image:none}.bk-bs-btn-primary.bk-bs-disabled,.bk-bs-btn-primary[disabled],fieldset[disabled] .bk-bs-btn-primary,.bk-bs-btn-primary.bk-bs-disabled:hover,.bk-bs-btn-primary[disabled]:hover,fieldset[disabled] .bk-bs-btn-primary:hover,.bk-bs-btn-primary.bk-bs-disabled:focus,.bk-bs-btn-primary[disabled]:focus,fieldset[disabled] .bk-bs-btn-primary:focus,.bk-bs-btn-primary.bk-bs-disabled:active,.bk-bs-btn-primary[disabled]:active,fieldset[disabled] .bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-disabled.bk-bs-active,.bk-bs-btn-primary[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-primary.bk-bs-active{background-color:#428bca;border-color:#357ebd}.bk-bs-btn-primary .bk-bs-badge{color:#428bca;background-color:#fff}.bk-bs-btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.bk-bs-btn-success:hover,.bk-bs-btn-success:focus,.bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-success{color:#fff;background-color:#47a447;border-color:#398439}.bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-success{background-image:none}.bk-bs-btn-success.bk-bs-disabled,.bk-bs-btn-success[disabled],fieldset[disabled] .bk-bs-btn-success,.bk-bs-btn-success.bk-bs-disabled:hover,.bk-bs-btn-success[disabled]:hover,fieldset[disabled] .bk-bs-btn-success:hover,.bk-bs-btn-success.bk-bs-disabled:focus,.bk-bs-btn-success[disabled]:focus,fieldset[disabled] .bk-bs-btn-success:focus,.bk-bs-btn-success.bk-bs-disabled:active,.bk-bs-btn-success[disabled]:active,fieldset[disabled] .bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-disabled.bk-bs-active,.bk-bs-btn-success[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-success.bk-bs-active{background-color:#5cb85c;border-color:#4cae4c}.bk-bs-btn-success .bk-bs-badge{color:#5cb85c;background-color:#fff}.bk-bs-btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.bk-bs-btn-info:hover,.bk-bs-btn-info:focus,.bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-info{background-image:none}.bk-bs-btn-info.bk-bs-disabled,.bk-bs-btn-info[disabled],fieldset[disabled] .bk-bs-btn-info,.bk-bs-btn-info.bk-bs-disabled:hover,.bk-bs-btn-info[disabled]:hover,fieldset[disabled] .bk-bs-btn-info:hover,.bk-bs-btn-info.bk-bs-disabled:focus,.bk-bs-btn-info[disabled]:focus,fieldset[disabled] .bk-bs-btn-info:focus,.bk-bs-btn-info.bk-bs-disabled:active,.bk-bs-btn-info[disabled]:active,fieldset[disabled] .bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-disabled.bk-bs-active,.bk-bs-btn-info[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-info.bk-bs-active{background-color:#5bc0de;border-color:#46b8da}.bk-bs-btn-info .bk-bs-badge{color:#5bc0de;background-color:#fff}.bk-bs-btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.bk-bs-btn-warning:hover,.bk-bs-btn-warning:focus,.bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-warning{background-image:none}.bk-bs-btn-warning.bk-bs-disabled,.bk-bs-btn-warning[disabled],fieldset[disabled] .bk-bs-btn-warning,.bk-bs-btn-warning.bk-bs-disabled:hover,.bk-bs-btn-warning[disabled]:hover,fieldset[disabled] .bk-bs-btn-warning:hover,.bk-bs-btn-warning.bk-bs-disabled:focus,.bk-bs-btn-warning[disabled]:focus,fieldset[disabled] .bk-bs-btn-warning:focus,.bk-bs-btn-warning.bk-bs-disabled:active,.bk-bs-btn-warning[disabled]:active,fieldset[disabled] .bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-disabled.bk-bs-active,.bk-bs-btn-warning[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-warning.bk-bs-active{background-color:#f0ad4e;border-color:#eea236}.bk-bs-btn-warning .bk-bs-badge{color:#f0ad4e;background-color:#fff}.bk-bs-btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.bk-bs-btn-danger:hover,.bk-bs-btn-danger:focus,.bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-danger{background-image:none}.bk-bs-btn-danger.bk-bs-disabled,.bk-bs-btn-danger[disabled],fieldset[disabled] .bk-bs-btn-danger,.bk-bs-btn-danger.bk-bs-disabled:hover,.bk-bs-btn-danger[disabled]:hover,fieldset[disabled] .bk-bs-btn-danger:hover,.bk-bs-btn-danger.bk-bs-disabled:focus,.bk-bs-btn-danger[disabled]:focus,fieldset[disabled] .bk-bs-btn-danger:focus,.bk-bs-btn-danger.bk-bs-disabled:active,.bk-bs-btn-danger[disabled]:active,fieldset[disabled] .bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-disabled.bk-bs-active,.bk-bs-btn-danger[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-danger.bk-bs-active{background-color:#d9534f;border-color:#d43f3a}.bk-bs-btn-danger .bk-bs-badge{color:#d9534f;background-color:#fff}.bk-bs-btn-link{color:#428bca;font-weight:normal;cursor:pointer;border-radius:0}.bk-bs-btn-link,.bk-bs-btn-link:active,.bk-bs-btn-link[disabled],fieldset[disabled] .bk-bs-btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn-link,.bk-bs-btn-link:hover,.bk-bs-btn-link:focus,.bk-bs-btn-link:active{border-color:transparent}.bk-bs-btn-link:hover,.bk-bs-btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.bk-bs-btn-link[disabled]:hover,fieldset[disabled] .bk-bs-btn-link:hover,.bk-bs-btn-link[disabled]:focus,fieldset[disabled] .bk-bs-btn-link:focus{color:#999;text-decoration:none}.bk-bs-btn-lg,.bk-bs-btn-group-lg&gt;.bk-bs-btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.bk-bs-btn-sm,.bk-bs-btn-group-sm&gt;.bk-bs-btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.bk-bs-btn-xs,.bk-bs-btn-group-xs&gt;.bk-bs-btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.bk-bs-btn-block{display:block;width:100%;padding-left:0;padding-right:0}.bk-bs-btn-block+.bk-bs-btn-block{margin-top:5px}input[type="submit"].bk-bs-btn-block,input[type="reset"].bk-bs-btn-block,input[type="button"].bk-bs-btn-block{width:100%}.bk-bs-caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.bk-bs-dropdown{position:relative}.bk-bs-dropdown-toggle:focus{outline:0}.bk-bs-dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);background-clip:padding-box}.bk-bs-dropdown-menu.bk-bs-pull-right{right:0;left:auto}.bk-bs-dropdown-menu .bk-bs-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.bk-bs-dropdown-menu&gt;li&gt;a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.42857143;color:#333;white-space:nowrap}.bk-bs-dropdown-menu&gt;li&gt;a:hover,.bk-bs-dropdown-menu&gt;li&gt;a:focus{text-decoration:none;color:#262626;background-color:#f5f5f5}.bk-bs-dropdown-menu&gt;.bk-bs-active&gt;a,.bk-bs-dropdown-menu&gt;.bk-bs-active&gt;a:hover,.bk-bs-dropdown-menu&gt;.bk-bs-active&gt;a:focus{color:#fff;text-decoration:none;outline:0;background-color:#428bca}.bk-bs-dropdown-menu&gt;.bk-bs-disabled&gt;a,.bk-bs-dropdown-menu&gt;.bk-bs-disabled&gt;a:hover,.bk-bs-dropdown-menu&gt;.bk-bs-disabled&gt;a:focus{color:#999}.bk-bs-dropdown-menu&gt;.bk-bs-disabled&gt;a:hover,.bk-bs-dropdown-menu&gt;.bk-bs-disabled&gt;a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.bk-bs-Microsoft.bk-bs-gradient(enabled = false);cursor:not-allowed}.bk-bs-open&gt;.bk-bs-dropdown-menu{display:block}.bk-bs-open&gt;a{outline:0}.bk-bs-dropdown-menu-right{left:auto;right:0}.bk-bs-dropdown-menu-left{left:0;right:auto}.bk-bs-dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#999}.bk-bs-dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.bk-bs-pull-right&gt;.bk-bs-dropdown-menu{right:0;left:auto}.bk-bs-dropup .bk-bs-caret,.bk-bs-navbar-fixed-bottom .bk-bs-dropdown .bk-bs-caret{border-top:0;border-bottom:4px solid;content:""}.bk-bs-dropup .bk-bs-dropdown-menu,.bk-bs-navbar-fixed-bottom .bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media(min-width:768px){.bk-bs-navbar-right .bk-bs-dropdown-menu{left:auto;right:0}.bk-bs-navbar-right .bk-bs-dropdown-menu-left{left:0;right:auto}}.bk-bs-btn-group,.bk-bs-btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.bk-bs-btn-group&gt;.bk-bs-btn,.bk-bs-btn-group-vertical&gt;.bk-bs-btn{position:relative;float:left}.bk-bs-btn-group&gt;.bk-bs-btn:hover,.bk-bs-btn-group-vertical&gt;.bk-bs-btn:hover,.bk-bs-btn-group&gt;.bk-bs-btn:focus,.bk-bs-btn-group-vertical&gt;.bk-bs-btn:focus,.bk-bs-btn-group&gt;.bk-bs-btn:active,.bk-bs-btn-group-vertical&gt;.bk-bs-btn:active,.bk-bs-btn-group&gt;.bk-bs-btn.bk-bs-active,.bk-bs-btn-group-vertical&gt;.bk-bs-btn.bk-bs-active{z-index:2}.bk-bs-btn-group&gt;.bk-bs-btn:focus,.bk-bs-btn-group-vertical&gt;.bk-bs-btn:focus{outline:0}.bk-bs-btn-group .bk-bs-btn+.bk-bs-btn,.bk-bs-btn-group .bk-bs-btn+.bk-bs-btn-group,.bk-bs-btn-group .bk-bs-btn-group+.bk-bs-btn,.bk-bs-btn-group .bk-bs-btn-group+.bk-bs-btn-group{margin-left:-1px}.bk-bs-btn-toolbar{margin-left:-5px}.bk-bs-btn-toolbar .bk-bs-btn-group,.bk-bs-btn-toolbar .bk-bs-input-group{float:left}.bk-bs-btn-toolbar&gt;.bk-bs-btn,.bk-bs-btn-toolbar&gt;.bk-bs-btn-group,.bk-bs-btn-toolbar&gt;.bk-bs-input-group{margin-left:5px}.bk-bs-btn-group&gt;.bk-bs-btn:not(:first-child):not(:last-child):not(.bk-bs-dropdown-toggle){border-radius:0}.bk-bs-btn-group&gt;.bk-bs-btn:first-child{margin-left:0}.bk-bs-btn-group&gt;.bk-bs-btn:first-child:not(:last-child):not(.bk-bs-dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-btn-group&gt;.bk-bs-btn:last-child:not(:first-child),.bk-bs-btn-group&gt;.bk-bs-dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-btn-group&gt;.bk-bs-btn-group{float:left}.bk-bs-btn-group&gt;.bk-bs-btn-group:not(:first-child):not(:last-child)&gt;.bk-bs-btn{border-radius:0}.bk-bs-btn-group&gt;.bk-bs-btn-group:first-child&gt;.bk-bs-btn:last-child,.bk-bs-btn-group&gt;.bk-bs-btn-group:first-child&gt;.bk-bs-dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-btn-group&gt;.bk-bs-btn-group:last-child&gt;.bk-bs-btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-btn-group .bk-bs-dropdown-toggle:active,.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle{outline:0}.bk-bs-btn-group&gt;.bk-bs-btn+.bk-bs-dropdown-toggle{padding-left:8px;padding-right:8px}.bk-bs-btn-group&gt;.bk-bs-btn-lg+.bk-bs-dropdown-toggle{padding-left:12px;padding-right:12px}.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-link{-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn .bk-bs-caret{margin-left:0}.bk-bs-btn-lg .bk-bs-caret{border-width:5px 5px 0;border-bottom-width:0}.bk-bs-dropup .bk-bs-btn-lg .bk-bs-caret{border-width:0 5px 5px}.bk-bs-btn-group-vertical&gt;.bk-bs-btn,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group&gt;.bk-bs-btn{display:block;float:none;width:100%;max-width:100%}.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group&gt;.bk-bs-btn{float:none}.bk-bs-btn-group-vertical&gt;.bk-bs-btn+.bk-bs-btn,.bk-bs-btn-group-vertical&gt;.bk-bs-btn+.bk-bs-btn-group,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group+.bk-bs-btn,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group+.bk-bs-btn-group{margin-top:-1px;margin-left:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn:not(:first-child):not(:last-child){border-radius:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:not(:first-child):not(:last-child)&gt;.bk-bs-btn{border-radius:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:first-child:not(:last-child)&gt;.bk-bs-btn:last-child,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:first-child:not(:last-child)&gt;.bk-bs-dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:last-child:not(:first-child)&gt;.bk-bs-btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.bk-bs-btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.bk-bs-btn-group-justified&gt;.bk-bs-btn,.bk-bs-btn-group-justified&gt;.bk-bs-btn-group{float:none;display:table-cell;width:1%}.bk-bs-btn-group-justified&gt;.bk-bs-btn-group .bk-bs-btn{width:100%}[data-bk-bs-toggle="buttons"]&gt;.bk-bs-btn&gt;input[type="radio"],[data-bk-bs-toggle="buttons"]&gt;.bk-bs-btn&gt;input[type="checkbox"]{display:none}.bk-bs-input-group{position:relative;display:table;border-collapse:separate}.bk-bs-input-group[class*="col-"]{float:none;padding-left:0;padding-right:0}.bk-bs-input-group .bk-bs-form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.bk-bs-input-group-lg&gt;.bk-bs-form-control,.bk-bs-input-group-lg&gt;.bk-bs-input-group-addon,.bk-bs-input-group-lg&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.bk-bs-input-group-lg&gt;.bk-bs-form-control,select.bk-bs-input-group-lg&gt;.bk-bs-input-group-addon,select.bk-bs-input-group-lg&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:46px;line-height:46px}textarea.bk-bs-input-group-lg&gt;.bk-bs-form-control,textarea.bk-bs-input-group-lg&gt;.bk-bs-input-group-addon,textarea.bk-bs-input-group-lg&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn,select[multiple].bk-bs-input-group-lg&gt;.bk-bs-form-control,select[multiple].bk-bs-input-group-lg&gt;.bk-bs-input-group-addon,select[multiple].bk-bs-input-group-lg&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:auto}.bk-bs-input-group-sm&gt;.bk-bs-form-control,.bk-bs-input-group-sm&gt;.bk-bs-input-group-addon,.bk-bs-input-group-sm&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.bk-bs-input-group-sm&gt;.bk-bs-form-control,select.bk-bs-input-group-sm&gt;.bk-bs-input-group-addon,select.bk-bs-input-group-sm&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:30px;line-height:30px}textarea.bk-bs-input-group-sm&gt;.bk-bs-form-control,textarea.bk-bs-input-group-sm&gt;.bk-bs-input-group-addon,textarea.bk-bs-input-group-sm&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn,select[multiple].bk-bs-input-group-sm&gt;.bk-bs-form-control,select[multiple].bk-bs-input-group-sm&gt;.bk-bs-input-group-addon,select[multiple].bk-bs-input-group-sm&gt;.bk-bs-input-group-btn&gt;.bk-bs-btn{height:auto}.bk-bs-input-group-addon,.bk-bs-input-group-btn,.bk-bs-input-group .bk-bs-form-control{display:table-cell}.bk-bs-input-group-addon:not(:first-child):not(:last-child),.bk-bs-input-group-btn:not(:first-child):not(:last-child),.bk-bs-input-group .bk-bs-form-control:not(:first-child):not(:last-child){border-radius:0}.bk-bs-input-group-addon,.bk-bs-input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.bk-bs-input-group-addon{padding:6px 12px;font-size:14px;font-weight:normal;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.bk-bs-input-group-addon.bk-bs-input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.bk-bs-input-group-addon.bk-bs-input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.bk-bs-input-group-addon input[type="radio"],.bk-bs-input-group-addon input[type="checkbox"]{margin-top:0}.bk-bs-input-group .bk-bs-form-control:first-child,.bk-bs-input-group-addon:first-child,.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn,.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn-group&gt;.bk-bs-btn,.bk-bs-input-group-btn:first-child&gt;.bk-bs-dropdown-toggle,.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn:not(:last-child):not(.bk-bs-dropdown-toggle),.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn-group:not(:last-child)&gt;.bk-bs-btn{border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-input-group-addon:first-child{border-right:0}.bk-bs-input-group .bk-bs-form-control:last-child,.bk-bs-input-group-addon:last-child,.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn,.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn-group&gt;.bk-bs-btn,.bk-bs-input-group-btn:last-child&gt;.bk-bs-dropdown-toggle,.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn:not(:first-child),.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn-group:not(:first-child)&gt;.bk-bs-btn{border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-input-group-addon:last-child{border-left:0}.bk-bs-input-group-btn{position:relative;font-size:0;white-space:nowrap}.bk-bs-input-group-btn&gt;.bk-bs-btn{position:relative}.bk-bs-input-group-btn&gt;.bk-bs-btn+.bk-bs-btn{margin-left:-1px}.bk-bs-input-group-btn&gt;.bk-bs-btn:hover,.bk-bs-input-group-btn&gt;.bk-bs-btn:focus,.bk-bs-input-group-btn&gt;.bk-bs-btn:active{z-index:2}.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn,.bk-bs-input-group-btn:first-child&gt;.bk-bs-btn-group{margin-right:-1px}.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn,.bk-bs-input-group-btn:last-child&gt;.bk-bs-btn-group{margin-left:-1px}.bk-bs-nav{margin-bottom:0;padding-left:0;list-style:none}.bk-bs-nav&gt;li{position:relative;display:block}.bk-bs-nav&gt;li&gt;a{position:relative;display:block;padding:10px 15px}.bk-bs-nav&gt;li&gt;a:hover,.bk-bs-nav&gt;li&gt;a:focus{text-decoration:none;background-color:#eee}.bk-bs-nav&gt;li.bk-bs-disabled&gt;a{color:#999}.bk-bs-nav&gt;li.bk-bs-disabled&gt;a:hover,.bk-bs-nav&gt;li.bk-bs-disabled&gt;a:focus{color:#999;text-decoration:none;background-color:transparent;cursor:not-allowed}.bk-bs-nav .bk-bs-open&gt;a,.bk-bs-nav .bk-bs-open&gt;a:hover,.bk-bs-nav .bk-bs-open&gt;a:focus{background-color:#eee;border-color:#428bca}.bk-bs-nav .bk-bs-nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.bk-bs-nav&gt;li&gt;a&gt;img{max-width:none}.bk-bs-nav-tabs{border-bottom:1px solid #ddd}.bk-bs-nav-tabs&gt;li{float:left;margin-bottom:-1px}.bk-bs-nav-tabs&gt;li&gt;a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.bk-bs-nav-tabs&gt;li&gt;a:hover{border-color:#eee #eee #ddd}.bk-bs-nav-tabs&gt;li.bk-bs-active&gt;a,.bk-bs-nav-tabs&gt;li.bk-bs-active&gt;a:hover,.bk-bs-nav-tabs&gt;li.bk-bs-active&gt;a:focus{color:#555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.bk-bs-nav-tabs.bk-bs-nav-justified{width:100%;border-bottom:0}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li{float:none}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li&gt;a{text-align:center;margin-bottom:5px}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;left:auto}@media(min-width:768px){.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li{display:table-cell;width:1%}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li&gt;a{margin-bottom:0}}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li&gt;a{margin-right:0;border-radius:4px}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a,.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a:hover,.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a:focus{border:1px solid #ddd}@media(min-width:768px){.bk-bs-nav-tabs.bk-bs-nav-justified&gt;li&gt;a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a,.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a:hover,.bk-bs-nav-tabs.bk-bs-nav-justified&gt;.bk-bs-active&gt;a:focus{border-bottom-color:#fff}}.bk-bs-nav-pills&gt;li{float:left}.bk-bs-nav-pills&gt;li&gt;a{border-radius:4px}.bk-bs-nav-pills&gt;li+li{margin-left:2px}.bk-bs-nav-pills&gt;li.bk-bs-active&gt;a,.bk-bs-nav-pills&gt;li.bk-bs-active&gt;a:hover,.bk-bs-nav-pills&gt;li.bk-bs-active&gt;a:focus{color:#fff;background-color:#428bca}.bk-bs-nav-stacked&gt;li{float:none}.bk-bs-nav-stacked&gt;li+li{margin-top:2px;margin-left:0}.bk-bs-nav-justified{width:100%}.bk-bs-nav-justified&gt;li{float:none}.bk-bs-nav-justified&gt;li&gt;a{text-align:center;margin-bottom:5px}.bk-bs-nav-justified&gt;.bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;left:auto}@media(min-width:768px){.bk-bs-nav-justified&gt;li{display:table-cell;width:1%}.bk-bs-nav-justified&gt;li&gt;a{margin-bottom:0}}.bk-bs-nav-tabs-justified{border-bottom:0}.bk-bs-nav-tabs-justified&gt;li&gt;a{margin-right:0;border-radius:4px}.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a,.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a:hover,.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a:focus{border:1px solid #ddd}@media(min-width:768px){.bk-bs-nav-tabs-justified&gt;li&gt;a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a,.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a:hover,.bk-bs-nav-tabs-justified&gt;.bk-bs-active&gt;a:focus{border-bottom-color:#fff}}.bk-bs-tab-content&gt;.bk-bs-tab-pane{display:none}.bk-bs-tab-content&gt;.bk-bs-active{display:block}.bk-bs-nav-tabs .bk-bs-dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.bk-bs-label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.bk-bs-label[href]:hover,.bk-bs-label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.bk-bs-label:empty{display:none}.bk-bs-btn .bk-bs-label{position:relative;top:-1px}.bk-bs-label-default{background-color:#999}.bk-bs-label-default[href]:hover,.bk-bs-label-default[href]:focus{background-color:gray}.bk-bs-label-primary{background-color:#428bca}.bk-bs-label-primary[href]:hover,.bk-bs-label-primary[href]:focus{background-color:#3071a9}.bk-bs-label-success{background-color:#5cb85c}.bk-bs-label-success[href]:hover,.bk-bs-label-success[href]:focus{background-color:#449d44}.bk-bs-label-info{background-color:#5bc0de}.bk-bs-label-info[href]:hover,.bk-bs-label-info[href]:focus{background-color:#31b0d5}.bk-bs-label-warning{background-color:#f0ad4e}.bk-bs-label-warning[href]:hover,.bk-bs-label-warning[href]:focus{background-color:#ec971f}.bk-bs-label-danger{background-color:#d9534f}.bk-bs-label-danger[href]:hover,.bk-bs-label-danger[href]:focus{background-color:#c9302c}.bk-bs-panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.bk-bs-panel-body{padding:15px}.bk-bs-panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel-heading&gt;.bk-bs-dropdown .bk-bs-dropdown-toggle{color:inherit}.bk-bs-panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.bk-bs-panel-title&gt;a{color:inherit}.bk-bs-panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel&gt;.bk-bs-list-group{margin-bottom:0}.bk-bs-panel&gt;.bk-bs-list-group .bk-bs-list-group-item{border-width:1px 0;border-radius:0}.bk-bs-panel&gt;.bk-bs-list-group:first-child .bk-bs-list-group-item:first-child{border-top:0;border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel&gt;.bk-bs-list-group:last-child .bk-bs-list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel-heading+.bk-bs-list-group .bk-bs-list-group-item:first-child{border-top-width:0}.bk-bs-panel&gt;.bk-bs-table,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table{margin-bottom:0}.bk-bs-panel&gt;.bk-bs-table:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child td:first-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child td:first-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child th:first-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child th:first-child{border-top-left-radius:3px}.bk-bs-panel&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child td:last-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child td:last-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;thead:first-child&gt;tr:first-child th:last-child,.bk-bs-panel&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:first-child&gt;.bk-bs-table:first-child&gt;tbody:first-child&gt;tr:first-child th:last-child{border-top-right-radius:3px}.bk-bs-panel&gt;.bk-bs-table:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child td:first-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child td:first-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child th:first-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child th:first-child{border-bottom-left-radius:3px}.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child td:last-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child td:last-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tbody:last-child&gt;tr:last-child th:last-child,.bk-bs-panel&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive:last-child&gt;.bk-bs-table:last-child&gt;tfoot:last-child&gt;tr:last-child th:last-child{border-bottom-right-radius:3px}.bk-bs-panel&gt;.bk-bs-panel-body+.bk-bs-table,.bk-bs-panel&gt;.bk-bs-panel-body+.bk-bs-table-responsive{border-top:1px solid #ddd}.bk-bs-panel&gt;.bk-bs-table&gt;tbody:first-child&gt;tr:first-child th,.bk-bs-panel&gt;.bk-bs-table&gt;tbody:first-child&gt;tr:first-child td{border-top:0}.bk-bs-panel&gt;.bk-bs-table-bordered,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered{border:0}.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:first-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:first-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:first-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:first-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:first-child{border-left:0}.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;th:last-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr&gt;td:last-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr&gt;td:last-child,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:last-child,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr&gt;td:last-child{border-right:0}.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr:first-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr:first-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:first-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:first-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;thead&gt;tr:first-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;thead&gt;tr:first-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:first-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:first-child&gt;th{border-bottom:0}.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;td,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tbody&gt;tr:last-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;th,.bk-bs-panel&gt;.bk-bs-table-responsive&gt;.bk-bs-table-bordered&gt;tfoot&gt;tr:last-child&gt;th{border-bottom:0}.bk-bs-panel&gt;.bk-bs-table-responsive{border:0;margin-bottom:0}.bk-bs-panel-group{margin-bottom:20px}.bk-bs-panel-group .bk-bs-panel{margin-bottom:0;border-radius:4px;overflow:hidden}.bk-bs-panel-group .bk-bs-panel+.bk-bs-panel{margin-top:5px}.bk-bs-panel-group .bk-bs-panel-heading{border-bottom:0}.bk-bs-panel-group .bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top:1px solid #ddd}.bk-bs-panel-group .bk-bs-panel-footer{border-top:0}.bk-bs-panel-group .bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom:1px solid #ddd}.bk-bs-panel-default{border-color:#ddd}.bk-bs-panel-default&gt;.bk-bs-panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.bk-bs-panel-default&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#ddd}.bk-bs-panel-default&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#ddd}.bk-bs-panel-primary{border-color:#428bca}.bk-bs-panel-primary&gt;.bk-bs-panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.bk-bs-panel-primary&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#428bca}.bk-bs-panel-primary&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#428bca}.bk-bs-panel-success{border-color:#d6e9c6}.bk-bs-panel-success&gt;.bk-bs-panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.bk-bs-panel-success&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#d6e9c6}.bk-bs-panel-success&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#d6e9c6}.bk-bs-panel-info{border-color:#bce8f1}.bk-bs-panel-info&gt;.bk-bs-panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.bk-bs-panel-info&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#bce8f1}.bk-bs-panel-info&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#bce8f1}.bk-bs-panel-warning{border-color:#faebcc}.bk-bs-panel-warning&gt;.bk-bs-panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.bk-bs-panel-warning&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#faebcc}.bk-bs-panel-warning&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#faebcc}.bk-bs-panel-danger{border-color:#ebccd1}.bk-bs-panel-danger&gt;.bk-bs-panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.bk-bs-panel-danger&gt;.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#ebccd1}.bk-bs-panel-danger&gt;.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#ebccd1}.bk-bs-close{float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.bk-bs-close:hover,.bk-bs-close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.bk-bs-close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.bk-bs-modal-open{overflow:hidden}.bk-bs-modal{display:none;overflow:auto;overflow-y:scroll;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.bk-bs-modal.bk-bs-fade .bk-bs-modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.bk-bs-modal.bk-bs-in .bk-bs-modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.bk-bs-modal-dialog{position:relative;width:auto;margin:10px}.bk-bs-modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);box-shadow:0 3px 9px rgba(0,0,0,0.5);background-clip:padding-box;outline:0}.bk-bs-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.bk-bs-modal-backdrop.bk-bs-fade{opacity:0;filter:alpha(opacity=0)}.bk-bs-modal-backdrop.bk-bs-in{opacity:.5;filter:alpha(opacity=50)}.bk-bs-modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.bk-bs-modal-header .bk-bs-close{margin-top:-2px}.bk-bs-modal-title{margin:0;line-height:1.42857143}.bk-bs-modal-body{position:relative;padding:20px}.bk-bs-modal-footer{margin-top:15px;padding:19px 20px 20px;text-align:right;border-top:1px solid #e5e5e5}.bk-bs-modal-footer .bk-bs-btn+.bk-bs-btn{margin-left:5px;margin-bottom:0}.bk-bs-modal-footer .bk-bs-btn-group .bk-bs-btn+.bk-bs-btn{margin-left:-1px}.bk-bs-modal-footer .bk-bs-btn-block+.bk-bs-btn-block{margin-left:0}@media(min-width:768px){.bk-bs-modal-dialog{width:600px;margin:30px auto}.bk-bs-modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(0,0,0,0.5)}.bk-bs-modal-sm{width:300px}}@media(min-width:992px){.bk-bs-modal-lg{width:900px}}.bk-bs-clearfix:before,.bk-bs-clearfix:after,.bk-bs-container:before,.bk-bs-container:after,.bk-bs-container-fluid:before,.bk-bs-container-fluid:after,.bk-bs-row:before,.bk-bs-row:after,.bk-bs-form-horizontal .bk-bs-form-group:before,.bk-bs-form-horizontal .bk-bs-form-group:after,.bk-bs-btn-toolbar:before,.bk-bs-btn-toolbar:after,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:before,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:after,.bk-bs-nav:before,.bk-bs-nav:after,.bk-bs-panel-body:before,.bk-bs-panel-body:after,.bk-bs-modal-footer:before,.bk-bs-modal-footer:after,.bk-crossfilter-row:before,.bk-crossfilter-row:after{content:" ";display:table}.bk-bs-clearfix:after,.bk-bs-container:after,.bk-bs-container-fluid:after,.bk-bs-row:after,.bk-bs-form-horizontal .bk-bs-form-group:after,.bk-bs-btn-toolbar:after,.bk-bs-btn-group-vertical&gt;.bk-bs-btn-group:after,.bk-bs-nav:after,.bk-bs-panel-body:after,.bk-bs-modal-footer:after,.bk-crossfilter-row:after{clear:both}.bk-bs-center-block{display:block;margin-left:auto;margin-right:auto}.bk-bs-pull-right{float:right !important}.bk-bs-pull-left{float:left !important}.bk-bs-hide{display:none !important}.bk-bs-show{display:block !important}.bk-bs-invisible{visibility:hidden}.bk-bs-text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.bk-bs-hidden{display:none !important;visibility:hidden !important}.bk-bs-affix{position:fixed}@font-face{font-family:'FontAwesome';src:url('data:font/eot;base64,[encoded data, 74676 characters]') format('embedded-opentype'),url("data:application/x-font-woff;base64,[encoded data, 87272 characters]") format('woff'),url("data:font/ttf;base64,[encoded data, 149548 characters]") format('truetype');font-weight:normal;font-style:normal}.bk-fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bk-fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.bk-fa-2x{font-size:2em}.bk-fa-3x{font-size:3em}.bk-fa-4x{font-size:4em}.bk-fa-5x{font-size:5em}.bk-fa-fw{width:1.28571429em;text-align:center}.bk-fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.bk-fa-ul&gt;li{position:relative}.bk-fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.bk-fa-li.bk-fa-lg{left:-1.85714286em}.bk-fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.bk-fa.pull-left{margin-right:.3em}.bk-fa.pull-right{margin-left:.3em}.bk-fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.bk-fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.bk-fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.bk-fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.bk-fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0,mirror=1);-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.bk-fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2,mirror=1);-webkit-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .bk-fa-rotate-90,:root .bk-fa-rotate-180,:root .bk-fa-rotate-270,:root .bk-fa-flip-horizontal,:root .bk-fa-flip-vertical{filter:none}.bk-fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.bk-fa-stack-1x,.bk-fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.bk-fa-stack-1x{line-height:inherit}.bk-fa-stack-2x{font-size:2em}.bk-fa-inverse{color:#fff}.bk-fa-glass:before{content:"\f000"}.bk-fa-music:before{content:"\f001"}.bk-fa-search:before{content:"\f002"}.bk-fa-envelope-o:before{content:"\f003"}.bk-fa-heart:before{content:"\f004"}.bk-fa-star:before{content:"\f005"}.bk-fa-star-o:before{content:"\f006"}.bk-fa-user:before{content:"\f007"}.bk-fa-film:before{content:"\f008"}.bk-fa-th-large:before{content:"\f009"}.bk-fa-th:before{content:"\f00a"}.bk-fa-th-list:before{content:"\f00b"}.bk-fa-check:before{content:"\f00c"}.bk-fa-remove:before,.bk-fa-close:before,.bk-fa-times:before{content:"\f00d"}.bk-fa-search-plus:before{content:"\f00e"}.bk-fa-search-minus:before{content:"\f010"}.bk-fa-power-off:before{content:"\f011"}.bk-fa-signal:before{content:"\f012"}.bk-fa-gear:before,.bk-fa-cog:before{content:"\f013"}.bk-fa-trash-o:before{content:"\f014"}.bk-fa-home:before{content:"\f015"}.bk-fa-file-o:before{content:"\f016"}.bk-fa-clock-o:before{content:"\f017"}.bk-fa-road:before{content:"\f018"}.bk-fa-download:before{content:"\f019"}.bk-fa-arrow-circle-o-down:before{content:"\f01a"}.bk-fa-arrow-circle-o-up:before{content:"\f01b"}.bk-fa-inbox:before{content:"\f01c"}.bk-fa-play-circle-o:before{content:"\f01d"}.bk-fa-rotate-right:before,.bk-fa-repeat:before{content:"\f01e"}.bk-fa-refresh:before{content:"\f021"}.bk-fa-list-alt:before{content:"\f022"}.bk-fa-lock:before{content:"\f023"}.bk-fa-flag:before{content:"\f024"}.bk-fa-headphones:before{content:"\f025"}.bk-fa-volume-off:before{content:"\f026"}.bk-fa-volume-down:before{content:"\f027"}.bk-fa-volume-up:before{content:"\f028"}.bk-fa-qrcode:before{content:"\f029"}.bk-fa-barcode:before{content:"\f02a"}.bk-fa-tag:before{content:"\f02b"}.bk-fa-tags:before{content:"\f02c"}.bk-fa-book:before{content:"\f02d"}.bk-fa-bookmark:before{content:"\f02e"}.bk-fa-print:before{content:"\f02f"}.bk-fa-camera:before{content:"\f030"}.bk-fa-font:before{content:"\f031"}.bk-fa-bold:before{content:"\f032"}.bk-fa-italic:before{content:"\f033"}.bk-fa-text-height:before{content:"\f034"}.bk-fa-text-width:before{content:"\f035"}.bk-fa-align-left:before{content:"\f036"}.bk-fa-align-center:before{content:"\f037"}.bk-fa-align-right:before{content:"\f038"}.bk-fa-align-justify:before{content:"\f039"}.bk-fa-list:before{content:"\f03a"}.bk-fa-dedent:before,.bk-fa-outdent:before{content:"\f03b"}.bk-fa-indent:before{content:"\f03c"}.bk-fa-video-camera:before{content:"\f03d"}.bk-fa-photo:before,.bk-fa-image:before,.bk-fa-picture-o:before{content:"\f03e"}.bk-fa-pencil:before{content:"\f040"}.bk-fa-map-marker:before{content:"\f041"}.bk-fa-adjust:before{content:"\f042"}.bk-fa-tint:before{content:"\f043"}.bk-fa-edit:before,.bk-fa-pencil-square-o:before{content:"\f044"}.bk-fa-share-square-o:before{content:"\f045"}.bk-fa-check-square-o:before{content:"\f046"}.bk-fa-arrows:before{content:"\f047"}.bk-fa-step-backward:before{content:"\f048"}.bk-fa-fast-backward:before{content:"\f049"}.bk-fa-backward:before{content:"\f04a"}.bk-fa-play:before{content:"\f04b"}.bk-fa-pause:before{content:"\f04c"}.bk-fa-stop:before{content:"\f04d"}.bk-fa-forward:before{content:"\f04e"}.bk-fa-fast-forward:before{content:"\f050"}.bk-fa-step-forward:before{content:"\f051"}.bk-fa-eject:before{content:"\f052"}.bk-fa-chevron-left:before{content:"\f053"}.bk-fa-chevron-right:before{content:"\f054"}.bk-fa-plus-circle:before{content:"\f055"}.bk-fa-minus-circle:before{content:"\f056"}.bk-fa-times-circle:before{content:"\f057"}.bk-fa-check-circle:before{content:"\f058"}.bk-fa-question-circle:before{content:"\f059"}.bk-fa-info-circle:before{content:"\f05a"}.bk-fa-crosshairs:before{content:"\f05b"}.bk-fa-times-circle-o:before{content:"\f05c"}.bk-fa-check-circle-o:before{content:"\f05d"}.bk-fa-ban:before{content:"\f05e"}.bk-fa-arrow-left:before{content:"\f060"}.bk-fa-arrow-right:before{content:"\f061"}.bk-fa-arrow-up:before{content:"\f062"}.bk-fa-arrow-down:before{content:"\f063"}.bk-fa-mail-forward:before,.bk-fa-share:before{content:"\f064"}.bk-fa-expand:before{content:"\f065"}.bk-fa-compress:before{content:"\f066"}.bk-fa-plus:before{content:"\f067"}.bk-fa-minus:before{content:"\f068"}.bk-fa-asterisk:before{content:"\f069"}.bk-fa-exclamation-circle:before{content:"\f06a"}.bk-fa-gift:before{content:"\f06b"}.bk-fa-leaf:before{content:"\f06c"}.bk-fa-fire:before{content:"\f06d"}.bk-fa-eye:before{content:"\f06e"}.bk-fa-eye-slash:before{content:"\f070"}.bk-fa-warning:before,.bk-fa-exclamation-triangle:before{content:"\f071"}.bk-fa-plane:before{content:"\f072"}.bk-fa-calendar:before{content:"\f073"}.bk-fa-random:before{content:"\f074"}.bk-fa-comment:before{content:"\f075"}.bk-fa-magnet:before{content:"\f076"}.bk-fa-chevron-up:before{content:"\f077"}.bk-fa-chevron-down:before{content:"\f078"}.bk-fa-retweet:before{content:"\f079"}.bk-fa-shopping-cart:before{content:"\f07a"}.bk-fa-folder:before{content:"\f07b"}.bk-fa-folder-open:before{content:"\f07c"}.bk-fa-arrows-v:before{content:"\f07d"}.bk-fa-arrows-h:before{content:"\f07e"}.bk-fa-bar-chart-o:before,.bk-fa-bar-chart:before{content:"\f080"}.bk-fa-twitter-square:before{content:"\f081"}.bk-fa-facebook-square:before{content:"\f082"}.bk-fa-camera-retro:before{content:"\f083"}.bk-fa-key:before{content:"\f084"}.bk-fa-gears:before,.bk-fa-cogs:before{content:"\f085"}.bk-fa-comments:before{content:"\f086"}.bk-fa-thumbs-o-up:before{content:"\f087"}.bk-fa-thumbs-o-down:before{content:"\f088"}.bk-fa-star-half:before{content:"\f089"}.bk-fa-heart-o:before{content:"\f08a"}.bk-fa-sign-out:before{content:"\f08b"}.bk-fa-linkedin-square:before{content:"\f08c"}.bk-fa-thumb-tack:before{content:"\f08d"}.bk-fa-external-link:before{content:"\f08e"}.bk-fa-sign-in:before{content:"\f090"}.bk-fa-trophy:before{content:"\f091"}.bk-fa-github-square:before{content:"\f092"}.bk-fa-upload:before{content:"\f093"}.bk-fa-lemon-o:before{content:"\f094"}.bk-fa-phone:before{content:"\f095"}.bk-fa-square-o:before{content:"\f096"}.bk-fa-bookmark-o:before{content:"\f097"}.bk-fa-phone-square:before{content:"\f098"}.bk-fa-twitter:before{content:"\f099"}.bk-fa-facebook:before{content:"\f09a"}.bk-fa-github:before{content:"\f09b"}.bk-fa-unlock:before{content:"\f09c"}.bk-fa-credit-card:before{content:"\f09d"}.bk-fa-rss:before{content:"\f09e"}.bk-fa-hdd-o:before{content:"\f0a0"}.bk-fa-bullhorn:before{content:"\f0a1"}.bk-fa-bell:before{content:"\f0f3"}.bk-fa-certificate:before{content:"\f0a3"}.bk-fa-hand-o-right:before{content:"\f0a4"}.bk-fa-hand-o-left:before{content:"\f0a5"}.bk-fa-hand-o-up:before{content:"\f0a6"}.bk-fa-hand-o-down:before{content:"\f0a7"}.bk-fa-arrow-circle-left:before{content:"\f0a8"}.bk-fa-arrow-circle-right:before{content:"\f0a9"}.bk-fa-arrow-circle-up:before{content:"\f0aa"}.bk-fa-arrow-circle-down:before{content:"\f0ab"}.bk-fa-globe:before{content:"\f0ac"}.bk-fa-wrench:before{content:"\f0ad"}.bk-fa-tasks:before{content:"\f0ae"}.bk-fa-filter:before{content:"\f0b0"}.bk-fa-briefcase:before{content:"\f0b1"}.bk-fa-arrows-alt:before{content:"\f0b2"}.bk-fa-group:before,.bk-fa-users:before{content:"\f0c0"}.bk-fa-chain:before,.bk-fa-link:before{content:"\f0c1"}.bk-fa-cloud:before{content:"\f0c2"}.bk-fa-flask:before{content:"\f0c3"}.bk-fa-cut:before,.bk-fa-scissors:before{content:"\f0c4"}.bk-fa-copy:before,.bk-fa-files-o:before{content:"\f0c5"}.bk-fa-paperclip:before{content:"\f0c6"}.bk-fa-save:before,.bk-fa-floppy-o:before{content:"\f0c7"}.bk-fa-square:before{content:"\f0c8"}.bk-fa-navicon:before,.bk-fa-reorder:before,.bk-fa-bars:before{content:"\f0c9"}.bk-fa-list-ul:before{content:"\f0ca"}.bk-fa-list-ol:before{content:"\f0cb"}.bk-fa-strikethrough:before{content:"\f0cc"}.bk-fa-underline:before{content:"\f0cd"}.bk-fa-table:before{content:"\f0ce"}.bk-fa-magic:before{content:"\f0d0"}.bk-fa-truck:before{content:"\f0d1"}.bk-fa-pinterest:before{content:"\f0d2"}.bk-fa-pinterest-square:before{content:"\f0d3"}.bk-fa-google-plus-square:before{content:"\f0d4"}.bk-fa-google-plus:before{content:"\f0d5"}.bk-fa-money:before{content:"\f0d6"}.bk-fa-caret-down:before{content:"\f0d7"}.bk-fa-caret-up:before{content:"\f0d8"}.bk-fa-caret-left:before{content:"\f0d9"}.bk-fa-caret-right:before{content:"\f0da"}.bk-fa-columns:before{content:"\f0db"}.bk-fa-unsorted:before,.bk-fa-sort:before{content:"\f0dc"}.bk-fa-sort-down:before,.bk-fa-sort-desc:before{content:"\f0dd"}.bk-fa-sort-up:before,.bk-fa-sort-asc:before{content:"\f0de"}.bk-fa-envelope:before{content:"\f0e0"}.bk-fa-linkedin:before{content:"\f0e1"}.bk-fa-rotate-left:before,.bk-fa-undo:before{content:"\f0e2"}.bk-fa-legal:before,.bk-fa-gavel:before{content:"\f0e3"}.bk-fa-dashboard:before,.bk-fa-tachometer:before{content:"\f0e4"}.bk-fa-comment-o:before{content:"\f0e5"}.bk-fa-comments-o:before{content:"\f0e6"}.bk-fa-flash:before,.bk-fa-bolt:before{content:"\f0e7"}.bk-fa-sitemap:before{content:"\f0e8"}.bk-fa-umbrella:before{content:"\f0e9"}.bk-fa-paste:before,.bk-fa-clipboard:before{content:"\f0ea"}.bk-fa-lightbulb-o:before{content:"\f0eb"}.bk-fa-exchange:before{content:"\f0ec"}.bk-fa-cloud-download:before{content:"\f0ed"}.bk-fa-cloud-upload:before{content:"\f0ee"}.bk-fa-user-md:before{content:"\f0f0"}.bk-fa-stethoscope:before{content:"\f0f1"}.bk-fa-suitcase:before{content:"\f0f2"}.bk-fa-bell-o:before{content:"\f0a2"}.bk-fa-coffee:before{content:"\f0f4"}.bk-fa-cutlery:before{content:"\f0f5"}.bk-fa-file-text-o:before{content:"\f0f6"}.bk-fa-building-o:before{content:"\f0f7"}.bk-fa-hospital-o:before{content:"\f0f8"}.bk-fa-ambulance:before{content:"\f0f9"}.bk-fa-medkit:before{content:"\f0fa"}.bk-fa-fighter-jet:before{content:"\f0fb"}.bk-fa-beer:before{content:"\f0fc"}.bk-fa-h-square:before{content:"\f0fd"}.bk-fa-plus-square:before{content:"\f0fe"}.bk-fa-angle-double-left:before{content:"\f100"}.bk-fa-angle-double-right:before{content:"\f101"}.bk-fa-angle-double-up:before{content:"\f102"}.bk-fa-angle-double-down:before{content:"\f103"}.bk-fa-angle-left:before{content:"\f104"}.bk-fa-angle-right:before{content:"\f105"}.bk-fa-angle-up:before{content:"\f106"}.bk-fa-angle-down:before{content:"\f107"}.bk-fa-desktop:before{content:"\f108"}.bk-fa-laptop:before{content:"\f109"}.bk-fa-tablet:before{content:"\f10a"}.bk-fa-mobile-phone:before,.bk-fa-mobile:before{content:"\f10b"}.bk-fa-circle-o:before{content:"\f10c"}.bk-fa-quote-left:before{content:"\f10d"}.bk-fa-quote-right:before{content:"\f10e"}.bk-fa-spinner:before{content:"\f110"}.bk-fa-circle:before{content:"\f111"}.bk-fa-mail-reply:before,.bk-fa-reply:before{content:"\f112"}.bk-fa-github-alt:before{content:"\f113"}.bk-fa-folder-o:before{content:"\f114"}.bk-fa-folder-open-o:before{content:"\f115"}.bk-fa-smile-o:before{content:"\f118"}.bk-fa-frown-o:before{content:"\f119"}.bk-fa-meh-o:before{content:"\f11a"}.bk-fa-gamepad:before{content:"\f11b"}.bk-fa-keyboard-o:before{content:"\f11c"}.bk-fa-flag-o:before{content:"\f11d"}.bk-fa-flag-checkered:before{content:"\f11e"}.bk-fa-terminal:before{content:"\f120"}.bk-fa-code:before{content:"\f121"}.bk-fa-mail-reply-all:before,.bk-fa-reply-all:before{content:"\f122"}.bk-fa-star-half-empty:before,.bk-fa-star-half-full:before,.bk-fa-star-half-o:before{content:"\f123"}.bk-fa-location-arrow:before{content:"\f124"}.bk-fa-crop:before{content:"\f125"}.bk-fa-code-fork:before{content:"\f126"}.bk-fa-unlink:before,.bk-fa-chain-broken:before{content:"\f127"}.bk-fa-question:before{content:"\f128"}.bk-fa-info:before{content:"\f129"}.bk-fa-exclamation:before{content:"\f12a"}.bk-fa-superscript:before{content:"\f12b"}.bk-fa-subscript:before{content:"\f12c"}.bk-fa-eraser:before{content:"\f12d"}.bk-fa-puzzle-piece:before{content:"\f12e"}.bk-fa-microphone:before{content:"\f130"}.bk-fa-microphone-slash:before{content:"\f131"}.bk-fa-shield:before{content:"\f132"}.bk-fa-calendar-o:before{content:"\f133"}.bk-fa-fire-extinguisher:before{content:"\f134"}.bk-fa-rocket:before{content:"\f135"}.bk-fa-maxcdn:before{content:"\f136"}.bk-fa-chevron-circle-left:before{content:"\f137"}.bk-fa-chevron-circle-right:before{content:"\f138"}.bk-fa-chevron-circle-up:before{content:"\f139"}.bk-fa-chevron-circle-down:before{content:"\f13a"}.bk-fa-html5:before{content:"\f13b"}.bk-fa-css3:before{content:"\f13c"}.bk-fa-anchor:before{content:"\f13d"}.bk-fa-unlock-alt:before{content:"\f13e"}.bk-fa-bullseye:before{content:"\f140"}.bk-fa-ellipsis-h:before{content:"\f141"}.bk-fa-ellipsis-v:before{content:"\f142"}.bk-fa-rss-square:before{content:"\f143"}.bk-fa-play-circle:before{content:"\f144"}.bk-fa-ticket:before{content:"\f145"}.bk-fa-minus-square:before{content:"\f146"}.bk-fa-minus-square-o:before{content:"\f147"}.bk-fa-level-up:before{content:"\f148"}.bk-fa-level-down:before{content:"\f149"}.bk-fa-check-square:before{content:"\f14a"}.bk-fa-pencil-square:before{content:"\f14b"}.bk-fa-external-link-square:before{content:"\f14c"}.bk-fa-share-square:before{content:"\f14d"}.bk-fa-compass:before{content:"\f14e"}.bk-fa-toggle-down:before,.bk-fa-caret-square-o-down:before{content:"\f150"}.bk-fa-toggle-up:before,.bk-fa-caret-square-o-up:before{content:"\f151"}.bk-fa-toggle-right:before,.bk-fa-caret-square-o-right:before{content:"\f152"}.bk-fa-euro:before,.bk-fa-eur:before{content:"\f153"}.bk-fa-gbp:before{content:"\f154"}.bk-fa-dollar:before,.bk-fa-usd:before{content:"\f155"}.bk-fa-rupee:before,.bk-fa-inr:before{content:"\f156"}.bk-fa-cny:before,.bk-fa-rmb:before,.bk-fa-yen:before,.bk-fa-jpy:before{content:"\f157"}.bk-fa-ruble:before,.bk-fa-rouble:before,.bk-fa-rub:before{content:"\f158"}.bk-fa-won:before,.bk-fa-krw:before{content:"\f159"}.bk-fa-bitcoin:before,.bk-fa-btc:before{content:"\f15a"}.bk-fa-file:before{content:"\f15b"}.bk-fa-file-text:before{content:"\f15c"}.bk-fa-sort-alpha-asc:before{content:"\f15d"}.bk-fa-sort-alpha-desc:before{content:"\f15e"}.bk-fa-sort-amount-asc:before{content:"\f160"}.bk-fa-sort-amount-desc:before{content:"\f161"}.bk-fa-sort-numeric-asc:before{content:"\f162"}.bk-fa-sort-numeric-desc:before{content:"\f163"}.bk-fa-thumbs-up:before{content:"\f164"}.bk-fa-thumbs-down:before{content:"\f165"}.bk-fa-youtube-square:before{content:"\f166"}.bk-fa-youtube:before{content:"\f167"}.bk-fa-xing:before{content:"\f168"}.bk-fa-xing-square:before{content:"\f169"}.bk-fa-youtube-play:before{content:"\f16a"}.bk-fa-dropbox:before{content:"\f16b"}.bk-fa-stack-overflow:before{content:"\f16c"}.bk-fa-instagram:before{content:"\f16d"}.bk-fa-flickr:before{content:"\f16e"}.bk-fa-adn:before{content:"\f170"}.bk-fa-bitbucket:before{content:"\f171"}.bk-fa-bitbucket-square:before{content:"\f172"}.bk-fa-tumblr:before{content:"\f173"}.bk-fa-tumblr-square:before{content:"\f174"}.bk-fa-long-arrow-down:before{content:"\f175"}.bk-fa-long-arrow-up:before{content:"\f176"}.bk-fa-long-arrow-left:before{content:"\f177"}.bk-fa-long-arrow-right:before{content:"\f178"}.bk-fa-apple:before{content:"\f179"}.bk-fa-windows:before{content:"\f17a"}.bk-fa-android:before{content:"\f17b"}.bk-fa-linux:before{content:"\f17c"}.bk-fa-dribbble:before{content:"\f17d"}.bk-fa-skype:before{content:"\f17e"}.bk-fa-foursquare:before{content:"\f180"}.bk-fa-trello:before{content:"\f181"}.bk-fa-female:before{content:"\f182"}.bk-fa-male:before{content:"\f183"}.bk-fa-gittip:before{content:"\f184"}.bk-fa-sun-o:before{content:"\f185"}.bk-fa-moon-o:before{content:"\f186"}.bk-fa-archive:before{content:"\f187"}.bk-fa-bug:before{content:"\f188"}.bk-fa-vk:before{content:"\f189"}.bk-fa-weibo:before{content:"\f18a"}.bk-fa-renren:before{content:"\f18b"}.bk-fa-pagelines:before{content:"\f18c"}.bk-fa-stack-exchange:before{content:"\f18d"}.bk-fa-arrow-circle-o-right:before{content:"\f18e"}.bk-fa-arrow-circle-o-left:before{content:"\f190"}.bk-fa-toggle-left:before,.bk-fa-caret-square-o-left:before{content:"\f191"}.bk-fa-dot-circle-o:before{content:"\f192"}.bk-fa-wheelchair:before{content:"\f193"}.bk-fa-vimeo-square:before{content:"\f194"}.bk-fa-turkish-lira:before,.bk-fa-try:before{content:"\f195"}.bk-fa-plus-square-o:before{content:"\f196"}.bk-fa-space-shuttle:before{content:"\f197"}.bk-fa-slack:before{content:"\f198"}.bk-fa-envelope-square:before{content:"\f199"}.bk-fa-wordpress:before{content:"\f19a"}.bk-fa-openid:before{content:"\f19b"}.bk-fa-institution:before,.bk-fa-bank:before,.bk-fa-university:before{content:"\f19c"}.bk-fa-mortar-board:before,.bk-fa-graduation-cap:before{content:"\f19d"}.bk-fa-yahoo:before{content:"\f19e"}.bk-fa-google:before{content:"\f1a0"}.bk-fa-reddit:before{content:"\f1a1"}.bk-fa-reddit-square:before{content:"\f1a2"}.bk-fa-stumbleupon-circle:before{content:"\f1a3"}.bk-fa-stumbleupon:before{content:"\f1a4"}.bk-fa-delicious:before{content:"\f1a5"}.bk-fa-digg:before{content:"\f1a6"}.bk-fa-pied-piper:before{content:"\f1a7"}.bk-fa-pied-piper-alt:before{content:"\f1a8"}.bk-fa-drupal:before{content:"\f1a9"}.bk-fa-joomla:before{content:"\f1aa"}.bk-fa-language:before{content:"\f1ab"}.bk-fa-fax:before{content:"\f1ac"}.bk-fa-building:before{content:"\f1ad"}.bk-fa-child:before{content:"\f1ae"}.bk-fa-paw:before{content:"\f1b0"}.bk-fa-spoon:before{content:"\f1b1"}.bk-fa-cube:before{content:"\f1b2"}.bk-fa-cubes:before{content:"\f1b3"}.bk-fa-behance:before{content:"\f1b4"}.bk-fa-behance-square:before{content:"\f1b5"}.bk-fa-steam:before{content:"\f1b6"}.bk-fa-steam-square:before{content:"\f1b7"}.bk-fa-recycle:before{content:"\f1b8"}.bk-fa-automobile:before,.bk-fa-car:before{content:"\f1b9"}.bk-fa-cab:before,.bk-fa-taxi:before{content:"\f1ba"}.bk-fa-tree:before{content:"\f1bb"}.bk-fa-spotify:before{content:"\f1bc"}.bk-fa-deviantart:before{content:"\f1bd"}.bk-fa-soundcloud:before{content:"\f1be"}.bk-fa-database:before{content:"\f1c0"}.bk-fa-file-pdf-o:before{content:"\f1c1"}.bk-fa-file-word-o:before{content:"\f1c2"}.bk-fa-file-excel-o:before{content:"\f1c3"}.bk-fa-file-powerpoint-o:before{content:"\f1c4"}.bk-fa-file-photo-o:before,.bk-fa-file-picture-o:before,.bk-fa-file-image-o:before{content:"\f1c5"}.bk-fa-file-zip-o:before,.bk-fa-file-archive-o:before{content:"\f1c6"}.bk-fa-file-sound-o:before,.bk-fa-file-audio-o:before{content:"\f1c7"}.bk-fa-file-movie-o:before,.bk-fa-file-video-o:before{content:"\f1c8"}.bk-fa-file-code-o:before{content:"\f1c9"}.bk-fa-vine:before{content:"\f1ca"}.bk-fa-codepen:before{content:"\f1cb"}.bk-fa-jsfiddle:before{content:"\f1cc"}.bk-fa-life-bouy:before,.bk-fa-life-buoy:before,.bk-fa-life-saver:before,.bk-fa-support:before,.bk-fa-life-ring:before{content:"\f1cd"}.bk-fa-circle-o-notch:before{content:"\f1ce"}.bk-fa-ra:before,.bk-fa-rebel:before{content:"\f1d0"}.bk-fa-ge:before,.bk-fa-empire:before{content:"\f1d1"}.bk-fa-git-square:before{content:"\f1d2"}.bk-fa-git:before{content:"\f1d3"}.bk-fa-hacker-news:before{content:"\f1d4"}.bk-fa-tencent-weibo:before{content:"\f1d5"}.bk-fa-qq:before{content:"\f1d6"}.bk-fa-wechat:before,.bk-fa-weixin:before{content:"\f1d7"}.bk-fa-send:before,.bk-fa-paper-plane:before{content:"\f1d8"}.bk-fa-send-o:before,.bk-fa-paper-plane-o:before{content:"\f1d9"}.bk-fa-history:before{content:"\f1da"}.bk-fa-circle-thin:before{content:"\f1db"}.bk-fa-header:before{content:"\f1dc"}.bk-fa-paragraph:before{content:"\f1dd"}.bk-fa-sliders:before{content:"\f1de"}.bk-fa-share-alt:before{content:"\f1e0"}.bk-fa-share-alt-square:before{content:"\f1e1"}.bk-fa-bomb:before{content:"\f1e2"}.bk-fa-soccer-ball-o:before,.bk-fa-futbol-o:before{content:"\f1e3"}.bk-fa-tty:before{content:"\f1e4"}.bk-fa-binoculars:before{content:"\f1e5"}.bk-fa-plug:before{content:"\f1e6"}.bk-fa-slideshare:before{content:"\f1e7"}.bk-fa-twitch:before{content:"\f1e8"}.bk-fa-yelp:before{content:"\f1e9"}.bk-fa-newspaper-o:before{content:"\f1ea"}.bk-fa-wifi:before{content:"\f1eb"}.bk-fa-calculator:before{content:"\f1ec"}.bk-fa-paypal:before{content:"\f1ed"}.bk-fa-google-wallet:before{content:"\f1ee"}.bk-fa-cc-visa:before{content:"\f1f0"}.bk-fa-cc-mastercard:before{content:"\f1f1"}.bk-fa-cc-discover:before{content:"\f1f2"}.bk-fa-cc-amex:before{content:"\f1f3"}.bk-fa-cc-paypal:before{content:"\f1f4"}.bk-fa-cc-stripe:before{content:"\f1f5"}.bk-fa-bell-slash:before{content:"\f1f6"}.bk-fa-bell-slash-o:before{content:"\f1f7"}.bk-fa-trash:before{content:"\f1f8"}.bk-fa-copyright:before{content:"\f1f9"}.bk-fa-at:before{content:"\f1fa"}.bk-fa-eyedropper:before{content:"\f1fb"}.bk-fa-paint-brush:before{content:"\f1fc"}.bk-fa-birthday-cake:before{content:"\f1fd"}.bk-fa-area-chart:before{content:"\f1fe"}.bk-fa-pie-chart:before{content:"\f200"}.bk-fa-line-chart:before{content:"\f201"}.bk-fa-lastfm:before{content:"\f202"}.bk-fa-lastfm-square:before{content:"\f203"}.bk-fa-toggle-off:before{content:"\f204"}.bk-fa-toggle-on:before{content:"\f205"}.bk-fa-bicycle:before{content:"\f206"}.bk-fa-bus:before{content:"\f207"}.bk-fa-ioxhost:before{content:"\f208"}.bk-fa-angellist:before{content:"\f209"}.bk-fa-cc:before{content:"\f20a"}.bk-fa-shekel:before,.bk-fa-sheqel:before,.bk-fa-ils:before{content:"\f20b"}.bk-fa-meanpath:before{content:"\f20c"}/*!
         * jQuery UI CSS Framework 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/category/theming/
         */.bk-ui-helper-hidden{display:none}.bk-ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.bk-ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.bk-ui-helper-clearfix:before,.bk-ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.bk-ui-helper-clearfix:after{clear:both}.bk-ui-helper-clearfix{min-height:0}.bk-ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.bk-ui-front{z-index:100}.bk-ui-state-disabled{cursor:default !important}.bk-ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.bk-ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}/*!
         * jQuery UI Accordion 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/accordion/#theming
         */.bk-ui-accordion .bk-ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;min-height:0;font-size:100%}.bk-ui-accordion .bk-ui-accordion-icons{padding-left:2.2em}.bk-ui-accordion .bk-ui-accordion-icons .bk-ui-accordion-icons{padding-left:2.2em}.bk-ui-accordion .bk-ui-accordion-header .bk-ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.bk-ui-accordion .bk-ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}/*!
         * jQuery UI Autocomplete 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/autocomplete/#theming
         */.bk-ui-autocomplete{position:absolute;top:0;left:0;cursor:default}/*!
         * jQuery UI Button 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/button/#theming
         */.bk-ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.bk-ui-button,.bk-ui-button:link,.bk-ui-button:visited,.bk-ui-button:hover,.bk-ui-button:active{text-decoration:none}.bk-ui-button-icon-only{width:2.2em}button.bk-ui-button-icon-only{width:2.4em}.bk-ui-button-icons-only{width:3.4em}button.bk-ui-button-icons-only{width:3.7em}.bk-ui-button .bk-ui-button-text{display:block;line-height:normal}.bk-ui-button-text-only .bk-ui-button-text{padding:.4em 1em}.bk-ui-button-icon-only .bk-ui-button-text,.bk-ui-button-icons-only .bk-ui-button-text{padding:.4em;text-indent:-9999999px}.bk-ui-button-text-icon-primary .bk-ui-button-text,.bk-ui-button-text-icons .bk-ui-button-text{padding:.4em 1em .4em 2.1em}.bk-ui-button-text-icon-secondary .bk-ui-button-text,.bk-ui-button-text-icons .bk-ui-button-text{padding:.4em 2.1em .4em 1em}.bk-ui-button-text-icons .bk-ui-button-text{padding-left:2.1em;padding-right:2.1em}input.bk-ui-button{padding:.4em 1em}.bk-ui-button-icon-only .bk-ui-icon,.bk-ui-button-text-icon-primary .bk-ui-icon,.bk-ui-button-text-icon-secondary .bk-ui-icon,.bk-ui-button-text-icons .bk-ui-icon,.bk-ui-button-icons-only .bk-ui-icon{position:absolute;top:50%;margin-top:-8px}.bk-ui-button-icon-only .bk-ui-icon{left:50%;margin-left:-8px}.bk-ui-button-text-icon-primary .bk-ui-button-icon-primary,.bk-ui-button-text-icons .bk-ui-button-icon-primary,.bk-ui-button-icons-only .bk-ui-button-icon-primary{left:.5em}.bk-ui-button-text-icon-secondary .bk-ui-button-icon-secondary,.bk-ui-button-text-icons .bk-ui-button-icon-secondary,.bk-ui-button-icons-only .bk-ui-button-icon-secondary{right:.5em}.bk-ui-buttonset{margin-right:7px}.bk-ui-buttonset .bk-ui-button{margin-left:0;margin-right:-.3em}input.bk-ui-button::-moz-focus-inner,button.bk-ui-button::-moz-focus-inner{border:0;padding:0}/*!
         * jQuery UI Datepicker 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/datepicker/#theming
         */.bk-ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.bk-ui-datepicker .bk-ui-datepicker-header{position:relative;padding:.2em 0}.bk-ui-datepicker .bk-ui-datepicker-prev,.bk-ui-datepicker .bk-ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.bk-ui-datepicker .bk-ui-datepicker-prev-hover,.bk-ui-datepicker .bk-ui-datepicker-next-hover{top:1px}.bk-ui-datepicker .bk-ui-datepicker-prev{left:2px}.bk-ui-datepicker .bk-ui-datepicker-next{right:2px}.bk-ui-datepicker .bk-ui-datepicker-prev-hover{left:1px}.bk-ui-datepicker .bk-ui-datepicker-next-hover{right:1px}.bk-ui-datepicker .bk-ui-datepicker-prev span,.bk-ui-datepicker .bk-ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.bk-ui-datepicker .bk-ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.bk-ui-datepicker .bk-ui-datepicker-title select{font-size:1em;margin:1px 0}.bk-ui-datepicker select.bk-ui-datepicker-month,.bk-ui-datepicker select.bk-ui-datepicker-year{width:45%}.bk-ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.bk-ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.bk-ui-datepicker td{border:0;padding:1px}.bk-ui-datepicker td span,.bk-ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.bk-ui-datepicker .bk-ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.bk-ui-datepicker .bk-ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.bk-ui-datepicker .bk-ui-datepicker-buttonpane button.bk-ui-datepicker-current{float:left}.bk-ui-datepicker.bk-ui-datepicker-multi{width:auto}.bk-ui-datepicker-multi .bk-ui-datepicker-group{float:left}.bk-ui-datepicker-multi .bk-ui-datepicker-group table{width:95%;margin:0 auto .4em}.bk-ui-datepicker-multi-2 .bk-ui-datepicker-group{width:50%}.bk-ui-datepicker-multi-3 .bk-ui-datepicker-group{width:33.3%}.bk-ui-datepicker-multi-4 .bk-ui-datepicker-group{width:25%}.bk-ui-datepicker-multi .bk-ui-datepicker-group-last .bk-ui-datepicker-header,.bk-ui-datepicker-multi .bk-ui-datepicker-group-middle .bk-ui-datepicker-header{border-left-width:0}.bk-ui-datepicker-multi .bk-ui-datepicker-buttonpane{clear:left}.bk-ui-datepicker-row-break{clear:both;width:100%;font-size:0}.bk-ui-datepicker-rtl{direction:rtl}.bk-ui-datepicker-rtl .bk-ui-datepicker-prev{right:2px;left:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-next{left:2px;right:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-prev:hover{right:1px;left:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-next:hover{left:1px;right:auto}.bk-ui-datepicker-rtl .bk-ui-datepicker-buttonpane{clear:right}.bk-ui-datepicker-rtl .bk-ui-datepicker-buttonpane button{float:left}.bk-ui-datepicker-rtl .bk-ui-datepicker-buttonpane button.bk-ui-datepicker-current,.bk-ui-datepicker-rtl .bk-ui-datepicker-group{float:right}.bk-ui-datepicker-rtl .bk-ui-datepicker-group-last .bk-ui-datepicker-header,.bk-ui-datepicker-rtl .bk-ui-datepicker-group-middle .bk-ui-datepicker-header{border-right-width:0;border-left-width:1px}/*!
         * jQuery UI Dialog 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/dialog/#theming
         */.bk-ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.bk-ui-dialog .bk-ui-dialog-titlebar{padding:.4em 1em;position:relative}.bk-ui-dialog .bk-ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.bk-ui-dialog .bk-ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.bk-ui-dialog .bk-ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0;overflow:auto}.bk-ui-dialog .bk-ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.bk-ui-dialog .bk-ui-dialog-buttonpane .bk-ui-dialog-buttonset{float:right}.bk-ui-dialog .bk-ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.bk-ui-dialog .bk-ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.bk-ui-draggable .bk-ui-dialog-titlebar{cursor:move}/*!
         * jQuery UI Draggable 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         */.bk-ui-draggable-handle{-ms-touch-action:none;touch-action:none}/*!
         * jQuery UI Menu 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/menu/#theming
         */.bk-ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.bk-ui-menu .bk-ui-menu{position:absolute}.bk-ui-menu .bk-ui-menu-item{position:relative;margin:0;padding:3px 1em 3px .4em;cursor:pointer;min-height:0;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.bk-ui-menu .bk-ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.bk-ui-menu .bk-ui-state-focus,.bk-ui-menu .bk-ui-state-active{margin:-1px}.bk-ui-menu-icons{position:relative}.bk-ui-menu-icons .bk-ui-menu-item{padding-left:2em}.bk-ui-menu .bk-ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.bk-ui-menu .bk-ui-menu-icon{left:auto;right:0}/*!
         * jQuery UI Progressbar 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/progressbar/#theming
         */.bk-ui-progressbar{height:2em;text-align:left;overflow:hidden}.bk-ui-progressbar .bk-ui-progressbar-value{margin:-1px;height:100%}.bk-ui-progressbar .bk-ui-progressbar-overlay{background:url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");height:100%;filter:alpha(opacity=25);opacity:.25}.bk-ui-progressbar-indeterminate .bk-ui-progressbar-value{background-image:none}/*!
         * jQuery UI Resizable 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         */.bk-ui-resizable{position:relative}.bk-ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.bk-ui-resizable-disabled .bk-ui-resizable-handle,.bk-ui-resizable-autohide .bk-ui-resizable-handle{display:none}.bk-ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.bk-ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.bk-ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.bk-ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.bk-ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.bk-ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.bk-ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.bk-ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}/*!
         * jQuery UI Selectable 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         */.bk-ui-selectable{-ms-touch-action:none;touch-action:none}.bk-ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}/*!
         * jQuery UI Selectmenu 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/selectmenu/#theming
         */.bk-ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.bk-ui-selectmenu-menu .bk-ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.bk-ui-selectmenu-menu .bk-ui-menu .bk-ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px .4em;margin:.5em 0 0 0;height:auto;border:0}.bk-ui-selectmenu-open{display:block}.bk-ui-selectmenu-button{display:inline-block;overflow:hidden;position:relative;text-decoration:none;cursor:pointer}.bk-ui-selectmenu-button span.bk-ui-icon{right:.5em;left:auto;margin-top:-8px;position:absolute;top:50%}.bk-ui-selectmenu-button span.bk-ui-selectmenu-text{text-align:left;padding:.4em 2.1em .4em 1em;display:block;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/*!
         * jQuery UI Sortable 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         */.bk-ui-sortable-handle{-ms-touch-action:none;touch-action:none}/*!
         * jQuery UI Slider 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/slider/#theming
         */.bk-ui-slider{position:relative;text-align:left}.bk-ui-slider .bk-ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.bk-ui-slider .bk-ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.bk-ui-slider.bk-ui-state-disabled .bk-ui-slider-handle,.bk-ui-slider.bk-ui-state-disabled .bk-ui-slider-range{filter:inherit}.bk-ui-slider-horizontal{height:.8em}.bk-ui-slider-horizontal .bk-ui-slider-handle{top:-.3em;margin-left:-.6em}.bk-ui-slider-horizontal .bk-ui-slider-range{top:0;height:100%}.bk-ui-slider-horizontal .bk-ui-slider-range-min{left:0}.bk-ui-slider-horizontal .bk-ui-slider-range-max{right:0}.bk-ui-slider-vertical{width:.8em;height:100px}.bk-ui-slider-vertical .bk-ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.bk-ui-slider-vertical .bk-ui-slider-range{left:0;width:100%}.bk-ui-slider-vertical .bk-ui-slider-range-min{bottom:0}.bk-ui-slider-vertical .bk-ui-slider-range-max{top:0}/*!
         * jQuery UI Spinner 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/spinner/#theming
         */.bk-ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.bk-ui-spinner-input{border:0;background:0;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.bk-ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.bk-ui-spinner a.bk-ui-spinner-button{border-top:0;border-bottom:0;border-right:0}.bk-ui-spinner .bk-ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.bk-ui-spinner-up{top:0}.bk-ui-spinner-down{bottom:0}.bk-ui-spinner .bk-ui-icon-triangle-1-s{background-position:-65px -16px}/*!
         * jQuery UI Tabs 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/tabs/#theming
         */.bk-ui-tabs{position:relative;padding:.2em}.bk-ui-tabs .bk-ui-tabs-nav{margin:0;padding:.2em .2em 0}.bk-ui-tabs .bk-ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.bk-ui-tabs .bk-ui-tabs-nav .bk-ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-tabs-active .bk-ui-tabs-anchor,.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-state-disabled .bk-ui-tabs-anchor,.bk-ui-tabs .bk-ui-tabs-nav li.bk-ui-tabs-loading .bk-ui-tabs-anchor{cursor:text}.bk-ui-tabs-collapsible .bk-ui-tabs-nav li.bk-ui-tabs-active .bk-ui-tabs-anchor{cursor:pointer}.bk-ui-tabs .bk-ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0}/*!
         * jQuery UI Tooltip 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/tooltip/#theming
         */.bk-ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .bk-ui-tooltip{border-width:2px}/*!
         * jQuery UI CSS Framework 1.11.2
         * http://jqueryui.com
         *
         * Copyright 2014 jQuery Foundation and other contributors
         * Released under the MIT license.
         * http://jquery.org/license
         *
         * http://api.jqueryui.com/category/theming/
         *
         * To view and modify this theme, visit http://jqueryui.com/themeroller/
         */.bk-ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.bk-ui-widget .bk-ui-widget{font-size:1em}.bk-ui-widget input,.bk-ui-widget select,.bk-ui-widget textarea,.bk-ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.bk-ui-widget-content{border:1px solid #aaa;background:#fff url("images/ui-bg_flat_75_ffffff_40x100.png") 50% 50% repeat-x;color:#222}.bk-ui-widget-content a{color:#222}.bk-ui-widget-header{border:1px solid #aaa;background:#ccc url("images/ui-bg_highlight-soft_75_cccccc_1x100.png") 50% 50% repeat-x;color:#222;font-weight:bold}.bk-ui-widget-header a{color:#222}.bk-ui-state-default,.bk-ui-widget-content .bk-ui-state-default,.bk-ui-widget-header .bk-ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url("images/ui-bg_glass_75_e6e6e6_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#555}.bk-ui-state-default a,.bk-ui-state-default a:link,.bk-ui-state-default a:visited{color:#555;text-decoration:none}.bk-ui-state-hover,.bk-ui-widget-content .bk-ui-state-hover,.bk-ui-widget-header .bk-ui-state-hover,.bk-ui-state-focus,.bk-ui-widget-content .bk-ui-state-focus,.bk-ui-widget-header .bk-ui-state-focus{border:1px solid #999;background:#dadada url("images/ui-bg_glass_75_dadada_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#212121}.bk-ui-state-hover a,.bk-ui-state-hover a:hover,.bk-ui-state-hover a:link,.bk-ui-state-hover a:visited,.bk-ui-state-focus a,.bk-ui-state-focus a:hover,.bk-ui-state-focus a:link,.bk-ui-state-focus a:visited{color:#212121;text-decoration:none}.bk-ui-state-active,.bk-ui-widget-content .bk-ui-state-active,.bk-ui-widget-header .bk-ui-state-active{border:1px solid #aaa;background:#fff url("images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#212121}.bk-ui-state-active a,.bk-ui-state-active a:link,.bk-ui-state-active a:visited{color:#212121;text-decoration:none}.bk-ui-state-highlight,.bk-ui-widget-content .bk-ui-state-highlight,.bk-ui-widget-header .bk-ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url("images/ui-bg_glass_55_fbf9ee_1x400.png") 50% 50% repeat-x;color:#363636}.bk-ui-state-highlight a,.bk-ui-widget-content .bk-ui-state-highlight a,.bk-ui-widget-header .bk-ui-state-highlight a{color:#363636}.bk-ui-state-error,.bk-ui-widget-content .bk-ui-state-error,.bk-ui-widget-header .bk-ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url("images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x;color:#cd0a0a}.bk-ui-state-error a,.bk-ui-widget-content .bk-ui-state-error a,.bk-ui-widget-header .bk-ui-state-error a{color:#cd0a0a}.bk-ui-state-error-text,.bk-ui-widget-content .bk-ui-state-error-text,.bk-ui-widget-header .bk-ui-state-error-text{color:#cd0a0a}.bk-ui-priority-primary,.bk-ui-widget-content .bk-ui-priority-primary,.bk-ui-widget-header .bk-ui-priority-primary{font-weight:bold}.bk-ui-priority-secondary,.bk-ui-widget-content .bk-ui-priority-secondary,.bk-ui-widget-header .bk-ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.bk-ui-state-disabled,.bk-ui-widget-content .bk-ui-state-disabled,.bk-ui-widget-header .bk-ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.bk-ui-state-disabled .bk-ui-icon{filter:Alpha(Opacity=35)}.bk-ui-icon{width:16px;height:16px}.bk-ui-icon,.bk-ui-widget-content .bk-ui-icon{background-image:url("images/ui-icons_222222_256x240.png")}.bk-ui-widget-header .bk-ui-icon{background-image:url("images/ui-icons_222222_256x240.png")}.bk-ui-state-default .bk-ui-icon{background-image:url("images/ui-icons_888888_256x240.png")}.bk-ui-state-hover .bk-ui-icon,.bk-ui-state-focus .bk-ui-icon{background-image:url("images/ui-icons_454545_256x240.png")}.bk-ui-state-active .bk-ui-icon{background-image:url("images/ui-icons_454545_256x240.png")}.bk-ui-state-highlight .bk-ui-icon{background-image:url("images/ui-icons_2e83ff_256x240.png")}.bk-ui-state-error .bk-ui-icon,.bk-ui-state-error-text .bk-ui-icon{background-image:url("images/ui-icons_cd0a0a_256x240.png")}.bk-ui-icon-blank{background-position:16px 16px}.bk-ui-icon-carat-1-n{background-position:0 0}.bk-ui-icon-carat-1-ne{background-position:-16px 0}.bk-ui-icon-carat-1-e{background-position:-32px 0}.bk-ui-icon-carat-1-se{background-position:-48px 0}.bk-ui-icon-carat-1-s{background-position:-64px 0}.bk-ui-icon-carat-1-sw{background-position:-80px 0}.bk-ui-icon-carat-1-w{background-position:-96px 0}.bk-ui-icon-carat-1-nw{background-position:-112px 0}.bk-ui-icon-carat-2-n-s{background-position:-128px 0}.bk-ui-icon-carat-2-e-w{background-position:-144px 0}.bk-ui-icon-triangle-1-n{background-position:0 -16px}.bk-ui-icon-triangle-1-ne{background-position:-16px -16px}.bk-ui-icon-triangle-1-e{background-position:-32px -16px}.bk-ui-icon-triangle-1-se{background-position:-48px -16px}.bk-ui-icon-triangle-1-s{background-position:-64px -16px}.bk-ui-icon-triangle-1-sw{background-position:-80px -16px}.bk-ui-icon-triangle-1-w{background-position:-96px -16px}.bk-ui-icon-triangle-1-nw{background-position:-112px -16px}.bk-ui-icon-triangle-2-n-s{background-position:-128px -16px}.bk-ui-icon-triangle-2-e-w{background-position:-144px -16px}.bk-ui-icon-arrow-1-n{background-position:0 -32px}.bk-ui-icon-arrow-1-ne{background-position:-16px -32px}.bk-ui-icon-arrow-1-e{background-position:-32px -32px}.bk-ui-icon-arrow-1-se{background-position:-48px -32px}.bk-ui-icon-arrow-1-s{background-position:-64px -32px}.bk-ui-icon-arrow-1-sw{background-position:-80px -32px}.bk-ui-icon-arrow-1-w{background-position:-96px -32px}.bk-ui-icon-arrow-1-nw{background-position:-112px -32px}.bk-ui-icon-arrow-2-n-s{background-position:-128px -32px}.bk-ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.bk-ui-icon-arrow-2-e-w{background-position:-160px -32px}.bk-ui-icon-arrow-2-se-nw{background-position:-176px -32px}.bk-ui-icon-arrowstop-1-n{background-position:-192px -32px}.bk-ui-icon-arrowstop-1-e{background-position:-208px -32px}.bk-ui-icon-arrowstop-1-s{background-position:-224px -32px}.bk-ui-icon-arrowstop-1-w{background-position:-240px -32px}.bk-ui-icon-arrowthick-1-n{background-position:0 -48px}.bk-ui-icon-arrowthick-1-ne{background-position:-16px -48px}.bk-ui-icon-arrowthick-1-e{background-position:-32px -48px}.bk-ui-icon-arrowthick-1-se{background-position:-48px -48px}.bk-ui-icon-arrowthick-1-s{background-position:-64px -48px}.bk-ui-icon-arrowthick-1-sw{background-position:-80px -48px}.bk-ui-icon-arrowthick-1-w{background-position:-96px -48px}.bk-ui-icon-arrowthick-1-nw{background-position:-112px -48px}.bk-ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.bk-ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.bk-ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.bk-ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.bk-ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.bk-ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.bk-ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.bk-ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.bk-ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.bk-ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.bk-ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.bk-ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.bk-ui-icon-arrowreturn-1-w{background-position:-64px -64px}.bk-ui-icon-arrowreturn-1-n{background-position:-80px -64px}.bk-ui-icon-arrowreturn-1-e{background-position:-96px -64px}.bk-ui-icon-arrowreturn-1-s{background-position:-112px -64px}.bk-ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.bk-ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.bk-ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.bk-ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.bk-ui-icon-arrow-4{background-position:0 -80px}.bk-ui-icon-arrow-4-diag{background-position:-16px -80px}.bk-ui-icon-extlink{background-position:-32px -80px}.bk-ui-icon-newwin{background-position:-48px -80px}.bk-ui-icon-refresh{background-position:-64px -80px}.bk-ui-icon-shuffle{background-position:-80px -80px}.bk-ui-icon-transfer-e-w{background-position:-96px -80px}.bk-ui-icon-transferthick-e-w{background-position:-112px -80px}.bk-ui-icon-folder-collapsed{background-position:0 -96px}.bk-ui-icon-folder-open{background-position:-16px -96px}.bk-ui-icon-document{background-position:-32px -96px}.bk-ui-icon-document-b{background-position:-48px -96px}.bk-ui-icon-note{background-position:-64px -96px}.bk-ui-icon-mail-closed{background-position:-80px -96px}.bk-ui-icon-mail-open{background-position:-96px -96px}.bk-ui-icon-suitcase{background-position:-112px -96px}.bk-ui-icon-comment{background-position:-128px -96px}.bk-ui-icon-person{background-position:-144px -96px}.bk-ui-icon-print{background-position:-160px -96px}.bk-ui-icon-trash{background-position:-176px -96px}.bk-ui-icon-locked{background-position:-192px -96px}.bk-ui-icon-unlocked{background-position:-208px -96px}.bk-ui-icon-bookmark{background-position:-224px -96px}.bk-ui-icon-tag{background-position:-240px -96px}.bk-ui-icon-home{background-position:0 -112px}.bk-ui-icon-flag{background-position:-16px -112px}.bk-ui-icon-calendar{background-position:-32px -112px}.bk-ui-icon-cart{background-position:-48px -112px}.bk-ui-icon-pencil{background-position:-64px -112px}.bk-ui-icon-clock{background-position:-80px -112px}.bk-ui-icon-disk{background-position:-96px -112px}.bk-ui-icon-calculator{background-position:-112px -112px}.bk-ui-icon-zoomin{background-position:-128px -112px}.bk-ui-icon-zoomout{background-position:-144px -112px}.bk-ui-icon-search{background-position:-160px -112px}.bk-ui-icon-wrench{background-position:-176px -112px}.bk-ui-icon-gear{background-position:-192px -112px}.bk-ui-icon-heart{background-position:-208px -112px}.bk-ui-icon-star{background-position:-224px -112px}.bk-ui-icon-link{background-position:-240px -112px}.bk-ui-icon-cancel{background-position:0 -128px}.bk-ui-icon-plus{background-position:-16px -128px}.bk-ui-icon-plusthick{background-position:-32px -128px}.bk-ui-icon-minus{background-position:-48px -128px}.bk-ui-icon-minusthick{background-position:-64px -128px}.bk-ui-icon-close{background-position:-80px -128px}.bk-ui-icon-closethick{background-position:-96px -128px}.bk-ui-icon-key{background-position:-112px -128px}.bk-ui-icon-lightbulb{background-position:-128px -128px}.bk-ui-icon-scissors{background-position:-144px -128px}.bk-ui-icon-clipboard{background-position:-160px -128px}.bk-ui-icon-copy{background-position:-176px -128px}.bk-ui-icon-contact{background-position:-192px -128px}.bk-ui-icon-image{background-position:-208px -128px}.bk-ui-icon-video{background-position:-224px -128px}.bk-ui-icon-script{background-position:-240px -128px}.bk-ui-icon-alert{background-position:0 -144px}.bk-ui-icon-info{background-position:-16px -144px}.bk-ui-icon-notice{background-position:-32px -144px}.bk-ui-icon-help{background-position:-48px -144px}.bk-ui-icon-check{background-position:-64px -144px}.bk-ui-icon-bullet{background-position:-80px -144px}.bk-ui-icon-radio-on{background-position:-96px -144px}.bk-ui-icon-radio-off{background-position:-112px -144px}.bk-ui-icon-pin-w{background-position:-128px -144px}.bk-ui-icon-pin-s{background-position:-144px -144px}.bk-ui-icon-play{background-position:0 -160px}.bk-ui-icon-pause{background-position:-16px -160px}.bk-ui-icon-seek-next{background-position:-32px -160px}.bk-ui-icon-seek-prev{background-position:-48px -160px}.bk-ui-icon-seek-end{background-position:-64px -160px}.bk-ui-icon-seek-start{background-position:-80px -160px}.bk-ui-icon-seek-first{background-position:-80px -160px}.bk-ui-icon-stop{background-position:-96px -160px}.bk-ui-icon-eject{background-position:-112px -160px}.bk-ui-icon-volume-off{background-position:-128px -160px}.bk-ui-icon-volume-on{background-position:-144px -160px}.bk-ui-icon-power{background-position:0 -176px}.bk-ui-icon-signal-diag{background-position:-16px -176px}.bk-ui-icon-signal{background-position:-32px -176px}.bk-ui-icon-battery-0{background-position:-48px -176px}.bk-ui-icon-battery-1{background-position:-64px -176px}.bk-ui-icon-battery-2{background-position:-80px -176px}.bk-ui-icon-battery-3{background-position:-96px -176px}.bk-ui-icon-circle-plus{background-position:0 -192px}.bk-ui-icon-circle-minus{background-position:-16px -192px}.bk-ui-icon-circle-close{background-position:-32px -192px}.bk-ui-icon-circle-triangle-e{background-position:-48px -192px}.bk-ui-icon-circle-triangle-s{background-position:-64px -192px}.bk-ui-icon-circle-triangle-w{background-position:-80px -192px}.bk-ui-icon-circle-triangle-n{background-position:-96px -192px}.bk-ui-icon-circle-arrow-e{background-position:-112px -192px}.bk-ui-icon-circle-arrow-s{background-position:-128px -192px}.bk-ui-icon-circle-arrow-w{background-position:-144px -192px}.bk-ui-icon-circle-arrow-n{background-position:-160px -192px}.bk-ui-icon-circle-zoomin{background-position:-176px -192px}.bk-ui-icon-circle-zoomout{background-position:-192px -192px}.bk-ui-icon-circle-check{background-position:-208px -192px}.bk-ui-icon-circlesmall-plus{background-position:0 -208px}.bk-ui-icon-circlesmall-minus{background-position:-16px -208px}.bk-ui-icon-circlesmall-close{background-position:-32px -208px}.bk-ui-icon-squaresmall-plus{background-position:-48px -208px}.bk-ui-icon-squaresmall-minus{background-position:-64px -208px}.bk-ui-icon-squaresmall-close{background-position:-80px -208px}.bk-ui-icon-grip-dotted-vertical{background-position:0 -224px}.bk-ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.bk-ui-icon-grip-solid-vertical{background-position:-32px -224px}.bk-ui-icon-grip-solid-horizontal{background-position:-48px -224px}.bk-ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.bk-ui-icon-grip-diagonal-se{background-position:-80px -224px}.bk-ui-corner-all,.bk-ui-corner-top,.bk-ui-corner-left,.bk-ui-corner-tl{border-top-left-radius:4px}.bk-ui-corner-all,.bk-ui-corner-top,.bk-ui-corner-right,.bk-ui-corner-tr{border-top-right-radius:4px}.bk-ui-corner-all,.bk-ui-corner-bottom,.bk-ui-corner-left,.bk-ui-corner-bl{border-bottom-left-radius:4px}.bk-ui-corner-all,.bk-ui-corner-bottom,.bk-ui-corner-right,.bk-ui-corner-br{border-bottom-right-radius:4px}.bk-ui-widget-overlay{background:#aaa url("images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.bk-ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url("images/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}.bk-slick-header.bk-ui-state-default,.bk-slick-headerrow.bk-ui-state-default{width:100%;overflow:hidden;border-left:0}.bk-slick-header-columns,.bk-slick-headerrow-columns{position:relative;white-space:nowrap;cursor:default;overflow:hidden}.bk-slick-header-column.bk-ui-state-default{position:relative;display:inline-block;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;height:16px;line-height:16px;margin:0;padding:4px;border-right:1px solid silver;border-left:0;border-top:0;border-bottom:0;float:left}.bk-slick-headerrow-column.bk-ui-state-default{padding:4px}.bk-slick-header-column-sorted{font-style:italic}.bk-slick-sort-indicator{display:inline-block;width:8px;height:5px;margin-left:4px;margin-top:6px;float:left}.bk-slick-sort-indicator-desc{background:url(images/sort-desc.gif)}.bk-slick-sort-indicator-asc{background:url(images/sort-asc.gif)}.bk-slick-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:col-resize;width:4px;right:0;top:0;height:100%}.bk-slick-sortable-placeholder{background:silver}.grid-canvas{position:relative;outline:0}.bk-slick-row.bk-ui-widget-content,.bk-slick-row.bk-ui-state-active{position:absolute;border:0;width:100%}.bk-slick-cell,.bk-slick-headerrow-column{position:absolute;border:1px solid transparent;border-right:1px dotted silver;border-bottom-color:silver;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle;z-index:1;padding:1px 2px 2px 1px;margin:0;white-space:nowrap;cursor:default}.bk-slick-group-toggle{display:inline-block}.bk-slick-cell.highlighted{background:lightskyblue;background:rgba(0,0,255,0.2);-webkit-transition:all .5s;-moz-transition:all .5s;-o-transition:all .5s;transition:all .5s}.bk-slick-cell.flashing{border:1px solid red !important}.bk-slick-cell.editable{z-index:11;overflow:visible;background:white;border-color:black;border-style:solid}.bk-slick-cell:focus{outline:0}.bk-slick-reorder-proxy{display:inline-block;background:blue;opacity:.15;filter:alpha(opacity = 15);cursor:move}.bk-slick-reorder-guide{display:inline-block;height:2px;background:blue;opacity:.7;filter:alpha(opacity = 70)}.bk-slick-selection{z-index:10;position:absolute;border:2px dashed black}.bk-slick-header-columns{background:url('images/header-columns-bg.gif') repeat-x center bottom;border-bottom:1px solid silver}.bk-slick-header-column{background:url('images/header-columns-bg.gif') repeat-x center bottom;border-right:1px solid silver}.bk-slick-header-column:hover,.bk-slick-header-column-active{background:white url('images/header-columns-over-bg.gif') repeat-x center bottom}.bk-slick-headerrow{background:#fafafa}.bk-slick-headerrow-column{background:#fafafa;border-bottom:0;height:100%}.bk-slick-row.bk-ui-state-active{background:#f5f7d7}.bk-slick-row{position:absolute;background:white;border:0;line-height:20px}.bk-slick-row.selected{z-index:10;background:#dfe8f6}.bk-slick-cell{padding-left:4px;padding-right:4px}.bk-slick-group{border-bottom:2px solid silver}.bk-slick-group-toggle{width:9px;height:9px;margin-right:5px}.bk-slick-group-toggle.expanded{background:url(images/collapse.gif) no-repeat center center}.bk-slick-group-toggle.collapsed{background:url(images/expand.gif) no-repeat center center}.bk-slick-group-totals{color:gray;background:white}.bk-slick-cell.selected{background-color:beige}.bk-slick-cell.active{border-color:gray;border-style:solid}.bk-slick-sortable-placeholder{background:silver !important}.bk-slick-row.odd{background:#fafafa}.bk-slick-row.bk-ui-state-active{background:#f5f7d7}.bk-slick-row.loading{opacity:.5;filter:alpha(opacity = 50)}.bk-slick-cell.invalid{border-color:red;-moz-animation-duration:.2s;-webkit-animation-duration:.2s;-moz-animation-name:slickgrid-invalid-hilite;-webkit-animation-name:slickgrid-invalid-hilite}@-moz-keyframes slickgrid-invalid-hilite{from{box-shadow:0 0 6px red}to{box-shadow:none}}@-webkit-keyframes slickgrid-invalid-hilite{from{box-shadow:0 0 6px red}to{box-shadow:none}}.bk-slick-column-name,.bk-slick-sort-indicator{display:inline-block;float:left;margin-bottom:100px}.bk-slick-header-button{display:inline-block;float:right;vertical-align:top;margin:1px;margin-bottom:100px;height:15px;width:15px;background-repeat:no-repeat;background-position:center center;cursor:pointer}.bk-slick-header-button-hidden{width:0;-webkit-transition:.2s width;-ms-transition:.2s width;transition:.2s width}.bk-slick-header-column:hover&gt;.bk-slick-header-button{width:15px}.bk-slick-header-menubutton{position:absolute;right:0;top:0;bottom:0;width:14px;background-repeat:no-repeat;background-position:left center;background-image:url(../images/down.gif);cursor:pointer;display:none;border-left:thin ridge silver}.bk-slick-header-column:hover&gt;.bk-slick-header-menubutton,.bk-slick-header-column-active .bk-slick-header-menubutton{display:inline-block}.bk-slick-header-menu{position:absolute;display:inline-block;margin:0;padding:2px;cursor:default}.bk-slick-header-menuitem{list-style:none;margin:0;padding:0;cursor:pointer}.bk-slick-header-menuicon{display:inline-block;width:16px;height:16px;vertical-align:middle;margin-right:4px;background-repeat:no-repeat;background-position:center center}.bk-slick-header-menucontent{display:inline-block;vertical-align:middle}.bk-slick-header-menuitem-disabled{color:silver}.bk-slick-columnpicker{border:1px solid #718bb7;background:#f0f0f0;padding:6px;-moz-box-shadow:2px 2px 2px silver;-webkit-box-shadow:2px 2px 2px silver;box-shadow:2px 2px 2px silver;min-width:100px;cursor:default}.bk-slick-columnpicker li{list-style:none;margin:0;padding:0;background:0}.bk-slick-columnpicker input{margin:4px}.bk-slick-columnpicker li a{display:block;padding:4px;font-weight:bold}.bk-slick-columnpicker li a:hover{background:white}.bk-slick-pager{width:100%;height:26px;border:1px solid gray;border-top:0;background:url('../images/header-columns-bg.gif') repeat-x center bottom;vertical-align:middle}.bk-slick-pager .bk-slick-pager-status{display:inline-block;padding:6px}.bk-slick-pager .bk-ui-icon-container{display:inline-block;margin:2px;border-color:gray}.bk-slick-pager .bk-slick-pager-nav{display:inline-block;float:left;padding:2px}.bk-slick-pager .bk-slick-pager-settings{display:block;float:right;padding:2px}.bk-slick-pager .bk-slick-pager-settings *{vertical-align:middle}.bk-slick-pager .bk-slick-pager-settings a{padding:2px;text-decoration:underline;cursor:pointer}.bk-ui-rangeSlider{height:22px}.bk-ui-rangeSlider .bk-ui-rangeSlider-innerBar{height:16px;margin:3px 6px;background:#DDD}.bk-ui-rangeSlider .bk-ui-rangeSlider-handle{width:6px;height:22px;background:#AAA;background:rgba(100,100,100,0.3);cursor:col-resize}.bk-ui-rangeSlider .bk-ui-rangeSlider-bar{margin:1px 0;background:#CCC;background:rgba(100,100,150,0.2);height:20px;cursor:move;cursor:grab;cursor:-moz-grab}.bk-ui-rangeSlider .bk-ui-rangeSlider-bar.bk-ui-draggable-dragging{cursor:-moz-grabbing;cursor:grabbing}.bk-ui-rangeSlider-arrow{height:16px;margin:2px 0;width:16px;background-repeat:no-repeat}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-leftArrow{background-image:url('icons-classic/resultset_previous.png');background-position:center left}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-rightArrow{background-image:url('icons-classic/resultset_next.png');background-position:center right}.bk-ui-rangeSlider-arrow-inner{display:none}.bk-ui-rangeSlider-container{height:22px}.bk-ui-rangeSlider-withArrows .bk-ui-rangeSlider-container{margin:0 11px}.bk-ui-rangeSlider-noArrow .bk-ui-rangeSlider-container{margin:0}.bk-ui-rangeSlider-label{margin:0 2px 2px;background-image:url('icons-classic/label.png');background-position:bottom center;background-repeat:no-repeat;white-space:nowrap;bottom:20px;padding:3px 6px 7px;cursor:col-resize}.bk-ui-rangeSlider-label-inner{display:none}input.bk-ui-editRangeSlider-inputValue{width:3em;vertical-align:middle;text-align:center}.bk-ui-dialog-titlebar{height:16px}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-leftArrow{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAPpJREFUeNrE0zFqhVAUBFCL7ElEEBQsXmErWtnZWImF2Gih6FNEfKCoBGMMUQhEULKjrCF1JjsI+j8kxbSnuDOXA8DdE+5PgLIsM0rp100ApTRL0/Q7DENcBpIkqfq+x3Ec8DzvGhBF0VPTNNj3Hdu2wbbt80AQBK+MMez7jnmesa4rTNM8B/i+/1mWJbZtwziOYIxhmiZomnYOcBznI45jLMuCtm2R5zm6rgMh5BxgGMaDruvvrutiGAZkWYa6rqGq6rUjEkLebNtGVVUoigKyLF+vUVGUF8uykCQJJEnCTUMSRfHZMAyIooibp8zz/KMgCPi/Z/otPwMAtKTYr7dLeeEAAAAASUVORK5CYII=")}.bk-ui-rangeSlider-arrow.bk-ui-rangeSlider-rightArrow{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAPlJREFUeNrE0ztqhlAUBOC/yLoUfKBga2WpKBYKgp21+ncRuYrPK0FtxBRCQCwsXEvWkDqTLagJpJj2K+aceQB4/CaPPwcopV9t2z5vA13XoWmab0LI8xZQliWO48AwDAjD8PUykCQJ9n3Htm3Isgye53WXgDiOsa4r5nnGsiyIogiapo2ngSAIsCwL2rYFpRTjOML3fSiK8nkKcF0X0zSBEII8z0EpheM4kGX54xSg6zr6vkeapqiqCrZtQxTFd5ZlX04BqqqirmsURQHLsiAIwnSpREVRQAiBaZrgOK6/fEZJkmAYBliWfbv1SDzPg2GY5v/GdDU/AwDyYNzeUSg0WgAAAABJRU5ErkJggg==")}.bk-ui-rangeSlider-label{background-image:url("data:image/png;base64,[encoded data, 12460 characters]")}.bk-slick-sort-indicator-desc{background-image:url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgeAAUAGEgQgIAACBEKLHgwYcKFBh1KFNhQosOKEgMCADs=")}.bk-slick-sort-indicator-asc{background-image:url("data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgbAAMIDABgoEGDABIeRJhQ4cKGEA8KmEiRosGAADs=")}.bk-slick-header-columns{background-image:url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=")}.bk-slick-header-column{background-image:url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=")}.bk-slick-header-column:hover,.bk-slick-header-column-active{background-image:url("data:image/gif;base64,R0lGODlhAgAWAIcAAKrM9tno++vz/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABYAAAgUAAUIHEiwoIAACBMqXMhwIQAAAQEAOw==")}.bk-slick-group-toggle.expanded{background-image:url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIMwADCBxIUIDBgwIEChgwwECBAgQUFjBAkaJCABgxGlB4AGHCAAIQiBypEEECkScJqgwQEAA7")}.bk-slick-group-toggle.collapsed{background-image:url("data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIOAADCBxIUIDBgwIEChgwAECBAgQUFjAAQIABAwoBaNSIMYCAAwIqGlSIAEHFkiQTIBCgkqDLAAEBADs=")}.bk-slick-header-menubutton{background-image:url("data:image/gif;base64,R0lGODlhDgAOAIABADtKYwAAACH5BAEAAAEALAAAAAAOAA4AAAISjI+py+0PHZgUsGobhTn6DxoFADs=")}.bk-slick-pager{background-image:url("data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=")}.bk-ui-widget-content{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAeUlEQVRoge3OMQHAIBAAsVL/nh8JDDfAkCjImpn5HvbfDpwIVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVoKVYCVYCVaClWAlWAlWgpVgJVgJVhtqiwTEKTLXTgAAAABJRU5ErkJggg==")}.bk-ui-widget-header{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAYAAABHLFpgAAAALElEQVQYlWN49OjRfyYGBgaGIUT8//8fSqBx0Yh///4RL8vAwAAVQ2MNOwIAl6g6KkOJwk8AAAAASUVORK5CYII=")}.bk-ui-state-default,.bk-ui-widget-content .bk-ui-state-default,.bk-ui-widget-header .bk-ui-state-default{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAANUlEQVQ4je3LMQoAIBADwb38/6t5wFXaWAiCtUiaYZvF9hBACOFbuntVVe11B0CSjjeE8BwThQIJ8dhEl0YAAAAASUVORK5CYII=")}.bk-ui-state-hover,.bk-ui-widget-content .bk-ui-state-hover,.bk-ui-widget-header .bk-ui-state-hover,.bk-ui-state-focus,.bk-ui-widget-content .bk-ui-state-focus,.bk-ui-widget-header .bk-ui-state-focus{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAANklEQVQ4jWN48uTJfyYGBgaGUWKUGCWGLfHt2zcoi5GREYNgYmJCZiG42IiB98woMUqMEtgIAMdjCdyg+eEBAAAAAElFTkSuQmCC")}.bk-ui-state-active,.bk-ui-widget-content .bk-ui-state-active,.bk-ui-widget-header .bk-ui-state-active{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAMElEQVQ4je3LIQ4AIBTD0O3f/8wrFgmKhMy8pKJKwkhSKeVbbGuAPU9f4PIopTxgAeS0DRtI4yK0AAAAAElFTkSuQmCC")}.bk-ui-state-highlight,.bk-ui-widget-content .bk-ui-state-highlight,.bk-ui-widget-header .bk-ui-state-highlight{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAP0lEQVQ4je3PMQrAMABC0a/3v2zX0mCXNkOgc6C4PARd5DqPGKCU8luS8SbAQhiCQRgJE56kZTfbbP9RSvnkBsWcEAZRWcgqAAAAAElFTkSuQmCC")}.bk-ui-state-error,.bk-ui-widget-content .bk-ui-state-error,.bk-ui-widget-header .bk-ui-state-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQCAYAAABvWArbAAAAPklEQVQ4je3PMQqAMABD0Z/c/7aCIAXjJIhD10LJ8vgZw30eMUApZV/GhZNgSTjoLYElY/hNMJ/S6gullCkPiCIPCr4NiEwAAAAASUVORK5CYII=")}.bk-ui-icon,.bk-ui-widget-content .bk-ui-icon,.bk-ui-widget-header .bk-ui-icon{background-image:url("data:image/png;base64,[encoded data, 5828 characters]")}.bk-ui-state-default .bk-ui-icon{background-image:url("data:image/png;base64,[encoded data, 5828 characters]")}.bk-ui-state-hover .bk-ui-icon,.bk-ui-state-focus .bk-ui-icon,.bk-ui-state-active .bk-ui-icon{background-image:url("data:image/png;base64,[encoded data, 5828 characters]")}.bk-ui-state-highlight .bk-ui-icon{background-image:url("data:image/png;base64,[encoded data, 5828 characters]")}.bk-ui-state-error .bk-ui-icon,.bk-ui-state-error-text .bk-ui-icon{background-image:url("data:image/png;base64,[encoded data, 5828 characters]")}.bk-ui-widget-overlay,.bk-ui-widget-shadow{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAe0lEQVRoge3OMQHAIBAAMcC/kjdZJHTI0A4XBdkz86wfO18H3hRUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUBVVBVVAVVAVVQVVQFVQFVUFVUBVUF8O8A8WdY6opAAAAAElFTkSuQmCC")}.tableelem{padding:2px 10px;border:2px white;background-color:#e0e0e0}.tableheader{background-color:silver}#notebook .bk-plot-wrapper table{border:none !important}#notebook .bk-plot-wrapper table tr{border:none !important}#notebook .bk-plot-wrapper table tr td{border:none !important;padding:0 !important;margin:0 !important}#notebook .bk-plot-wrapper table tr td.bk-plot-above{border-bottom:2px solid #efefef !important}#notebook .bk-plot-wrapper table tr td.bk-plot-below{border-top:2px solid #efefef !important}#notebook .bk-plot-wrapper table tr td.bk-plot-left{border-right:2px solid #efefef !important}#notebook .bk-plot-wrapper table tr td.bk-plot-right{border-left:2px solid #efefef !important}.bk-table table tr td{padding:2px}.bk-table form table tr td{padding:2px}.bk-table form table tr td input{padding:0}.jsp:after,.bk-plot:after,.bk-canvas-wrapper:after,.bk-sidebar:after,.bk-box:after{content:" ";height:0;display:block;clear:both}.bk-canvas-wrapper .bk-resize-popup{position:absolute;left:0;top:0;width:40px;height:40px;overflow:hidden;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAEnSURBVEiJzZXBioQwDIb/XQuF6U3wCRSEvv8zeFOoB2++QD14aqHSOntYtthxdHesDptTk4Z+hKR/PqqquuNi+7wa8DYIWTplWSJN0yDBGAMhBJxzhyFBJY8AACCErGKv2u4L1lp0XRdVBfBLTwghuN1uUYBNiDHGn4uiQJZl50GmaYJSCm3bou/700BBT4QQAL57IaUEAOR57kEAMAxDHMRaG1wuQc45aK1fBqwgz+wHpJSCUuoayBJ01P6/djHG/jR1hzWDMQbOuZedvak7XAljzAMe/xGlFEmSeP9wJVv/SGsNzjmcc2iaJg6yBbLWghASqHf0dEkpAwl6thpOGWGl1O46iIZQSsE5Dxp9OsQ5h3meV/FxHP05erdaa1HX9W7OW2TlC31ceRWbb5+AAAAAAElFTkSuQmCC);background-position:bottom right;background-repeat:no-repeat;cursor:se-resize}.bk-canvas-wrapper:hover .bk-resize-popup{display:block}.bk-sidebar.bk-logo{margin:5px auto}.bk-logo{position:relative;display:block;background-repeat:no-repeat}.bk-logo.grey{filter:url("data:image/svg+xml;utf8,&lt;svgxmlns=\'http://www.w3.org/2000/svg\'&gt;&lt;filterid=\'grayscale\'&gt;&lt;feColorMatrixtype=\'matrix\'values=\'0.33330.33330.3333000.33330.33330.3333000.33330.33330.33330000010\'/&gt;&lt;/filter&gt;&lt;/svg&gt;#grayscale");filter:gray;-webkit-filter:grayscale(100%)}.bk-logo-notebook{margin-right:10px}.bk-logo-small{width:20px;height:20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAOkSURBVDiNjZRtaJVlGMd/1/08zzln5zjP1LWcU9N0NkN8m2CYjpgQYQXqSs0I84OLIC0hkEKoPtiH3gmKoiJDU7QpLgoLjLIQCpEsNJ1vqUOdO7ppbuec5+V+rj4ctwzd8IIbbi6u+8f1539dt3A78eXC7QizUF7gyV1fD1Yqg4JWz84yffhm0qkFqBogB9rM8tZdtwVsPUhWhGcFJngGeWrPzHm5oaMmkfEg1usvLFyc8jLRqDOMru7AyC8saQr7GG7f5fvDeH7Ej8CM66nIF+8yngt6HWaKh7k49Soy9nXurCi1o3qUbS3zWfrYeQDTB/Qj6kX6Ybhw4B+bOYoLKCC9H3Nu/leUTZ1JdRWkkn2ldcCamzrcf47KKXdAJllSlxAOkRgyHsGC/zRday5Qld9DyoM4/q/rUoy/CXh3jzOu3bHUVZeU+DEn8FInkPBFlu3+nW3Nw0mk6vCDiWg8CeJaxEwuHS3+z5RgY+YBR6V1Z1nxSOfoaPa4LASWxxdNp+VWTk7+4vzaou8v8PN+xo+KY2xsw6une2frhw05CTYOmQvsEhjhWjn0bmXPjpE1+kplmmkP3suftwTubK9Vq22qKmrBhpY4jvd5afdRA3wGjFAgcnTK2s4hY0/GPNIb0nErGMCRxWOOX64Z8RAC4oCXdklmEvcL8o0BfkNK4lUg9HTl+oPlQxdNo3Mg4Nv175e/1LDGzZen30MEjRUtmXSfiTVu1kK8W4txyV6BMKlbgk3lMwYCiusNy9fVfvvwMxv8Ynl6vxoByANLTWplvuj/nF9m2+PDtt1eiHPBr1oIfhCChQMBw6Aw0UulqTKZdfVvfG7VcfIqLG9bcldL/+pdWTLxLUy8Qq38heUIjh4XlzZxzQm19lLFlr8vdQ97rjZVOLf8nclzckbcD4wxXMidpX30sFd37Fv/GtwwhzhxGVAprjbg0gCAEeIgwCZyTV2Z1REEW8O4py0wsjeloKoMr6iCY6dP92H6Vw/oTyICIthibxjm/DfN9lVz8IqtqKYLUXfoKVMVQVVJOElGjrnnUt9T9wbgp8AyYKaGlqingHZU/uG2NTZSVqwHQTWkx9hxjkpWDaCg6Ckj5qebgBVbT3V3NNXMSiWSDdGV3hrtzla7J+duwPOToIg42ChPQOQjspnSlp1V+Gjdged7+8UN5CRAV7a5EdFNwCjEaBR27b3W890TE7g24NAP/mMDXRWrGoFPQI9ls/MWO2dWFAar/xcOIImbbpA3zgAAAABJRU5ErkJggg==)}.bk-logo-medium{width:35px;height:35px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAf9SURBVFiFvZh7cFTVHcc/59y7793sJiFAwkvAYDRqFWwdraLVlj61diRYsDjqCFbFKrYo0CltlSq1tLaC2GprGIriGwqjFu10OlrGv8RiK/IICYECSWBDkt3s695zTv9IAtlHeOn0O7Mzu797z+/3Ob/z+p0VfBq9doNFljuABwAXw2PcvGHt6bgwxhz7Ls4YZNVXxxANLENwE2D1W9PAGmAhszZ0/X9gll5yCbHoOirLzmaQs0F6F8QMZq1v/8xgNm7DYwwjgXJLYL4witQ16+sv/U9HdDmV4WrKw6B06cZC/RMrM4MZ7xz61DAbtzEXmAvUAX4pMOVecg9/MFFu3j3Gz7gQBLygS2RGumBkL0cubiFRsR3LzVBV1UMk3IrW73PT9C2lYOwhQB4ClhX1AuKpjLcV27oEjyUpNUJCg1CvcejykWTCXyQgzic2HIIBjg3pS6+uRLKAhumZvD4U+tq0jTrgkVKQQtLekfTtxIPAkhTNF6G7kZm7aPp6M9myKVQEoaYaIhEQYvD781DML/RfBGNZXAl4irJiwBa07e/y7cQnBaJghIX6ENl2GR/fGCBoz6cm5qeyEqQA5ZYA5x5eeiV0Qph4gjFAUSwAr6QllQgcxS/Jm25Cr2Tmpsk03XI9NfI31FTZBEOgVOk51adqDBNPCNPSRlkiDXbBEwOU2WxH+I7itQZ62g56OjM33suq1YsZHVtGZSUI2QdyYgkgOthQNIF7BIGDnRAJgJSgj69cUx1gB8PkOGwL4E1gPrM27gIg7NlGKLQApc7BmEnAxP5g/rw4YqBrCDB5xHkw5rdR/1qTrN/hKNo6YUwVDNpFsnjYS8RbidBPcPXFP6R6yfExuOXmN4A3jv1+8ZUwgY9D2OWjUZE6lO88jDwHI8ZixGiMKSeYTBamCoDk6kDAb6y1OcH1a6KpD/fZesoFw5FlIXAVCIiH4PxrV+p2npVDToTBmtjY8t1swh2V61E9KqWiyuPEjM8dbfxuvfa49Zayf9R136Wr8mBSf/T7bNteA8zwaGEUbFpckWwq95n59dUIywKl2fbOIS5e8bWSu0tJ1a5redAYfqkdjesodFajcgaVNWhXo1C9SrkN3Usmv3UMJrc6/DDwkwEntkEJLe67tSLhvyzK8rHDQWleve5CGk4VZEB1r+5bg2E2si+Y0QatDK6jUVkX5eg2YYlp++ZM+rfMNYamAj8Y7MAVWFqaR1f/t2xzU4IHjybBtthzuiAASqv7jTF7jOqDMAakFHgDNsFyP+FhwZHBmH9F7cutIYkQCylYYv1AZSqsn1/+bX51OMMjPSl2nAnM7hnjOx2v53YgNWAzHM9Q/9l0lQWPSCBSyokAtOBC1Rj+w/1Xs+STDp4/E5g7Rs2zm2+oeVd7PUuHKDf6A4r5EsPT5K3gfCnBXNUYnvGzb+KcCczYYWOnLpy4eOXuG2oec0PBN8XQQAnpvS35AvAykr56rWhPBiV4MvtceGLxk5Mr6A1O8IfK7rl7xJ0r9kyumuP4fa0lMqTBLJIAJqEf1J3qE92lMBndlyfRD2YBghHC4hlny7ASqCeWo5zaoDdIWfnIefNGTb9fC73QDfhyBUCNOxrGPSUBfPem9us253YTV+3mcBbdkUYfzmHiLqZbYdIGHHON2ZlemXouaJUOO6TqtdHEQuXYY8Yt+EbDgmlS6RdzkaDTv2P9A3gICiq93sWhb5mc5wVhuU3Y7m5hOc3So7qFT3SLgOXHb/cyOfMn7xROegoC/PTcn3v8gbKPgDopJFk3R/uBPWQiwQ+2/GJevRMObLUzqe/saJjQUQTTftEVMW9tWxPgAocwcj9abNcZe7s+6t2R2xXZG7zyYLp8Q1PiRBBHym5bYuXi8Qt+/LvGu9f/5YDAxABsaRNPH6Xr4D4Sk87a897SOy9v/fKwjoF2eQel95yDESGEF6gEMwKhLwKus3wOVjTtes7qzgLdXTMnNCNoEpbcrtNuq6N7Xh/+eqcbj94xQkp7mdKpW5XbtbR8Z26kgMCAf2UU5YEovRUVRHbu2b3vK1UdDFkDCyMRQxbpdv8nhKAGIa7QaQedzT07fFPny53R738JoVYBdVrnsNx9XZ9v33UeGO+AA2MMUkgqQ5UcdDLZSFeVgONnXeHqSAC5Ew1BXwko0D1Zct3dT1duOjS3MzZnEUJtBuoQAq3SGOLR4ekjn9NC5nVOaYXf9lETrUkmOJy3pOz8OKIb2A1cWhJCCEzOxU2mUPror+2/L3yyM3pkM7jTjr1nBOgkGeyQ7erxpdJsMAS9wb2F9rzMxNY1K2PMU0WtZV82VU8Wp6vbKJVo9Lx/+4cydORdxCCQ/kDGTZCWsRpLu7VD7bfKqL8V2orKTp/PtzaXy42jr6TwAuisi+7JolUG4wY+8vyrISCMtRrLKWpvjAOqx/QGhp0rjRo5xD3x98CWQuOQN8qumRMmI7jKZPUEpzNVZsj4Zbaq1to5tZZsKIydLWojhIXrJnES79EaOzv3du2NytKuxzJKAA6wF8xqEE8s2jo/1wd/khslQGxd81Zg62Bbp31XBH+iETt7Y3ELA0iU6iGDlQ5mexe0VEx4a3x8V1AaYwFJgTiwaOsDmeK2J8nMUOqsnB1A+dcA04ucCYt0urkjmflk9iT2v30q/gZn5rQPvor4n9Ou634PeBzoznes/iot/7WnClKoM/+zCIjH5kwT8ChQjTHPIPTjFV3PpU/Hx+DM/A9U3IXI4SPCYAAAAABJRU5ErkJggg==)}.bk-logo-large{width:75px;height:75px;background-image:url(data:image/png;base64,[encoded data, 6760 characters])}.bk-sidebar{box-sizing:border-box}.bk-button-bar .bk-bs-dropdown{padding:10px 10px 0 5px}.bk-button-bar .bk-bs-dropdown a{color:transparent;font-size:0;display:block;float:left;width:13px;height:13px;margin:5px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGdSURBVCiRXZJPSxtRFMV/dyYTunBREASRIkKwddPSjYIL+x2K9plR+owR7K7L7vsZutIkZqhO8jZ+h25aQilUkbaUgv2zEOpGpAsZnbld+BJC7ubAvYd77uEeYaTaB25bhJqi44Kcq9LYWDOt/lxVkQG542ZFaQP3gB6wBLwDFoGfKtQ2qua7qhIAJB1XEeUE9CtSPLCxWQbObGxWEL0P+k2Uk3barQBImrrgWvmE8NnGpgaQpO4OcArM2Nhc+d4e8DCUcL6UwZYIk0WYzw9Zy4CnHm+9hNcvJI/+3GhuJUndR+A3yCpoCGQ2NkWfnKQuAMqo5Ih2gakScBeYBj32vE3gw5DqAtBCFGAcuCwBF8CRIFX1SiNf6AGPQXLwSgq7Aq+zMGPLrPdNB16h50+92uvul4MiWlJ4FZShAZxFebQztL0MHHoEICiiBvCrRJiI31wBvii8zQt9WV9f/Zek7sjG5lFzvzsWBvJGYA2Ye1599mOQiKTjZlVpCcwA74En/UQonIqwaX0ihJFKUlcH6sAE8Bdo2tg0B/9S5T8JNaZ11wlT0wAAAABJRU5ErkJggg==)}.bk-button-bar .bk-button-bar-list{margin:0;padding:0}.bk-button-bar-list&gt;li{list-style-type:none;float:left;padding:0;margin:0;position:relative;display:block;overflow:visible;background-color:transparent}.bk-button-bar-list&gt;li:last-child:after{content:"|";font-size:90%;color:lightgray;display:inline-block;float:left;height:28px;line-height:28px;padding:0 3px}.bk-button-bar-list.bk-bs-dropdown:after{content:"|";font-size:90%;color:lightgray;display:inline-block;float:left;height:28px;line-height:28px;padding:0 3px}.bk-button-bar-list[type='help'] li:after{content:"" !important;display:none}.bk-button-bar-list&gt;a:after{content:"|";font-size:90%;color:lightgray;display:inline-block;float:left;height:28px;line-height:28px;padding:0 3px}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu{padding:10px 8px}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu li{float:none;clear:both;font-family:Helvetica,sans-serif;line-height:1.5em}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu li input{margin-right:8px}.bk-button-bar-list .bk-toolbar-button{width:30px;height:28px;padding:5px;border:0;border-radius:0 !important;-moz-border-radius:0 !important;-webkit-border-radius:0 !important;background:transparent !important}.bk-button-bar-list .bk-toolbar-button .bk-btn-icon{height:16px;margin:0 !important;border:none !important;background:transparent !important;display:block;position:relative;z-index:10}.bk-button-bar-list .bk-toolbar-button span.tip{display:none}.bk-button-bar-list .bk-toolbar-button span.tip:before{display:none;content:" ";position:relative;width:100%;background-position:top left;background-repeat:no-repeat}.bk-button-bar-list li::hover .bk-toolbar-button{cursor:pointer;background:transparent !important}.bk-button-bar-list li:hover .bk-toolbar-button span.tip:before{display:inline-block}.bk-button-bar-list li:hover .bk-toolbar-button span.tip{z-index:100;font-size:100%;color:#fff;font-family:'Open Sans',sans-serif;white-space:nowrap;background-color:#818789;border-radius:3px !important;-moz-border-radius:3px !important;-webkit-border-radius:3px !important;display:inline-block;position:relative;top:25px;padding:3px 5px;transition:all .6s ease;-webkit-transition:all .6s ease;-moz-transition:all .6s ease;-o-transition:all .6s ease}.bk-button-bar-list li:hover .bk-toolbar-button span.tip&gt;*{display:block;text-align:left}.bk-button-bar-list li:hover .bk-toolbar-button span.tip span{width:200px;white-space:normal}.bk-button-bar-list .bk-toolbar-button.active{background:#fff;-box-shadow:none !important;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;outline:none !important;border-bottom:2px solid #26aae1}.bk-button-bar&gt;.bk-toolbar-button.active{border-bottom:2px solid #26aae1}.bk-plot-above.bk-toolbar-active{border-bottom:2px solid #e5e5e5}.bk-plot-below.bk-toolbar-active{border-top:2px solid #e5e5e5;padding-bottom:45px}.bk-plot-above.bk-toolbar-active,.bk-plot-below.bk-toolbar-active{height:30px}.bk-plot-above.bk-toolbar-active .bk-logo,.bk-plot-below.bk-toolbar-active .bk-logo{float:left;top:5px;margin:5px 0}.bk-plot-above.bk-toolbar-active .bk-button-bar,.bk-plot-below.bk-toolbar-active .bk-button-bar{float:right;position:relative;top:5px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list{float:left}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown{margin-right:20px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before{right:-6px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after{right:-12px;position:absolute}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu:after,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu:after{content:""}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button{float:left}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help{float:right}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip{right:0;text-align:left;width:200px;white-space:normal}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip&gt;*,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip&gt;*{margin-left:0;margin-right:0}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip{top:41px;left:0;z-index:100;position:absolute;width:auto;padding:0 10px 5px 10px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip:before,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip:before{top:-7px;left:-5px;width:100%;height:9px;padding:0 10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAJCAYAAAAGuM1UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpDQjA4MDBGRDQ3NjExMUU0QjI1NEVEQTlCODRBRDIyNiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpDQjA4MDBGQzQ3NjExMUU0QjI1NEVEQTlCODRBRDIyNiIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6N0Y0M0E0Nzk5NDIyNjgxMTk3QTVDQTY1REE2OTk0Q0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4te1g5AAAAk0lEQVR42mL8//8/AymApamjC5dcJRBPBOJvyIJM2FQCbS0GUm1APAddDkPDv3//3BgZGTuh3Eig5lKcGv78+aPKxMS0HMhkhokBNbcDDfHApoGHmZl5HZAWQrOUGWQIyDBkDYxAqxcBTdPBEQACQMM2AGk+Jqgn64CKA/EFJ1BeC2QoE9B9AUBOPTFxAFTnDxBgAI5eL2ABBdyaAAAAAElFTkSuQmCC);display:block !important}.bk-plot-left.bk-toolbar-active{border-right:2px solid #e5e5e5}.bk-plot-right.bk-toolbar-active{border-left:2px solid #e5e5e5}.bk-plot-left.bk-toolbar-active,.bk-plot-right.bk-toolbar-active{display:block;margin:45px 0 0 0}.bk-plot-left.bk-toolbar-active .bk-logo,.bk-plot-right.bk-toolbar-active .bk-logo{left:6px;margin-bottom:20px}.bk-plot-left.bk-toolbar-active .bk-button-bar,.bk-plot-right.bk-toolbar-active .bk-button-bar{position:relative;left:3px}.bk-plot-left.bk-toolbar-active .bk-button-bar:before,.bk-plot-right.bk-toolbar-active .bk-button-bar:before,.bk-plot-left.bk-toolbar-active .bk-button-bar:after,.bk-plot-right.bk-toolbar-active .bk-button-bar:after{content:" ";display:block;height:0;clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list:after{content:" ";height:0;display:block;clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before{top:}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after{content:" \2014";float:none;clear:both;display:block;width:30px;height:8px;line-height:8px;padding:3px 0;text-align:center}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li{clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li:last-child:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li:last-child:after{content:" \2014";float:none;clear:both;display:block;width:30px;height:8px;line-height:8px;padding:3px 0;text-align:center}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button.active,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button.active{border-bottom:0;border-right:2px solid #26aae1}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button.help span.tip:before,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button.help span.tip:before{left:-57%}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button span.tip,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button span.tip{position:absolute;top:4px;left:40px;padding:5px 10px 5px 10px}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button span.tip:before,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list&gt;li .bk-toolbar-button span.tip:before{top:2px;left:-19px;width:9px;height:15px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAPCAMAAAABFhU/AAAAA3NCSVQICAjb4U/gAAAAY1BMVEX////////8/Pz5+fn39/f19fX09PTv8fHv7+/t7e7s7Ozp6enn6Onm5ubj4+Ph4eHf39/X2drW1tfMzMzAw8S+wMGusbKorK6orK2nq6ufo6WcoaGYnZ+RlpiJj5GGjI6Bh4n1ho2QAAAAIXRSTlMA//////////////////////////////////////////9G9E6kAAAACXBIWXMAAAsSAAALEgHS3X78AAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABR0RVh0Q3JlYXRpb24gVGltZQA5LzUvMTTY+fXxAAAAUklEQVQImTXN2xZAIABE0VQUIfdLwvz/V1rL1DztpzOi4EoIQoekNoIaH1AL8EvvoExEUkBWfWZZvyWVzq/vL6kbP9/sKdtPF8vKdMPBN1m5AR+0BAnD6uP50QAAAABJRU5ErkJggg==)}.bk-crossfilter-selector{list-style-type:none;-webkit-padding-start:0}.bk-crossfilter-selector li{display:inline;margin-bottom:10px;padding-left:10px;padding-right:10px}.bk-bs-caret{color:lightgray;display:inline-block;width:0;height:0;position:relative;left:11px;top:3px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.bk-crossfilter-row{margin-left:-15px;margin-right:-15px;height:100%;width:100%;margin:0}.bk-crossfilter-panel-heading{padding-top:5px;padding-bottom:5px}.bk-crossfilter-panel-continuous-heading{background-color:#396285 !important}.bk-crossfilter-panel-factor-heading{background-color:#ce603d !important}.aligntable{vertical-align:top}.bk-crossfilter-container{height:100%;width:100%;whitespace:nowrap;display:inline-block;overflow:auto}.bk-crossfilter-configuration{overflow:auto;float:left;padding-right:0 !important;padding-left:15px !important;margin-left:0 !important;margin-right:0 !important}.bk-crossfilter-configuration .bk-bs-panel-body{padding:0 !important}.bk-column-list{overflow-y:auto;height:100%;padding-right:0;padding-left:0}.bk-table{width:100%;margin-bottom:20px;border-top:0;margin-bottom:0;text-align:left}.bk-table&gt;thead&gt;tr&gt;th,.bk-table&gt;tbody&gt;tr&gt;th,.bk-table&gt;tfoot&gt;tr&gt;th,.bk-table&gt;thead&gt;tr&gt;td,.bk-table&gt;tbody&gt;tr&gt;td,.bk-table&gt;tfoot&gt;tr&gt;td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.bk-table&gt;thead&gt;tr&gt;th{vertical-align:bottom;border-bottom:2px solid #ddd}.bk-table&gt;caption+thead&gt;tr:first-child&gt;th,.bk-table&gt;colgroup+thead&gt;tr:first-child&gt;th,.bk-table&gt;thead:first-child&gt;tr:first-child&gt;th,.bk-table&gt;caption+thead&gt;tr:first-child&gt;td,.bk-table&gt;colgroup+thead&gt;tr:first-child&gt;td,.bk-table&gt;thead:first-child&gt;tr:first-child&gt;td{border-top:0}.bk-table&gt;tbody+tbody{border-top:2px solid #ddd}.bk-table .bk-bs-table{background-color:#fff}.bk-table&gt;thead&gt;tr&gt;th,.bk-table&gt;tbody&gt;tr&gt;th,.bk-table&gt;tfoot&gt;tr&gt;th,.bk-table&gt;thead&gt;tr&gt;td,.bk-table&gt;tbody&gt;tr&gt;td,.bk-table&gt;tfoot&gt;tr&gt;td{padding:5px}.bk-table tr:nth-child(odd){background:#efefef}.bk-table tr td{padding:1px 5px !important;border:none !important}.bk-filters-facets{height:100%;padding-left:0;padding-right:0}.bk-filters{height:45%;overflow:hidden;position:relative}.bk-filters-selections{position:absolute;top:30px;left:0;right:0;bottom:0;overflow-y:auto;padding-top:0;padding-bottom:0;padding:5px !important}.bk-facet{height:14%;position:relative}.bk-facets-selections{position:absolute;top:30px;left:0;right:0;bottom:0}.bk-plot-selection{padding-right:0;padding-left:0}.bk-crossfilter-plot{float:left;display:inline-block}.bk-facet-label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;background-color:#5bc0de;margin-left:5px;display:inline-block;cursor:pointer}.bk-facet-label[href]:hover,.bk-facet-label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.bk-facet-label:empty{display:none}.bk-bs-btn .bk-facet-label{position:relative;top:-1px}.bk-facet-label[href]:hover,.bk-facet-label[href]:focus{background-color:#31b0d5}.bk-filters-selections .bk-sidebar{-webkit-transform:scale(0.5,0.5) !important;transform:scale(0.5,0.5) !important}.bk-crossfilter .bk-widget-form{padding:5px}.bk-data-table{font-size:11px}.bk-data-table input[type="checkbox"]{margin-left:4px;margin-right:4px}.bk-data-table *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.bk-data-table *:before,.bk-data-table *:after{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.bk-cell-special-defaults{border-right-color:silver;border-right-style:solid;background:#f5f5f5}.bk-cell-select{border-right-color:silver;border-right-style:solid;background:#f5f5f5}.bk-cell-index{border-right-color:silver;border-right-style:solid;background:#f5f5f5;text-align:right;color:gray}.bk-slick-row.selected .bk-cell-index{background-color:transparent}.bk-slick-cell{padding-left:4px;padding-right:4px}.bk-slick-cell.active{border-style:dashed}.bk-slick-cell.editable{padding-left:0;padding-right:0}.bk-cell-editor input,.bk-cell-editor select,.bk-cell-editor .bk-ui-spinner{width:100%;height:100%;border:0;margin:0;padding:0;outline:0;background:transparent;vertical-align:baseline}.bk-cell-editor input{padding-left:4px;padding-right:4px}.bk-cell-editor-completion{font-size:11px}.bk-hbox{display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:-ms-flexbox;display:box;box-orient:horizontal;box-align:stretch;display:flex;display:-webkit-flex;flex-direction:row;flex-wrap:nowrap}.bk-vbox{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;width:auto}.bk-widget-form{padding:30px 30px 30px 30px;overflow:hidden}.bk-widget-form-group{margin-bottom:15px}.bk-widget-form-input{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bk-widget-form-input:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.6)}.bk-widget-form-input::-moz-placeholder{color:#999;opacity:1}.bk-widget-form-input:-ms-input-placeholder{color:#999}.bk-widget-form-input::-webkit-input-placeholder{color:#999}.bk-widget-form-input[disabled],.bk-widget-form-input[readonly],fieldset[disabled] .bk-widget-form-input{cursor:not-allowed;background-color:#eee;opacity:1}textarea.bk-widget-form-input{height:auto}.bk-slider-horizontal{width:100%;height:50px;min-width:200px}.bk-slider-vertical{height:100%;width:50px;min-height:200px}.bk-button-bar{margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:2px;position:relative;display:inline-block;vertical-align:middle}.bk-button-bar&gt;.bk-bs-btn{position:relative;float:left}.bk-button-bar&gt;.bk-bs-btn:hover,.bk-button-bar&gt;.bk-bs-btn:focus,.bk-button-bar&gt;.bk-bs-btn:active,.bk-button-bar&gt;.bk-bs-btn.bk-bs-active{z-index:2}.bk-button-bar&gt;.bk-bs-btn:focus{outline:0}.bk-button-bar .bk-bs-btn+.bk-bs-btn,.bk-button-bar .bk-bs-btn+.bk-bs-btn-group,.bk-button-bar .bk-bs-btn-group+.bk-bs-btn,.bk-button-bar .bk-bs-btn-group+.bk-bs-btn-group{margin-left:-1px}.bk-toolbar-button{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px;color:#333;background-color:#fff;border-color:#ccc}.bk-toolbar-button:focus,.bk-toolbar-button:active:focus,.bk-toolbar-button.bk-bs-active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bk-toolbar-button:hover,.bk-toolbar-button:focus{color:#333;text-decoration:none}.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.bk-toolbar-button.bk-bs-disabled,.bk-toolbar-button[disabled],fieldset[disabled] .bk-toolbar-button{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.bk-toolbar-button:hover,.bk-toolbar-button:focus,.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-toolbar-button{color:#333;background-color:#ebebeb;border-color:#adadad}.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-toolbar-button{background-image:none}.bk-toolbar-button.bk-bs-disabled,.bk-toolbar-button[disabled],fieldset[disabled] .bk-toolbar-button,.bk-toolbar-button.bk-bs-disabled:hover,.bk-toolbar-button[disabled]:hover,fieldset[disabled] .bk-toolbar-button:hover,.bk-toolbar-button.bk-bs-disabled:focus,.bk-toolbar-button[disabled]:focus,fieldset[disabled] .bk-toolbar-button:focus,.bk-toolbar-button.bk-bs-disabled:active,.bk-toolbar-button[disabled]:active,fieldset[disabled] .bk-toolbar-button:active,.bk-toolbar-button.bk-bs-disabled.bk-bs-active,.bk-toolbar-button[disabled].bk-bs-active,fieldset[disabled] .bk-toolbar-button.bk-bs-active{background-color:#fff;border-color:#ccc}.bk-toolbar-button .bk-bs-badge{color:#fff;background-color:#333}.bk-canvas-wrapper{position:relative;font-size:12pt;float:left}.bk-canvas{clear:both;position:absolute;font-size:12pt}.bk-canvas-wrapper .bk-canvas-map{position:absolute !important;z-index:-5}.bk-tooltip{position:absolute;padding:5px;border:1px solid #1e4b6c;background-color:#1e4b6c;border-radius:5px;pointer-events:none}.bk-tooltip.bk-left::before{position:absolute;margin:-7px 0 0 0;top:50%;width:0;height:0;border-style:solid;border-width:7px 0 7px 0;border-color:transparent;content:" ";display:block;left:-10px;border-right-width:10px;border-right-color:#1e4b6c}.bk-tooltip.bk-right::after{position:absolute;margin:-7px 0 0 0;top:50%;width:0;height:0;border-style:solid;border-width:7px 0 7px 0;border-color:transparent;content:" ";display:block;right:-10px;border-left-width:10px;border-left-color:#1e4b6c}.bk-tooltip.bk-tooltip-custom.bk-left::before{border-right-color:black}.bk-tooltip.bk-tooltip-custom.bk-right::after{border-left-color:black}.bk-tooltip.bk-tooltip-custom{border-color:black;background-color:white}.bk-tooltip-row-label{color:#9ab9b1;font-family:Helvetica,sans-serif;text-align:right}.bk-tooltip-row-value{color:#e2ddbd;font-family:Helvetica,sans-serif}.bk-tooltip-color-block{width:12px;height:12px;margin-left:5px;margin-right:5px;outline:#ddd solid 1px;display:inline-block}.bk-canvas-map{position:absolute;border:0;z-index:-5}.shading{position:absolute;display:block;border:1px dashed green;z-index:100}.gridplot_container{position:relative}.gridplot_container .gp_plotwrapper{position:absolute}.table_wrap table{display:block;margin:5px;height:300px;overflow-y:scroll}.bk-table{overflow:auto}.bokehdelete{float:right}.plottitle{padding-left:50px;padding-bottom:10px}
        /*# sourceMappingURL=bokeh.min.css.map */
        /* END C:\Users\Bradlee Speice\Anaconda3\lib\site-packages\bokeh\server\static\css/bokeh.min.css */
&lt;/style&gt;
    &lt;div&gt;
        &lt;a href="http://bokeh.pydata.org" target="_blank" class="bk-logo bk-logo-small bk-logo-notebook"&gt;&lt;/a&gt;
        &lt;span&gt;BokehJS successfully loaded.&lt;/span&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;I'm originally from North Carolina, and I've been hearing a lot of people talking about how often it's been raining recently. They're excited for any day that has sun.&lt;/p&gt;
&lt;p&gt;So I got a bit curious: Has North Carolina over the past few months actually had more cloudy and rainy days recently than in previous years? This shouldn't be a particularly challenging task, but I'm interested to know if people's perceptions actually reflect reality.&lt;/p&gt;
&lt;p&gt;The data we'll use comes from &lt;a href="http://forecast.io/"&gt;forecast.io&lt;/a&gt;, since they can give us a cloud cover percentage. I've gone ahead and retrieved the data to a pickle file, and included the &lt;a href="#Generating-the-Forecast-file"&gt;code that was used to generate it&lt;/a&gt;. First up: What was the average cloud cover in North Carolina during August - November, and how many days were cloudy? We're going to assume that a "cloudy" day is defined as any day in which the cloud cover is above 50%.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[2]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;city_forecasts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pickle&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;city_forecasts.p&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;rb&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="n"&gt;forecast_df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DataFrame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;from_dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city_forecasts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[3]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;cary_forecast&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;forecast_df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;cary&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1990&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2016&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;months&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;months_str&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;July&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;August&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;September&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;October&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;November&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;safe_cover&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;cloudCover&amp;#39;&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;cloudCover&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;monthly_avg_cloudcover&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;dates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DatetimeIndex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;freq&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;D&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;closed&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;left&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;cloud_cover_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;safe_cover&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cary_forecast&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;currently&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt; &lt;span class="n"&gt;dates&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;cloud_cover_samples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cloud_cover_vals&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nanmean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cloud_cover_vals&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;cloud_cover_samples&lt;/span&gt;


&lt;span class="n"&gt;monthly_cover_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;monthly_avg_cloudcover&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Monthly Average Cloud Cover&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
           &lt;span class="n"&gt;x_range&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1990&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2015&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
          &lt;span class="n"&gt;x_axis_label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Year&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monthly_cover_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;legend&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;months_str&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;Palette&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "d6d1c76a-2c08-4837-a235-5d28812045b8", "attributes": {"plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "dimension": 0, "id": "d6d1c76a-2c08-4837-a235-5d28812045b8", "doc": null, "ticker": {"id": "04b264bc-ea65-496a-9d53-52ebd0924cf5", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "db4c713a-944b-497a-a1a5-594d70d9919b", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "db4c713a-944b-497a-a1a5-594d70d9919b", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "aa63abd3-cfae-4d14-a3bf-1858f44da41e", "attributes": {"plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "legends": [["July", [{"id": "f61dd8ae-9fbe-4a4b-9e1c-cc2d8156059d", "type": "GlyphRenderer"}]], ["August", [{"id": "8e26ebbc-2da1-4be6-911e-8d19209b2e9c", "type": "GlyphRenderer"}]], ["September", [{"id": "21ee1fe1-d928-49f1-9237-0cac113a4975", "type": "GlyphRenderer"}]], ["October", [{"id": "901ba0fb-85e3-45a6-909e-5f3995dc7953", "type": "GlyphRenderer"}]], ["November", [{"id": "0f5331ba-05e0-440a-ac3f-a3b2415f0936", "type": "GlyphRenderer"}]]], "doc": null, "id": "aa63abd3-cfae-4d14-a3bf-1858f44da41e", "tags": []}, "type": "Legend"}, {"id": "ddd92e55-4f38-4207-a9d0-be051d83032f", "attributes": {"doc": null, "names": [], "callback": null, "renderers": [], "id": "ddd92e55-4f38-4207-a9d0-be051d83032f", "tags": []}, "type": "DataRange1d"}, {"id": "32db6117-a4c9-4522-9970-89e3aecb4c07", "attributes": {"end": 2015, "callback": null, "id": "32db6117-a4c9-4522-9970-89e3aecb4c07", "doc": null, "start": 1990, "tags": []}, "type": "Range1d"}, {"id": "d75fc1ac-60eb-415a-a1d7-2a9ac853fe9f", "attributes": {"plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "d75fc1ac-60eb-415a-a1d7-2a9ac853fe9f", "tags": []}, "type": "HelpTool"}, {"id": "04b264bc-ea65-496a-9d53-52ebd0924cf5", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "04b264bc-ea65-496a-9d53-52ebd0924cf5", "tags": []}, "type": "BasicTicker"}, {"id": "4b4d1b3b-9fb2-44ff-aef2-1477ac788173", "attributes": {"axis_label": "Year", "plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "id": "4b4d1b3b-9fb2-44ff-aef2-1477ac788173", "doc": null, "ticker": {"id": "04b264bc-ea65-496a-9d53-52ebd0924cf5", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "38693d6f-b22a-4a97-a51a-789e49c3123e", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}, {"id": "83c110bc-2b50-49b9-b919-dc744f4ddf58", "attributes": {"plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "83c110bc-2b50-49b9-b919-dc744f4ddf58", "tags": []}, "type": "ResetTool"}, {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "attributes": {"tools": [{"id": "212828cc-c9e4-4e54-a207-c17dce71bb83", "type": "PanTool"}, {"id": "f8c53aaf-b69b-41e3-8f86-cadd16bd11ca", "type": "WheelZoomTool"}, {"id": "98c4047a-bde0-4918-ae33-bd559384e30b", "type": "BoxZoomTool"}, {"id": "3fb793c9-d15c-4b61-8583-25113661d6df", "type": "PreviewSaveTool"}, {"id": "d5588c29-3bcf-4965-a858-66778ae66fa0", "type": "ResizeTool"}, {"id": "83c110bc-2b50-49b9-b919-dc744f4ddf58", "type": "ResetTool"}, {"id": "d75fc1ac-60eb-415a-a1d7-2a9ac853fe9f", "type": "HelpTool"}], "x_range": {"id": "32db6117-a4c9-4522-9970-89e3aecb4c07", "type": "Range1d"}, "extra_y_ranges": {}, "doc": null, "title": "Monthly Average Cloud Cover", "extra_x_ranges": {}, "below": [{"id": "4b4d1b3b-9fb2-44ff-aef2-1477ac788173", "type": "LinearAxis"}], "right": [], "above": [], "y_range": {"id": "ddd92e55-4f38-4207-a9d0-be051d83032f", "type": "DataRange1d"}, "renderers": [{"id": "4b4d1b3b-9fb2-44ff-aef2-1477ac788173", "type": "LinearAxis"}, {"id": "d6d1c76a-2c08-4837-a235-5d28812045b8", "type": "Grid"}, {"id": "f4afd080-75c2-4fde-b2b4-00182d10988d", "type": "LinearAxis"}, {"id": "06109d80-3f5d-4dc9-a113-05e5030dd0de", "type": "Grid"}, {"id": "aa63abd3-cfae-4d14-a3bf-1858f44da41e", "type": "Legend"}, {"id": "f61dd8ae-9fbe-4a4b-9e1c-cc2d8156059d", "type": "GlyphRenderer"}, {"id": "8e26ebbc-2da1-4be6-911e-8d19209b2e9c", "type": "GlyphRenderer"}, {"id": "21ee1fe1-d928-49f1-9237-0cac113a4975", "type": "GlyphRenderer"}, {"id": "901ba0fb-85e3-45a6-909e-5f3995dc7953", "type": "GlyphRenderer"}, {"id": "0f5331ba-05e0-440a-ac3f-a3b2415f0936", "type": "GlyphRenderer"}], "id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "tags": [], "left": [{"id": "f4afd080-75c2-4fde-b2b4-00182d10988d", "type": "LinearAxis"}], "tool_events": {"id": "f2924c30-43a6-4e0e-8b62-c8164250146d", "type": "ToolEvents"}}, "type": "Plot", "subtype": "Figure"}, {"id": "38ab0b07-e596-42dc-8f9d-a840f8493db8", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0.5335483870967742, 0.5903225806451613, 0.4796774193548388, 0.43774193548387097, 0.5967741935483871, 0.47548387096774186, 0.6033333333333334, 0.5216129032258064, 0.5816129032258064, 0.5896774193548387, 0.6803225806451614, 0.7035483870967741, 0.42709677419354836, 0.516774193548387, 0.43096774193548393, 0.4374193548387097, 0.32032258064516134, 0.39967741935483875, 0.375483870967742, 0.5061290322580646, 0.4625806451612904, 0.3635483870967742, 0.4838709677419355, 0.6041935483870967, 0.22565217391304346, 0.1603448275862069]}, "callback": null, "doc": null, "id": "38ab0b07-e596-42dc-8f9d-a840f8493db8", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "212828cc-c9e4-4e54-a207-c17dce71bb83", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "212828cc-c9e4-4e54-a207-c17dce71bb83", "tags": []}, "type": "PanTool"}, {"id": "38693d6f-b22a-4a97-a51a-789e49c3123e", "attributes": {"doc": null, "id": "38693d6f-b22a-4a97-a51a-789e49c3123e", "tags": []}, "type": "BasicTickFormatter"}, {"id": "8e26ebbc-2da1-4be6-911e-8d19209b2e9c", "attributes": {"data_source": {"id": "9a1dd135-a058-4445-a412-5bbae062afaa", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "b77c9882-74c4-4c39-831f-84e33496662a", "type": "Line"}, "glyph": {"id": "d46be558-be9b-4b12-8492-f70a55c857fb", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "8e26ebbc-2da1-4be6-911e-8d19209b2e9c", "tags": []}, "type": "GlyphRenderer"}, {"id": "36f9205b-407b-4a0b-8fbb-797b43b36447", "attributes": {"line_color": {"value": "#67a9cf"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "36f9205b-407b-4a0b-8fbb-797b43b36447", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "7adacc4c-0c89-4c70-841d-6ae184e250d7", "attributes": {"line_color": {"value": "#014636"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "7adacc4c-0c89-4c70-841d-6ae184e250d7", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "9a1dd135-a058-4445-a412-5bbae062afaa", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0.6532258064516128, 0.6990322580645162, 0.6735483870967741, 0.5064516129032258, 0.5329032258064517, 0.5306451612903227, 0.5311111111111111, 0.48516129032258065, 0.5106451612903226, 0.6361290322580646, 0.5535483870967742, 0.40419354838709676, 0.4232258064516129, 0.4661290322580645, 0.5380645161290323, 0.40709677419354834, 0.44677419354838716, 0.3223333333333334, 0.44677419354838716, 0.537741935483871, 0.49064516129032254, 0.364, 0.5296774193548387, 0.0, 0.18809523809523812, 0.16185185185185186]}, "callback": null, "doc": null, "id": "9a1dd135-a058-4445-a412-5bbae062afaa", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "901ba0fb-85e3-45a6-909e-5f3995dc7953", "attributes": {"data_source": {"id": "bffd6ec8-4cb9-4021-afd9-4a88ce2b4250", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "db4c713a-944b-497a-a1a5-594d70d9919b", "type": "Line"}, "glyph": {"id": "0f985c4a-3228-4c5d-a514-2e5c626d1a94", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "901ba0fb-85e3-45a6-909e-5f3995dc7953", "tags": []}, "type": "GlyphRenderer"}, {"id": "7d17048e-76e9-4478-949d-fbc5182fcf53", "attributes": {"doc": null, "id": "7d17048e-76e9-4478-949d-fbc5182fcf53", "tags": []}, "type": "BasicTickFormatter"}, {"id": "ca548c93-8866-4a62-81a4-a64969cde42b", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "ca548c93-8866-4a62-81a4-a64969cde42b", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "34e89e63-3517-4671-9eae-0e5b64725ff1", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0.378, 0.5566666666666666, 0.6566666666666666, 0.5883333333333334, 0.593, 0.5199999999999999, 0.5883333333333334, 0.5673333333333334, 0.5425, 0.349, 0.5266666666666667, 0.32172413793103455, 0.4406666666666667, 0.5409999999999999, 0.48766666666666664, 0.4086666666666667, 0.4366666666666666, 0.397, 0.4636666666666666, 0.545, 0.36433333333333334, 0.37466666666666665, 0.40933333333333344, 0.0, 0.12291666666666667, 0.076]}, "callback": null, "doc": null, "id": "34e89e63-3517-4671-9eae-0e5b64725ff1", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "d5588c29-3bcf-4965-a858-66778ae66fa0", "attributes": {"plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "d5588c29-3bcf-4965-a858-66778ae66fa0", "tags": []}, "type": "ResizeTool"}, {"id": "06109d80-3f5d-4dc9-a113-05e5030dd0de", "attributes": {"plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "dimension": 1, "id": "06109d80-3f5d-4dc9-a113-05e5030dd0de", "doc": null, "ticker": {"id": "f8047dbf-6f13-4dd8-86bd-a4cbecf564bd", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "f61dd8ae-9fbe-4a4b-9e1c-cc2d8156059d", "attributes": {"data_source": {"id": "38ab0b07-e596-42dc-8f9d-a840f8493db8", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "a8b07889-ebbc-4199-95eb-c9db69fdf114", "type": "Line"}, "glyph": {"id": "7adacc4c-0c89-4c70-841d-6ae184e250d7", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "f61dd8ae-9fbe-4a4b-9e1c-cc2d8156059d", "tags": []}, "type": "GlyphRenderer"}, {"id": "3fb793c9-d15c-4b61-8583-25113661d6df", "attributes": {"plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "3fb793c9-d15c-4b61-8583-25113661d6df", "tags": []}, "type": "PreviewSaveTool"}, {"id": "d46be558-be9b-4b12-8492-f70a55c857fb", "attributes": {"line_color": {"value": "#016c59"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "d46be558-be9b-4b12-8492-f70a55c857fb", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "f4afd080-75c2-4fde-b2b4-00182d10988d", "attributes": {"plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "id": "f4afd080-75c2-4fde-b2b4-00182d10988d", "doc": null, "ticker": {"id": "f8047dbf-6f13-4dd8-86bd-a4cbecf564bd", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "7d17048e-76e9-4478-949d-fbc5182fcf53", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}, {"id": "0f985c4a-3228-4c5d-a514-2e5c626d1a94", "attributes": {"line_color": {"value": "#3690c0"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "0f985c4a-3228-4c5d-a514-2e5c626d1a94", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "f8047dbf-6f13-4dd8-86bd-a4cbecf564bd", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "f8047dbf-6f13-4dd8-86bd-a4cbecf564bd", "tags": []}, "type": "BasicTicker"}, {"id": "a8b07889-ebbc-4199-95eb-c9db69fdf114", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "a8b07889-ebbc-4199-95eb-c9db69fdf114", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "21ee1fe1-d928-49f1-9237-0cac113a4975", "attributes": {"data_source": {"id": "1d6c1f10-b779-42a4-97f4-b5a775ebec74", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "ca548c93-8866-4a62-81a4-a64969cde42b", "type": "Line"}, "glyph": {"id": "d57142ad-7566-417c-ba8c-326b9bd25355", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "21ee1fe1-d928-49f1-9237-0cac113a4975", "tags": []}, "type": "GlyphRenderer"}, {"id": "98c4047a-bde0-4918-ae33-bd559384e30b", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "98c4047a-bde0-4918-ae33-bd559384e30b", "tags": []}, "type": "BoxZoomTool"}, {"id": "1d6c1f10-b779-42a4-97f4-b5a775ebec74", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0.49999999999999994, 0.5026666666666667, 0.6086666666666667, 0.526, 0.4683333333333333, 0.6596666666666667, 0.4693333333333333, 0.5576666666666666, 0.43799999999999994, 0.5730000000000001, 0.6706666666666664, 0.3756666666666666, 0.6148275862068965, 0.465, 0.5736666666666667, 0.409, 0.45066666666666666, 0.304, 0.6056666666666667, 0.5263333333333333, 0.35433333333333333, 0.5363333333333333, 0.453, 0.0, 0.1827777777777778, 0.18416666666666667]}, "callback": null, "doc": null, "id": "1d6c1f10-b779-42a4-97f4-b5a775ebec74", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "bffd6ec8-4cb9-4021-afd9-4a88ce2b4250", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0.4774193548387096, 0.4464516129032258, 0.4335483870967742, 0.5816129032258065, 0.617741935483871, 0.4867741935483871, 0.352258064516129, 0.4416129032258065, 0.4658064516129032, 0.4474193548387097, 0.27548387096774196, 0.18161290322580642, 0.6880645161290322, 0.4651612903225806, 0.6435483870967743, 0.44193548387096776, 0.445483870967742, 0.4283870967741935, 0.3738709677419354, 0.6009677419354839, 0.2887096774193549, 0.3587096774193549, 0.4964516129032257, 0.0, 0.10793103448275865, 0.09652173913043477]}, "callback": null, "doc": null, "id": "bffd6ec8-4cb9-4021-afd9-4a88ce2b4250", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "f8c53aaf-b69b-41e3-8f86-cadd16bd11ca", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "2a4fdc48-79d5-4dae-ab6c-649854b2bfe9", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "f8c53aaf-b69b-41e3-8f86-cadd16bd11ca", "tags": []}, "type": "WheelZoomTool"}, {"id": "0ece3ed6-da6b-49b9-81a9-ad38d1061265", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "0ece3ed6-da6b-49b9-81a9-ad38d1061265", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "d57142ad-7566-417c-ba8c-326b9bd25355", "attributes": {"line_color": {"value": "#02818a"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "d57142ad-7566-417c-ba8c-326b9bd25355", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "b77c9882-74c4-4c39-831f-84e33496662a", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "b77c9882-74c4-4c39-831f-84e33496662a", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "f2924c30-43a6-4e0e-8b62-c8164250146d", "attributes": {"doc": null, "geometries": [], "id": "f2924c30-43a6-4e0e-8b62-c8164250146d", "tags": []}, "type": "ToolEvents"}, {"id": "0f5331ba-05e0-440a-ac3f-a3b2415f0936", "attributes": {"data_source": {"id": "34e89e63-3517-4671-9eae-0e5b64725ff1", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "0ece3ed6-da6b-49b9-81a9-ad38d1061265", "type": "Line"}, "glyph": {"id": "36f9205b-407b-4a0b-8fbb-797b43b36447", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "0f5331ba-05e0-440a-ac3f-a3b2415f0936", "tags": []}, "type": "GlyphRenderer"}];
        Bokeh.load_models(all_models);
        var plots = [{'modelid': '2a4fdc48-79d5-4dae-ab6c-649854b2bfe9', 'elementid': 'c021877f-5cb6-4035-9044-c444f0727cdf', 'modeltype': 'Plot'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="c021877f-5cb6-4035-9044-c444f0727cdf"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;As we can see from the chart above, on the whole the monthly average cloud cover has been generally trending down over time. The average cloud cover is also lower than it was last year - it seems people are mostly just complaining. There are some data issues that start in 2012 that we need to be aware of - the cloud cover percentage doesn't exist for all days. Even so, the data that we have seems to reflect the wider trend, so we'll assume for now that the missing data doesn't skew our results.&lt;/p&gt;
&lt;p&gt;There's one more metric we want to check though - how many cloudy days were there? This is probably a better gauge of sentiment than the average monthly cover.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[4]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;monthly_cloudy_days&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;dates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DatetimeIndex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;freq&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;D&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;closed&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;left&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;cloud_cover_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;safe_cover&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cary_forecast&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;currently&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt; &lt;span class="n"&gt;dates&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;cloud_cover_samples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cloud_cover_vals&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="n"&gt;cloudy_days&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;cover&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;cover&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cloud_cover_vals&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;count_nonzero&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cloudy_days&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;cloud_cover_samples&lt;/span&gt;

&lt;span class="n"&gt;monthly_days_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;monthly_cloudy_days&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;monthly_cover_samples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;monthly_cloudy_days&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Monthly Cloudy Days&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
           &lt;span class="n"&gt;x_range&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1990&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2015&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
          &lt;span class="n"&gt;x_axis_label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Year&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monthly_days_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;legend&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;months_str&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;Palette&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Monthly Cloud Cover Samples&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;x_range&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1990&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2015&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
          &lt;span class="n"&gt;x_axis_label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Year&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monthly_cover_samples&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;legend&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;months_str&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;Palette&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "5b478055-568d-4a61-a30f-bd63ee630ee2", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "5b478055-568d-4a61-a30f-bd63ee630ee2", "tags": []}, "type": "BasicTicker"}, {"id": "ac54db8c-1975-48b8-bb83-40dee95eb4c8", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "ac54db8c-1975-48b8-bb83-40dee95eb4c8", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "a086fe67-8527-4d41-9a4e-5b8b9d514fc2", "attributes": {"doc": null, "names": [], "callback": null, "renderers": [], "id": "a086fe67-8527-4d41-9a4e-5b8b9d514fc2", "tags": []}, "type": "DataRange1d"}, {"id": "f77df6d7-72a4-4ae8-a1e4-7d4b4becd4b4", "attributes": {"data_source": {"id": "488e712e-8084-45c9-9e54-c5a127297b72", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "ac54db8c-1975-48b8-bb83-40dee95eb4c8", "type": "Line"}, "glyph": {"id": "349147be-4a55-4549-85ec-d9f05d14d8af", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "f77df6d7-72a4-4ae8-a1e4-7d4b4becd4b4", "tags": []}, "type": "GlyphRenderer"}, {"id": "d116f6bc-d89e-4be2-8af6-00add845b655", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "d116f6bc-d89e-4be2-8af6-00add845b655", "tags": []}, "type": "BoxZoomTool"}, {"id": "2fe28651-e40b-4fd6-9017-7d3cf80d331b", "attributes": {"doc": null, "id": "2fe28651-e40b-4fd6-9017-7d3cf80d331b", "tags": []}, "type": "BasicTickFormatter"}, {"id": "488e712e-8084-45c9-9e54-c5a127297b72", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [18, 15, 12, 11, 17, 12, 2, 15, 18, 19, 24, 21, 13, 17, 13, 12, 4, 7, 9, 14, 13, 7, 12, 19, 0, 0]}, "callback": null, "doc": null, "id": "488e712e-8084-45c9-9e54-c5a127297b72", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "bc7435fb-8c25-4bdf-b509-7360d23b3e15", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "bc7435fb-8c25-4bdf-b509-7360d23b3e15", "tags": []}, "type": "PanTool"}, {"id": "ea961122-d9c4-4795-9093-d4d736d615ec", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "ea961122-d9c4-4795-9093-d4d736d615ec", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "a92ff025-72ad-4739-98ac-7d0404235003", "attributes": {"data_source": {"id": "5e35841f-1ab5-4a8c-8bfe-0c362548607b", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "436b1c5d-2887-484a-9a85-96b800db05e3", "type": "Line"}, "glyph": {"id": "c16f342a-5128-4542-9d80-5c7e680e1a9e", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "a92ff025-72ad-4739-98ac-7d0404235003", "tags": []}, "type": "GlyphRenderer"}, {"id": "e8851ddd-934f-40d8-b80a-1d935a2330bc", "attributes": {"data_source": {"id": "4595e065-33f8-4a01-9523-42e5ee97a0ed", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "ea961122-d9c4-4795-9093-d4d736d615ec", "type": "Line"}, "glyph": {"id": "9c4c6a38-5917-494b-a9e9-9e24a6473bce", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "e8851ddd-934f-40d8-b80a-1d935a2330bc", "tags": []}, "type": "GlyphRenderer"}, {"id": "756ac16d-b924-422e-9fad-88a8142fae84", "attributes": {"line_color": {"value": "#67a9cf"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "756ac16d-b924-422e-9fad-88a8142fae84", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "587eefca-cd67-4c4a-b774-e26186a3ab8b", "attributes": {"plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "587eefca-cd67-4c4a-b774-e26186a3ab8b", "tags": []}, "type": "ResetTool"}, {"id": "f3ccd403-de06-4e55-9ba0-14f3b2c6b70c", "attributes": {"plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "dimension": 1, "id": "f3ccd403-de06-4e55-9ba0-14f3b2c6b70c", "doc": null, "ticker": {"id": "4b360841-4ab5-446b-b722-d136b6e2701d", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "c16f342a-5128-4542-9d80-5c7e680e1a9e", "attributes": {"line_color": {"value": "#016c59"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "c16f342a-5128-4542-9d80-5c7e680e1a9e", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "349147be-4a55-4549-85ec-d9f05d14d8af", "attributes": {"line_color": {"value": "#014636"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "349147be-4a55-4549-85ec-d9f05d14d8af", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "attributes": {"tools": [{"id": "bc7435fb-8c25-4bdf-b509-7360d23b3e15", "type": "PanTool"}, {"id": "4b8b0018-c122-47d7-ac92-baa8fed84d52", "type": "WheelZoomTool"}, {"id": "d116f6bc-d89e-4be2-8af6-00add845b655", "type": "BoxZoomTool"}, {"id": "7f4ef89f-fb22-490c-8321-652a33fc072e", "type": "PreviewSaveTool"}, {"id": "3c93719e-47c0-4586-8a75-50cc4514d8d7", "type": "ResizeTool"}, {"id": "587eefca-cd67-4c4a-b774-e26186a3ab8b", "type": "ResetTool"}, {"id": "c4ee16e6-0e32-4742-82a9-6af3c0655dd0", "type": "HelpTool"}], "x_range": {"id": "bce85762-8477-45b2-acb0-a71ac1606f78", "type": "Range1d"}, "extra_y_ranges": {}, "doc": null, "title": "Monthly Cloudy Days", "extra_x_ranges": {}, "below": [{"id": "8482485e-0efd-43e4-9e52-fbd28d4fbf4d", "type": "LinearAxis"}], "right": [], "above": [], "y_range": {"id": "a086fe67-8527-4d41-9a4e-5b8b9d514fc2", "type": "DataRange1d"}, "renderers": [{"id": "8482485e-0efd-43e4-9e52-fbd28d4fbf4d", "type": "LinearAxis"}, {"id": "2efed53c-791a-4389-a168-3149aae93678", "type": "Grid"}, {"id": "da599d87-16ee-4160-879a-ea25bcd90ab5", "type": "LinearAxis"}, {"id": "f3ccd403-de06-4e55-9ba0-14f3b2c6b70c", "type": "Grid"}, {"id": "58b8f201-2c4a-4832-a75b-6e6c74a00326", "type": "Legend"}, {"id": "f77df6d7-72a4-4ae8-a1e4-7d4b4becd4b4", "type": "GlyphRenderer"}, {"id": "a92ff025-72ad-4739-98ac-7d0404235003", "type": "GlyphRenderer"}, {"id": "1582098a-6425-4a4e-b665-d21935e6ff9b", "type": "GlyphRenderer"}, {"id": "e8851ddd-934f-40d8-b80a-1d935a2330bc", "type": "GlyphRenderer"}, {"id": "84291cb8-b8b8-4df8-9ceb-fad5016e279e", "type": "GlyphRenderer"}], "id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "tags": [], "left": [{"id": "da599d87-16ee-4160-879a-ea25bcd90ab5", "type": "LinearAxis"}], "tool_events": {"id": "d7148ed7-b28b-4952-b17c-0c0a45557926", "type": "ToolEvents"}}, "type": "Plot", "subtype": "Figure"}, {"id": "d7148ed7-b28b-4952-b17c-0c0a45557926", "attributes": {"doc": null, "geometries": [], "id": "d7148ed7-b28b-4952-b17c-0c0a45557926", "tags": []}, "type": "ToolEvents"}, {"id": "7f4ef89f-fb22-490c-8321-652a33fc072e", "attributes": {"plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "7f4ef89f-fb22-490c-8321-652a33fc072e", "tags": []}, "type": "PreviewSaveTool"}, {"id": "5e35841f-1ab5-4a8c-8bfe-0c362548607b", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [20, 23, 20, 13, 17, 15, 4, 14, 16, 21, 19, 13, 11, 14, 20, 13, 12, 5, 13, 19, 15, 5, 15, 0, 0, 0]}, "callback": null, "doc": null, "id": "5e35841f-1ab5-4a8c-8bfe-0c362548607b", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "9c86d6ba-e087-4d8f-8e6e-58ce1d8207fc", "attributes": {"line_color": {"value": "#02818a"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "9c86d6ba-e087-4d8f-8e6e-58ce1d8207fc", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "436b1c5d-2887-484a-9a85-96b800db05e3", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "436b1c5d-2887-484a-9a85-96b800db05e3", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "4595e065-33f8-4a01-9523-42e5ee97a0ed", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [17, 12, 11, 15, 19, 15, 10, 12, 12, 12, 7, 4, 23, 15, 21, 14, 11, 12, 9, 18, 10, 9, 14, 0, 0, 0]}, "callback": null, "doc": null, "id": "4595e065-33f8-4a01-9523-42e5ee97a0ed", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "9c4c6a38-5917-494b-a9e9-9e24a6473bce", "attributes": {"line_color": {"value": "#3690c0"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "9c4c6a38-5917-494b-a9e9-9e24a6473bce", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "068a306a-1da2-4f27-aa56-a42039bc7043", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [9, 18, 19, 18, 18, 14, 17, 15, 14, 9, 17, 10, 14, 16, 13, 9, 12, 10, 11, 13, 10, 9, 9, 0, 0, 0]}, "callback": null, "doc": null, "id": "068a306a-1da2-4f27-aa56-a42039bc7043", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "3c93719e-47c0-4586-8a75-50cc4514d8d7", "attributes": {"plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "3c93719e-47c0-4586-8a75-50cc4514d8d7", "tags": []}, "type": "ResizeTool"}, {"id": "8482485e-0efd-43e4-9e52-fbd28d4fbf4d", "attributes": {"axis_label": "Year", "plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "id": "8482485e-0efd-43e4-9e52-fbd28d4fbf4d", "doc": null, "ticker": {"id": "5b478055-568d-4a61-a30f-bd63ee630ee2", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "2fe28651-e40b-4fd6-9017-7d3cf80d331b", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}, {"id": "ba1ccd8d-6fb6-4055-a9f1-9fc9b4208bab", "attributes": {"doc": null, "id": "ba1ccd8d-6fb6-4055-a9f1-9fc9b4208bab", "tags": []}, "type": "BasicTickFormatter"}, {"id": "84291cb8-b8b8-4df8-9ceb-fad5016e279e", "attributes": {"data_source": {"id": "068a306a-1da2-4f27-aa56-a42039bc7043", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "fcde883f-077f-4175-906d-3d1c952fe3db", "type": "Line"}, "glyph": {"id": "756ac16d-b924-422e-9fad-88a8142fae84", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "84291cb8-b8b8-4df8-9ceb-fad5016e279e", "tags": []}, "type": "GlyphRenderer"}, {"id": "4b8b0018-c122-47d7-ac92-baa8fed84d52", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "4b8b0018-c122-47d7-ac92-baa8fed84d52", "tags": []}, "type": "WheelZoomTool"}, {"id": "c4ee16e6-0e32-4742-82a9-6af3c0655dd0", "attributes": {"plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "c4ee16e6-0e32-4742-82a9-6af3c0655dd0", "tags": []}, "type": "HelpTool"}, {"id": "c3a0793a-8e58-44f9-8dcb-802912a8452e", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [14, 13, 18, 16, 13, 20, 13, 15, 14, 15, 20, 12, 21, 14, 18, 11, 12, 6, 19, 13, 7, 17, 12, 0, 0, 0]}, "callback": null, "doc": null, "id": "c3a0793a-8e58-44f9-8dcb-802912a8452e", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "1582098a-6425-4a4e-b665-d21935e6ff9b", "attributes": {"data_source": {"id": "c3a0793a-8e58-44f9-8dcb-802912a8452e", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "c7f0e41a-9921-453f-8a0e-ae0d20d53478", "type": "Line"}, "glyph": {"id": "9c86d6ba-e087-4d8f-8e6e-58ce1d8207fc", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "1582098a-6425-4a4e-b665-d21935e6ff9b", "tags": []}, "type": "GlyphRenderer"}, {"id": "fcde883f-077f-4175-906d-3d1c952fe3db", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "fcde883f-077f-4175-906d-3d1c952fe3db", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "bce85762-8477-45b2-acb0-a71ac1606f78", "attributes": {"end": 2015, "callback": null, "id": "bce85762-8477-45b2-acb0-a71ac1606f78", "doc": null, "start": 1990, "tags": []}, "type": "Range1d"}, {"id": "da599d87-16ee-4160-879a-ea25bcd90ab5", "attributes": {"plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "id": "da599d87-16ee-4160-879a-ea25bcd90ab5", "doc": null, "ticker": {"id": "4b360841-4ab5-446b-b722-d136b6e2701d", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "ba1ccd8d-6fb6-4055-a9f1-9fc9b4208bab", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}, {"id": "58b8f201-2c4a-4832-a75b-6e6c74a00326", "attributes": {"plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "legends": [["July", [{"id": "f77df6d7-72a4-4ae8-a1e4-7d4b4becd4b4", "type": "GlyphRenderer"}]], ["August", [{"id": "a92ff025-72ad-4739-98ac-7d0404235003", "type": "GlyphRenderer"}]], ["September", [{"id": "1582098a-6425-4a4e-b665-d21935e6ff9b", "type": "GlyphRenderer"}]], ["October", [{"id": "e8851ddd-934f-40d8-b80a-1d935a2330bc", "type": "GlyphRenderer"}]], ["November", [{"id": "84291cb8-b8b8-4df8-9ceb-fad5016e279e", "type": "GlyphRenderer"}]]], "doc": null, "id": "58b8f201-2c4a-4832-a75b-6e6c74a00326", "tags": []}, "type": "Legend"}, {"id": "2efed53c-791a-4389-a168-3149aae93678", "attributes": {"plot": {"id": "68293e2e-cd0e-4773-95ed-c4c245cb8578", "type": "Plot", "subtype": "Figure"}, "dimension": 0, "id": "2efed53c-791a-4389-a168-3149aae93678", "doc": null, "ticker": {"id": "5b478055-568d-4a61-a30f-bd63ee630ee2", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "4b360841-4ab5-446b-b722-d136b6e2701d", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "4b360841-4ab5-446b-b722-d136b6e2701d", "tags": []}, "type": "BasicTicker"}, {"id": "c7f0e41a-9921-453f-8a0e-ae0d20d53478", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "c7f0e41a-9921-453f-8a0e-ae0d20d53478", "x": {"field": "x"}, "tags": []}, "type": "Line"}];
        Bokeh.load_models(all_models);
        var plots = [{'modelid': '68293e2e-cd0e-4773-95ed-c4c245cb8578', 'elementid': '5b89dfb3-0bd0-482b-9e35-0acb63e01883', 'modeltype': 'Plot'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="5b89dfb3-0bd0-482b-9e35-0acb63e01883"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "ebc8a196-42cb-4c41-8f1d-6999d76eb0e0", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "ebc8a196-42cb-4c41-8f1d-6999d76eb0e0", "tags": []}, "type": "BasicTicker"}, {"id": "41e3fc70-b574-44d3-b0c6-13efa20ebf81", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 19, 18, 24]}, "callback": null, "doc": null, "id": "41e3fc70-b574-44d3-b0c6-13efa20ebf81", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "831f397d-2858-4caa-a0f1-d6d0287b829e", "attributes": {"data_source": {"id": "6ab0c722-302b-40f3-aa73-7ec54ba79b07", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "69a05944-0130-4882-a180-e3b20edb64e1", "type": "Line"}, "glyph": {"id": "0e10b42d-a0e9-40ba-a466-63312225186d", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "831f397d-2858-4caa-a0f1-d6d0287b829e", "tags": []}, "type": "GlyphRenderer"}, {"id": "3232e79f-601a-451b-a99b-71cadc9d089a", "attributes": {"doc": null, "id": "3232e79f-601a-451b-a99b-71cadc9d089a", "tags": []}, "type": "BasicTickFormatter"}, {"id": "73870cbf-695f-4306-83e2-ffc256b017c2", "attributes": {"data_source": {"id": "cd57a879-069f-4174-b6ca-189a66843751", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "0e4186f8-866c-409d-b836-973e428378d9", "type": "Line"}, "glyph": {"id": "36b202f4-2918-4fdf-a317-d6f5aa51022d", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "73870cbf-695f-4306-83e2-ffc256b017c2", "tags": []}, "type": "GlyphRenderer"}, {"id": "0ff6827e-1a73-4c09-876d-a4b3d8b578ac", "attributes": {"line_color": {"value": "#014636"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "0ff6827e-1a73-4c09-876d-a4b3d8b578ac", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "03a89c0f-5abf-47ad-8a96-c51111459f7a", "attributes": {"line_color": {"value": "#3690c0"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "03a89c0f-5abf-47ad-8a96-c51111459f7a", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "28dfa31e-aee0-4708-8bf6-6a4858309248", "attributes": {"data_source": {"id": "c2f0f87d-661e-4918-8906-0b82fb1cfba2", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "0b88bf72-f517-4223-bc96-5dd44c9f5576", "type": "Line"}, "glyph": {"id": "03a89c0f-5abf-47ad-8a96-c51111459f7a", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "28dfa31e-aee0-4708-8bf6-6a4858309248", "tags": []}, "type": "GlyphRenderer"}, {"id": "cd57a879-069f-4174-b6ca-189a66843751", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [30, 30, 30, 30, 30, 30, 30, 30, 28, 30, 30, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 24, 24, 20]}, "callback": null, "doc": null, "id": "cd57a879-069f-4174-b6ca-189a66843751", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "c2f0f87d-661e-4918-8906-0b82fb1cfba2", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 15, 29, 23]}, "callback": null, "doc": null, "id": "c2f0f87d-661e-4918-8906-0b82fb1cfba2", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "9d299f9a-c918-4c4f-8480-ff3330e3c202", "attributes": {"plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "legends": [["July", [{"id": "c7435004-bc8d-42d4-a6ea-bb5c44652843", "type": "GlyphRenderer"}]], ["August", [{"id": "831f397d-2858-4caa-a0f1-d6d0287b829e", "type": "GlyphRenderer"}]], ["September", [{"id": "31c7e86d-5155-4b8d-8cbd-2147697ef799", "type": "GlyphRenderer"}]], ["October", [{"id": "28dfa31e-aee0-4708-8bf6-6a4858309248", "type": "GlyphRenderer"}]], ["November", [{"id": "73870cbf-695f-4306-83e2-ffc256b017c2", "type": "GlyphRenderer"}]]], "doc": null, "id": "9d299f9a-c918-4c4f-8480-ff3330e3c202", "tags": []}, "type": "Legend"}, {"id": "b5f7fe84-68a1-42fc-b731-ec3f6de3f379", "attributes": {"axis_label": "Year", "plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "id": "b5f7fe84-68a1-42fc-b731-ec3f6de3f379", "doc": null, "ticker": {"id": "59b91bb6-5298-4a53-b66f-65b33955171f", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "81799b7d-bf97-4295-be47-b3fa4fe2e0b9", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}, {"id": "c7435004-bc8d-42d4-a6ea-bb5c44652843", "attributes": {"data_source": {"id": "debd463b-40b6-4ff0-91cf-1894ee36ec46", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "fc881ede-ee64-4fb4-bddd-66517e4e2338", "type": "Line"}, "glyph": {"id": "0ff6827e-1a73-4c09-876d-a4b3d8b578ac", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "c7435004-bc8d-42d4-a6ea-bb5c44652843", "tags": []}, "type": "GlyphRenderer"}, {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "attributes": {"tools": [{"id": "b7dbe5ca-0440-40f2-aeb0-d50ccaab40df", "type": "PanTool"}, {"id": "80fae01d-a5c1-448f-af96-c5714bf2aca6", "type": "WheelZoomTool"}, {"id": "31d5abd4-cd67-4f48-9c6a-d29c55e66aa9", "type": "BoxZoomTool"}, {"id": "06a85518-8aed-4154-bfc6-939d0e7ef354", "type": "PreviewSaveTool"}, {"id": "ea0b8a20-9f92-4cd3-97bd-88cecd46f946", "type": "ResizeTool"}, {"id": "58d3bba7-bf3d-49b3-afd3-9370f0650957", "type": "ResetTool"}, {"id": "9e14b06d-4cb1-4c9c-ba6b-80272584c574", "type": "HelpTool"}], "x_range": {"id": "3405c7aa-c31f-4389-8ccb-b2814eeaf493", "type": "Range1d"}, "extra_y_ranges": {}, "doc": null, "title": "Monthly Cloud Cover Samples", "extra_x_ranges": {}, "below": [{"id": "b5f7fe84-68a1-42fc-b731-ec3f6de3f379", "type": "LinearAxis"}], "right": [], "above": [], "plot_height": 300, "y_range": {"id": "fe0feeec-af2d-42bd-a634-b2832922e8ef", "type": "DataRange1d"}, "renderers": [{"id": "b5f7fe84-68a1-42fc-b731-ec3f6de3f379", "type": "LinearAxis"}, {"id": "3051e7fc-ef9a-47c8-94ec-7e98634e5ae9", "type": "Grid"}, {"id": "d84a89f2-fe7f-49f6-bc66-edd55c61bf94", "type": "LinearAxis"}, {"id": "62952198-e836-449b-823c-5895246afbb4", "type": "Grid"}, {"id": "9d299f9a-c918-4c4f-8480-ff3330e3c202", "type": "Legend"}, {"id": "c7435004-bc8d-42d4-a6ea-bb5c44652843", "type": "GlyphRenderer"}, {"id": "831f397d-2858-4caa-a0f1-d6d0287b829e", "type": "GlyphRenderer"}, {"id": "31c7e86d-5155-4b8d-8cbd-2147697ef799", "type": "GlyphRenderer"}, {"id": "28dfa31e-aee0-4708-8bf6-6a4858309248", "type": "GlyphRenderer"}, {"id": "73870cbf-695f-4306-83e2-ffc256b017c2", "type": "GlyphRenderer"}], "id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "tags": [], "left": [{"id": "d84a89f2-fe7f-49f6-bc66-edd55c61bf94", "type": "LinearAxis"}], "tool_events": {"id": "7c64df51-63bd-41a1-8f8d-5fe6fee01634", "type": "ToolEvents"}}, "type": "Plot", "subtype": "Figure"}, {"id": "69a05944-0130-4882-a180-e3b20edb64e1", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "69a05944-0130-4882-a180-e3b20edb64e1", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "7c64df51-63bd-41a1-8f8d-5fe6fee01634", "attributes": {"doc": null, "geometries": [], "id": "7c64df51-63bd-41a1-8f8d-5fe6fee01634", "tags": []}, "type": "ToolEvents"}, {"id": "fc881ede-ee64-4fb4-bddd-66517e4e2338", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "fc881ede-ee64-4fb4-bddd-66517e4e2338", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "3405c7aa-c31f-4389-8ccb-b2814eeaf493", "attributes": {"end": 2015, "callback": null, "id": "3405c7aa-c31f-4389-8ccb-b2814eeaf493", "doc": null, "start": 1990, "tags": []}, "type": "Range1d"}, {"id": "6ab0c722-302b-40f3-aa73-7ec54ba79b07", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [31, 31, 31, 31, 31, 31, 9, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 30, 31, 31, 31, 30, 31, 16, 21, 27]}, "callback": null, "doc": null, "id": "6ab0c722-302b-40f3-aa73-7ec54ba79b07", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "b7dbe5ca-0440-40f2-aeb0-d50ccaab40df", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "b7dbe5ca-0440-40f2-aeb0-d50ccaab40df", "tags": []}, "type": "PanTool"}, {"id": "fe0feeec-af2d-42bd-a634-b2832922e8ef", "attributes": {"doc": null, "names": [], "callback": null, "renderers": [], "id": "fe0feeec-af2d-42bd-a634-b2832922e8ef", "tags": []}, "type": "DataRange1d"}, {"id": "debd463b-40b6-4ff0-91cf-1894ee36ec46", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [31, 31, 31, 31, 31, 31, 3, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 23, 29]}, "callback": null, "doc": null, "id": "debd463b-40b6-4ff0-91cf-1894ee36ec46", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "80fae01d-a5c1-448f-af96-c5714bf2aca6", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "80fae01d-a5c1-448f-af96-c5714bf2aca6", "tags": []}, "type": "WheelZoomTool"}, {"id": "9e14b06d-4cb1-4c9c-ba6b-80272584c574", "attributes": {"plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "9e14b06d-4cb1-4c9c-ba6b-80272584c574", "tags": []}, "type": "HelpTool"}, {"id": "59b91bb6-5298-4a53-b66f-65b33955171f", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "59b91bb6-5298-4a53-b66f-65b33955171f", "tags": []}, "type": "BasicTicker"}, {"id": "0e4186f8-866c-409d-b836-973e428378d9", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "0e4186f8-866c-409d-b836-973e428378d9", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "31c7e86d-5155-4b8d-8cbd-2147697ef799", "attributes": {"data_source": {"id": "41e3fc70-b574-44d3-b0c6-13efa20ebf81", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "d9e20faa-ccb7-45ee-8578-279cfe30d982", "type": "Line"}, "glyph": {"id": "21ee441b-55ea-4937-957a-a6a79b96268a", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "31c7e86d-5155-4b8d-8cbd-2147697ef799", "tags": []}, "type": "GlyphRenderer"}, {"id": "3051e7fc-ef9a-47c8-94ec-7e98634e5ae9", "attributes": {"plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "dimension": 0, "id": "3051e7fc-ef9a-47c8-94ec-7e98634e5ae9", "doc": null, "ticker": {"id": "59b91bb6-5298-4a53-b66f-65b33955171f", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "81799b7d-bf97-4295-be47-b3fa4fe2e0b9", "attributes": {"doc": null, "id": "81799b7d-bf97-4295-be47-b3fa4fe2e0b9", "tags": []}, "type": "BasicTickFormatter"}, {"id": "62952198-e836-449b-823c-5895246afbb4", "attributes": {"plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "dimension": 1, "id": "62952198-e836-449b-823c-5895246afbb4", "doc": null, "ticker": {"id": "ebc8a196-42cb-4c41-8f1d-6999d76eb0e0", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "0b88bf72-f517-4223-bc96-5dd44c9f5576", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "0b88bf72-f517-4223-bc96-5dd44c9f5576", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "58d3bba7-bf3d-49b3-afd3-9370f0650957", "attributes": {"plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "58d3bba7-bf3d-49b3-afd3-9370f0650957", "tags": []}, "type": "ResetTool"}, {"id": "0e10b42d-a0e9-40ba-a466-63312225186d", "attributes": {"line_color": {"value": "#016c59"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "0e10b42d-a0e9-40ba-a466-63312225186d", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "21ee441b-55ea-4937-957a-a6a79b96268a", "attributes": {"line_color": {"value": "#02818a"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "21ee441b-55ea-4937-957a-a6a79b96268a", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "d9e20faa-ccb7-45ee-8578-279cfe30d982", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "d9e20faa-ccb7-45ee-8578-279cfe30d982", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "06a85518-8aed-4154-bfc6-939d0e7ef354", "attributes": {"plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "06a85518-8aed-4154-bfc6-939d0e7ef354", "tags": []}, "type": "PreviewSaveTool"}, {"id": "36b202f4-2918-4fdf-a317-d6f5aa51022d", "attributes": {"line_color": {"value": "#67a9cf"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "36b202f4-2918-4fdf-a317-d6f5aa51022d", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "ea0b8a20-9f92-4cd3-97bd-88cecd46f946", "attributes": {"plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "ea0b8a20-9f92-4cd3-97bd-88cecd46f946", "tags": []}, "type": "ResizeTool"}, {"id": "31d5abd4-cd67-4f48-9c6a-d29c55e66aa9", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "31d5abd4-cd67-4f48-9c6a-d29c55e66aa9", "tags": []}, "type": "BoxZoomTool"}, {"id": "d84a89f2-fe7f-49f6-bc66-edd55c61bf94", "attributes": {"plot": {"id": "1e75e982-59a5-4e67-8947-1b11391c0f23", "type": "Plot", "subtype": "Figure"}, "id": "d84a89f2-fe7f-49f6-bc66-edd55c61bf94", "doc": null, "ticker": {"id": "ebc8a196-42cb-4c41-8f1d-6999d76eb0e0", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "3232e79f-601a-451b-a99b-71cadc9d089a", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}];
        Bokeh.load_models(all_models);
        var plots = [{'modelid': '1e75e982-59a5-4e67-8947-1b11391c0f23', 'elementid': 'd2fca745-9f46-40b7-8e1d-76e542d1ef8d', 'modeltype': 'Plot'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="d2fca745-9f46-40b7-8e1d-76e542d1ef8d"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;On the whole, the number of cloudy days seems to reflect the trend with average cloud cover - it's actually becoming more sunny as time progresses. That said, we need to be careful in how we view this number - because there weren't as many samples in 2015 as previous years, the number of days can get thrown off. In context though, even if most days not recorded were in fact cloudy, the overall count for 2015 would still be lower than previous years.&lt;/p&gt;
&lt;h1 id="Tracking-Precipitation-Chances"&gt;Tracking Precipitation Chances&lt;a class="anchor-link" href="#Tracking-Precipitation-Chances"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;In addition to checking cloud cover, I wanted to check precipitation data as well - what is the average precipitation chance over a month, and how many days during a month is rain likely? The thinking is that days with a high-precipitation chance will also be days in which it is cloudy or depressing.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[5]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;safe_precip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;precipProbability&amp;#39;&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;precipProbability&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;monthly_avg_precip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;dates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DatetimeIndex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;freq&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;D&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;closed&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;left&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;precip_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;safe_precip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cary_forecast&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;currently&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt; &lt;span class="n"&gt;dates&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;precip_samples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;precip_vals&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nanmean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;precip_vals&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;precip_samples&lt;/span&gt;

&lt;span class="n"&gt;monthly_avg_precip_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;monthly_avg_precip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Monthly Average Precipitation Chance&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
           &lt;span class="n"&gt;x_range&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1990&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2015&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
          &lt;span class="n"&gt;x_axis_label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Year&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monthly_avg_precip_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;legend&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;months_str&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;Palette&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "40b83047-3e6f-459d-b005-988e7c72ffeb", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "40b83047-3e6f-459d-b005-988e7c72ffeb", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "f77ee919-b8d8-47f7-a503-8d146e85fe54", "attributes": {"line_color": {"value": "#3690c0"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "f77ee919-b8d8-47f7-a503-8d146e85fe54", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "5ab374c6-7820-4435-bcfd-31d3e2ac3a7f", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "5ab374c6-7820-4435-bcfd-31d3e2ac3a7f", "tags": []}, "type": "PanTool"}, {"id": "9d902dfd-3f7c-4970-9161-cdb8fde2d815", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0.023870967741935485, 0.0, 0.053548387096774196, 0.04387096774193548, 0.026451612903225806, 0.02903225806451613, 0.025161290322580646, 0.04483870967741936, 0.04096774193548387, 0.07419354838709677, 0.0, 0.004193548387096774, 0.08064516129032258, 0.06516129032258063, 0.02225806451612903, 0.051612903225806445, 0.08451612903225807, 0.09451612903225808, 0.023548387096774193, 0.024193548387096774, 0.04290322580645162, 0.03774193548387097, 0.053548387096774196, 0.03354838709677419, 0.06387096774193549, 0.09709677419354838]}, "callback": null, "doc": null, "id": "9d902dfd-3f7c-4970-9161-cdb8fde2d815", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "8c95b964-2a30-4a3b-baf2-8a82f67ab197", "attributes": {"line_color": {"value": "#02818a"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "8c95b964-2a30-4a3b-baf2-8a82f67ab197", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "5edfc45e-4904-4866-a9d0-00c86b88a334", "attributes": {"doc": null, "names": [], "callback": null, "renderers": [], "id": "5edfc45e-4904-4866-a9d0-00c86b88a334", "tags": []}, "type": "DataRange1d"}, {"id": "f789b942-86b5-4a0c-b92e-da732ee401b6", "attributes": {"data_source": {"id": "0889d3f8-878a-4bfb-bd5d-f3d90d652993", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "34fe74a3-302c-42ef-8e64-c3a897607a31", "type": "Line"}, "glyph": {"id": "bb411c59-5525-4a1f-bf97-020cb2d0956f", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "f789b942-86b5-4a0c-b92e-da732ee401b6", "tags": []}, "type": "GlyphRenderer"}, {"id": "8b1f4e78-4335-47da-9b93-7279d23e2190", "attributes": {"plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "8b1f4e78-4335-47da-9b93-7279d23e2190", "tags": []}, "type": "ResizeTool"}, {"id": "cfc78640-7a6c-4a95-8a87-c6e22739d822", "attributes": {"line_color": {"value": "#014636"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "cfc78640-7a6c-4a95-8a87-c6e22739d822", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "2d70dbe8-3790-4bc4-8e6c-8c0ca118a691", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "2d70dbe8-3790-4bc4-8e6c-8c0ca118a691", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "a16eafea-6839-44a6-927b-535da6d3b12b", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "a16eafea-6839-44a6-927b-535da6d3b12b", "tags": []}, "type": "WheelZoomTool"}, {"id": "0889d3f8-878a-4bfb-bd5d-f3d90d652993", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0.0, 0.0, 0.07200000000000001, 0.055, 0.046, 0.10366666666666667, 0.03333333333333333, 0.044333333333333336, 0.06000000000000001, 0.068, 0.050333333333333334, 0.003, 0.07166666666666664, 0.03133333333333334, 0.049666666666666665, 0.06500000000000002, 0.059333333333333335, 0.043333333333333335, 0.09566666666666666, 0.068, 0.06866666666666667, 0.02866666666666667, 0.03333333333333333, 0.034333333333333334, 0.048, 0.11533333333333332]}, "callback": null, "doc": null, "id": "0889d3f8-878a-4bfb-bd5d-f3d90d652993", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "40927ad0-c92d-4536-a4e6-3653cf775eee", "attributes": {"line_color": {"value": "#016c59"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "40927ad0-c92d-4536-a4e6-3653cf775eee", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "7daef4d3-7474-46bb-ae10-988a2e7289b8", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "7daef4d3-7474-46bb-ae10-988a2e7289b8", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "78d0bf9b-ebf2-410b-9ad9-d2c788dde0d3", "attributes": {"plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "78d0bf9b-ebf2-410b-9ad9-d2c788dde0d3", "tags": []}, "type": "HelpTool"}, {"id": "4046a7a7-54eb-4143-b312-1cdeedf2076e", "attributes": {"end": 2015, "callback": null, "id": "4046a7a7-54eb-4143-b312-1cdeedf2076e", "doc": null, "start": 1990, "tags": []}, "type": "Range1d"}, {"id": "010421ab-2a6b-4325-8961-f04257749d30", "attributes": {"data_source": {"id": "5ee5b2b3-3ffe-433d-aaab-2feae182747c", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "40b83047-3e6f-459d-b005-988e7c72ffeb", "type": "Line"}, "glyph": {"id": "8c95b964-2a30-4a3b-baf2-8a82f67ab197", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "010421ab-2a6b-4325-8961-f04257749d30", "tags": []}, "type": "GlyphRenderer"}, {"id": "62b740f2-d8f3-4a77-a133-5f7d4831d7cb", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "62b740f2-d8f3-4a77-a133-5f7d4831d7cb", "tags": []}, "type": "BasicTicker"}, {"id": "296c7616-9c16-4c1c-976a-d9a70fe1c317", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "296c7616-9c16-4c1c-976a-d9a70fe1c317", "tags": []}, "type": "BasicTicker"}, {"id": "8eafc641-750a-4250-8d55-142a4b7352da", "attributes": {"data_source": {"id": "9c042862-08e8-49b0-b6fe-6a4af706889e", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "7daef4d3-7474-46bb-ae10-988a2e7289b8", "type": "Line"}, "glyph": {"id": "40927ad0-c92d-4536-a4e6-3653cf775eee", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "8eafc641-750a-4250-8d55-142a4b7352da", "tags": []}, "type": "GlyphRenderer"}, {"id": "126434f6-6e06-4dbc-837d-6a09538d9172", "attributes": {"plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "126434f6-6e06-4dbc-837d-6a09538d9172", "tags": []}, "type": "PreviewSaveTool"}, {"id": "97045d09-9b48-48c8-b2de-5c6d50842a26", "attributes": {"doc": null, "geometries": [], "id": "97045d09-9b48-48c8-b2de-5c6d50842a26", "tags": []}, "type": "ToolEvents"}, {"id": "b21c7115-c314-4758-b63a-6b93b4d5c699", "attributes": {"doc": null, "id": "b21c7115-c314-4758-b63a-6b93b4d5c699", "tags": []}, "type": "BasicTickFormatter"}, {"id": "2273402f-ba38-4f26-99d9-9d97c206e2e1", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "2273402f-ba38-4f26-99d9-9d97c206e2e1", "tags": []}, "type": "BoxZoomTool"}, {"id": "9d492ddc-b042-4ba2-94f0-505d6392aef8", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "9d492ddc-b042-4ba2-94f0-505d6392aef8", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "3aefcfc4-2d0a-47b3-b538-7a8abba0f20e", "attributes": {"plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "dimension": 0, "id": "3aefcfc4-2d0a-47b3-b538-7a8abba0f20e", "doc": null, "ticker": {"id": "62b740f2-d8f3-4a77-a133-5f7d4831d7cb", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "1d376d72-bb75-4714-8774-3690a1f3f419", "attributes": {"doc": null, "id": "1d376d72-bb75-4714-8774-3690a1f3f419", "tags": []}, "type": "BasicTickFormatter"}, {"id": "3810f9b8-d28e-4e13-941e-e7bf720a9a7c", "attributes": {"plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "3810f9b8-d28e-4e13-941e-e7bf720a9a7c", "tags": []}, "type": "ResetTool"}, {"id": "a3b04644-1bcb-4a61-ba68-61fbc72bf97e", "attributes": {"data_source": {"id": "a206bd87-c236-482e-93d0-605c1a9c95f6", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "9d492ddc-b042-4ba2-94f0-505d6392aef8", "type": "Line"}, "glyph": {"id": "cfc78640-7a6c-4a95-8a87-c6e22739d822", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "a3b04644-1bcb-4a61-ba68-61fbc72bf97e", "tags": []}, "type": "GlyphRenderer"}, {"id": "a206bd87-c236-482e-93d0-605c1a9c95f6", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0.0, 0.017096774193548388, 0.0, 0.022903225806451613, 0.017096774193548388, 0.0, 0.023870967741935485, 0.0464516129032258, 0.0006451612903225806, 0.04129032258064516, 0.09096774193548388, 0.05419354838709677, 0.04935483870967742, 0.04161290322580645, 0.008064516129032258, 0.021290322580645157, 0.025161290322580646, 0.001935483870967742, 0.025161290322580646, 0.03612903225806452, 0.043548387096774194, 0.028064516129032258, 0.0, 0.055806451612903235, 0.053548387096774196, 0.0067741935483870966]}, "callback": null, "doc": null, "id": "a206bd87-c236-482e-93d0-605c1a9c95f6", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "34fe74a3-302c-42ef-8e64-c3a897607a31", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "34fe74a3-302c-42ef-8e64-c3a897607a31", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "b6e88a9b-91cd-40ab-9e0f-c5245073e289", "attributes": {"data_source": {"id": "9d902dfd-3f7c-4970-9161-cdb8fde2d815", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "2d70dbe8-3790-4bc4-8e6c-8c0ca118a691", "type": "Line"}, "glyph": {"id": "f77ee919-b8d8-47f7-a503-8d146e85fe54", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "b6e88a9b-91cd-40ab-9e0f-c5245073e289", "tags": []}, "type": "GlyphRenderer"}, {"id": "ebc97451-555c-41b9-aace-0e157b40d17c", "attributes": {"axis_label": "Year", "plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "id": "ebc97451-555c-41b9-aace-0e157b40d17c", "doc": null, "ticker": {"id": "62b740f2-d8f3-4a77-a133-5f7d4831d7cb", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "b21c7115-c314-4758-b63a-6b93b4d5c699", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}, {"id": "be6a4786-c187-4242-9526-9437e931bed9", "attributes": {"plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "id": "be6a4786-c187-4242-9526-9437e931bed9", "doc": null, "ticker": {"id": "296c7616-9c16-4c1c-976a-d9a70fe1c317", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "1d376d72-bb75-4714-8774-3690a1f3f419", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}, {"id": "bf6cc820-3fb2-4015-8cfe-9b1455501d55", "attributes": {"plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "dimension": 1, "id": "bf6cc820-3fb2-4015-8cfe-9b1455501d55", "doc": null, "ticker": {"id": "296c7616-9c16-4c1c-976a-d9a70fe1c317", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "5ee5b2b3-3ffe-433d-aaab-2feae182747c", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0.0, 0.025333333333333333, 0.0, 0.0, 0.023666666666666666, 0.043000000000000003, 0.034666666666666665, 0.028333333333333332, 0.03233333333333333, 0.10066666666666668, 0.10966666666666666, 0.04066666666666666, 0.08533333333333333, 0.057, 0.082, 0.0016666666666666668, 0.06466666666666666, 0.0, 0.09366666666666665, 0.042, 0.063, 0.08499999999999999, 0.11500000000000002, 0.03766666666666667, 0.05366666666666666, 0.06233333333333334]}, "callback": null, "doc": null, "id": "5ee5b2b3-3ffe-433d-aaab-2feae182747c", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "322ec25e-4977-4663-afca-ced29bfcc24d", "attributes": {"plot": {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "type": "Plot", "subtype": "Figure"}, "legends": [["July", [{"id": "a3b04644-1bcb-4a61-ba68-61fbc72bf97e", "type": "GlyphRenderer"}]], ["August", [{"id": "8eafc641-750a-4250-8d55-142a4b7352da", "type": "GlyphRenderer"}]], ["September", [{"id": "010421ab-2a6b-4325-8961-f04257749d30", "type": "GlyphRenderer"}]], ["October", [{"id": "b6e88a9b-91cd-40ab-9e0f-c5245073e289", "type": "GlyphRenderer"}]], ["November", [{"id": "f789b942-86b5-4a0c-b92e-da732ee401b6", "type": "GlyphRenderer"}]]], "doc": null, "id": "322ec25e-4977-4663-afca-ced29bfcc24d", "tags": []}, "type": "Legend"}, {"id": "9c042862-08e8-49b0-b6fe-6a4af706889e", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0.022903225806451613, 0.04419354838709678, 0.034193548387096775, 0.021935483870967745, 0.025483870967741937, 0.028064516129032258, 0.024193548387096774, 0.009354838709677418, 0.0, 0.025483870967741937, 0.07870967741935483, 0.0, 0.07096774193548386, 0.060000000000000005, 0.07096774193548387, 0.04774193548387097, 0.034516129032258064, 0.0, 0.01064516129032258, 0.05064516129032258, 0.0, 0.02, 0.022903225806451613, 0.020967741935483872, 0.052258064516129035, 0.026774193548387098]}, "callback": null, "doc": null, "id": "9c042862-08e8-49b0-b6fe-6a4af706889e", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "attributes": {"tools": [{"id": "5ab374c6-7820-4435-bcfd-31d3e2ac3a7f", "type": "PanTool"}, {"id": "a16eafea-6839-44a6-927b-535da6d3b12b", "type": "WheelZoomTool"}, {"id": "2273402f-ba38-4f26-99d9-9d97c206e2e1", "type": "BoxZoomTool"}, {"id": "126434f6-6e06-4dbc-837d-6a09538d9172", "type": "PreviewSaveTool"}, {"id": "8b1f4e78-4335-47da-9b93-7279d23e2190", "type": "ResizeTool"}, {"id": "3810f9b8-d28e-4e13-941e-e7bf720a9a7c", "type": "ResetTool"}, {"id": "78d0bf9b-ebf2-410b-9ad9-d2c788dde0d3", "type": "HelpTool"}], "x_range": {"id": "4046a7a7-54eb-4143-b312-1cdeedf2076e", "type": "Range1d"}, "extra_y_ranges": {}, "doc": null, "title": "Monthly Average Precipitation Chance", "extra_x_ranges": {}, "below": [{"id": "ebc97451-555c-41b9-aace-0e157b40d17c", "type": "LinearAxis"}], "right": [], "above": [], "y_range": {"id": "5edfc45e-4904-4866-a9d0-00c86b88a334", "type": "DataRange1d"}, "renderers": [{"id": "ebc97451-555c-41b9-aace-0e157b40d17c", "type": "LinearAxis"}, {"id": "3aefcfc4-2d0a-47b3-b538-7a8abba0f20e", "type": "Grid"}, {"id": "be6a4786-c187-4242-9526-9437e931bed9", "type": "LinearAxis"}, {"id": "bf6cc820-3fb2-4015-8cfe-9b1455501d55", "type": "Grid"}, {"id": "322ec25e-4977-4663-afca-ced29bfcc24d", "type": "Legend"}, {"id": "a3b04644-1bcb-4a61-ba68-61fbc72bf97e", "type": "GlyphRenderer"}, {"id": "8eafc641-750a-4250-8d55-142a4b7352da", "type": "GlyphRenderer"}, {"id": "010421ab-2a6b-4325-8961-f04257749d30", "type": "GlyphRenderer"}, {"id": "b6e88a9b-91cd-40ab-9e0f-c5245073e289", "type": "GlyphRenderer"}, {"id": "f789b942-86b5-4a0c-b92e-da732ee401b6", "type": "GlyphRenderer"}], "id": "f700bb3b-d41c-4877-9f5c-9c7737a13924", "tags": [], "left": [{"id": "be6a4786-c187-4242-9526-9437e931bed9", "type": "LinearAxis"}], "tool_events": {"id": "97045d09-9b48-48c8-b2de-5c6d50842a26", "type": "ToolEvents"}}, "type": "Plot", "subtype": "Figure"}, {"id": "bb411c59-5525-4a1f-bf97-020cb2d0956f", "attributes": {"line_color": {"value": "#67a9cf"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "bb411c59-5525-4a1f-bf97-020cb2d0956f", "x": {"field": "x"}, "tags": []}, "type": "Line"}];
        Bokeh.load_models(all_models);
        var plots = [{'modelid': 'f700bb3b-d41c-4877-9f5c-9c7737a13924', 'elementid': 'fe48a963-4ff4-44e1-8d01-b095adafd533', 'modeltype': 'Plot'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="fe48a963-4ff4-44e1-8d01-b095adafd533"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;As we can see from the chart, the average chance of precipitation over a month more or less stays within a band of 0 - .1 for all months over all years. This is further evidence that the past few months are no more cloudy or rainy than previous years. Like the cloud cover though, we still want to get a count of all the rainy days, in addition to the average chance. We'll define a "rainy day" as any day in which the chance of rain is greater than 25%.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[6]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;monthly_rainy_days&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;dates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DatetimeIndex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;month&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                             &lt;span class="n"&gt;freq&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;D&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;closed&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;left&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;precip_prob_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;safe_precip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cary_forecast&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;currently&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt; &lt;span class="n"&gt;dates&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;precip_prob_samples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;precip_prob_vals&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="n"&gt;precip_days&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;prob&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;25&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;prob&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;precip_prob_vals&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;count_nonzero&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;precip_days&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;precip_prob_samples&lt;/span&gt;

&lt;span class="n"&gt;monthly_precip_days_vals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;monthly_rainy_days&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;monthly_precip_samples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;monthly_rainy_days&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Monthly Rainy Days&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
           &lt;span class="n"&gt;x_range&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1990&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2015&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
          &lt;span class="n"&gt;x_axis_label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Year&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monthly_precip_days_vals&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;legend&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;months_str&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;Palette&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Monthly Rainy Days Samples&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;x_range&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1990&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2015&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
          &lt;span class="n"&gt;x_axis_label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Year&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monthly_precip_samples&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;legend&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;months_str&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;Palette&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="n"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "796aa38f-3d60-4e2f-b935-9bb5eadd9c2d", "attributes": {"doc": null, "id": "796aa38f-3d60-4e2f-b935-9bb5eadd9c2d", "tags": []}, "type": "BasicTickFormatter"}, {"id": "6ec9712e-0074-415d-96bf-d3357cd09e8c", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "6ec9712e-0074-415d-96bf-d3357cd09e8c", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "dd882eaa-16df-4a51-9ef9-473dba442ac1", "attributes": {"end": 2015, "callback": null, "id": "dd882eaa-16df-4a51-9ef9-473dba442ac1", "doc": null, "start": 1990, "tags": []}, "type": "Range1d"}, {"id": "06bd0543-d74f-4e8e-8a7e-7ec0c9e24d29", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "06bd0543-d74f-4e8e-8a7e-7ec0c9e24d29", "tags": []}, "type": "PanTool"}, {"id": "479fee83-2daa-4ee9-91c2-41330bc3bfb6", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "479fee83-2daa-4ee9-91c2-41330bc3bfb6", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "82cf9c4f-73ca-4975-81d0-23e9f7708d38", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0, 1, 0, 1, 1, 0, 1, 2, 0, 2, 4, 3, 2, 2, 0, 1, 1, 0, 1, 2, 2, 1, 0, 2, 2, 0]}, "callback": null, "doc": null, "id": "82cf9c4f-73ca-4975-81d0-23e9f7708d38", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "4088c32e-912e-45ca-a17e-fa318fe1014c", "attributes": {"plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "4088c32e-912e-45ca-a17e-fa318fe1014c", "tags": []}, "type": "HelpTool"}, {"id": "be836449-a914-4879-9d45-b58bf4ff1f59", "attributes": {"plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "id": "be836449-a914-4879-9d45-b58bf4ff1f59", "doc": null, "ticker": {"id": "2923220b-a95b-427e-9c70-9bdf644b2414", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "796aa38f-3d60-4e2f-b935-9bb5eadd9c2d", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}, {"id": "5507332f-ad8e-4e23-b165-c0001537e56a", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "5507332f-ad8e-4e23-b165-c0001537e56a", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "43684d89-d93d-4ae8-b688-8e06aebf807e", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [1, 2, 2, 1, 1, 1, 1, 1, 0, 1, 3, 0, 3, 2, 3, 2, 2, 0, 1, 2, 0, 1, 1, 1, 3, 1]}, "callback": null, "doc": null, "id": "43684d89-d93d-4ae8-b688-8e06aebf807e", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "f90070db-b844-4992-bdcc-9b7bcae08930", "attributes": {"line_color": {"value": "#02818a"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "f90070db-b844-4992-bdcc-9b7bcae08930", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "e6331979-30cf-474e-9999-43ad26edc912", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "e6331979-30cf-474e-9999-43ad26edc912", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "e5863a93-32f3-4401-8627-15bbc2c9c810", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "e5863a93-32f3-4401-8627-15bbc2c9c810", "tags": []}, "type": "WheelZoomTool"}, {"id": "f8797896-5a49-47d4-bc24-be35f399a763", "attributes": {"line_color": {"value": "#3690c0"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "f8797896-5a49-47d4-bc24-be35f399a763", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "56b59d1e-2a0d-468d-b6ec-a878d993fca1", "attributes": {"data_source": {"id": "82cf9c4f-73ca-4975-81d0-23e9f7708d38", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "e6331979-30cf-474e-9999-43ad26edc912", "type": "Line"}, "glyph": {"id": "54cd8fae-1f75-492c-880e-476679c409a6", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "56b59d1e-2a0d-468d-b6ec-a878d993fca1", "tags": []}, "type": "GlyphRenderer"}, {"id": "7ac6f4e6-15f9-472d-8f37-4e66f92fc844", "attributes": {"data_source": {"id": "ff84e9aa-9a26-497d-9238-405ab942b090", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "479fee83-2daa-4ee9-91c2-41330bc3bfb6", "type": "Line"}, "glyph": {"id": "f8797896-5a49-47d4-bc24-be35f399a763", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "7ac6f4e6-15f9-472d-8f37-4e66f92fc844", "tags": []}, "type": "GlyphRenderer"}, {"id": "aa44b759-1484-47b4-9bc3-38af6e9d7baf", "attributes": {"plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "aa44b759-1484-47b4-9bc3-38af6e9d7baf", "tags": []}, "type": "PreviewSaveTool"}, {"id": "e8fafe72-daae-466b-8f8b-12f0ba9f5768", "attributes": {"line_color": {"value": "#67a9cf"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "e8fafe72-daae-466b-8f8b-12f0ba9f5768", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "254e87ce-3a34-4f67-bf05-ba772708ea73", "attributes": {"data_source": {"id": "7c9b1e5a-b6e8-4e81-b918-ade1b2d7c527", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "6ec9712e-0074-415d-96bf-d3357cd09e8c", "type": "Line"}, "glyph": {"id": "e8fafe72-daae-466b-8f8b-12f0ba9f5768", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "254e87ce-3a34-4f67-bf05-ba772708ea73", "tags": []}, "type": "GlyphRenderer"}, {"id": "cf4ab7bc-72fd-477e-83ed-316b93a251a1", "attributes": {"axis_label": "Year", "plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "id": "cf4ab7bc-72fd-477e-83ed-316b93a251a1", "doc": null, "ticker": {"id": "391913d5-2eec-4580-89fd-bd76999c314b", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "99ca5996-9d24-4d32-9bd9-abae5565f27d", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}, {"id": "99ca5996-9d24-4d32-9bd9-abae5565f27d", "attributes": {"doc": null, "id": "99ca5996-9d24-4d32-9bd9-abae5565f27d", "tags": []}, "type": "BasicTickFormatter"}, {"id": "74d9dec7-c173-461c-9d51-31a5f068e3c4", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "74d9dec7-c173-461c-9d51-31a5f068e3c4", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "4557371e-1c2b-42d0-8cd4-a9ec303b9d88", "attributes": {"line_color": {"value": "#016c59"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "4557371e-1c2b-42d0-8cd4-a9ec303b9d88", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "a3aa71d9-950a-435d-a60c-26231ca05f52", "attributes": {"plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "dimension": 1, "id": "a3aa71d9-950a-435d-a60c-26231ca05f52", "doc": null, "ticker": {"id": "2923220b-a95b-427e-9c70-9bdf644b2414", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "ff84e9aa-9a26-497d-9238-405ab942b090", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [1, 0, 2, 2, 1, 1, 1, 2, 2, 3, 0, 0, 3, 4, 1, 3, 4, 5, 1, 2, 3, 2, 2, 1, 3, 4]}, "callback": null, "doc": null, "id": "ff84e9aa-9a26-497d-9238-405ab942b090", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "8e6f1721-bb35-47ab-be83-71c247ce1d15", "attributes": {"plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "8e6f1721-bb35-47ab-be83-71c247ce1d15", "tags": []}, "type": "ResizeTool"}, {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "attributes": {"tools": [{"id": "06bd0543-d74f-4e8e-8a7e-7ec0c9e24d29", "type": "PanTool"}, {"id": "e5863a93-32f3-4401-8627-15bbc2c9c810", "type": "WheelZoomTool"}, {"id": "296669d0-01d4-46d7-8f5b-6c8f8e16397d", "type": "BoxZoomTool"}, {"id": "aa44b759-1484-47b4-9bc3-38af6e9d7baf", "type": "PreviewSaveTool"}, {"id": "8e6f1721-bb35-47ab-be83-71c247ce1d15", "type": "ResizeTool"}, {"id": "6f1aa952-02a3-4868-bf03-97cd15ac88ec", "type": "ResetTool"}, {"id": "4088c32e-912e-45ca-a17e-fa318fe1014c", "type": "HelpTool"}], "x_range": {"id": "dd882eaa-16df-4a51-9ef9-473dba442ac1", "type": "Range1d"}, "extra_y_ranges": {}, "doc": null, "title": "Monthly Rainy Days", "extra_x_ranges": {}, "below": [{"id": "cf4ab7bc-72fd-477e-83ed-316b93a251a1", "type": "LinearAxis"}], "right": [], "above": [], "y_range": {"id": "cb654ccf-8c74-4e7f-8816-e853e9a2c5ad", "type": "DataRange1d"}, "renderers": [{"id": "cf4ab7bc-72fd-477e-83ed-316b93a251a1", "type": "LinearAxis"}, {"id": "4c99ec8d-4996-414d-8e5c-96da15015166", "type": "Grid"}, {"id": "be836449-a914-4879-9d45-b58bf4ff1f59", "type": "LinearAxis"}, {"id": "a3aa71d9-950a-435d-a60c-26231ca05f52", "type": "Grid"}, {"id": "33544779-cf52-4ef1-a5a9-d0b287156834", "type": "Legend"}, {"id": "56b59d1e-2a0d-468d-b6ec-a878d993fca1", "type": "GlyphRenderer"}, {"id": "de6db65c-17e3-4a9d-afc8-c354b75a39eb", "type": "GlyphRenderer"}, {"id": "7bbbe4a3-5097-492b-9e31-6595e9401ce0", "type": "GlyphRenderer"}, {"id": "7ac6f4e6-15f9-472d-8f37-4e66f92fc844", "type": "GlyphRenderer"}, {"id": "254e87ce-3a34-4f67-bf05-ba772708ea73", "type": "GlyphRenderer"}], "id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "tags": [], "left": [{"id": "be836449-a914-4879-9d45-b58bf4ff1f59", "type": "LinearAxis"}], "tool_events": {"id": "3b4432d4-1c9f-4ce0-ae23-adf22bec2272", "type": "ToolEvents"}}, "type": "Plot", "subtype": "Figure"}, {"id": "296669d0-01d4-46d7-8f5b-6c8f8e16397d", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "296669d0-01d4-46d7-8f5b-6c8f8e16397d", "tags": []}, "type": "BoxZoomTool"}, {"id": "2923220b-a95b-427e-9c70-9bdf644b2414", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "2923220b-a95b-427e-9c70-9bdf644b2414", "tags": []}, "type": "BasicTicker"}, {"id": "cb654ccf-8c74-4e7f-8816-e853e9a2c5ad", "attributes": {"doc": null, "names": [], "callback": null, "renderers": [], "id": "cb654ccf-8c74-4e7f-8816-e853e9a2c5ad", "tags": []}, "type": "DataRange1d"}, {"id": "de6db65c-17e3-4a9d-afc8-c354b75a39eb", "attributes": {"data_source": {"id": "43684d89-d93d-4ae8-b688-8e06aebf807e", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "74d9dec7-c173-461c-9d51-31a5f068e3c4", "type": "Line"}, "glyph": {"id": "4557371e-1c2b-42d0-8cd4-a9ec303b9d88", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "de6db65c-17e3-4a9d-afc8-c354b75a39eb", "tags": []}, "type": "GlyphRenderer"}, {"id": "6f1aa952-02a3-4868-bf03-97cd15ac88ec", "attributes": {"plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "6f1aa952-02a3-4868-bf03-97cd15ac88ec", "tags": []}, "type": "ResetTool"}, {"id": "7bbbe4a3-5097-492b-9e31-6595e9401ce0", "attributes": {"data_source": {"id": "0b0fc8f0-7d37-4eb2-a24d-4079ed075f2a", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "5507332f-ad8e-4e23-b165-c0001537e56a", "type": "Line"}, "glyph": {"id": "f90070db-b844-4992-bdcc-9b7bcae08930", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "7bbbe4a3-5097-492b-9e31-6595e9401ce0", "tags": []}, "type": "GlyphRenderer"}, {"id": "3b4432d4-1c9f-4ce0-ae23-adf22bec2272", "attributes": {"doc": null, "geometries": [], "id": "3b4432d4-1c9f-4ce0-ae23-adf22bec2272", "tags": []}, "type": "ToolEvents"}, {"id": "391913d5-2eec-4580-89fd-bd76999c314b", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "391913d5-2eec-4580-89fd-bd76999c314b", "tags": []}, "type": "BasicTicker"}, {"id": "7c9b1e5a-b6e8-4e81-b918-ade1b2d7c527", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0, 0, 3, 2, 2, 5, 1, 2, 3, 3, 2, 0, 3, 1, 2, 3, 3, 2, 4, 3, 3, 2, 2, 1, 2, 6]}, "callback": null, "doc": null, "id": "7c9b1e5a-b6e8-4e81-b918-ade1b2d7c527", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "54cd8fae-1f75-492c-880e-476679c409a6", "attributes": {"line_color": {"value": "#014636"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "54cd8fae-1f75-492c-880e-476679c409a6", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "0b0fc8f0-7d37-4eb2-a24d-4079ed075f2a", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [0, 1, 0, 0, 1, 2, 1, 1, 1, 4, 4, 2, 4, 2, 3, 0, 3, 0, 4, 2, 3, 3, 5, 2, 2, 3]}, "callback": null, "doc": null, "id": "0b0fc8f0-7d37-4eb2-a24d-4079ed075f2a", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "33544779-cf52-4ef1-a5a9-d0b287156834", "attributes": {"plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "legends": [["July", [{"id": "56b59d1e-2a0d-468d-b6ec-a878d993fca1", "type": "GlyphRenderer"}]], ["August", [{"id": "de6db65c-17e3-4a9d-afc8-c354b75a39eb", "type": "GlyphRenderer"}]], ["September", [{"id": "7bbbe4a3-5097-492b-9e31-6595e9401ce0", "type": "GlyphRenderer"}]], ["October", [{"id": "7ac6f4e6-15f9-472d-8f37-4e66f92fc844", "type": "GlyphRenderer"}]], ["November", [{"id": "254e87ce-3a34-4f67-bf05-ba772708ea73", "type": "GlyphRenderer"}]]], "doc": null, "id": "33544779-cf52-4ef1-a5a9-d0b287156834", "tags": []}, "type": "Legend"}, {"id": "4c99ec8d-4996-414d-8e5c-96da15015166", "attributes": {"plot": {"id": "cf7920fd-e257-462f-ac47-e6e79f5ca051", "type": "Plot", "subtype": "Figure"}, "dimension": 0, "id": "4c99ec8d-4996-414d-8e5c-96da15015166", "doc": null, "ticker": {"id": "391913d5-2eec-4580-89fd-bd76999c314b", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}];
        Bokeh.load_models(all_models);
        var plots = [{'modelid': 'cf7920fd-e257-462f-ac47-e6e79f5ca051', 'elementid': '81c95d50-a301-410f-bc4c-797abe6f67a5', 'modeltype': 'Plot'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="81c95d50-a301-410f-bc4c-797abe6f67a5"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea "&gt;
&lt;script type="text/javascript"&gt;
        Bokeh.$(function() {
        var all_models = [{"id": "95612edb-f8f2-4f17-b216-2f36178794d4", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "95612edb-f8f2-4f17-b216-2f36178794d4", "tags": []}, "type": "BasicTicker"}, {"id": "e9818ec1-73ca-4ccb-8e3c-a813a139dc1b", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30]}, "callback": null, "doc": null, "id": "e9818ec1-73ca-4ccb-8e3c-a813a139dc1b", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "0367f78c-edcb-4549-8a51-3c8b74969c07", "attributes": {"line_color": {"value": "#3690c0"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "0367f78c-edcb-4549-8a51-3c8b74969c07", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "dd56772f-e47f-4b8d-9960-d8114239447a", "attributes": {"doc": null, "id": "dd56772f-e47f-4b8d-9960-d8114239447a", "tags": []}, "type": "BasicTickFormatter"}, {"id": "be6e22c5-9d57-4c4a-80ba-9d9b553ef019", "attributes": {"plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "legends": [["July", [{"id": "e84ae364-5b3c-4828-8996-98e44725e77e", "type": "GlyphRenderer"}]], ["August", [{"id": "a63c17e9-d92b-427c-9011-c09ba6ab82c1", "type": "GlyphRenderer"}]], ["September", [{"id": "4467c69e-a996-4556-af6b-bf5930177a38", "type": "GlyphRenderer"}]], ["October", [{"id": "cac0185b-6937-4cb0-8c37-b03bbc8de1c0", "type": "GlyphRenderer"}]], ["November", [{"id": "482d65c9-8f4b-429e-8a4f-2012223b32c5", "type": "GlyphRenderer"}]]], "doc": null, "id": "be6e22c5-9d57-4c4a-80ba-9d9b553ef019", "tags": []}, "type": "Legend"}, {"id": "d1a04e80-220b-4d77-8a0e-4e80e3fa6cc4", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "d1a04e80-220b-4d77-8a0e-4e80e3fa6cc4", "tags": []}, "type": "BoxZoomTool"}, {"id": "e84ae364-5b3c-4828-8996-98e44725e77e", "attributes": {"data_source": {"id": "2ead803f-4454-4169-b5d5-a167c322d83e", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "bdfb89bb-deff-4d31-84b5-b485878f6f9a", "type": "Line"}, "glyph": {"id": "70ea7777-8ded-4914-befb-445d740ab417", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "e84ae364-5b3c-4828-8996-98e44725e77e", "tags": []}, "type": "GlyphRenderer"}, {"id": "70ea7777-8ded-4914-befb-445d740ab417", "attributes": {"line_color": {"value": "#014636"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "70ea7777-8ded-4914-befb-445d740ab417", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "84f866c1-7183-4138-9e7a-6fe8804e3eae", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "84f866c1-7183-4138-9e7a-6fe8804e3eae", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "bdfb89bb-deff-4d31-84b5-b485878f6f9a", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "bdfb89bb-deff-4d31-84b5-b485878f6f9a", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "d2f1813c-6f54-44a1-aa8f-3bc7259a4524", "attributes": {"plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "dimension": 1, "id": "d2f1813c-6f54-44a1-aa8f-3bc7259a4524", "doc": null, "ticker": {"id": "95612edb-f8f2-4f17-b216-2f36178794d4", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "4467c69e-a996-4556-af6b-bf5930177a38", "attributes": {"data_source": {"id": "44451684-6155-4535-8f19-3dc3b01df557", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "00b775f6-1605-4ed7-8ab1-fbc970e8d47a", "type": "Line"}, "glyph": {"id": "9f7dd85f-e1e3-45b6-bba0-264dac900cf3", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "4467c69e-a996-4556-af6b-bf5930177a38", "tags": []}, "type": "GlyphRenderer"}, {"id": "482d65c9-8f4b-429e-8a4f-2012223b32c5", "attributes": {"data_source": {"id": "e9818ec1-73ca-4ccb-8e3c-a813a139dc1b", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "84f866c1-7183-4138-9e7a-6fe8804e3eae", "type": "Line"}, "glyph": {"id": "b295d1ca-5b38-4291-919f-8014eff52929", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "482d65c9-8f4b-429e-8a4f-2012223b32c5", "tags": []}, "type": "GlyphRenderer"}, {"id": "a63c17e9-d92b-427c-9011-c09ba6ab82c1", "attributes": {"data_source": {"id": "9ff544bc-0ca1-41bc-a936-cfa67e1f105f", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "5c7e3993-745d-43de-a2e8-bc11f1b176e6", "type": "Line"}, "glyph": {"id": "0935a7fe-f889-44bc-8b0c-3e364bb0cf0a", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "a63c17e9-d92b-427c-9011-c09ba6ab82c1", "tags": []}, "type": "GlyphRenderer"}, {"id": "f607a538-f561-4a53-be09-7786872ce91e", "attributes": {"plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "f607a538-f561-4a53-be09-7786872ce91e", "tags": []}, "type": "ResizeTool"}, {"id": "82223e30-70c4-4cbf-a762-8a5efc9ba916", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "82223e30-70c4-4cbf-a762-8a5efc9ba916", "tags": []}, "type": "PanTool"}, {"id": "1c998f7d-bffc-4074-8161-4a5365c65f0a", "attributes": {"plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "1c998f7d-bffc-4074-8161-4a5365c65f0a", "tags": []}, "type": "ResetTool"}, {"id": "d13a0c18-7740-4c70-b3a0-1583d772971a", "attributes": {"doc": null, "geometries": [], "id": "d13a0c18-7740-4c70-b3a0-1583d772971a", "tags": []}, "type": "ToolEvents"}, {"id": "cac0185b-6937-4cb0-8c37-b03bbc8de1c0", "attributes": {"data_source": {"id": "32541dfc-35f5-47ec-8563-e55e99c1fd14", "type": "ColumnDataSource"}, "nonselection_glyph": {"id": "df1cf2fa-dd4b-444d-873c-1799a8443788", "type": "Line"}, "glyph": {"id": "0367f78c-edcb-4549-8a51-3c8b74969c07", "type": "Line"}, "doc": null, "selection_glyph": null, "id": "cac0185b-6937-4cb0-8c37-b03bbc8de1c0", "tags": []}, "type": "GlyphRenderer"}, {"id": "3bb4defd-45fd-46a4-940d-b4ae14f667df", "attributes": {"dimensions": ["width", "height"], "plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "3bb4defd-45fd-46a4-940d-b4ae14f667df", "tags": []}, "type": "WheelZoomTool"}, {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "attributes": {"tools": [{"id": "82223e30-70c4-4cbf-a762-8a5efc9ba916", "type": "PanTool"}, {"id": "3bb4defd-45fd-46a4-940d-b4ae14f667df", "type": "WheelZoomTool"}, {"id": "d1a04e80-220b-4d77-8a0e-4e80e3fa6cc4", "type": "BoxZoomTool"}, {"id": "f317eaa7-bfaa-4e32-814e-d6bf27fed7eb", "type": "PreviewSaveTool"}, {"id": "f607a538-f561-4a53-be09-7786872ce91e", "type": "ResizeTool"}, {"id": "1c998f7d-bffc-4074-8161-4a5365c65f0a", "type": "ResetTool"}, {"id": "44ea7f7d-d668-4236-b7a6-d4c98cca6e0f", "type": "HelpTool"}], "x_range": {"id": "462b25e7-b72a-4b45-9260-b39843902256", "type": "Range1d"}, "extra_y_ranges": {}, "doc": null, "title": "Monthly Rainy Days Samples", "extra_x_ranges": {}, "below": [{"id": "b8c151be-f213-4e56-add4-b241812fca1c", "type": "LinearAxis"}], "right": [], "above": [], "plot_height": 300, "y_range": {"id": "0979d4d3-987e-4edf-a086-626d0e4e41bc", "type": "DataRange1d"}, "renderers": [{"id": "b8c151be-f213-4e56-add4-b241812fca1c", "type": "LinearAxis"}, {"id": "c4c5ef2d-afde-4186-a371-31a1cba001a2", "type": "Grid"}, {"id": "1dbcd6a1-06db-49bf-af67-d386e3e9f14f", "type": "LinearAxis"}, {"id": "d2f1813c-6f54-44a1-aa8f-3bc7259a4524", "type": "Grid"}, {"id": "be6e22c5-9d57-4c4a-80ba-9d9b553ef019", "type": "Legend"}, {"id": "e84ae364-5b3c-4828-8996-98e44725e77e", "type": "GlyphRenderer"}, {"id": "a63c17e9-d92b-427c-9011-c09ba6ab82c1", "type": "GlyphRenderer"}, {"id": "4467c69e-a996-4556-af6b-bf5930177a38", "type": "GlyphRenderer"}, {"id": "cac0185b-6937-4cb0-8c37-b03bbc8de1c0", "type": "GlyphRenderer"}, {"id": "482d65c9-8f4b-429e-8a4f-2012223b32c5", "type": "GlyphRenderer"}], "id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "tags": [], "left": [{"id": "1dbcd6a1-06db-49bf-af67-d386e3e9f14f", "type": "LinearAxis"}], "tool_events": {"id": "d13a0c18-7740-4c70-b3a0-1583d772971a", "type": "ToolEvents"}}, "type": "Plot", "subtype": "Figure"}, {"id": "f317eaa7-bfaa-4e32-814e-d6bf27fed7eb", "attributes": {"plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "f317eaa7-bfaa-4e32-814e-d6bf27fed7eb", "tags": []}, "type": "PreviewSaveTool"}, {"id": "0979d4d3-987e-4edf-a086-626d0e4e41bc", "attributes": {"doc": null, "names": [], "callback": null, "renderers": [], "id": "0979d4d3-987e-4edf-a086-626d0e4e41bc", "tags": []}, "type": "DataRange1d"}, {"id": "80359ab1-fabf-4e02-9958-5968c82b48cb", "attributes": {"mantissas": [2, 5, 10], "num_minor_ticks": 5, "doc": null, "id": "80359ab1-fabf-4e02-9958-5968c82b48cb", "tags": []}, "type": "BasicTicker"}, {"id": "2ead803f-4454-4169-b5d5-a167c322d83e", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31]}, "callback": null, "doc": null, "id": "2ead803f-4454-4169-b5d5-a167c322d83e", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "9ff544bc-0ca1-41bc-a936-cfa67e1f105f", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31]}, "callback": null, "doc": null, "id": "9ff544bc-0ca1-41bc-a936-cfa67e1f105f", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "b8c151be-f213-4e56-add4-b241812fca1c", "attributes": {"axis_label": "Year", "plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "id": "b8c151be-f213-4e56-add4-b241812fca1c", "doc": null, "ticker": {"id": "80359ab1-fabf-4e02-9958-5968c82b48cb", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "c38d0ec3-e355-4d07-84c4-c42d7d5c0d2e", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}, {"id": "44ea7f7d-d668-4236-b7a6-d4c98cca6e0f", "attributes": {"plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "doc": null, "id": "44ea7f7d-d668-4236-b7a6-d4c98cca6e0f", "tags": []}, "type": "HelpTool"}, {"id": "44451684-6155-4535-8f19-3dc3b01df557", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30]}, "callback": null, "doc": null, "id": "44451684-6155-4535-8f19-3dc3b01df557", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "c38d0ec3-e355-4d07-84c4-c42d7d5c0d2e", "attributes": {"doc": null, "id": "c38d0ec3-e355-4d07-84c4-c42d7d5c0d2e", "tags": []}, "type": "BasicTickFormatter"}, {"id": "32541dfc-35f5-47ec-8563-e55e99c1fd14", "attributes": {"data": {"x": [1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015], "y": [31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31]}, "callback": null, "doc": null, "id": "32541dfc-35f5-47ec-8563-e55e99c1fd14", "selected": {"0d": {"flag": false, "indices": []}, "1d": {"indices": []}, "2d": {"indices": []}}, "column_names": ["x", "y"], "tags": []}, "type": "ColumnDataSource"}, {"id": "c4c5ef2d-afde-4186-a371-31a1cba001a2", "attributes": {"plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "dimension": 0, "id": "c4c5ef2d-afde-4186-a371-31a1cba001a2", "doc": null, "ticker": {"id": "80359ab1-fabf-4e02-9958-5968c82b48cb", "type": "BasicTicker"}, "tags": []}, "type": "Grid"}, {"id": "df1cf2fa-dd4b-444d-873c-1799a8443788", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "df1cf2fa-dd4b-444d-873c-1799a8443788", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "b295d1ca-5b38-4291-919f-8014eff52929", "attributes": {"line_color": {"value": "#67a9cf"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "b295d1ca-5b38-4291-919f-8014eff52929", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "5c7e3993-745d-43de-a2e8-bc11f1b176e6", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "5c7e3993-745d-43de-a2e8-bc11f1b176e6", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "462b25e7-b72a-4b45-9260-b39843902256", "attributes": {"end": 2015, "callback": null, "id": "462b25e7-b72a-4b45-9260-b39843902256", "doc": null, "start": 1990, "tags": []}, "type": "Range1d"}, {"id": "0935a7fe-f889-44bc-8b0c-3e364bb0cf0a", "attributes": {"line_color": {"value": "#016c59"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "0935a7fe-f889-44bc-8b0c-3e364bb0cf0a", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "00b775f6-1605-4ed7-8ab1-fbc970e8d47a", "attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"value": 0.1}, "y": {"field": "y"}, "doc": null, "id": "00b775f6-1605-4ed7-8ab1-fbc970e8d47a", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "9f7dd85f-e1e3-45b6-bba0-264dac900cf3", "attributes": {"line_color": {"value": "#02818a"}, "line_alpha": {"value": 1.0}, "y": {"field": "y"}, "doc": null, "id": "9f7dd85f-e1e3-45b6-bba0-264dac900cf3", "x": {"field": "x"}, "tags": []}, "type": "Line"}, {"id": "1dbcd6a1-06db-49bf-af67-d386e3e9f14f", "attributes": {"plot": {"id": "4bcda4ae-5267-4de8-b4ce-9c01c6da20d2", "type": "Plot", "subtype": "Figure"}, "id": "1dbcd6a1-06db-49bf-af67-d386e3e9f14f", "doc": null, "ticker": {"id": "95612edb-f8f2-4f17-b216-2f36178794d4", "type": "BasicTicker"}, "tags": [], "formatter": {"id": "dd56772f-e47f-4b8d-9960-d8114239447a", "type": "BasicTickFormatter"}}, "type": "LinearAxis"}];
        Bokeh.load_models(all_models);
        var plots = [{'modelid': '4bcda4ae-5267-4de8-b4ce-9c01c6da20d2', 'elementid': 'e0f55f0d-f1ae-4a3c-a517-63a15a51bd88', 'modeltype': 'Plot'}];
        for (idx in plots) {
        	var plot = plots[idx];
        	var model = Bokeh.Collections(plot.modeltype).get(plot.modelid);
        	Bokeh.logger.info('Realizing plot:')
        	Bokeh.logger.info(' - modeltype: ' + plot.modeltype);
        	Bokeh.logger.info(' - modelid: ' + plot.modelid);
        	Bokeh.logger.info(' - elementid: ' + plot.elementid);
        	var view = new model.default_view({
        		model: model,
        		el: '#' + plot.elementid
        	});
        	Bokeh.index[plot.modelid] = view;
        }
    });
    &lt;/script&gt;
&lt;div class="plotdiv" id="e0f55f0d-f1ae-4a3c-a517-63a15a51bd88"&gt;&lt;/div&gt;


&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;After trying to find the number of days that are rainy, we can see that November hit its max value for rainy days in 2015. However, that value is 6, as compared to a previous maximum of 5. While it is a new record, the value isn't actually all that different. And for other months, the values are mostly in-line with the averages.&lt;/p&gt;
&lt;h1 id="Summary-and-Conclusions"&gt;Summary and Conclusions&lt;a class="anchor-link" href="#Summary-and-Conclusions"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;After having looked at forecast data for Cary, it appears that the months of July - November this year in terms of weather were at worst on par with prior years, if not slightly more sunny. This seems to be a case of confirmation bias: someone complains about a string of cloudy or rainy days, and suddenly you start noticing them more.&lt;/p&gt;
&lt;p&gt;While this analysis doesn't take into account other areas of North Carolina, my initial guess would be to assume that other areas also will show similar results: nothing interesting is happening. Maybe that will be for another blog post later!&lt;/p&gt;
&lt;p&gt;Coming soon: I'll compare rain/cloud conditions in North Carolina to some other places in the U.S.!&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Generating-the-Forecast-file"&gt;Generating the Forecast file&lt;a class="anchor-link" href="#Generating-the-Forecast-file"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;The following code was generates the file that was used throughout the blog post. Please note that I'm retrieving data for other cities to use in a future blog post, only Cary data was used for this post.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pandas&lt;/span&gt; &lt;span class="kn"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;pd&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;functools&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nb"&gt;reduce&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;requests&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;datetime&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;

&lt;span class="c1"&gt;# Coordinate data from http://itouchmap.com/latlong.html&lt;/span&gt;
&lt;span class="n"&gt;cary_loc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;35.79154&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;78.781117&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;nyc_loc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;40.78306&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;73.971249&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;seattle_loc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;47.60621&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;122.332071&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;binghamton_loc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;42.098687&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;75.917974&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;cities&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s1"&gt;&amp;#39;cary&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cary_loc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;&amp;#39;nyc&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;nyc_loc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;&amp;#39;seattle&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;seattle_loc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;&amp;#39;binghamton&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;binghamton_loc&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;apikey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;&amp;#39;&lt;/span&gt; &lt;span class="c1"&gt;# My super-secret API Key&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;get_forecast&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lat&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;long&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;forecast_base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;https://api.forecast.io/forecast/&amp;quot;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;forecast_base&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;apikey&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;/{},{}&amp;#39;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lat&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;long&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;epoch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
        &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;forecast_base&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;apikey&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;/{},{},{}&amp;#39;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lat&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;long&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;epoch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1990&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;2016&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# For datetimes, the 12 is for getting the weather at noon.&lt;/span&gt;
&lt;span class="c1"&gt;# We&amp;#39;re doing this over midnight because we&amp;#39;re more concerned&lt;/span&gt;
&lt;span class="c1"&gt;# with what people see, and people don&amp;#39;t typically see the weather&lt;/span&gt;
&lt;span class="c1"&gt;# at midnight.&lt;/span&gt;
&lt;span class="n"&gt;dt_indices&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;date_range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                          &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
              &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;year&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;dt_merge&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;reduce&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;union&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;dt_indices&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Because we have to pay a little bit to use the API, we use for loops here&lt;/span&gt;
&lt;span class="c1"&gt;# instead of a comprehension - if something breaks, we want to preserve the&lt;/span&gt;
&lt;span class="c1"&gt;# data already retrieved&lt;/span&gt;
&lt;span class="n"&gt;city_forecasts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;loc&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cities&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Retrieving data for {} starting at {}&amp;quot;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                                                         &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;strftime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;%I:%M:%S %p&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;dt&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;dt_merge&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;city_forecasts&lt;/span&gt;&lt;span class="p"&gt;[(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dt&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;get_forecast&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;loc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="ne"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;city_forecasts&lt;/span&gt;&lt;span class="p"&gt;[(&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dt&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;End forecast retrieval: {}&amp;quot;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;strftime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;%I:%M:%S %p&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;

&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pickle&lt;/span&gt;
&lt;span class="n"&gt;pickle&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dump&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city_forecasts&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;city_forecasts.p&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;wb&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="c1"&gt;### Output:&lt;/span&gt;
&lt;span class="c1"&gt;# Retrieving data for binghamton starting at 05:13:42 PM&lt;/span&gt;
&lt;span class="c1"&gt;# Retrieving data for seattle starting at 05:30:51 PM&lt;/span&gt;
&lt;span class="c1"&gt;# Retrieving data for nyc starting at 05:48:30 PM&lt;/span&gt;
&lt;span class="c1"&gt;# Retrieving data for cary starting at 06:08:32 PM&lt;/span&gt;
&lt;span class="c1"&gt;# End forecast retrieval: 06:25:21 PM&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;/p&gt;</summary><category term="weather"></category></entry><entry><title>Testing Cramer</title><link href="https://bspeice.github.io/testing-cramer.html" rel="alternate"></link><updated>2015-12-26T00:00:00-05:00</updated><author><name>Bradlee Speice</name></author><id>tag:bspeice.github.io,2015-12-26:testing-cramer.html</id><summary type="html">&lt;script type="text/x-mathjax-config"&gt;
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\(','\)']]}});
&lt;/script&gt;

&lt;script async src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML'&gt;&lt;/script&gt;

&lt;p&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[1]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;requests&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;pd&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;np&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;dateutil&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;parser&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;dtparser&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;dateutil.relativedelta&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;relativedelta&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;html.parser&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;HTMLParser&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;copy&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;copy&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;Quandl&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Testing-Cramer"&gt;Testing Cramer&lt;a class="anchor-link" href="#Testing-Cramer"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;Pursuant to attending a graduate school studying Financial Engineering, I've been a fan of the &lt;a href="http://seekingalpha.com/author/wall-street-breakfast?s=wall-street-breakfast"&gt;Mad Money&lt;/a&gt; TV show featuring the bombastic Jim Cramer. One of the things that he's said is that you shouldn't use the futures to predict where the stock market is going to go. But he says it often enough, I've begun to wonder - who is he trying to convince?&lt;/p&gt;
&lt;p&gt;It makes sense that because futures on things like the S&amp;amp;P 500 are traded continuously, they would price in market information before the stock market opens. So is Cramer right to be convinced that strategies based on the futures are a poor idea? I wanted to test it out.&lt;/p&gt;
&lt;p&gt;The first question is where to get the future's data. I've been part of &lt;a href="http://seekingalpha.com/"&gt;Seeking Alpha&lt;/a&gt; for a bit, and they publish the &lt;a href="http://seekingalpha.com/author/wall-street-breakfast?s=wall-street-breakfast"&gt;Wall Street Breakfast&lt;/a&gt; newsletter which contains daily future's returns as of 6:20 AM EST. I'd be interested in using that data to see if we can actually make some money.&lt;/p&gt;
&lt;p&gt;First though, let's get the data:&lt;/p&gt;
&lt;h1 id="Downloading-Futures-data-from-Seeking-Alpha"&gt;Downloading Futures data from Seeking Alpha&lt;a class="anchor-link" href="#Downloading-Futures-data-from-Seeking-Alpha"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;We're going to define two HTML parsing classes - one to get the article URL's from a page, and one to get the actual data from each article.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[2]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ArticleListParser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;HTMLParser&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;Given a web page with articles on it, parse out the article links&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
    
    &lt;span class="n"&gt;articles&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;handle_starttag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;attrs&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="c1"&gt;#if tag == &amp;#39;div&amp;#39; and (&amp;quot;id&amp;quot;, &amp;quot;author_articles_wrapper&amp;quot;) in attrs:&lt;/span&gt;
        &lt;span class="c1"&gt;#    self.fetch_links = True&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;tag&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;a&amp;#39;&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;class&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;dashboard_article_link&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;attrs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;href&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;href&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;attrs&lt;/span&gt;&lt;span class="p"&gt;))[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;articles&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;href&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            
&lt;span class="n"&gt;base_url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;http://seekingalpha.com/author/wall-street-breakfast/articles&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;article_page_urls&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;base_url&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;/{}&amp;#39;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;

&lt;span class="n"&gt;global_articles&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;article_page_urls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# We need to switch the user agent, as SA blocks the standard requests agent&lt;/span&gt;
    &lt;span class="n"&gt;articles_html&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                                &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;User-Agent&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Wget/1.13.4&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="n"&gt;parser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ArticleListParser&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;parser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;feed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;articles_html&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;global_articles&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;parser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;articles&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[3]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ArticleReturnParser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;HTMLParser&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="s2"&gt;&amp;quot;Given an article, parse out the futures returns in it&amp;quot;&lt;/span&gt;
    
    &lt;span class="n"&gt;record_font_tags&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;
    &lt;span class="n"&gt;in_font_tag&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;
    &lt;span class="n"&gt;counter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="c1"&gt;# data = {} # See __init__&lt;/span&gt;
    
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="nb"&gt;super&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
    
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;handle_starttag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;attrs&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;tag&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;span&amp;#39;&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;itemprop&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;datePublished&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;attrs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;date_string&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;content&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;attrs&lt;/span&gt;&lt;span class="p"&gt;))[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="n"&gt;date&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;dtparser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;date_string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;date&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt;
            
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;in_font_tag&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tag&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;font&amp;#39;&lt;/span&gt;
        
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;safe_float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;string&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="ne"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NaN&lt;/span&gt;
            
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;handle_data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;record_font_tags&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Futures at 6&amp;quot;&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;record_font_tags&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;
            
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;record_font_tags&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;in_font_tag&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;counter&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;DOW&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;safe_float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;counter&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;S&amp;amp;P&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;safe_float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;counter&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;NASDAQ&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;safe_float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;counter&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Crude&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;safe_float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;counter&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Gold&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;safe_float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            
            &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;counter&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
            
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;handle_endtag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tag&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;in_font_tag&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;retrieve_data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;sa&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;http://seekingalpha.com&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;article_html&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sa&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                               &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;User-Agent&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Wget/1.13.4&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="n"&gt;parser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ArticleReturnParser&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;parser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;feed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;article_html&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;parser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;update&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;url&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="n"&gt;parser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;update&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;text&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;article_html&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;parser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;

&lt;span class="c1"&gt;# This copy **MUST** be in place. I&amp;#39;m not sure why,&lt;/span&gt;
&lt;span class="c1"&gt;# as you&amp;#39;d think that the data being returned would already&lt;/span&gt;
&lt;span class="c1"&gt;# represent a different memory location. Even so, it blows up&lt;/span&gt;
&lt;span class="c1"&gt;# if you don&amp;#39;t do this.&lt;/span&gt;
&lt;span class="n"&gt;article_list&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;global_articles&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="n"&gt;article_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;copy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;retrieve_data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;article_list&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="c1"&gt;# If there&amp;#39;s an issue downloading the article, drop it.&lt;/span&gt;
&lt;span class="n"&gt;article_df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DataFrame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;from_dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;article_data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dropna&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Fetching-the-Returns-data"&gt;Fetching the Returns data&lt;a class="anchor-link" href="#Fetching-the-Returns-data"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;Now that we have the futures data, we're going to compare across 4 different indices - the S&amp;amp;P 500 index, Dow Jones Industrial, Russell 2000, and NASDAQ 100. Let's get the data off of Quandl to make things easier!&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[4]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="c1"&gt;# article_df is sorted by date, so we get the first row.&lt;/span&gt;
&lt;span class="n"&gt;start_date&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;article_df&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sort_values&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;by&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;date&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iloc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;date&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;relativedelta&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;SPY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Quandl&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;GOOG/NYSE_SPY&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;trim_start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;start_date&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;DJIA&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Quandl&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;GOOG/AMS_DIA&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;trim_start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;start_date&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;RUSS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Quandl&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;GOOG/AMEX_IWM&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;trim_start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;start_date&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;NASDAQ&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Quandl&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;GOOG/EPA_QQQ&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;trim_start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;start_date&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Running-the-Comparison"&gt;Running the Comparison&lt;a class="anchor-link" href="#Running-the-Comparison"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;There are two types of tests I want to determine: How accurate each futures category is at predicting the index's opening change over the close before, and predicting the index's daily return.&lt;/p&gt;
&lt;p&gt;Let's first calculate how good each future is at predicting the opening return over the previous day. I expect that the futures will be more than 50% accurate, since the information is recorded 3 hours before the markets open.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[5]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calculate_opening_ret&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="c1"&gt;# I&amp;#39;m not a huge fan of the appending for loop,&lt;/span&gt;
    &lt;span class="c1"&gt;# but it&amp;#39;s a bit verbose for a comprehension&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
        &lt;span class="n"&gt;date&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iloc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;
        &lt;span class="n"&gt;prior_close&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iloc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Close&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;open_val&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iloc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Open&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;open_val&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;prior_close&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;prior_close&lt;/span&gt;
        
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;

&lt;span class="n"&gt;SPY_open_ret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;calculate_opening_ret&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;SPY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;DJIA_open_ret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;calculate_opening_ret&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DJIA&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;RUSS_open_ret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;calculate_opening_ret&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;RUSS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;NASDAQ_open_ret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;calculate_opening_ret&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;NASDAQ&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;signs_match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;list_1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;list_2&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="c1"&gt;# This is a surprisingly difficult task - we have to match&lt;/span&gt;
    &lt;span class="c1"&gt;# up the dates in order to check if opening returns actually match&lt;/span&gt;
    &lt;span class="n"&gt;index_dict_dt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to_datetime&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="n"&gt;list_2&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;list_2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;()}&lt;/span&gt;
    
    &lt;span class="n"&gt;matches&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;list_1&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iterrows&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
        &lt;span class="n"&gt;row_dt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;row_value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;index_dt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row_dt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row_dt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row_dt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;index_dt&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;list_2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;index_value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;list_2&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index_dt&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row_value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;index_value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; \
                &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row_value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;index_value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; \
                &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row_value&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;index_value&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
                    &lt;span class="n"&gt;matches&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;matches&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="c1"&gt;#print(&amp;quot;{}&amp;quot;.format(list_2[index_dt]))&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;matches&lt;/span&gt;
    
    
&lt;span class="n"&gt;prediction_dict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;span class="n"&gt;matches_dict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;span class="n"&gt;count_dict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;span class="n"&gt;index_dict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;SPY&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;SPY_open_ret&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;DJIA&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;DJIA_open_ret&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;RUSS&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;RUSS_open_ret&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;NASDAQ&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;NASDAQ_open_ret&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;indices&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;SPY&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;DJIA&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;RUSS&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;NASDAQ&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;futures&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Crude&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Gold&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;DOW&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;NASDAQ&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;S&amp;amp;P&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;indices&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;matches_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;signs_match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;article_df&lt;/span&gt;&lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;date&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]],&lt;/span&gt;
                                               &lt;span class="n"&gt;index_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;future&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;futures&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;count_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;matches_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;future&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;futures&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;prediction_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;matches_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
                              &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;future&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;futures&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Articles Checked: &amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DataFrame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;from_dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;count_dict&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Prediction Accuracy:&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DataFrame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;from_dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prediction_dict&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;
&lt;div class="output_subarea output_stream output_stdout output_text"&gt;
&lt;pre&gt;Articles Checked: 
        DJIA  NASDAQ  RUSS  SPY
Crude    268     268   271  271
DOW      268     268   271  271
Gold     268     268   271  271
NASDAQ   268     268   271  271
S&amp;amp;P      268     268   271  271

Prediction Accuracy:
            DJIA    NASDAQ      RUSS       SPY
Crude   0.544776  0.522388  0.601476  0.590406
DOW     0.611940  0.604478  0.804428  0.841328
Gold    0.462687  0.455224  0.464945  0.476015
NASDAQ  0.615672  0.608209  0.797048  0.830258
S&amp;amp;P     0.604478  0.597015  0.811808  0.848708
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;This data is very interesting. Some insights:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Both DOW and NASDAQ futures are pretty bad at predicting their actual market openings&lt;/li&gt;
&lt;li&gt;NASDAQ and Dow are fairly unpredictable; Russell 2000 and S&amp;amp;P are very predictable&lt;/li&gt;
&lt;li&gt;Gold is a poor predictor in general - intuitively Gold should move inverse to the market, but it appears to be about as accurate as a coin flip.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All said though it appears that futures data is important for determining market direction for both the S&amp;amp;P 500 and Russell 2000. Cramer is half-right: futures data isn't very helpful for the Dow and NASDAQ indices, but is great for the S&amp;amp;P and Russell indices.&lt;/p&gt;
&lt;h1 id="The-next-step---Predicting-the-close"&gt;The next step - Predicting the close&lt;a class="anchor-link" href="#The-next-step---Predicting-the-close"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;Given the code we currently have, I'd like to predict the close of the market as well. We can re-use most of the code, so let's see what happens:&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[6]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calculate_closing_ret&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="c1"&gt;# I&amp;#39;m not a huge fan of the appending for loop,&lt;/span&gt;
    &lt;span class="c1"&gt;# but it&amp;#39;s a bit verbose for a comprehension&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
        &lt;span class="n"&gt;date&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iloc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;
        &lt;span class="n"&gt;open_val&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iloc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Open&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;close_val&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iloc&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Close&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;close_val&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;open_val&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;open_val&lt;/span&gt;
        
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;

&lt;span class="n"&gt;SPY_close_ret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;calculate_closing_ret&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;SPY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;DJIA_close_ret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;calculate_closing_ret&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DJIA&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;RUSS_close_ret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;calculate_closing_ret&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;RUSS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;NASDAQ_close_ret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;calculate_closing_ret&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;NASDAQ&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;signs_match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;list_1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;list_2&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="c1"&gt;# This is a surprisingly difficult task - we have to match&lt;/span&gt;
    &lt;span class="c1"&gt;# up the dates in order to check if opening returns actually match&lt;/span&gt;
    &lt;span class="n"&gt;index_dict_dt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to_datetime&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="n"&gt;list_2&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;list_2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;()}&lt;/span&gt;
    
    &lt;span class="n"&gt;matches&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;list_1&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iterrows&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
        &lt;span class="n"&gt;row_dt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;row_value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;index_dt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row_dt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row_dt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row_dt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;index_dt&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;list_2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;index_value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;list_2&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index_dt&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row_value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;index_value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; \
                &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row_value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;index_value&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; \
                &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row_value&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;index_value&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
                    &lt;span class="n"&gt;matches&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;matches&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="c1"&gt;#print(&amp;quot;{}&amp;quot;.format(list_2[index_dt]))&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;matches&lt;/span&gt;
    
    
&lt;span class="n"&gt;matches_dict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;span class="n"&gt;count_dict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;span class="n"&gt;prediction_dict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;span class="n"&gt;index_dict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;SPY&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;SPY_close_ret&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;DJIA&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;DJIA_close_ret&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
              &lt;span class="s2"&gt;&amp;quot;RUSS&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;RUSS_close_ret&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;NASDAQ&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;NASDAQ_close_ret&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;indices&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;SPY&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;DJIA&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;RUSS&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;NASDAQ&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;futures&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Crude&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Gold&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;DOW&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;NASDAQ&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;S&amp;amp;P&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;indices&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;matches_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;signs_match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;article_df&lt;/span&gt;&lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;date&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]],&lt;/span&gt;
                                               &lt;span class="n"&gt;index_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;future&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;futures&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;count_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;matches_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;future&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;futures&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;prediction_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;matches_dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="n"&gt;future&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
                              &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;future&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;futures&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Articles Checked:&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DataFrame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;from_dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;count_dict&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Prediction Accuracy:&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DataFrame&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;from_dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prediction_dict&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;
&lt;div class="output_subarea output_stream output_stdout output_text"&gt;
&lt;pre&gt;Articles Checked:
        DJIA  NASDAQ  RUSS  SPY
Crude    268     268   271  271
DOW      268     268   271  271
Gold     268     268   271  271
NASDAQ   268     268   271  271
S&amp;amp;P      268     268   271  271

Prediction Accuracy:
            DJIA    NASDAQ      RUSS       SPY
Crude   0.533582  0.529851  0.501845  0.542435
DOW     0.589552  0.608209  0.535055  0.535055
Gold    0.455224  0.451493  0.483395  0.512915
NASDAQ  0.582090  0.626866  0.531365  0.538745
S&amp;amp;P     0.585821  0.608209  0.535055  0.535055
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;p&gt;Well, it appears that the futures data is terrible at predicting market close. NASDAQ predicting NASDAQ is the most interesting data point, but 63% accuracy isn't accurate enough to make money consistently.&lt;/p&gt;
&lt;h1 id="Final-sentiments"&gt;Final sentiments&lt;a class="anchor-link" href="#Final-sentiments"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;The data bears out very close to what I expected would happen:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Futures data is more accurate than a coin flip for predicting openings, which makes sense since it is recorded only 3 hours before the actual opening&lt;/li&gt;
&lt;li&gt;Futures data is about as acccurate as a coin flip for predicting closings, which means there is no money to be made in trying to predict the market direction for the day given the futures data.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In summary:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Cramer is half right: Futures data is not good for predicting the market open of the Dow and NASDAQ indices. Contrary to Cramer though, it is very good for predicting the S&amp;amp;P and Russell indices - we can achieve an accuracy slightly over 80% for each. &lt;/li&gt;
&lt;li&gt;Making money in the market is hard. We can't just go to the futures and treat them as an oracle for where the market will close.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I hope you've enjoyed this, I quite enjoyed taking a deep dive in the analytics this way. I'll be posting more soon!&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;/p&gt;</summary><category term="futures"></category><category term="data science"></category></entry><entry><title>Autocallable Bonds</title><link href="https://bspeice.github.io/autocallable-bonds.html" rel="alternate"></link><updated>2015-11-27T00:00:00-05:00</updated><author><name>Bradlee Speice</name></author><id>tag:bspeice.github.io,2015-11-27:autocallable-bonds.html</id><summary type="html">&lt;script type="text/x-mathjax-config"&gt;
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\(','\)']]}});
&lt;/script&gt;

&lt;script async src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML'&gt;&lt;/script&gt;

&lt;p&gt;My only non-core class this semester has been in Structure Products. We've been surveying a wide variety of products, and the final project was to pick one to report on.
Because these are all very similar, we decided to demonstrate all 3 products at once.&lt;/p&gt;
&lt;p&gt;What follows below is a notebook demonstrating the usage of &lt;a href="http://julialang.com"&gt;Julia&lt;/a&gt; for Monte-Carlo simulation of some exotic products.&lt;/p&gt;
&lt;p&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[1]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="n"&gt;Gadfly&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Athena/Phoenix-Simulation"&gt;Athena/Phoenix Simulation&lt;a class="anchor-link" href="#Athena/Phoenix-Simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;h2 id="Underlying-simulation"&gt;Underlying simulation&lt;a class="anchor-link" href="#Underlying-simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;In order to price the autocallable bonds, we need to simulate the underlying assets. Let's go ahead and set up the simulation first, as this lays the foundation for what we're trying to do. We're going to use &lt;a href="http://finance.yahoo.com/q?s=jnj"&gt;JNJ&lt;/a&gt; as the basis for our simulation. This implies the following parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;$S_0$ = \$102.2 (as of time of writing)&lt;/li&gt;
&lt;li&gt;$q$ = 2.84%&lt;/li&gt;
&lt;li&gt;$r$ = [.49, .9, 1.21, 1.45, 1.69] (term structure as of time of writing, linear interpolation)&lt;/li&gt;
&lt;li&gt;$\mu$ = $r - q$ (note that this implies a negative drift because of current low rates)&lt;/li&gt;
&lt;li&gt;$\sigma$ = $\sigma_{imp}$ = 15.62% (from VIX implied volatility)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We additionally define some parameters for simulation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;T&lt;/code&gt;: The number of years to simulate&lt;/li&gt;
&lt;li&gt;&lt;code&gt;m&lt;/code&gt;: The number of paths to simulate&lt;/li&gt;
&lt;li&gt;&lt;code&gt;n&lt;/code&gt;: The number of steps to simulate in a year&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[2]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;S0&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;102.2&lt;/span&gt;
&lt;span class="n"&gt;nominal&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;
&lt;span class="n"&gt;q&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;2.84&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;
&lt;span class="n"&gt;σ&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;15.37&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;
&lt;span class="n"&gt;term&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;49&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.21&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.45&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.69&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="c"&gt;###&lt;/span&gt;
&lt;span class="c"&gt;# Potential: Based on PEP&lt;/span&gt;
&lt;span class="c"&gt;# S0 = 100.6&lt;/span&gt;
&lt;span class="c"&gt;# σ = 14.86&lt;/span&gt;
&lt;span class="c"&gt;# q = 2.7&lt;/span&gt;
&lt;span class="c"&gt;###&lt;/span&gt;

&lt;span class="c"&gt;# Simulation parameters&lt;/span&gt;
&lt;span class="n"&gt;T&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="c"&gt;# Using years as the unit of time&lt;/span&gt;
&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;250&lt;/span&gt; &lt;span class="c"&gt;# simulations per year&lt;/span&gt;
&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100000&lt;/span&gt; &lt;span class="c"&gt;# paths&lt;/span&gt;
&lt;span class="n"&gt;num_simulations&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c"&gt;# simulation rounds per price&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt output_prompt"&gt;Out[2]:&lt;/div&gt;


&lt;div class="output_text output_subarea output_execute_result"&gt;
&lt;pre&gt;5&lt;/pre&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h3 id="Defining-the-simulation"&gt;Defining the simulation&lt;a class="anchor-link" href="#Defining-the-simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;To make things simpler, we simulate a single year at a time. This allows us to easily add in a dividend policy without too much difficulty, and update the simulation every year to match the term structure. The underlying uses GBM for simulation between years.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[3]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;simulate_gbm&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;μ&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;σ&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c"&gt;# Set the initial state&lt;/span&gt;
    &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;
    &lt;span class="n"&gt;motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;zeros&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt;
    
    &lt;span class="c"&gt;# Build out all states&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;.*&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;μ&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;σ&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;.*&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sqrt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;σ&lt;/span&gt; &lt;span class="o"&gt;.*&lt;/span&gt; &lt;span class="n"&gt;randn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
    
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;motion&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="nf"&gt; display_motion&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c"&gt;# Given a matrix of paths, display the motion&lt;/span&gt;
    &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,:])&lt;/span&gt;
    &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;repmat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    
    &lt;span class="c"&gt;# Calculate the ticks we&amp;#39;re going to use. We&amp;#39;d like to&lt;/span&gt;
    &lt;span class="c"&gt;# have an xtick every month, so calculate where those&lt;/span&gt;
    &lt;span class="c"&gt;# ticks will actually be at.&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;T&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;num_ticks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;
        &lt;span class="n"&gt;xlabel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;Years&amp;quot;&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;
        &lt;span class="n"&gt;num_ticks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;
        &lt;span class="n"&gt;xlabel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;Months&amp;quot;&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="n"&gt;tick_width&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;num_ticks&lt;/span&gt;
    &lt;span class="n"&gt;x_ticks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;num_ticks&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;x_ticks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;vcat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x_ticks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;tick_width&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
    
    &lt;span class="c"&gt;# Use one color for each path. I&amp;#39;m not sure if there&amp;#39;s&lt;/span&gt;
    &lt;span class="c"&gt;# a better way to do this without going through DataFrames&lt;/span&gt;
    &lt;span class="n"&gt;colors&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;
        &lt;span class="n"&gt;colors&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;vcat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ones&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
    
    &lt;span class="n"&gt;plot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="o"&gt;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Geom&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;Guide&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xticks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ticks&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;x_ticks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;false&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="n"&gt;Guide&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xlabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;xlabel&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="n"&gt;Guide&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ylabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Value&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h3 id="Example-simulation"&gt;Example simulation&lt;a class="anchor-link" href="#Example-simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Let's go ahead and run a sample simulation to see what the functions got us!&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[4]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;initial&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ones&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt;
&lt;span class="c"&gt;# Using μ=0, T=.25 for now, we&amp;#39;ll use the proper values later&lt;/span&gt;
&lt;span class="n"&gt;motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;simulate_gbm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;initial&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;σ&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 

&lt;span class="n"&gt;display_motion&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt output_prompt"&gt;Out[4]:&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea output_execute_result"&gt;
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:gadfly="http://www.gadflyjl.org/ns"
     version="1.2"
     width="141.42mm" height="100mm" viewBox="0 0 141.42 100"
     stroke="none"
     fill="#000000"
     stroke-width="0.3"
     font-size="3.88"

     id="fig-3a6dd25ad25c4037a166889ee51bb151"&gt;
&lt;g class="plotroot xscalable yscalable" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-1"&gt;
  &lt;g font-size="3.88" font-family="'PT Sans','Helvetica Neue','Helvetica',sans-serif" fill="#564A55" stroke="#000000" stroke-opacity="0.000" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-2"&gt;
    &lt;text x="73.61" y="88.39" text-anchor="middle" dy="0.6em"&gt;Months&lt;/text&gt;
  &lt;/g&gt;
  &lt;g class="guide colorkey" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-3"&gt;
    &lt;g font-size="2.82" font-family="'PT Sans','Helvetica Neue','Helvetica',sans-serif" fill="#4C404B" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-4"&gt;
      &lt;text x="131.9" y="66.46" dy="0.35em"&gt;1&lt;/text&gt;
      &lt;text x="131.9" y="39.15" dy="0.35em"&gt;5&lt;/text&gt;
      &lt;text x="131.9" y="59.63" dy="0.35em"&gt;2&lt;/text&gt;
      &lt;text x="131.9" y="52.81" dy="0.35em"&gt;3&lt;/text&gt;
      &lt;text x="131.9" y="45.98" dy="0.35em"&gt;4&lt;/text&gt;
    &lt;/g&gt;
    &lt;g shape-rendering="crispEdges" stroke="#000000" stroke-opacity="0.000" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-5"&gt;
      &lt;rect x="129.58" y="65.78" width="1.31" height="0.68" fill="#004D84"/&gt;
      &lt;rect x="129.58" y="65.1" width="1.31" height="0.68" fill="#005B8D"/&gt;
      &lt;rect x="129.58" y="64.41" width="1.31" height="0.68" fill="#006995"/&gt;
      &lt;rect x="129.58" y="63.73" width="1.31" height="0.68" fill="#00769D"/&gt;
      &lt;rect x="129.58" y="63.05" width="1.31" height="0.68" fill="#0083A3"/&gt;
      &lt;rect x="129.58" y="62.36" width="1.31" height="0.68" fill="#278FA9"/&gt;
      &lt;rect x="129.58" y="61.68" width="1.31" height="0.68" fill="#409BAF"/&gt;
      &lt;rect x="129.58" y="61" width="1.31" height="0.68" fill="#55A7B5"/&gt;
      &lt;rect x="129.58" y="60.32" width="1.31" height="0.68" fill="#69B2BA"/&gt;
      &lt;rect x="129.58" y="59.63" width="1.31" height="0.68" fill="#7BBCC0"/&gt;
      &lt;rect x="129.58" y="58.95" width="1.31" height="0.68" fill="#8DC6C5"/&gt;
      &lt;rect x="129.58" y="58.27" width="1.31" height="0.68" fill="#9ED0CB"/&gt;
      &lt;rect x="129.58" y="57.59" width="1.31" height="0.68" fill="#A5CFC7"/&gt;
      &lt;rect x="129.58" y="56.9" width="1.31" height="0.68" fill="#ABCEC4"/&gt;
      &lt;rect x="129.58" y="56.22" width="1.31" height="0.68" fill="#B1CCC2"/&gt;
      &lt;rect x="129.58" y="55.54" width="1.31" height="0.68" fill="#B5CCC1"/&gt;
      &lt;rect x="129.58" y="54.85" width="1.31" height="0.68" fill="#B7CBBF"/&gt;
      &lt;rect x="129.58" y="54.17" width="1.31" height="0.68" fill="#B9CBBD"/&gt;
      &lt;rect x="129.58" y="53.49" width="1.31" height="0.68" fill="#BBCBBB"/&gt;
      &lt;rect x="129.58" y="52.81" width="1.31" height="0.68" fill="#BDCABA"/&gt;
      &lt;rect x="129.58" y="52.12" width="1.31" height="0.68" fill="#BFCAB8"/&gt;
      &lt;rect x="129.58" y="51.44" width="1.31" height="0.68" fill="#C2C9B7"/&gt;
      &lt;rect x="129.58" y="50.76" width="1.31" height="0.68" fill="#C4C9B6"/&gt;
      &lt;rect x="129.58" y="50.07" width="1.31" height="0.68" fill="#C6C8B5"/&gt;
      &lt;rect x="129.58" y="49.39" width="1.31" height="0.68" fill="#C9C7B4"/&gt;
      &lt;rect x="129.58" y="48.71" width="1.31" height="0.68" fill="#CCC7B2"/&gt;
      &lt;rect x="129.58" y="48.03" width="1.31" height="0.68" fill="#CFC6AE"/&gt;
      &lt;rect x="129.58" y="47.34" width="1.31" height="0.68" fill="#D4C5AA"/&gt;
      &lt;rect x="129.58" y="46.66" width="1.31" height="0.68" fill="#D8C3A6"/&gt;
      &lt;rect x="129.58" y="45.98" width="1.31" height="0.68" fill="#D3B79A"/&gt;
      &lt;rect x="129.58" y="45.3" width="1.31" height="0.68" fill="#CDAB8E"/&gt;
      &lt;rect x="129.58" y="44.61" width="1.31" height="0.68" fill="#C89E82"/&gt;
      &lt;rect x="129.58" y="43.93" width="1.31" height="0.68" fill="#C19177"/&gt;
      &lt;rect x="129.58" y="43.25" width="1.31" height="0.68" fill="#BA836C"/&gt;
      &lt;rect x="129.58" y="42.56" width="1.31" height="0.68" fill="#B27563"/&gt;
      &lt;rect x="129.58" y="41.88" width="1.31" height="0.68" fill="#AA665A"/&gt;
      &lt;rect x="129.58" y="41.2" width="1.31" height="0.68" fill="#A05752"/&gt;
      &lt;rect x="129.58" y="40.52" width="1.31" height="0.68" fill="#96484A"/&gt;
      &lt;rect x="129.58" y="39.83" width="1.31" height="0.68" fill="#8B3844"/&gt;
      &lt;rect x="129.58" y="39.15" width="1.31" height="0.68" fill="#7E273E"/&gt;
      &lt;g stroke="#FFFFFF" stroke-width="0.2" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-6"&gt;
        &lt;path fill="none" d="M129.58,66.46 L 130.9 66.46"/&gt;
        &lt;path fill="none" d="M129.58,39.15 L 130.9 39.15"/&gt;
        &lt;path fill="none" d="M129.58,59.63 L 130.9 59.63"/&gt;
        &lt;path fill="none" d="M129.58,52.81 L 130.9 52.81"/&gt;
        &lt;path fill="none" d="M129.58,45.98 L 130.9 45.98"/&gt;
      &lt;/g&gt;
    &lt;/g&gt;
    &lt;g fill="#362A35" font-size="3.88" font-family="'PT Sans','Helvetica Neue','Helvetica',sans-serif" stroke="#000000" stroke-opacity="0.000" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-7"&gt;
      &lt;text x="129.58" y="35.15"&gt;Color&lt;/text&gt;
    &lt;/g&gt;
  &lt;/g&gt;
  &lt;g clip-path="url(#fig-3a6dd25ad25c4037a166889ee51bb151-element-9)" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-8"&gt;
    &lt;g pointer-events="visible" opacity="1" fill="#000000" fill-opacity="0.000" stroke="#000000" stroke-opacity="0.000" class="guide background" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-10"&gt;
      &lt;rect x="19.63" y="5" width="107.95" height="80.39"/&gt;
    &lt;/g&gt;
    &lt;g class="guide ygridlines xfixed" stroke-dasharray="0.5,0.5" stroke-width="0.2" stroke="#D0D0E0" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-11"&gt;
      &lt;path fill="none" d="M19.63,175.05 L 127.58 175.05" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,159.78 L 127.58 159.78" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,144.5 L 127.58 144.5" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,129.22 L 127.58 129.22" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,113.94 L 127.58 113.94" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,98.67 L 127.58 98.67" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,83.39 L 127.58 83.39" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,68.11 L 127.58 68.11" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,52.83 L 127.58 52.83" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,37.56 L 127.58 37.56" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,22.28 L 127.58 22.28" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,7 L 127.58 7" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-8.28 L 127.58 -8.28" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-23.56 L 127.58 -23.56" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-38.83 L 127.58 -38.83" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-54.11 L 127.58 -54.11" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-69.39 L 127.58 -69.39" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-84.67 L 127.58 -84.67" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,159.78 L 127.58 159.78" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,156.72 L 127.58 156.72" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,153.67 L 127.58 153.67" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,150.61 L 127.58 150.61" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,147.55 L 127.58 147.55" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,144.5 L 127.58 144.5" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,141.44 L 127.58 141.44" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,138.39 L 127.58 138.39" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,135.33 L 127.58 135.33" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,132.28 L 127.58 132.28" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,129.22 L 127.58 129.22" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,126.17 L 127.58 126.17" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,123.11 L 127.58 123.11" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,120.05 L 127.58 120.05" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,117 L 127.58 117" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,113.94 L 127.58 113.94" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,110.89 L 127.58 110.89" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,107.83 L 127.58 107.83" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,104.78 L 127.58 104.78" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,101.72 L 127.58 101.72" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,98.67 L 127.58 98.67" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,95.61 L 127.58 95.61" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,92.55 L 127.58 92.55" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,89.5 L 127.58 89.5" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,86.44 L 127.58 86.44" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,83.39 L 127.58 83.39" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,80.33 L 127.58 80.33" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,77.28 L 127.58 77.28" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,74.22 L 127.58 74.22" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,71.17 L 127.58 71.17" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,68.11 L 127.58 68.11" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,65.06 L 127.58 65.06" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,62 L 127.58 62" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,58.94 L 127.58 58.94" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,55.89 L 127.58 55.89" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,52.83 L 127.58 52.83" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,49.78 L 127.58 49.78" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,46.72 L 127.58 46.72" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,43.67 L 127.58 43.67" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,40.61 L 127.58 40.61" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,37.56 L 127.58 37.56" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,34.5 L 127.58 34.5" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,31.44 L 127.58 31.44" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,28.39 L 127.58 28.39" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,25.33 L 127.58 25.33" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,22.28 L 127.58 22.28" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,19.22 L 127.58 19.22" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,16.17 L 127.58 16.17" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,13.11 L 127.58 13.11" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,10.06 L 127.58 10.06" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,7 L 127.58 7" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,3.94 L 127.58 3.94" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,0.89 L 127.58 0.89" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-2.17 L 127.58 -2.17" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-5.22 L 127.58 -5.22" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-8.28 L 127.58 -8.28" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-11.33 L 127.58 -11.33" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-14.39 L 127.58 -14.39" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-17.44 L 127.58 -17.44" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-20.5 L 127.58 -20.5" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-23.56 L 127.58 -23.56" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-26.61 L 127.58 -26.61" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-29.67 L 127.58 -29.67" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-32.72 L 127.58 -32.72" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-35.78 L 127.58 -35.78" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-38.83 L 127.58 -38.83" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-41.89 L 127.58 -41.89" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-44.94 L 127.58 -44.94" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-48 L 127.58 -48" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-51.06 L 127.58 -51.06" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-54.11 L 127.58 -54.11" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-57.17 L 127.58 -57.17" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-60.22 L 127.58 -60.22" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-63.28 L 127.58 -63.28" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-66.33 L 127.58 -66.33" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-69.39 L 127.58 -69.39" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,220.89 L 127.58 220.89" visibility="hidden" gadfly:scale="0.5"/&gt;
      &lt;path fill="none" d="M19.63,68.11 L 127.58 68.11" visibility="hidden" gadfly:scale="0.5"/&gt;
      &lt;path fill="none" d="M19.63,-84.67 L 127.58 -84.67" visibility="hidden" gadfly:scale="0.5"/&gt;
      &lt;path fill="none" d="M19.63,159.78 L 127.58 159.78" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,153.67 L 127.58 153.67" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,147.55 L 127.58 147.55" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,141.44 L 127.58 141.44" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,135.33 L 127.58 135.33" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,129.22 L 127.58 129.22" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,123.11 L 127.58 123.11" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,117 L 127.58 117" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,110.89 L 127.58 110.89" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,104.78 L 127.58 104.78" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,98.67 L 127.58 98.67" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,92.55 L 127.58 92.55" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,86.44 L 127.58 86.44" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,80.33 L 127.58 80.33" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,74.22 L 127.58 74.22" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,68.11 L 127.58 68.11" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,62 L 127.58 62" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,55.89 L 127.58 55.89" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,49.78 L 127.58 49.78" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,43.67 L 127.58 43.67" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,37.56 L 127.58 37.56" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,31.44 L 127.58 31.44" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,25.33 L 127.58 25.33" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,19.22 L 127.58 19.22" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,13.11 L 127.58 13.11" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,7 L 127.58 7" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,0.89 L 127.58 0.89" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-5.22 L 127.58 -5.22" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-11.33 L 127.58 -11.33" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-17.44 L 127.58 -17.44" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-23.56 L 127.58 -23.56" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-29.67 L 127.58 -29.67" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-35.78 L 127.58 -35.78" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-41.89 L 127.58 -41.89" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-48 L 127.58 -48" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-54.11 L 127.58 -54.11" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-60.22 L 127.58 -60.22" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-66.33 L 127.58 -66.33" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-72.44 L 127.58 -72.44" visibility="hidden" gadfly:scale="5.0"/&gt;
    &lt;/g&gt;
    &lt;g class="guide xgridlines yfixed" stroke-dasharray="0.5,0.5" stroke-width="0.2" stroke="#D0D0E0" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-12"&gt;
      &lt;path fill="none" d="M55.93,5 L 55.93 85.39" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M90.76,5 L 90.76 85.39" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M125.58,5 L 125.58 85.39" visibility="visible" gadfly:scale="1.0"/&gt;
    &lt;/g&gt;
    &lt;g class="plotpanel" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-13"&gt;
      &lt;g stroke-width="0.3" fill="#000000" fill-opacity="0.000" stroke-dasharray="none" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-14"&gt;
        &lt;path fill="none" d="M21.63,61.39 L 22.15 63.01 22.68 64.88 23.2 65.75 23.72 65.53 24.24 66.19 24.77 65.44 25.29 64.6 25.81 62.6 26.33 64.24 26.86 63.14 27.38 62.41 27.9 61.76 28.42 60.15 28.94 59.51 29.47 59.43 29.99 57.05 30.51 57.31 31.03 58.76 31.56 60.04 32.08 59.29 32.6 56.95 33.12 58.64 33.65 58.8 34.17 60.04 34.69 61.19 35.21 60.49 35.74 58.06 36.26 59.33 36.78 59.15 37.3 60.03 37.83 57.9 38.35 60.9 38.87 60.47 39.39 61.8 39.91 62.99 40.44 62.59 40.96 62.85 41.48 61.37 42 60.8 42.53 60.36 43.05 61.74 43.57 59.57 44.09 63.47 44.62 65.21 45.14 64.53 45.66 61.4 46.18 60.13 46.71 58.91 47.23 57.72 47.75 55.68 48.27 54.24 48.8 52.75 49.32 51.15 49.84 51.7 50.36 51.13 50.88 50.26 51.41 50.58 51.93 49.94 52.45 49.43 52.97 47.26 53.5 47.63 54.02 43.28 54.54 41.73 55.06 38.71 55.59 36.85 56.11 38.83 56.63 40.76 57.15 40.38 57.68 38.32 58.2 40.53 58.72 41.71 59.24 45.53 59.77 44.75 60.29 42.69 60.81 43.54 61.33 47.48 61.85 46.26 62.38 49.17 62.9 51.72 63.42 51.08 63.94 48.32 64.47 49.22 64.99 46.99 65.51 45.37 66.03 44.84 66.56 49.23 67.08 49.47 67.6 48.5 68.12 48.55 68.65 50.2 69.17 52.04 69.69 48.28 70.21 49.14 70.74 47.87 71.26 44.77 71.78 45.94 72.3 46.46 72.82 48.27 73.35 45.57 73.87 44.73 74.39 44.69 74.91 41.97 75.44 42.75 75.96 42.73 76.48 42.15 77 42.15 77.53 42.06 78.05 42.3 78.57 42.05 79.09 38.58 79.62 37.43 80.14 37.45 80.66 37.58 81.18 37.02 81.71 37.77 82.23 34.18 82.75 34.92 83.27 34.3 83.79 31.3 84.32 30.74 84.84 31.04 85.36 33.45 85.88 37.48 86.41 40.9 86.93 38.85 87.45 40.71 87.97 39.53 88.5 37.84 89.02 35.57 89.54 34.28 90.06 32.61 90.59 31.25 91.11 31.69 91.63 30.35 92.15 28.63 92.67 32.02 93.2 31.58 93.72 31.03 94.24 30.32 94.76 33.63 95.29 37.51 95.81 38.21 96.33 38.63 96.85 39 97.38 38.02 97.9 39.92 98.42 41.11 98.94 41.89 99.47 40.85 99.99 39.33 100.51 36.48 101.03 37.12 101.56 33.6 102.08 33.78 102.6 30.27 103.12 29.93 103.64 26.12 104.17 26.05 104.69 24.24 105.21 25.87 105.73 27.08 106.26 25.68 106.78 28.93 107.3 28.27 107.82 29.74 108.35 29.07 108.87 27.61 109.39 28.83 109.91 27.94 110.44 24.59 110.96 21.98 111.48 23.57 112 22.27 112.53 23.76 113.05 24.49 113.57 24.01 114.09 27.19 114.61 29.62 115.14 30.47 115.66 31.48 116.18 34.04 116.7 29.61 117.23 29.29 117.75 31.04 118.27 29.64 118.79 32.69 119.32 33.45 119.84 35.26 120.36 36.97 120.88 36.6 121.41 37.29 121.93 39.06 122.45 38.48 122.97 39.26 123.5 39.98 124.02 38.69 124.54 38.15 125.06 37.06 125.58 39.61" class="geometry color_" stroke="#004D84"/&gt;
        &lt;path fill="none" d="M21.63,61.39 L 22.15 61.55 22.68 59.53 23.2 62.63 23.72 61.1 24.24 60.87 24.77 63.38 25.29 63.77 25.81 65.57 26.33 63.22 26.86 63.73 27.38 63.29 27.9 60.76 28.42 60.09 28.94 60 29.47 58.56 29.99 59.7 30.51 59.73 31.03 57.99 31.56 58.25 32.08 60.02 32.6 63.02 33.12 63.52 33.65 64.28 34.17 63.56 34.69 65.89 35.21 65.14 35.74 64.68 36.26 61.26 36.78 60.1 37.3 58.77 37.83 58.54 38.35 59.44 38.87 61.08 39.39 59.79 39.91 59.06 40.44 59.77 40.96 58.28 41.48 60.23 42 59.88 42.53 55.28 43.05 58.62 43.57 58.51 44.09 58.98 44.62 56.77 45.14 54.9 45.66 55.78 46.18 55.1 46.71 56.55 47.23 58.27 47.75 56.82 48.27 56.24 48.8 54.06 49.32 56.41 49.84 55.68 50.36 58.5 50.88 57.87 51.41 58.81 51.93 59.87 52.45 61.56 52.97 65.32 53.5 65.49 54.02 65.91 54.54 67.73 55.06 66.87 55.59 67.38 56.11 64.09 56.63 63.02 57.15 63.89 57.68 62.49 58.2 61.84 58.72 63.22 59.24 62.02 59.77 62.72 60.29 62.27 60.81 62.55 61.33 58.97 61.85 57.07 62.38 60.9 62.9 61.93 63.42 61.82 63.94 61.85 64.47 61.73 64.99 62.68 65.51 64.04 66.03 61.26 66.56 62.96 67.08 64.38 67.6 65.88 68.12 66.68 68.65 68.22 69.17 67.78 69.69 69.38 70.21 70.75 70.74 72.39 71.26 70.94 71.78 72.08 72.3 72.27 72.82 73.58 73.35 73.74 73.87 72.35 74.39 72.22 74.91 74.12 75.44 75.3 75.96 74.87 76.48 75.32 77 74.8 77.53 74.11 78.05 74.5 78.57 69.69 79.09 72.14 79.62 69.69 80.14 69.75 80.66 69.51 81.18 71.33 81.71 73.9 82.23 72.82 82.75 70.59 83.27 71.59 83.79 71.58 84.32 71.71 84.84 69.86 85.36 70.05 85.88 69.15 86.41 72.2 86.93 69.53 87.45 70.69 87.97 70.15 88.5 69.51 89.02 67.76 89.54 67.41 90.06 67.64 90.59 67.5 91.11 68.27 91.63 68.42 92.15 68.23 92.67 68.39 93.2 68.47 93.72 69.07 94.24 71.95 94.76 74.34 95.29 75.63 95.81 74.08 96.33 71.92 96.85 71.36 97.38 71.17 97.9 68.55 98.42 70.43 98.94 71.01 99.47 70.5 99.99 69.72 100.51 69.93 101.03 66.34 101.56 64.29 102.08 67.1 102.6 68.99 103.12 70.73 103.64 67.44 104.17 68.72 104.69 71.08 105.21 70.44 105.73 71.41 106.26 69.46 106.78 67.03 107.3 66.86 107.82 68.11 108.35 67.18 108.87 67.67 109.39 66.77 109.91 67.01 110.44 65.42 110.96 66.32 111.48 68.51 112 68.31 112.53 66.43 113.05 67.65 113.57 68.46 114.09 67.9 114.61 69.27 115.14 65.25 115.66 63.92 116.18 63.66 116.7 62.69 117.23 62.57 117.75 63.19 118.27 64.28 118.79 61.75 119.32 62.08 119.84 62.38 120.36 62.89 120.88 61.83 121.41 60.06 121.93 58.9 122.45 57.83 122.97 56.53 123.5 58.83 124.02 57.9 124.54 59.82 125.06 59.66 125.58 60.89" class="geometry color_" stroke="#7E273E"/&gt;
        &lt;path fill="none" d="M21.63,61.39 L 22.15 62.01 22.68 62.12 23.2 64.62 23.72 64.89 24.24 60.83 24.77 58.38 25.29 57.87 25.81 59.4 26.33 59.29 26.86 58.42 27.38 58.88 27.9 61.48 28.42 61.57 28.94 63.47 29.47 63.35 29.99 64.6 30.51 66.75 31.03 67.31 31.56 66.27 32.08 66.88 32.6 66.7 33.12 68.45 33.65 68.23 34.17 69.78 34.69 70.71 35.21 68.96 35.74 71.3 36.26 71.51 36.78 72.6 37.3 71.53 37.83 68.39 38.35 67.9 38.87 68.04 39.39 66.79 39.91 65.4 40.44 66.69 40.96 66.18 41.48 65.4 42 63.44 42.53 61.3 43.05 63.19 43.57 61.69 44.09 58.24 44.62 57.65 45.14 56.99 45.66 58.92 46.18 58.42 46.71 57.78 47.23 56.04 47.75 55.47 48.27 53.63 48.8 50.38 49.32 50.16 49.84 47.49 50.36 46.04 50.88 45.37 51.41 45.88 51.93 46.2 52.45 48.8 52.97 46.81 53.5 47.41 54.02 44.95 54.54 42.2 55.06 40.28 55.59 40.95 56.11 41.25 56.63 42.26 57.15 45.49 57.68 49.57 58.2 51.75 58.72 51.28 59.24 50.92 59.77 50.58 60.29 49.25 60.81 48.75 61.33 50.04 61.85 51.83 62.38 56.12 62.9 58.24 63.42 53.76 63.94 48.49 64.47 49.53 64.99 48.91 65.51 47.5 66.03 44.98 66.56 45.34 67.08 45.47 67.6 47.09 68.12 45.28 68.65 46.64 69.17 46.73 69.69 47.31 70.21 41.61 70.74 40.78 71.26 39.14 71.78 38.12 72.3 38.34 72.82 38.18 73.35 38.73 73.87 38.42 74.39 38.55 74.91 38.09 75.44 37.59 75.96 37.78 76.48 35.41 77 31.8 77.53 33.17 78.05 33.1 78.57 31.68 79.09 33.07 79.62 34.53 80.14 34.08 80.66 33.6 81.18 32.97 81.71 32.22 82.23 32.64 82.75 35.43 83.27 36.8 83.79 37.78 84.32 39.79 84.84 40.84 85.36 40.79 85.88 37.93 86.41 34.02 86.93 33.81 87.45 34.55 87.97 32.24 88.5 29.77 89.02 29.49 89.54 34.31 90.06 34.92 90.59 36.37 91.11 33.74 91.63 37.64 92.15 36.01 92.67 39.21 93.2 39.67 93.72 38.94 94.24 41.03 94.76 42.02 95.29 41.38 95.81 40.65 96.33 41.11 96.85 42.33 97.38 41.38 97.9 39.81 98.42 37.69 98.94 38.54 99.47 35.99 99.99 35.41 100.51 38.56 101.03 38.77 101.56 40.05 102.08 42.32 102.6 43.14 103.12 43.52 103.64 46.7 104.17 45.1 104.69 43.26 105.21 42.06 105.73 45.01 106.26 44.86 106.78 43.66 107.3 43.57 107.82 43.53 108.35 44.76 108.87 44.65 109.39 46.06 109.91 44.57 110.44 49.26 110.96 49.18 111.48 51.74 112 51.36 112.53 52.06 113.05 55.72 113.57 57.48 114.09 59.83 114.61 61.84 115.14 63.48 115.66 63.61 116.18 62.01 116.7 62.46 117.23 62.32 117.75 63.34 118.27 61.52 118.79 61.6 119.32 59.09 119.84 61.22 120.36 62.07 120.88 62.68 121.41 64.73 121.93 65.46 122.45 63.95 122.97 63.8 123.5 65.66 124.02 63.97 124.54 62.93 125.06 62.62 125.58 59.34" class="geometry color_" stroke="#88C4C4"/&gt;
        &lt;path fill="none" d="M21.63,61.39 L 22.15 61.13 22.68 60.81 23.2 62.02 23.72 62.26 24.24 60.5 24.77 57.82 25.29 56.74 25.81 56.51 26.33 58.2 26.86 60.28 27.38 61.78 27.9 58.53 28.42 57.05 28.94 57.46 29.47 56.25 29.99 55.53 30.51 56.65 31.03 57.59 31.56 54.25 32.08 55.32 32.6 56.21 33.12 59.52 33.65 59.2 34.17 60.8 34.69 62.11 35.21 62.65 35.74 63.18 36.26 65.53 36.78 62.71 37.3 61.28 37.83 62.17 38.35 64.09 38.87 65.57 39.39 68.22 39.91 69.83 40.44 71.7 40.96 72.83 41.48 72.38 42 73.06 42.53 75.36 43.05 74.31 43.57 72.7 44.09 72.32 44.62 72.66 45.14 71.6 45.66 70.6 46.18 71.62 46.71 70.85 47.23 71.92 47.75 72.63 48.27 70.05 48.8 70.08 49.32 66.73 49.84 67.47 50.36 66.88 50.88 69.37 51.41 68.11 51.93 68.23 52.45 68.51 52.97 68.65 53.5 68.56 54.02 70.73 54.54 69.14 55.06 69.57 55.59 69.92 56.11 72.37 56.63 73.95 57.15 73.32 57.68 73.92 58.2 73.39 58.72 73.43 59.24 73.68 59.77 74.47 60.29 72.03 60.81 72.45 61.33 73.14 61.85 73.15 62.38 71.74 62.9 69.85 63.42 70.7 63.94 71.26 64.47 72.88 64.99 74.1 65.51 70.79 66.03 70.7 66.56 70.99 67.08 70.58 67.6 69.57 68.12 68.88 68.65 70.25 69.17 68.44 69.69 66.43 70.21 66.82 70.74 67.93 71.26 66.66 71.78 68.22 72.3 67.71 72.82 70.26 73.35 69.76 73.87 70.48 74.39 68.83 74.91 69.78 75.44 69.89 75.96 73.59 76.48 67.68 77 68.15 77.53 64.77 78.05 62.61 78.57 63.48 79.09 64.13 79.62 63.34 80.14 64.97 80.66 66.9 81.18 67.84 81.71 65.25 82.23 65.96 82.75 68.01 83.27 67.94 83.79 67.69 84.32 67.66 84.84 65.74 85.36 66.5 85.88 66.92 86.41 66.41 86.93 68.51 87.45 71.01 87.97 71.21 88.5 72.5 89.02 73.18 89.54 70.08 90.06 72.06 90.59 74.8 91.11 74.42 91.63 75.56 92.15 73.31 92.67 74.09 93.2 75.35 93.72 74.34 94.24 77.32 94.76 74.76 95.29 72.97 95.81 71.55 96.33 72.98 96.85 75.64 97.38 75.6 97.9 76.73 98.42 74.28 98.94 73.56 99.47 73.22 99.99 74.74 100.51 74.37 101.03 73.72 101.56 75.73 102.08 76.29 102.6 75.49 103.12 74.57 103.64 76.28 104.17 75.11 104.69 74.66 105.21 77.83 105.73 80.01 106.26 78.94 106.78 80.86 107.3 81.08 107.82 80.19 108.35 77.17 108.87 79.12 109.39 82.08 109.91 80.5 110.44 78.48 110.96 77.93 111.48 77.62 112 77.35 112.53 78.06 113.05 78 113.57 78.5 114.09 77.21 114.61 78.04 115.14 78.9 115.66 78.49 116.18 78.9 116.7 76.42 117.23 75.58 117.75 76.93 118.27 75.55 118.79 72.22 119.32 71.57 119.84 70.44 120.36 70.09 120.88 73.61 121.41 72.94 121.93 70.79 122.45 73.21 122.97 75.36 123.5 75.87 124.02 78.45 124.54 78.19 125.06 79.03 125.58 75.53" class="geometry color_" stroke="#BECAB9"/&gt;
        &lt;path fill="none" d="M21.63,61.39 L 22.15 62.55 22.68 62.37 23.2 63.25 23.72 63.25 24.24 64.02 24.77 65.99 25.29 69.66 25.81 71.24 26.33 70.93 26.86 70.19 27.38 71.55 27.9 73.13 28.42 70.7 28.94 73.34 29.47 72.47 29.99 71.56 30.51 71.95 31.03 71.63 31.56 71.16 32.08 73.57 32.6 73.55 33.12 76.27 33.65 73.77 34.17 73.68 34.69 73.68 35.21 76.32 35.74 78.54 36.26 78.59 36.78 78.96 37.3 79.49 37.83 81.13 38.35 81.3 38.87 81.14 39.39 82.98 39.91 80.8 40.44 80.57 40.96 79.64 41.48 81.32 42 78.97 42.53 79.94 43.05 82.18 43.57 81.76 44.09 80.36 44.62 79.69 45.14 78.74 45.66 76.71 46.18 74.35 46.71 73.54 47.23 75.11 47.75 75.3 48.27 72.13 48.8 71.57 49.32 73.81 49.84 70.57 50.36 70.7 50.88 69.51 51.41 67.7 51.93 68.7 52.45 68.49 52.97 67.36 53.5 68.38 54.02 68.57 54.54 69.48 55.06 67.24 55.59 67.91 56.11 68.49 56.63 69.85 57.15 70.98 57.68 72.27 58.2 72.59 58.72 72.89 59.24 71.74 59.77 74.72 60.29 75.85 60.81 76.74 61.33 76.47 61.85 78.94 62.38 80.68 62.9 79.33 63.42 79.29 63.94 80.75 64.47 78.89 64.99 75.99 65.51 76.3 66.03 75.83 66.56 74.26 67.08 73.28 67.6 73.07 68.12 76.32 68.65 79.61 69.17 78.24 69.69 79.84 70.21 78.28 70.74 79.19 71.26 80.4 71.78 82.76 72.3 81.01 72.82 78.82 73.35 80.8 73.87 79.4 74.39 79.97 74.91 79.62 75.44 78.4 75.96 80.89 76.48 80.82 77 80.98 77.53 78.76 78.05 78.89 78.57 78.74 79.09 78.77 79.62 79.58 80.14 80.03 80.66 79.16 81.18 78.87 81.71 77.29 82.23 79.92 82.75 80.48 83.27 76.93 83.79 74.47 84.32 75.54 84.84 73.87 85.36 72.13 85.88 69.8 86.41 70.82 86.93 71.83 87.45 73.26 87.97 72.86 88.5 74.19 89.02 72.37 89.54 70.28 90.06 70.37 90.59 71.36 91.11 69.93 91.63 67.03 92.15 69.87 92.67 66.08 93.2 65.76 93.72 65.11 94.24 65.89 94.76 66.82 95.29 67.4 95.81 66.67 96.33 65.37 96.85 66.11 97.38 66.54 97.9 68.48 98.42 69.86 98.94 66.92 99.47 66.68 99.99 68.42 100.51 71.29 101.03 69.59 101.56 67.99 102.08 67.6 102.6 68.79 103.12 68.83 103.64 72.71 104.17 69.46 104.69 68.62 105.21 64.75 105.73 66.78 106.26 64.76 106.78 67.81 107.3 70.4 107.82 70.97 108.35 72.14 108.87 72.67 109.39 72.77 109.91 74.44 110.44 75.67 110.96 77.33 111.48 76.89 112 75.27 112.53 73.3 113.05 75.32 113.57 74.37 114.09 76.24 114.61 75.89 115.14 72.65 115.66 72.29 116.18 70.49 116.7 71.87 117.23 69.1 117.75 70.16 118.27 66.35 118.79 65.95 119.32 67.92 119.84 67.88 120.36 68.62 120.88 69.89 121.41 68.68 121.93 65.93 122.45 64.6 122.97 64.63 123.5 64.11 124.02 65.81 124.54 63.74 125.06 61.66 125.58 61.11" class="geometry color_" stroke="#D2B497"/&gt;
      &lt;/g&gt;
    &lt;/g&gt;
    &lt;g opacity="0" class="guide zoomslider" stroke="#000000" stroke-opacity="0.000" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-15"&gt;
      &lt;g fill="#EAEAEA" stroke-width="0.3" stroke-opacity="0" stroke="#6A6A6A" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-16"&gt;
        &lt;rect x="120.58" y="8" width="4" height="4"/&gt;
        &lt;g class="button_logo" fill="#6A6A6A" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-17"&gt;
          &lt;path d="M121.38,9.6 L 122.18 9.6 122.18 8.8 122.98 8.8 122.98 9.6 123.78 9.6 123.78 10.4 122.98 10.4 122.98 11.2 122.18 11.2 122.18 10.4 121.38 10.4 z"/&gt;
        &lt;/g&gt;
      &lt;/g&gt;
      &lt;g fill="#EAEAEA" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-18"&gt;
        &lt;rect x="101.08" y="8" width="19" height="4"/&gt;
      &lt;/g&gt;
      &lt;g class="zoomslider_thumb" fill="#6A6A6A" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-19"&gt;
        &lt;rect x="109.58" y="8" width="2" height="4"/&gt;
      &lt;/g&gt;
      &lt;g fill="#EAEAEA" stroke-width="0.3" stroke-opacity="0" stroke="#6A6A6A" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-20"&gt;
        &lt;rect x="96.58" y="8" width="4" height="4"/&gt;
        &lt;g class="button_logo" fill="#6A6A6A" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-21"&gt;
          &lt;path d="M97.38,9.6 L 99.78 9.6 99.78 10.4 97.38 10.4 z"/&gt;
        &lt;/g&gt;
      &lt;/g&gt;
    &lt;/g&gt;
  &lt;/g&gt;
  &lt;g class="guide ylabels" font-size="2.82" font-family="'PT Sans Caption','Helvetica Neue','Helvetica',sans-serif" fill="#6C606B" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-22"&gt;
    &lt;text x="18.63" y="175.05" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;65&lt;/text&gt;
    &lt;text x="18.63" y="159.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;70&lt;/text&gt;
    &lt;text x="18.63" y="144.5" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;75&lt;/text&gt;
    &lt;text x="18.63" y="129.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;80&lt;/text&gt;
    &lt;text x="18.63" y="113.94" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;85&lt;/text&gt;
    &lt;text x="18.63" y="98.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;90&lt;/text&gt;
    &lt;text x="18.63" y="83.39" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;95&lt;/text&gt;
    &lt;text x="18.63" y="68.11" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;100&lt;/text&gt;
    &lt;text x="18.63" y="52.83" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;105&lt;/text&gt;
    &lt;text x="18.63" y="37.56" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;110&lt;/text&gt;
    &lt;text x="18.63" y="22.28" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;115&lt;/text&gt;
    &lt;text x="18.63" y="7" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;120&lt;/text&gt;
    &lt;text x="18.63" y="-8.28" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;125&lt;/text&gt;
    &lt;text x="18.63" y="-23.56" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;130&lt;/text&gt;
    &lt;text x="18.63" y="-38.83" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;135&lt;/text&gt;
    &lt;text x="18.63" y="-54.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;140&lt;/text&gt;
    &lt;text x="18.63" y="-69.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;145&lt;/text&gt;
    &lt;text x="18.63" y="-84.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;150&lt;/text&gt;
    &lt;text x="18.63" y="159.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;70&lt;/text&gt;
    &lt;text x="18.63" y="156.72" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;71&lt;/text&gt;
    &lt;text x="18.63" y="153.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;72&lt;/text&gt;
    &lt;text x="18.63" y="150.61" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;73&lt;/text&gt;
    &lt;text x="18.63" y="147.55" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;74&lt;/text&gt;
    &lt;text x="18.63" y="144.5" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;75&lt;/text&gt;
    &lt;text x="18.63" y="141.44" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;76&lt;/text&gt;
    &lt;text x="18.63" y="138.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;77&lt;/text&gt;
    &lt;text x="18.63" y="135.33" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;78&lt;/text&gt;
    &lt;text x="18.63" y="132.28" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;79&lt;/text&gt;
    &lt;text x="18.63" y="129.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;80&lt;/text&gt;
    &lt;text x="18.63" y="126.17" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;81&lt;/text&gt;
    &lt;text x="18.63" y="123.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;82&lt;/text&gt;
    &lt;text x="18.63" y="120.05" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;83&lt;/text&gt;
    &lt;text x="18.63" y="117" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;84&lt;/text&gt;
    &lt;text x="18.63" y="113.94" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;85&lt;/text&gt;
    &lt;text x="18.63" y="110.89" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;86&lt;/text&gt;
    &lt;text x="18.63" y="107.83" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;87&lt;/text&gt;
    &lt;text x="18.63" y="104.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;88&lt;/text&gt;
    &lt;text x="18.63" y="101.72" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;89&lt;/text&gt;
    &lt;text x="18.63" y="98.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;90&lt;/text&gt;
    &lt;text x="18.63" y="95.61" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;91&lt;/text&gt;
    &lt;text x="18.63" y="92.55" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;92&lt;/text&gt;
    &lt;text x="18.63" y="89.5" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;93&lt;/text&gt;
    &lt;text x="18.63" y="86.44" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;94&lt;/text&gt;
    &lt;text x="18.63" y="83.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;95&lt;/text&gt;
    &lt;text x="18.63" y="80.33" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;96&lt;/text&gt;
    &lt;text x="18.63" y="77.28" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;97&lt;/text&gt;
    &lt;text x="18.63" y="74.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;98&lt;/text&gt;
    &lt;text x="18.63" y="71.17" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;99&lt;/text&gt;
    &lt;text x="18.63" y="68.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;100&lt;/text&gt;
    &lt;text x="18.63" y="65.06" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;101&lt;/text&gt;
    &lt;text x="18.63" y="62" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;102&lt;/text&gt;
    &lt;text x="18.63" y="58.94" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;103&lt;/text&gt;
    &lt;text x="18.63" y="55.89" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;104&lt;/text&gt;
    &lt;text x="18.63" y="52.83" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;105&lt;/text&gt;
    &lt;text x="18.63" y="49.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;106&lt;/text&gt;
    &lt;text x="18.63" y="46.72" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;107&lt;/text&gt;
    &lt;text x="18.63" y="43.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;108&lt;/text&gt;
    &lt;text x="18.63" y="40.61" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;109&lt;/text&gt;
    &lt;text x="18.63" y="37.56" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;110&lt;/text&gt;
    &lt;text x="18.63" y="34.5" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;111&lt;/text&gt;
    &lt;text x="18.63" y="31.44" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;112&lt;/text&gt;
    &lt;text x="18.63" y="28.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;113&lt;/text&gt;
    &lt;text x="18.63" y="25.33" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;114&lt;/text&gt;
    &lt;text x="18.63" y="22.28" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;115&lt;/text&gt;
    &lt;text x="18.63" y="19.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;116&lt;/text&gt;
    &lt;text x="18.63" y="16.17" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;117&lt;/text&gt;
    &lt;text x="18.63" y="13.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;118&lt;/text&gt;
    &lt;text x="18.63" y="10.06" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;119&lt;/text&gt;
    &lt;text x="18.63" y="7" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;120&lt;/text&gt;
    &lt;text x="18.63" y="3.94" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;121&lt;/text&gt;
    &lt;text x="18.63" y="0.89" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;122&lt;/text&gt;
    &lt;text x="18.63" y="-2.17" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;123&lt;/text&gt;
    &lt;text x="18.63" y="-5.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;124&lt;/text&gt;
    &lt;text x="18.63" y="-8.28" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;125&lt;/text&gt;
    &lt;text x="18.63" y="-11.33" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;126&lt;/text&gt;
    &lt;text x="18.63" y="-14.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;127&lt;/text&gt;
    &lt;text x="18.63" y="-17.44" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;128&lt;/text&gt;
    &lt;text x="18.63" y="-20.5" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;129&lt;/text&gt;
    &lt;text x="18.63" y="-23.56" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;130&lt;/text&gt;
    &lt;text x="18.63" y="-26.61" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;131&lt;/text&gt;
    &lt;text x="18.63" y="-29.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;132&lt;/text&gt;
    &lt;text x="18.63" y="-32.72" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;133&lt;/text&gt;
    &lt;text x="18.63" y="-35.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;134&lt;/text&gt;
    &lt;text x="18.63" y="-38.83" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;135&lt;/text&gt;
    &lt;text x="18.63" y="-41.89" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;136&lt;/text&gt;
    &lt;text x="18.63" y="-44.94" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;137&lt;/text&gt;
    &lt;text x="18.63" y="-48" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;138&lt;/text&gt;
    &lt;text x="18.63" y="-51.06" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;139&lt;/text&gt;
    &lt;text x="18.63" y="-54.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;140&lt;/text&gt;
    &lt;text x="18.63" y="-57.17" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;141&lt;/text&gt;
    &lt;text x="18.63" y="-60.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;142&lt;/text&gt;
    &lt;text x="18.63" y="-63.28" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;143&lt;/text&gt;
    &lt;text x="18.63" y="-66.33" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;144&lt;/text&gt;
    &lt;text x="18.63" y="-69.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;145&lt;/text&gt;
    &lt;text x="18.63" y="220.89" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="0.5"&gt;50&lt;/text&gt;
    &lt;text x="18.63" y="68.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="0.5"&gt;100&lt;/text&gt;
    &lt;text x="18.63" y="-84.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="0.5"&gt;150&lt;/text&gt;
    &lt;text x="18.63" y="159.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;70&lt;/text&gt;
    &lt;text x="18.63" y="153.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;72&lt;/text&gt;
    &lt;text x="18.63" y="147.55" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;74&lt;/text&gt;
    &lt;text x="18.63" y="141.44" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;76&lt;/text&gt;
    &lt;text x="18.63" y="135.33" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;78&lt;/text&gt;
    &lt;text x="18.63" y="129.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;80&lt;/text&gt;
    &lt;text x="18.63" y="123.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;82&lt;/text&gt;
    &lt;text x="18.63" y="117" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;84&lt;/text&gt;
    &lt;text x="18.63" y="110.89" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;86&lt;/text&gt;
    &lt;text x="18.63" y="104.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;88&lt;/text&gt;
    &lt;text x="18.63" y="98.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;90&lt;/text&gt;
    &lt;text x="18.63" y="92.55" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;92&lt;/text&gt;
    &lt;text x="18.63" y="86.44" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;94&lt;/text&gt;
    &lt;text x="18.63" y="80.33" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;96&lt;/text&gt;
    &lt;text x="18.63" y="74.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;98&lt;/text&gt;
    &lt;text x="18.63" y="68.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;100&lt;/text&gt;
    &lt;text x="18.63" y="62" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;102&lt;/text&gt;
    &lt;text x="18.63" y="55.89" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;104&lt;/text&gt;
    &lt;text x="18.63" y="49.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;106&lt;/text&gt;
    &lt;text x="18.63" y="43.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;108&lt;/text&gt;
    &lt;text x="18.63" y="37.56" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;110&lt;/text&gt;
    &lt;text x="18.63" y="31.44" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;112&lt;/text&gt;
    &lt;text x="18.63" y="25.33" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;114&lt;/text&gt;
    &lt;text x="18.63" y="19.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;116&lt;/text&gt;
    &lt;text x="18.63" y="13.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;118&lt;/text&gt;
    &lt;text x="18.63" y="7" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;120&lt;/text&gt;
    &lt;text x="18.63" y="0.89" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;122&lt;/text&gt;
    &lt;text x="18.63" y="-5.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;124&lt;/text&gt;
    &lt;text x="18.63" y="-11.33" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;126&lt;/text&gt;
    &lt;text x="18.63" y="-17.44" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;128&lt;/text&gt;
    &lt;text x="18.63" y="-23.56" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;130&lt;/text&gt;
    &lt;text x="18.63" y="-29.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;132&lt;/text&gt;
    &lt;text x="18.63" y="-35.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;134&lt;/text&gt;
    &lt;text x="18.63" y="-41.89" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;136&lt;/text&gt;
    &lt;text x="18.63" y="-48" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;138&lt;/text&gt;
    &lt;text x="18.63" y="-54.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;140&lt;/text&gt;
    &lt;text x="18.63" y="-60.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;142&lt;/text&gt;
    &lt;text x="18.63" y="-66.33" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;144&lt;/text&gt;
    &lt;text x="18.63" y="-72.44" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;146&lt;/text&gt;
  &lt;/g&gt;
  &lt;g font-size="3.88" font-family="'PT Sans','Helvetica Neue','Helvetica',sans-serif" fill="#564A55" stroke="#000000" stroke-opacity="0.000" id="fig-3a6dd25ad25c4037a166889ee51bb151-element-23"&gt;
    &lt;text x="8.81" y="43.19" text-anchor="middle" dy="0.35em" transform="rotate(-90, 8.81, 45.19)"&gt;Value&lt;/text&gt;
  &lt;/g&gt;
&lt;/g&gt;
&lt;defs&gt;
&lt;clipPath id="fig-3a6dd25ad25c4037a166889ee51bb151-element-9"&gt;
  &lt;path d="M19.63,5 L 127.58 5 127.58 85.39 19.63 85.39" /&gt;
&lt;/clipPath
&gt;&lt;/defs&gt;
&lt;script&gt; &lt;![CDATA[
(function(N){var k=/[\.\/]/,L=/\s*,\s*/,C=function(a,d){return a-d},a,v,y={n:{}},M=function(){for(var a=0,d=this.length;a&lt;d;a++)if("undefined"!=typeof this[a])return this[a]},A=function(){for(var a=this.length;--a;)if("undefined"!=typeof this[a])return this[a]},w=function(k,d){k=String(k);var f=v,n=Array.prototype.slice.call(arguments,2),u=w.listeners(k),p=0,b,q=[],e={},l=[],r=a;l.firstDefined=M;l.lastDefined=A;a=k;for(var s=v=0,x=u.length;s&lt;x;s++)"zIndex"in u[s]&amp;&amp;(q.push(u[s].zIndex),0&gt;u[s].zIndex&amp;&amp;
(e[u[s].zIndex]=u[s]));for(q.sort(C);0&gt;q[p];)if(b=e[q[p++] ],l.push(b.apply(d,n)),v)return v=f,l;for(s=0;s&lt;x;s++)if(b=u[s],"zIndex"in b)if(b.zIndex==q[p]){l.push(b.apply(d,n));if(v)break;do if(p++,(b=e[q[p] ])&amp;&amp;l.push(b.apply(d,n)),v)break;while(b)}else e[b.zIndex]=b;else if(l.push(b.apply(d,n)),v)break;v=f;a=r;return l};w._events=y;w.listeners=function(a){a=a.split(k);var d=y,f,n,u,p,b,q,e,l=[d],r=[];u=0;for(p=a.length;u&lt;p;u++){e=[];b=0;for(q=l.length;b&lt;q;b++)for(d=l[b].n,f=[d[a[u] ],d["*"] ],n=2;n--;)if(d=
f[n])e.push(d),r=r.concat(d.f||[]);l=e}return r};w.on=function(a,d){a=String(a);if("function"!=typeof d)return function(){};for(var f=a.split(L),n=0,u=f.length;n&lt;u;n++)(function(a){a=a.split(k);for(var b=y,f,e=0,l=a.length;e&lt;l;e++)b=b.n,b=b.hasOwnProperty(a[e])&amp;&amp;b[a[e] ]||(b[a[e] ]={n:{}});b.f=b.f||[];e=0;for(l=b.f.length;e&lt;l;e++)if(b.f[e]==d){f=!0;break}!f&amp;&amp;b.f.push(d)})(f[n]);return function(a){+a==+a&amp;&amp;(d.zIndex=+a)}};w.f=function(a){var d=[].slice.call(arguments,1);return function(){w.apply(null,
[a,null].concat(d).concat([].slice.call(arguments,0)))}};w.stop=function(){v=1};w.nt=function(k){return k?(new RegExp("(?:\\.|\\/|^)"+k+"(?:\\.|\\/|$)")).test(a):a};w.nts=function(){return a.split(k)};w.off=w.unbind=function(a,d){if(a){var f=a.split(L);if(1&lt;f.length)for(var n=0,u=f.length;n&lt;u;n++)w.off(f[n],d);else{for(var f=a.split(k),p,b,q,e,l=[y],n=0,u=f.length;n&lt;u;n++)for(e=0;e&lt;l.length;e+=q.length-2){q=[e,1];p=l[e].n;if("*"!=f[n])p[f[n] ]&amp;&amp;q.push(p[f[n] ]);else for(b in p)p.hasOwnProperty(b)&amp;&amp;
q.push(p[b]);l.splice.apply(l,q)}n=0;for(u=l.length;n&lt;u;n++)for(p=l[n];p.n;){if(d){if(p.f){e=0;for(f=p.f.length;e&lt;f;e++)if(p.f[e]==d){p.f.splice(e,1);break}!p.f.length&amp;&amp;delete p.f}for(b in p.n)if(p.n.hasOwnProperty(b)&amp;&amp;p.n[b].f){q=p.n[b].f;e=0;for(f=q.length;e&lt;f;e++)if(q[e]==d){q.splice(e,1);break}!q.length&amp;&amp;delete p.n[b].f}}else for(b in delete p.f,p.n)p.n.hasOwnProperty(b)&amp;&amp;p.n[b].f&amp;&amp;delete p.n[b].f;p=p.n}}}else w._events=y={n:{}}};w.once=function(a,d){var f=function(){w.unbind(a,f);return d.apply(this,
arguments)};return w.on(a,f)};w.version="0.4.2";w.toString=function(){return"You are running Eve 0.4.2"};"undefined"!=typeof module&amp;&amp;module.exports?module.exports=w:"function"===typeof define&amp;&amp;define.amd?define("eve",[],function(){return w}):N.eve=w})(this);
(function(N,k){"function"===typeof define&amp;&amp;define.amd?define("Snap.svg",["eve"],function(L){return k(N,L)}):k(N,N.eve)})(this,function(N,k){var L=function(a){var k={},y=N.requestAnimationFrame||N.webkitRequestAnimationFrame||N.mozRequestAnimationFrame||N.oRequestAnimationFrame||N.msRequestAnimationFrame||function(a){setTimeout(a,16)},M=Array.isArray||function(a){return a instanceof Array||"[object Array]"==Object.prototype.toString.call(a)},A=0,w="M"+(+new Date).toString(36),z=function(a){if(null==
a)return this.s;var b=this.s-a;this.b+=this.dur*b;this.B+=this.dur*b;this.s=a},d=function(a){if(null==a)return this.spd;this.spd=a},f=function(a){if(null==a)return this.dur;this.s=this.s*a/this.dur;this.dur=a},n=function(){delete k[this.id];this.update();a("mina.stop."+this.id,this)},u=function(){this.pdif||(delete k[this.id],this.update(),this.pdif=this.get()-this.b)},p=function(){this.pdif&amp;&amp;(this.b=this.get()-this.pdif,delete this.pdif,k[this.id]=this)},b=function(){var a;if(M(this.start)){a=[];
for(var b=0,e=this.start.length;b&lt;e;b++)a[b]=+this.start[b]+(this.end[b]-this.start[b])*this.easing(this.s)}else a=+this.start+(this.end-this.start)*this.easing(this.s);this.set(a)},q=function(){var l=0,b;for(b in k)if(k.hasOwnProperty(b)){var e=k[b],f=e.get();l++;e.s=(f-e.b)/(e.dur/e.spd);1&lt;=e.s&amp;&amp;(delete k[b],e.s=1,l--,function(b){setTimeout(function(){a("mina.finish."+b.id,b)})}(e));e.update()}l&amp;&amp;y(q)},e=function(a,r,s,x,G,h,J){a={id:w+(A++).toString(36),start:a,end:r,b:s,s:0,dur:x-s,spd:1,get:G,
set:h,easing:J||e.linear,status:z,speed:d,duration:f,stop:n,pause:u,resume:p,update:b};k[a.id]=a;r=0;for(var K in k)if(k.hasOwnProperty(K)&amp;&amp;(r++,2==r))break;1==r&amp;&amp;y(q);return a};e.time=Date.now||function(){return+new Date};e.getById=function(a){return k[a]||null};e.linear=function(a){return a};e.easeout=function(a){return Math.pow(a,1.7)};e.easein=function(a){return Math.pow(a,0.48)};e.easeinout=function(a){if(1==a)return 1;if(0==a)return 0;var b=0.48-a/1.04,e=Math.sqrt(0.1734+b*b);a=e-b;a=Math.pow(Math.abs(a),
1/3)*(0&gt;a?-1:1);b=-e-b;b=Math.pow(Math.abs(b),1/3)*(0&gt;b?-1:1);a=a+b+0.5;return 3*(1-a)*a*a+a*a*a};e.backin=function(a){return 1==a?1:a*a*(2.70158*a-1.70158)};e.backout=function(a){if(0==a)return 0;a-=1;return a*a*(2.70158*a+1.70158)+1};e.elastic=function(a){return a==!!a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1};e.bounce=function(a){a&lt;1/2.75?a*=7.5625*a:a&lt;2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a&lt;2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a};
return N.mina=e}("undefined"==typeof k?function(){}:k),C=function(){function a(c,t){if(c){if(c.tagName)return x(c);if(y(c,"array")&amp;&amp;a.set)return a.set.apply(a,c);if(c instanceof e)return c;if(null==t)return c=G.doc.querySelector(c),x(c)}return new s(null==c?"100%":c,null==t?"100%":t)}function v(c,a){if(a){"#text"==c&amp;&amp;(c=G.doc.createTextNode(a.text||""));"string"==typeof c&amp;&amp;(c=v(c));if("string"==typeof a)return"xlink:"==a.substring(0,6)?c.getAttributeNS(m,a.substring(6)):"xml:"==a.substring(0,4)?c.getAttributeNS(la,
a.substring(4)):c.getAttribute(a);for(var da in a)if(a[h](da)){var b=J(a[da]);b?"xlink:"==da.substring(0,6)?c.setAttributeNS(m,da.substring(6),b):"xml:"==da.substring(0,4)?c.setAttributeNS(la,da.substring(4),b):c.setAttribute(da,b):c.removeAttribute(da)}}else c=G.doc.createElementNS(la,c);return c}function y(c,a){a=J.prototype.toLowerCase.call(a);return"finite"==a?isFinite(c):"array"==a&amp;&amp;(c instanceof Array||Array.isArray&amp;&amp;Array.isArray(c))?!0:"null"==a&amp;&amp;null===c||a==typeof c&amp;&amp;null!==c||"object"==
a&amp;&amp;c===Object(c)||$.call(c).slice(8,-1).toLowerCase()==a}function M(c){if("function"==typeof c||Object(c)!==c)return c;var a=new c.constructor,b;for(b in c)c[h](b)&amp;&amp;(a[b]=M(c[b]));return a}function A(c,a,b){function m(){var e=Array.prototype.slice.call(arguments,0),f=e.join("\u2400"),d=m.cache=m.cache||{},l=m.count=m.count||[];if(d[h](f)){a:for(var e=l,l=f,B=0,H=e.length;B&lt;H;B++)if(e[B]===l){e.push(e.splice(B,1)[0]);break a}return b?b(d[f]):d[f]}1E3&lt;=l.length&amp;&amp;delete d[l.shift()];l.push(f);d[f]=c.apply(a,
e);return b?b(d[f]):d[f]}return m}function w(c,a,b,m,e,f){return null==e?(c-=b,a-=m,c||a?(180*I.atan2(-a,-c)/C+540)%360:0):w(c,a,e,f)-w(b,m,e,f)}function z(c){return c%360*C/180}function d(c){var a=[];c=c.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(c,b,m){m=m.split(/\s*,\s*|\s+/);"rotate"==b&amp;&amp;1==m.length&amp;&amp;m.push(0,0);"scale"==b&amp;&amp;(2&lt;m.length?m=m.slice(0,2):2==m.length&amp;&amp;m.push(0,0),1==m.length&amp;&amp;m.push(m[0],0,0));"skewX"==b?a.push(["m",1,0,I.tan(z(m[0])),1,0,0]):"skewY"==b?a.push(["m",1,I.tan(z(m[0])),
0,1,0,0]):a.push([b.charAt(0)].concat(m));return c});return a}function f(c,t){var b=O(c),m=new a.Matrix;if(b)for(var e=0,f=b.length;e&lt;f;e++){var h=b[e],d=h.length,B=J(h[0]).toLowerCase(),H=h[0]!=B,l=H?m.invert():0,E;"t"==B&amp;&amp;2==d?m.translate(h[1],0):"t"==B&amp;&amp;3==d?H?(d=l.x(0,0),B=l.y(0,0),H=l.x(h[1],h[2]),l=l.y(h[1],h[2]),m.translate(H-d,l-B)):m.translate(h[1],h[2]):"r"==B?2==d?(E=E||t,m.rotate(h[1],E.x+E.width/2,E.y+E.height/2)):4==d&amp;&amp;(H?(H=l.x(h[2],h[3]),l=l.y(h[2],h[3]),m.rotate(h[1],H,l)):m.rotate(h[1],
h[2],h[3])):"s"==B?2==d||3==d?(E=E||t,m.scale(h[1],h[d-1],E.x+E.width/2,E.y+E.height/2)):4==d?H?(H=l.x(h[2],h[3]),l=l.y(h[2],h[3]),m.scale(h[1],h[1],H,l)):m.scale(h[1],h[1],h[2],h[3]):5==d&amp;&amp;(H?(H=l.x(h[3],h[4]),l=l.y(h[3],h[4]),m.scale(h[1],h[2],H,l)):m.scale(h[1],h[2],h[3],h[4])):"m"==B&amp;&amp;7==d&amp;&amp;m.add(h[1],h[2],h[3],h[4],h[5],h[6])}return m}function n(c,t){if(null==t){var m=!0;t="linearGradient"==c.type||"radialGradient"==c.type?c.node.getAttribute("gradientTransform"):"pattern"==c.type?c.node.getAttribute("patternTransform"):
c.node.getAttribute("transform");if(!t)return new a.Matrix;t=d(t)}else t=a._.rgTransform.test(t)?J(t).replace(/\.{3}|\u2026/g,c._.transform||aa):d(t),y(t,"array")&amp;&amp;(t=a.path?a.path.toString.call(t):J(t)),c._.transform=t;var b=f(t,c.getBBox(1));if(m)return b;c.matrix=b}function u(c){c=c.node.ownerSVGElement&amp;&amp;x(c.node.ownerSVGElement)||c.node.parentNode&amp;&amp;x(c.node.parentNode)||a.select("svg")||a(0,0);var t=c.select("defs"),t=null==t?!1:t.node;t||(t=r("defs",c.node).node);return t}function p(c){return c.node.ownerSVGElement&amp;&amp;
x(c.node.ownerSVGElement)||a.select("svg")}function b(c,a,m){function b(c){if(null==c)return aa;if(c==+c)return c;v(B,{width:c});try{return B.getBBox().width}catch(a){return 0}}function h(c){if(null==c)return aa;if(c==+c)return c;v(B,{height:c});try{return B.getBBox().height}catch(a){return 0}}function e(b,B){null==a?d[b]=B(c.attr(b)||0):b==a&amp;&amp;(d=B(null==m?c.attr(b)||0:m))}var f=p(c).node,d={},B=f.querySelector(".svg---mgr");B||(B=v("rect"),v(B,{x:-9E9,y:-9E9,width:10,height:10,"class":"svg---mgr",
fill:"none"}),f.appendChild(B));switch(c.type){case "rect":e("rx",b),e("ry",h);case "image":e("width",b),e("height",h);case "text":e("x",b);e("y",h);break;case "circle":e("cx",b);e("cy",h);e("r",b);break;case "ellipse":e("cx",b);e("cy",h);e("rx",b);e("ry",h);break;case "line":e("x1",b);e("x2",b);e("y1",h);e("y2",h);break;case "marker":e("refX",b);e("markerWidth",b);e("refY",h);e("markerHeight",h);break;case "radialGradient":e("fx",b);e("fy",h);break;case "tspan":e("dx",b);e("dy",h);break;default:e(a,
b)}f.removeChild(B);return d}function q(c){y(c,"array")||(c=Array.prototype.slice.call(arguments,0));for(var a=0,b=0,m=this.node;this[a];)delete this[a++];for(a=0;a&lt;c.length;a++)"set"==c[a].type?c[a].forEach(function(c){m.appendChild(c.node)}):m.appendChild(c[a].node);for(var h=m.childNodes,a=0;a&lt;h.length;a++)this[b++]=x(h[a]);return this}function e(c){if(c.snap in E)return E[c.snap];var a=this.id=V(),b;try{b=c.ownerSVGElement}catch(m){}this.node=c;b&amp;&amp;(this.paper=new s(b));this.type=c.tagName;this.anims=
{};this._={transform:[]};c.snap=a;E[a]=this;"g"==this.type&amp;&amp;(this.add=q);if(this.type in{g:1,mask:1,pattern:1})for(var e in s.prototype)s.prototype[h](e)&amp;&amp;(this[e]=s.prototype[e])}function l(c){this.node=c}function r(c,a){var b=v(c);a.appendChild(b);return x(b)}function s(c,a){var b,m,f,d=s.prototype;if(c&amp;&amp;"svg"==c.tagName){if(c.snap in E)return E[c.snap];var l=c.ownerDocument;b=new e(c);m=c.getElementsByTagName("desc")[0];f=c.getElementsByTagName("defs")[0];m||(m=v("desc"),m.appendChild(l.createTextNode("Created with Snap")),
b.node.appendChild(m));f||(f=v("defs"),b.node.appendChild(f));b.defs=f;for(var ca in d)d[h](ca)&amp;&amp;(b[ca]=d[ca]);b.paper=b.root=b}else b=r("svg",G.doc.body),v(b.node,{height:a,version:1.1,width:c,xmlns:la});return b}function x(c){return!c||c instanceof e||c instanceof l?c:c.tagName&amp;&amp;"svg"==c.tagName.toLowerCase()?new s(c):c.tagName&amp;&amp;"object"==c.tagName.toLowerCase()&amp;&amp;"image/svg+xml"==c.type?new s(c.contentDocument.getElementsByTagName("svg")[0]):new e(c)}a.version="0.3.0";a.toString=function(){return"Snap v"+
this.version};a._={};var G={win:N,doc:N.document};a._.glob=G;var h="hasOwnProperty",J=String,K=parseFloat,U=parseInt,I=Math,P=I.max,Q=I.min,Y=I.abs,C=I.PI,aa="",$=Object.prototype.toString,F=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i;a._.separator=
RegExp("[,\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]+");var S=RegExp("[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*"),X={hs:1,rg:1},W=RegExp("([a-z])[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)",
"ig"),ma=RegExp("([rstm])[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)","ig"),Z=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*",
"ig"),na=0,ba="S"+(+new Date).toString(36),V=function(){return ba+(na++).toString(36)},m="http://www.w3.org/1999/xlink",la="http://www.w3.org/2000/svg",E={},ca=a.url=function(c){return"url('#"+c+"')"};a._.$=v;a._.id=V;a.format=function(){var c=/\{([^\}]+)\}/g,a=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,b=function(c,b,m){var h=m;b.replace(a,function(c,a,b,m,t){a=a||m;h&amp;&amp;(a in h&amp;&amp;(h=h[a]),"function"==typeof h&amp;&amp;t&amp;&amp;(h=h()))});return h=(null==h||h==m?c:h)+""};return function(a,m){return J(a).replace(c,
function(c,a){return b(c,a,m)})}}();a._.clone=M;a._.cacher=A;a.rad=z;a.deg=function(c){return 180*c/C%360};a.angle=w;a.is=y;a.snapTo=function(c,a,b){b=y(b,"finite")?b:10;if(y(c,"array"))for(var m=c.length;m--;){if(Y(c[m]-a)&lt;=b)return c[m]}else{c=+c;m=a%c;if(m&lt;b)return a-m;if(m&gt;c-b)return a-m+c}return a};a.getRGB=A(function(c){if(!c||(c=J(c)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ka};if("none"==c)return{r:-1,g:-1,b:-1,hex:"none",toString:ka};!X[h](c.toLowerCase().substring(0,
2))&amp;&amp;"#"!=c.charAt()&amp;&amp;(c=T(c));if(!c)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ka};var b,m,e,f,d;if(c=c.match(F)){c[2]&amp;&amp;(e=U(c[2].substring(5),16),m=U(c[2].substring(3,5),16),b=U(c[2].substring(1,3),16));c[3]&amp;&amp;(e=U((d=c[3].charAt(3))+d,16),m=U((d=c[3].charAt(2))+d,16),b=U((d=c[3].charAt(1))+d,16));c[4]&amp;&amp;(d=c[4].split(S),b=K(d[0]),"%"==d[0].slice(-1)&amp;&amp;(b*=2.55),m=K(d[1]),"%"==d[1].slice(-1)&amp;&amp;(m*=2.55),e=K(d[2]),"%"==d[2].slice(-1)&amp;&amp;(e*=2.55),"rgba"==c[1].toLowerCase().slice(0,4)&amp;&amp;(f=K(d[3])),
d[3]&amp;&amp;"%"==d[3].slice(-1)&amp;&amp;(f/=100));if(c[5])return d=c[5].split(S),b=K(d[0]),"%"==d[0].slice(-1)&amp;&amp;(b/=100),m=K(d[1]),"%"==d[1].slice(-1)&amp;&amp;(m/=100),e=K(d[2]),"%"==d[2].slice(-1)&amp;&amp;(e/=100),"deg"!=d[0].slice(-3)&amp;&amp;"\u00b0"!=d[0].slice(-1)||(b/=360),"hsba"==c[1].toLowerCase().slice(0,4)&amp;&amp;(f=K(d[3])),d[3]&amp;&amp;"%"==d[3].slice(-1)&amp;&amp;(f/=100),a.hsb2rgb(b,m,e,f);if(c[6])return d=c[6].split(S),b=K(d[0]),"%"==d[0].slice(-1)&amp;&amp;(b/=100),m=K(d[1]),"%"==d[1].slice(-1)&amp;&amp;(m/=100),e=K(d[2]),"%"==d[2].slice(-1)&amp;&amp;(e/=100),
"deg"!=d[0].slice(-3)&amp;&amp;"\u00b0"!=d[0].slice(-1)||(b/=360),"hsla"==c[1].toLowerCase().slice(0,4)&amp;&amp;(f=K(d[3])),d[3]&amp;&amp;"%"==d[3].slice(-1)&amp;&amp;(f/=100),a.hsl2rgb(b,m,e,f);b=Q(I.round(b),255);m=Q(I.round(m),255);e=Q(I.round(e),255);f=Q(P(f,0),1);c={r:b,g:m,b:e,toString:ka};c.hex="#"+(16777216|e|m&lt;&lt;8|b&lt;&lt;16).toString(16).slice(1);c.opacity=y(f,"finite")?f:1;return c}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ka}},a);a.hsb=A(function(c,b,m){return a.hsb2rgb(c,b,m).hex});a.hsl=A(function(c,b,m){return a.hsl2rgb(c,
b,m).hex});a.rgb=A(function(c,a,b,m){if(y(m,"finite")){var e=I.round;return"rgba("+[e(c),e(a),e(b),+m.toFixed(2)]+")"}return"#"+(16777216|b|a&lt;&lt;8|c&lt;&lt;16).toString(16).slice(1)});var T=function(c){var a=G.doc.getElementsByTagName("head")[0]||G.doc.getElementsByTagName("svg")[0];T=A(function(c){if("red"==c.toLowerCase())return"rgb(255, 0, 0)";a.style.color="rgb(255, 0, 0)";a.style.color=c;c=G.doc.defaultView.getComputedStyle(a,aa).getPropertyValue("color");return"rgb(255, 0, 0)"==c?null:c});return T(c)},
qa=function(){return"hsb("+[this.h,this.s,this.b]+")"},ra=function(){return"hsl("+[this.h,this.s,this.l]+")"},ka=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},D=function(c,b,m){null==b&amp;&amp;y(c,"object")&amp;&amp;"r"in c&amp;&amp;"g"in c&amp;&amp;"b"in c&amp;&amp;(m=c.b,b=c.g,c=c.r);null==b&amp;&amp;y(c,string)&amp;&amp;(m=a.getRGB(c),c=m.r,b=m.g,m=m.b);if(1&lt;c||1&lt;b||1&lt;m)c/=255,b/=255,m/=255;return[c,b,m]},oa=function(c,b,m,e){c=I.round(255*c);b=I.round(255*b);m=I.round(255*m);c={r:c,
g:b,b:m,opacity:y(e,"finite")?e:1,hex:a.rgb(c,b,m),toString:ka};y(e,"finite")&amp;&amp;(c.opacity=e);return c};a.color=function(c){var b;y(c,"object")&amp;&amp;"h"in c&amp;&amp;"s"in c&amp;&amp;"b"in c?(b=a.hsb2rgb(c),c.r=b.r,c.g=b.g,c.b=b.b,c.opacity=1,c.hex=b.hex):y(c,"object")&amp;&amp;"h"in c&amp;&amp;"s"in c&amp;&amp;"l"in c?(b=a.hsl2rgb(c),c.r=b.r,c.g=b.g,c.b=b.b,c.opacity=1,c.hex=b.hex):(y(c,"string")&amp;&amp;(c=a.getRGB(c)),y(c,"object")&amp;&amp;"r"in c&amp;&amp;"g"in c&amp;&amp;"b"in c&amp;&amp;!("error"in c)?(b=a.rgb2hsl(c),c.h=b.h,c.s=b.s,c.l=b.l,b=a.rgb2hsb(c),c.v=b.b):(c={hex:"none"},
c.r=c.g=c.b=c.h=c.s=c.v=c.l=-1,c.error=1));c.toString=ka;return c};a.hsb2rgb=function(c,a,b,m){y(c,"object")&amp;&amp;"h"in c&amp;&amp;"s"in c&amp;&amp;"b"in c&amp;&amp;(b=c.b,a=c.s,c=c.h,m=c.o);var e,h,d;c=360*c%360/60;d=b*a;a=d*(1-Y(c%2-1));b=e=h=b-d;c=~~c;b+=[d,a,0,0,a,d][c];e+=[a,d,d,a,0,0][c];h+=[0,0,a,d,d,a][c];return oa(b,e,h,m)};a.hsl2rgb=function(c,a,b,m){y(c,"object")&amp;&amp;"h"in c&amp;&amp;"s"in c&amp;&amp;"l"in c&amp;&amp;(b=c.l,a=c.s,c=c.h);if(1&lt;c||1&lt;a||1&lt;b)c/=360,a/=100,b/=100;var e,h,d;c=360*c%360/60;d=2*a*(0.5&gt;b?b:1-b);a=d*(1-Y(c%2-1));b=e=
h=b-d/2;c=~~c;b+=[d,a,0,0,a,d][c];e+=[a,d,d,a,0,0][c];h+=[0,0,a,d,d,a][c];return oa(b,e,h,m)};a.rgb2hsb=function(c,a,b){b=D(c,a,b);c=b[0];a=b[1];b=b[2];var m,e;m=P(c,a,b);e=m-Q(c,a,b);c=((0==e?0:m==c?(a-b)/e:m==a?(b-c)/e+2:(c-a)/e+4)+360)%6*60/360;return{h:c,s:0==e?0:e/m,b:m,toString:qa}};a.rgb2hsl=function(c,a,b){b=D(c,a,b);c=b[0];a=b[1];b=b[2];var m,e,h;m=P(c,a,b);e=Q(c,a,b);h=m-e;c=((0==h?0:m==c?(a-b)/h:m==a?(b-c)/h+2:(c-a)/h+4)+360)%6*60/360;m=(m+e)/2;return{h:c,s:0==h?0:0.5&gt;m?h/(2*m):h/(2-2*
m),l:m,toString:ra}};a.parsePathString=function(c){if(!c)return null;var b=a.path(c);if(b.arr)return a.path.clone(b.arr);var m={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},e=[];y(c,"array")&amp;&amp;y(c[0],"array")&amp;&amp;(e=a.path.clone(c));e.length||J(c).replace(W,function(c,a,b){var h=[];c=a.toLowerCase();b.replace(Z,function(c,a){a&amp;&amp;h.push(+a)});"m"==c&amp;&amp;2&lt;h.length&amp;&amp;(e.push([a].concat(h.splice(0,2))),c="l",a="m"==a?"l":"L");"o"==c&amp;&amp;1==h.length&amp;&amp;e.push([a,h[0] ]);if("r"==c)e.push([a].concat(h));else for(;h.length&gt;=
m[c]&amp;&amp;(e.push([a].concat(h.splice(0,m[c]))),m[c]););});e.toString=a.path.toString;b.arr=a.path.clone(e);return e};var O=a.parseTransformString=function(c){if(!c)return null;var b=[];y(c,"array")&amp;&amp;y(c[0],"array")&amp;&amp;(b=a.path.clone(c));b.length||J(c).replace(ma,function(c,a,m){var e=[];a.toLowerCase();m.replace(Z,function(c,a){a&amp;&amp;e.push(+a)});b.push([a].concat(e))});b.toString=a.path.toString;return b};a._.svgTransform2string=d;a._.rgTransform=RegExp("^[a-z][\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*-?\\.?\\d",
"i");a._.transform2matrix=f;a._unit2px=b;a._.getSomeDefs=u;a._.getSomeSVG=p;a.select=function(c){return x(G.doc.querySelector(c))};a.selectAll=function(c){c=G.doc.querySelectorAll(c);for(var b=(a.set||Array)(),m=0;m&lt;c.length;m++)b.push(x(c[m]));return b};setInterval(function(){for(var c in E)if(E[h](c)){var a=E[c],b=a.node;("svg"!=a.type&amp;&amp;!b.ownerSVGElement||"svg"==a.type&amp;&amp;(!b.parentNode||"ownerSVGElement"in b.parentNode&amp;&amp;!b.ownerSVGElement))&amp;&amp;delete E[c]}},1E4);(function(c){function m(c){function a(c,
b){var m=v(c.node,b);(m=(m=m&amp;&amp;m.match(d))&amp;&amp;m[2])&amp;&amp;"#"==m.charAt()&amp;&amp;(m=m.substring(1))&amp;&amp;(f[m]=(f[m]||[]).concat(function(a){var m={};m[b]=ca(a);v(c.node,m)}))}function b(c){var a=v(c.node,"xlink:href");a&amp;&amp;"#"==a.charAt()&amp;&amp;(a=a.substring(1))&amp;&amp;(f[a]=(f[a]||[]).concat(function(a){c.attr("xlink:href","#"+a)}))}var e=c.selectAll("*"),h,d=/^\s*url\(("|'|)(.*)\1\)\s*$/;c=[];for(var f={},l=0,E=e.length;l&lt;E;l++){h=e[l];a(h,"fill");a(h,"stroke");a(h,"filter");a(h,"mask");a(h,"clip-path");b(h);var t=v(h.node,
"id");t&amp;&amp;(v(h.node,{id:h.id}),c.push({old:t,id:h.id}))}l=0;for(E=c.length;l&lt;E;l++)if(e=f[c[l].old])for(h=0,t=e.length;h&lt;t;h++)e[h](c[l].id)}function e(c,a,b){return function(m){m=m.slice(c,a);1==m.length&amp;&amp;(m=m[0]);return b?b(m):m}}function d(c){return function(){var a=c?"&lt;"+this.type:"",b=this.node.attributes,m=this.node.childNodes;if(c)for(var e=0,h=b.length;e&lt;h;e++)a+=" "+b[e].name+'="'+b[e].value.replace(/"/g,'\\"')+'"';if(m.length){c&amp;&amp;(a+="&gt;");e=0;for(h=m.length;e&lt;h;e++)3==m[e].nodeType?a+=m[e].nodeValue:
1==m[e].nodeType&amp;&amp;(a+=x(m[e]).toString());c&amp;&amp;(a+="&lt;/"+this.type+"&gt;")}else c&amp;&amp;(a+="/&gt;");return a}}c.attr=function(c,a){if(!c)return this;if(y(c,"string"))if(1&lt;arguments.length){var b={};b[c]=a;c=b}else return k("snap.util.getattr."+c,this).firstDefined();for(var m in c)c[h](m)&amp;&amp;k("snap.util.attr."+m,this,c[m]);return this};c.getBBox=function(c){if(!a.Matrix||!a.path)return this.node.getBBox();var b=this,m=new a.Matrix;if(b.removed)return a._.box();for(;"use"==b.type;)if(c||(m=m.add(b.transform().localMatrix.translate(b.attr("x")||
0,b.attr("y")||0))),b.original)b=b.original;else var e=b.attr("xlink:href"),b=b.original=b.node.ownerDocument.getElementById(e.substring(e.indexOf("#")+1));var e=b._,h=a.path.get[b.type]||a.path.get.deflt;try{if(c)return e.bboxwt=h?a.path.getBBox(b.realPath=h(b)):a._.box(b.node.getBBox()),a._.box(e.bboxwt);b.realPath=h(b);b.matrix=b.transform().localMatrix;e.bbox=a.path.getBBox(a.path.map(b.realPath,m.add(b.matrix)));return a._.box(e.bbox)}catch(d){return a._.box()}};var f=function(){return this.string};
c.transform=function(c){var b=this._;if(null==c){var m=this;c=new a.Matrix(this.node.getCTM());for(var e=n(this),h=[e],d=new a.Matrix,l=e.toTransformString(),b=J(e)==J(this.matrix)?J(b.transform):l;"svg"!=m.type&amp;&amp;(m=m.parent());)h.push(n(m));for(m=h.length;m--;)d.add(h[m]);return{string:b,globalMatrix:c,totalMatrix:d,localMatrix:e,diffMatrix:c.clone().add(e.invert()),global:c.toTransformString(),total:d.toTransformString(),local:l,toString:f}}c instanceof a.Matrix?this.matrix=c:n(this,c);this.node&amp;&amp;
("linearGradient"==this.type||"radialGradient"==this.type?v(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?v(this.node,{patternTransform:this.matrix}):v(this.node,{transform:this.matrix}));return this};c.parent=function(){return x(this.node.parentNode)};c.append=c.add=function(c){if(c){if("set"==c.type){var a=this;c.forEach(function(c){a.add(c)});return this}c=x(c);this.node.appendChild(c.node);c.paper=this.paper}return this};c.appendTo=function(c){c&amp;&amp;(c=x(c),c.append(this));return this};
c.prepend=function(c){if(c){if("set"==c.type){var a=this,b;c.forEach(function(c){b?b.after(c):a.prepend(c);b=c});return this}c=x(c);var m=c.parent();this.node.insertBefore(c.node,this.node.firstChild);this.add&amp;&amp;this.add();c.paper=this.paper;this.parent()&amp;&amp;this.parent().add();m&amp;&amp;m.add()}return this};c.prependTo=function(c){c=x(c);c.prepend(this);return this};c.before=function(c){if("set"==c.type){var a=this;c.forEach(function(c){var b=c.parent();a.node.parentNode.insertBefore(c.node,a.node);b&amp;&amp;b.add()});
this.parent().add();return this}c=x(c);var b=c.parent();this.node.parentNode.insertBefore(c.node,this.node);this.parent()&amp;&amp;this.parent().add();b&amp;&amp;b.add();c.paper=this.paper;return this};c.after=function(c){c=x(c);var a=c.parent();this.node.nextSibling?this.node.parentNode.insertBefore(c.node,this.node.nextSibling):this.node.parentNode.appendChild(c.node);this.parent()&amp;&amp;this.parent().add();a&amp;&amp;a.add();c.paper=this.paper;return this};c.insertBefore=function(c){c=x(c);var a=this.parent();c.node.parentNode.insertBefore(this.node,
c.node);this.paper=c.paper;a&amp;&amp;a.add();c.parent()&amp;&amp;c.parent().add();return this};c.insertAfter=function(c){c=x(c);var a=this.parent();c.node.parentNode.insertBefore(this.node,c.node.nextSibling);this.paper=c.paper;a&amp;&amp;a.add();c.parent()&amp;&amp;c.parent().add();return this};c.remove=function(){var c=this.parent();this.node.parentNode&amp;&amp;this.node.parentNode.removeChild(this.node);delete this.paper;this.removed=!0;c&amp;&amp;c.add();return this};c.select=function(c){return x(this.node.querySelector(c))};c.selectAll=
function(c){c=this.node.querySelectorAll(c);for(var b=(a.set||Array)(),m=0;m&lt;c.length;m++)b.push(x(c[m]));return b};c.asPX=function(c,a){null==a&amp;&amp;(a=this.attr(c));return+b(this,c,a)};c.use=function(){var c,a=this.node.id;a||(a=this.id,v(this.node,{id:a}));c="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?r(this.type,this.node.parentNode):r("use",this.node.parentNode);v(c.node,{"xlink:href":"#"+a});c.original=this;return c};var l=/\S+/g;c.addClass=function(c){var a=(c||
"").match(l)||[];c=this.node;var b=c.className.baseVal,m=b.match(l)||[],e,h,d;if(a.length){for(e=0;d=a[e++];)h=m.indexOf(d),~h||m.push(d);a=m.join(" ");b!=a&amp;&amp;(c.className.baseVal=a)}return this};c.removeClass=function(c){var a=(c||"").match(l)||[];c=this.node;var b=c.className.baseVal,m=b.match(l)||[],e,h;if(m.length){for(e=0;h=a[e++];)h=m.indexOf(h),~h&amp;&amp;m.splice(h,1);a=m.join(" ");b!=a&amp;&amp;(c.className.baseVal=a)}return this};c.hasClass=function(c){return!!~(this.node.className.baseVal.match(l)||[]).indexOf(c)};
c.toggleClass=function(c,a){if(null!=a)return a?this.addClass(c):this.removeClass(c);var b=(c||"").match(l)||[],m=this.node,e=m.className.baseVal,h=e.match(l)||[],d,f,E;for(d=0;E=b[d++];)f=h.indexOf(E),~f?h.splice(f,1):h.push(E);b=h.join(" ");e!=b&amp;&amp;(m.className.baseVal=b);return this};c.clone=function(){var c=x(this.node.cloneNode(!0));v(c.node,"id")&amp;&amp;v(c.node,{id:c.id});m(c);c.insertAfter(this);return c};c.toDefs=function(){u(this).appendChild(this.node);return this};c.pattern=c.toPattern=function(c,
a,b,m){var e=r("pattern",u(this));null==c&amp;&amp;(c=this.getBBox());y(c,"object")&amp;&amp;"x"in c&amp;&amp;(a=c.y,b=c.width,m=c.height,c=c.x);v(e.node,{x:c,y:a,width:b,height:m,patternUnits:"userSpaceOnUse",id:e.id,viewBox:[c,a,b,m].join(" ")});e.node.appendChild(this.node);return e};c.marker=function(c,a,b,m,e,h){var d=r("marker",u(this));null==c&amp;&amp;(c=this.getBBox());y(c,"object")&amp;&amp;"x"in c&amp;&amp;(a=c.y,b=c.width,m=c.height,e=c.refX||c.cx,h=c.refY||c.cy,c=c.x);v(d.node,{viewBox:[c,a,b,m].join(" "),markerWidth:b,markerHeight:m,
orient:"auto",refX:e||0,refY:h||0,id:d.id});d.node.appendChild(this.node);return d};var E=function(c,a,b,m){"function"!=typeof b||b.length||(m=b,b=L.linear);this.attr=c;this.dur=a;b&amp;&amp;(this.easing=b);m&amp;&amp;(this.callback=m)};a._.Animation=E;a.animation=function(c,a,b,m){return new E(c,a,b,m)};c.inAnim=function(){var c=[],a;for(a in this.anims)this.anims[h](a)&amp;&amp;function(a){c.push({anim:new E(a._attrs,a.dur,a.easing,a._callback),mina:a,curStatus:a.status(),status:function(c){return a.status(c)},stop:function(){a.stop()}})}(this.anims[a]);
return c};a.animate=function(c,a,b,m,e,h){"function"!=typeof e||e.length||(h=e,e=L.linear);var d=L.time();c=L(c,a,d,d+m,L.time,b,e);h&amp;&amp;k.once("mina.finish."+c.id,h);return c};c.stop=function(){for(var c=this.inAnim(),a=0,b=c.length;a&lt;b;a++)c[a].stop();return this};c.animate=function(c,a,b,m){"function"!=typeof b||b.length||(m=b,b=L.linear);c instanceof E&amp;&amp;(m=c.callback,b=c.easing,a=b.dur,c=c.attr);var d=[],f=[],l={},t,ca,n,T=this,q;for(q in c)if(c[h](q)){T.equal?(n=T.equal(q,J(c[q])),t=n.from,ca=
n.to,n=n.f):(t=+T.attr(q),ca=+c[q]);var la=y(t,"array")?t.length:1;l[q]=e(d.length,d.length+la,n);d=d.concat(t);f=f.concat(ca)}t=L.time();var p=L(d,f,t,t+a,L.time,function(c){var a={},b;for(b in l)l[h](b)&amp;&amp;(a[b]=l[b](c));T.attr(a)},b);T.anims[p.id]=p;p._attrs=c;p._callback=m;k("snap.animcreated."+T.id,p);k.once("mina.finish."+p.id,function(){delete T.anims[p.id];m&amp;&amp;m.call(T)});k.once("mina.stop."+p.id,function(){delete T.anims[p.id]});return T};var T={};c.data=function(c,b){var m=T[this.id]=T[this.id]||
{};if(0==arguments.length)return k("snap.data.get."+this.id,this,m,null),m;if(1==arguments.length){if(a.is(c,"object")){for(var e in c)c[h](e)&amp;&amp;this.data(e,c[e]);return this}k("snap.data.get."+this.id,this,m[c],c);return m[c]}m[c]=b;k("snap.data.set."+this.id,this,b,c);return this};c.removeData=function(c){null==c?T[this.id]={}:T[this.id]&amp;&amp;delete T[this.id][c];return this};c.outerSVG=c.toString=d(1);c.innerSVG=d()})(e.prototype);a.parse=function(c){var a=G.doc.createDocumentFragment(),b=!0,m=G.doc.createElement("div");
c=J(c);c.match(/^\s*&lt;\s*svg(?:\s|&gt;)/)||(c="&lt;svg&gt;"+c+"&lt;/svg&gt;",b=!1);m.innerHTML=c;if(c=m.getElementsByTagName("svg")[0])if(b)a=c;else for(;c.firstChild;)a.appendChild(c.firstChild);m.innerHTML=aa;return new l(a)};l.prototype.select=e.prototype.select;l.prototype.selectAll=e.prototype.selectAll;a.fragment=function(){for(var c=Array.prototype.slice.call(arguments,0),b=G.doc.createDocumentFragment(),m=0,e=c.length;m&lt;e;m++){var h=c[m];h.node&amp;&amp;h.node.nodeType&amp;&amp;b.appendChild(h.node);h.nodeType&amp;&amp;b.appendChild(h);
"string"==typeof h&amp;&amp;b.appendChild(a.parse(h).node)}return new l(b)};a._.make=r;a._.wrap=x;s.prototype.el=function(c,a){var b=r(c,this.node);a&amp;&amp;b.attr(a);return b};k.on("snap.util.getattr",function(){var c=k.nt(),c=c.substring(c.lastIndexOf(".")+1),a=c.replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});return pa[h](a)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(a):v(this.node,c)});var pa={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,
"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,
"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};k.on("snap.util.attr",function(c){var a=k.nt(),b={},a=a.substring(a.lastIndexOf(".")+
1);b[a]=c;var m=a.replace(/-(\w)/gi,function(c,a){return a.toUpperCase()}),a=a.replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});pa[h](a)?this.node.style[m]=null==c?aa:c:v(this.node,b)});a.ajax=function(c,a,b,m){var e=new XMLHttpRequest,h=V();if(e){if(y(a,"function"))m=b,b=a,a=null;else if(y(a,"object")){var d=[],f;for(f in a)a.hasOwnProperty(f)&amp;&amp;d.push(encodeURIComponent(f)+"="+encodeURIComponent(a[f]));a=d.join("&amp;")}e.open(a?"POST":"GET",c,!0);a&amp;&amp;(e.setRequestHeader("X-Requested-With","XMLHttpRequest"),
e.setRequestHeader("Content-type","application/x-www-form-urlencoded"));b&amp;&amp;(k.once("snap.ajax."+h+".0",b),k.once("snap.ajax."+h+".200",b),k.once("snap.ajax."+h+".304",b));e.onreadystatechange=function(){4==e.readyState&amp;&amp;k("snap.ajax."+h+"."+e.status,m,e)};if(4==e.readyState)return e;e.send(a);return e}};a.load=function(c,b,m){a.ajax(c,function(c){c=a.parse(c.responseText);m?b.call(m,c):b(c)})};a.getElementByPoint=function(c,a){var b,m,e=G.doc.elementFromPoint(c,a);if(G.win.opera&amp;&amp;"svg"==e.tagName){b=
e;m=b.getBoundingClientRect();b=b.ownerDocument;var h=b.body,d=b.documentElement;b=m.top+(g.win.pageYOffset||d.scrollTop||h.scrollTop)-(d.clientTop||h.clientTop||0);m=m.left+(g.win.pageXOffset||d.scrollLeft||h.scrollLeft)-(d.clientLeft||h.clientLeft||0);h=e.createSVGRect();h.x=c-m;h.y=a-b;h.width=h.height=1;b=e.getIntersectionList(h,null);b.length&amp;&amp;(e=b[b.length-1])}return e?x(e):null};a.plugin=function(c){c(a,e,s,G,l)};return G.win.Snap=a}();C.plugin(function(a,k,y,M,A){function w(a,d,f,b,q,e){null==
d&amp;&amp;"[object SVGMatrix]"==z.call(a)?(this.a=a.a,this.b=a.b,this.c=a.c,this.d=a.d,this.e=a.e,this.f=a.f):null!=a?(this.a=+a,this.b=+d,this.c=+f,this.d=+b,this.e=+q,this.f=+e):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}var z=Object.prototype.toString,d=String,f=Math;(function(n){function k(a){return a[0]*a[0]+a[1]*a[1]}function p(a){var d=f.sqrt(k(a));a[0]&amp;&amp;(a[0]/=d);a[1]&amp;&amp;(a[1]/=d)}n.add=function(a,d,e,f,n,p){var k=[[],[],[] ],u=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1] ];d=[[a,
e,n],[d,f,p],[0,0,1] ];a&amp;&amp;a instanceof w&amp;&amp;(d=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1] ]);for(a=0;3&gt;a;a++)for(e=0;3&gt;e;e++){for(f=n=0;3&gt;f;f++)n+=u[a][f]*d[f][e];k[a][e]=n}this.a=k[0][0];this.b=k[1][0];this.c=k[0][1];this.d=k[1][1];this.e=k[0][2];this.f=k[1][2];return this};n.invert=function(){var a=this.a*this.d-this.b*this.c;return new w(this.d/a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*this.e)/a,(this.b*this.e-this.a*this.f)/a)};n.clone=function(){return new w(this.a,this.b,this.c,this.d,this.e,
this.f)};n.translate=function(a,d){return this.add(1,0,0,1,a,d)};n.scale=function(a,d,e,f){null==d&amp;&amp;(d=a);(e||f)&amp;&amp;this.add(1,0,0,1,e,f);this.add(a,0,0,d,0,0);(e||f)&amp;&amp;this.add(1,0,0,1,-e,-f);return this};n.rotate=function(b,d,e){b=a.rad(b);d=d||0;e=e||0;var l=+f.cos(b).toFixed(9);b=+f.sin(b).toFixed(9);this.add(l,b,-b,l,d,e);return this.add(1,0,0,1,-d,-e)};n.x=function(a,d){return a*this.a+d*this.c+this.e};n.y=function(a,d){return a*this.b+d*this.d+this.f};n.get=function(a){return+this[d.fromCharCode(97+
a)].toFixed(4)};n.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"};n.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};n.determinant=function(){return this.a*this.d-this.b*this.c};n.split=function(){var b={};b.dx=this.e;b.dy=this.f;var d=[[this.a,this.c],[this.b,this.d] ];b.scalex=f.sqrt(k(d[0]));p(d[0]);b.shear=d[0][0]*d[1][0]+d[0][1]*d[1][1];d[1]=[d[1][0]-d[0][0]*b.shear,d[1][1]-d[0][1]*b.shear];b.scaley=f.sqrt(k(d[1]));
p(d[1]);b.shear/=b.scaley;0&gt;this.determinant()&amp;&amp;(b.scalex=-b.scalex);var e=-d[0][1],d=d[1][1];0&gt;d?(b.rotate=a.deg(f.acos(d)),0&gt;e&amp;&amp;(b.rotate=360-b.rotate)):b.rotate=a.deg(f.asin(e));b.isSimple=!+b.shear.toFixed(9)&amp;&amp;(b.scalex.toFixed(9)==b.scaley.toFixed(9)||!b.rotate);b.isSuperSimple=!+b.shear.toFixed(9)&amp;&amp;b.scalex.toFixed(9)==b.scaley.toFixed(9)&amp;&amp;!b.rotate;b.noRotation=!+b.shear.toFixed(9)&amp;&amp;!b.rotate;return b};n.toTransformString=function(a){a=a||this.split();if(+a.shear.toFixed(9))return"m"+[this.get(0),
this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)];a.scalex=+a.scalex.toFixed(4);a.scaley=+a.scaley.toFixed(4);a.rotate=+a.rotate.toFixed(4);return(a.dx||a.dy?"t"+[+a.dx.toFixed(4),+a.dy.toFixed(4)]:"")+(1!=a.scalex||1!=a.scaley?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[+a.rotate.toFixed(4),0,0]:"")}})(w.prototype);a.Matrix=w;a.matrix=function(a,d,f,b,k,e){return new w(a,d,f,b,k,e)}});C.plugin(function(a,v,y,M,A){function w(h){return function(d){k.stop();d instanceof A&amp;&amp;1==d.node.childNodes.length&amp;&amp;
("radialGradient"==d.node.firstChild.tagName||"linearGradient"==d.node.firstChild.tagName||"pattern"==d.node.firstChild.tagName)&amp;&amp;(d=d.node.firstChild,b(this).appendChild(d),d=u(d));if(d instanceof v)if("radialGradient"==d.type||"linearGradient"==d.type||"pattern"==d.type){d.node.id||e(d.node,{id:d.id});var f=l(d.node.id)}else f=d.attr(h);else f=a.color(d),f.error?(f=a(b(this).ownerSVGElement).gradient(d))?(f.node.id||e(f.node,{id:f.id}),f=l(f.node.id)):f=d:f=r(f);d={};d[h]=f;e(this.node,d);this.node.style[h]=
x}}function z(a){k.stop();a==+a&amp;&amp;(a+="px");this.node.style.fontSize=a}function d(a){var b=[];a=a.childNodes;for(var e=0,f=a.length;e&lt;f;e++){var l=a[e];3==l.nodeType&amp;&amp;b.push(l.nodeValue);"tspan"==l.tagName&amp;&amp;(1==l.childNodes.length&amp;&amp;3==l.firstChild.nodeType?b.push(l.firstChild.nodeValue):b.push(d(l)))}return b}function f(){k.stop();return this.node.style.fontSize}var n=a._.make,u=a._.wrap,p=a.is,b=a._.getSomeDefs,q=/^url\(#?([^)]+)\)$/,e=a._.$,l=a.url,r=String,s=a._.separator,x="";k.on("snap.util.attr.mask",
function(a){if(a instanceof v||a instanceof A){k.stop();a instanceof A&amp;&amp;1==a.node.childNodes.length&amp;&amp;(a=a.node.firstChild,b(this).appendChild(a),a=u(a));if("mask"==a.type)var d=a;else d=n("mask",b(this)),d.node.appendChild(a.node);!d.node.id&amp;&amp;e(d.node,{id:d.id});e(this.node,{mask:l(d.id)})}});(function(a){k.on("snap.util.attr.clip",a);k.on("snap.util.attr.clip-path",a);k.on("snap.util.attr.clipPath",a)})(function(a){if(a instanceof v||a instanceof A){k.stop();if("clipPath"==a.type)var d=a;else d=
n("clipPath",b(this)),d.node.appendChild(a.node),!d.node.id&amp;&amp;e(d.node,{id:d.id});e(this.node,{"clip-path":l(d.id)})}});k.on("snap.util.attr.fill",w("fill"));k.on("snap.util.attr.stroke",w("stroke"));var G=/^([lr])(?:\(([^)]*)\))?(.*)$/i;k.on("snap.util.grad.parse",function(a){a=r(a);var b=a.match(G);if(!b)return null;a=b[1];var e=b[2],b=b[3],e=e.split(/\s*,\s*/).map(function(a){return+a==a?+a:a});1==e.length&amp;&amp;0==e[0]&amp;&amp;(e=[]);b=b.split("-");b=b.map(function(a){a=a.split(":");var b={color:a[0]};a[1]&amp;&amp;
(b.offset=parseFloat(a[1]));return b});return{type:a,params:e,stops:b}});k.on("snap.util.attr.d",function(b){k.stop();p(b,"array")&amp;&amp;p(b[0],"array")&amp;&amp;(b=a.path.toString.call(b));b=r(b);b.match(/[ruo]/i)&amp;&amp;(b=a.path.toAbsolute(b));e(this.node,{d:b})})(-1);k.on("snap.util.attr.#text",function(a){k.stop();a=r(a);for(a=M.doc.createTextNode(a);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(a)})(-1);k.on("snap.util.attr.path",function(a){k.stop();this.attr({d:a})})(-1);
k.on("snap.util.attr.class",function(a){k.stop();this.node.className.baseVal=a})(-1);k.on("snap.util.attr.viewBox",function(a){a=p(a,"object")&amp;&amp;"x"in a?[a.x,a.y,a.width,a.height].join(" "):p(a,"array")?a.join(" "):a;e(this.node,{viewBox:a});k.stop()})(-1);k.on("snap.util.attr.transform",function(a){this.transform(a);k.stop()})(-1);k.on("snap.util.attr.r",function(a){"rect"==this.type&amp;&amp;(k.stop(),e(this.node,{rx:a,ry:a}))})(-1);k.on("snap.util.attr.textpath",function(a){k.stop();if("text"==this.type){var d,
f;if(!a&amp;&amp;this.textPath){for(a=this.textPath;a.node.firstChild;)this.node.appendChild(a.node.firstChild);a.remove();delete this.textPath}else if(p(a,"string")?(d=b(this),a=u(d.parentNode).path(a),d.appendChild(a.node),d=a.id,a.attr({id:d})):(a=u(a),a instanceof v&amp;&amp;(d=a.attr("id"),d||(d=a.id,a.attr({id:d})))),d)if(a=this.textPath,f=this.node,a)a.attr({"xlink:href":"#"+d});else{for(a=e("textPath",{"xlink:href":"#"+d});f.firstChild;)a.appendChild(f.firstChild);f.appendChild(a);this.textPath=u(a)}}})(-1);
k.on("snap.util.attr.text",function(a){if("text"==this.type){for(var b=this.node,d=function(a){var b=e("tspan");if(p(a,"array"))for(var f=0;f&lt;a.length;f++)b.appendChild(d(a[f]));else b.appendChild(M.doc.createTextNode(a));b.normalize&amp;&amp;b.normalize();return b};b.firstChild;)b.removeChild(b.firstChild);for(a=d(a);a.firstChild;)b.appendChild(a.firstChild)}k.stop()})(-1);k.on("snap.util.attr.fontSize",z)(-1);k.on("snap.util.attr.font-size",z)(-1);k.on("snap.util.getattr.transform",function(){k.stop();
return this.transform()})(-1);k.on("snap.util.getattr.textpath",function(){k.stop();return this.textPath})(-1);(function(){function b(d){return function(){k.stop();var b=M.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+d);return"none"==b?b:a(M.doc.getElementById(b.match(q)[1]))}}function d(a){return function(b){k.stop();var d="marker"+a.charAt(0).toUpperCase()+a.substring(1);if(""==b||!b)this.node.style[d]="none";else if("marker"==b.type){var f=b.node.id;f||e(b.node,{id:b.id});
this.node.style[d]=l(f)}}}k.on("snap.util.getattr.marker-end",b("end"))(-1);k.on("snap.util.getattr.markerEnd",b("end"))(-1);k.on("snap.util.getattr.marker-start",b("start"))(-1);k.on("snap.util.getattr.markerStart",b("start"))(-1);k.on("snap.util.getattr.marker-mid",b("mid"))(-1);k.on("snap.util.getattr.markerMid",b("mid"))(-1);k.on("snap.util.attr.marker-end",d("end"))(-1);k.on("snap.util.attr.markerEnd",d("end"))(-1);k.on("snap.util.attr.marker-start",d("start"))(-1);k.on("snap.util.attr.markerStart",
d("start"))(-1);k.on("snap.util.attr.marker-mid",d("mid"))(-1);k.on("snap.util.attr.markerMid",d("mid"))(-1)})();k.on("snap.util.getattr.r",function(){if("rect"==this.type&amp;&amp;e(this.node,"rx")==e(this.node,"ry"))return k.stop(),e(this.node,"rx")})(-1);k.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){k.stop();var a=d(this.node);return 1==a.length?a[0]:a}})(-1);k.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1);k.on("snap.util.getattr.viewBox",
function(){k.stop();var b=e(this.node,"viewBox");if(b)return b=b.split(s),a._.box(+b[0],+b[1],+b[2],+b[3])})(-1);k.on("snap.util.getattr.points",function(){var a=e(this.node,"points");k.stop();if(a)return a.split(s)})(-1);k.on("snap.util.getattr.path",function(){var a=e(this.node,"d");k.stop();return a})(-1);k.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1);k.on("snap.util.getattr.fontSize",f)(-1);k.on("snap.util.getattr.font-size",f)(-1)});C.plugin(function(a,v,y,
M,A){function w(a){return a}function z(a){return function(b){return+b.toFixed(3)+a}}var d={"+":function(a,b){return a+b},"-":function(a,b){return a-b},"/":function(a,b){return a/b},"*":function(a,b){return a*b}},f=String,n=/[a-z]+$/i,u=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;k.on("snap.util.attr",function(a){if(a=f(a).match(u)){var b=k.nt(),b=b.substring(b.lastIndexOf(".")+1),q=this.attr(b),e={};k.stop();var l=a[3]||"",r=q.match(n),s=d[a[1] ];r&amp;&amp;r==l?a=s(parseFloat(q),+a[2]):(q=this.asPX(b),
a=s(this.asPX(b),this.asPX(b,a[2]+l)));isNaN(q)||isNaN(a)||(e[b]=a,this.attr(e))}})(-10);k.on("snap.util.equal",function(a,b){var q=f(this.attr(a)||""),e=f(b).match(u);if(e){k.stop();var l=e[3]||"",r=q.match(n),s=d[e[1] ];if(r&amp;&amp;r==l)return{from:parseFloat(q),to:s(parseFloat(q),+e[2]),f:z(r)};q=this.asPX(a);return{from:q,to:s(q,this.asPX(a,e[2]+l)),f:w}}})(-10)});C.plugin(function(a,v,y,M,A){var w=y.prototype,z=a.is;w.rect=function(a,d,k,p,b,q){var e;null==q&amp;&amp;(q=b);z(a,"object")&amp;&amp;"[object Object]"==
a?e=a:null!=a&amp;&amp;(e={x:a,y:d,width:k,height:p},null!=b&amp;&amp;(e.rx=b,e.ry=q));return this.el("rect",e)};w.circle=function(a,d,k){var p;z(a,"object")&amp;&amp;"[object Object]"==a?p=a:null!=a&amp;&amp;(p={cx:a,cy:d,r:k});return this.el("circle",p)};var d=function(){function a(){this.parentNode.removeChild(this)}return function(d,k){var p=M.doc.createElement("img"),b=M.doc.body;p.style.cssText="position:absolute;left:-9999em;top:-9999em";p.onload=function(){k.call(p);p.onload=p.onerror=null;b.removeChild(p)};p.onerror=a;
b.appendChild(p);p.src=d}}();w.image=function(f,n,k,p,b){var q=this.el("image");if(z(f,"object")&amp;&amp;"src"in f)q.attr(f);else if(null!=f){var e={"xlink:href":f,preserveAspectRatio:"none"};null!=n&amp;&amp;null!=k&amp;&amp;(e.x=n,e.y=k);null!=p&amp;&amp;null!=b?(e.width=p,e.height=b):d(f,function(){a._.$(q.node,{width:this.offsetWidth,height:this.offsetHeight})});a._.$(q.node,e)}return q};w.ellipse=function(a,d,k,p){var b;z(a,"object")&amp;&amp;"[object Object]"==a?b=a:null!=a&amp;&amp;(b={cx:a,cy:d,rx:k,ry:p});return this.el("ellipse",b)};
w.path=function(a){var d;z(a,"object")&amp;&amp;!z(a,"array")?d=a:a&amp;&amp;(d={d:a});return this.el("path",d)};w.group=w.g=function(a){var d=this.el("g");1==arguments.length&amp;&amp;a&amp;&amp;!a.type?d.attr(a):arguments.length&amp;&amp;d.add(Array.prototype.slice.call(arguments,0));return d};w.svg=function(a,d,k,p,b,q,e,l){var r={};z(a,"object")&amp;&amp;null==d?r=a:(null!=a&amp;&amp;(r.x=a),null!=d&amp;&amp;(r.y=d),null!=k&amp;&amp;(r.width=k),null!=p&amp;&amp;(r.height=p),null!=b&amp;&amp;null!=q&amp;&amp;null!=e&amp;&amp;null!=l&amp;&amp;(r.viewBox=[b,q,e,l]));return this.el("svg",r)};w.mask=function(a){var d=
this.el("mask");1==arguments.length&amp;&amp;a&amp;&amp;!a.type?d.attr(a):arguments.length&amp;&amp;d.add(Array.prototype.slice.call(arguments,0));return d};w.ptrn=function(a,d,k,p,b,q,e,l){if(z(a,"object"))var r=a;else arguments.length?(r={},null!=a&amp;&amp;(r.x=a),null!=d&amp;&amp;(r.y=d),null!=k&amp;&amp;(r.width=k),null!=p&amp;&amp;(r.height=p),null!=b&amp;&amp;null!=q&amp;&amp;null!=e&amp;&amp;null!=l&amp;&amp;(r.viewBox=[b,q,e,l])):r={patternUnits:"userSpaceOnUse"};return this.el("pattern",r)};w.use=function(a){return null!=a?(make("use",this.node),a instanceof v&amp;&amp;(a.attr("id")||
a.attr({id:ID()}),a=a.attr("id")),this.el("use",{"xlink:href":a})):v.prototype.use.call(this)};w.text=function(a,d,k){var p={};z(a,"object")?p=a:null!=a&amp;&amp;(p={x:a,y:d,text:k||""});return this.el("text",p)};w.line=function(a,d,k,p){var b={};z(a,"object")?b=a:null!=a&amp;&amp;(b={x1:a,x2:k,y1:d,y2:p});return this.el("line",b)};w.polyline=function(a){1&lt;arguments.length&amp;&amp;(a=Array.prototype.slice.call(arguments,0));var d={};z(a,"object")&amp;&amp;!z(a,"array")?d=a:null!=a&amp;&amp;(d={points:a});return this.el("polyline",d)};
w.polygon=function(a){1&lt;arguments.length&amp;&amp;(a=Array.prototype.slice.call(arguments,0));var d={};z(a,"object")&amp;&amp;!z(a,"array")?d=a:null!=a&amp;&amp;(d={points:a});return this.el("polygon",d)};(function(){function d(){return this.selectAll("stop")}function n(b,d){var f=e("stop"),k={offset:+d+"%"};b=a.color(b);k["stop-color"]=b.hex;1&gt;b.opacity&amp;&amp;(k["stop-opacity"]=b.opacity);e(f,k);this.node.appendChild(f);return this}function u(){if("linearGradient"==this.type){var b=e(this.node,"x1")||0,d=e(this.node,"x2")||
1,f=e(this.node,"y1")||0,k=e(this.node,"y2")||0;return a._.box(b,f,math.abs(d-b),math.abs(k-f))}b=this.node.r||0;return a._.box((this.node.cx||0.5)-b,(this.node.cy||0.5)-b,2*b,2*b)}function p(a,d){function f(a,b){for(var d=(b-u)/(a-w),e=w;e&lt;a;e++)h[e].offset=+(+u+d*(e-w)).toFixed(2);w=a;u=b}var n=k("snap.util.grad.parse",null,d).firstDefined(),p;if(!n)return null;n.params.unshift(a);p="l"==n.type.toLowerCase()?b.apply(0,n.params):q.apply(0,n.params);n.type!=n.type.toLowerCase()&amp;&amp;e(p.node,{gradientUnits:"userSpaceOnUse"});
var h=n.stops,n=h.length,u=0,w=0;n--;for(var v=0;v&lt;n;v++)"offset"in h[v]&amp;&amp;f(v,h[v].offset);h[n].offset=h[n].offset||100;f(n,h[n].offset);for(v=0;v&lt;=n;v++){var y=h[v];p.addStop(y.color,y.offset)}return p}function b(b,k,p,q,w){b=a._.make("linearGradient",b);b.stops=d;b.addStop=n;b.getBBox=u;null!=k&amp;&amp;e(b.node,{x1:k,y1:p,x2:q,y2:w});return b}function q(b,k,p,q,w,h){b=a._.make("radialGradient",b);b.stops=d;b.addStop=n;b.getBBox=u;null!=k&amp;&amp;e(b.node,{cx:k,cy:p,r:q});null!=w&amp;&amp;null!=h&amp;&amp;e(b.node,{fx:w,fy:h});
return b}var e=a._.$;w.gradient=function(a){return p(this.defs,a)};w.gradientLinear=function(a,d,e,f){return b(this.defs,a,d,e,f)};w.gradientRadial=function(a,b,d,e,f){return q(this.defs,a,b,d,e,f)};w.toString=function(){var b=this.node.ownerDocument,d=b.createDocumentFragment(),b=b.createElement("div"),e=this.node.cloneNode(!0);d.appendChild(b);b.appendChild(e);a._.$(e,{xmlns:"http://www.w3.org/2000/svg"});b=b.innerHTML;d.removeChild(d.firstChild);return b};w.clear=function(){for(var a=this.node.firstChild,
b;a;)b=a.nextSibling,"defs"!=a.tagName?a.parentNode.removeChild(a):w.clear.call({node:a}),a=b}})()});C.plugin(function(a,k,y,M){function A(a){var b=A.ps=A.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100};setTimeout(function(){for(var d in b)b[L](d)&amp;&amp;d!=a&amp;&amp;(b[d].sleep--,!b[d].sleep&amp;&amp;delete b[d])});return b[a]}function w(a,b,d,e){null==a&amp;&amp;(a=b=d=e=0);null==b&amp;&amp;(b=a.y,d=a.width,e=a.height,a=a.x);return{x:a,y:b,width:d,w:d,height:e,h:e,x2:a+d,y2:b+e,cx:a+d/2,cy:b+e/2,r1:F.min(d,e)/2,r2:F.max(d,e)/2,r0:F.sqrt(d*
d+e*e)/2,path:s(a,b,d,e),vb:[a,b,d,e].join(" ")}}function z(){return this.join(",").replace(N,"$1")}function d(a){a=C(a);a.toString=z;return a}function f(a,b,d,h,f,k,l,n,p){if(null==p)return e(a,b,d,h,f,k,l,n);if(0&gt;p||e(a,b,d,h,f,k,l,n)&lt;p)p=void 0;else{var q=0.5,O=1-q,s;for(s=e(a,b,d,h,f,k,l,n,O);0.01&lt;Z(s-p);)q/=2,O+=(s&lt;p?1:-1)*q,s=e(a,b,d,h,f,k,l,n,O);p=O}return u(a,b,d,h,f,k,l,n,p)}function n(b,d){function e(a){return+(+a).toFixed(3)}return a._.cacher(function(a,h,l){a instanceof k&amp;&amp;(a=a.attr("d"));
a=I(a);for(var n,p,D,q,O="",s={},c=0,t=0,r=a.length;t&lt;r;t++){D=a[t];if("M"==D[0])n=+D[1],p=+D[2];else{q=f(n,p,D[1],D[2],D[3],D[4],D[5],D[6]);if(c+q&gt;h){if(d&amp;&amp;!s.start){n=f(n,p,D[1],D[2],D[3],D[4],D[5],D[6],h-c);O+=["C"+e(n.start.x),e(n.start.y),e(n.m.x),e(n.m.y),e(n.x),e(n.y)];if(l)return O;s.start=O;O=["M"+e(n.x),e(n.y)+"C"+e(n.n.x),e(n.n.y),e(n.end.x),e(n.end.y),e(D[5]),e(D[6])].join();c+=q;n=+D[5];p=+D[6];continue}if(!b&amp;&amp;!d)return n=f(n,p,D[1],D[2],D[3],D[4],D[5],D[6],h-c)}c+=q;n=+D[5];p=+D[6]}O+=
D.shift()+D}s.end=O;return n=b?c:d?s:u(n,p,D[0],D[1],D[2],D[3],D[4],D[5],1)},null,a._.clone)}function u(a,b,d,e,h,f,k,l,n){var p=1-n,q=ma(p,3),s=ma(p,2),c=n*n,t=c*n,r=q*a+3*s*n*d+3*p*n*n*h+t*k,q=q*b+3*s*n*e+3*p*n*n*f+t*l,s=a+2*n*(d-a)+c*(h-2*d+a),t=b+2*n*(e-b)+c*(f-2*e+b),x=d+2*n*(h-d)+c*(k-2*h+d),c=e+2*n*(f-e)+c*(l-2*f+e);a=p*a+n*d;b=p*b+n*e;h=p*h+n*k;f=p*f+n*l;l=90-180*F.atan2(s-x,t-c)/S;return{x:r,y:q,m:{x:s,y:t},n:{x:x,y:c},start:{x:a,y:b},end:{x:h,y:f},alpha:l}}function p(b,d,e,h,f,n,k,l){a.is(b,
"array")||(b=[b,d,e,h,f,n,k,l]);b=U.apply(null,b);return w(b.min.x,b.min.y,b.max.x-b.min.x,b.max.y-b.min.y)}function b(a,b,d){return b&gt;=a.x&amp;&amp;b&lt;=a.x+a.width&amp;&amp;d&gt;=a.y&amp;&amp;d&lt;=a.y+a.height}function q(a,d){a=w(a);d=w(d);return b(d,a.x,a.y)||b(d,a.x2,a.y)||b(d,a.x,a.y2)||b(d,a.x2,a.y2)||b(a,d.x,d.y)||b(a,d.x2,d.y)||b(a,d.x,d.y2)||b(a,d.x2,d.y2)||(a.x&lt;d.x2&amp;&amp;a.x&gt;d.x||d.x&lt;a.x2&amp;&amp;d.x&gt;a.x)&amp;&amp;(a.y&lt;d.y2&amp;&amp;a.y&gt;d.y||d.y&lt;a.y2&amp;&amp;d.y&gt;a.y)}function e(a,b,d,e,h,f,n,k,l){null==l&amp;&amp;(l=1);l=(1&lt;l?1:0&gt;l?0:l)/2;for(var p=[-0.1252,
0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],q=[0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],s=0,c=0;12&gt;c;c++)var t=l*p[c]+l,r=t*(t*(-3*a+9*d-9*h+3*n)+6*a-12*d+6*h)-3*a+3*d,t=t*(t*(-3*b+9*e-9*f+3*k)+6*b-12*e+6*f)-3*b+3*e,s=s+q[c]*F.sqrt(r*r+t*t);return l*s}function l(a,b,d){a=I(a);b=I(b);for(var h,f,l,n,k,s,r,O,x,c,t=d?0:[],w=0,v=a.length;w&lt;v;w++)if(x=a[w],"M"==x[0])h=k=x[1],f=s=x[2];else{"C"==x[0]?(x=[h,f].concat(x.slice(1)),
h=x[6],f=x[7]):(x=[h,f,h,f,k,s,k,s],h=k,f=s);for(var G=0,y=b.length;G&lt;y;G++)if(c=b[G],"M"==c[0])l=r=c[1],n=O=c[2];else{"C"==c[0]?(c=[l,n].concat(c.slice(1)),l=c[6],n=c[7]):(c=[l,n,l,n,r,O,r,O],l=r,n=O);var z;var K=x,B=c;z=d;var H=p(K),J=p(B);if(q(H,J)){for(var H=e.apply(0,K),J=e.apply(0,B),H=~~(H/8),J=~~(J/8),U=[],A=[],F={},M=z?0:[],P=0;P&lt;H+1;P++){var C=u.apply(0,K.concat(P/H));U.push({x:C.x,y:C.y,t:P/H})}for(P=0;P&lt;J+1;P++)C=u.apply(0,B.concat(P/J)),A.push({x:C.x,y:C.y,t:P/J});for(P=0;P&lt;H;P++)for(K=
0;K&lt;J;K++){var Q=U[P],L=U[P+1],B=A[K],C=A[K+1],N=0.001&gt;Z(L.x-Q.x)?"y":"x",S=0.001&gt;Z(C.x-B.x)?"y":"x",R;R=Q.x;var Y=Q.y,V=L.x,ea=L.y,fa=B.x,ga=B.y,ha=C.x,ia=C.y;if(W(R,V)&lt;X(fa,ha)||X(R,V)&gt;W(fa,ha)||W(Y,ea)&lt;X(ga,ia)||X(Y,ea)&gt;W(ga,ia))R=void 0;else{var $=(R*ea-Y*V)*(fa-ha)-(R-V)*(fa*ia-ga*ha),aa=(R*ea-Y*V)*(ga-ia)-(Y-ea)*(fa*ia-ga*ha),ja=(R-V)*(ga-ia)-(Y-ea)*(fa-ha);if(ja){var $=$/ja,aa=aa/ja,ja=+$.toFixed(2),ba=+aa.toFixed(2);R=ja&lt;+X(R,V).toFixed(2)||ja&gt;+W(R,V).toFixed(2)||ja&lt;+X(fa,ha).toFixed(2)||
ja&gt;+W(fa,ha).toFixed(2)||ba&lt;+X(Y,ea).toFixed(2)||ba&gt;+W(Y,ea).toFixed(2)||ba&lt;+X(ga,ia).toFixed(2)||ba&gt;+W(ga,ia).toFixed(2)?void 0:{x:$,y:aa}}else R=void 0}R&amp;&amp;F[R.x.toFixed(4)]!=R.y.toFixed(4)&amp;&amp;(F[R.x.toFixed(4)]=R.y.toFixed(4),Q=Q.t+Z((R[N]-Q[N])/(L[N]-Q[N]))*(L.t-Q.t),B=B.t+Z((R[S]-B[S])/(C[S]-B[S]))*(C.t-B.t),0&lt;=Q&amp;&amp;1&gt;=Q&amp;&amp;0&lt;=B&amp;&amp;1&gt;=B&amp;&amp;(z?M++:M.push({x:R.x,y:R.y,t1:Q,t2:B})))}z=M}else z=z?0:[];if(d)t+=z;else{H=0;for(J=z.length;H&lt;J;H++)z[H].segment1=w,z[H].segment2=G,z[H].bez1=x,z[H].bez2=c;t=t.concat(z)}}}return t}
function r(a){var b=A(a);if(b.bbox)return C(b.bbox);if(!a)return w();a=I(a);for(var d=0,e=0,h=[],f=[],l,n=0,k=a.length;n&lt;k;n++)l=a[n],"M"==l[0]?(d=l[1],e=l[2],h.push(d),f.push(e)):(d=U(d,e,l[1],l[2],l[3],l[4],l[5],l[6]),h=h.concat(d.min.x,d.max.x),f=f.concat(d.min.y,d.max.y),d=l[5],e=l[6]);a=X.apply(0,h);l=X.apply(0,f);h=W.apply(0,h);f=W.apply(0,f);f=w(a,l,h-a,f-l);b.bbox=C(f);return f}function s(a,b,d,e,h){if(h)return[["M",+a+ +h,b],["l",d-2*h,0],["a",h,h,0,0,1,h,h],["l",0,e-2*h],["a",h,h,0,0,1,
-h,h],["l",2*h-d,0],["a",h,h,0,0,1,-h,-h],["l",0,2*h-e],["a",h,h,0,0,1,h,-h],["z"] ];a=[["M",a,b],["l",d,0],["l",0,e],["l",-d,0],["z"] ];a.toString=z;return a}function x(a,b,d,e,h){null==h&amp;&amp;null==e&amp;&amp;(e=d);a=+a;b=+b;d=+d;e=+e;if(null!=h){var f=Math.PI/180,l=a+d*Math.cos(-e*f);a+=d*Math.cos(-h*f);var n=b+d*Math.sin(-e*f);b+=d*Math.sin(-h*f);d=[["M",l,n],["A",d,d,0,+(180&lt;h-e),0,a,b] ]}else d=[["M",a,b],["m",0,-e],["a",d,e,0,1,1,0,2*e],["a",d,e,0,1,1,0,-2*e],["z"] ];d.toString=z;return d}function G(b){var e=
A(b);if(e.abs)return d(e.abs);Q(b,"array")&amp;&amp;Q(b&amp;&amp;b[0],"array")||(b=a.parsePathString(b));if(!b||!b.length)return[["M",0,0] ];var h=[],f=0,l=0,n=0,k=0,p=0;"M"==b[0][0]&amp;&amp;(f=+b[0][1],l=+b[0][2],n=f,k=l,p++,h[0]=["M",f,l]);for(var q=3==b.length&amp;&amp;"M"==b[0][0]&amp;&amp;"R"==b[1][0].toUpperCase()&amp;&amp;"Z"==b[2][0].toUpperCase(),s,r,w=p,c=b.length;w&lt;c;w++){h.push(s=[]);r=b[w];p=r[0];if(p!=p.toUpperCase())switch(s[0]=p.toUpperCase(),s[0]){case "A":s[1]=r[1];s[2]=r[2];s[3]=r[3];s[4]=r[4];s[5]=r[5];s[6]=+r[6]+f;s[7]=+r[7]+
l;break;case "V":s[1]=+r[1]+l;break;case "H":s[1]=+r[1]+f;break;case "R":for(var t=[f,l].concat(r.slice(1)),u=2,v=t.length;u&lt;v;u++)t[u]=+t[u]+f,t[++u]=+t[u]+l;h.pop();h=h.concat(P(t,q));break;case "O":h.pop();t=x(f,l,r[1],r[2]);t.push(t[0]);h=h.concat(t);break;case "U":h.pop();h=h.concat(x(f,l,r[1],r[2],r[3]));s=["U"].concat(h[h.length-1].slice(-2));break;case "M":n=+r[1]+f,k=+r[2]+l;default:for(u=1,v=r.length;u&lt;v;u++)s[u]=+r[u]+(u%2?f:l)}else if("R"==p)t=[f,l].concat(r.slice(1)),h.pop(),h=h.concat(P(t,
q)),s=["R"].concat(r.slice(-2));else if("O"==p)h.pop(),t=x(f,l,r[1],r[2]),t.push(t[0]),h=h.concat(t);else if("U"==p)h.pop(),h=h.concat(x(f,l,r[1],r[2],r[3])),s=["U"].concat(h[h.length-1].slice(-2));else for(t=0,u=r.length;t&lt;u;t++)s[t]=r[t];p=p.toUpperCase();if("O"!=p)switch(s[0]){case "Z":f=+n;l=+k;break;case "H":f=s[1];break;case "V":l=s[1];break;case "M":n=s[s.length-2],k=s[s.length-1];default:f=s[s.length-2],l=s[s.length-1]}}h.toString=z;e.abs=d(h);return h}function h(a,b,d,e){return[a,b,d,e,d,
e]}function J(a,b,d,e,h,f){var l=1/3,n=2/3;return[l*a+n*d,l*b+n*e,l*h+n*d,l*f+n*e,h,f]}function K(b,d,e,h,f,l,n,k,p,s){var r=120*S/180,q=S/180*(+f||0),c=[],t,x=a._.cacher(function(a,b,c){var d=a*F.cos(c)-b*F.sin(c);a=a*F.sin(c)+b*F.cos(c);return{x:d,y:a}});if(s)v=s[0],t=s[1],l=s[2],u=s[3];else{t=x(b,d,-q);b=t.x;d=t.y;t=x(k,p,-q);k=t.x;p=t.y;F.cos(S/180*f);F.sin(S/180*f);t=(b-k)/2;v=(d-p)/2;u=t*t/(e*e)+v*v/(h*h);1&lt;u&amp;&amp;(u=F.sqrt(u),e*=u,h*=u);var u=e*e,w=h*h,u=(l==n?-1:1)*F.sqrt(Z((u*w-u*v*v-w*t*t)/
(u*v*v+w*t*t)));l=u*e*v/h+(b+k)/2;var u=u*-h*t/e+(d+p)/2,v=F.asin(((d-u)/h).toFixed(9));t=F.asin(((p-u)/h).toFixed(9));v=b&lt;l?S-v:v;t=k&lt;l?S-t:t;0&gt;v&amp;&amp;(v=2*S+v);0&gt;t&amp;&amp;(t=2*S+t);n&amp;&amp;v&gt;t&amp;&amp;(v-=2*S);!n&amp;&amp;t&gt;v&amp;&amp;(t-=2*S)}if(Z(t-v)&gt;r){var c=t,w=k,G=p;t=v+r*(n&amp;&amp;t&gt;v?1:-1);k=l+e*F.cos(t);p=u+h*F.sin(t);c=K(k,p,e,h,f,0,n,w,G,[t,c,l,u])}l=t-v;f=F.cos(v);r=F.sin(v);n=F.cos(t);t=F.sin(t);l=F.tan(l/4);e=4/3*e*l;l*=4/3*h;h=[b,d];b=[b+e*r,d-l*f];d=[k+e*t,p-l*n];k=[k,p];b[0]=2*h[0]-b[0];b[1]=2*h[1]-b[1];if(s)return[b,d,k].concat(c);
c=[b,d,k].concat(c).join().split(",");s=[];k=0;for(p=c.length;k&lt;p;k++)s[k]=k%2?x(c[k-1],c[k],q).y:x(c[k],c[k+1],q).x;return s}function U(a,b,d,e,h,f,l,k){for(var n=[],p=[[],[] ],s,r,c,t,q=0;2&gt;q;++q)0==q?(r=6*a-12*d+6*h,s=-3*a+9*d-9*h+3*l,c=3*d-3*a):(r=6*b-12*e+6*f,s=-3*b+9*e-9*f+3*k,c=3*e-3*b),1E-12&gt;Z(s)?1E-12&gt;Z(r)||(s=-c/r,0&lt;s&amp;&amp;1&gt;s&amp;&amp;n.push(s)):(t=r*r-4*c*s,c=F.sqrt(t),0&gt;t||(t=(-r+c)/(2*s),0&lt;t&amp;&amp;1&gt;t&amp;&amp;n.push(t),s=(-r-c)/(2*s),0&lt;s&amp;&amp;1&gt;s&amp;&amp;n.push(s)));for(r=q=n.length;q--;)s=n[q],c=1-s,p[0][q]=c*c*c*a+3*
c*c*s*d+3*c*s*s*h+s*s*s*l,p[1][q]=c*c*c*b+3*c*c*s*e+3*c*s*s*f+s*s*s*k;p[0][r]=a;p[1][r]=b;p[0][r+1]=l;p[1][r+1]=k;p[0].length=p[1].length=r+2;return{min:{x:X.apply(0,p[0]),y:X.apply(0,p[1])},max:{x:W.apply(0,p[0]),y:W.apply(0,p[1])}}}function I(a,b){var e=!b&amp;&amp;A(a);if(!b&amp;&amp;e.curve)return d(e.curve);var f=G(a),l=b&amp;&amp;G(b),n={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},k={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},p=function(a,b,c){if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];a[0]in{T:1,Q:1}||(b.qx=b.qy=null);
switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"].concat(K.apply(0,[b.x,b.y].concat(a.slice(1))));break;case "S":"C"==c||"S"==c?(c=2*b.x-b.bx,b=2*b.y-b.by):(c=b.x,b=b.y);a=["C",c,b].concat(a.slice(1));break;case "T":"Q"==c||"T"==c?(b.qx=2*b.x-b.qx,b.qy=2*b.y-b.qy):(b.qx=b.x,b.qy=b.y);a=["C"].concat(J(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"].concat(J(b.x,b.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"].concat(h(b.x,b.y,a[1],a[2]));break;case "H":a=["C"].concat(h(b.x,
b.y,a[1],b.y));break;case "V":a=["C"].concat(h(b.x,b.y,b.x,a[1]));break;case "Z":a=["C"].concat(h(b.x,b.y,b.X,b.Y))}return a},s=function(a,b){if(7&lt;a[b].length){a[b].shift();for(var c=a[b];c.length;)q[b]="A",l&amp;&amp;(u[b]="A"),a.splice(b++,0,["C"].concat(c.splice(0,6)));a.splice(b,1);v=W(f.length,l&amp;&amp;l.length||0)}},r=function(a,b,c,d,e){a&amp;&amp;b&amp;&amp;"M"==a[e][0]&amp;&amp;"M"!=b[e][0]&amp;&amp;(b.splice(e,0,["M",d.x,d.y]),c.bx=0,c.by=0,c.x=a[e][1],c.y=a[e][2],v=W(f.length,l&amp;&amp;l.length||0))},q=[],u=[],c="",t="",x=0,v=W(f.length,
l&amp;&amp;l.length||0);for(;x&lt;v;x++){f[x]&amp;&amp;(c=f[x][0]);"C"!=c&amp;&amp;(q[x]=c,x&amp;&amp;(t=q[x-1]));f[x]=p(f[x],n,t);"A"!=q[x]&amp;&amp;"C"==c&amp;&amp;(q[x]="C");s(f,x);l&amp;&amp;(l[x]&amp;&amp;(c=l[x][0]),"C"!=c&amp;&amp;(u[x]=c,x&amp;&amp;(t=u[x-1])),l[x]=p(l[x],k,t),"A"!=u[x]&amp;&amp;"C"==c&amp;&amp;(u[x]="C"),s(l,x));r(f,l,n,k,x);r(l,f,k,n,x);var w=f[x],z=l&amp;&amp;l[x],y=w.length,U=l&amp;&amp;z.length;n.x=w[y-2];n.y=w[y-1];n.bx=$(w[y-4])||n.x;n.by=$(w[y-3])||n.y;k.bx=l&amp;&amp;($(z[U-4])||k.x);k.by=l&amp;&amp;($(z[U-3])||k.y);k.x=l&amp;&amp;z[U-2];k.y=l&amp;&amp;z[U-1]}l||(e.curve=d(f));return l?[f,l]:f}function P(a,
b){for(var d=[],e=0,h=a.length;h-2*!b&gt;e;e+=2){var f=[{x:+a[e-2],y:+a[e-1]},{x:+a[e],y:+a[e+1]},{x:+a[e+2],y:+a[e+3]},{x:+a[e+4],y:+a[e+5]}];b?e?h-4==e?f[3]={x:+a[0],y:+a[1]}:h-2==e&amp;&amp;(f[2]={x:+a[0],y:+a[1]},f[3]={x:+a[2],y:+a[3]}):f[0]={x:+a[h-2],y:+a[h-1]}:h-4==e?f[3]=f[2]:e||(f[0]={x:+a[e],y:+a[e+1]});d.push(["C",(-f[0].x+6*f[1].x+f[2].x)/6,(-f[0].y+6*f[1].y+f[2].y)/6,(f[1].x+6*f[2].x-f[3].x)/6,(f[1].y+6*f[2].y-f[3].y)/6,f[2].x,f[2].y])}return d}y=k.prototype;var Q=a.is,C=a._.clone,L="hasOwnProperty",
N=/,?([a-z]),?/gi,$=parseFloat,F=Math,S=F.PI,X=F.min,W=F.max,ma=F.pow,Z=F.abs;M=n(1);var na=n(),ba=n(0,1),V=a._unit2px;a.path=A;a.path.getTotalLength=M;a.path.getPointAtLength=na;a.path.getSubpath=function(a,b,d){if(1E-6&gt;this.getTotalLength(a)-d)return ba(a,b).end;a=ba(a,d,1);return b?ba(a,b).end:a};y.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()};y.getPointAtLength=function(a){return na(this.attr("d"),a)};y.getSubpath=function(b,d){return a.path.getSubpath(this.attr("d"),
b,d)};a._.box=w;a.path.findDotsAtSegment=u;a.path.bezierBBox=p;a.path.isPointInsideBBox=b;a.path.isBBoxIntersect=q;a.path.intersection=function(a,b){return l(a,b)};a.path.intersectionNumber=function(a,b){return l(a,b,1)};a.path.isPointInside=function(a,d,e){var h=r(a);return b(h,d,e)&amp;&amp;1==l(a,[["M",d,e],["H",h.x2+10] ],1)%2};a.path.getBBox=r;a.path.get={path:function(a){return a.attr("path")},circle:function(a){a=V(a);return x(a.cx,a.cy,a.r)},ellipse:function(a){a=V(a);return x(a.cx||0,a.cy||0,a.rx,
a.ry)},rect:function(a){a=V(a);return s(a.x||0,a.y||0,a.width,a.height,a.rx,a.ry)},image:function(a){a=V(a);return s(a.x||0,a.y||0,a.width,a.height)},line:function(a){return"M"+[a.attr("x1")||0,a.attr("y1")||0,a.attr("x2"),a.attr("y2")]},polyline:function(a){return"M"+a.attr("points")},polygon:function(a){return"M"+a.attr("points")+"z"},deflt:function(a){a=a.node.getBBox();return s(a.x,a.y,a.width,a.height)}};a.path.toRelative=function(b){var e=A(b),h=String.prototype.toLowerCase;if(e.rel)return d(e.rel);
a.is(b,"array")&amp;&amp;a.is(b&amp;&amp;b[0],"array")||(b=a.parsePathString(b));var f=[],l=0,n=0,k=0,p=0,s=0;"M"==b[0][0]&amp;&amp;(l=b[0][1],n=b[0][2],k=l,p=n,s++,f.push(["M",l,n]));for(var r=b.length;s&lt;r;s++){var q=f[s]=[],x=b[s];if(x[0]!=h.call(x[0]))switch(q[0]=h.call(x[0]),q[0]){case "a":q[1]=x[1];q[2]=x[2];q[3]=x[3];q[4]=x[4];q[5]=x[5];q[6]=+(x[6]-l).toFixed(3);q[7]=+(x[7]-n).toFixed(3);break;case "v":q[1]=+(x[1]-n).toFixed(3);break;case "m":k=x[1],p=x[2];default:for(var c=1,t=x.length;c&lt;t;c++)q[c]=+(x[c]-(c%2?l:
n)).toFixed(3)}else for(f[s]=[],"m"==x[0]&amp;&amp;(k=x[1]+l,p=x[2]+n),q=0,c=x.length;q&lt;c;q++)f[s][q]=x[q];x=f[s].length;switch(f[s][0]){case "z":l=k;n=p;break;case "h":l+=+f[s][x-1];break;case "v":n+=+f[s][x-1];break;default:l+=+f[s][x-2],n+=+f[s][x-1]}}f.toString=z;e.rel=d(f);return f};a.path.toAbsolute=G;a.path.toCubic=I;a.path.map=function(a,b){if(!b)return a;var d,e,h,f,l,n,k;a=I(a);h=0;for(l=a.length;h&lt;l;h++)for(k=a[h],f=1,n=k.length;f&lt;n;f+=2)d=b.x(k[f],k[f+1]),e=b.y(k[f],k[f+1]),k[f]=d,k[f+1]=e;return a};
a.path.toString=z;a.path.clone=d});C.plugin(function(a,v,y,C){var A=Math.max,w=Math.min,z=function(a){this.items=[];this.bindings={};this.length=0;this.type="set";if(a)for(var f=0,n=a.length;f&lt;n;f++)a[f]&amp;&amp;(this[this.items.length]=this.items[this.items.length]=a[f],this.length++)};v=z.prototype;v.push=function(){for(var a,f,n=0,k=arguments.length;n&lt;k;n++)if(a=arguments[n])f=this.items.length,this[f]=this.items[f]=a,this.length++;return this};v.pop=function(){this.length&amp;&amp;delete this[this.length--];
return this.items.pop()};v.forEach=function(a,f){for(var n=0,k=this.items.length;n&lt;k&amp;&amp;!1!==a.call(f,this.items[n],n);n++);return this};v.animate=function(d,f,n,u){"function"!=typeof n||n.length||(u=n,n=L.linear);d instanceof a._.Animation&amp;&amp;(u=d.callback,n=d.easing,f=n.dur,d=d.attr);var p=arguments;if(a.is(d,"array")&amp;&amp;a.is(p[p.length-1],"array"))var b=!0;var q,e=function(){q?this.b=q:q=this.b},l=0,r=u&amp;&amp;function(){l++==this.length&amp;&amp;u.call(this)};return this.forEach(function(a,l){k.once("snap.animcreated."+
a.id,e);b?p[l]&amp;&amp;a.animate.apply(a,p[l]):a.animate(d,f,n,r)})};v.remove=function(){for(;this.length;)this.pop().remove();return this};v.bind=function(a,f,k){var u={};if("function"==typeof f)this.bindings[a]=f;else{var p=k||a;this.bindings[a]=function(a){u[p]=a;f.attr(u)}}return this};v.attr=function(a){var f={},k;for(k in a)if(this.bindings[k])this.bindings[k](a[k]);else f[k]=a[k];a=0;for(k=this.items.length;a&lt;k;a++)this.items[a].attr(f);return this};v.clear=function(){for(;this.length;)this.pop()};
v.splice=function(a,f,k){a=0&gt;a?A(this.length+a,0):a;f=A(0,w(this.length-a,f));var u=[],p=[],b=[],q;for(q=2;q&lt;arguments.length;q++)b.push(arguments[q]);for(q=0;q&lt;f;q++)p.push(this[a+q]);for(;q&lt;this.length-a;q++)u.push(this[a+q]);var e=b.length;for(q=0;q&lt;e+u.length;q++)this.items[a+q]=this[a+q]=q&lt;e?b[q]:u[q-e];for(q=this.items.length=this.length-=f-e;this[q];)delete this[q++];return new z(p)};v.exclude=function(a){for(var f=0,k=this.length;f&lt;k;f++)if(this[f]==a)return this.splice(f,1),!0;return!1};
v.insertAfter=function(a){for(var f=this.items.length;f--;)this.items[f].insertAfter(a);return this};v.getBBox=function(){for(var a=[],f=[],k=[],u=[],p=this.items.length;p--;)if(!this.items[p].removed){var b=this.items[p].getBBox();a.push(b.x);f.push(b.y);k.push(b.x+b.width);u.push(b.y+b.height)}a=w.apply(0,a);f=w.apply(0,f);k=A.apply(0,k);u=A.apply(0,u);return{x:a,y:f,x2:k,y2:u,width:k-a,height:u-f,cx:a+(k-a)/2,cy:f+(u-f)/2}};v.clone=function(a){a=new z;for(var f=0,k=this.items.length;f&lt;k;f++)a.push(this.items[f].clone());
return a};v.toString=function(){return"Snap\u2018s set"};v.type="set";a.set=function(){var a=new z;arguments.length&amp;&amp;a.push.apply(a,Array.prototype.slice.call(arguments,0));return a}});C.plugin(function(a,v,y,C){function A(a){var b=a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,1,0,0,1,0,0];case "r":return 4==a.length?[b,0,a[2],a[3] ]:[b,0];case "s":return 5==a.length?[b,1,1,a[3],a[4] ]:3==a.length?[b,1,1]:[b,1]}}function w(b,d,f){d=q(d).replace(/\.{3}|\u2026/g,b);b=a.parseTransformString(b)||
[];d=a.parseTransformString(d)||[];for(var k=Math.max(b.length,d.length),p=[],v=[],h=0,w,z,y,I;h&lt;k;h++){y=b[h]||A(d[h]);I=d[h]||A(y);if(y[0]!=I[0]||"r"==y[0].toLowerCase()&amp;&amp;(y[2]!=I[2]||y[3]!=I[3])||"s"==y[0].toLowerCase()&amp;&amp;(y[3]!=I[3]||y[4]!=I[4])){b=a._.transform2matrix(b,f());d=a._.transform2matrix(d,f());p=[["m",b.a,b.b,b.c,b.d,b.e,b.f] ];v=[["m",d.a,d.b,d.c,d.d,d.e,d.f] ];break}p[h]=[];v[h]=[];w=0;for(z=Math.max(y.length,I.length);w&lt;z;w++)w in y&amp;&amp;(p[h][w]=y[w]),w in I&amp;&amp;(v[h][w]=I[w])}return{from:u(p),
to:u(v),f:n(p)}}function z(a){return a}function d(a){return function(b){return+b.toFixed(3)+a}}function f(b){return a.rgb(b[0],b[1],b[2])}function n(a){var b=0,d,f,k,n,h,p,q=[];d=0;for(f=a.length;d&lt;f;d++){h="[";p=['"'+a[d][0]+'"'];k=1;for(n=a[d].length;k&lt;n;k++)p[k]="val["+b++ +"]";h+=p+"]";q[d]=h}return Function("val","return Snap.path.toString.call(["+q+"])")}function u(a){for(var b=[],d=0,f=a.length;d&lt;f;d++)for(var k=1,n=a[d].length;k&lt;n;k++)b.push(a[d][k]);return b}var p={},b=/[a-z]+$/i,q=String;
p.stroke=p.fill="colour";v.prototype.equal=function(a,b){return k("snap.util.equal",this,a,b).firstDefined()};k.on("snap.util.equal",function(e,k){var r,s;r=q(this.attr(e)||"");var x=this;if(r==+r&amp;&amp;k==+k)return{from:+r,to:+k,f:z};if("colour"==p[e])return r=a.color(r),s=a.color(k),{from:[r.r,r.g,r.b,r.opacity],to:[s.r,s.g,s.b,s.opacity],f:f};if("transform"==e||"gradientTransform"==e||"patternTransform"==e)return k instanceof a.Matrix&amp;&amp;(k=k.toTransformString()),a._.rgTransform.test(k)||(k=a._.svgTransform2string(k)),
w(r,k,function(){return x.getBBox(1)});if("d"==e||"path"==e)return r=a.path.toCubic(r,k),{from:u(r[0]),to:u(r[1]),f:n(r[0])};if("points"==e)return r=q(r).split(a._.separator),s=q(k).split(a._.separator),{from:r,to:s,f:function(a){return a}};aUnit=r.match(b);s=q(k).match(b);return aUnit&amp;&amp;aUnit==s?{from:parseFloat(r),to:parseFloat(k),f:d(aUnit)}:{from:this.asPX(e),to:this.asPX(e,k),f:z}})});C.plugin(function(a,v,y,C){var A=v.prototype,w="createTouch"in C.doc;v="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel".split(" ");
var z={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},d=function(a,b){var d="y"==a?"scrollTop":"scrollLeft",e=b&amp;&amp;b.node?b.node.ownerDocument:C.doc;return e[d in e.documentElement?"documentElement":"body"][d]},f=function(){this.returnValue=!1},n=function(){return this.originalEvent.preventDefault()},u=function(){this.cancelBubble=!0},p=function(){return this.originalEvent.stopPropagation()},b=function(){if(C.doc.addEventListener)return function(a,b,e,f){var k=w&amp;&amp;z[b]?z[b]:b,l=function(k){var l=
d("y",f),q=d("x",f);if(w&amp;&amp;z.hasOwnProperty(b))for(var r=0,u=k.targetTouches&amp;&amp;k.targetTouches.length;r&lt;u;r++)if(k.targetTouches[r].target==a||a.contains(k.targetTouches[r].target)){u=k;k=k.targetTouches[r];k.originalEvent=u;k.preventDefault=n;k.stopPropagation=p;break}return e.call(f,k,k.clientX+q,k.clientY+l)};b!==k&amp;&amp;a.addEventListener(b,l,!1);a.addEventListener(k,l,!1);return function(){b!==k&amp;&amp;a.removeEventListener(b,l,!1);a.removeEventListener(k,l,!1);return!0}};if(C.doc.attachEvent)return function(a,
b,e,h){var k=function(a){a=a||h.node.ownerDocument.window.event;var b=d("y",h),k=d("x",h),k=a.clientX+k,b=a.clientY+b;a.preventDefault=a.preventDefault||f;a.stopPropagation=a.stopPropagation||u;return e.call(h,a,k,b)};a.attachEvent("on"+b,k);return function(){a.detachEvent("on"+b,k);return!0}}}(),q=[],e=function(a){for(var b=a.clientX,e=a.clientY,f=d("y"),l=d("x"),n,p=q.length;p--;){n=q[p];if(w)for(var r=a.touches&amp;&amp;a.touches.length,u;r--;){if(u=a.touches[r],u.identifier==n.el._drag.id||n.el.node.contains(u.target)){b=
u.clientX;e=u.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();b+=l;e+=f;k("snap.drag.move."+n.el.id,n.move_scope||n.el,b-n.el._drag.x,e-n.el._drag.y,b,e,a)}},l=function(b){a.unmousemove(e).unmouseup(l);for(var d=q.length,f;d--;)f=q[d],f.el._drag={},k("snap.drag.end."+f.el.id,f.end_scope||f.start_scope||f.move_scope||f.el,b);q=[]};for(y=v.length;y--;)(function(d){a[d]=A[d]=function(e,f){a.is(e,"function")&amp;&amp;(this.events=this.events||[],this.events.push({name:d,
f:e,unbind:b(this.node||document,d,e,f||this)}));return this};a["un"+d]=A["un"+d]=function(a){for(var b=this.events||[],e=b.length;e--;)if(b[e].name==d&amp;&amp;(b[e].f==a||!a)){b[e].unbind();b.splice(e,1);!b.length&amp;&amp;delete this.events;break}return this}})(v[y]);A.hover=function(a,b,d,e){return this.mouseover(a,d).mouseout(b,e||d)};A.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var r=[];A.drag=function(b,d,f,h,n,p){function u(r,v,w){(r.originalEvent||r).preventDefault();this._drag.x=v;
this._drag.y=w;this._drag.id=r.identifier;!q.length&amp;&amp;a.mousemove(e).mouseup(l);q.push({el:this,move_scope:h,start_scope:n,end_scope:p});d&amp;&amp;k.on("snap.drag.start."+this.id,d);b&amp;&amp;k.on("snap.drag.move."+this.id,b);f&amp;&amp;k.on("snap.drag.end."+this.id,f);k("snap.drag.start."+this.id,n||h||this,v,w,r)}if(!arguments.length){var v;return this.drag(function(a,b){this.attr({transform:v+(v?"T":"t")+[a,b]})},function(){v=this.transform().local})}this._drag={};r.push({el:this,start:u});this.mousedown(u);return this};
A.undrag=function(){for(var b=r.length;b--;)r[b].el==this&amp;&amp;(this.unmousedown(r[b].start),r.splice(b,1),k.unbind("snap.drag.*."+this.id));!r.length&amp;&amp;a.unmousemove(e).unmouseup(l);return this}});C.plugin(function(a,v,y,C){y=y.prototype;var A=/^\s*url\((.+)\)/,w=String,z=a._.$;a.filter={};y.filter=function(d){var f=this;"svg"!=f.type&amp;&amp;(f=f.paper);d=a.parse(w(d));var k=a._.id(),u=z("filter");z(u,{id:k,filterUnits:"userSpaceOnUse"});u.appendChild(d.node);f.defs.appendChild(u);return new v(u)};k.on("snap.util.getattr.filter",
function(){k.stop();var d=z(this.node,"filter");if(d)return(d=w(d).match(A))&amp;&amp;a.select(d[1])});k.on("snap.util.attr.filter",function(d){if(d instanceof v&amp;&amp;"filter"==d.type){k.stop();var f=d.node.id;f||(z(d.node,{id:d.id}),f=d.id);z(this.node,{filter:a.url(f)})}d&amp;&amp;"none"!=d||(k.stop(),this.node.removeAttribute("filter"))});a.filter.blur=function(d,f){null==d&amp;&amp;(d=2);return a.format('&lt;feGaussianBlur stdDeviation="{def}"/&gt;',{def:null==f?d:[d,f]})};a.filter.blur.toString=function(){return this()};a.filter.shadow=
function(d,f,k,u,p){"string"==typeof k&amp;&amp;(p=u=k,k=4);"string"!=typeof u&amp;&amp;(p=u,u="#000");null==k&amp;&amp;(k=4);null==p&amp;&amp;(p=1);null==d&amp;&amp;(d=0,f=2);null==f&amp;&amp;(f=d);u=a.color(u||"#000");return a.format('&lt;feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/&gt;&lt;feOffset dx="{dx}" dy="{dy}" result="offsetblur"/&gt;&lt;feFlood flood-color="{color}"/&gt;&lt;feComposite in2="offsetblur" operator="in"/&gt;&lt;feComponentTransfer&gt;&lt;feFuncA type="linear" slope="{opacity}"/&gt;&lt;/feComponentTransfer&gt;&lt;feMerge&gt;&lt;feMergeNode/&gt;&lt;feMergeNode in="SourceGraphic"/&gt;&lt;/feMerge&gt;',
{color:u,dx:d,dy:f,blur:k,opacity:p})};a.filter.shadow.toString=function(){return this()};a.filter.grayscale=function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/&gt;',{a:0.2126+0.7874*(1-d),b:0.7152-0.7152*(1-d),c:0.0722-0.0722*(1-d),d:0.2126-0.2126*(1-d),e:0.7152+0.2848*(1-d),f:0.0722-0.0722*(1-d),g:0.2126-0.2126*(1-d),h:0.0722+0.9278*(1-d)})};a.filter.grayscale.toString=function(){return this()};a.filter.sepia=
function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/&gt;',{a:0.393+0.607*(1-d),b:0.769-0.769*(1-d),c:0.189-0.189*(1-d),d:0.349-0.349*(1-d),e:0.686+0.314*(1-d),f:0.168-0.168*(1-d),g:0.272-0.272*(1-d),h:0.534-0.534*(1-d),i:0.131+0.869*(1-d)})};a.filter.sepia.toString=function(){return this()};a.filter.saturate=function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feColorMatrix type="saturate" values="{amount}"/&gt;',{amount:1-
d})};a.filter.saturate.toString=function(){return this()};a.filter.hueRotate=function(d){return a.format('&lt;feColorMatrix type="hueRotate" values="{angle}"/&gt;',{angle:d||0})};a.filter.hueRotate.toString=function(){return this()};a.filter.invert=function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feComponentTransfer&gt;&lt;feFuncR type="table" tableValues="{amount} {amount2}"/&gt;&lt;feFuncG type="table" tableValues="{amount} {amount2}"/&gt;&lt;feFuncB type="table" tableValues="{amount} {amount2}"/&gt;&lt;/feComponentTransfer&gt;',{amount:d,
amount2:1-d})};a.filter.invert.toString=function(){return this()};a.filter.brightness=function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feComponentTransfer&gt;&lt;feFuncR type="linear" slope="{amount}"/&gt;&lt;feFuncG type="linear" slope="{amount}"/&gt;&lt;feFuncB type="linear" slope="{amount}"/&gt;&lt;/feComponentTransfer&gt;',{amount:d})};a.filter.brightness.toString=function(){return this()};a.filter.contrast=function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feComponentTransfer&gt;&lt;feFuncR type="linear" slope="{amount}" intercept="{amount2}"/&gt;&lt;feFuncG type="linear" slope="{amount}" intercept="{amount2}"/&gt;&lt;feFuncB type="linear" slope="{amount}" intercept="{amount2}"/&gt;&lt;/feComponentTransfer&gt;',
{amount:d,amount2:0.5-d/2})};a.filter.contrast.toString=function(){return this()}});return C});

]]&gt; &lt;/script&gt;
&lt;script&gt; &lt;![CDATA[

(function (glob, factory) {
    // AMD support
    if (typeof define === "function" &amp;&amp; define.amd) {
        // Define as an anonymous module
        define("Gadfly", ["Snap.svg"], function (Snap) {
            return factory(Snap);
        });
    } else {
        // Browser globals (glob is window)
        // Snap adds itself to window
        glob.Gadfly = factory(glob.Snap);
    }
}(this, function (Snap) {

var Gadfly = {};

// Get an x/y coordinate value in pixels
var xPX = function(fig, x) {
    var client_box = fig.node.getBoundingClientRect();
    return x * fig.node.viewBox.baseVal.width / client_box.width;
};

var yPX = function(fig, y) {
    var client_box = fig.node.getBoundingClientRect();
    return y * fig.node.viewBox.baseVal.height / client_box.height;
};


Snap.plugin(function (Snap, Element, Paper, global) {
    // Traverse upwards from a snap element to find and return the first
    // note with the "plotroot" class.
    Element.prototype.plotroot = function () {
        var element = this;
        while (!element.hasClass("plotroot") &amp;&amp; element.parent() != null) {
            element = element.parent();
        }
        return element;
    };

    Element.prototype.svgroot = function () {
        var element = this;
        while (element.node.nodeName != "svg" &amp;&amp; element.parent() != null) {
            element = element.parent();
        }
        return element;
    };

    Element.prototype.plotbounds = function () {
        var root = this.plotroot()
        var bbox = root.select(".guide.background").node.getBBox();
        return {
            x0: bbox.x,
            x1: bbox.x + bbox.width,
            y0: bbox.y,
            y1: bbox.y + bbox.height
        };
    };

    Element.prototype.plotcenter = function () {
        var root = this.plotroot()
        var bbox = root.select(".guide.background").node.getBBox();
        return {
            x: bbox.x + bbox.width / 2,
            y: bbox.y + bbox.height / 2
        };
    };

    // Emulate IE style mouseenter/mouseleave events, since Microsoft always
    // does everything right.
    // See: http://www.dynamic-tools.net/toolbox/isMouseLeaveOrEnter/
    var events = ["mouseenter", "mouseleave"];

    for (i in events) {
        (function (event_name) {
            var event_name = events[i];
            Element.prototype[event_name] = function (fn, scope) {
                if (Snap.is(fn, "function")) {
                    var fn2 = function (event) {
                        if (event.type != "mouseover" &amp;&amp; event.type != "mouseout") {
                            return;
                        }

                        var reltg = event.relatedTarget ? event.relatedTarget :
                            event.type == "mouseout" ? event.toElement : event.fromElement;
                        while (reltg &amp;&amp; reltg != this.node) reltg = reltg.parentNode;

                        if (reltg != this.node) {
                            return fn.apply(this, event);
                        }
                    };

                    if (event_name == "mouseenter") {
                        this.mouseover(fn2, scope);
                    } else {
                        this.mouseout(fn2, scope);
                    }
                }
                return this;
            };
        })(events[i]);
    }


    Element.prototype.mousewheel = function (fn, scope) {
        if (Snap.is(fn, "function")) {
            var el = this;
            var fn2 = function (event) {
                fn.apply(el, [event]);
            };
        }

        this.node.addEventListener(
            /Firefox/i.test(navigator.userAgent) ? "DOMMouseScroll" : "mousewheel",
            fn2);

        return this;
    };


    // Snap's attr function can be too slow for things like panning/zooming.
    // This is a function to directly update element attributes without going
    // through eve.
    Element.prototype.attribute = function(key, val) {
        if (val === undefined) {
            return this.node.getAttribute(key);
        } else {
            this.node.setAttribute(key, val);
            return this;
        }
    };

    Element.prototype.init_gadfly = function() {
        this.mouseenter(Gadfly.plot_mouseover)
            .mouseleave(Gadfly.plot_mouseout)
            .dblclick(Gadfly.plot_dblclick)
            .mousewheel(Gadfly.guide_background_scroll)
            .drag(Gadfly.guide_background_drag_onmove,
                  Gadfly.guide_background_drag_onstart,
                  Gadfly.guide_background_drag_onend);
        this.mouseenter(function (event) {
            init_pan_zoom(this.plotroot());
        });
        return this;
    };
});


// When the plot is moused over, emphasize the grid lines.
Gadfly.plot_mouseover = function(event) {
    var root = this.plotroot();

    var keyboard_zoom = function(event) {
        if (event.which == 187) { // plus
            increase_zoom_by_position(root, 0.1, true);
        } else if (event.which == 189) { // minus
            increase_zoom_by_position(root, -0.1, true);
        }
    };
    root.data("keyboard_zoom", keyboard_zoom);
    window.addEventListener("keyup", keyboard_zoom);

    var xgridlines = root.select(".xgridlines"),
        ygridlines = root.select(".ygridlines");

    xgridlines.data("unfocused_strokedash",
                    xgridlines.attribute("stroke-dasharray").replace(/(\d)(,|$)/g, "$1mm$2"));
    ygridlines.data("unfocused_strokedash",
                    ygridlines.attribute("stroke-dasharray").replace(/(\d)(,|$)/g, "$1mm$2"));

    // emphasize grid lines
    var destcolor = root.data("focused_xgrid_color");
    xgridlines.attribute("stroke-dasharray", "none")
              .selectAll("path")
              .animate({stroke: destcolor}, 250);

    destcolor = root.data("focused_ygrid_color");
    ygridlines.attribute("stroke-dasharray", "none")
              .selectAll("path")
              .animate({stroke: destcolor}, 250);

    // reveal zoom slider
    root.select(".zoomslider")
        .animate({opacity: 1.0}, 250);
};

// Reset pan and zoom on double click
Gadfly.plot_dblclick = function(event) {
  set_plot_pan_zoom(this.plotroot(), 0.0, 0.0, 1.0);
};

// Unemphasize grid lines on mouse out.
Gadfly.plot_mouseout = function(event) {
    var root = this.plotroot();

    window.removeEventListener("keyup", root.data("keyboard_zoom"));
    root.data("keyboard_zoom", undefined);

    var xgridlines = root.select(".xgridlines"),
        ygridlines = root.select(".ygridlines");

    var destcolor = root.data("unfocused_xgrid_color");

    xgridlines.attribute("stroke-dasharray", xgridlines.data("unfocused_strokedash"))
              .selectAll("path")
              .animate({stroke: destcolor}, 250);

    destcolor = root.data("unfocused_ygrid_color");
    ygridlines.attribute("stroke-dasharray", ygridlines.data("unfocused_strokedash"))
              .selectAll("path")
              .animate({stroke: destcolor}, 250);

    // hide zoom slider
    root.select(".zoomslider")
        .animate({opacity: 0.0}, 250);
};


var set_geometry_transform = function(root, tx, ty, scale) {
    var xscalable = root.hasClass("xscalable"),
        yscalable = root.hasClass("yscalable");

    var old_scale = root.data("scale");

    var xscale = xscalable ? scale : 1.0,
        yscale = yscalable ? scale : 1.0;

    tx = xscalable ? tx : 0.0;
    ty = yscalable ? ty : 0.0;

    var t = new Snap.Matrix().translate(tx, ty).scale(xscale, yscale);

    root.selectAll(".geometry, image")
        .forEach(function (element, i) {
            element.transform(t);
        });

    bounds = root.plotbounds();

    if (yscalable) {
        var xfixed_t = new Snap.Matrix().translate(0, ty).scale(1.0, yscale);
        root.selectAll(".xfixed")
            .forEach(function (element, i) {
                element.transform(xfixed_t);
            });

        root.select(".ylabels")
            .transform(xfixed_t)
            .selectAll("text")
            .forEach(function (element, i) {
                if (element.attribute("gadfly:inscale") == "true") {
                    var cx = element.asPX("x"),
                        cy = element.asPX("y");
                    var st = element.data("static_transform");
                    unscale_t = new Snap.Matrix();
                    unscale_t.scale(1, 1/scale, cx, cy).add(st);
                    element.transform(unscale_t);

                    var y = cy * scale + ty;
                    element.attr("visibility",
                        bounds.y0 &lt;= y &amp;&amp; y &lt;= bounds.y1 ? "visible" : "hidden");
                }
            });
    }

    if (xscalable) {
        var yfixed_t = new Snap.Matrix().translate(tx, 0).scale(xscale, 1.0);
        var xtrans = new Snap.Matrix().translate(tx, 0);
        root.selectAll(".yfixed")
            .forEach(function (element, i) {
                element.transform(yfixed_t);
            });

        root.select(".xlabels")
            .transform(yfixed_t)
            .selectAll("text")
            .forEach(function (element, i) {
                if (element.attribute("gadfly:inscale") == "true") {
                    var cx = element.asPX("x"),
                        cy = element.asPX("y");
                    var st = element.data("static_transform");
                    unscale_t = new Snap.Matrix();
                    unscale_t.scale(1/scale, 1, cx, cy).add(st);

                    element.transform(unscale_t);

                    var x = cx * scale + tx;
                    element.attr("visibility",
                        bounds.x0 &lt;= x &amp;&amp; x &lt;= bounds.x1 ? "visible" : "hidden");
                    }
            });
    }

    // we must unscale anything that is scale invariance: widths, raiduses, etc.
    var size_attribs = ["font-size"];
    var unscaled_selection = ".geometry, .geometry *";
    if (xscalable) {
        size_attribs.push("rx");
        unscaled_selection += ", .xgridlines";
    }
    if (yscalable) {
        size_attribs.push("ry");
        unscaled_selection += ", .ygridlines";
    }

    root.selectAll(unscaled_selection)
        .forEach(function (element, i) {
            // circle need special help
            if (element.node.nodeName == "circle") {
                var cx = element.attribute("cx"),
                    cy = element.attribute("cy");
                unscale_t = new Snap.Matrix().scale(1/xscale, 1/yscale,
                                                        cx, cy);
                element.transform(unscale_t);
                return;
            }

            for (i in size_attribs) {
                var key = size_attribs[i];
                var val = parseFloat(element.attribute(key));
                if (val !== undefined &amp;&amp; val != 0 &amp;&amp; !isNaN(val)) {
                    element.attribute(key, val * old_scale / scale);
                }
            }
        });
};


// Find the most appropriate tick scale and update label visibility.
var update_tickscale = function(root, scale, axis) {
    if (!root.hasClass(axis + "scalable")) return;

    var tickscales = root.data(axis + "tickscales");
    var best_tickscale = 1.0;
    var best_tickscale_dist = Infinity;
    for (tickscale in tickscales) {
        var dist = Math.abs(Math.log(tickscale) - Math.log(scale));
        if (dist &lt; best_tickscale_dist) {
            best_tickscale_dist = dist;
            best_tickscale = tickscale;
        }
    }

    if (best_tickscale != root.data(axis + "tickscale")) {
        root.data(axis + "tickscale", best_tickscale);
        var mark_inscale_gridlines = function (element, i) {
            var inscale = element.attr("gadfly:scale") == best_tickscale;
            element.attribute("gadfly:inscale", inscale);
            element.attr("visibility", inscale ? "visible" : "hidden");
        };

        var mark_inscale_labels = function (element, i) {
            var inscale = element.attr("gadfly:scale") == best_tickscale;
            element.attribute("gadfly:inscale", inscale);
            element.attr("visibility", inscale ? "visible" : "hidden");
        };

        root.select("." + axis + "gridlines").selectAll("path").forEach(mark_inscale_gridlines);
        root.select("." + axis + "labels").selectAll("text").forEach(mark_inscale_labels);
    }
};


var set_plot_pan_zoom = function(root, tx, ty, scale) {
    var old_scale = root.data("scale");
    var bounds = root.plotbounds();

    var width = bounds.x1 - bounds.x0,
        height = bounds.y1 - bounds.y0;

    // compute the viewport derived from tx, ty, and scale
    var x_min = -width * scale - (scale * width - width),
        x_max = width * scale,
        y_min = -height * scale - (scale * height - height),
        y_max = height * scale;

    var x0 = bounds.x0 - scale * bounds.x0,
        y0 = bounds.y0 - scale * bounds.y0;

    var tx = Math.max(Math.min(tx - x0, x_max), x_min),
        ty = Math.max(Math.min(ty - y0, y_max), y_min);

    tx += x0;
    ty += y0;

    // when the scale change, we may need to alter which set of
    // ticks is being displayed
    if (scale != old_scale) {
        update_tickscale(root, scale, "x");
        update_tickscale(root, scale, "y");
    }

    set_geometry_transform(root, tx, ty, scale);

    root.data("scale", scale);
    root.data("tx", tx);
    root.data("ty", ty);
};


var scale_centered_translation = function(root, scale) {
    var bounds = root.plotbounds();

    var width = bounds.x1 - bounds.x0,
        height = bounds.y1 - bounds.y0;

    var tx0 = root.data("tx"),
        ty0 = root.data("ty");

    var scale0 = root.data("scale");

    // how off from center the current view is
    var xoff = tx0 - (bounds.x0 * (1 - scale0) + (width * (1 - scale0)) / 2),
        yoff = ty0 - (bounds.y0 * (1 - scale0) + (height * (1 - scale0)) / 2);

    // rescale offsets
    xoff = xoff * scale / scale0;
    yoff = yoff * scale / scale0;

    // adjust for the panel position being scaled
    var x_edge_adjust = bounds.x0 * (1 - scale),
        y_edge_adjust = bounds.y0 * (1 - scale);

    return {
        x: xoff + x_edge_adjust + (width - width * scale) / 2,
        y: yoff + y_edge_adjust + (height - height * scale) / 2
    };
};


// Initialize data for panning zooming if it isn't already.
var init_pan_zoom = function(root) {
    if (root.data("zoompan-ready")) {
        return;
    }

    // The non-scaling-stroke trick. Rather than try to correct for the
    // stroke-width when zooming, we force it to a fixed value.
    var px_per_mm = root.node.getCTM().a;

    // Drag events report deltas in pixels, which we'd like to convert to
    // millimeters.
    root.data("px_per_mm", px_per_mm);

    root.selectAll("path")
        .forEach(function (element, i) {
        sw = element.asPX("stroke-width") * px_per_mm;
        if (sw &gt; 0) {
            element.attribute("stroke-width", sw);
            element.attribute("vector-effect", "non-scaling-stroke");
        }
    });

    // Store ticks labels original tranformation
    root.selectAll(".xlabels &gt; text, .ylabels &gt; text")
        .forEach(function (element, i) {
            var lm = element.transform().localMatrix;
            element.data("static_transform",
                new Snap.Matrix(lm.a, lm.b, lm.c, lm.d, lm.e, lm.f));
        });

    var xgridlines = root.select(".xgridlines");
    var ygridlines = root.select(".ygridlines");
    var xlabels = root.select(".xlabels");
    var ylabels = root.select(".ylabels");

    if (root.data("tx") === undefined) root.data("tx", 0);
    if (root.data("ty") === undefined) root.data("ty", 0);
    if (root.data("scale") === undefined) root.data("scale", 1.0);
    if (root.data("xtickscales") === undefined) {

        // index all the tick scales that are listed
        var xtickscales = {};
        var ytickscales = {};
        var add_x_tick_scales = function (element, i) {
            xtickscales[element.attribute("gadfly:scale")] = true;
        };
        var add_y_tick_scales = function (element, i) {
            ytickscales[element.attribute("gadfly:scale")] = true;
        };

        if (xgridlines) xgridlines.selectAll("path").forEach(add_x_tick_scales);
        if (ygridlines) ygridlines.selectAll("path").forEach(add_y_tick_scales);
        if (xlabels) xlabels.selectAll("text").forEach(add_x_tick_scales);
        if (ylabels) ylabels.selectAll("text").forEach(add_y_tick_scales);

        root.data("xtickscales", xtickscales);
        root.data("ytickscales", ytickscales);
        root.data("xtickscale", 1.0);
    }

    var min_scale = 1.0, max_scale = 1.0;
    for (scale in xtickscales) {
        min_scale = Math.min(min_scale, scale);
        max_scale = Math.max(max_scale, scale);
    }
    for (scale in ytickscales) {
        min_scale = Math.min(min_scale, scale);
        max_scale = Math.max(max_scale, scale);
    }
    root.data("min_scale", min_scale);
    root.data("max_scale", max_scale);

    // store the original positions of labels
    if (xlabels) {
        xlabels.selectAll("text")
               .forEach(function (element, i) {
                   element.data("x", element.asPX("x"));
               });
    }

    if (ylabels) {
        ylabels.selectAll("text")
               .forEach(function (element, i) {
                   element.data("y", element.asPX("y"));
               });
    }

    // mark grid lines and ticks as in or out of scale.
    var mark_inscale = function (element, i) {
        element.attribute("gadfly:inscale", element.attribute("gadfly:scale") == 1.0);
    };

    if (xgridlines) xgridlines.selectAll("path").forEach(mark_inscale);
    if (ygridlines) ygridlines.selectAll("path").forEach(mark_inscale);
    if (xlabels) xlabels.selectAll("text").forEach(mark_inscale);
    if (ylabels) ylabels.selectAll("text").forEach(mark_inscale);

    // figure out the upper ond lower bounds on panning using the maximum
    // and minum grid lines
    var bounds = root.plotbounds();
    var pan_bounds = {
        x0: 0.0,
        y0: 0.0,
        x1: 0.0,
        y1: 0.0
    };

    if (xgridlines) {
        xgridlines
            .selectAll("path")
            .forEach(function (element, i) {
                if (element.attribute("gadfly:inscale") == "true") {
                    var bbox = element.node.getBBox();
                    if (bounds.x1 - bbox.x &lt; pan_bounds.x0) {
                        pan_bounds.x0 = bounds.x1 - bbox.x;
                    }
                    if (bounds.x0 - bbox.x &gt; pan_bounds.x1) {
                        pan_bounds.x1 = bounds.x0 - bbox.x;
                    }
                    element.attr("visibility", "visible");
                }
            });
    }

    if (ygridlines) {
        ygridlines
            .selectAll("path")
            .forEach(function (element, i) {
                if (element.attribute("gadfly:inscale") == "true") {
                    var bbox = element.node.getBBox();
                    if (bounds.y1 - bbox.y &lt; pan_bounds.y0) {
                        pan_bounds.y0 = bounds.y1 - bbox.y;
                    }
                    if (bounds.y0 - bbox.y &gt; pan_bounds.y1) {
                        pan_bounds.y1 = bounds.y0 - bbox.y;
                    }
                    element.attr("visibility", "visible");
                }
            });
    }

    // nudge these values a little
    pan_bounds.x0 -= 5;
    pan_bounds.x1 += 5;
    pan_bounds.y0 -= 5;
    pan_bounds.y1 += 5;
    root.data("pan_bounds", pan_bounds);

    root.data("zoompan-ready", true)
};


// drag actions, i.e. zooming and panning
var pan_action = {
    start: function(root, x, y, event) {
        root.data("dx", 0);
        root.data("dy", 0);
        root.data("tx0", root.data("tx"));
        root.data("ty0", root.data("ty"));
    },
    update: function(root, dx, dy, x, y, event) {
        var px_per_mm = root.data("px_per_mm");
        dx /= px_per_mm;
        dy /= px_per_mm;

        var tx0 = root.data("tx"),
            ty0 = root.data("ty");

        var dx0 = root.data("dx"),
            dy0 = root.data("dy");

        root.data("dx", dx);
        root.data("dy", dy);

        dx = dx - dx0;
        dy = dy - dy0;

        var tx = tx0 + dx,
            ty = ty0 + dy;

        set_plot_pan_zoom(root, tx, ty, root.data("scale"));
    },
    end: function(root, event) {

    },
    cancel: function(root) {
        set_plot_pan_zoom(root, root.data("tx0"), root.data("ty0"), root.data("scale"));
    }
};

var zoom_box;
var zoom_action = {
    start: function(root, x, y, event) {
        var bounds = root.plotbounds();
        var width = bounds.x1 - bounds.x0,
            height = bounds.y1 - bounds.y0;
        var ratio = width / height;
        var xscalable = root.hasClass("xscalable"),
            yscalable = root.hasClass("yscalable");
        var px_per_mm = root.data("px_per_mm");
        x = xscalable ? x / px_per_mm : bounds.x0;
        y = yscalable ? y / px_per_mm : bounds.y0;
        var w = xscalable ? 0 : width;
        var h = yscalable ? 0 : height;
        zoom_box = root.rect(x, y, w, h).attr({
            "fill": "#000",
            "opacity": 0.25
        });
        zoom_box.data("ratio", ratio);
    },
    update: function(root, dx, dy, x, y, event) {
        var xscalable = root.hasClass("xscalable"),
            yscalable = root.hasClass("yscalable");
        var px_per_mm = root.data("px_per_mm");
        var bounds = root.plotbounds();
        if (yscalable) {
            y /= px_per_mm;
            y = Math.max(bounds.y0, y);
            y = Math.min(bounds.y1, y);
        } else {
            y = bounds.y1;
        }
        if (xscalable) {
            x /= px_per_mm;
            x = Math.max(bounds.x0, x);
            x = Math.min(bounds.x1, x);
        } else {
            x = bounds.x1;
        }

        dx = x - zoom_box.attr("x");
        dy = y - zoom_box.attr("y");
        if (xscalable &amp;&amp; yscalable) {
            var ratio = zoom_box.data("ratio");
            var width = Math.min(Math.abs(dx), ratio * Math.abs(dy));
            var height = Math.min(Math.abs(dy), Math.abs(dx) / ratio);
            dx = width * dx / Math.abs(dx);
            dy = height * dy / Math.abs(dy);
        }
        var xoffset = 0,
            yoffset = 0;
        if (dx &lt; 0) {
            xoffset = dx;
            dx = -1 * dx;
        }
        if (dy &lt; 0) {
            yoffset = dy;
            dy = -1 * dy;
        }
        if (isNaN(dy)) {
            dy = 0.0;
        }
        if (isNaN(dx)) {
            dx = 0.0;
        }
        zoom_box.transform("T" + xoffset + "," + yoffset);
        zoom_box.attr("width", dx);
        zoom_box.attr("height", dy);
    },
    end: function(root, event) {
        var xscalable = root.hasClass("xscalable"),
            yscalable = root.hasClass("yscalable");
        var zoom_bounds = zoom_box.getBBox();
        if (zoom_bounds.width * zoom_bounds.height &lt;= 0) {
            return;
        }
        var plot_bounds = root.plotbounds();
        var zoom_factor = 1.0;
        if (yscalable) {
            zoom_factor = (plot_bounds.y1 - plot_bounds.y0) / zoom_bounds.height;
        } else {
            zoom_factor = (plot_bounds.x1 - plot_bounds.x0) / zoom_bounds.width;
        }
        var tx = (root.data("tx") - zoom_bounds.x) * zoom_factor + plot_bounds.x0,
            ty = (root.data("ty") - zoom_bounds.y) * zoom_factor + plot_bounds.y0;
        set_plot_pan_zoom(root, tx, ty, root.data("scale") * zoom_factor);
        zoom_box.remove();
    },
    cancel: function(root) {
        zoom_box.remove();
    }
};


Gadfly.guide_background_drag_onstart = function(x, y, event) {
    var root = this.plotroot();
    var scalable = root.hasClass("xscalable") || root.hasClass("yscalable");
    var zoomable = !event.altKey &amp;&amp; !event.ctrlKey &amp;&amp; event.shiftKey &amp;&amp; scalable;
    var panable = !event.altKey &amp;&amp; !event.ctrlKey &amp;&amp; !event.shiftKey &amp;&amp; scalable;
    var drag_action = zoomable ? zoom_action :
                      panable  ? pan_action :
                                 undefined;
    root.data("drag_action", drag_action);
    if (drag_action) {
        var cancel_drag_action = function(event) {
            if (event.which == 27) { // esc key
                drag_action.cancel(root);
                root.data("drag_action", undefined);
            }
        };
        window.addEventListener("keyup", cancel_drag_action);
        root.data("cancel_drag_action", cancel_drag_action);
        drag_action.start(root, x, y, event);
    }
};


Gadfly.guide_background_drag_onmove = function(dx, dy, x, y, event) {
    var root = this.plotroot();
    var drag_action = root.data("drag_action");
    if (drag_action) {
        drag_action.update(root, dx, dy, x, y, event);
    }
};


Gadfly.guide_background_drag_onend = function(event) {
    var root = this.plotroot();
    window.removeEventListener("keyup", root.data("cancel_drag_action"));
    root.data("cancel_drag_action", undefined);
    var drag_action = root.data("drag_action");
    if (drag_action) {
        drag_action.end(root, event);
    }
    root.data("drag_action", undefined);
};


Gadfly.guide_background_scroll = function(event) {
    if (event.shiftKey) {
        increase_zoom_by_position(this.plotroot(), 0.001 * event.wheelDelta);
        event.preventDefault();
    }
};


Gadfly.zoomslider_button_mouseover = function(event) {
    this.select(".button_logo")
         .animate({fill: this.data("mouseover_color")}, 100);
};


Gadfly.zoomslider_button_mouseout = function(event) {
     this.select(".button_logo")
         .animate({fill: this.data("mouseout_color")}, 100);
};


Gadfly.zoomslider_zoomout_click = function(event) {
    increase_zoom_by_position(this.plotroot(), -0.1, true);
};


Gadfly.zoomslider_zoomin_click = function(event) {
    increase_zoom_by_position(this.plotroot(), 0.1, true);
};


Gadfly.zoomslider_track_click = function(event) {
    // TODO
};


// Map slider position x to scale y using the function y = a*exp(b*x)+c.
// The constants a, b, and c are solved using the constraint that the function
// should go through the points (0; min_scale), (0.5; 1), and (1; max_scale).
var scale_from_slider_position = function(position, min_scale, max_scale) {
    var a = (1 - 2 * min_scale + min_scale * min_scale) / (min_scale + max_scale - 2),
        b = 2 * Math.log((max_scale - 1) / (1 - min_scale)),
        c = (min_scale * max_scale - 1) / (min_scale + max_scale - 2);
    return a * Math.exp(b * position) + c;
}

// inverse of scale_from_slider_position
var slider_position_from_scale = function(scale, min_scale, max_scale) {
    var a = (1 - 2 * min_scale + min_scale * min_scale) / (min_scale + max_scale - 2),
        b = 2 * Math.log((max_scale - 1) / (1 - min_scale)),
        c = (min_scale * max_scale - 1) / (min_scale + max_scale - 2);
    return 1 / b * Math.log((scale - c) / a);
}

var increase_zoom_by_position = function(root, delta_position, animate) {
    var scale = root.data("scale"),
        min_scale = root.data("min_scale"),
        max_scale = root.data("max_scale");
    var position = slider_position_from_scale(scale, min_scale, max_scale);
    position += delta_position;
    scale = scale_from_slider_position(position, min_scale, max_scale);
    set_zoom(root, scale, animate);
}

var set_zoom = function(root, scale, animate) {
    var min_scale = root.data("min_scale"),
        max_scale = root.data("max_scale"),
        old_scale = root.data("scale");
    var new_scale = Math.max(min_scale, Math.min(scale, max_scale));
    if (animate) {
        Snap.animate(
            old_scale,
            new_scale,
            function (new_scale) {
                update_plot_scale(root, new_scale);
            },
            200);
    } else {
        update_plot_scale(root, new_scale);
    }
}


var update_plot_scale = function(root, new_scale) {
    var trans = scale_centered_translation(root, new_scale);
    set_plot_pan_zoom(root, trans.x, trans.y, new_scale);

    root.selectAll(".zoomslider_thumb")
        .forEach(function (element, i) {
            var min_pos = element.data("min_pos"),
                max_pos = element.data("max_pos"),
                min_scale = root.data("min_scale"),
                max_scale = root.data("max_scale");
            var xmid = (min_pos + max_pos) / 2;
            var xpos = slider_position_from_scale(new_scale, min_scale, max_scale);
            element.transform(new Snap.Matrix().translate(
                Math.max(min_pos, Math.min(
                         max_pos, min_pos + (max_pos - min_pos) * xpos)) - xmid, 0));
    });
};


Gadfly.zoomslider_thumb_dragmove = function(dx, dy, x, y, event) {
    var root = this.plotroot();
    var min_pos = this.data("min_pos"),
        max_pos = this.data("max_pos"),
        min_scale = root.data("min_scale"),
        max_scale = root.data("max_scale"),
        old_scale = root.data("old_scale");

    var px_per_mm = root.data("px_per_mm");
    dx /= px_per_mm;
    dy /= px_per_mm;

    var xmid = (min_pos + max_pos) / 2;
    var xpos = slider_position_from_scale(old_scale, min_scale, max_scale) +
                   dx / (max_pos - min_pos);

    // compute the new scale
    var new_scale = scale_from_slider_position(xpos, min_scale, max_scale);
    new_scale = Math.min(max_scale, Math.max(min_scale, new_scale));

    update_plot_scale(root, new_scale);
    event.stopPropagation();
};


Gadfly.zoomslider_thumb_dragstart = function(x, y, event) {
    this.animate({fill: this.data("mouseover_color")}, 100);
    var root = this.plotroot();

    // keep track of what the scale was when we started dragging
    root.data("old_scale", root.data("scale"));
    event.stopPropagation();
};


Gadfly.zoomslider_thumb_dragend = function(event) {
    this.animate({fill: this.data("mouseout_color")}, 100);
    event.stopPropagation();
};


var toggle_color_class = function(root, color_class, ison) {
    var guides = root.selectAll(".guide." + color_class + ",.guide ." + color_class);
    var geoms = root.selectAll(".geometry." + color_class + ",.geometry ." + color_class);
    if (ison) {
        guides.animate({opacity: 0.5}, 250);
        geoms.animate({opacity: 0.0}, 250);
    } else {
        guides.animate({opacity: 1.0}, 250);
        geoms.animate({opacity: 1.0}, 250);
    }
};


Gadfly.colorkey_swatch_click = function(event) {
    var root = this.plotroot();
    var color_class = this.data("color_class");

    if (event.shiftKey) {
        root.selectAll(".colorkey text")
            .forEach(function (element) {
                var other_color_class = element.data("color_class");
                if (other_color_class != color_class) {
                    toggle_color_class(root, other_color_class,
                                       element.attr("opacity") == 1.0);
                }
            });
    } else {
        toggle_color_class(root, color_class, this.attr("opacity") == 1.0);
    }
};


return Gadfly;

}));


//@ sourceURL=gadfly.js

(function (glob, factory) {
    // AMD support
      if (typeof require === "function" &amp;&amp; typeof define === "function" &amp;&amp; define.amd) {
        require(["Snap.svg", "Gadfly"], function (Snap, Gadfly) {
            factory(Snap, Gadfly);
        });
      } else {
          factory(glob.Snap, glob.Gadfly);
      }
})(window, function (Snap, Gadfly) {
    var fig = Snap("#fig-3a6dd25ad25c4037a166889ee51bb151");
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-8")
   .init_gadfly();
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-11")
   .plotroot().data("unfocused_ygrid_color", "#D0D0E0")
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-11")
   .plotroot().data("focused_ygrid_color", "#A0A0A0")
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-12")
   .plotroot().data("unfocused_xgrid_color", "#D0D0E0")
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-12")
   .plotroot().data("focused_xgrid_color", "#A0A0A0")
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-16")
   .data("mouseover_color", "#CD5C5C")
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-16")
   .data("mouseout_color", "#6A6A6A")
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-16")
   .click(Gadfly.zoomslider_zoomin_click)
.mouseenter(Gadfly.zoomslider_button_mouseover)
.mouseleave(Gadfly.zoomslider_button_mouseout)
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-18")
   .data("max_pos", 111.58)
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-18")
   .data("min_pos", 94.58)
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-18")
   .click(Gadfly.zoomslider_track_click);
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-19")
   .data("max_pos", 111.58)
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-19")
   .data("min_pos", 94.58)
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-19")
   .data("mouseover_color", "#CD5C5C")
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-19")
   .data("mouseout_color", "#6A6A6A")
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-19")
   .drag(Gadfly.zoomslider_thumb_dragmove,
     Gadfly.zoomslider_thumb_dragstart,
     Gadfly.zoomslider_thumb_dragend)
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-20")
   .data("mouseover_color", "#CD5C5C")
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-20")
   .data("mouseout_color", "#6A6A6A")
;
fig.select("#fig-3a6dd25ad25c4037a166889ee51bb151-element-20")
   .click(Gadfly.zoomslider_zoomout_click)
.mouseenter(Gadfly.zoomslider_button_mouseover)
.mouseleave(Gadfly.zoomslider_button_mouseout)
;
    });
]]&gt; &lt;/script&gt;
&lt;/svg&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h3 id="Computing-the-term-structure"&gt;Computing the term structure&lt;a class="anchor-link" href="#Computing-the-term-structure"&gt;&amp;#182;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Now that we've got the basic motion set up, let's start making things a bit more sophisticated for the model. We're going to assume that the drift of the stock is the difference between the implied forward rate and the quarterly dividend rate.&lt;/p&gt;
&lt;p&gt;We're given the yearly term structure, and need to calculate the quarterly forward rate to match this structure. The term structure is assumed to follow:&lt;/p&gt;
&lt;p&gt;$d(0, t) = d(0,t-1)\cdot f_{i-1, i}$&lt;/p&gt;
&lt;p&gt;Where $f_{i-1, i}$ is the quarterly forward rate.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[5]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;forward_term&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;yearly_term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c"&gt;# It is assumed that we have a yearly term structure passed in, and starts at year 0&lt;/span&gt;
    &lt;span class="c"&gt;# This implies a nominal rate above 0 for the first year!&lt;/span&gt;
    &lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="c"&gt;# because we start at 0&lt;/span&gt;
    &lt;span class="n"&gt;structure&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[(&lt;/span&gt;&lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h3 id="Illustrating-the-term-structure"&gt;Illustrating the term structure&lt;a class="anchor-link" href="#Illustrating-the-term-structure"&gt;&amp;#182;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Now that we've got our term structure, let's validate that we're getting the correct results! If we've done this correctly, then:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;term[2] == term[1] * structure[1]&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[6]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="c"&gt;# Example term structure taken from:&lt;/span&gt;
&lt;span class="c"&gt;# http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx?data=yield&lt;/span&gt;
&lt;span class="c"&gt;# Linear interpolation used years in-between periods, assuming real-dollar&lt;/span&gt;
&lt;span class="c"&gt;# interest rates&lt;/span&gt;
&lt;span class="n"&gt;forward_yield&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;forward_term&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;calculated_term2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;forward_yield&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Actual term[2]: &lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;(term[2]); Calculated term[2]: &lt;/span&gt;&lt;span class="si"&gt;$(calculated_term2)&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;
&lt;div class="output_subarea output_stream output_stdout output_text"&gt;
&lt;pre&gt;Actual term[2]: 1.0049; Calculated term[2]: 1.0049
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h3 id="The-full-underlying-simulation"&gt;The full underlying simulation&lt;a class="anchor-link" href="#The-full-underlying-simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Now that we have the term structure set up, we can actually start doing some real simulation! Let's construct some paths through the full 5-year time frame. In order to do this, we will simulate 1 year at a time, and use the forward rates at those times to compute the drift. Thus, there will be 5 total simulations batched together.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[7]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;full_motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ones&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt;
&lt;span class="n"&gt;full_term&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;vcat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;forward_yield&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;T&lt;/span&gt;
    &lt;span class="n"&gt;μ&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;full_term&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;year_motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;simulate_gbm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;full_motion&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;μ&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;σ&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;full_motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hcat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;full_motion&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_motion&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;display_motion&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;full_motion&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt output_prompt"&gt;Out[7]:&lt;/div&gt;

&lt;div class="output_html rendered_html output_subarea output_execute_result"&gt;
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:gadfly="http://www.gadflyjl.org/ns"
     version="1.2"
     width="141.42mm" height="100mm" viewBox="0 0 141.42 100"
     stroke="none"
     fill="#000000"
     stroke-width="0.3"
     font-size="3.88"

     id="fig-0378e04b897742b597befd2e8e1c169e"&gt;
&lt;g class="plotroot xscalable yscalable" id="fig-0378e04b897742b597befd2e8e1c169e-element-1"&gt;
  &lt;g font-size="3.88" font-family="'PT Sans','Helvetica Neue','Helvetica',sans-serif" fill="#564A55" stroke="#000000" stroke-opacity="0.000" id="fig-0378e04b897742b597befd2e8e1c169e-element-2"&gt;
    &lt;text x="73.61" y="88.39" text-anchor="middle" dy="0.6em"&gt;Years&lt;/text&gt;
  &lt;/g&gt;
  &lt;g class="guide colorkey" id="fig-0378e04b897742b597befd2e8e1c169e-element-3"&gt;
    &lt;g font-size="2.82" font-family="'PT Sans','Helvetica Neue','Helvetica',sans-serif" fill="#4C404B" id="fig-0378e04b897742b597befd2e8e1c169e-element-4"&gt;
      &lt;text x="131.9" y="66.46" dy="0.35em"&gt;1&lt;/text&gt;
      &lt;text x="131.9" y="39.15" dy="0.35em"&gt;5&lt;/text&gt;
      &lt;text x="131.9" y="59.63" dy="0.35em"&gt;2&lt;/text&gt;
      &lt;text x="131.9" y="52.81" dy="0.35em"&gt;3&lt;/text&gt;
      &lt;text x="131.9" y="45.98" dy="0.35em"&gt;4&lt;/text&gt;
    &lt;/g&gt;
    &lt;g shape-rendering="crispEdges" stroke="#000000" stroke-opacity="0.000" id="fig-0378e04b897742b597befd2e8e1c169e-element-5"&gt;
      &lt;rect x="129.58" y="65.78" width="1.31" height="0.68" fill="#004D84"/&gt;
      &lt;rect x="129.58" y="65.1" width="1.31" height="0.68" fill="#005B8D"/&gt;
      &lt;rect x="129.58" y="64.41" width="1.31" height="0.68" fill="#006995"/&gt;
      &lt;rect x="129.58" y="63.73" width="1.31" height="0.68" fill="#00769D"/&gt;
      &lt;rect x="129.58" y="63.05" width="1.31" height="0.68" fill="#0083A3"/&gt;
      &lt;rect x="129.58" y="62.36" width="1.31" height="0.68" fill="#278FA9"/&gt;
      &lt;rect x="129.58" y="61.68" width="1.31" height="0.68" fill="#409BAF"/&gt;
      &lt;rect x="129.58" y="61" width="1.31" height="0.68" fill="#55A7B5"/&gt;
      &lt;rect x="129.58" y="60.32" width="1.31" height="0.68" fill="#69B2BA"/&gt;
      &lt;rect x="129.58" y="59.63" width="1.31" height="0.68" fill="#7BBCC0"/&gt;
      &lt;rect x="129.58" y="58.95" width="1.31" height="0.68" fill="#8DC6C5"/&gt;
      &lt;rect x="129.58" y="58.27" width="1.31" height="0.68" fill="#9ED0CB"/&gt;
      &lt;rect x="129.58" y="57.59" width="1.31" height="0.68" fill="#A5CFC7"/&gt;
      &lt;rect x="129.58" y="56.9" width="1.31" height="0.68" fill="#ABCEC4"/&gt;
      &lt;rect x="129.58" y="56.22" width="1.31" height="0.68" fill="#B1CCC2"/&gt;
      &lt;rect x="129.58" y="55.54" width="1.31" height="0.68" fill="#B5CCC1"/&gt;
      &lt;rect x="129.58" y="54.85" width="1.31" height="0.68" fill="#B7CBBF"/&gt;
      &lt;rect x="129.58" y="54.17" width="1.31" height="0.68" fill="#B9CBBD"/&gt;
      &lt;rect x="129.58" y="53.49" width="1.31" height="0.68" fill="#BBCBBB"/&gt;
      &lt;rect x="129.58" y="52.81" width="1.31" height="0.68" fill="#BDCABA"/&gt;
      &lt;rect x="129.58" y="52.12" width="1.31" height="0.68" fill="#BFCAB8"/&gt;
      &lt;rect x="129.58" y="51.44" width="1.31" height="0.68" fill="#C2C9B7"/&gt;
      &lt;rect x="129.58" y="50.76" width="1.31" height="0.68" fill="#C4C9B6"/&gt;
      &lt;rect x="129.58" y="50.07" width="1.31" height="0.68" fill="#C6C8B5"/&gt;
      &lt;rect x="129.58" y="49.39" width="1.31" height="0.68" fill="#C9C7B4"/&gt;
      &lt;rect x="129.58" y="48.71" width="1.31" height="0.68" fill="#CCC7B2"/&gt;
      &lt;rect x="129.58" y="48.03" width="1.31" height="0.68" fill="#CFC6AE"/&gt;
      &lt;rect x="129.58" y="47.34" width="1.31" height="0.68" fill="#D4C5AA"/&gt;
      &lt;rect x="129.58" y="46.66" width="1.31" height="0.68" fill="#D8C3A6"/&gt;
      &lt;rect x="129.58" y="45.98" width="1.31" height="0.68" fill="#D3B79A"/&gt;
      &lt;rect x="129.58" y="45.3" width="1.31" height="0.68" fill="#CDAB8E"/&gt;
      &lt;rect x="129.58" y="44.61" width="1.31" height="0.68" fill="#C89E82"/&gt;
      &lt;rect x="129.58" y="43.93" width="1.31" height="0.68" fill="#C19177"/&gt;
      &lt;rect x="129.58" y="43.25" width="1.31" height="0.68" fill="#BA836C"/&gt;
      &lt;rect x="129.58" y="42.56" width="1.31" height="0.68" fill="#B27563"/&gt;
      &lt;rect x="129.58" y="41.88" width="1.31" height="0.68" fill="#AA665A"/&gt;
      &lt;rect x="129.58" y="41.2" width="1.31" height="0.68" fill="#A05752"/&gt;
      &lt;rect x="129.58" y="40.52" width="1.31" height="0.68" fill="#96484A"/&gt;
      &lt;rect x="129.58" y="39.83" width="1.31" height="0.68" fill="#8B3844"/&gt;
      &lt;rect x="129.58" y="39.15" width="1.31" height="0.68" fill="#7E273E"/&gt;
      &lt;g stroke="#FFFFFF" stroke-width="0.2" id="fig-0378e04b897742b597befd2e8e1c169e-element-6"&gt;
        &lt;path fill="none" d="M129.58,66.46 L 130.9 66.46"/&gt;
        &lt;path fill="none" d="M129.58,39.15 L 130.9 39.15"/&gt;
        &lt;path fill="none" d="M129.58,59.63 L 130.9 59.63"/&gt;
        &lt;path fill="none" d="M129.58,52.81 L 130.9 52.81"/&gt;
        &lt;path fill="none" d="M129.58,45.98 L 130.9 45.98"/&gt;
      &lt;/g&gt;
    &lt;/g&gt;
    &lt;g fill="#362A35" font-size="3.88" font-family="'PT Sans','Helvetica Neue','Helvetica',sans-serif" stroke="#000000" stroke-opacity="0.000" id="fig-0378e04b897742b597befd2e8e1c169e-element-7"&gt;
      &lt;text x="129.58" y="35.15"&gt;Color&lt;/text&gt;
    &lt;/g&gt;
  &lt;/g&gt;
  &lt;g clip-path="url(#fig-0378e04b897742b597befd2e8e1c169e-element-9)" id="fig-0378e04b897742b597befd2e8e1c169e-element-8"&gt;
    &lt;g pointer-events="visible" opacity="1" fill="#000000" fill-opacity="0.000" stroke="#000000" stroke-opacity="0.000" class="guide background" id="fig-0378e04b897742b597befd2e8e1c169e-element-10"&gt;
      &lt;rect x="19.63" y="5" width="107.95" height="80.39"/&gt;
    &lt;/g&gt;
    &lt;g class="guide ygridlines xfixed" stroke-dasharray="0.5,0.5" stroke-width="0.2" stroke="#D0D0E0" id="fig-0378e04b897742b597befd2e8e1c169e-element-11"&gt;
      &lt;path fill="none" d="M19.63,178.87 L 127.58 178.87" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,159.78 L 127.58 159.78" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,140.68 L 127.58 140.68" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,121.58 L 127.58 121.58" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,102.49 L 127.58 102.49" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,83.39 L 127.58 83.39" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,64.29 L 127.58 64.29" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,45.19 L 127.58 45.19" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,26.1 L 127.58 26.1" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,7 L 127.58 7" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-12.1 L 127.58 -12.1" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-31.19 L 127.58 -31.19" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-50.29 L 127.58 -50.29" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-69.39 L 127.58 -69.39" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,-88.49 L 127.58 -88.49" visibility="hidden" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M19.63,159.78 L 127.58 159.78" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,155.96 L 127.58 155.96" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,152.14 L 127.58 152.14" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,148.32 L 127.58 148.32" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,144.5 L 127.58 144.5" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,140.68 L 127.58 140.68" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,136.86 L 127.58 136.86" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,133.04 L 127.58 133.04" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,129.22 L 127.58 129.22" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,125.4 L 127.58 125.4" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,121.58 L 127.58 121.58" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,117.76 L 127.58 117.76" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,113.94 L 127.58 113.94" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,110.12 L 127.58 110.12" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,106.3 L 127.58 106.3" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,102.49 L 127.58 102.49" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,98.67 L 127.58 98.67" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,94.85 L 127.58 94.85" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,91.03 L 127.58 91.03" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,87.21 L 127.58 87.21" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,83.39 L 127.58 83.39" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,79.57 L 127.58 79.57" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,75.75 L 127.58 75.75" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,71.93 L 127.58 71.93" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,68.11 L 127.58 68.11" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,64.29 L 127.58 64.29" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,60.47 L 127.58 60.47" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,56.65 L 127.58 56.65" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,52.83 L 127.58 52.83" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,49.01 L 127.58 49.01" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,45.19 L 127.58 45.19" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,41.37 L 127.58 41.37" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,37.56 L 127.58 37.56" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,33.74 L 127.58 33.74" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,29.92 L 127.58 29.92" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,26.1 L 127.58 26.1" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,22.28 L 127.58 22.28" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,18.46 L 127.58 18.46" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,14.64 L 127.58 14.64" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,10.82 L 127.58 10.82" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,7 L 127.58 7" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,3.18 L 127.58 3.18" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-0.64 L 127.58 -0.64" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-4.46 L 127.58 -4.46" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-8.28 L 127.58 -8.28" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-12.1 L 127.58 -12.1" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-15.92 L 127.58 -15.92" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-19.74 L 127.58 -19.74" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-23.56 L 127.58 -23.56" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-27.37 L 127.58 -27.37" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-31.19 L 127.58 -31.19" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-35.01 L 127.58 -35.01" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-38.83 L 127.58 -38.83" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-42.65 L 127.58 -42.65" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-46.47 L 127.58 -46.47" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-50.29 L 127.58 -50.29" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-54.11 L 127.58 -54.11" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-57.93 L 127.58 -57.93" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-61.75 L 127.58 -61.75" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-65.57 L 127.58 -65.57" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,-69.39 L 127.58 -69.39" visibility="hidden" gadfly:scale="10.0"/&gt;
      &lt;path fill="none" d="M19.63,159.78 L 127.58 159.78" visibility="hidden" gadfly:scale="0.5"/&gt;
      &lt;path fill="none" d="M19.63,83.39 L 127.58 83.39" visibility="hidden" gadfly:scale="0.5"/&gt;
      &lt;path fill="none" d="M19.63,7 L 127.58 7" visibility="hidden" gadfly:scale="0.5"/&gt;
      &lt;path fill="none" d="M19.63,-69.39 L 127.58 -69.39" visibility="hidden" gadfly:scale="0.5"/&gt;
      &lt;path fill="none" d="M19.63,159.78 L 127.58 159.78" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,152.14 L 127.58 152.14" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,144.5 L 127.58 144.5" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,136.86 L 127.58 136.86" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,129.22 L 127.58 129.22" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,121.58 L 127.58 121.58" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,113.94 L 127.58 113.94" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,106.3 L 127.58 106.3" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,98.67 L 127.58 98.67" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,91.03 L 127.58 91.03" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,83.39 L 127.58 83.39" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,75.75 L 127.58 75.75" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,68.11 L 127.58 68.11" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,60.47 L 127.58 60.47" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,52.83 L 127.58 52.83" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,45.19 L 127.58 45.19" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,37.56 L 127.58 37.56" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,29.92 L 127.58 29.92" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,22.28 L 127.58 22.28" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,14.64 L 127.58 14.64" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,7 L 127.58 7" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-0.64 L 127.58 -0.64" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-8.28 L 127.58 -8.28" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-15.92 L 127.58 -15.92" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-23.56 L 127.58 -23.56" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-31.19 L 127.58 -31.19" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-38.83 L 127.58 -38.83" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-46.47 L 127.58 -46.47" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-54.11 L 127.58 -54.11" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-61.75 L 127.58 -61.75" visibility="hidden" gadfly:scale="5.0"/&gt;
      &lt;path fill="none" d="M19.63,-69.39 L 127.58 -69.39" visibility="hidden" gadfly:scale="5.0"/&gt;
    &lt;/g&gt;
    &lt;g class="guide xgridlines yfixed" stroke-dasharray="0.5,0.5" stroke-width="0.2" stroke="#D0D0E0" id="fig-0378e04b897742b597befd2e8e1c169e-element-12"&gt;
      &lt;path fill="none" d="M42.36,5 L 42.36 85.39" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M63.16,5 L 63.16 85.39" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M83.97,5 L 83.97 85.39" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M104.78,5 L 104.78 85.39" visibility="visible" gadfly:scale="1.0"/&gt;
      &lt;path fill="none" d="M125.58,5 L 125.58 85.39" visibility="visible" gadfly:scale="1.0"/&gt;
    &lt;/g&gt;
    &lt;g class="plotpanel" id="fig-0378e04b897742b597befd2e8e1c169e-element-13"&gt;
      &lt;g stroke-width="0.3" fill="#000000" fill-opacity="0.000" stroke-dasharray="none" id="fig-0378e04b897742b597befd2e8e1c169e-element-14"&gt;
        &lt;path fill="none" d="M21.63,44.35 L 21.71 44.35 21.8 43.97 21.88 43.58 21.96 44.11 22.05 44.51 22.13 44.36 22.21 43.9 22.3 44.9 22.38 44.41 22.46 44.06 22.55 43.83 22.63 44.27 22.71 44.77 22.8 44.85 22.88 44.96 22.96 44.81 23.05 45.52 23.13 45.7 23.21 45.09 23.29 45.27 23.38 45.88 23.46 46.09 23.54 46.47 23.63 45.86 23.71 45.27 23.79 45.01 23.88 44.75 23.96 44.61 24.04 44.64 24.13 44.75 24.21 44.8 24.29 45.12 24.38 44.86 24.46 45.63 24.54 45.85 24.63 46.03 24.71 45.9 24.79 45.22 24.88 45.34 24.96 45.71 25.04 45.72 25.12 45.84 25.21 46.02 25.29 45.46 25.37 45.01 25.46 44.94 25.54 45.14 25.62 45.23 25.71 44.89 25.79 45.17 25.87 45.36 25.96 45.31 26.04 45.25 26.12 44.97 26.21 45.44 26.29 45.37 26.37 45.85 26.46 45.95 26.54 45.81 26.62 46.66 26.7 46.33 26.79 46.39 26.87 46.7 26.95 47 27.04 46.99 27.12 46.75 27.2 47.2 27.29 46.74 27.37 46.01 27.45 46.22 27.54 46.23 27.62 46.67 27.7 46.96 27.79 46.84 27.87 46.54 27.95 46.97 28.04 46.9 28.12 46.23 28.2 46.41 28.28 46.65 28.37 46.71 28.45 47.14 28.53 47.66 28.62 48.11 28.7 47.59 28.78 47.41 28.87 48.41 28.95 48.13 29.03 47.9 29.12 48.09 29.2 48.17 29.28 47.97 29.37 47.57 29.45 47.14 29.53 46.76 29.62 46.61 29.7 46.62 29.78 46.66 29.86 47 29.95 47.17 30.03 47.1 30.11 46.91 30.2 46.79 30.28 46.98 30.36 46.7 30.45 47.17 30.53 47.6 30.61 47.96 30.7 47.9 30.78 48.26 30.86 47.59 30.95 48.18 31.03 48.67 31.11 48.73 31.2 49.11 31.28 48.64 31.36 48.45 31.44 48.62 31.53 47.53 31.61 47.57 31.69 47.75 31.78 47.6 31.86 48.03 31.94 48.25 32.03 47.94 32.11 47.49 32.19 47.26 32.28 47.5 32.36 46.5 32.44 46.98 32.53 47.12 32.61 47.21 32.69 46.48 32.78 46.84 32.86 46.26 32.94 46.13 33.02 46.42 33.11 46.52 33.19 46.21 33.27 46.21 33.36 46.47 33.44 46.19 33.52 46.73 33.61 46.83 33.69 46.24 33.77 46.19 33.86 46.28 33.94 45.67 34.02 45.44 34.11 45.7 34.19 46.32 34.27 46.22 34.36 46.7 34.44 46.73 34.52 46.75 34.61 46.58 34.69 46.27 34.77 46.63 34.85 46.85 34.94 46.93 35.02 46.92 35.1 47 35.19 46.9 35.27 46.81 35.35 46.38 35.44 47.28 35.52 47.49 35.6 47.21 35.69 46.68 35.77 46.22 35.85 45.89 35.94 46.62 36.02 46.71 36.1 46.25 36.19 45.79 36.27 45.61 36.35 45.49 36.43 45.45 36.52 45.22 36.6 45.45 36.68 45.56 36.77 45.35 36.85 45.08 36.93 45.64 37.02 45.59 37.1 45.77 37.18 45.88 37.27 45.71 37.35 44.95 37.43 45.23 37.52 45.42 37.6 45.06 37.68 44.87 37.77 45.13 37.85 44.41 37.93 44.61 38.01 45.13 38.1 45.39 38.18 45.93 38.26 46.27 38.35 46.88 38.43 46.68 38.51 45.82 38.6 46.26 38.68 45.97 38.76 45.97 38.85 45.64 38.93 45.95 39.01 46.29 39.1 45.72 39.18 46.31 39.26 45.95 39.35 45.72 39.43 45.87 39.51 45.51 39.59 45.51 39.68 45.49 39.76 45.57 39.84 45.61 39.93 45.53 40.01 46.08 40.09 46.51 40.18 45.96 40.26 46.28 40.34 46.4 40.43 46.12 40.51 45.8 40.59 45.74 40.68 45.45 40.76 45.93 40.84 46.22 40.93 46.32 41.01 46.46 41.09 45.84 41.17 45.23 41.26 45.09 41.34 45.12 41.42 45.05 41.51 45.48 41.59 45.05 41.67 45.39 41.76 45.67 41.84 45.79 41.92 45.99 42.01 45.7 42.09 45.7 42.17 45.71 42.26 45.71 42.34 45.44 42.42 44.85 42.51 44.85 42.59 44.54 42.67 44.57 42.75 44.59 42.84 45.09 42.92 44.44 43 44.09 43.09 43.77 43.17 44.55 43.25 44.38 43.34 44.45 43.42 45.04 43.5 44.65 43.59 45.08 43.67 45.04 43.75 45.02 43.84 44.73 43.92 45.41 44 45.24 44.09 44.6 44.17 45.05 44.25 44.61 44.34 45.01 44.42 44.65 44.5 44.89 44.58 44.8 44.67 45.17 44.75 45.64 44.83 45.89 44.92 45.89 45 45.68 45.08 45.77 45.17 46.43 45.25 46.38 45.33 46.6 45.42 45.9 45.5 45.53 45.58 45.44 45.67 45.75 45.75 45.72 45.83 45.78 45.92 45.58 46 45.73 46.08 45.69 46.16 45.63 46.25 45.53 46.33 45.83 46.41 45.85 46.5 45.79 46.58 45.49 46.66 45.56 46.75 46 46.83 46.48 46.91 46.49 47 46.63 47.08 46.43 47.16 46.54 47.25 46.97 47.33 47.27 47.41 47.58 47.5 47.65 47.58 47.87 47.66 48.16 47.74 48.78 47.83 48.95 47.91 48.39 47.99 48.37 48.08 48.32 48.16 48.12 48.24 48.85 48.33 49.35 48.41 49.21 48.49 49.42 48.58 48.52 48.66 49.01 48.74 48.52 48.83 48.47 48.91 47.96 48.99 48.08 49.08 48.4 49.16 48.76 49.24 48.42 49.32 48.75 49.41 48.45 49.49 48.66 49.57 48.62 49.66 48.91 49.74 48.76 49.82 48.94 49.91 48.73 49.99 48.62 50.07 49.01 50.16 49 50.24 48.91 50.32 48.95 50.41 49.04 50.49 48.95 50.57 49.49 50.66 49.26 50.74 49.56 50.82 49.17 50.9 49.77 50.99 49.54 51.07 49.74 51.15 49.59 51.24 50.18 51.32 49.54 51.4 49.89 51.49 50.23 51.57 50.59 51.65 50.41 51.74 50.4 51.82 50.51 51.9 50.73 51.99 50.74 52.07 50.04 52.15 49.85 52.24 49.84 52.32 49.95 52.4 50.05 52.48 50.22 52.57 49.87 52.65 49.73 52.73 49.64 52.82 49.88 52.9 50.1 52.98 49.98 53.07 49.75 53.15 49.79 53.23 49.63 53.32 49.92 53.4 50.09 53.48 50.2 53.57 49.98 53.65 50.25 53.73 50.58 53.82 50.69 53.9 50.32 53.98 50.63 54.07 50.94 54.15 50.59 54.23 49.84 54.31 50.17 54.4 49.78 54.48 49.69 54.56 49.39 54.65 49.71 54.73 50.15 54.81 50.1 54.9 49.38 54.98 49.06 55.06 48.86 55.15 48.22 55.23 47.92 55.31 48.48 55.4 48.24 55.48 47.92 55.56 48.48 55.65 49.12 55.73 49 55.81 48.94 55.89 49.34 55.98 49.5 56.06 49.21 56.14 49.49 56.23 49.39 56.31 49.13 56.39 49.77 56.48 49.82 56.56 50.16 56.64 50.32 56.73 50.13 56.81 50.06 56.89 50.43 56.98 50.69 57.06 50.37 57.14 50.35 57.23 50.6 57.31 50.4 57.39 49.85 57.47 50.42 57.56 50.17 57.64 49.95 57.72 49.72 57.81 49.37 57.89 49.4 57.97 49.37 58.06 49.95 58.14 50.15 58.22 50.35 58.31 51.12 58.39 51.29 58.47 51.56 58.56 51.37 58.64 51.11 58.72 50.8 58.81 50.97 58.89 51.2 58.97 50.56 59.05 50.28 59.14 50.07 59.22 49.53 59.3 49.68 59.39 50.13 59.47 50.17 59.55 50.38 59.64 50.03 59.72 49.93 59.8 50.02 59.89 50.15 59.97 49.8 60.05 49.87 60.14 50.34 60.22 50.55 60.3 50.15 60.39 49.7 60.47 50.15 60.55 50.01 60.63 50.09 60.72 50.42 60.8 51.05 60.88 50.65 60.97 50.54 61.05 50.34 61.13 49.99 61.22 50.81 61.3 51.28 61.38 51.43 61.47 51.12 61.55 51.82 61.63 52.12 61.72 52.25 61.8 52.34 61.88 52.54 61.97 52.69 62.05 52.91 62.13 52.61 62.21 52.6 62.3 52.67 62.38 52.36 62.46 52.21 62.55 52.63 62.63 52.54 62.71 52.41 62.8 52.17 62.88 52.73 62.96 53.01 63.05 53.27 63.13 53.62 63.21 53.69 63.3 53.69 63.38 53.32 63.46 53.6 63.55 53.62 63.63 53.23 63.71 53.61 63.8 53.73 63.88 53.44 63.96 54.18 64.04 54.35 64.13 54.46 64.21 54.29 64.29 54.8 64.38 54.88 64.46 55.14 64.54 55.43 64.63 55.47 64.71 55.06 64.79 55.34 64.88 55.48 64.96 55.26 65.04 55.73 65.13 56.1 65.21 55.81 65.29 55.75 65.38 55.87 65.46 56.23 65.54 56.05 65.62 55.99 65.71 56.05 65.79 55.82 65.87 56.1 65.96 55.77 66.04 55.79 66.12 55.55 66.21 54.92 66.29 55.03 66.37 54.91 66.46 54.69 66.54 54.71 66.62 55.09 66.71 54.68 66.79 54.89 66.87 55.12 66.96 54.85 67.04 54.78 67.12 55.03 67.2 55.32 67.29 55.12 67.37 55.3 67.45 55.21 67.54 55.22 67.62 55.36 67.7 55.66 67.79 55.88 67.87 55.92 67.95 55.77 68.04 55.67 68.12 55.65 68.2 55.65 68.29 55.41 68.37 55.42 68.45 55.01 68.54 55.29 68.62 55.31 68.7 55.4 68.78 55.81 68.87 56.29 68.95 56.11 69.03 56.03 69.12 55.6 69.2 55.84 69.28 55.43 69.37 54.98 69.45 54.98 69.53 55.33 69.62 55.69 69.7 55.65 69.78 55.68 69.87 55.45 69.95 55.4 70.03 55.17 70.12 55.66 70.2 55.63 70.28 55.92 70.36 56.08 70.45 55.94 70.53 55.77 70.61 55.74 70.7 55.89 70.78 56.47 70.86 56.51 70.95 56.24 71.03 56.82 71.11 56.66 71.2 56.55 71.28 56.54 71.36 56.58 71.45 56.56 71.53 56.57 71.61 56.9 71.7 57.15 71.78 56.81 71.86 57.03 71.94 56.92 72.03 57.29 72.11 57.37 72.19 57.63 72.28 57.76 72.36 57.79 72.44 57.66 72.53 57.32 72.61 57.06 72.69 57.18 72.78 57.72 72.86 57.78 72.94 57.45 73.03 58.11 73.11 57.56 73.19 57.32 73.28 57.47 73.36 57.34 73.44 57.7 73.53 57.55 73.61 57.79 73.69 57.91 73.77 57.79 73.86 57.71 73.94 58.01 74.02 57.94 74.11 58.06 74.19 58.03 74.27 58.19 74.36 57.99 74.44 58.36 74.52 58.65 74.61 58.83 74.69 59.07 74.77 59.17 74.86 59.1 74.94 59.49 75.02 59.24 75.11 59.13 75.19 59.08 75.27 59.15 75.35 59.1 75.44 59.55 75.52 59.66 75.6 60.06 75.69 60.29 75.77 60.69 75.85 60.69 75.94 60.9 76.02 60.93 76.1 60.91 76.19 61.16 76.27 61.59 76.35 61.78 76.44 61.55 76.52 61.76 76.6 61.53 76.69 61.46 76.77 61.71 76.85 61.26 76.93 60.83 77.02 60.85 77.1 60.86 77.18 61.12 77.27 61.33 77.35 61.46 77.43 61.45 77.52 61.59 77.6 61.87 77.68 61.74 77.77 61.99 77.85 62.02 77.93 62.44 78.02 62.41 78.1 62.4 78.18 62.18 78.27 61.81 78.35 61.83 78.43 61.71 78.51 61.35 78.6 61.5 78.68 61.5 78.76 61.58 78.85 61.59 78.93 61.39 79.01 61.2 79.1 61.43 79.18 61.63 79.26 61.71 79.35 61.71 79.43 61.67 79.51 61.68 79.6 61.59 79.68 61.17 79.76 61.06 79.85 60.75 79.93 60.56 80.01 60.44 80.09 60.57 80.18 60.65 80.26 60.74 80.34 60.61 80.43 60.6 80.51 60.58 80.59 60.6 80.68 60.87 80.76 60.59 80.84 60.41 80.93 60.36 81.01 60.51 81.09 60.45 81.18 60.61 81.26 60.49 81.34 60.25 81.43 60.64 81.51 60.25 81.59 60.29 81.67 60.06 81.76 60.04 81.84 60.24 81.92 60.09 82.01 60.52 82.09 60.57 82.17 60.88 82.26 60.82 82.34 60.95 82.42 60.98 82.51 61.19 82.59 61.22 82.67 61.27 82.76 61.54 82.84 61.5 82.92 62.02 83.01 62.11 83.09 62.01 83.17 62.04 83.26 62.14 83.34 61.94 83.42 62.12 83.5 62.23 83.59 62.14 83.67 62.15 83.75 61.99 83.84 62.04 83.92 61.93 84 61.84 84.09 61.84 84.17 61.59 84.25 61.58 84.34 61.6 84.42 61.53 84.5 61.37 84.59 61.46 84.67 61.15 84.75 61.14 84.84 61.2 84.92 60.87 85 61.12 85.08 61.09 85.17 60.74 85.25 60.58 85.33 60.89 85.42 60.99 85.5 61.05 85.58 60.67 85.67 60.74 85.75 60.51 85.83 60.2 85.92 60.55 86 60.1 86.08 60.14 86.17 60.11 86.25 59.92 86.33 59.88 86.42 59.74 86.5 59.76 86.58 59.79 86.66 59.71 86.75 59.6 86.83 59.64 86.91 59.66 87 59.88 87.08 59.8 87.16 59.63 87.25 59.91 87.33 59.74 87.41 59.96 87.5 60.19 87.58 60.24 87.66 60.39 87.75 60.37 87.83 60.56 87.91 60.48 88 60.85 88.08 60.73 88.16 60.37 88.24 60.2 88.33 60.71 88.41 60.87 88.49 60.99 88.58 60.99 88.66 60.83 88.74 60.61 88.83 60.72 88.91 60.79 88.99 60.71 89.08 60.9 89.16 61 89.24 61.03 89.33 60.95 89.41 60.93 89.49 60.75 89.58 60.8 89.66 60.86 89.74 60.6 89.82 60.35 89.91 60.06 89.99 60.25 90.07 60.84 90.16 60.6 90.24 60.64 90.32 60.33 90.41 60.62 90.49 60.76 90.57 60.62 90.66 60.77 90.74 60.51 90.82 60.6 90.91 60.7 90.99 60.63 91.07 60.45 91.16 60.68 91.24 61.03 91.32 61.17 91.4 61.14 91.49 60.76 91.57 60.75 91.65 61.04 91.74 60.63 91.82 60.6 91.9 60.79 91.99 60.84 92.07 61.06 92.15 60.99 92.24 60.99 92.32 61.02 92.4 61.31 92.49 61.25 92.57 61.39 92.65 61.22 92.74 60.98 92.82 61.17 92.9 61.21 92.99 61.16 93.07 61.19 93.15 61.27 93.23 61.52 93.32 61.23 93.4 61.15 93.48 61.16 93.57 61.55 93.65 61.64 93.73 61.5 93.82 61.28 93.9 61.35 93.98 61.28 94.07 61.15 94.15 61.23 94.23 61.56 94.32 61.28 94.4 61.25 94.48 61.39 94.57 61.22 94.65 61.14 94.73 61.39 94.81 61.5 94.9 61.42 94.98 61.25 95.06 60.95 95.15 61.06 95.23 60.93 95.31 60.92 95.4 61.05 95.48 60.9 95.56 60.57 95.65 60.1 95.73 59.62 95.81 59.72 95.9 59.85 95.98 59.93 96.06 60.07 96.15 60.14 96.23 60.32 96.31 60.4 96.39 60.54 96.48 60.69 96.56 60.76 96.64 61.17 96.73 61.2 96.81 61.41 96.89 61.5 96.98 61.69 97.06 61.51 97.14 61.5 97.23 61.65 97.31 61.74 97.39 61.47 97.48 61.73 97.56 61.64 97.64 61.29 97.73 61.85 97.81 61.98 97.89 62.33 97.97 62.12 98.06 62.21 98.14 61.92 98.22 62.26 98.31 62.04 98.39 61.79 98.47 61.7 98.56 61.42 98.64 61.23 98.72 61.04 98.81 61.24 98.89 61.53 98.97 61.29 99.06 61.11 99.14 61.12 99.22 60.81 99.31 61.14 99.39 61.31 99.47 61.38 99.55 60.9 99.64 61.02 99.72 60.64 99.8 60.71 99.89 60.66 99.97 60.46 100.05 60.79 100.14 60.81 100.22 60.43 100.3 60.53 100.39 60.63 100.47 61.06 100.55 60.98 100.64 60.73 100.72 60.43 100.8 60.67 100.89 60.52 100.97 60.74 101.05 60.59 101.13 60.37 101.22 60.33 101.3 60.02 101.38 59.79 101.47 59.67 101.55 59.6 101.63 59.57 101.72 59.2 101.8 59.35 101.88 59.26 101.97 59.17 102.05 59.1 102.13 59.76 102.22 59.97 102.3 60.2 102.38 59.94 102.47 59.79 102.55 59.81 102.63 59.96 102.72 59.93 102.8 60.24 102.88 59.79 102.96 59.5 103.05 59.82 103.13 59.71 103.21 59.38 103.3 59.55 103.38 59.31 103.46 58.44 103.55 58.32 103.63 57.92 103.71 58.29 103.8 58.49 103.88 58.4 103.96 58.08 104.05 58.17 104.13 58.51 104.21 58.27 104.3 58.54 104.38 58.16 104.46 58.38 104.54 58.51 104.63 58.58 104.71 58.46 104.79 58.09 104.88 58.09 104.96 57.7 105.04 57.43 105.13 57.61 105.21 57.36 105.29 57.55 105.38 57.27 105.46 57.46 105.54 57.67 105.63 57.61 105.71 57.6 105.79 57.05 105.88 57.09 105.96 57.35 106.04 57.34 106.12 57.5 106.21 57.6 106.29 57.29 106.37 57.14 106.46 57.56 106.54 57.32 106.62 57.2 106.71 57 106.79 56.59 106.87 56.81 106.96 56.27 107.04 56.2 107.12 56.64 107.21 56.64 107.29 56.69 107.37 56.77 107.46 56.25 107.54 56.28 107.62 56.13 107.7 56.03 107.79 55.85 107.87 55.51 107.95 55.35 108.04 55.06 108.12 55.27 108.2 55.28 108.29 54.94 108.37 54.48 108.45 54.41 108.54 53.92 108.62 54 108.7 54.41 108.79 54.67 108.87 54.35 108.95 54.36 109.04 54.37 109.12 54.18 109.2 54.49 109.28 54.84 109.37 54.66 109.45 54.99 109.53 55.02 109.62 55.39 109.7 55.41 109.78 56.03 109.87 56.07 109.95 56.03 110.03 56.13 110.12 55.86 110.2 55.26 110.28 55.27 110.37 55.07 110.45 54.62 110.53 54.77 110.62 54.91 110.7 55.02 110.78 55.1 110.86 55.14 110.95 55.64 111.03 55.3 111.11 55.01 111.2 54.88 111.28 55 111.36 55.31 111.45 55.35 111.53 55.47 111.61 55.88 111.7 55.73 111.78 55.77 111.86 55.96 111.95 56.17 112.03 55.96 112.11 56.41 112.2 56.03 112.28 55.81 112.36 55.28 112.45 55.76 112.53 56.06 112.61 56.16 112.69 56.09 112.78 56.29 112.86 56.26 112.94 56.13 113.03 56.08 113.11 56.07 113.19 56.01 113.28 55.97 113.36 56.47 113.44 56.67 113.53 56.78 113.61 56.98 113.69 56.93 113.78 56.94 113.86 57.2 113.94 57 114.03 57.2 114.11 57.77 114.19 58.01 114.27 58.13 114.36 57.78 114.44 57.56 114.52 57.5 114.61 58.07 114.69 57.83 114.77 57.88 114.86 57.42 114.94 57.43 115.02 57.69 115.11 57.4 115.19 57.12 115.27 56.72 115.36 56.33 115.44 56.84 115.52 56.7 115.61 56.24 115.69 56.02 115.77 55.97 115.85 55.91 115.94 55.66 116.02 55.49 116.1 55.56 116.19 55.74 116.27 55.53 116.35 55.62 116.44 55.57 116.52 55.5 116.6 55.46 116.69 55.23 116.77 55.72 116.85 55.54 116.94 55.83 117.02 56.07 117.1 55.99 117.19 55.7 117.27 55.82 117.35 55.8 117.43 55.87 117.52 56.05 117.6 56.35 117.68 56.46 117.77 56.08 117.85 56.27 117.93 56.79 118.02 56.87 118.1 57 118.18 56.77 118.27 56.7 118.35 56.77 118.43 56.4 118.52 56.2 118.6 56.02 118.68 56.1 118.77 56.17 118.85 56.23 118.93 56.16 119.01 56.53 119.1 56.65 119.18 57 119.26 57.27 119.35 57.4 119.43 57.52 119.51 57.72 119.6 57.62 119.68 57.31 119.76 57 119.85 57.33 119.93 57.16 120.01 57.13 120.1 56.81 120.18 56.92 120.26 56.77 120.35 56.48 120.43 56.14 120.51 56.23 120.59 55.89 120.68 55.94 120.76 56.22 120.84 56.42 120.93 56.75 121.01 56.56 121.09 56.66 121.18 56.6 121.26 56.71 121.34 56.54 121.43 56.67 121.51 57.05 121.59 56.91 121.68 56.59 121.76 56.18 121.84 56.04 121.93 56.22 122.01 55.95 122.09 55.8 122.18 55.66 122.26 55.75 122.34 55.87 122.42 55.9 122.51 55.94 122.59 56.12 122.67 55.9 122.76 55.87 122.84 55.87 122.92 55.54 123.01 55.7 123.09 55.98 123.17 55.96 123.26 55.37 123.34 55.75 123.42 55.57 123.51 55.62 123.59 55.76 123.67 55.33 123.76 54.85 123.84 54.95 123.92 55.16 124 55.23 124.09 55.27 124.17 54.93 124.25 54.79 124.34 54.71 124.42 54.56 124.5 54.32 124.59 54.57 124.67 54.27 124.75 53.94 124.84 53.77 124.92 54.14 125 54.45 125.09 54.65 125.17 54.54 125.25 54 125.34 54.46 125.42 53.95 125.5 54.29 125.58 54.27" class="geometry color_" stroke="#004D84"/&gt;
        &lt;path fill="none" d="M21.63,44.35 L 21.71 44.35 21.8 44.74 21.88 45.14 21.96 45.24 22.05 45.18 22.13 45.09 22.21 45.31 22.3 45.29 22.38 45.45 22.46 45.57 22.55 45.4 22.63 45.56 22.71 45.7 22.8 45.07 22.88 45.15 22.96 45.06 23.05 44.89 23.13 44.84 23.21 44.6 23.29 43.86 23.38 43.07 23.46 43.2 23.54 43.5 23.63 43.42 23.71 44.02 23.79 43.97 23.88 44.62 23.96 43.89 24.04 43.92 24.13 44.59 24.21 44.17 24.29 43.44 24.38 43.63 24.46 43.78 24.54 43.49 24.63 43.6 24.71 43.76 24.79 43.74 24.88 44.13 24.96 44.19 25.04 44.45 25.12 44.49 25.21 44.45 25.29 44.08 25.37 44.61 25.46 44.05 25.54 43.42 25.62 43.22 25.71 43.61 25.79 43.03 25.87 42.75 25.96 42.35 26.04 42.88 26.12 43.25 26.21 43.25 26.29 43.77 26.37 43.71 26.46 43.6 26.54 43.91 26.62 44.39 26.7 44.51 26.79 44.27 26.87 44.41 26.95 44.8 27.04 44.86 27.12 44.75 27.2 44.27 27.29 44.2 27.37 44.31 27.45 44.4 27.54 44.62 27.62 44.4 27.7 44.86 27.79 44.88 27.87 45.08 27.95 45.08 28.04 44.59 28.12 44.93 28.2 45.15 28.28 45.06 28.37 44.52 28.45 44.23 28.53 43.64 28.62 44.31 28.7 44.34 28.78 44.23 28.87 44.38 28.95 43.88 29.03 43.87 29.12 43.53 29.2 43.46 29.28 43.51 29.37 42.7 29.45 43.12 29.53 43.13 29.62 42.93 29.7 43.07 29.78 42.84 29.86 43.1 29.95 42.46 30.03 42.56 30.11 44.06 30.2 43.74 30.28 43.1 30.36 43.03 30.45 43.71 30.53 44.1 30.61 43.78 30.7 43.42 30.78 43.56 30.86 43.74 30.95 43.66 31.03 43.83 31.11 44.76 31.2 45.03 31.28 45.06 31.36 45.03 31.44 45.53 31.53 46.22 31.61 46.72 31.69 46.7 31.78 46.95 31.86 46.89 31.94 46.96 32.03 47.78 32.11 47.52 32.19 47.81 32.28 48.77 32.36 49.04 32.44 49.48 32.53 48.95 32.61 49.13 32.69 49.15 32.78 49.28 32.86 48.56 32.94 48.3 33.02 48.35 33.11 48.41 33.19 48.14 33.27 48.04 33.36 48.31 33.44 48.4 33.52 48.55 33.61 48.49 33.69 49.32 33.77 49.33 33.86 49.01 33.94 49.42 34.02 50.03 34.11 50.43 34.19 51.11 34.27 51.2 34.36 51.23 34.44 51.28 34.52 51.24 34.61 50.93 34.69 50.93 34.77 50.84 34.85 50.33 34.94 49.71 35.02 49.75 35.1 48.82 35.19 48.67 35.27 48.22 35.35 48.13 35.44 48.05 35.52 48.1 35.6 47.92 35.69 48 35.77 48.4 35.85 48.39 35.94 48.48 36.02 48.58 36.1 48.8 36.19 48.6 36.27 49.54 36.35 49.73 36.43 49.4 36.52 49.39 36.6 49.74 36.68 49.69 36.77 49.46 36.85 49.73 36.93 49.53 37.02 50.27 37.1 50.09 37.18 50.45 37.27 50.05 37.35 50.63 37.43 50.97 37.52 50.89 37.6 50.42 37.68 49.71 37.77 50.37 37.85 50.23 37.93 49.71 38.01 49.88 38.1 50.1 38.18 49.88 38.26 50.3 38.35 50.03 38.43 49.98 38.51 49.56 38.6 49.24 38.68 49.2 38.76 49.54 38.85 49.69 38.93 49.32 39.01 48.83 39.1 48.57 39.18 48.69 39.26 48.58 39.35 48.58 39.43 48.74 39.51 48.57 39.59 48.94 39.68 49.11 39.76 49.59 39.84 49.84 39.93 49.62 40.01 50.19 40.09 50 40.18 49.79 40.26 50.15 40.34 50.38 40.43 50.2 40.51 50.19 40.59 50.44 40.68 50.76 40.76 50.74 40.84 50.68 40.93 51.22 41.01 50.92 41.09 50.85 41.17 51.06 41.26 50.84 41.34 51.05 41.42 51.6 41.51 51.73 41.59 52.09 41.67 52.48 41.76 51.83 41.84 52.3 41.92 52.12 42.01 52.26 42.09 52.55 42.17 52.65 42.26 52.49 42.34 52.36 42.42 52.47 42.51 52.47 42.59 51.99 42.67 52.25 42.75 52.2 42.84 51.74 42.92 51.4 43 51.19 43.09 51.35 43.17 51.4 43.25 51.24 43.34 50.99 43.42 51.3 43.5 51.34 43.59 51.58 43.67 51.71 43.75 51.7 43.84 52.02 43.92 52.23 44 51.95 44.09 52.16 44.17 52.09 44.25 51.82 44.34 52.01 44.42 52.29 44.5 52.68 44.58 52.53 44.67 52.5 44.75 52.9 44.83 52.83 44.92 52.74 45 53.01 45.08 53 45.17 52.94 45.25 52.9 45.33 53.14 45.42 53.22 45.5 53.46 45.58 53.13 45.67 53.67 45.75 53.85 45.83 53.91 45.92 54.31 46 54.61 46.08 54.34 46.16 54.17 46.25 53.76 46.33 53.75 46.41 53.61 46.5 53.75 46.58 53.34 46.66 53.68 46.75 53.83 46.83 54.2 46.91 54.54 47 54.62 47.08 54.59 47.16 54.77 47.25 54.62 47.33 54.13 47.41 53.95 47.5 53.9 47.58 53.83 47.66 53.64 47.74 53.84 47.83 53.57 47.91 53.85 47.99 54.17 48.08 54.07 48.16 54.55 48.24 54.36 48.33 53.92 48.41 53.72 48.49 53.8 48.58 54.28 48.66 53.67 48.74 53.8 48.83 53.77 48.91 54.05 48.99 54.09 49.08 54.08 49.16 54.36 49.24 54.58 49.32 54.74 49.41 54.72 49.49 54.45 49.57 54.36 49.66 54.36 49.74 54.61 49.82 54.37 49.91 54.21 49.99 54.12 50.07 54.26 50.16 54.36 50.24 54.28 50.32 54.21 50.41 54.77 50.49 55.17 50.57 54.9 50.66 55.22 50.74 54.64 50.82 54.81 50.9 55.06 50.99 55.46 51.07 55.28 51.15 55.19 51.24 55.34 51.32 55.22 51.4 54.68 51.49 54.23 51.57 54.1 51.65 54.26 51.74 54.27 51.82 54.13 51.9 54.15 51.99 53.95 52.07 54.39 52.15 54.14 52.24 54.32 52.32 54.32 52.4 54.38 52.48 53.85 52.57 53.86 52.65 54.17 52.73 54.52 52.82 54.42 52.9 54.45 52.98 54.66 53.07 54.49 53.15 54.64 53.23 54.95 53.32 55.09 53.4 55.16 53.48 55.28 53.57 55.43 53.65 54.87 53.73 54.74 53.82 54.75 53.9 54.76 53.98 54.88 54.07 54.75 54.15 54.17 54.23 54.07 54.31 54.7 54.4 54.57 54.48 54.33 54.56 55.14 54.65 55.61 54.73 56.13 54.81 55.8 54.9 55.61 54.98 55.7 55.06 55.48 55.15 55.58 55.23 55.9 55.31 55.84 55.4 55.37 55.48 55.2 55.56 55.57 55.65 55.77 55.73 55.7 55.81 55.69 55.89 55.65 55.98 55.64 56.06 55.79 56.14 55.64 56.23 55.22 56.31 55.2 56.39 55.35 56.48 55.3 56.56 55.1 56.64 55.37 56.73 55.28 56.81 55.83 56.89 55.86 56.98 55.61 57.06 55.88 57.14 55.92 57.23 55.85 57.31 55.94 57.39 56.25 57.47 56.26 57.56 56.36 57.64 56.21 57.72 56.07 57.81 56.47 57.89 56.26 57.97 56.01 58.06 55.82 58.14 55.47 58.22 54.89 58.31 55.22 58.39 55.18 58.47 55.01 58.56 54.97 58.64 55.01 58.72 55 58.81 55 58.89 54.48 58.97 54.6 59.05 54.28 59.14 53.95 59.22 53.88 59.3 53.94 59.39 54.17 59.47 53.76 59.55 53.2 59.64 53.37 59.72 53.48 59.8 53.51 59.89 53.67 59.97 53.87 60.05 53.62 60.14 53.41 60.22 53.37 60.3 53.4 60.39 53.59 60.47 53.43 60.55 53.35 60.63 53.71 60.72 53.6 60.8 53.73 60.88 53.96 60.97 54.11 61.05 54.66 61.13 54.38 61.22 53.87 61.3 54.23 61.38 54.23 61.47 54.09 61.55 53.58 61.63 52.99 61.72 52.86 61.8 52.72 61.88 52.73 61.97 52.99 62.05 52.9 62.13 52.68 62.21 52.86 62.3 53.21 62.38 53.48 62.46 52.84 62.55 53.13 62.63 53.17 62.71 53.5 62.8 53.36 62.88 53.46 62.96 53.26 63.05 52.92 63.13 52.65 63.21 52.45 63.3 52.45 63.38 52.77 63.46 53.09 63.55 53.33 63.63 53.4 63.71 52.72 63.8 52.94 63.88 52.88 63.96 53.16 64.04 53.08 64.13 53.27 64.21 52.74 64.29 52.45 64.38 52.02 64.46 51.71 64.54 51.78 64.63 51.46 64.71 51.64 64.79 51.36 64.88 51.34 64.96 51.03 65.04 50.79 65.13 50.75 65.21 50.72 65.29 50.93 65.38 50.81 65.46 51.19 65.54 50.86 65.62 50.53 65.71 50.71 65.79 50.52 65.87 50.62 65.96 50.15 66.04 49.93 66.12 50.49 66.21 50.86 66.29 50.25 66.37 50.51 66.46 50.28 66.54 50.74 66.62 50.58 66.71 50.41 66.79 50.39 66.87 50.66 66.96 50.68 67.04 50.4 67.12 50.75 67.2 50.24 67.29 50.52 67.37 50.63 67.45 50.65 67.54 51.07 67.62 51.1 67.7 51.18 67.79 51.19 67.87 50.93 67.95 51.14 68.04 51.4 68.12 51.18 68.2 50.72 68.29 50.35 68.37 49.82 68.45 49.79 68.54 50 68.62 50.07 68.7 50.31 68.78 50.66 68.87 51.08 68.95 51.17 69.03 51.56 69.12 51.53 69.2 51.77 69.28 51.88 69.37 52.17 69.45 52.4 69.53 52.07 69.62 52.53 69.7 52.54 69.78 51.94 69.87 51.99 69.95 51.95 70.03 52.06 70.12 52.34 70.2 52.67 70.28 52.91 70.36 52.86 70.45 53.3 70.53 53.65 70.61 53.54 70.7 53.74 70.78 53.41 70.86 53.18 70.95 53.18 71.03 52.96 71.11 52.7 71.2 52.6 71.28 52.56 71.36 52.69 71.45 52.79 71.53 52.71 71.61 52.78 71.7 52.81 71.78 52.59 71.86 52.61 71.94 52.26 72.03 52.16 72.11 52.29 72.19 52.26 72.28 51.56 72.36 52.43 72.44 52.62 72.53 52.03 72.61 51.82 72.69 51.99 72.78 52.34 72.86 52.01 72.94 51.78 73.03 51.67 73.11 51.54 73.19 51.52 73.28 51.58 73.36 51.72 73.44 51.76 73.53 51.78 73.61 52.05 73.69 52.47 73.77 52.41 73.86 52.77 73.94 52.35 74.02 52.23 74.11 52.26 74.19 52.49 74.27 52.58 74.36 52.51 74.44 52.6 74.52 52.9 74.61 53.25 74.69 52.96 74.77 53.3 74.86 53.38 74.94 53.53 75.02 53.55 75.11 53.42 75.19 53.38 75.27 53.26 75.35 53.41 75.44 53.76 75.52 53.96 75.6 53.92 75.69 53.65 75.77 53.73 75.85 53.61 75.94 54.28 76.02 54.59 76.1 54.77 76.19 54.54 76.27 54.56 76.35 54.94 76.44 55.15 76.52 55.53 76.6 55.45 76.69 55.48 76.77 55.29 76.85 55.23 76.93 55.37 77.02 55.21 77.1 55.13 77.18 55.35 77.27 55.13 77.35 54.82 77.43 54.99 77.52 54.93 77.6 54.82 77.68 54.84 77.77 54.83 77.85 54.59 77.93 54.49 78.02 54.49 78.1 54.95 78.18 54.93 78.27 55.07 78.35 54.53 78.43 55.06 78.51 55.34 78.6 55.44 78.68 55.29 78.76 55.23 78.85 55.15 78.93 54.98 79.01 54.86 79.1 55.09 79.18 55.4 79.26 55.17 79.35 55.37 79.43 55.67 79.51 56 79.6 56.62 79.68 56.58 79.76 56.69 79.85 56.43 79.93 56.45 80.01 56.45 80.09 56.43 80.18 56.64 80.26 56.83 80.34 56.56 80.43 56.75 80.51 56.55 80.59 56.39 80.68 56.17 80.76 56.37 80.84 56.33 80.93 56.53 81.01 56.66 81.09 56.79 81.18 56.64 81.26 56.28 81.34 56.66 81.43 56.87 81.51 56.76 81.59 56.72 81.67 56.8 81.76 56.86 81.84 57.25 81.92 57.23 82.01 57.13 82.09 57.45 82.17 57.87 82.26 58.31 82.34 58.16 82.42 58.27 82.51 58.13 82.59 58.12 82.67 58.39 82.76 58.72 82.84 58.99 82.92 59.09 83.01 58.98 83.09 58.63 83.17 58.78 83.26 58.77 83.34 58.53 83.42 58.63 83.5 58.85 83.59 59.23 83.67 59.07 83.75 59.01 83.84 59.24 83.92 59.16 84 59.03 84.09 59.03 84.17 59.01 84.25 59.08 84.34 58.79 84.42 58.71 84.5 59.02 84.59 59.03 84.67 59.09 84.75 59.66 84.84 59.58 84.92 59.78 85 59.54 85.08 59.56 85.17 59.41 85.25 59.88 85.33 59.78 85.42 60.08 85.5 60.14 85.58 60.59 85.67 60.9 85.75 60.98 85.83 60.94 85.92 61.49 86 61.2 86.08 61.37 86.17 61.5 86.25 61.79 86.33 61.83 86.42 61.61 86.5 61.68 86.58 61.87 86.66 61.85 86.75 61.99 86.83 62.09 86.91 62.06 87 61.88 87.08 61.55 87.16 61.64 87.25 61.49 87.33 61.42 87.41 61.9 87.5 61.53 87.58 61.58 87.66 61.56 87.75 61.39 87.83 61.2 87.91 61.27 88 61.13 88.08 60.91 88.16 60.59 88.24 60.64 88.33 60.43 88.41 60.55 88.49 60.83 88.58 60.78 88.66 60.47 88.74 60.74 88.83 60.97 88.91 61.23 88.99 61.22 89.08 61.15 89.16 61.06 89.24 61.39 89.33 61.57 89.41 61.54 89.49 61.42 89.58 61.45 89.66 61.4 89.74 61.41 89.82 61.85 89.91 62.35 89.99 62.47 90.07 62.31 90.16 62.16 90.24 61.99 90.32 61.98 90.41 62.11 90.49 62.25 90.57 61.8 90.66 61.75 90.74 61.95 90.82 62.31 90.91 62.41 90.99 62.62 91.07 62.56 91.16 62.68 91.24 62.67 91.32 62.58 91.4 62.75 91.49 62.86 91.57 62.71 91.65 62.61 91.74 62.5 91.82 62.33 91.9 62.35 91.99 62.03 92.07 61.94 92.15 62.04 92.24 62.15 92.32 62.21 92.4 62.48 92.49 62.54 92.57 62.67 92.65 62.69 92.74 62.44 92.82 62.56 92.9 63.03 92.99 62.62 93.07 62.54 93.15 62.79 93.23 63.24 93.32 62.92 93.4 62.68 93.48 62.62 93.57 62.63 93.65 62.44 93.73 62.48 93.82 62.82 93.9 62.85 93.98 62.47 94.07 62.66 94.15 62.16 94.23 61.74 94.32 61.93 94.4 61.77 94.48 61.62 94.57 61.71 94.65 61.8 94.73 61.89 94.81 61.77 94.9 61.8 94.98 61.5 95.06 61.33 95.15 61.31 95.23 60.77 95.31 61.21 95.4 61.03 95.48 60.95 95.56 60.9 95.65 60.64 95.73 60.34 95.81 60.35 95.9 60.43 95.98 60.24 96.06 60.12 96.15 59.71 96.23 59.94 96.31 60.31 96.39 60.33 96.48 60.46 96.56 60.86 96.64 60.63 96.73 60.74 96.81 60.47 96.89 60.61 96.98 60.6 97.06 60.83 97.14 60.88 97.23 60.67 97.31 60.72 97.39 60.55 97.48 60.74 97.56 60.58 97.64 60 97.73 60.24 97.81 60.1 97.89 60.07 97.97 59.84 98.06 59.62 98.14 59.76 98.22 59.82 98.31 60.51 98.39 60.04 98.47 60.19 98.56 60.03 98.64 60.13 98.72 60.05 98.81 60.13 98.89 60.53 98.97 60.25 99.06 60.12 99.14 60.26 99.22 60.62 99.31 60.71 99.39 60.85 99.47 60.57 99.55 60.83 99.64 60.85 99.72 61.36 99.8 61.56 99.89 61.79 99.97 61.96 100.05 61.91 100.14 61.99 100.22 61.84 100.3 62.19 100.39 62.19 100.47 62.26 100.55 62.58 100.64 62.68 100.72 62.76 100.8 62.88 100.89 62.77 100.97 62.5 101.05 62.36 101.13 62.02 101.22 62.3 101.3 62.48 101.38 62.43 101.47 62.3 101.55 62.36 101.63 62.25 101.72 62.47 101.8 62.18 101.88 62.33 101.97 62.71 102.05 62.89 102.13 62.82 102.22 62.61 102.3 62.45 102.38 62.39 102.47 62.91 102.55 62.56 102.63 62.27 102.72 62.26 102.8 62.04 102.88 62.13 102.96 62.04 103.05 62.05 103.13 62.09 103.21 62.06 103.3 61.98 103.38 62.37 103.46 62.58 103.55 62.48 103.63 62.33 103.71 62.46 103.8 62.74 103.88 62.47 103.96 62.29 104.05 62.22 104.13 62.12 104.21 62.27 104.3 62.35 104.38 62.3 104.46 62.55 104.54 62.62 104.63 62.74 104.71 62.56 104.79 62.26 104.88 62.26 104.96 61.79 105.04 61.68 105.13 62.06 105.21 61.99 105.29 61.92 105.38 61.8 105.46 61.56 105.54 61.27 105.63 61.28 105.71 61.58 105.79 61.88 105.88 62.05 105.96 62.05 106.04 62.12 106.12 62.3 106.21 62.05 106.29 61.92 106.37 61.96 106.46 62.15 106.54 62.38 106.62 62.67 106.71 62.81 106.79 62.58 106.87 62.67 106.96 62.76 107.04 62.76 107.12 62.45 107.21 62.89 107.29 62.78 107.37 62.67 107.46 62.6 107.54 62.55 107.62 62.29 107.7 62.39 107.79 62.41 107.87 62.64 107.95 62.54 108.04 62.53 108.12 62.65 108.2 62.59 108.29 62.25 108.37 62.19 108.45 62.12 108.54 61.86 108.62 62.03 108.7 62.2 108.79 62.26 108.87 62.08 108.95 62.13 109.04 62.21 109.12 62.33 109.2 62.36 109.28 62.14 109.37 62.53 109.45 62.71 109.53 62.81 109.62 62.71 109.7 62.84 109.78 62.96 109.87 63.08 109.95 63.01 110.03 62.97 110.12 62.98 110.2 63.14 110.28 63.5 110.37 63.41 110.45 63.46 110.53 63.18 110.62 62.84 110.7 62.74 110.78 62.69 110.86 62.98 110.95 62.74 111.03 62.87 111.11 62.72 111.2 62.5 111.28 62.46 111.36 62.71 111.45 62.47 111.53 62.53 111.61 62.91 111.7 63.16 111.78 63 111.86 63.01 111.95 63.21 112.03 62.76 112.11 62.62 112.2 62.5 112.28 62.48 112.36 62.38 112.45 62.26 112.53 62.6 112.61 62.77 112.69 62.8 112.78 62.81 112.86 62.79 112.94 62.61 113.03 62.45 113.11 62.69 113.19 62.78 113.28 62.98 113.36 63.51 113.44 63.37 113.53 63.53 113.61 63.86 113.69 63.84 113.78 63.7 113.86 63.65 113.94 63.59 114.03 63.53 114.11 63.52 114.19 63.57 114.27 63.8 114.36 63.88 114.44 63.86 114.52 64.02 114.61 64.1 114.69 63.86 114.77 64.22 114.86 64 114.94 63.89 115.02 64.07 115.11 64.15 115.19 64.17 115.27 64.53 115.36 64.49 115.44 64.51 115.52 64.34 115.61 64.48 115.69 64.57 115.77 64.59 115.85 64.63 115.94 64.73 116.02 64.45 116.1 64.7 116.19 64.64 116.27 64.63 116.35 64.82 116.44 64.88 116.52 64.78 116.6 64.77 116.69 64.74 116.77 64.88 116.85 64.93 116.94 64.79 117.02 65 117.1 65.33 117.19 65.12 117.27 65.07 117.35 65.01 117.43 64.83 117.52 64.41 117.6 64.2 117.68 64.18 117.77 64.36 117.85 64.55 117.93 64.52 118.02 64.46 118.1 64.25 118.18 64.2 118.27 64.33 118.35 64.23 118.43 64.22 118.52 63.98 118.6 63.98 118.68 63.94 118.77 64.08 118.85 64.13 118.93 63.86 119.01 63.95 119.1 63.82 119.18 63.91 119.26 63.9 119.35 64.17 119.43 64.19 119.51 64.36 119.6 64.4 119.68 64.11 119.76 63.96 119.85 63.74 119.93 63.71 120.01 63.84 120.1 63.88 120.18 63.45 120.26 63.46 120.35 63.21 120.43 62.97 120.51 62.98 120.59 63.17 120.68 62.99 120.76 62.8 120.84 63.03 120.93 62.7 121.01 62.46 121.09 62.56 121.18 62.88 121.26 62.84 121.34 62.67 121.43 62.6 121.51 62.52 121.59 62.71 121.68 62.71 121.76 62.58 121.84 62.45 121.93 62.44 122.01 62.01 122.09 61.58 122.18 61.67 122.26 61.72 122.34 61.6 122.42 61.57 122.51 61.33 122.59 61.44 122.67 61.61 122.76 61.53 122.84 61.29 122.92 61.42 123.01 61.65 123.09 61.61 123.17 61.58 123.26 61.64 123.34 61.78 123.42 61.56 123.51 61.46 123.59 61.81 123.67 61.64 123.76 61.17 123.84 60.91 123.92 61.22 124 61.24 124.09 61.14 124.17 60.9 124.25 61 124.34 60.75 124.42 60.67 124.5 60.48 124.59 60.99 124.67 60.79 124.75 60.43 124.84 60.46 124.92 60.15 125 59.84 125.09 59.6 125.17 59.65 125.25 60.01 125.34 60.25 125.42 59.96 125.5 59.92 125.58 59.77" class="geometry color_" stroke="#7E273E"/&gt;
        &lt;path fill="none" d="M21.63,44.35 L 21.71 44.35 21.8 44.07 21.88 43.57 21.96 43.38 22.05 43.86 22.13 43.72 22.21 43.82 22.3 43.43 22.38 43.42 22.46 43.84 22.55 43.94 22.63 44.38 22.71 44.29 22.8 44.8 22.88 45.21 22.96 44.91 23.05 45.03 23.13 44.67 23.21 44.74 23.29 44.82 23.38 44.39 23.46 44.44 23.54 43.95 23.63 43.34 23.71 43.36 23.79 43.62 23.88 43.16 23.96 43.73 24.04 43.89 24.13 43.97 24.21 44.09 24.29 44.15 24.38 44.4 24.46 44.46 24.54 44.57 24.63 44.84 24.71 44.89 24.79 44.86 24.88 45.38 24.96 45.69 25.04 45.34 25.12 45.33 25.21 44.81 25.29 44.77 25.37 45.07 25.46 45.2 25.54 45.35 25.62 45.11 25.71 44.82 25.79 44.61 25.87 44.81 25.96 44.77 26.04 44.03 26.12 44.49 26.21 44.89 26.29 44.95 26.37 44.94 26.46 44.71 26.54 44.42 26.62 44.62 26.7 43.89 26.79 43.72 26.87 43.75 26.95 43.89 27.04 43.79 27.12 43.87 27.2 43.97 27.29 44.53 27.37 44.58 27.45 44.46 27.54 44.55 27.62 44.78 27.7 45.39 27.79 45.79 27.87 46.12 27.95 45.77 28.04 46.29 28.12 46.32 28.2 45.9 28.28 45.44 28.37 45.71 28.45 46.22 28.53 45.97 28.62 45.45 28.7 45.76 28.78 45.41 28.87 45.42 28.95 45.64 29.03 46.13 29.12 46.43 29.2 46.69 29.28 46.37 29.37 46.17 29.45 46.34 29.53 46.53 29.62 46.63 29.7 46.44 29.78 46.13 29.86 45.88 29.95 46.06 30.03 46.34 30.11 46.56 30.2 45.87 30.28 46.19 30.36 46.63 30.45 46.87 30.53 46.82 30.61 46.68 30.7 47.2 30.78 47.45 30.86 47.55 30.95 47.58 31.03 46.98 31.11 47.24 31.2 47.03 31.28 47.32 31.36 47.26 31.44 47.89 31.53 48.34 31.61 47.96 31.69 47.25 31.78 47.61 31.86 48.05 31.94 47.72 32.03 48.22 32.11 48.13 32.19 47.9 32.28 47.56 32.36 47.95 32.44 48.77 32.53 48.23 32.61 48.27 32.69 48.32 32.78 48.78 32.86 48.4 32.94 48.58 33.02 48.33 33.11 48.69 33.19 48.85 33.27 48.91 33.36 48.83 33.44 48.92 33.52 48.84 33.61 48.88 33.69 49.06 33.77 48.94 33.86 48.96 33.94 48.96 34.02 49.18 34.11 49.05 34.19 48.73 34.27 48.46 34.36 47.96 34.44 47.47 34.52 47.26 34.61 46.93 34.69 46.17 34.77 46.89 34.85 46.89 34.94 46.7 35.02 46.51 35.1 46.71 35.19 46.9 35.27 47.17 35.35 47.07 35.44 47.12 35.52 46.84 35.6 46.83 35.69 46.5 35.77 46.94 35.85 46.47 35.94 46.19 36.02 45.94 36.1 46.03 36.19 46.28 36.27 46.59 36.35 46.66 36.43 47.17 36.52 47.22 36.6 47.16 36.68 47.19 36.77 46.99 36.85 47.58 36.93 47.97 37.02 47.98 37.1 47.88 37.18 47.73 37.27 47.97 37.35 47.88 37.43 47.62 37.52 47.61 37.6 47.39 37.68 47.79 37.77 48.01 37.85 48.27 37.93 48.3 38.01 48.87 38.1 49 38.18 49.44 38.26 49.22 38.35 48.9 38.43 49.88 38.51 50.4 38.6 49.99 38.68 50.6 38.76 50.97 38.85 50.75 38.93 50.59 39.01 50.97 39.1 50.87 39.18 51.18 39.26 50.98 39.35 51.14 39.43 51.9 39.51 51.65 39.59 52.18 39.68 52.03 39.76 52.56 39.84 52.41 39.93 52.56 40.01 53.09 40.09 52.87 40.18 52.95 40.26 53.1 40.34 53.35 40.43 53.35 40.51 53.43 40.59 53.15 40.68 53.04 40.76 52.59 40.84 52.66 40.93 52.63 41.01 52.72 41.09 52.74 41.17 52.91 41.26 53.16 41.34 52.83 41.42 52.54 41.51 52.92 41.59 52.68 41.67 52.55 41.76 52.63 41.84 52.96 41.92 52.9 42.01 52.97 42.09 52.99 42.17 53.16 42.26 52.89 42.34 53.05 42.42 53.35 42.51 53.35 42.59 53.78 42.67 53.45 42.75 53.41 42.84 53.15 42.92 52.75 43 52.83 43.09 52.51 43.17 52.49 43.25 52.42 43.34 52.14 43.42 52.47 43.5 52.51 43.59 52.93 43.67 52.49 43.75 52 43.84 51.48 43.92 51.39 44 51.57 44.09 51.67 44.17 52.44 44.25 52.56 44.34 52.38 44.42 52.53 44.5 52.52 44.58 52.76 44.67 52.79 44.75 53.25 44.83 53.59 44.92 53.83 45 53.92 45.08 53.71 45.17 53.59 45.25 53.59 45.33 53.53 45.42 53.31 45.5 53.4 45.58 53.31 45.67 53.91 45.75 53.79 45.83 53.64 45.92 54.26 46 54.31 46.08 53.79 46.16 54.4 46.25 54.49 46.33 55.03 46.41 54.72 46.5 54.93 46.58 55 46.66 55.31 46.75 55.35 46.83 55.64 46.91 56.12 47 56.74 47.08 57.13 47.16 56.77 47.25 56.52 47.33 56.42 47.41 56.53 47.5 56.17 47.58 56.16 47.66 55.69 47.74 55.54 47.83 55.39 47.91 55.46 47.99 55.34 48.08 55.16 48.16 55.26 48.24 55.11 48.33 54.88 48.41 55.21 48.49 54.96 48.58 55.2 48.66 55.24 48.74 54.83 48.83 55.04 48.91 55.32 48.99 55.17 49.08 55.03 49.16 54.77 49.24 54.65 49.32 54.49 49.41 54.11 49.49 54.25 49.57 54.08 49.66 54.23 49.74 53.81 49.82 53.63 49.91 53.88 49.99 53.66 50.07 53.87 50.16 54.56 50.24 54.72 50.32 55.08 50.41 54.91 50.49 54.7 50.57 54.72 50.66 54.79 50.74 54.85 50.82 54.93 50.9 55.24 50.99 55.22 51.07 55.08 51.15 54.76 51.24 54.75 51.32 54.73 51.4 54.68 51.49 54.69 51.57 54.66 51.65 54.69 51.74 54.6 51.82 55.08 51.9 55.49 51.99 55.75 52.07 55.67 52.15 55.49 52.24 55.24 52.32 55.67 52.4 55.68 52.48 55.57 52.57 55.98 52.65 56.32 52.73 56.32 52.82 55.89 52.9 55.98 52.98 56.26 53.07 55.92 53.15 56.14 53.23 56.04 53.32 56.16 53.4 56.14 53.48 56.11 53.57 56.37 53.65 56.13 53.73 55.81 53.82 56.01 53.9 55.88 53.98 56.14 54.07 56.16 54.15 56.27 54.23 55.92 54.31 56.15 54.4 56.04 54.48 55.66 54.56 55.52 54.65 55.33 54.73 55.45 54.81 55.42 54.9 55.44 54.98 55.41 55.06 55.18 55.15 55.23 55.23 55.17 55.31 54.89 55.4 55.04 55.48 55.02 55.56 54.92 55.65 54.98 55.73 54.88 55.81 54.48 55.89 54.31 55.98 53.81 56.06 53.93 56.14 54.26 56.23 54.15 56.31 54.34 56.39 54.84 56.48 54.43 56.56 54.57 56.64 54.38 56.73 54.45 56.81 54.34 56.89 54.53 56.98 54.64 57.06 54.97 57.14 54.8 57.23 54.7 57.31 55.21 57.39 55.41 57.47 55.35 57.56 55.01 57.64 55.02 57.72 54.96 57.81 55.92 57.89 56.53 57.97 56.93 58.06 56.85 58.14 56.89 58.22 57.02 58.31 56.75 58.39 56.96 58.47 57.07 58.56 57.17 58.64 56.9 58.72 56.85 58.81 56.68 58.89 56.81 58.97 56.99 59.05 57.04 59.14 56.83 59.22 56.7 59.3 56.02 59.39 56.12 59.47 56.3 59.55 56.1 59.64 56.32 59.72 56.31 59.8 56.57 59.89 56.91 59.97 57.18 60.05 57.03 60.14 57.08 60.22 56.95 60.3 57.25 60.39 57.17 60.47 57.06 60.55 57.01 60.63 57.07 60.72 57.28 60.8 57.69 60.88 57.9 60.97 57.87 61.05 57.53 61.13 57.6 61.22 57.55 61.3 57.36 61.38 57.49 61.47 57.65 61.55 57.59 61.63 56.87 61.72 56.93 61.8 56.87 61.88 56.86 61.97 56.97 62.05 56.39 62.13 55.98 62.21 55.94 62.3 55.82 62.38 55.92 62.46 55.94 62.55 55.57 62.63 56.01 62.71 55.55 62.8 55.38 62.88 55.36 62.96 54.98 63.05 55.17 63.13 54.96 63.21 54.79 63.3 54.79 63.38 54.56 63.46 54.65 63.55 54.65 63.63 54.75 63.71 54.63 63.8 54.74 63.88 54.78 63.96 54.36 64.04 54.27 64.13 54.67 64.21 54.13 64.29 53.93 64.38 53.72 64.46 53.68 64.54 53.53 64.63 53.36 64.71 53.62 64.79 53.54 64.88 54.11 64.96 54.15 65.04 53.88 65.13 54.48 65.21 54.41 65.29 54.9 65.38 54.77 65.46 54.51 65.54 54.31 65.62 54.18 65.71 54.57 65.79 54.56 65.87 54.43 65.96 53.88 66.04 53.68 66.12 53.48 66.21 53.3 66.29 53.18 66.37 53.15 66.46 53.31 66.54 52.99 66.62 52.93 66.71 52.94 66.79 52.96 66.87 53.17 66.96 53.4 67.04 53.53 67.12 53.14 67.2 53.4 67.29 53.79 67.37 53.65 67.45 53.85 67.54 53.96 67.62 54.06 67.7 54.25 67.79 54.02 67.87 54.46 67.95 54.49 68.04 54.58 68.12 54.27 68.2 54.21 68.29 54.71 68.37 54.66 68.45 54.66 68.54 54.56 68.62 54.63 68.7 54.71 68.78 54.63 68.87 54.08 68.95 54.45 69.03 54.19 69.12 54.31 69.2 54.01 69.28 53.66 69.37 53.69 69.45 53.44 69.53 53.22 69.62 53 69.7 53.24 69.78 53.41 69.87 53.63 69.95 53.56 70.03 53.75 70.12 54.01 70.2 53.74 70.28 53.84 70.36 53.67 70.45 54.05 70.53 53.52 70.61 53.3 70.7 53.69 70.78 53.88 70.86 53.6 70.95 53.02 71.03 53.42 71.11 53.41 71.2 53.65 71.28 53.66 71.36 53.62 71.45 53.71 71.53 53.03 71.61 53.18 71.7 52.3 71.78 52.1 71.86 52.29 71.94 52.69 72.03 52.83 72.11 52.59 72.19 52.51 72.28 52.48 72.36 52.21 72.44 52.09 72.53 52.31 72.61 52.51 72.69 52.12 72.78 51.6 72.86 51.07 72.94 50.97 73.03 50.6 73.11 50.4 73.19 50.64 73.28 50.32 73.36 50.21 73.44 50.34 73.53 50.32 73.61 50.67 73.69 51.2 73.77 51.46 73.86 50.84 73.94 50.52 74.02 50.4 74.11 50.62 74.19 50.68 74.27 51.36 74.36 51.29 74.44 51.65 74.52 51.38 74.61 51.82 74.69 51.54 74.77 51.95 74.86 51.84 74.94 52.15 75.02 51.85 75.11 51.89 75.19 51.2 75.27 51.16 75.35 51.16 75.44 51.67 75.52 51.87 75.6 51.93 75.69 51.79 75.77 51.92 75.85 52 75.94 52.17 76.02 52.11 76.1 52.06 76.19 51.92 76.27 52.42 76.35 52.47 76.44 52.46 76.52 53 76.6 52.94 76.69 52.98 76.77 53.54 76.85 53.69 76.93 53.41 77.02 53.38 77.1 53.46 77.18 52.96 77.27 52.63 77.35 52.81 77.43 52.43 77.52 53.04 77.6 53.68 77.68 53.09 77.77 52.65 77.85 52.32 77.93 52.34 78.02 52.62 78.1 52.57 78.18 53.01 78.27 53.33 78.35 53.39 78.43 53.3 78.51 53.31 78.6 53.13 78.68 52.83 78.76 52.61 78.85 52.28 78.93 52.04 79.01 52.2 79.1 52.57 79.18 52.47 79.26 52.03 79.35 52.04 79.43 51.87 79.51 51.8 79.6 52.02 79.68 52.11 79.76 51.56 79.85 51.1 79.93 51.03 80.01 51.25 80.09 50.98 80.18 50.67 80.26 50.12 80.34 50.68 80.43 51.41 80.51 51.59 80.59 51.38 80.68 51.28 80.76 50.76 80.84 50.62 80.93 50.4 81.01 50.47 81.09 50.72 81.18 50.77 81.26 50.51 81.34 49.69 81.43 49.6 81.51 49.19 81.59 49.55 81.67 49.8 81.76 49.66 81.84 49.53 81.92 49.96 82.01 50.06 82.09 50.44 82.17 50.33 82.26 50.35 82.34 50.46 82.42 50.67 82.51 51.36 82.59 51.45 82.67 51.59 82.76 51.13 82.84 50.87 82.92 50.55 83.01 50.79 83.09 51.37 83.17 51.17 83.26 51.15 83.34 51.06 83.42 51.76 83.5 51.27 83.59 51.99 83.67 52.17 83.75 52.61 83.84 52.76 83.92 52.65 84 52.54 84.09 52.54 84.17 52.87 84.25 53.17 84.34 52.9 84.42 53.06 84.5 52.76 84.59 53.52 84.67 53.57 84.75 53.9 84.84 53.93 84.92 53.88 85 54.34 85.08 54.24 85.17 54.65 85.25 55.27 85.33 55.01 85.42 55.07 85.5 55.23 85.58 54.97 85.67 55.02 85.75 54.96 85.83 54.87 85.92 55.13 86 55.2 86.08 54.8 86.17 54.86 86.25 54.88 86.33 54.72 86.42 54.71 86.5 54.7 86.58 54.83 86.66 54.93 86.75 54.78 86.83 54.71 86.91 54.47 87 54.79 87.08 54.61 87.16 54.76 87.25 54.89 87.33 54.85 87.41 54.31 87.5 54.39 87.58 54.12 87.66 54.29 87.75 54.44 87.83 54.28 87.91 53.59 88 53.19 88.08 53.2 88.16 52.75 88.24 52.91 88.33 53.03 88.41 53.12 88.49 53.69 88.58 53.72 88.66 53.49 88.74 53.9 88.83 54.04 88.91 54.29 88.99 54.08 89.08 54.58 89.16 54.73 89.24 54.27 89.33 54.38 89.41 53.84 89.49 54.3 89.58 54.03 89.66 54.05 89.74 54.3 89.82 54.03 89.91 53.84 89.99 53.74 90.07 54.03 90.16 54.5 90.24 54.17 90.32 54.39 90.41 54.67 90.49 54.7 90.57 54.78 90.66 54.48 90.74 54.13 90.82 54.03 90.91 53.97 90.99 53.63 91.07 53.85 91.16 53.8 91.24 54.04 91.32 53.66 91.4 53.81 91.49 53.73 91.57 53.53 91.65 53.79 91.74 53.51 91.82 53.66 91.9 53.82 91.99 53.77 92.07 53.93 92.15 54.42 92.24 54.34 92.32 53.86 92.4 53.84 92.49 53.7 92.57 53.02 92.65 52.88 92.74 53.05 92.82 53.07 92.9 53.83 92.99 53.77 93.07 54.08 93.15 54.32 93.23 54.01 93.32 54.09 93.4 54.36 93.48 54.25 93.57 54.14 93.65 54.23 93.73 54.06 93.82 54.01 93.9 53.79 93.98 53.78 94.07 53.79 94.15 53.81 94.23 53.7 94.32 54.56 94.4 54.32 94.48 54.54 94.57 54.57 94.65 54.58 94.73 55.1 94.81 54.65 94.9 54.61 94.98 54.98 95.06 55.19 95.15 55.47 95.23 55.75 95.31 55.99 95.4 55.72 95.48 55.57 95.56 55.36 95.65 55.21 95.73 55.24 95.81 55.53 95.9 55.7 95.98 55.38 96.06 55.3 96.15 55.18 96.23 55.39 96.31 55.36 96.39 55.47 96.48 55.48 96.56 55.29 96.64 55.19 96.73 55.07 96.81 54.99 96.89 55.42 96.98 55.05 97.06 55.03 97.14 55.16 97.23 55 97.31 54.84 97.39 54.96 97.48 54.86 97.56 54.91 97.64 54.9 97.73 55.21 97.81 55.01 97.89 55.15 97.97 55.25 98.06 55.26 98.14 55.15 98.22 55.65 98.31 55.73 98.39 55.5 98.47 55.27 98.56 55.78 98.64 55.62 98.72 55.97 98.81 56.45 98.89 56.71 98.97 56.88 99.06 56.44 99.14 56.31 99.22 56.22 99.31 56.01 99.39 56.13 99.47 55.88 99.55 55.64 99.64 55.27 99.72 55.25 99.8 55.04 99.89 54.82 99.97 55.17 100.05 54.96 100.14 54.68 100.22 54.8 100.3 54.57 100.39 54.59 100.47 55.05 100.55 54.73 100.64 54.84 100.72 54.5 100.8 54.6 100.89 54.57 100.97 54.26 101.05 54.3 101.13 54.19 101.22 54.29 101.3 54.52 101.38 54.26 101.47 54.38 101.55 54.53 101.63 54.13 101.72 53.96 101.8 53.85 101.88 53.58 101.97 53.74 102.05 53.99 102.13 53.41 102.22 53.49 102.3 53.03 102.38 52.77 102.47 52.53 102.55 52.06 102.63 52.02 102.72 52.66 102.8 52.41 102.88 52.2 102.96 52.26 103.05 52.41 103.13 52.7 103.21 53.17 103.3 53.02 103.38 52.63 103.46 52.87 103.55 52.59 103.63 52.78 103.71 52.78 103.8 52.96 103.88 53.48 103.96 53.18 104.05 53.19 104.13 52.71 104.21 52.7 104.3 53.06 104.38 52.75 104.46 52.72 104.54 52.86 104.63 52.79 104.71 52.51 104.79 52.67 104.88 52.67 104.96 52.3 105.04 52.07 105.13 52.38 105.21 52.96 105.29 53.28 105.38 53.4 105.46 53 105.54 53.39 105.63 52.92 105.71 53.59 105.79 53.45 105.88 53.88 105.96 53.76 106.04 54.11 106.12 54.4 106.21 54.74 106.29 54.71 106.37 54.73 106.46 54.77 106.54 54.86 106.62 55.06 106.71 54.75 106.79 54.66 106.87 55.11 106.96 55.06 107.04 55.06 107.12 55.27 107.21 55.17 107.29 55.55 107.37 55.29 107.46 55.51 107.54 55.55 107.62 55.51 107.7 55.2 107.79 55.57 107.87 55.6 107.95 55.76 108.04 56.06 108.12 56.02 108.2 55.71 108.29 55.26 108.37 55.24 108.45 54.67 108.54 54.46 108.62 54.35 108.7 54.68 108.79 54.55 108.87 54.16 108.95 54.3 109.04 54.16 109.12 54.48 109.2 54.38 109.28 54.15 109.37 54.67 109.45 54.92 109.53 54.88 109.62 54.5 109.7 54.73 109.78 54.94 109.87 55.47 109.95 55.52 110.03 56.01 110.12 55.82 110.2 56 110.28 55.45 110.37 55.58 110.45 55.48 110.53 55.97 110.62 55.57 110.7 55.66 110.78 55.74 110.86 55.94 110.95 56.03 111.03 56.31 111.11 56.33 111.2 56.73 111.28 56.65 111.36 56.43 111.45 56.06 111.53 55.58 111.61 55.43 111.7 55.02 111.78 54.47 111.86 54.38 111.95 53.77 112.03 54.59 112.11 54.88 112.2 55.09 112.28 54.73 112.36 55.35 112.45 55.53 112.53 55.33 112.61 55.34 112.69 55.3 112.78 55.32 112.86 55.57 112.94 55.42 113.03 55.78 113.11 55.7 113.19 55.46 113.28 55.56 113.36 55.84 113.44 55.56 113.53 55.14 113.61 54.52 113.69 54.6 113.78 54.76 113.86 54.72 113.94 54.78 114.03 54.16 114.11 54.31 114.19 54.32 114.27 54.44 114.36 54.1 114.44 54.51 114.52 54.47 114.61 54.5 114.69 54.56 114.77 54.55 114.86 54.43 114.94 54.58 115.02 54.49 115.11 54.69 115.19 54.59 115.27 54.61 115.36 54.91 115.44 54.9 115.52 54.31 115.61 54.24 115.69 53.66 115.77 53.44 115.85 53.41 115.94 53.27 116.02 52.79 116.1 52.71 116.19 52.76 116.27 52.7 116.35 52.41 116.44 52.52 116.52 52.3 116.6 52.12 116.69 52.81 116.77 52.53 116.85 52.53 116.94 52.62 117.02 53.31 117.1 52.91 117.19 53.2 117.27 53.15 117.35 52.88 117.43 52.86 117.52 52.56 117.6 52.55 117.68 52.81 117.77 53.05 117.85 53.14 117.93 52.68 118.02 52.33 118.1 52.37 118.18 52.27 118.27 52.08 118.35 51.97 118.43 51.76 118.52 51.77 118.6 51.53 118.68 51.89 118.77 51.79 118.85 51.92 118.93 52.19 119.01 51.78 119.1 51.77 119.18 51.61 119.26 52.29 119.35 52.04 119.43 51.92 119.51 52.16 119.6 51.75 119.68 51.54 119.76 51.71 119.85 51.48 119.93 51.61 120.01 51.8 120.1 51.91 120.18 52.14 120.26 52.28 120.35 51.87 120.43 52.16 120.51 52.24 120.59 52.52 120.68 52.78 120.76 53.09 120.84 53.54 120.93 53.25 121.01 53.66 121.09 53.53 121.18 53.65 121.26 53.45 121.34 54.13 121.43 53.79 121.51 54.08 121.59 53.97 121.68 53.95 121.76 54.32 121.84 54.37 121.93 54.55 122.01 54.38 122.09 54.4 122.18 54.32 122.26 54.23 122.34 54.5 122.42 54.6 122.51 54.63 122.59 54.67 122.67 54.7 122.76 54.8 122.84 54.94 122.92 54.82 123.01 54.85 123.09 55.15 123.17 55.08 123.26 54.49 123.34 54.71 123.42 54.73 123.51 54.81 123.59 54.82 123.67 54.34 123.76 53.94 123.84 53.72 123.92 53.67 124 53.22 124.09 53.55 124.17 54.15 124.25 54.28 124.34 54.16 124.42 54.33 124.5 53.89 124.59 53.66 124.67 53.47 124.75 53.29 124.84 53.45 124.92 53.26 125 52.99 125.09 53.13 125.17 53.26 125.25 52.94 125.34 52.83 125.42 53.14 125.5 53.11 125.58 52.86" class="geometry color_" stroke="#88C4C4"/&gt;
        &lt;path fill="none" d="M21.63,44.35 L 21.71 44.35 21.8 43.82 21.88 43.35 21.96 43.62 22.05 43.41 22.13 43.51 22.21 43.12 22.3 43.17 22.38 43.28 22.46 43.12 22.55 43.57 22.63 43.75 22.71 43.63 22.8 43.98 22.88 43.62 22.96 43.35 23.05 43.91 23.13 43.7 23.21 43.69 23.29 43.56 23.38 43.1 23.46 42.4 23.54 42.32 23.63 41.86 23.71 41.8 23.79 41.96 23.88 41.58 23.96 41.58 24.04 41.28 24.13 41.33 24.21 41.47 24.29 42.07 24.38 41.85 24.46 41.49 24.54 41.28 24.63 41.2 24.71 40.51 24.79 40.83 24.88 41.52 24.96 41.24 25.04 40.84 25.12 40.88 25.21 40.52 25.29 40.31 25.37 40.02 25.46 40.27 25.54 40.01 25.62 39.5 25.71 39.12 25.79 39.49 25.87 39.58 25.96 39.03 26.04 39.65 26.12 39.3 26.21 38.4 26.29 38.48 26.37 37.79 26.46 38.67 26.54 38.72 26.62 38.51 26.7 37.99 26.79 37.51 26.87 38 26.95 38.93 27.04 40.04 27.12 39.6 27.2 40.1 27.29 39.59 27.37 40.61 27.45 40.38 27.54 40.78 27.62 40.93 27.7 40.87 27.79 40.21 27.87 40.01 27.95 40.13 28.04 40.52 28.12 41.19 28.2 41.39 28.28 40.64 28.37 40.43 28.45 40.12 28.53 40.09 28.62 39.89 28.7 39.28 28.78 38.87 28.87 38.37 28.95 38.06 29.03 38.13 29.12 37.91 29.2 37.97 29.28 38.41 29.37 37.79 29.45 37.43 29.53 37.73 29.62 37.14 29.7 37.01 29.78 37.35 29.86 38.33 29.95 38.47 30.03 38.95 30.11 39.03 30.2 38.83 30.28 38.36 30.36 38.38 30.45 38.73 30.53 38.59 30.61 38.35 30.7 38.39 30.78 38.76 30.86 38.39 30.95 38.07 31.03 38.59 31.11 37.94 31.2 38.01 31.28 37.75 31.36 38.02 31.44 38.64 31.53 38.95 31.61 39.85 31.69 40.43 31.78 40.51 31.86 41.07 31.94 41.35 32.03 41.35 32.11 42.09 32.19 42.06 32.28 42.72 32.36 43.36 32.44 43.35 32.53 42.11 32.61 42.05 32.69 42.11 32.78 42.49 32.86 42.71 32.94 42.87 33.02 42.73 33.11 42.66 33.19 42.45 33.27 43.18 33.36 42.83 33.44 42.3 33.52 42.45 33.61 42.02 33.69 42.7 33.77 43.11 33.86 42.7 33.94 42.28 34.02 41.78 34.11 41.2 34.19 41.35 34.27 41.99 34.36 41.89 34.44 41.63 34.52 41.88 34.61 41.92 34.69 41.77 34.77 41.87 34.85 42.01 34.94 41.82 35.02 42.38 35.1 42.11 35.19 42.32 35.27 41.71 35.35 41.14 35.44 41.57 35.52 41.47 35.6 41.16 35.69 41.46 35.77 41.77 35.85 42.38 35.94 42.65 36.02 41.59 36.1 41.68 36.19 41.08 36.27 40.61 36.35 40.61 36.43 40.52 36.52 40.38 36.6 39.92 36.68 39.28 36.77 39.67 36.85 39.31 36.93 39.8 37.02 39.64 37.1 38.95 37.18 38.78 37.27 38.29 37.35 38.85 37.43 39.28 37.52 39.68 37.6 39.76 37.68 39.35 37.77 39.41 37.85 39.68 37.93 39.39 38.01 38.83 38.1 38.34 38.18 37.49 38.26 37.61 38.35 36.62 38.43 36.75 38.51 35.54 38.6 35.5 38.68 34.91 38.76 34.37 38.85 35.17 38.93 35.08 39.01 35.28 39.1 35.12 39.18 35.33 39.26 35.92 39.35 36.39 39.43 36.28 39.51 35.95 39.59 35.86 39.68 35.85 39.76 36.27 39.84 35.76 39.93 35.02 40.01 34.67 40.09 34.56 40.18 34.29 40.26 33.88 40.34 33.39 40.43 32.52 40.51 32.43 40.59 32.21 40.68 31.44 40.76 30.78 40.84 31.24 40.93 31.2 41.01 30.66 41.09 31.18 41.17 30.54 41.26 31.36 41.34 30.24 41.42 30.84 41.51 30.62 41.59 31.3 41.67 31.37 41.76 30.73 41.84 30.25 41.92 30.77 42.01 31.69 42.09 32.8 42.17 32.62 42.26 32.83 42.34 32.62 42.42 32.67 42.51 32.67 42.59 32.36 42.67 31.79 42.75 31.72 42.84 31.78 42.92 33.18 43 33.88 43.09 33.18 43.17 32.94 43.25 32.61 43.34 32.28 43.42 31.95 43.5 31.5 43.59 31.75 43.67 31.85 43.75 30.89 43.84 30.47 43.92 29.53 44 29.08 44.09 29.19 44.17 29.02 44.25 29.16 44.34 29.22 44.42 28.41 44.5 28.59 44.58 28.75 44.67 28.88 44.75 29.41 44.83 29.03 44.92 28.8 45 28.75 45.08 28.39 45.17 28.13 45.25 27.5 45.33 27.71 45.42 27.52 45.5 28.54 45.58 27.37 45.67 27.1 45.75 27.01 45.83 26.66 45.92 26.62 46 26.09 46.08 26.34 46.16 27.1 46.25 27.22 46.33 27.45 46.41 28.84 46.5 28.77 46.58 27.76 46.66 28.34 46.75 27.56 46.83 26.91 46.91 27.25 47 27.42 47.08 26.58 47.16 27.01 47.25 26.8 47.33 27.14 47.41 27.04 47.5 27.19 47.58 27.37 47.66 26.54 47.74 26.92 47.83 25.82 47.91 25.49 47.99 25.82 48.08 25.69 48.16 25.16 48.24 25.98 48.33 25.8 48.41 26.01 48.49 25.83 48.58 26.25 48.66 25.89 48.74 25.96 48.83 26.66 48.91 26.72 48.99 26.3 49.08 27.09 49.16 27.79 49.24 28.33 49.32 28.16 49.41 28.43 49.49 28.07 49.57 28.67 49.66 28.95 49.74 28.74 49.82 28.63 49.91 28.51 49.99 27.73 50.07 27.61 50.16 27.26 50.24 27.02 50.32 27.05 50.41 28.27 50.49 28.65 50.57 29.26 50.66 29.26 50.74 29.67 50.82 30.2 50.9 30.14 50.99 30.85 51.07 30.3 51.15 29.97 51.24 30.51 51.32 30.39 51.4 30.36 51.49 29.56 51.57 29.99 51.65 30.95 51.74 30.78 51.82 31.23 51.9 31.85 51.99 32.23 52.07 32.4 52.15 32.24 52.24 31.59 52.32 31.7 52.4 32.2 52.48 32.2 52.57 32.17 52.65 31.69 52.73 31.74 52.82 32.33 52.9 32.52 52.98 32.73 53.07 32.41 53.15 33.3 53.23 32.88 53.32 32.54 53.4 32.8 53.48 32.23 53.57 32.45 53.65 31.72 53.73 32.3 53.82 32.26 53.9 32.38 53.98 32.33 54.07 32.11 54.15 31.9 54.23 31.51 54.31 31.28 54.4 31.09 54.48 31.03 54.56 31.08 54.65 31.49 54.73 31.49 54.81 32.05 54.9 30.97 54.98 31.25 55.06 31.61 55.15 31.55 55.23 31.1 55.31 30.14 55.4 30.74 55.48 30.74 55.56 30.67 55.65 30.62 55.73 31.3 55.81 31.84 55.89 32.05 55.98 32.89 56.06 33.02 56.14 32.98 56.23 32.61 56.31 32.38 56.39 32.13 56.48 32.52 56.56 32.5 56.64 32.2 56.73 32 56.81 32.13 56.89 33.17 56.98 33.07 57.06 33.21 57.14 33.81 57.23 34.06 57.31 34.47 57.39 35.05 57.47 34.32 57.56 34.82 57.64 35.27 57.72 35.19 57.81 36.21 57.89 36.18 57.97 36.29 58.06 36.3 58.14 36.21 58.22 36.94 58.31 35.98 58.39 35.51 58.47 35.88 58.56 36.81 58.64 37 58.72 38.13 58.81 38.12 58.89 37.47 58.97 37.59 59.05 36.95 59.14 37.15 59.22 36.98 59.3 36.75 59.39 36.33 59.47 36.04 59.55 35.18 59.64 35.61 59.72 35.02 59.8 35.07 59.89 35.36 59.97 34.3 60.05 34.29 60.14 34.11 60.22 33.72 60.3 34.46 60.39 34.71 60.47 35.04 60.55 35.52 60.63 35.59 60.72 35.96 60.8 36.13 60.88 36.11 60.97 36.4 61.05 36.31 61.13 36.66 61.22 36.62 61.3 36.52 61.38 36.35 61.47 35.81 61.55 36.37 61.63 36.91 61.72 36.56 61.8 36.96 61.88 37.22 61.97 37.67 62.05 37.68 62.13 37.76 62.21 37.39 62.3 37.42 62.38 38.18 62.46 38.43 62.55 38.64 62.63 37.65 62.71 37.71 62.8 37.22 62.88 36.49 62.96 36.46 63.05 36.29 63.13 36.22 63.21 34.85 63.3 34.85 63.38 35.46 63.46 35.36 63.55 35.61 63.63 35.8 63.71 35.65 63.8 36.25 63.88 36.42 63.96 36.22 64.04 35.64 64.13 36.05 64.21 35.72 64.29 35.77 64.38 35.53 64.46 35.59 64.54 35.91 64.63 36.07 64.71 36.79 64.79 36.28 64.88 36.33 64.96 36.07 65.04 35.45 65.13 36.03 65.21 35.74 65.29 34.79 65.38 34.94 65.46 34.66 65.54 34.71 65.62 35.15 65.71 35.52 65.79 35.62 65.87 36.2 65.96 36.05 66.04 36.23 66.12 35.51 66.21 35.97 66.29 35.76 66.37 35.9 66.46 36.13 66.54 35.44 66.62 34.84 66.71 35.93 66.79 35.63 66.87 35.88 66.96 36.16 67.04 37.13 67.12 37.9 67.2 37.66 67.29 37.38 67.37 37.12 67.45 37.08 67.54 37.62 67.62 37.56 67.7 37.39 67.79 37.76 67.87 38.22 67.95 38.51 68.04 38.62 68.12 39.75 68.2 39.17 68.29 39.13 68.37 39.5 68.45 38.87 68.54 38.62 68.62 38.5 68.7 37.95 68.78 38.79 68.87 37.93 68.95 38.26 69.03 37.99 69.12 37.21 69.2 36.72 69.28 37.05 69.37 36.79 69.45 37.28 69.53 37.43 69.62 37.16 69.7 37.2 69.78 37.51 69.87 37.84 69.95 37.95 70.03 37.97 70.12 38.85 70.2 39.13 70.28 39.1 70.36 39 70.45 37.66 70.53 37.01 70.61 36.61 70.7 36.89 70.78 37.07 70.86 37.09 70.95 36.89 71.03 37.44 71.11 37.1 71.2 36.33 71.28 36.12 71.36 36.89 71.45 36.27 71.53 37.05 71.61 37.36 71.7 38.02 71.78 38.11 71.86 38.45 71.94 37.81 72.03 38.22 72.11 38.17 72.19 39.19 72.28 39.29 72.36 39.28 72.44 39.38 72.53 39.06 72.61 38.72 72.69 38.78 72.78 38.59 72.86 39.56 72.94 39 73.03 38.61 73.11 38.33 73.19 38.32 73.28 39.2 73.36 39.45 73.44 39.8 73.53 40.08 73.61 40 73.69 39.82 73.77 39.73 73.86 39.81 73.94 39.81 74.02 39.84 74.11 39.75 74.19 39.9 74.27 40 74.36 40.38 74.44 40.19 74.52 40.4 74.61 40.78 74.69 41.05 74.77 41.39 74.86 41.27 74.94 40.45 75.02 40.48 75.11 40.68 75.19 40.55 75.27 40.37 75.35 40.7 75.44 40.43 75.52 41.06 75.6 41.15 75.69 41.33 75.77 41.48 75.85 41.93 75.94 41.34 76.02 41.89 76.1 41.94 76.19 43.02 76.27 43.48 76.35 44.02 76.44 44.05 76.52 43.91 76.6 43.67 76.69 43.68 76.77 43.8 76.85 43.75 76.93 43.46 77.02 43.08 77.1 43.2 77.18 43.15 77.27 42.9 77.35 42.64 77.43 43.69 77.52 44.39 77.6 44.04 77.68 43.48 77.77 43.7 77.85 43.71 77.93 43.53 78.02 42.36 78.1 42.78 78.18 42.93 78.27 42.55 78.35 42.24 78.43 41.9 78.51 41.37 78.6 40.82 78.68 40.69 78.76 40.54 78.85 39.78 78.93 39.6 79.01 39.78 79.1 39.72 79.18 39.89 79.26 39.94 79.35 40.16 79.43 40.46 79.51 40.95 79.6 40.62 79.68 40.89 79.76 41.97 79.85 42.19 79.93 42.09 80.01 42.55 80.09 42.05 80.18 42.44 80.26 41.98 80.34 41.59 80.43 41.45 80.51 41.05 80.59 41.19 80.68 40.73 80.76 40.9 80.84 40.54 80.93 40.94 81.01 40.77 81.09 40.74 81.18 41.18 81.26 40.85 81.34 40.86 81.43 41.04 81.51 41.41 81.59 41.2 81.67 40.56 81.76 39.95 81.84 40.48 81.92 40.67 82.01 41.07 82.09 41.15 82.17 41.12 82.26 41.3 82.34 41.04 82.42 40.97 82.51 41.15 82.59 42.04 82.67 41.24 82.76 41.81 82.84 42.1 82.92 42.21 83.01 42.32 83.09 42.4 83.17 42.52 83.26 42.52 83.34 42.46 83.42 42.26 83.5 42.06 83.59 42.17 83.67 42.26 83.75 41.48 83.84 41.36 83.92 41.39 84 41.02 84.09 41.02 84.17 41.41 84.25 41.4 84.34 40.96 84.42 40.3 84.5 39.71 84.59 39.46 84.67 39.46 84.75 39.1 84.84 38.59 84.92 37.54 85 37.8 85.08 38.09 85.17 38.24 85.25 38.2 85.33 37.67 85.42 37.8 85.5 37.81 85.58 37.82 85.67 38.07 85.75 37.98 85.83 38.7 85.92 38.93 86 38.5 86.08 39.11 86.17 39.07 86.25 38.57 86.33 38.29 86.42 38.33 86.5 38.31 86.58 38.9 86.66 39.27 86.75 38.83 86.83 39.36 86.91 39.46 87 39.34 87.08 38.92 87.16 39.03 87.25 39.22 87.33 39.14 87.41 39.96 87.5 39.34 87.58 39.67 87.66 39.42 87.75 39.55 87.83 39.78 87.91 40.21 88 39.85 88.08 40.53 88.16 40.55 88.24 40.38 88.33 40.71 88.41 40.29 88.49 39.9 88.58 40.22 88.66 40.9 88.74 41.44 88.83 41.71 88.91 40.78 88.99 40.52 89.08 40.08 89.16 40.14 89.24 41.05 89.33 40.93 89.41 42.23 89.49 41.93 89.58 42.33 89.66 42.61 89.74 42.73 89.82 41.71 89.91 40.53 89.99 40.58 90.07 40.48 90.16 40.48 90.24 39.77 90.32 39.88 90.41 39.29 90.49 38.73 90.57 38.46 90.66 39.17 90.74 38.64 90.82 38.59 90.91 39.21 90.99 39.28 91.07 38.92 91.16 39 91.24 39.45 91.32 39.32 91.4 37.54 91.49 37.42 91.57 37.16 91.65 37.29 91.74 37.69 91.82 37.07 91.9 36.8 91.99 37.53 92.07 37.57 92.15 38.03 92.24 37.86 92.32 37.66 92.4 37.92 92.49 38.39 92.57 38.03 92.65 38.39 92.74 38.93 92.82 38.37 92.9 38.03 92.99 38.45 93.07 38.41 93.15 38.47 93.23 38.08 93.32 37.83 93.4 38.1 93.48 37.56 93.57 37.59 93.65 37.32 93.73 37.97 93.82 37.7 93.9 37.91 93.98 37.32 94.07 37.82 94.15 36.84 94.23 37.7 94.32 37.82 94.4 37.09 94.48 36.74 94.57 36.75 94.65 35.99 94.73 37.1 94.81 37.29 94.9 37.74 94.98 37.94 95.06 37.2 95.15 36.83 95.23 35.86 95.31 35.58 95.4 35.69 95.48 35.53 95.56 35.68 95.65 36.21 95.73 36.18 95.81 35.88 95.9 35.9 95.98 35.52 96.06 35.27 96.15 35.04 96.23 35.87 96.31 36.74 96.39 36.25 96.48 35.82 96.56 35.57 96.64 36.7 96.73 36.35 96.81 35.73 96.89 35.82 96.98 36.32 97.06 36.15 97.14 35.85 97.23 34.77 97.31 34.5 97.39 34.53 97.48 34.74 97.56 35.19 97.64 35.8 97.73 36.45 97.81 36.46 97.89 36.33 97.97 37.19 98.06 37.63 98.14 37.94 98.22 38.96 98.31 38.56 98.39 39.21 98.47 39.02 98.56 39.13 98.64 38.91 98.72 39.07 98.81 39.14 98.89 38.69 98.97 38.14 99.06 38.24 99.14 37.49 99.22 37.44 99.31 37.17 99.39 37.34 99.47 37.48 99.55 37.7 99.64 37 99.72 37.67 99.8 38.12 99.89 37.06 99.97 36.87 100.05 36.6 100.14 36.03 100.22 35.86 100.3 35.89 100.39 35.93 100.47 35.94 100.55 36.78 100.64 36.61 100.72 36.16 100.8 35.45 100.89 34.97 100.97 33.9 101.05 33.04 101.13 33.5 101.22 34.45 101.3 35.03 101.38 35.19 101.47 34.8 101.55 34.92 101.63 35.69 101.72 35.9 101.8 34.54 101.88 35.3 101.97 35.44 102.05 34.88 102.13 34.34 102.22 33.34 102.3 33.63 102.38 34.11 102.47 33.64 102.55 33.94 102.63 34.24 102.72 33.63 102.8 34.15 102.88 34.21 102.96 33.56 103.05 33.13 103.13 32.28 103.21 31.78 103.3 31.5 103.38 30.43 103.46 30.09 103.55 29.62 103.63 29.33 103.71 28.94 103.8 29.48 103.88 29.98 103.96 29.42 104.05 29.61 104.13 30.27 104.21 31.26 104.3 31.09 104.38 31.76 104.46 32.2 104.54 32.52 104.63 32.58 104.71 33.08 104.79 33.51 104.88 33.51 104.96 33.87 105.04 33.81 105.13 34.09 105.21 34.01 105.29 33.56 105.38 33.06 105.46 33.35 105.54 32.84 105.63 32.08 105.71 31.47 105.79 30.91 105.88 30.99 105.96 31.24 106.04 31.26 106.12 31.74 106.21 32.18 106.29 31.67 106.37 31.94 106.46 31.25 106.54 30.49 106.62 29.74 106.71 29.11 106.79 28.57 106.87 28.83 106.96 28.55 107.04 28.51 107.12 28.46 107.21 28.93 107.29 29.13 107.37 29.3 107.46 28.98 107.54 29.12 107.62 29.64 107.7 29.37 107.79 29.3 107.87 28.78 107.95 28.98 108.04 28.86 108.12 28.6 108.2 28.79 108.29 29.07 108.37 28.62 108.45 28.31 108.54 28.34 108.62 27.43 108.7 27.45 108.79 28.43 108.87 29.2 108.95 28.99 109.04 29 109.12 29.17 109.2 28.95 109.28 28.3 109.37 27.72 109.45 28.82 109.53 28.9 109.62 28.98 109.7 28.84 109.78 27.88 109.87 27.9 109.95 28.05 110.03 27.58 110.12 28 110.2 28.5 110.28 29.1 110.37 29.49 110.45 29.18 110.53 29.81 110.62 29.4 110.7 28.92 110.78 30.13 110.86 29.79 110.95 29.84 111.03 29.89 111.11 30.05 111.2 29.13 111.28 27.82 111.36 27.74 111.45 27.81 111.53 27.43 111.61 27.2 111.7 27.66 111.78 27.48 111.86 27.27 111.95 26.56 112.03 26.08 112.11 26.73 112.2 26.97 112.28 26.62 112.36 26.09 112.45 26.5 112.53 26.52 112.61 26.66 112.69 26.39 112.78 25.9 112.86 26.17 112.94 26.61 113.03 27.93 113.11 28.71 113.19 27.94 113.28 29.11 113.36 28.95 113.44 29.77 113.53 28.91 113.61 29.68 113.69 28.78 113.78 29.78 113.86 29.87 113.94 29.5 114.03 30.03 114.11 30.32 114.19 30.56 114.27 30.2 114.36 29.51 114.44 30.28 114.52 29.3 114.61 28.42 114.69 28.71 114.77 28.82 114.86 29.67 114.94 29.37 115.02 29.96 115.11 30.4 115.19 30.34 115.27 29.83 115.36 29.79 115.44 29.11 115.52 29.09 115.61 28.87 115.69 29.25 115.77 29.8 115.85 29.74 115.94 29.07 116.02 28.98 116.1 29.49 116.19 29.23 116.27 29.07 116.35 29.4 116.44 29.74 116.52 29.8 116.6 30.1 116.69 28.99 116.77 29.21 116.85 29.57 116.94 29.74 117.02 29.82 117.1 29.72 117.19 28.72 117.27 28.46 117.35 28.94 117.43 28.42 117.52 28.24 117.6 28.46 117.68 28.68 117.77 29.24 117.85 29.7 117.93 29.34 118.02 28.83 118.1 28.49 118.18 29 118.27 28.11 118.35 27.86 118.43 28.34 118.52 27.5 118.6 26.75 118.68 26.99 118.77 27.64 118.85 27.21 118.93 26.69 119.01 26.03 119.1 24.71 119.18 25.53 119.26 25.87 119.35 25.78 119.43 25.88 119.51 26.88 119.6 26.56 119.68 26.08 119.76 25.81 119.85 25.64 119.93 26.75 120.01 26.43 120.1 26.06 120.18 26.94 120.26 26.16 120.35 26.79 120.43 26.57 120.51 27.03 120.59 26.63 120.68 27.22 120.76 28.43 120.84 28.61 120.93 28.76 121.01 29.04 121.09 28.82 121.18 28.32 121.26 28.29 121.34 28.64 121.43 29.2 121.51 29.36 121.59 29.48 121.68 28.5 121.76 28.75 121.84 29.53 121.93 29.67 122.01 29.62 122.09 29.21 122.18 28.63 122.26 29.53 122.34 29.52 122.42 30.52 122.51 30 122.59 30.15 122.67 30.3 122.76 31.04 122.84 30.76 122.92 30.37 123.01 30.75 123.09 30.95 123.17 31.23 123.26 31.22 123.34 31.11 123.42 30.44 123.51 30.94 123.59 31.69 123.67 32.2 123.76 31.62 123.84 31.14 123.92 31.78 124 32.42 124.09 33.08 124.17 33.16 124.25 32.62 124.34 32.62 124.42 32.09 124.5 32.12 124.59 31.82 124.67 32 124.75 31.76 124.84 31.67 124.92 32.02 125 31.5 125.09 32.2 125.17 30.81 125.25 30.75 125.34 30.05 125.42 28.78 125.5 28.05 125.58 27.86" class="geometry color_" stroke="#BECAB9"/&gt;
        &lt;path fill="none" d="M21.63,44.35 L 21.71 44.35 21.8 43.74 21.88 43.65 21.96 43.55 22.05 43.53 22.13 43.48 22.21 43.34 22.3 43.42 22.38 42.99 22.46 43.42 22.55 43.26 22.63 42.72 22.71 42.52 22.8 42.45 22.88 42.2 22.96 41.9 23.05 42.03 23.13 41.74 23.21 40.93 23.29 41.8 23.38 41.73 23.46 41.32 23.54 41.26 23.63 41.24 23.71 41.61 23.79 41.82 23.88 42.12 23.96 42.48 24.04 42.39 24.13 42.55 24.21 42.85 24.29 42.94 24.38 43.28 24.46 44.25 24.54 44.07 24.63 43.81 24.71 43.95 24.79 44.35 24.88 44.34 24.96 43.9 25.04 42.94 25.12 43.17 25.21 43.09 25.29 43.5 25.37 43.31 25.46 43.37 25.54 43.79 25.62 44.1 25.71 43.4 25.79 43.16 25.87 43.35 25.96 43.82 26.04 44.32 26.12 43.9 26.21 43.35 26.29 43.07 26.37 42.86 26.46 42.48 26.54 42.39 26.62 42.27 26.7 42.26 26.79 42.41 26.87 42.84 26.95 43.64 27.04 43.77 27.12 43.72 27.2 43.87 27.29 44.33 27.37 43.69 27.45 43.82 27.54 43.42 27.62 43.14 27.7 42.85 27.79 43.09 27.87 43.28 27.95 43.24 28.04 42.77 28.12 42.57 28.2 43.06 28.28 43.36 28.37 43.36 28.45 43.18 28.53 43.23 28.62 42.55 28.7 42.91 28.78 42.69 28.87 42.83 28.95 42.57 29.03 42.66 29.12 42.78 29.2 43.36 29.28 42.75 29.37 42.61 29.45 42.73 29.53 43.07 29.62 43.23 29.7 43.52 29.78 43.55 29.86 43.29 29.95 43.6 30.03 44.28 30.11 44.4 30.2 44.17 30.28 44.19 30.36 44.46 30.45 44.68 30.53 44.58 30.61 44.14 30.7 44.28 30.78 43.85 30.86 42.86 30.95 43.22 31.03 43.44 31.11 42.78 31.2 42.41 31.28 41.94 31.36 41.98 31.44 41.46 31.53 42.23 31.61 42.36 31.69 42.53 31.78 42.73 31.86 43.1 31.94 42.85 32.03 42.78 32.11 43.12 32.19 43.35 32.28 43.37 32.36 43.11 32.44 42.83 32.53 42.47 32.61 42.44 32.69 42.25 32.78 42.73 32.86 43.08 32.94 43.28 33.02 43.34 33.11 42.7 33.19 42.5 33.27 42.82 33.36 42.45 33.44 41.39 33.52 41.09 33.61 42.05 33.69 41.77 33.77 41.49 33.86 41.16 33.94 41.24 34.02 41.03 34.11 40.76 34.19 40.98 34.27 41.11 34.36 40.6 34.44 40.64 34.52 41.1 34.61 40.88 34.69 39.94 34.77 40.43 34.85 40.07 34.94 39.94 35.02 40.09 35.1 40.09 35.19 40.02 35.27 40.6 35.35 40.71 35.44 40.81 35.52 40.88 35.6 41.81 35.69 41.85 35.77 41.71 35.85 41.85 35.94 41.51 36.02 41.73 36.1 41.45 36.19 41.32 36.27 41.15 36.35 40.68 36.43 40.34 36.52 39.65 36.6 39.76 36.68 39.43 36.77 39.64 36.85 39.41 36.93 39.28 37.02 38.36 37.1 37.89 37.18 38.34 37.27 38.25 37.35 38.46 37.43 38.69 37.52 38.26 37.6 37.79 37.68 37.8 37.77 38.29 37.85 38.27 37.93 37.75 38.01 38.48 38.1 38.55 38.18 37.69 38.26 37.39 38.35 37.15 38.43 36.61 38.51 37.45 38.6 36.8 38.68 37.37 38.76 37.02 38.85 37.54 38.93 37.53 39.01 37.87 39.1 38.01 39.18 38.35 39.26 38.12 39.35 37.33 39.43 37.75 39.51 37.68 39.59 37.6 39.68 37.32 39.76 37.2 39.84 36.54 39.93 36.08 40.01 36.39 40.09 36.62 40.18 36.62 40.26 36.83 40.34 36.61 40.43 36.3 40.51 36.14 40.59 35.95 40.68 36.27 40.76 36.02 40.84 35.85 40.93 35.42 41.01 36.18 41.09 35.98 41.17 36.06 41.26 35.71 41.34 35.6 41.42 35.93 41.51 36.32 41.59 36.32 41.67 36.62 41.76 36.83 41.84 37.02 41.92 36.31 42.01 36.28 42.09 35.81 42.17 35.62 42.26 36.13 42.34 36.63 42.42 36.29 42.51 36.29 42.59 36.46 42.67 36.57 42.75 36.53 42.84 36.3 42.92 36.3 43 37.02 43.09 37.46 43.17 37.84 43.25 37.67 43.34 37.2 43.42 36.97 43.5 37.06 43.59 36.97 43.67 37.52 43.75 36.95 43.84 36.58 43.92 36.44 44 36.07 44.09 35.77 44.17 35.57 44.25 36.24 44.34 35.75 44.42 35.32 44.5 34.88 44.58 35.21 44.67 35.19 44.75 35.09 44.83 35.01 44.92 34.85 45 34.56 45.08 34.38 45.17 34.3 45.25 34.75 45.33 34.88 45.42 34.07 45.5 34.54 45.58 35.13 45.67 36.08 45.75 36.43 45.83 36.41 45.92 36.41 46 37.04 46.08 37.36 46.16 36.67 46.25 35.93 46.33 35.44 46.41 36.53 46.5 36.38 46.58 36.1 46.66 36.02 46.75 36.11 46.83 35.66 46.91 34.86 47 34.65 47.08 35.22 47.16 34.94 47.25 35.43 47.33 35.26 47.41 35.15 47.5 34.63 47.58 35.04 47.66 35.03 47.74 35.05 47.83 35.2 47.91 35.16 47.99 35.35 48.08 35.44 48.16 35.27 48.24 35.27 48.33 35.38 48.41 35.19 48.49 35.23 48.58 34.07 48.66 33.4 48.74 34.21 48.83 34.12 48.91 34.42 48.99 34.92 49.08 34.56 49.16 34.75 49.24 34.77 49.32 34.03 49.41 34.11 49.49 34.48 49.57 33.73 49.66 33.54 49.74 33.17 49.82 32.8 49.91 33.39 49.99 33.53 50.07 33.66 50.16 33.64 50.24 33.26 50.32 33.32 50.41 33.22 50.49 32.92 50.57 33.42 50.66 33.36 50.74 33.09 50.82 33.46 50.9 33.43 50.99 33.43 51.07 34.22 51.15 34.21 51.24 34.4 51.32 34.53 51.4 35.21 51.49 35.44 51.57 34.45 51.65 34.73 51.74 34.65 51.82 34.92 51.9 35.13 51.99 35.39 52.07 34.54 52.15 34.76 52.24 34.65 52.32 34.17 52.4 33.63 52.48 34.19 52.57 34.09 52.65 33.58 52.73 33.61 52.82 33.84 52.9 33.15 52.98 32.78 53.07 32.53 53.15 33.33 53.23 31.97 53.32 31.43 53.4 30.68 53.48 30.53 53.57 29.54 53.65 29.73 53.73 30.31 53.82 29.91 53.9 30.29 53.98 29.88 54.07 29.58 54.15 29.21 54.23 29.35 54.31 28.81 54.4 28.85 54.48 29.34 54.56 29.04 54.65 29.06 54.73 29.12 54.81 28.93 54.9 28.83 54.98 29.21 55.06 28.9 55.15 28.46 55.23 28.68 55.31 28.93 55.4 29.25 55.48 28.99 55.56 28.63 55.65 28.99 55.73 28.36 55.81 27.85 55.89 29.36 55.98 28.4 56.06 28.82 56.14 27.79 56.23 27.41 56.31 27.83 56.39 27.63 56.48 28.28 56.56 28.62 56.64 29.51 56.73 29.85 56.81 30.05 56.89 29.55 56.98 29.31 57.06 28.7 57.14 28.14 57.23 28.85 57.31 28.7 57.39 28.57 57.47 28.16 57.56 28.12 57.64 28.77 57.72 28.82 57.81 28.48 57.89 29.09 57.97 28.31 58.06 28.1 58.14 28.02 58.22 28.09 58.31 28.38 58.39 28.31 58.47 28.63 58.56 28.43 58.64 29.14 58.72 29.47 58.81 28.94 58.89 28.65 58.97 28.92 59.05 28.4 59.14 28.36 59.22 29.05 59.3 29.08 59.39 28.55 59.47 28.12 59.55 28.32 59.64 27.71 59.72 27.01 59.8 26.81 59.89 26.82 59.97 27.09 60.05 26.97 60.14 27.83 60.22 28.05 60.3 27.61 60.39 27.37 60.47 26.75 60.55 26.28 60.63 25.33 60.72 25.23 60.8 24.76 60.88 25 60.97 24.48 61.05 24.78 61.13 26 61.22 26.34 61.3 26.18 61.38 26.87 61.47 26.5 61.55 26.33 61.63 25.57 61.72 26.62 61.8 25.9 61.88 26.12 61.97 26.4 62.05 26.64 62.13 27.4 62.21 26.34 62.3 26.33 62.38 26.1 62.46 26.11 62.55 26.75 62.63 26.56 62.71 26.44 62.8 26.17 62.88 26.26 62.96 26.73 63.05 26.26 63.13 26.03 63.21 26.17 63.3 26.17 63.38 25.99 63.46 25.64 63.55 26.1 63.63 26.43 63.71 26.08 63.8 25.94 63.88 26.32 63.96 26.46 64.04 26.26 64.13 26.64 64.21 26.73 64.29 26.74 64.38 26.82 64.46 26.85 64.54 27.15 64.63 27.57 64.71 27.67 64.79 28.08 64.88 28.29 64.96 28.48 65.04 28.09 65.13 27.8 65.21 27.69 65.29 26.69 65.38 26.76 65.46 26.56 65.54 27.62 65.62 27.48 65.71 28.95 65.79 28.84 65.87 29.38 65.96 28.94 66.04 29.2 66.12 28.19 66.21 27.98 66.29 28.01 66.37 26.72 66.46 26.72 66.54 26.06 66.62 27.35 66.71 27.79 66.79 27.17 66.87 27.32 66.96 28.12 67.04 27.66 67.12 27.99 67.2 28.08 67.29 27.89 67.37 27.35 67.45 26.61 67.54 27.2 67.62 28.25 67.7 28.87 67.79 29.61 67.87 28.77 67.95 29.01 68.04 29.83 68.12 29.84 68.2 29.38 68.29 30.07 68.37 29.96 68.45 29.26 68.54 30.17 68.62 30 68.7 30.86 68.78 30.75 68.87 30.53 68.95 30.23 69.03 29.8 69.12 29.71 69.2 30.1 69.28 29.8 69.37 31.25 69.45 31.72 69.53 30.72 69.62 31.13 69.7 31.04 69.78 31.47 69.87 31.74 69.95 31.02 70.03 31.47 70.12 31.6 70.2 31.66 70.28 31.9 70.36 31.49 70.45 31.23 70.53 31.45 70.61 31.48 70.7 31.74 70.78 32.11 70.86 31.58 70.95 31.47 71.03 30.88 71.11 30.32 71.2 31.17 71.28 31.11 71.36 31.12 71.45 32 71.53 31.47 71.61 31.96 71.7 32.4 71.78 31.85 71.86 31.65 71.94 31.48 72.03 32.25 72.11 32.21 72.19 32.4 72.28 32.12 72.36 32.06 72.44 31.78 72.53 32.43 72.61 32.66 72.69 31.77 72.78 32.17 72.86 32.61 72.94 33.15 73.03 33.44 73.11 33.4 73.19 32.55 73.28 32.24 73.36 32.73 73.44 32.81 73.53 32.97 73.61 32.52 73.69 32.61 73.77 32.19 73.86 32.43 73.94 32.35 74.02 33.11 74.11 32.83 74.19 33.01 74.27 33.21 74.36 32.91 74.44 33.74 74.52 33.95 74.61 34.11 74.69 34.15 74.77 33.96 74.86 33.72 74.94 33.23 75.02 33.58 75.11 33.65 75.19 33.51 75.27 32.86 75.35 32.68 75.44 32.81 75.52 32.7 75.6 32.41 75.69 31.99 75.77 32.04 75.85 32.51 75.94 32.76 76.02 33.44 76.1 33.97 76.19 34.32 76.27 34.12 76.35 34.94 76.44 34.83 76.52 35.07 76.6 34.65 76.69 35.13 76.77 34.11 76.85 34.72 76.93 35.38 77.02 34.14 77.1 34.13 77.18 34.65 77.27 34.46 77.35 35.21 77.43 34.93 77.52 34.68 77.6 34.17 77.68 33.39 77.77 33.81 77.85 33.9 77.93 33.8 78.02 33.35 78.1 33.58 78.18 32.75 78.27 31.84 78.35 31.16 78.43 31.68 78.51 32.13 78.6 31.69 78.68 31.9 78.76 31.86 78.85 32.26 78.93 32.5 79.01 32.51 79.1 32.36 79.18 32.51 79.26 32.73 79.35 33.67 79.43 33.29 79.51 34.28 79.6 34.56 79.68 35.3 79.76 35.32 79.85 34.6 79.93 34.58 80.01 35.32 80.09 35.54 80.18 35.19 80.26 35.11 80.34 35.81 80.43 35.98 80.51 35.97 80.59 36.01 80.68 35.98 80.76 36.17 80.84 36.22 80.93 36.23 81.01 36.06 81.09 36.02 81.18 36.93 81.26 36.35 81.34 36.94 81.43 36.61 81.51 36.29 81.59 35.59 81.67 35.3 81.76 36.15 81.84 35.71 81.92 35.52 82.01 36.27 82.09 37.53 82.17 37.81 82.26 38.23 82.34 38.64 82.42 39.09 82.51 38.65 82.59 39.51 82.67 39.88 82.76 40.37 82.84 40.4 82.92 41.56 83.01 41.46 83.09 41.82 83.17 41.57 83.26 41.39 83.34 41.58 83.42 41.57 83.5 41.17 83.59 41.5 83.67 40.81 83.75 40.5 83.84 40.57 83.92 40.13 84 39.79 84.09 39.79 84.17 39.79 84.25 39.83 84.34 39.67 84.42 38.94 84.5 38.97 84.59 38.12 84.67 37.79 84.75 38.35 84.84 38.18 84.92 38.06 85 38.76 85.08 38.89 85.17 39.36 85.25 39.06 85.33 39.44 85.42 39.38 85.5 39.23 85.58 38.94 85.67 38.78 85.75 39.09 85.83 38.96 85.92 39.2 86 38.71 86.08 38.34 86.17 37.88 86.25 37.77 86.33 38.13 86.42 37.99 86.5 39.02 86.58 38.7 86.66 38.08 86.75 37.79 86.83 37.52 86.91 38.05 87 38.01 87.08 37.87 87.16 37.66 87.25 37 87.33 37.11 87.41 37.1 87.5 36.76 87.58 36.03 87.66 35.74 87.75 36.31 87.83 36.76 87.91 37.5 88 37.23 88.08 36.62 88.16 36.28 88.24 35.92 88.33 36.16 88.41 36.81 88.49 36.75 88.58 36.84 88.66 36.84 88.74 36.05 88.83 36.09 88.91 35.35 88.99 35.32 89.08 35.25 89.16 35.4 89.24 35.57 89.33 35.68 89.41 35.76 89.49 34.84 89.58 34.61 89.66 34.75 89.74 35.23 89.82 35.52 89.91 35.7 89.99 35.99 90.07 36.27 90.16 35.74 90.24 35.17 90.32 34.85 90.41 35.36 90.49 35.34 90.57 35.87 90.66 35.34 90.74 35.39 90.82 34.76 90.91 34.94 90.99 34.24 91.07 34.55 91.16 34.32 91.24 34.7 91.32 34.68 91.4 34.6 91.49 33.76 91.57 33.83 91.65 34.1 91.74 33.5 91.82 32.87 91.9 32.53 91.99 31.56 92.07 31.73 92.15 32.89 92.24 32.68 92.32 32.62 92.4 32.29 92.49 32.03 92.57 31.96 92.65 32.19 92.74 32.25 92.82 32.77 92.9 32.6 92.99 32.89 93.07 32.53 93.15 32.46 93.23 33.45 93.32 33.94 93.4 34.23 93.48 33.71 93.57 34.15 93.65 34.3 93.73 34.27 93.82 33.52 93.9 33.59 93.98 33.88 94.07 33.68 94.15 34.56 94.23 33.9 94.32 34.23 94.4 34.43 94.48 34.6 94.57 35.37 94.65 34.45 94.73 34.16 94.81 34.47 94.9 34.39 94.98 34.21 95.06 34.01 95.15 33.82 95.23 33.69 95.31 32.73 95.4 32.95 95.48 32.85 95.56 32.98 95.65 32.59 95.73 32.67 95.81 33.87 95.9 33.42 95.98 32.58 96.06 32.77 96.15 32.41 96.23 32.36 96.31 31.87 96.39 32.01 96.48 31.99 96.56 32.22 96.64 32.17 96.73 31.91 96.81 31.85 96.89 32.13 96.98 32.2 97.06 31.52 97.14 31.39 97.23 30.87 97.31 31.24 97.39 31.31 97.48 31.96 97.56 31.57 97.64 32.11 97.73 31.5 97.81 30.71 97.89 30.86 97.97 30.48 98.06 31.09 98.14 30.39 98.22 30.98 98.31 29.99 98.39 30.09 98.47 29.11 98.56 28.74 98.64 28.02 98.72 27.96 98.81 28.39 98.89 28.56 98.97 27.87 99.06 27.16 99.14 27.33 99.22 27.41 99.31 27.55 99.39 26.86 99.47 27.6 99.55 27.33 99.64 27.52 99.72 27.22 99.8 26.98 99.89 27.76 99.97 28.05 100.05 27.57 100.14 27.32 100.22 27.54 100.3 27.55 100.39 28.54 100.47 28.63 100.55 28.91 100.64 28.74 100.72 28.71 100.8 28.4 100.89 29.41 100.97 29.44 101.05 30.37 101.13 29.63 101.22 29.65 101.3 29.59 101.38 29.65 101.47 29.52 101.55 29.62 101.63 30.03 101.72 30.73 101.8 31.5 101.88 31.41 101.97 30.97 102.05 31.5 102.13 32.01 102.22 31.33 102.3 31.23 102.38 31.66 102.47 31.87 102.55 31.92 102.63 31.39 102.72 31.96 102.8 32.18 102.88 31.82 102.96 31.86 103.05 32.54 103.13 32.74 103.21 33.35 103.3 33.24 103.38 33.6 103.46 32.58 103.55 32.49 103.63 32.22 103.71 32.52 103.8 32.35 103.88 32.21 103.96 32.81 104.05 32.74 104.13 32.4 104.21 32.95 104.3 33.66 104.38 33.46 104.46 34.08 104.54 34.02 104.63 34.02 104.71 33.65 104.79 33.99 104.88 33.99 104.96 33.21 105.04 32.14 105.13 32.35 105.21 33.11 105.29 33.04 105.38 32.52 105.46 32.77 105.54 33.3 105.63 33.27 105.71 33.15 105.79 33.64 105.88 33.6 105.96 33.73 106.04 33.64 106.12 33.33 106.21 31.86 106.29 32.4 106.37 31.29 106.46 30.82 106.54 29.88 106.62 29.85 106.71 29.89 106.79 30.56 106.87 30.56 106.96 30.33 107.04 30.39 107.12 30.57 107.21 30.02 107.29 29.79 107.37 29.18 107.46 28.38 107.54 28.75 107.62 29.27 107.7 29.59 107.79 28.91 107.87 28.36 107.95 28.17 108.04 28.23 108.12 28.75 108.2 27.91 108.29 27.51 108.37 26.91 108.45 26.37 108.54 26.44 108.62 27.6 108.7 29.24 108.79 29.48 108.87 29.88 108.95 30.15 109.04 29.23 109.12 29.24 109.2 28.76 109.28 28.87 109.37 28.69 109.45 29.25 109.53 27.91 109.62 27.37 109.7 27.22 109.78 27.37 109.87 26.45 109.95 26.25 110.03 26.35 110.12 26.71 110.2 27.6 110.28 28.55 110.37 29.26 110.45 30.2 110.53 29.86 110.62 30.14 110.7 30.1 110.78 30.75 110.86 30.77 110.95 30.72 111.03 31.28 111.11 30.9 111.2 30.74 111.28 31.58 111.36 32.47 111.45 32.77 111.53 33.45 111.61 33.58 111.7 33.65 111.78 33.71 111.86 34.03 111.95 33.28 112.03 32.82 112.11 33.34 112.2 33.32 112.28 33.62 112.36 33.27 112.45 32.74 112.53 32.87 112.61 33.12 112.69 32.9 112.78 32.82 112.86 32.65 112.94 32.39 113.03 31.97 113.11 32.3 113.19 33.04 113.28 33.1 113.36 33.45 113.44 33.69 113.53 33.9 113.61 34.24 113.69 33.99 113.78 34.16 113.86 33.99 113.94 32.94 114.03 33.35 114.11 33.28 114.19 33.9 114.27 33.45 114.36 33.15 114.44 32.95 114.52 33.4 114.61 33.02 114.69 32.74 114.77 32.99 114.86 31.67 114.94 31.46 115.02 31.62 115.11 31.65 115.19 32.1 115.27 31.78 115.36 31.89 115.44 32.09 115.52 31.74 115.61 31.49 115.69 31.43 115.77 30.97 115.85 30.68 115.94 30.18 116.02 30.61 116.1 30.7 116.19 30.59 116.27 30.96 116.35 30.93 116.44 31.79 116.52 32.58 116.6 32.22 116.69 31.7 116.77 31.95 116.85 31.87 116.94 32.14 117.02 31.97 117.1 32.67 117.19 31.43 117.27 31.03 117.35 30.51 117.43 30.57 117.52 31.76 117.6 31.69 117.68 31.93 117.77 32.54 117.85 33.34 117.93 33.76 118.02 34.79 118.1 35.38 118.18 35.01 118.27 35.01 118.35 34.6 118.43 35.18 118.52 35.88 118.6 36.65 118.68 36.38 118.77 35.73 118.85 35.67 118.93 35.41 119.01 35.11 119.1 35.73 119.18 34.79 119.26 35.11 119.35 35.56 119.43 35.94 119.51 37.02 119.6 37.22 119.68 37.39 119.76 36.73 119.85 36.23 119.93 35.98 120.01 36.23 120.1 36.25 120.18 35.78 120.26 35.42 120.35 35.24 120.43 35.82 120.51 35.09 120.59 33.92 120.68 33.08 120.76 32.81 120.84 32.9 120.93 33.45 121.01 33.33 121.09 34.63 121.18 34.79 121.26 34.74 121.34 34.4 121.43 33.99 121.51 34.63 121.59 34.08 121.68 33.94 121.76 34.11 121.84 33.85 121.93 33.41 122.01 33.51 122.09 33.25 122.18 33.34 122.26 32.93 122.34 33.74 122.42 33.3 122.51 33.57 122.59 34.23 122.67 33.63 122.76 33.96 122.84 34.27 122.92 34.12 123.01 34.17 123.09 34.69 123.17 34.8 123.26 34.38 123.34 33.94 123.42 33.85 123.51 33.58 123.59 32.59 123.67 32.48 123.76 31.93 123.84 32.49 123.92 31.62 124 31.98 124.09 31.5 124.17 31.97 124.25 31.23 124.34 32.02 124.42 31.91 124.5 32.66 124.59 33.19 124.67 32.7 124.75 33.16 124.84 33.68 124.92 33.16 125 33.29 125.09 32.91 125.17 32.72 125.25 32.4 125.34 32.56 125.42 32.6 125.5 33.28 125.58 33.62" class="geometry color_" stroke="#D2B497"/&gt;
      &lt;/g&gt;
    &lt;/g&gt;
    &lt;g opacity="0" class="guide zoomslider" stroke="#000000" stroke-opacity="0.000" id="fig-0378e04b897742b597befd2e8e1c169e-element-15"&gt;
      &lt;g fill="#EAEAEA" stroke-width="0.3" stroke-opacity="0" stroke="#6A6A6A" id="fig-0378e04b897742b597befd2e8e1c169e-element-16"&gt;
        &lt;rect x="120.58" y="8" width="4" height="4"/&gt;
        &lt;g class="button_logo" fill="#6A6A6A" id="fig-0378e04b897742b597befd2e8e1c169e-element-17"&gt;
          &lt;path d="M121.38,9.6 L 122.18 9.6 122.18 8.8 122.98 8.8 122.98 9.6 123.78 9.6 123.78 10.4 122.98 10.4 122.98 11.2 122.18 11.2 122.18 10.4 121.38 10.4 z"/&gt;
        &lt;/g&gt;
      &lt;/g&gt;
      &lt;g fill="#EAEAEA" id="fig-0378e04b897742b597befd2e8e1c169e-element-18"&gt;
        &lt;rect x="101.08" y="8" width="19" height="4"/&gt;
      &lt;/g&gt;
      &lt;g class="zoomslider_thumb" fill="#6A6A6A" id="fig-0378e04b897742b597befd2e8e1c169e-element-19"&gt;
        &lt;rect x="109.58" y="8" width="2" height="4"/&gt;
      &lt;/g&gt;
      &lt;g fill="#EAEAEA" stroke-width="0.3" stroke-opacity="0" stroke="#6A6A6A" id="fig-0378e04b897742b597befd2e8e1c169e-element-20"&gt;
        &lt;rect x="96.58" y="8" width="4" height="4"/&gt;
        &lt;g class="button_logo" fill="#6A6A6A" id="fig-0378e04b897742b597befd2e8e1c169e-element-21"&gt;
          &lt;path d="M97.38,9.6 L 99.78 9.6 99.78 10.4 97.38 10.4 z"/&gt;
        &lt;/g&gt;
      &lt;/g&gt;
    &lt;/g&gt;
  &lt;/g&gt;
  &lt;g class="guide ylabels" font-size="2.82" font-family="'PT Sans Caption','Helvetica Neue','Helvetica',sans-serif" fill="#6C606B" id="fig-0378e04b897742b597befd2e8e1c169e-element-22"&gt;
    &lt;text x="18.63" y="178.87" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;-250&lt;/text&gt;
    &lt;text x="18.63" y="159.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;-200&lt;/text&gt;
    &lt;text x="18.63" y="140.68" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;-150&lt;/text&gt;
    &lt;text x="18.63" y="121.58" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;-100&lt;/text&gt;
    &lt;text x="18.63" y="102.49" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;-50&lt;/text&gt;
    &lt;text x="18.63" y="83.39" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;0&lt;/text&gt;
    &lt;text x="18.63" y="64.29" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;50&lt;/text&gt;
    &lt;text x="18.63" y="45.19" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;100&lt;/text&gt;
    &lt;text x="18.63" y="26.1" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;150&lt;/text&gt;
    &lt;text x="18.63" y="7" text-anchor="end" dy="0.35em" visibility="visible" gadfly:scale="1.0"&gt;200&lt;/text&gt;
    &lt;text x="18.63" y="-12.1" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;250&lt;/text&gt;
    &lt;text x="18.63" y="-31.19" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;300&lt;/text&gt;
    &lt;text x="18.63" y="-50.29" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;350&lt;/text&gt;
    &lt;text x="18.63" y="-69.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;400&lt;/text&gt;
    &lt;text x="18.63" y="-88.49" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="1.0"&gt;450&lt;/text&gt;
    &lt;text x="18.63" y="159.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-200&lt;/text&gt;
    &lt;text x="18.63" y="155.96" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-190&lt;/text&gt;
    &lt;text x="18.63" y="152.14" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-180&lt;/text&gt;
    &lt;text x="18.63" y="148.32" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-170&lt;/text&gt;
    &lt;text x="18.63" y="144.5" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-160&lt;/text&gt;
    &lt;text x="18.63" y="140.68" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-150&lt;/text&gt;
    &lt;text x="18.63" y="136.86" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-140&lt;/text&gt;
    &lt;text x="18.63" y="133.04" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-130&lt;/text&gt;
    &lt;text x="18.63" y="129.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-120&lt;/text&gt;
    &lt;text x="18.63" y="125.4" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-110&lt;/text&gt;
    &lt;text x="18.63" y="121.58" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-100&lt;/text&gt;
    &lt;text x="18.63" y="117.76" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-90&lt;/text&gt;
    &lt;text x="18.63" y="113.94" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-80&lt;/text&gt;
    &lt;text x="18.63" y="110.12" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-70&lt;/text&gt;
    &lt;text x="18.63" y="106.3" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-60&lt;/text&gt;
    &lt;text x="18.63" y="102.49" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-50&lt;/text&gt;
    &lt;text x="18.63" y="98.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-40&lt;/text&gt;
    &lt;text x="18.63" y="94.85" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-30&lt;/text&gt;
    &lt;text x="18.63" y="91.03" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-20&lt;/text&gt;
    &lt;text x="18.63" y="87.21" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;-10&lt;/text&gt;
    &lt;text x="18.63" y="83.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;0&lt;/text&gt;
    &lt;text x="18.63" y="79.57" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;10&lt;/text&gt;
    &lt;text x="18.63" y="75.75" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;20&lt;/text&gt;
    &lt;text x="18.63" y="71.93" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;30&lt;/text&gt;
    &lt;text x="18.63" y="68.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;40&lt;/text&gt;
    &lt;text x="18.63" y="64.29" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;50&lt;/text&gt;
    &lt;text x="18.63" y="60.47" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;60&lt;/text&gt;
    &lt;text x="18.63" y="56.65" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;70&lt;/text&gt;
    &lt;text x="18.63" y="52.83" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;80&lt;/text&gt;
    &lt;text x="18.63" y="49.01" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;90&lt;/text&gt;
    &lt;text x="18.63" y="45.19" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;100&lt;/text&gt;
    &lt;text x="18.63" y="41.37" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;110&lt;/text&gt;
    &lt;text x="18.63" y="37.56" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;120&lt;/text&gt;
    &lt;text x="18.63" y="33.74" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;130&lt;/text&gt;
    &lt;text x="18.63" y="29.92" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;140&lt;/text&gt;
    &lt;text x="18.63" y="26.1" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;150&lt;/text&gt;
    &lt;text x="18.63" y="22.28" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;160&lt;/text&gt;
    &lt;text x="18.63" y="18.46" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;170&lt;/text&gt;
    &lt;text x="18.63" y="14.64" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;180&lt;/text&gt;
    &lt;text x="18.63" y="10.82" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;190&lt;/text&gt;
    &lt;text x="18.63" y="7" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;200&lt;/text&gt;
    &lt;text x="18.63" y="3.18" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;210&lt;/text&gt;
    &lt;text x="18.63" y="-0.64" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;220&lt;/text&gt;
    &lt;text x="18.63" y="-4.46" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;230&lt;/text&gt;
    &lt;text x="18.63" y="-8.28" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;240&lt;/text&gt;
    &lt;text x="18.63" y="-12.1" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;250&lt;/text&gt;
    &lt;text x="18.63" y="-15.92" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;260&lt;/text&gt;
    &lt;text x="18.63" y="-19.74" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;270&lt;/text&gt;
    &lt;text x="18.63" y="-23.56" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;280&lt;/text&gt;
    &lt;text x="18.63" y="-27.37" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;290&lt;/text&gt;
    &lt;text x="18.63" y="-31.19" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;300&lt;/text&gt;
    &lt;text x="18.63" y="-35.01" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;310&lt;/text&gt;
    &lt;text x="18.63" y="-38.83" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;320&lt;/text&gt;
    &lt;text x="18.63" y="-42.65" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;330&lt;/text&gt;
    &lt;text x="18.63" y="-46.47" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;340&lt;/text&gt;
    &lt;text x="18.63" y="-50.29" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;350&lt;/text&gt;
    &lt;text x="18.63" y="-54.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;360&lt;/text&gt;
    &lt;text x="18.63" y="-57.93" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;370&lt;/text&gt;
    &lt;text x="18.63" y="-61.75" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;380&lt;/text&gt;
    &lt;text x="18.63" y="-65.57" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;390&lt;/text&gt;
    &lt;text x="18.63" y="-69.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="10.0"&gt;400&lt;/text&gt;
    &lt;text x="18.63" y="159.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="0.5"&gt;-200&lt;/text&gt;
    &lt;text x="18.63" y="83.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="0.5"&gt;0&lt;/text&gt;
    &lt;text x="18.63" y="7" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="0.5"&gt;200&lt;/text&gt;
    &lt;text x="18.63" y="-69.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="0.5"&gt;400&lt;/text&gt;
    &lt;text x="18.63" y="159.78" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;-200&lt;/text&gt;
    &lt;text x="18.63" y="152.14" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;-180&lt;/text&gt;
    &lt;text x="18.63" y="144.5" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;-160&lt;/text&gt;
    &lt;text x="18.63" y="136.86" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;-140&lt;/text&gt;
    &lt;text x="18.63" y="129.22" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;-120&lt;/text&gt;
    &lt;text x="18.63" y="121.58" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;-100&lt;/text&gt;
    &lt;text x="18.63" y="113.94" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;-80&lt;/text&gt;
    &lt;text x="18.63" y="106.3" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;-60&lt;/text&gt;
    &lt;text x="18.63" y="98.67" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;-40&lt;/text&gt;
    &lt;text x="18.63" y="91.03" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;-20&lt;/text&gt;
    &lt;text x="18.63" y="83.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;0&lt;/text&gt;
    &lt;text x="18.63" y="75.75" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;20&lt;/text&gt;
    &lt;text x="18.63" y="68.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;40&lt;/text&gt;
    &lt;text x="18.63" y="60.47" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;60&lt;/text&gt;
    &lt;text x="18.63" y="52.83" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;80&lt;/text&gt;
    &lt;text x="18.63" y="45.19" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;100&lt;/text&gt;
    &lt;text x="18.63" y="37.56" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;120&lt;/text&gt;
    &lt;text x="18.63" y="29.92" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;140&lt;/text&gt;
    &lt;text x="18.63" y="22.28" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;160&lt;/text&gt;
    &lt;text x="18.63" y="14.64" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;180&lt;/text&gt;
    &lt;text x="18.63" y="7" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;200&lt;/text&gt;
    &lt;text x="18.63" y="-0.64" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;220&lt;/text&gt;
    &lt;text x="18.63" y="-8.28" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;240&lt;/text&gt;
    &lt;text x="18.63" y="-15.92" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;260&lt;/text&gt;
    &lt;text x="18.63" y="-23.56" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;280&lt;/text&gt;
    &lt;text x="18.63" y="-31.19" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;300&lt;/text&gt;
    &lt;text x="18.63" y="-38.83" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;320&lt;/text&gt;
    &lt;text x="18.63" y="-46.47" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;340&lt;/text&gt;
    &lt;text x="18.63" y="-54.11" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;360&lt;/text&gt;
    &lt;text x="18.63" y="-61.75" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;380&lt;/text&gt;
    &lt;text x="18.63" y="-69.39" text-anchor="end" dy="0.35em" visibility="hidden" gadfly:scale="5.0"&gt;400&lt;/text&gt;
  &lt;/g&gt;
  &lt;g font-size="3.88" font-family="'PT Sans','Helvetica Neue','Helvetica',sans-serif" fill="#564A55" stroke="#000000" stroke-opacity="0.000" id="fig-0378e04b897742b597befd2e8e1c169e-element-23"&gt;
    &lt;text x="8.81" y="43.19" text-anchor="middle" dy="0.35em" transform="rotate(-90, 8.81, 45.19)"&gt;Value&lt;/text&gt;
  &lt;/g&gt;
&lt;/g&gt;
&lt;defs&gt;
&lt;clipPath id="fig-0378e04b897742b597befd2e8e1c169e-element-9"&gt;
  &lt;path d="M19.63,5 L 127.58 5 127.58 85.39 19.63 85.39" /&gt;
&lt;/clipPath
&gt;&lt;/defs&gt;
&lt;script&gt; &lt;![CDATA[
(function(N){var k=/[\.\/]/,L=/\s*,\s*/,C=function(a,d){return a-d},a,v,y={n:{}},M=function(){for(var a=0,d=this.length;a&lt;d;a++)if("undefined"!=typeof this[a])return this[a]},A=function(){for(var a=this.length;--a;)if("undefined"!=typeof this[a])return this[a]},w=function(k,d){k=String(k);var f=v,n=Array.prototype.slice.call(arguments,2),u=w.listeners(k),p=0,b,q=[],e={},l=[],r=a;l.firstDefined=M;l.lastDefined=A;a=k;for(var s=v=0,x=u.length;s&lt;x;s++)"zIndex"in u[s]&amp;&amp;(q.push(u[s].zIndex),0&gt;u[s].zIndex&amp;&amp;
(e[u[s].zIndex]=u[s]));for(q.sort(C);0&gt;q[p];)if(b=e[q[p++] ],l.push(b.apply(d,n)),v)return v=f,l;for(s=0;s&lt;x;s++)if(b=u[s],"zIndex"in b)if(b.zIndex==q[p]){l.push(b.apply(d,n));if(v)break;do if(p++,(b=e[q[p] ])&amp;&amp;l.push(b.apply(d,n)),v)break;while(b)}else e[b.zIndex]=b;else if(l.push(b.apply(d,n)),v)break;v=f;a=r;return l};w._events=y;w.listeners=function(a){a=a.split(k);var d=y,f,n,u,p,b,q,e,l=[d],r=[];u=0;for(p=a.length;u&lt;p;u++){e=[];b=0;for(q=l.length;b&lt;q;b++)for(d=l[b].n,f=[d[a[u] ],d["*"] ],n=2;n--;)if(d=
f[n])e.push(d),r=r.concat(d.f||[]);l=e}return r};w.on=function(a,d){a=String(a);if("function"!=typeof d)return function(){};for(var f=a.split(L),n=0,u=f.length;n&lt;u;n++)(function(a){a=a.split(k);for(var b=y,f,e=0,l=a.length;e&lt;l;e++)b=b.n,b=b.hasOwnProperty(a[e])&amp;&amp;b[a[e] ]||(b[a[e] ]={n:{}});b.f=b.f||[];e=0;for(l=b.f.length;e&lt;l;e++)if(b.f[e]==d){f=!0;break}!f&amp;&amp;b.f.push(d)})(f[n]);return function(a){+a==+a&amp;&amp;(d.zIndex=+a)}};w.f=function(a){var d=[].slice.call(arguments,1);return function(){w.apply(null,
[a,null].concat(d).concat([].slice.call(arguments,0)))}};w.stop=function(){v=1};w.nt=function(k){return k?(new RegExp("(?:\\.|\\/|^)"+k+"(?:\\.|\\/|$)")).test(a):a};w.nts=function(){return a.split(k)};w.off=w.unbind=function(a,d){if(a){var f=a.split(L);if(1&lt;f.length)for(var n=0,u=f.length;n&lt;u;n++)w.off(f[n],d);else{for(var f=a.split(k),p,b,q,e,l=[y],n=0,u=f.length;n&lt;u;n++)for(e=0;e&lt;l.length;e+=q.length-2){q=[e,1];p=l[e].n;if("*"!=f[n])p[f[n] ]&amp;&amp;q.push(p[f[n] ]);else for(b in p)p.hasOwnProperty(b)&amp;&amp;
q.push(p[b]);l.splice.apply(l,q)}n=0;for(u=l.length;n&lt;u;n++)for(p=l[n];p.n;){if(d){if(p.f){e=0;for(f=p.f.length;e&lt;f;e++)if(p.f[e]==d){p.f.splice(e,1);break}!p.f.length&amp;&amp;delete p.f}for(b in p.n)if(p.n.hasOwnProperty(b)&amp;&amp;p.n[b].f){q=p.n[b].f;e=0;for(f=q.length;e&lt;f;e++)if(q[e]==d){q.splice(e,1);break}!q.length&amp;&amp;delete p.n[b].f}}else for(b in delete p.f,p.n)p.n.hasOwnProperty(b)&amp;&amp;p.n[b].f&amp;&amp;delete p.n[b].f;p=p.n}}}else w._events=y={n:{}}};w.once=function(a,d){var f=function(){w.unbind(a,f);return d.apply(this,
arguments)};return w.on(a,f)};w.version="0.4.2";w.toString=function(){return"You are running Eve 0.4.2"};"undefined"!=typeof module&amp;&amp;module.exports?module.exports=w:"function"===typeof define&amp;&amp;define.amd?define("eve",[],function(){return w}):N.eve=w})(this);
(function(N,k){"function"===typeof define&amp;&amp;define.amd?define("Snap.svg",["eve"],function(L){return k(N,L)}):k(N,N.eve)})(this,function(N,k){var L=function(a){var k={},y=N.requestAnimationFrame||N.webkitRequestAnimationFrame||N.mozRequestAnimationFrame||N.oRequestAnimationFrame||N.msRequestAnimationFrame||function(a){setTimeout(a,16)},M=Array.isArray||function(a){return a instanceof Array||"[object Array]"==Object.prototype.toString.call(a)},A=0,w="M"+(+new Date).toString(36),z=function(a){if(null==
a)return this.s;var b=this.s-a;this.b+=this.dur*b;this.B+=this.dur*b;this.s=a},d=function(a){if(null==a)return this.spd;this.spd=a},f=function(a){if(null==a)return this.dur;this.s=this.s*a/this.dur;this.dur=a},n=function(){delete k[this.id];this.update();a("mina.stop."+this.id,this)},u=function(){this.pdif||(delete k[this.id],this.update(),this.pdif=this.get()-this.b)},p=function(){this.pdif&amp;&amp;(this.b=this.get()-this.pdif,delete this.pdif,k[this.id]=this)},b=function(){var a;if(M(this.start)){a=[];
for(var b=0,e=this.start.length;b&lt;e;b++)a[b]=+this.start[b]+(this.end[b]-this.start[b])*this.easing(this.s)}else a=+this.start+(this.end-this.start)*this.easing(this.s);this.set(a)},q=function(){var l=0,b;for(b in k)if(k.hasOwnProperty(b)){var e=k[b],f=e.get();l++;e.s=(f-e.b)/(e.dur/e.spd);1&lt;=e.s&amp;&amp;(delete k[b],e.s=1,l--,function(b){setTimeout(function(){a("mina.finish."+b.id,b)})}(e));e.update()}l&amp;&amp;y(q)},e=function(a,r,s,x,G,h,J){a={id:w+(A++).toString(36),start:a,end:r,b:s,s:0,dur:x-s,spd:1,get:G,
set:h,easing:J||e.linear,status:z,speed:d,duration:f,stop:n,pause:u,resume:p,update:b};k[a.id]=a;r=0;for(var K in k)if(k.hasOwnProperty(K)&amp;&amp;(r++,2==r))break;1==r&amp;&amp;y(q);return a};e.time=Date.now||function(){return+new Date};e.getById=function(a){return k[a]||null};e.linear=function(a){return a};e.easeout=function(a){return Math.pow(a,1.7)};e.easein=function(a){return Math.pow(a,0.48)};e.easeinout=function(a){if(1==a)return 1;if(0==a)return 0;var b=0.48-a/1.04,e=Math.sqrt(0.1734+b*b);a=e-b;a=Math.pow(Math.abs(a),
1/3)*(0&gt;a?-1:1);b=-e-b;b=Math.pow(Math.abs(b),1/3)*(0&gt;b?-1:1);a=a+b+0.5;return 3*(1-a)*a*a+a*a*a};e.backin=function(a){return 1==a?1:a*a*(2.70158*a-1.70158)};e.backout=function(a){if(0==a)return 0;a-=1;return a*a*(2.70158*a+1.70158)+1};e.elastic=function(a){return a==!!a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1};e.bounce=function(a){a&lt;1/2.75?a*=7.5625*a:a&lt;2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a&lt;2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a};
return N.mina=e}("undefined"==typeof k?function(){}:k),C=function(){function a(c,t){if(c){if(c.tagName)return x(c);if(y(c,"array")&amp;&amp;a.set)return a.set.apply(a,c);if(c instanceof e)return c;if(null==t)return c=G.doc.querySelector(c),x(c)}return new s(null==c?"100%":c,null==t?"100%":t)}function v(c,a){if(a){"#text"==c&amp;&amp;(c=G.doc.createTextNode(a.text||""));"string"==typeof c&amp;&amp;(c=v(c));if("string"==typeof a)return"xlink:"==a.substring(0,6)?c.getAttributeNS(m,a.substring(6)):"xml:"==a.substring(0,4)?c.getAttributeNS(la,
a.substring(4)):c.getAttribute(a);for(var da in a)if(a[h](da)){var b=J(a[da]);b?"xlink:"==da.substring(0,6)?c.setAttributeNS(m,da.substring(6),b):"xml:"==da.substring(0,4)?c.setAttributeNS(la,da.substring(4),b):c.setAttribute(da,b):c.removeAttribute(da)}}else c=G.doc.createElementNS(la,c);return c}function y(c,a){a=J.prototype.toLowerCase.call(a);return"finite"==a?isFinite(c):"array"==a&amp;&amp;(c instanceof Array||Array.isArray&amp;&amp;Array.isArray(c))?!0:"null"==a&amp;&amp;null===c||a==typeof c&amp;&amp;null!==c||"object"==
a&amp;&amp;c===Object(c)||$.call(c).slice(8,-1).toLowerCase()==a}function M(c){if("function"==typeof c||Object(c)!==c)return c;var a=new c.constructor,b;for(b in c)c[h](b)&amp;&amp;(a[b]=M(c[b]));return a}function A(c,a,b){function m(){var e=Array.prototype.slice.call(arguments,0),f=e.join("\u2400"),d=m.cache=m.cache||{},l=m.count=m.count||[];if(d[h](f)){a:for(var e=l,l=f,B=0,H=e.length;B&lt;H;B++)if(e[B]===l){e.push(e.splice(B,1)[0]);break a}return b?b(d[f]):d[f]}1E3&lt;=l.length&amp;&amp;delete d[l.shift()];l.push(f);d[f]=c.apply(a,
e);return b?b(d[f]):d[f]}return m}function w(c,a,b,m,e,f){return null==e?(c-=b,a-=m,c||a?(180*I.atan2(-a,-c)/C+540)%360:0):w(c,a,e,f)-w(b,m,e,f)}function z(c){return c%360*C/180}function d(c){var a=[];c=c.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(c,b,m){m=m.split(/\s*,\s*|\s+/);"rotate"==b&amp;&amp;1==m.length&amp;&amp;m.push(0,0);"scale"==b&amp;&amp;(2&lt;m.length?m=m.slice(0,2):2==m.length&amp;&amp;m.push(0,0),1==m.length&amp;&amp;m.push(m[0],0,0));"skewX"==b?a.push(["m",1,0,I.tan(z(m[0])),1,0,0]):"skewY"==b?a.push(["m",1,I.tan(z(m[0])),
0,1,0,0]):a.push([b.charAt(0)].concat(m));return c});return a}function f(c,t){var b=O(c),m=new a.Matrix;if(b)for(var e=0,f=b.length;e&lt;f;e++){var h=b[e],d=h.length,B=J(h[0]).toLowerCase(),H=h[0]!=B,l=H?m.invert():0,E;"t"==B&amp;&amp;2==d?m.translate(h[1],0):"t"==B&amp;&amp;3==d?H?(d=l.x(0,0),B=l.y(0,0),H=l.x(h[1],h[2]),l=l.y(h[1],h[2]),m.translate(H-d,l-B)):m.translate(h[1],h[2]):"r"==B?2==d?(E=E||t,m.rotate(h[1],E.x+E.width/2,E.y+E.height/2)):4==d&amp;&amp;(H?(H=l.x(h[2],h[3]),l=l.y(h[2],h[3]),m.rotate(h[1],H,l)):m.rotate(h[1],
h[2],h[3])):"s"==B?2==d||3==d?(E=E||t,m.scale(h[1],h[d-1],E.x+E.width/2,E.y+E.height/2)):4==d?H?(H=l.x(h[2],h[3]),l=l.y(h[2],h[3]),m.scale(h[1],h[1],H,l)):m.scale(h[1],h[1],h[2],h[3]):5==d&amp;&amp;(H?(H=l.x(h[3],h[4]),l=l.y(h[3],h[4]),m.scale(h[1],h[2],H,l)):m.scale(h[1],h[2],h[3],h[4])):"m"==B&amp;&amp;7==d&amp;&amp;m.add(h[1],h[2],h[3],h[4],h[5],h[6])}return m}function n(c,t){if(null==t){var m=!0;t="linearGradient"==c.type||"radialGradient"==c.type?c.node.getAttribute("gradientTransform"):"pattern"==c.type?c.node.getAttribute("patternTransform"):
c.node.getAttribute("transform");if(!t)return new a.Matrix;t=d(t)}else t=a._.rgTransform.test(t)?J(t).replace(/\.{3}|\u2026/g,c._.transform||aa):d(t),y(t,"array")&amp;&amp;(t=a.path?a.path.toString.call(t):J(t)),c._.transform=t;var b=f(t,c.getBBox(1));if(m)return b;c.matrix=b}function u(c){c=c.node.ownerSVGElement&amp;&amp;x(c.node.ownerSVGElement)||c.node.parentNode&amp;&amp;x(c.node.parentNode)||a.select("svg")||a(0,0);var t=c.select("defs"),t=null==t?!1:t.node;t||(t=r("defs",c.node).node);return t}function p(c){return c.node.ownerSVGElement&amp;&amp;
x(c.node.ownerSVGElement)||a.select("svg")}function b(c,a,m){function b(c){if(null==c)return aa;if(c==+c)return c;v(B,{width:c});try{return B.getBBox().width}catch(a){return 0}}function h(c){if(null==c)return aa;if(c==+c)return c;v(B,{height:c});try{return B.getBBox().height}catch(a){return 0}}function e(b,B){null==a?d[b]=B(c.attr(b)||0):b==a&amp;&amp;(d=B(null==m?c.attr(b)||0:m))}var f=p(c).node,d={},B=f.querySelector(".svg---mgr");B||(B=v("rect"),v(B,{x:-9E9,y:-9E9,width:10,height:10,"class":"svg---mgr",
fill:"none"}),f.appendChild(B));switch(c.type){case "rect":e("rx",b),e("ry",h);case "image":e("width",b),e("height",h);case "text":e("x",b);e("y",h);break;case "circle":e("cx",b);e("cy",h);e("r",b);break;case "ellipse":e("cx",b);e("cy",h);e("rx",b);e("ry",h);break;case "line":e("x1",b);e("x2",b);e("y1",h);e("y2",h);break;case "marker":e("refX",b);e("markerWidth",b);e("refY",h);e("markerHeight",h);break;case "radialGradient":e("fx",b);e("fy",h);break;case "tspan":e("dx",b);e("dy",h);break;default:e(a,
b)}f.removeChild(B);return d}function q(c){y(c,"array")||(c=Array.prototype.slice.call(arguments,0));for(var a=0,b=0,m=this.node;this[a];)delete this[a++];for(a=0;a&lt;c.length;a++)"set"==c[a].type?c[a].forEach(function(c){m.appendChild(c.node)}):m.appendChild(c[a].node);for(var h=m.childNodes,a=0;a&lt;h.length;a++)this[b++]=x(h[a]);return this}function e(c){if(c.snap in E)return E[c.snap];var a=this.id=V(),b;try{b=c.ownerSVGElement}catch(m){}this.node=c;b&amp;&amp;(this.paper=new s(b));this.type=c.tagName;this.anims=
{};this._={transform:[]};c.snap=a;E[a]=this;"g"==this.type&amp;&amp;(this.add=q);if(this.type in{g:1,mask:1,pattern:1})for(var e in s.prototype)s.prototype[h](e)&amp;&amp;(this[e]=s.prototype[e])}function l(c){this.node=c}function r(c,a){var b=v(c);a.appendChild(b);return x(b)}function s(c,a){var b,m,f,d=s.prototype;if(c&amp;&amp;"svg"==c.tagName){if(c.snap in E)return E[c.snap];var l=c.ownerDocument;b=new e(c);m=c.getElementsByTagName("desc")[0];f=c.getElementsByTagName("defs")[0];m||(m=v("desc"),m.appendChild(l.createTextNode("Created with Snap")),
b.node.appendChild(m));f||(f=v("defs"),b.node.appendChild(f));b.defs=f;for(var ca in d)d[h](ca)&amp;&amp;(b[ca]=d[ca]);b.paper=b.root=b}else b=r("svg",G.doc.body),v(b.node,{height:a,version:1.1,width:c,xmlns:la});return b}function x(c){return!c||c instanceof e||c instanceof l?c:c.tagName&amp;&amp;"svg"==c.tagName.toLowerCase()?new s(c):c.tagName&amp;&amp;"object"==c.tagName.toLowerCase()&amp;&amp;"image/svg+xml"==c.type?new s(c.contentDocument.getElementsByTagName("svg")[0]):new e(c)}a.version="0.3.0";a.toString=function(){return"Snap v"+
this.version};a._={};var G={win:N,doc:N.document};a._.glob=G;var h="hasOwnProperty",J=String,K=parseFloat,U=parseInt,I=Math,P=I.max,Q=I.min,Y=I.abs,C=I.PI,aa="",$=Object.prototype.toString,F=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i;a._.separator=
RegExp("[,\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]+");var S=RegExp("[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*"),X={hs:1,rg:1},W=RegExp("([a-z])[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)",
"ig"),ma=RegExp("([rstm])[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)","ig"),Z=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*",
"ig"),na=0,ba="S"+(+new Date).toString(36),V=function(){return ba+(na++).toString(36)},m="http://www.w3.org/1999/xlink",la="http://www.w3.org/2000/svg",E={},ca=a.url=function(c){return"url('#"+c+"')"};a._.$=v;a._.id=V;a.format=function(){var c=/\{([^\}]+)\}/g,a=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,b=function(c,b,m){var h=m;b.replace(a,function(c,a,b,m,t){a=a||m;h&amp;&amp;(a in h&amp;&amp;(h=h[a]),"function"==typeof h&amp;&amp;t&amp;&amp;(h=h()))});return h=(null==h||h==m?c:h)+""};return function(a,m){return J(a).replace(c,
function(c,a){return b(c,a,m)})}}();a._.clone=M;a._.cacher=A;a.rad=z;a.deg=function(c){return 180*c/C%360};a.angle=w;a.is=y;a.snapTo=function(c,a,b){b=y(b,"finite")?b:10;if(y(c,"array"))for(var m=c.length;m--;){if(Y(c[m]-a)&lt;=b)return c[m]}else{c=+c;m=a%c;if(m&lt;b)return a-m;if(m&gt;c-b)return a-m+c}return a};a.getRGB=A(function(c){if(!c||(c=J(c)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ka};if("none"==c)return{r:-1,g:-1,b:-1,hex:"none",toString:ka};!X[h](c.toLowerCase().substring(0,
2))&amp;&amp;"#"!=c.charAt()&amp;&amp;(c=T(c));if(!c)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ka};var b,m,e,f,d;if(c=c.match(F)){c[2]&amp;&amp;(e=U(c[2].substring(5),16),m=U(c[2].substring(3,5),16),b=U(c[2].substring(1,3),16));c[3]&amp;&amp;(e=U((d=c[3].charAt(3))+d,16),m=U((d=c[3].charAt(2))+d,16),b=U((d=c[3].charAt(1))+d,16));c[4]&amp;&amp;(d=c[4].split(S),b=K(d[0]),"%"==d[0].slice(-1)&amp;&amp;(b*=2.55),m=K(d[1]),"%"==d[1].slice(-1)&amp;&amp;(m*=2.55),e=K(d[2]),"%"==d[2].slice(-1)&amp;&amp;(e*=2.55),"rgba"==c[1].toLowerCase().slice(0,4)&amp;&amp;(f=K(d[3])),
d[3]&amp;&amp;"%"==d[3].slice(-1)&amp;&amp;(f/=100));if(c[5])return d=c[5].split(S),b=K(d[0]),"%"==d[0].slice(-1)&amp;&amp;(b/=100),m=K(d[1]),"%"==d[1].slice(-1)&amp;&amp;(m/=100),e=K(d[2]),"%"==d[2].slice(-1)&amp;&amp;(e/=100),"deg"!=d[0].slice(-3)&amp;&amp;"\u00b0"!=d[0].slice(-1)||(b/=360),"hsba"==c[1].toLowerCase().slice(0,4)&amp;&amp;(f=K(d[3])),d[3]&amp;&amp;"%"==d[3].slice(-1)&amp;&amp;(f/=100),a.hsb2rgb(b,m,e,f);if(c[6])return d=c[6].split(S),b=K(d[0]),"%"==d[0].slice(-1)&amp;&amp;(b/=100),m=K(d[1]),"%"==d[1].slice(-1)&amp;&amp;(m/=100),e=K(d[2]),"%"==d[2].slice(-1)&amp;&amp;(e/=100),
"deg"!=d[0].slice(-3)&amp;&amp;"\u00b0"!=d[0].slice(-1)||(b/=360),"hsla"==c[1].toLowerCase().slice(0,4)&amp;&amp;(f=K(d[3])),d[3]&amp;&amp;"%"==d[3].slice(-1)&amp;&amp;(f/=100),a.hsl2rgb(b,m,e,f);b=Q(I.round(b),255);m=Q(I.round(m),255);e=Q(I.round(e),255);f=Q(P(f,0),1);c={r:b,g:m,b:e,toString:ka};c.hex="#"+(16777216|e|m&lt;&lt;8|b&lt;&lt;16).toString(16).slice(1);c.opacity=y(f,"finite")?f:1;return c}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ka}},a);a.hsb=A(function(c,b,m){return a.hsb2rgb(c,b,m).hex});a.hsl=A(function(c,b,m){return a.hsl2rgb(c,
b,m).hex});a.rgb=A(function(c,a,b,m){if(y(m,"finite")){var e=I.round;return"rgba("+[e(c),e(a),e(b),+m.toFixed(2)]+")"}return"#"+(16777216|b|a&lt;&lt;8|c&lt;&lt;16).toString(16).slice(1)});var T=function(c){var a=G.doc.getElementsByTagName("head")[0]||G.doc.getElementsByTagName("svg")[0];T=A(function(c){if("red"==c.toLowerCase())return"rgb(255, 0, 0)";a.style.color="rgb(255, 0, 0)";a.style.color=c;c=G.doc.defaultView.getComputedStyle(a,aa).getPropertyValue("color");return"rgb(255, 0, 0)"==c?null:c});return T(c)},
qa=function(){return"hsb("+[this.h,this.s,this.b]+")"},ra=function(){return"hsl("+[this.h,this.s,this.l]+")"},ka=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},D=function(c,b,m){null==b&amp;&amp;y(c,"object")&amp;&amp;"r"in c&amp;&amp;"g"in c&amp;&amp;"b"in c&amp;&amp;(m=c.b,b=c.g,c=c.r);null==b&amp;&amp;y(c,string)&amp;&amp;(m=a.getRGB(c),c=m.r,b=m.g,m=m.b);if(1&lt;c||1&lt;b||1&lt;m)c/=255,b/=255,m/=255;return[c,b,m]},oa=function(c,b,m,e){c=I.round(255*c);b=I.round(255*b);m=I.round(255*m);c={r:c,
g:b,b:m,opacity:y(e,"finite")?e:1,hex:a.rgb(c,b,m),toString:ka};y(e,"finite")&amp;&amp;(c.opacity=e);return c};a.color=function(c){var b;y(c,"object")&amp;&amp;"h"in c&amp;&amp;"s"in c&amp;&amp;"b"in c?(b=a.hsb2rgb(c),c.r=b.r,c.g=b.g,c.b=b.b,c.opacity=1,c.hex=b.hex):y(c,"object")&amp;&amp;"h"in c&amp;&amp;"s"in c&amp;&amp;"l"in c?(b=a.hsl2rgb(c),c.r=b.r,c.g=b.g,c.b=b.b,c.opacity=1,c.hex=b.hex):(y(c,"string")&amp;&amp;(c=a.getRGB(c)),y(c,"object")&amp;&amp;"r"in c&amp;&amp;"g"in c&amp;&amp;"b"in c&amp;&amp;!("error"in c)?(b=a.rgb2hsl(c),c.h=b.h,c.s=b.s,c.l=b.l,b=a.rgb2hsb(c),c.v=b.b):(c={hex:"none"},
c.r=c.g=c.b=c.h=c.s=c.v=c.l=-1,c.error=1));c.toString=ka;return c};a.hsb2rgb=function(c,a,b,m){y(c,"object")&amp;&amp;"h"in c&amp;&amp;"s"in c&amp;&amp;"b"in c&amp;&amp;(b=c.b,a=c.s,c=c.h,m=c.o);var e,h,d;c=360*c%360/60;d=b*a;a=d*(1-Y(c%2-1));b=e=h=b-d;c=~~c;b+=[d,a,0,0,a,d][c];e+=[a,d,d,a,0,0][c];h+=[0,0,a,d,d,a][c];return oa(b,e,h,m)};a.hsl2rgb=function(c,a,b,m){y(c,"object")&amp;&amp;"h"in c&amp;&amp;"s"in c&amp;&amp;"l"in c&amp;&amp;(b=c.l,a=c.s,c=c.h);if(1&lt;c||1&lt;a||1&lt;b)c/=360,a/=100,b/=100;var e,h,d;c=360*c%360/60;d=2*a*(0.5&gt;b?b:1-b);a=d*(1-Y(c%2-1));b=e=
h=b-d/2;c=~~c;b+=[d,a,0,0,a,d][c];e+=[a,d,d,a,0,0][c];h+=[0,0,a,d,d,a][c];return oa(b,e,h,m)};a.rgb2hsb=function(c,a,b){b=D(c,a,b);c=b[0];a=b[1];b=b[2];var m,e;m=P(c,a,b);e=m-Q(c,a,b);c=((0==e?0:m==c?(a-b)/e:m==a?(b-c)/e+2:(c-a)/e+4)+360)%6*60/360;return{h:c,s:0==e?0:e/m,b:m,toString:qa}};a.rgb2hsl=function(c,a,b){b=D(c,a,b);c=b[0];a=b[1];b=b[2];var m,e,h;m=P(c,a,b);e=Q(c,a,b);h=m-e;c=((0==h?0:m==c?(a-b)/h:m==a?(b-c)/h+2:(c-a)/h+4)+360)%6*60/360;m=(m+e)/2;return{h:c,s:0==h?0:0.5&gt;m?h/(2*m):h/(2-2*
m),l:m,toString:ra}};a.parsePathString=function(c){if(!c)return null;var b=a.path(c);if(b.arr)return a.path.clone(b.arr);var m={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},e=[];y(c,"array")&amp;&amp;y(c[0],"array")&amp;&amp;(e=a.path.clone(c));e.length||J(c).replace(W,function(c,a,b){var h=[];c=a.toLowerCase();b.replace(Z,function(c,a){a&amp;&amp;h.push(+a)});"m"==c&amp;&amp;2&lt;h.length&amp;&amp;(e.push([a].concat(h.splice(0,2))),c="l",a="m"==a?"l":"L");"o"==c&amp;&amp;1==h.length&amp;&amp;e.push([a,h[0] ]);if("r"==c)e.push([a].concat(h));else for(;h.length&gt;=
m[c]&amp;&amp;(e.push([a].concat(h.splice(0,m[c]))),m[c]););});e.toString=a.path.toString;b.arr=a.path.clone(e);return e};var O=a.parseTransformString=function(c){if(!c)return null;var b=[];y(c,"array")&amp;&amp;y(c[0],"array")&amp;&amp;(b=a.path.clone(c));b.length||J(c).replace(ma,function(c,a,m){var e=[];a.toLowerCase();m.replace(Z,function(c,a){a&amp;&amp;e.push(+a)});b.push([a].concat(e))});b.toString=a.path.toString;return b};a._.svgTransform2string=d;a._.rgTransform=RegExp("^[a-z][\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*-?\\.?\\d",
"i");a._.transform2matrix=f;a._unit2px=b;a._.getSomeDefs=u;a._.getSomeSVG=p;a.select=function(c){return x(G.doc.querySelector(c))};a.selectAll=function(c){c=G.doc.querySelectorAll(c);for(var b=(a.set||Array)(),m=0;m&lt;c.length;m++)b.push(x(c[m]));return b};setInterval(function(){for(var c in E)if(E[h](c)){var a=E[c],b=a.node;("svg"!=a.type&amp;&amp;!b.ownerSVGElement||"svg"==a.type&amp;&amp;(!b.parentNode||"ownerSVGElement"in b.parentNode&amp;&amp;!b.ownerSVGElement))&amp;&amp;delete E[c]}},1E4);(function(c){function m(c){function a(c,
b){var m=v(c.node,b);(m=(m=m&amp;&amp;m.match(d))&amp;&amp;m[2])&amp;&amp;"#"==m.charAt()&amp;&amp;(m=m.substring(1))&amp;&amp;(f[m]=(f[m]||[]).concat(function(a){var m={};m[b]=ca(a);v(c.node,m)}))}function b(c){var a=v(c.node,"xlink:href");a&amp;&amp;"#"==a.charAt()&amp;&amp;(a=a.substring(1))&amp;&amp;(f[a]=(f[a]||[]).concat(function(a){c.attr("xlink:href","#"+a)}))}var e=c.selectAll("*"),h,d=/^\s*url\(("|'|)(.*)\1\)\s*$/;c=[];for(var f={},l=0,E=e.length;l&lt;E;l++){h=e[l];a(h,"fill");a(h,"stroke");a(h,"filter");a(h,"mask");a(h,"clip-path");b(h);var t=v(h.node,
"id");t&amp;&amp;(v(h.node,{id:h.id}),c.push({old:t,id:h.id}))}l=0;for(E=c.length;l&lt;E;l++)if(e=f[c[l].old])for(h=0,t=e.length;h&lt;t;h++)e[h](c[l].id)}function e(c,a,b){return function(m){m=m.slice(c,a);1==m.length&amp;&amp;(m=m[0]);return b?b(m):m}}function d(c){return function(){var a=c?"&lt;"+this.type:"",b=this.node.attributes,m=this.node.childNodes;if(c)for(var e=0,h=b.length;e&lt;h;e++)a+=" "+b[e].name+'="'+b[e].value.replace(/"/g,'\\"')+'"';if(m.length){c&amp;&amp;(a+="&gt;");e=0;for(h=m.length;e&lt;h;e++)3==m[e].nodeType?a+=m[e].nodeValue:
1==m[e].nodeType&amp;&amp;(a+=x(m[e]).toString());c&amp;&amp;(a+="&lt;/"+this.type+"&gt;")}else c&amp;&amp;(a+="/&gt;");return a}}c.attr=function(c,a){if(!c)return this;if(y(c,"string"))if(1&lt;arguments.length){var b={};b[c]=a;c=b}else return k("snap.util.getattr."+c,this).firstDefined();for(var m in c)c[h](m)&amp;&amp;k("snap.util.attr."+m,this,c[m]);return this};c.getBBox=function(c){if(!a.Matrix||!a.path)return this.node.getBBox();var b=this,m=new a.Matrix;if(b.removed)return a._.box();for(;"use"==b.type;)if(c||(m=m.add(b.transform().localMatrix.translate(b.attr("x")||
0,b.attr("y")||0))),b.original)b=b.original;else var e=b.attr("xlink:href"),b=b.original=b.node.ownerDocument.getElementById(e.substring(e.indexOf("#")+1));var e=b._,h=a.path.get[b.type]||a.path.get.deflt;try{if(c)return e.bboxwt=h?a.path.getBBox(b.realPath=h(b)):a._.box(b.node.getBBox()),a._.box(e.bboxwt);b.realPath=h(b);b.matrix=b.transform().localMatrix;e.bbox=a.path.getBBox(a.path.map(b.realPath,m.add(b.matrix)));return a._.box(e.bbox)}catch(d){return a._.box()}};var f=function(){return this.string};
c.transform=function(c){var b=this._;if(null==c){var m=this;c=new a.Matrix(this.node.getCTM());for(var e=n(this),h=[e],d=new a.Matrix,l=e.toTransformString(),b=J(e)==J(this.matrix)?J(b.transform):l;"svg"!=m.type&amp;&amp;(m=m.parent());)h.push(n(m));for(m=h.length;m--;)d.add(h[m]);return{string:b,globalMatrix:c,totalMatrix:d,localMatrix:e,diffMatrix:c.clone().add(e.invert()),global:c.toTransformString(),total:d.toTransformString(),local:l,toString:f}}c instanceof a.Matrix?this.matrix=c:n(this,c);this.node&amp;&amp;
("linearGradient"==this.type||"radialGradient"==this.type?v(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?v(this.node,{patternTransform:this.matrix}):v(this.node,{transform:this.matrix}));return this};c.parent=function(){return x(this.node.parentNode)};c.append=c.add=function(c){if(c){if("set"==c.type){var a=this;c.forEach(function(c){a.add(c)});return this}c=x(c);this.node.appendChild(c.node);c.paper=this.paper}return this};c.appendTo=function(c){c&amp;&amp;(c=x(c),c.append(this));return this};
c.prepend=function(c){if(c){if("set"==c.type){var a=this,b;c.forEach(function(c){b?b.after(c):a.prepend(c);b=c});return this}c=x(c);var m=c.parent();this.node.insertBefore(c.node,this.node.firstChild);this.add&amp;&amp;this.add();c.paper=this.paper;this.parent()&amp;&amp;this.parent().add();m&amp;&amp;m.add()}return this};c.prependTo=function(c){c=x(c);c.prepend(this);return this};c.before=function(c){if("set"==c.type){var a=this;c.forEach(function(c){var b=c.parent();a.node.parentNode.insertBefore(c.node,a.node);b&amp;&amp;b.add()});
this.parent().add();return this}c=x(c);var b=c.parent();this.node.parentNode.insertBefore(c.node,this.node);this.parent()&amp;&amp;this.parent().add();b&amp;&amp;b.add();c.paper=this.paper;return this};c.after=function(c){c=x(c);var a=c.parent();this.node.nextSibling?this.node.parentNode.insertBefore(c.node,this.node.nextSibling):this.node.parentNode.appendChild(c.node);this.parent()&amp;&amp;this.parent().add();a&amp;&amp;a.add();c.paper=this.paper;return this};c.insertBefore=function(c){c=x(c);var a=this.parent();c.node.parentNode.insertBefore(this.node,
c.node);this.paper=c.paper;a&amp;&amp;a.add();c.parent()&amp;&amp;c.parent().add();return this};c.insertAfter=function(c){c=x(c);var a=this.parent();c.node.parentNode.insertBefore(this.node,c.node.nextSibling);this.paper=c.paper;a&amp;&amp;a.add();c.parent()&amp;&amp;c.parent().add();return this};c.remove=function(){var c=this.parent();this.node.parentNode&amp;&amp;this.node.parentNode.removeChild(this.node);delete this.paper;this.removed=!0;c&amp;&amp;c.add();return this};c.select=function(c){return x(this.node.querySelector(c))};c.selectAll=
function(c){c=this.node.querySelectorAll(c);for(var b=(a.set||Array)(),m=0;m&lt;c.length;m++)b.push(x(c[m]));return b};c.asPX=function(c,a){null==a&amp;&amp;(a=this.attr(c));return+b(this,c,a)};c.use=function(){var c,a=this.node.id;a||(a=this.id,v(this.node,{id:a}));c="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?r(this.type,this.node.parentNode):r("use",this.node.parentNode);v(c.node,{"xlink:href":"#"+a});c.original=this;return c};var l=/\S+/g;c.addClass=function(c){var a=(c||
"").match(l)||[];c=this.node;var b=c.className.baseVal,m=b.match(l)||[],e,h,d;if(a.length){for(e=0;d=a[e++];)h=m.indexOf(d),~h||m.push(d);a=m.join(" ");b!=a&amp;&amp;(c.className.baseVal=a)}return this};c.removeClass=function(c){var a=(c||"").match(l)||[];c=this.node;var b=c.className.baseVal,m=b.match(l)||[],e,h;if(m.length){for(e=0;h=a[e++];)h=m.indexOf(h),~h&amp;&amp;m.splice(h,1);a=m.join(" ");b!=a&amp;&amp;(c.className.baseVal=a)}return this};c.hasClass=function(c){return!!~(this.node.className.baseVal.match(l)||[]).indexOf(c)};
c.toggleClass=function(c,a){if(null!=a)return a?this.addClass(c):this.removeClass(c);var b=(c||"").match(l)||[],m=this.node,e=m.className.baseVal,h=e.match(l)||[],d,f,E;for(d=0;E=b[d++];)f=h.indexOf(E),~f?h.splice(f,1):h.push(E);b=h.join(" ");e!=b&amp;&amp;(m.className.baseVal=b);return this};c.clone=function(){var c=x(this.node.cloneNode(!0));v(c.node,"id")&amp;&amp;v(c.node,{id:c.id});m(c);c.insertAfter(this);return c};c.toDefs=function(){u(this).appendChild(this.node);return this};c.pattern=c.toPattern=function(c,
a,b,m){var e=r("pattern",u(this));null==c&amp;&amp;(c=this.getBBox());y(c,"object")&amp;&amp;"x"in c&amp;&amp;(a=c.y,b=c.width,m=c.height,c=c.x);v(e.node,{x:c,y:a,width:b,height:m,patternUnits:"userSpaceOnUse",id:e.id,viewBox:[c,a,b,m].join(" ")});e.node.appendChild(this.node);return e};c.marker=function(c,a,b,m,e,h){var d=r("marker",u(this));null==c&amp;&amp;(c=this.getBBox());y(c,"object")&amp;&amp;"x"in c&amp;&amp;(a=c.y,b=c.width,m=c.height,e=c.refX||c.cx,h=c.refY||c.cy,c=c.x);v(d.node,{viewBox:[c,a,b,m].join(" "),markerWidth:b,markerHeight:m,
orient:"auto",refX:e||0,refY:h||0,id:d.id});d.node.appendChild(this.node);return d};var E=function(c,a,b,m){"function"!=typeof b||b.length||(m=b,b=L.linear);this.attr=c;this.dur=a;b&amp;&amp;(this.easing=b);m&amp;&amp;(this.callback=m)};a._.Animation=E;a.animation=function(c,a,b,m){return new E(c,a,b,m)};c.inAnim=function(){var c=[],a;for(a in this.anims)this.anims[h](a)&amp;&amp;function(a){c.push({anim:new E(a._attrs,a.dur,a.easing,a._callback),mina:a,curStatus:a.status(),status:function(c){return a.status(c)},stop:function(){a.stop()}})}(this.anims[a]);
return c};a.animate=function(c,a,b,m,e,h){"function"!=typeof e||e.length||(h=e,e=L.linear);var d=L.time();c=L(c,a,d,d+m,L.time,b,e);h&amp;&amp;k.once("mina.finish."+c.id,h);return c};c.stop=function(){for(var c=this.inAnim(),a=0,b=c.length;a&lt;b;a++)c[a].stop();return this};c.animate=function(c,a,b,m){"function"!=typeof b||b.length||(m=b,b=L.linear);c instanceof E&amp;&amp;(m=c.callback,b=c.easing,a=b.dur,c=c.attr);var d=[],f=[],l={},t,ca,n,T=this,q;for(q in c)if(c[h](q)){T.equal?(n=T.equal(q,J(c[q])),t=n.from,ca=
n.to,n=n.f):(t=+T.attr(q),ca=+c[q]);var la=y(t,"array")?t.length:1;l[q]=e(d.length,d.length+la,n);d=d.concat(t);f=f.concat(ca)}t=L.time();var p=L(d,f,t,t+a,L.time,function(c){var a={},b;for(b in l)l[h](b)&amp;&amp;(a[b]=l[b](c));T.attr(a)},b);T.anims[p.id]=p;p._attrs=c;p._callback=m;k("snap.animcreated."+T.id,p);k.once("mina.finish."+p.id,function(){delete T.anims[p.id];m&amp;&amp;m.call(T)});k.once("mina.stop."+p.id,function(){delete T.anims[p.id]});return T};var T={};c.data=function(c,b){var m=T[this.id]=T[this.id]||
{};if(0==arguments.length)return k("snap.data.get."+this.id,this,m,null),m;if(1==arguments.length){if(a.is(c,"object")){for(var e in c)c[h](e)&amp;&amp;this.data(e,c[e]);return this}k("snap.data.get."+this.id,this,m[c],c);return m[c]}m[c]=b;k("snap.data.set."+this.id,this,b,c);return this};c.removeData=function(c){null==c?T[this.id]={}:T[this.id]&amp;&amp;delete T[this.id][c];return this};c.outerSVG=c.toString=d(1);c.innerSVG=d()})(e.prototype);a.parse=function(c){var a=G.doc.createDocumentFragment(),b=!0,m=G.doc.createElement("div");
c=J(c);c.match(/^\s*&lt;\s*svg(?:\s|&gt;)/)||(c="&lt;svg&gt;"+c+"&lt;/svg&gt;",b=!1);m.innerHTML=c;if(c=m.getElementsByTagName("svg")[0])if(b)a=c;else for(;c.firstChild;)a.appendChild(c.firstChild);m.innerHTML=aa;return new l(a)};l.prototype.select=e.prototype.select;l.prototype.selectAll=e.prototype.selectAll;a.fragment=function(){for(var c=Array.prototype.slice.call(arguments,0),b=G.doc.createDocumentFragment(),m=0,e=c.length;m&lt;e;m++){var h=c[m];h.node&amp;&amp;h.node.nodeType&amp;&amp;b.appendChild(h.node);h.nodeType&amp;&amp;b.appendChild(h);
"string"==typeof h&amp;&amp;b.appendChild(a.parse(h).node)}return new l(b)};a._.make=r;a._.wrap=x;s.prototype.el=function(c,a){var b=r(c,this.node);a&amp;&amp;b.attr(a);return b};k.on("snap.util.getattr",function(){var c=k.nt(),c=c.substring(c.lastIndexOf(".")+1),a=c.replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});return pa[h](a)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(a):v(this.node,c)});var pa={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,
"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,
"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};k.on("snap.util.attr",function(c){var a=k.nt(),b={},a=a.substring(a.lastIndexOf(".")+
1);b[a]=c;var m=a.replace(/-(\w)/gi,function(c,a){return a.toUpperCase()}),a=a.replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});pa[h](a)?this.node.style[m]=null==c?aa:c:v(this.node,b)});a.ajax=function(c,a,b,m){var e=new XMLHttpRequest,h=V();if(e){if(y(a,"function"))m=b,b=a,a=null;else if(y(a,"object")){var d=[],f;for(f in a)a.hasOwnProperty(f)&amp;&amp;d.push(encodeURIComponent(f)+"="+encodeURIComponent(a[f]));a=d.join("&amp;")}e.open(a?"POST":"GET",c,!0);a&amp;&amp;(e.setRequestHeader("X-Requested-With","XMLHttpRequest"),
e.setRequestHeader("Content-type","application/x-www-form-urlencoded"));b&amp;&amp;(k.once("snap.ajax."+h+".0",b),k.once("snap.ajax."+h+".200",b),k.once("snap.ajax."+h+".304",b));e.onreadystatechange=function(){4==e.readyState&amp;&amp;k("snap.ajax."+h+"."+e.status,m,e)};if(4==e.readyState)return e;e.send(a);return e}};a.load=function(c,b,m){a.ajax(c,function(c){c=a.parse(c.responseText);m?b.call(m,c):b(c)})};a.getElementByPoint=function(c,a){var b,m,e=G.doc.elementFromPoint(c,a);if(G.win.opera&amp;&amp;"svg"==e.tagName){b=
e;m=b.getBoundingClientRect();b=b.ownerDocument;var h=b.body,d=b.documentElement;b=m.top+(g.win.pageYOffset||d.scrollTop||h.scrollTop)-(d.clientTop||h.clientTop||0);m=m.left+(g.win.pageXOffset||d.scrollLeft||h.scrollLeft)-(d.clientLeft||h.clientLeft||0);h=e.createSVGRect();h.x=c-m;h.y=a-b;h.width=h.height=1;b=e.getIntersectionList(h,null);b.length&amp;&amp;(e=b[b.length-1])}return e?x(e):null};a.plugin=function(c){c(a,e,s,G,l)};return G.win.Snap=a}();C.plugin(function(a,k,y,M,A){function w(a,d,f,b,q,e){null==
d&amp;&amp;"[object SVGMatrix]"==z.call(a)?(this.a=a.a,this.b=a.b,this.c=a.c,this.d=a.d,this.e=a.e,this.f=a.f):null!=a?(this.a=+a,this.b=+d,this.c=+f,this.d=+b,this.e=+q,this.f=+e):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}var z=Object.prototype.toString,d=String,f=Math;(function(n){function k(a){return a[0]*a[0]+a[1]*a[1]}function p(a){var d=f.sqrt(k(a));a[0]&amp;&amp;(a[0]/=d);a[1]&amp;&amp;(a[1]/=d)}n.add=function(a,d,e,f,n,p){var k=[[],[],[] ],u=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1] ];d=[[a,
e,n],[d,f,p],[0,0,1] ];a&amp;&amp;a instanceof w&amp;&amp;(d=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1] ]);for(a=0;3&gt;a;a++)for(e=0;3&gt;e;e++){for(f=n=0;3&gt;f;f++)n+=u[a][f]*d[f][e];k[a][e]=n}this.a=k[0][0];this.b=k[1][0];this.c=k[0][1];this.d=k[1][1];this.e=k[0][2];this.f=k[1][2];return this};n.invert=function(){var a=this.a*this.d-this.b*this.c;return new w(this.d/a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*this.e)/a,(this.b*this.e-this.a*this.f)/a)};n.clone=function(){return new w(this.a,this.b,this.c,this.d,this.e,
this.f)};n.translate=function(a,d){return this.add(1,0,0,1,a,d)};n.scale=function(a,d,e,f){null==d&amp;&amp;(d=a);(e||f)&amp;&amp;this.add(1,0,0,1,e,f);this.add(a,0,0,d,0,0);(e||f)&amp;&amp;this.add(1,0,0,1,-e,-f);return this};n.rotate=function(b,d,e){b=a.rad(b);d=d||0;e=e||0;var l=+f.cos(b).toFixed(9);b=+f.sin(b).toFixed(9);this.add(l,b,-b,l,d,e);return this.add(1,0,0,1,-d,-e)};n.x=function(a,d){return a*this.a+d*this.c+this.e};n.y=function(a,d){return a*this.b+d*this.d+this.f};n.get=function(a){return+this[d.fromCharCode(97+
a)].toFixed(4)};n.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"};n.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};n.determinant=function(){return this.a*this.d-this.b*this.c};n.split=function(){var b={};b.dx=this.e;b.dy=this.f;var d=[[this.a,this.c],[this.b,this.d] ];b.scalex=f.sqrt(k(d[0]));p(d[0]);b.shear=d[0][0]*d[1][0]+d[0][1]*d[1][1];d[1]=[d[1][0]-d[0][0]*b.shear,d[1][1]-d[0][1]*b.shear];b.scaley=f.sqrt(k(d[1]));
p(d[1]);b.shear/=b.scaley;0&gt;this.determinant()&amp;&amp;(b.scalex=-b.scalex);var e=-d[0][1],d=d[1][1];0&gt;d?(b.rotate=a.deg(f.acos(d)),0&gt;e&amp;&amp;(b.rotate=360-b.rotate)):b.rotate=a.deg(f.asin(e));b.isSimple=!+b.shear.toFixed(9)&amp;&amp;(b.scalex.toFixed(9)==b.scaley.toFixed(9)||!b.rotate);b.isSuperSimple=!+b.shear.toFixed(9)&amp;&amp;b.scalex.toFixed(9)==b.scaley.toFixed(9)&amp;&amp;!b.rotate;b.noRotation=!+b.shear.toFixed(9)&amp;&amp;!b.rotate;return b};n.toTransformString=function(a){a=a||this.split();if(+a.shear.toFixed(9))return"m"+[this.get(0),
this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)];a.scalex=+a.scalex.toFixed(4);a.scaley=+a.scaley.toFixed(4);a.rotate=+a.rotate.toFixed(4);return(a.dx||a.dy?"t"+[+a.dx.toFixed(4),+a.dy.toFixed(4)]:"")+(1!=a.scalex||1!=a.scaley?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[+a.rotate.toFixed(4),0,0]:"")}})(w.prototype);a.Matrix=w;a.matrix=function(a,d,f,b,k,e){return new w(a,d,f,b,k,e)}});C.plugin(function(a,v,y,M,A){function w(h){return function(d){k.stop();d instanceof A&amp;&amp;1==d.node.childNodes.length&amp;&amp;
("radialGradient"==d.node.firstChild.tagName||"linearGradient"==d.node.firstChild.tagName||"pattern"==d.node.firstChild.tagName)&amp;&amp;(d=d.node.firstChild,b(this).appendChild(d),d=u(d));if(d instanceof v)if("radialGradient"==d.type||"linearGradient"==d.type||"pattern"==d.type){d.node.id||e(d.node,{id:d.id});var f=l(d.node.id)}else f=d.attr(h);else f=a.color(d),f.error?(f=a(b(this).ownerSVGElement).gradient(d))?(f.node.id||e(f.node,{id:f.id}),f=l(f.node.id)):f=d:f=r(f);d={};d[h]=f;e(this.node,d);this.node.style[h]=
x}}function z(a){k.stop();a==+a&amp;&amp;(a+="px");this.node.style.fontSize=a}function d(a){var b=[];a=a.childNodes;for(var e=0,f=a.length;e&lt;f;e++){var l=a[e];3==l.nodeType&amp;&amp;b.push(l.nodeValue);"tspan"==l.tagName&amp;&amp;(1==l.childNodes.length&amp;&amp;3==l.firstChild.nodeType?b.push(l.firstChild.nodeValue):b.push(d(l)))}return b}function f(){k.stop();return this.node.style.fontSize}var n=a._.make,u=a._.wrap,p=a.is,b=a._.getSomeDefs,q=/^url\(#?([^)]+)\)$/,e=a._.$,l=a.url,r=String,s=a._.separator,x="";k.on("snap.util.attr.mask",
function(a){if(a instanceof v||a instanceof A){k.stop();a instanceof A&amp;&amp;1==a.node.childNodes.length&amp;&amp;(a=a.node.firstChild,b(this).appendChild(a),a=u(a));if("mask"==a.type)var d=a;else d=n("mask",b(this)),d.node.appendChild(a.node);!d.node.id&amp;&amp;e(d.node,{id:d.id});e(this.node,{mask:l(d.id)})}});(function(a){k.on("snap.util.attr.clip",a);k.on("snap.util.attr.clip-path",a);k.on("snap.util.attr.clipPath",a)})(function(a){if(a instanceof v||a instanceof A){k.stop();if("clipPath"==a.type)var d=a;else d=
n("clipPath",b(this)),d.node.appendChild(a.node),!d.node.id&amp;&amp;e(d.node,{id:d.id});e(this.node,{"clip-path":l(d.id)})}});k.on("snap.util.attr.fill",w("fill"));k.on("snap.util.attr.stroke",w("stroke"));var G=/^([lr])(?:\(([^)]*)\))?(.*)$/i;k.on("snap.util.grad.parse",function(a){a=r(a);var b=a.match(G);if(!b)return null;a=b[1];var e=b[2],b=b[3],e=e.split(/\s*,\s*/).map(function(a){return+a==a?+a:a});1==e.length&amp;&amp;0==e[0]&amp;&amp;(e=[]);b=b.split("-");b=b.map(function(a){a=a.split(":");var b={color:a[0]};a[1]&amp;&amp;
(b.offset=parseFloat(a[1]));return b});return{type:a,params:e,stops:b}});k.on("snap.util.attr.d",function(b){k.stop();p(b,"array")&amp;&amp;p(b[0],"array")&amp;&amp;(b=a.path.toString.call(b));b=r(b);b.match(/[ruo]/i)&amp;&amp;(b=a.path.toAbsolute(b));e(this.node,{d:b})})(-1);k.on("snap.util.attr.#text",function(a){k.stop();a=r(a);for(a=M.doc.createTextNode(a);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(a)})(-1);k.on("snap.util.attr.path",function(a){k.stop();this.attr({d:a})})(-1);
k.on("snap.util.attr.class",function(a){k.stop();this.node.className.baseVal=a})(-1);k.on("snap.util.attr.viewBox",function(a){a=p(a,"object")&amp;&amp;"x"in a?[a.x,a.y,a.width,a.height].join(" "):p(a,"array")?a.join(" "):a;e(this.node,{viewBox:a});k.stop()})(-1);k.on("snap.util.attr.transform",function(a){this.transform(a);k.stop()})(-1);k.on("snap.util.attr.r",function(a){"rect"==this.type&amp;&amp;(k.stop(),e(this.node,{rx:a,ry:a}))})(-1);k.on("snap.util.attr.textpath",function(a){k.stop();if("text"==this.type){var d,
f;if(!a&amp;&amp;this.textPath){for(a=this.textPath;a.node.firstChild;)this.node.appendChild(a.node.firstChild);a.remove();delete this.textPath}else if(p(a,"string")?(d=b(this),a=u(d.parentNode).path(a),d.appendChild(a.node),d=a.id,a.attr({id:d})):(a=u(a),a instanceof v&amp;&amp;(d=a.attr("id"),d||(d=a.id,a.attr({id:d})))),d)if(a=this.textPath,f=this.node,a)a.attr({"xlink:href":"#"+d});else{for(a=e("textPath",{"xlink:href":"#"+d});f.firstChild;)a.appendChild(f.firstChild);f.appendChild(a);this.textPath=u(a)}}})(-1);
k.on("snap.util.attr.text",function(a){if("text"==this.type){for(var b=this.node,d=function(a){var b=e("tspan");if(p(a,"array"))for(var f=0;f&lt;a.length;f++)b.appendChild(d(a[f]));else b.appendChild(M.doc.createTextNode(a));b.normalize&amp;&amp;b.normalize();return b};b.firstChild;)b.removeChild(b.firstChild);for(a=d(a);a.firstChild;)b.appendChild(a.firstChild)}k.stop()})(-1);k.on("snap.util.attr.fontSize",z)(-1);k.on("snap.util.attr.font-size",z)(-1);k.on("snap.util.getattr.transform",function(){k.stop();
return this.transform()})(-1);k.on("snap.util.getattr.textpath",function(){k.stop();return this.textPath})(-1);(function(){function b(d){return function(){k.stop();var b=M.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+d);return"none"==b?b:a(M.doc.getElementById(b.match(q)[1]))}}function d(a){return function(b){k.stop();var d="marker"+a.charAt(0).toUpperCase()+a.substring(1);if(""==b||!b)this.node.style[d]="none";else if("marker"==b.type){var f=b.node.id;f||e(b.node,{id:b.id});
this.node.style[d]=l(f)}}}k.on("snap.util.getattr.marker-end",b("end"))(-1);k.on("snap.util.getattr.markerEnd",b("end"))(-1);k.on("snap.util.getattr.marker-start",b("start"))(-1);k.on("snap.util.getattr.markerStart",b("start"))(-1);k.on("snap.util.getattr.marker-mid",b("mid"))(-1);k.on("snap.util.getattr.markerMid",b("mid"))(-1);k.on("snap.util.attr.marker-end",d("end"))(-1);k.on("snap.util.attr.markerEnd",d("end"))(-1);k.on("snap.util.attr.marker-start",d("start"))(-1);k.on("snap.util.attr.markerStart",
d("start"))(-1);k.on("snap.util.attr.marker-mid",d("mid"))(-1);k.on("snap.util.attr.markerMid",d("mid"))(-1)})();k.on("snap.util.getattr.r",function(){if("rect"==this.type&amp;&amp;e(this.node,"rx")==e(this.node,"ry"))return k.stop(),e(this.node,"rx")})(-1);k.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){k.stop();var a=d(this.node);return 1==a.length?a[0]:a}})(-1);k.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1);k.on("snap.util.getattr.viewBox",
function(){k.stop();var b=e(this.node,"viewBox");if(b)return b=b.split(s),a._.box(+b[0],+b[1],+b[2],+b[3])})(-1);k.on("snap.util.getattr.points",function(){var a=e(this.node,"points");k.stop();if(a)return a.split(s)})(-1);k.on("snap.util.getattr.path",function(){var a=e(this.node,"d");k.stop();return a})(-1);k.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1);k.on("snap.util.getattr.fontSize",f)(-1);k.on("snap.util.getattr.font-size",f)(-1)});C.plugin(function(a,v,y,
M,A){function w(a){return a}function z(a){return function(b){return+b.toFixed(3)+a}}var d={"+":function(a,b){return a+b},"-":function(a,b){return a-b},"/":function(a,b){return a/b},"*":function(a,b){return a*b}},f=String,n=/[a-z]+$/i,u=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;k.on("snap.util.attr",function(a){if(a=f(a).match(u)){var b=k.nt(),b=b.substring(b.lastIndexOf(".")+1),q=this.attr(b),e={};k.stop();var l=a[3]||"",r=q.match(n),s=d[a[1] ];r&amp;&amp;r==l?a=s(parseFloat(q),+a[2]):(q=this.asPX(b),
a=s(this.asPX(b),this.asPX(b,a[2]+l)));isNaN(q)||isNaN(a)||(e[b]=a,this.attr(e))}})(-10);k.on("snap.util.equal",function(a,b){var q=f(this.attr(a)||""),e=f(b).match(u);if(e){k.stop();var l=e[3]||"",r=q.match(n),s=d[e[1] ];if(r&amp;&amp;r==l)return{from:parseFloat(q),to:s(parseFloat(q),+e[2]),f:z(r)};q=this.asPX(a);return{from:q,to:s(q,this.asPX(a,e[2]+l)),f:w}}})(-10)});C.plugin(function(a,v,y,M,A){var w=y.prototype,z=a.is;w.rect=function(a,d,k,p,b,q){var e;null==q&amp;&amp;(q=b);z(a,"object")&amp;&amp;"[object Object]"==
a?e=a:null!=a&amp;&amp;(e={x:a,y:d,width:k,height:p},null!=b&amp;&amp;(e.rx=b,e.ry=q));return this.el("rect",e)};w.circle=function(a,d,k){var p;z(a,"object")&amp;&amp;"[object Object]"==a?p=a:null!=a&amp;&amp;(p={cx:a,cy:d,r:k});return this.el("circle",p)};var d=function(){function a(){this.parentNode.removeChild(this)}return function(d,k){var p=M.doc.createElement("img"),b=M.doc.body;p.style.cssText="position:absolute;left:-9999em;top:-9999em";p.onload=function(){k.call(p);p.onload=p.onerror=null;b.removeChild(p)};p.onerror=a;
b.appendChild(p);p.src=d}}();w.image=function(f,n,k,p,b){var q=this.el("image");if(z(f,"object")&amp;&amp;"src"in f)q.attr(f);else if(null!=f){var e={"xlink:href":f,preserveAspectRatio:"none"};null!=n&amp;&amp;null!=k&amp;&amp;(e.x=n,e.y=k);null!=p&amp;&amp;null!=b?(e.width=p,e.height=b):d(f,function(){a._.$(q.node,{width:this.offsetWidth,height:this.offsetHeight})});a._.$(q.node,e)}return q};w.ellipse=function(a,d,k,p){var b;z(a,"object")&amp;&amp;"[object Object]"==a?b=a:null!=a&amp;&amp;(b={cx:a,cy:d,rx:k,ry:p});return this.el("ellipse",b)};
w.path=function(a){var d;z(a,"object")&amp;&amp;!z(a,"array")?d=a:a&amp;&amp;(d={d:a});return this.el("path",d)};w.group=w.g=function(a){var d=this.el("g");1==arguments.length&amp;&amp;a&amp;&amp;!a.type?d.attr(a):arguments.length&amp;&amp;d.add(Array.prototype.slice.call(arguments,0));return d};w.svg=function(a,d,k,p,b,q,e,l){var r={};z(a,"object")&amp;&amp;null==d?r=a:(null!=a&amp;&amp;(r.x=a),null!=d&amp;&amp;(r.y=d),null!=k&amp;&amp;(r.width=k),null!=p&amp;&amp;(r.height=p),null!=b&amp;&amp;null!=q&amp;&amp;null!=e&amp;&amp;null!=l&amp;&amp;(r.viewBox=[b,q,e,l]));return this.el("svg",r)};w.mask=function(a){var d=
this.el("mask");1==arguments.length&amp;&amp;a&amp;&amp;!a.type?d.attr(a):arguments.length&amp;&amp;d.add(Array.prototype.slice.call(arguments,0));return d};w.ptrn=function(a,d,k,p,b,q,e,l){if(z(a,"object"))var r=a;else arguments.length?(r={},null!=a&amp;&amp;(r.x=a),null!=d&amp;&amp;(r.y=d),null!=k&amp;&amp;(r.width=k),null!=p&amp;&amp;(r.height=p),null!=b&amp;&amp;null!=q&amp;&amp;null!=e&amp;&amp;null!=l&amp;&amp;(r.viewBox=[b,q,e,l])):r={patternUnits:"userSpaceOnUse"};return this.el("pattern",r)};w.use=function(a){return null!=a?(make("use",this.node),a instanceof v&amp;&amp;(a.attr("id")||
a.attr({id:ID()}),a=a.attr("id")),this.el("use",{"xlink:href":a})):v.prototype.use.call(this)};w.text=function(a,d,k){var p={};z(a,"object")?p=a:null!=a&amp;&amp;(p={x:a,y:d,text:k||""});return this.el("text",p)};w.line=function(a,d,k,p){var b={};z(a,"object")?b=a:null!=a&amp;&amp;(b={x1:a,x2:k,y1:d,y2:p});return this.el("line",b)};w.polyline=function(a){1&lt;arguments.length&amp;&amp;(a=Array.prototype.slice.call(arguments,0));var d={};z(a,"object")&amp;&amp;!z(a,"array")?d=a:null!=a&amp;&amp;(d={points:a});return this.el("polyline",d)};
w.polygon=function(a){1&lt;arguments.length&amp;&amp;(a=Array.prototype.slice.call(arguments,0));var d={};z(a,"object")&amp;&amp;!z(a,"array")?d=a:null!=a&amp;&amp;(d={points:a});return this.el("polygon",d)};(function(){function d(){return this.selectAll("stop")}function n(b,d){var f=e("stop"),k={offset:+d+"%"};b=a.color(b);k["stop-color"]=b.hex;1&gt;b.opacity&amp;&amp;(k["stop-opacity"]=b.opacity);e(f,k);this.node.appendChild(f);return this}function u(){if("linearGradient"==this.type){var b=e(this.node,"x1")||0,d=e(this.node,"x2")||
1,f=e(this.node,"y1")||0,k=e(this.node,"y2")||0;return a._.box(b,f,math.abs(d-b),math.abs(k-f))}b=this.node.r||0;return a._.box((this.node.cx||0.5)-b,(this.node.cy||0.5)-b,2*b,2*b)}function p(a,d){function f(a,b){for(var d=(b-u)/(a-w),e=w;e&lt;a;e++)h[e].offset=+(+u+d*(e-w)).toFixed(2);w=a;u=b}var n=k("snap.util.grad.parse",null,d).firstDefined(),p;if(!n)return null;n.params.unshift(a);p="l"==n.type.toLowerCase()?b.apply(0,n.params):q.apply(0,n.params);n.type!=n.type.toLowerCase()&amp;&amp;e(p.node,{gradientUnits:"userSpaceOnUse"});
var h=n.stops,n=h.length,u=0,w=0;n--;for(var v=0;v&lt;n;v++)"offset"in h[v]&amp;&amp;f(v,h[v].offset);h[n].offset=h[n].offset||100;f(n,h[n].offset);for(v=0;v&lt;=n;v++){var y=h[v];p.addStop(y.color,y.offset)}return p}function b(b,k,p,q,w){b=a._.make("linearGradient",b);b.stops=d;b.addStop=n;b.getBBox=u;null!=k&amp;&amp;e(b.node,{x1:k,y1:p,x2:q,y2:w});return b}function q(b,k,p,q,w,h){b=a._.make("radialGradient",b);b.stops=d;b.addStop=n;b.getBBox=u;null!=k&amp;&amp;e(b.node,{cx:k,cy:p,r:q});null!=w&amp;&amp;null!=h&amp;&amp;e(b.node,{fx:w,fy:h});
return b}var e=a._.$;w.gradient=function(a){return p(this.defs,a)};w.gradientLinear=function(a,d,e,f){return b(this.defs,a,d,e,f)};w.gradientRadial=function(a,b,d,e,f){return q(this.defs,a,b,d,e,f)};w.toString=function(){var b=this.node.ownerDocument,d=b.createDocumentFragment(),b=b.createElement("div"),e=this.node.cloneNode(!0);d.appendChild(b);b.appendChild(e);a._.$(e,{xmlns:"http://www.w3.org/2000/svg"});b=b.innerHTML;d.removeChild(d.firstChild);return b};w.clear=function(){for(var a=this.node.firstChild,
b;a;)b=a.nextSibling,"defs"!=a.tagName?a.parentNode.removeChild(a):w.clear.call({node:a}),a=b}})()});C.plugin(function(a,k,y,M){function A(a){var b=A.ps=A.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100};setTimeout(function(){for(var d in b)b[L](d)&amp;&amp;d!=a&amp;&amp;(b[d].sleep--,!b[d].sleep&amp;&amp;delete b[d])});return b[a]}function w(a,b,d,e){null==a&amp;&amp;(a=b=d=e=0);null==b&amp;&amp;(b=a.y,d=a.width,e=a.height,a=a.x);return{x:a,y:b,width:d,w:d,height:e,h:e,x2:a+d,y2:b+e,cx:a+d/2,cy:b+e/2,r1:F.min(d,e)/2,r2:F.max(d,e)/2,r0:F.sqrt(d*
d+e*e)/2,path:s(a,b,d,e),vb:[a,b,d,e].join(" ")}}function z(){return this.join(",").replace(N,"$1")}function d(a){a=C(a);a.toString=z;return a}function f(a,b,d,h,f,k,l,n,p){if(null==p)return e(a,b,d,h,f,k,l,n);if(0&gt;p||e(a,b,d,h,f,k,l,n)&lt;p)p=void 0;else{var q=0.5,O=1-q,s;for(s=e(a,b,d,h,f,k,l,n,O);0.01&lt;Z(s-p);)q/=2,O+=(s&lt;p?1:-1)*q,s=e(a,b,d,h,f,k,l,n,O);p=O}return u(a,b,d,h,f,k,l,n,p)}function n(b,d){function e(a){return+(+a).toFixed(3)}return a._.cacher(function(a,h,l){a instanceof k&amp;&amp;(a=a.attr("d"));
a=I(a);for(var n,p,D,q,O="",s={},c=0,t=0,r=a.length;t&lt;r;t++){D=a[t];if("M"==D[0])n=+D[1],p=+D[2];else{q=f(n,p,D[1],D[2],D[3],D[4],D[5],D[6]);if(c+q&gt;h){if(d&amp;&amp;!s.start){n=f(n,p,D[1],D[2],D[3],D[4],D[5],D[6],h-c);O+=["C"+e(n.start.x),e(n.start.y),e(n.m.x),e(n.m.y),e(n.x),e(n.y)];if(l)return O;s.start=O;O=["M"+e(n.x),e(n.y)+"C"+e(n.n.x),e(n.n.y),e(n.end.x),e(n.end.y),e(D[5]),e(D[6])].join();c+=q;n=+D[5];p=+D[6];continue}if(!b&amp;&amp;!d)return n=f(n,p,D[1],D[2],D[3],D[4],D[5],D[6],h-c)}c+=q;n=+D[5];p=+D[6]}O+=
D.shift()+D}s.end=O;return n=b?c:d?s:u(n,p,D[0],D[1],D[2],D[3],D[4],D[5],1)},null,a._.clone)}function u(a,b,d,e,h,f,k,l,n){var p=1-n,q=ma(p,3),s=ma(p,2),c=n*n,t=c*n,r=q*a+3*s*n*d+3*p*n*n*h+t*k,q=q*b+3*s*n*e+3*p*n*n*f+t*l,s=a+2*n*(d-a)+c*(h-2*d+a),t=b+2*n*(e-b)+c*(f-2*e+b),x=d+2*n*(h-d)+c*(k-2*h+d),c=e+2*n*(f-e)+c*(l-2*f+e);a=p*a+n*d;b=p*b+n*e;h=p*h+n*k;f=p*f+n*l;l=90-180*F.atan2(s-x,t-c)/S;return{x:r,y:q,m:{x:s,y:t},n:{x:x,y:c},start:{x:a,y:b},end:{x:h,y:f},alpha:l}}function p(b,d,e,h,f,n,k,l){a.is(b,
"array")||(b=[b,d,e,h,f,n,k,l]);b=U.apply(null,b);return w(b.min.x,b.min.y,b.max.x-b.min.x,b.max.y-b.min.y)}function b(a,b,d){return b&gt;=a.x&amp;&amp;b&lt;=a.x+a.width&amp;&amp;d&gt;=a.y&amp;&amp;d&lt;=a.y+a.height}function q(a,d){a=w(a);d=w(d);return b(d,a.x,a.y)||b(d,a.x2,a.y)||b(d,a.x,a.y2)||b(d,a.x2,a.y2)||b(a,d.x,d.y)||b(a,d.x2,d.y)||b(a,d.x,d.y2)||b(a,d.x2,d.y2)||(a.x&lt;d.x2&amp;&amp;a.x&gt;d.x||d.x&lt;a.x2&amp;&amp;d.x&gt;a.x)&amp;&amp;(a.y&lt;d.y2&amp;&amp;a.y&gt;d.y||d.y&lt;a.y2&amp;&amp;d.y&gt;a.y)}function e(a,b,d,e,h,f,n,k,l){null==l&amp;&amp;(l=1);l=(1&lt;l?1:0&gt;l?0:l)/2;for(var p=[-0.1252,
0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],q=[0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],s=0,c=0;12&gt;c;c++)var t=l*p[c]+l,r=t*(t*(-3*a+9*d-9*h+3*n)+6*a-12*d+6*h)-3*a+3*d,t=t*(t*(-3*b+9*e-9*f+3*k)+6*b-12*e+6*f)-3*b+3*e,s=s+q[c]*F.sqrt(r*r+t*t);return l*s}function l(a,b,d){a=I(a);b=I(b);for(var h,f,l,n,k,s,r,O,x,c,t=d?0:[],w=0,v=a.length;w&lt;v;w++)if(x=a[w],"M"==x[0])h=k=x[1],f=s=x[2];else{"C"==x[0]?(x=[h,f].concat(x.slice(1)),
h=x[6],f=x[7]):(x=[h,f,h,f,k,s,k,s],h=k,f=s);for(var G=0,y=b.length;G&lt;y;G++)if(c=b[G],"M"==c[0])l=r=c[1],n=O=c[2];else{"C"==c[0]?(c=[l,n].concat(c.slice(1)),l=c[6],n=c[7]):(c=[l,n,l,n,r,O,r,O],l=r,n=O);var z;var K=x,B=c;z=d;var H=p(K),J=p(B);if(q(H,J)){for(var H=e.apply(0,K),J=e.apply(0,B),H=~~(H/8),J=~~(J/8),U=[],A=[],F={},M=z?0:[],P=0;P&lt;H+1;P++){var C=u.apply(0,K.concat(P/H));U.push({x:C.x,y:C.y,t:P/H})}for(P=0;P&lt;J+1;P++)C=u.apply(0,B.concat(P/J)),A.push({x:C.x,y:C.y,t:P/J});for(P=0;P&lt;H;P++)for(K=
0;K&lt;J;K++){var Q=U[P],L=U[P+1],B=A[K],C=A[K+1],N=0.001&gt;Z(L.x-Q.x)?"y":"x",S=0.001&gt;Z(C.x-B.x)?"y":"x",R;R=Q.x;var Y=Q.y,V=L.x,ea=L.y,fa=B.x,ga=B.y,ha=C.x,ia=C.y;if(W(R,V)&lt;X(fa,ha)||X(R,V)&gt;W(fa,ha)||W(Y,ea)&lt;X(ga,ia)||X(Y,ea)&gt;W(ga,ia))R=void 0;else{var $=(R*ea-Y*V)*(fa-ha)-(R-V)*(fa*ia-ga*ha),aa=(R*ea-Y*V)*(ga-ia)-(Y-ea)*(fa*ia-ga*ha),ja=(R-V)*(ga-ia)-(Y-ea)*(fa-ha);if(ja){var $=$/ja,aa=aa/ja,ja=+$.toFixed(2),ba=+aa.toFixed(2);R=ja&lt;+X(R,V).toFixed(2)||ja&gt;+W(R,V).toFixed(2)||ja&lt;+X(fa,ha).toFixed(2)||
ja&gt;+W(fa,ha).toFixed(2)||ba&lt;+X(Y,ea).toFixed(2)||ba&gt;+W(Y,ea).toFixed(2)||ba&lt;+X(ga,ia).toFixed(2)||ba&gt;+W(ga,ia).toFixed(2)?void 0:{x:$,y:aa}}else R=void 0}R&amp;&amp;F[R.x.toFixed(4)]!=R.y.toFixed(4)&amp;&amp;(F[R.x.toFixed(4)]=R.y.toFixed(4),Q=Q.t+Z((R[N]-Q[N])/(L[N]-Q[N]))*(L.t-Q.t),B=B.t+Z((R[S]-B[S])/(C[S]-B[S]))*(C.t-B.t),0&lt;=Q&amp;&amp;1&gt;=Q&amp;&amp;0&lt;=B&amp;&amp;1&gt;=B&amp;&amp;(z?M++:M.push({x:R.x,y:R.y,t1:Q,t2:B})))}z=M}else z=z?0:[];if(d)t+=z;else{H=0;for(J=z.length;H&lt;J;H++)z[H].segment1=w,z[H].segment2=G,z[H].bez1=x,z[H].bez2=c;t=t.concat(z)}}}return t}
function r(a){var b=A(a);if(b.bbox)return C(b.bbox);if(!a)return w();a=I(a);for(var d=0,e=0,h=[],f=[],l,n=0,k=a.length;n&lt;k;n++)l=a[n],"M"==l[0]?(d=l[1],e=l[2],h.push(d),f.push(e)):(d=U(d,e,l[1],l[2],l[3],l[4],l[5],l[6]),h=h.concat(d.min.x,d.max.x),f=f.concat(d.min.y,d.max.y),d=l[5],e=l[6]);a=X.apply(0,h);l=X.apply(0,f);h=W.apply(0,h);f=W.apply(0,f);f=w(a,l,h-a,f-l);b.bbox=C(f);return f}function s(a,b,d,e,h){if(h)return[["M",+a+ +h,b],["l",d-2*h,0],["a",h,h,0,0,1,h,h],["l",0,e-2*h],["a",h,h,0,0,1,
-h,h],["l",2*h-d,0],["a",h,h,0,0,1,-h,-h],["l",0,2*h-e],["a",h,h,0,0,1,h,-h],["z"] ];a=[["M",a,b],["l",d,0],["l",0,e],["l",-d,0],["z"] ];a.toString=z;return a}function x(a,b,d,e,h){null==h&amp;&amp;null==e&amp;&amp;(e=d);a=+a;b=+b;d=+d;e=+e;if(null!=h){var f=Math.PI/180,l=a+d*Math.cos(-e*f);a+=d*Math.cos(-h*f);var n=b+d*Math.sin(-e*f);b+=d*Math.sin(-h*f);d=[["M",l,n],["A",d,d,0,+(180&lt;h-e),0,a,b] ]}else d=[["M",a,b],["m",0,-e],["a",d,e,0,1,1,0,2*e],["a",d,e,0,1,1,0,-2*e],["z"] ];d.toString=z;return d}function G(b){var e=
A(b);if(e.abs)return d(e.abs);Q(b,"array")&amp;&amp;Q(b&amp;&amp;b[0],"array")||(b=a.parsePathString(b));if(!b||!b.length)return[["M",0,0] ];var h=[],f=0,l=0,n=0,k=0,p=0;"M"==b[0][0]&amp;&amp;(f=+b[0][1],l=+b[0][2],n=f,k=l,p++,h[0]=["M",f,l]);for(var q=3==b.length&amp;&amp;"M"==b[0][0]&amp;&amp;"R"==b[1][0].toUpperCase()&amp;&amp;"Z"==b[2][0].toUpperCase(),s,r,w=p,c=b.length;w&lt;c;w++){h.push(s=[]);r=b[w];p=r[0];if(p!=p.toUpperCase())switch(s[0]=p.toUpperCase(),s[0]){case "A":s[1]=r[1];s[2]=r[2];s[3]=r[3];s[4]=r[4];s[5]=r[5];s[6]=+r[6]+f;s[7]=+r[7]+
l;break;case "V":s[1]=+r[1]+l;break;case "H":s[1]=+r[1]+f;break;case "R":for(var t=[f,l].concat(r.slice(1)),u=2,v=t.length;u&lt;v;u++)t[u]=+t[u]+f,t[++u]=+t[u]+l;h.pop();h=h.concat(P(t,q));break;case "O":h.pop();t=x(f,l,r[1],r[2]);t.push(t[0]);h=h.concat(t);break;case "U":h.pop();h=h.concat(x(f,l,r[1],r[2],r[3]));s=["U"].concat(h[h.length-1].slice(-2));break;case "M":n=+r[1]+f,k=+r[2]+l;default:for(u=1,v=r.length;u&lt;v;u++)s[u]=+r[u]+(u%2?f:l)}else if("R"==p)t=[f,l].concat(r.slice(1)),h.pop(),h=h.concat(P(t,
q)),s=["R"].concat(r.slice(-2));else if("O"==p)h.pop(),t=x(f,l,r[1],r[2]),t.push(t[0]),h=h.concat(t);else if("U"==p)h.pop(),h=h.concat(x(f,l,r[1],r[2],r[3])),s=["U"].concat(h[h.length-1].slice(-2));else for(t=0,u=r.length;t&lt;u;t++)s[t]=r[t];p=p.toUpperCase();if("O"!=p)switch(s[0]){case "Z":f=+n;l=+k;break;case "H":f=s[1];break;case "V":l=s[1];break;case "M":n=s[s.length-2],k=s[s.length-1];default:f=s[s.length-2],l=s[s.length-1]}}h.toString=z;e.abs=d(h);return h}function h(a,b,d,e){return[a,b,d,e,d,
e]}function J(a,b,d,e,h,f){var l=1/3,n=2/3;return[l*a+n*d,l*b+n*e,l*h+n*d,l*f+n*e,h,f]}function K(b,d,e,h,f,l,n,k,p,s){var r=120*S/180,q=S/180*(+f||0),c=[],t,x=a._.cacher(function(a,b,c){var d=a*F.cos(c)-b*F.sin(c);a=a*F.sin(c)+b*F.cos(c);return{x:d,y:a}});if(s)v=s[0],t=s[1],l=s[2],u=s[3];else{t=x(b,d,-q);b=t.x;d=t.y;t=x(k,p,-q);k=t.x;p=t.y;F.cos(S/180*f);F.sin(S/180*f);t=(b-k)/2;v=(d-p)/2;u=t*t/(e*e)+v*v/(h*h);1&lt;u&amp;&amp;(u=F.sqrt(u),e*=u,h*=u);var u=e*e,w=h*h,u=(l==n?-1:1)*F.sqrt(Z((u*w-u*v*v-w*t*t)/
(u*v*v+w*t*t)));l=u*e*v/h+(b+k)/2;var u=u*-h*t/e+(d+p)/2,v=F.asin(((d-u)/h).toFixed(9));t=F.asin(((p-u)/h).toFixed(9));v=b&lt;l?S-v:v;t=k&lt;l?S-t:t;0&gt;v&amp;&amp;(v=2*S+v);0&gt;t&amp;&amp;(t=2*S+t);n&amp;&amp;v&gt;t&amp;&amp;(v-=2*S);!n&amp;&amp;t&gt;v&amp;&amp;(t-=2*S)}if(Z(t-v)&gt;r){var c=t,w=k,G=p;t=v+r*(n&amp;&amp;t&gt;v?1:-1);k=l+e*F.cos(t);p=u+h*F.sin(t);c=K(k,p,e,h,f,0,n,w,G,[t,c,l,u])}l=t-v;f=F.cos(v);r=F.sin(v);n=F.cos(t);t=F.sin(t);l=F.tan(l/4);e=4/3*e*l;l*=4/3*h;h=[b,d];b=[b+e*r,d-l*f];d=[k+e*t,p-l*n];k=[k,p];b[0]=2*h[0]-b[0];b[1]=2*h[1]-b[1];if(s)return[b,d,k].concat(c);
c=[b,d,k].concat(c).join().split(",");s=[];k=0;for(p=c.length;k&lt;p;k++)s[k]=k%2?x(c[k-1],c[k],q).y:x(c[k],c[k+1],q).x;return s}function U(a,b,d,e,h,f,l,k){for(var n=[],p=[[],[] ],s,r,c,t,q=0;2&gt;q;++q)0==q?(r=6*a-12*d+6*h,s=-3*a+9*d-9*h+3*l,c=3*d-3*a):(r=6*b-12*e+6*f,s=-3*b+9*e-9*f+3*k,c=3*e-3*b),1E-12&gt;Z(s)?1E-12&gt;Z(r)||(s=-c/r,0&lt;s&amp;&amp;1&gt;s&amp;&amp;n.push(s)):(t=r*r-4*c*s,c=F.sqrt(t),0&gt;t||(t=(-r+c)/(2*s),0&lt;t&amp;&amp;1&gt;t&amp;&amp;n.push(t),s=(-r-c)/(2*s),0&lt;s&amp;&amp;1&gt;s&amp;&amp;n.push(s)));for(r=q=n.length;q--;)s=n[q],c=1-s,p[0][q]=c*c*c*a+3*
c*c*s*d+3*c*s*s*h+s*s*s*l,p[1][q]=c*c*c*b+3*c*c*s*e+3*c*s*s*f+s*s*s*k;p[0][r]=a;p[1][r]=b;p[0][r+1]=l;p[1][r+1]=k;p[0].length=p[1].length=r+2;return{min:{x:X.apply(0,p[0]),y:X.apply(0,p[1])},max:{x:W.apply(0,p[0]),y:W.apply(0,p[1])}}}function I(a,b){var e=!b&amp;&amp;A(a);if(!b&amp;&amp;e.curve)return d(e.curve);var f=G(a),l=b&amp;&amp;G(b),n={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},k={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},p=function(a,b,c){if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];a[0]in{T:1,Q:1}||(b.qx=b.qy=null);
switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"].concat(K.apply(0,[b.x,b.y].concat(a.slice(1))));break;case "S":"C"==c||"S"==c?(c=2*b.x-b.bx,b=2*b.y-b.by):(c=b.x,b=b.y);a=["C",c,b].concat(a.slice(1));break;case "T":"Q"==c||"T"==c?(b.qx=2*b.x-b.qx,b.qy=2*b.y-b.qy):(b.qx=b.x,b.qy=b.y);a=["C"].concat(J(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"].concat(J(b.x,b.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"].concat(h(b.x,b.y,a[1],a[2]));break;case "H":a=["C"].concat(h(b.x,
b.y,a[1],b.y));break;case "V":a=["C"].concat(h(b.x,b.y,b.x,a[1]));break;case "Z":a=["C"].concat(h(b.x,b.y,b.X,b.Y))}return a},s=function(a,b){if(7&lt;a[b].length){a[b].shift();for(var c=a[b];c.length;)q[b]="A",l&amp;&amp;(u[b]="A"),a.splice(b++,0,["C"].concat(c.splice(0,6)));a.splice(b,1);v=W(f.length,l&amp;&amp;l.length||0)}},r=function(a,b,c,d,e){a&amp;&amp;b&amp;&amp;"M"==a[e][0]&amp;&amp;"M"!=b[e][0]&amp;&amp;(b.splice(e,0,["M",d.x,d.y]),c.bx=0,c.by=0,c.x=a[e][1],c.y=a[e][2],v=W(f.length,l&amp;&amp;l.length||0))},q=[],u=[],c="",t="",x=0,v=W(f.length,
l&amp;&amp;l.length||0);for(;x&lt;v;x++){f[x]&amp;&amp;(c=f[x][0]);"C"!=c&amp;&amp;(q[x]=c,x&amp;&amp;(t=q[x-1]));f[x]=p(f[x],n,t);"A"!=q[x]&amp;&amp;"C"==c&amp;&amp;(q[x]="C");s(f,x);l&amp;&amp;(l[x]&amp;&amp;(c=l[x][0]),"C"!=c&amp;&amp;(u[x]=c,x&amp;&amp;(t=u[x-1])),l[x]=p(l[x],k,t),"A"!=u[x]&amp;&amp;"C"==c&amp;&amp;(u[x]="C"),s(l,x));r(f,l,n,k,x);r(l,f,k,n,x);var w=f[x],z=l&amp;&amp;l[x],y=w.length,U=l&amp;&amp;z.length;n.x=w[y-2];n.y=w[y-1];n.bx=$(w[y-4])||n.x;n.by=$(w[y-3])||n.y;k.bx=l&amp;&amp;($(z[U-4])||k.x);k.by=l&amp;&amp;($(z[U-3])||k.y);k.x=l&amp;&amp;z[U-2];k.y=l&amp;&amp;z[U-1]}l||(e.curve=d(f));return l?[f,l]:f}function P(a,
b){for(var d=[],e=0,h=a.length;h-2*!b&gt;e;e+=2){var f=[{x:+a[e-2],y:+a[e-1]},{x:+a[e],y:+a[e+1]},{x:+a[e+2],y:+a[e+3]},{x:+a[e+4],y:+a[e+5]}];b?e?h-4==e?f[3]={x:+a[0],y:+a[1]}:h-2==e&amp;&amp;(f[2]={x:+a[0],y:+a[1]},f[3]={x:+a[2],y:+a[3]}):f[0]={x:+a[h-2],y:+a[h-1]}:h-4==e?f[3]=f[2]:e||(f[0]={x:+a[e],y:+a[e+1]});d.push(["C",(-f[0].x+6*f[1].x+f[2].x)/6,(-f[0].y+6*f[1].y+f[2].y)/6,(f[1].x+6*f[2].x-f[3].x)/6,(f[1].y+6*f[2].y-f[3].y)/6,f[2].x,f[2].y])}return d}y=k.prototype;var Q=a.is,C=a._.clone,L="hasOwnProperty",
N=/,?([a-z]),?/gi,$=parseFloat,F=Math,S=F.PI,X=F.min,W=F.max,ma=F.pow,Z=F.abs;M=n(1);var na=n(),ba=n(0,1),V=a._unit2px;a.path=A;a.path.getTotalLength=M;a.path.getPointAtLength=na;a.path.getSubpath=function(a,b,d){if(1E-6&gt;this.getTotalLength(a)-d)return ba(a,b).end;a=ba(a,d,1);return b?ba(a,b).end:a};y.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()};y.getPointAtLength=function(a){return na(this.attr("d"),a)};y.getSubpath=function(b,d){return a.path.getSubpath(this.attr("d"),
b,d)};a._.box=w;a.path.findDotsAtSegment=u;a.path.bezierBBox=p;a.path.isPointInsideBBox=b;a.path.isBBoxIntersect=q;a.path.intersection=function(a,b){return l(a,b)};a.path.intersectionNumber=function(a,b){return l(a,b,1)};a.path.isPointInside=function(a,d,e){var h=r(a);return b(h,d,e)&amp;&amp;1==l(a,[["M",d,e],["H",h.x2+10] ],1)%2};a.path.getBBox=r;a.path.get={path:function(a){return a.attr("path")},circle:function(a){a=V(a);return x(a.cx,a.cy,a.r)},ellipse:function(a){a=V(a);return x(a.cx||0,a.cy||0,a.rx,
a.ry)},rect:function(a){a=V(a);return s(a.x||0,a.y||0,a.width,a.height,a.rx,a.ry)},image:function(a){a=V(a);return s(a.x||0,a.y||0,a.width,a.height)},line:function(a){return"M"+[a.attr("x1")||0,a.attr("y1")||0,a.attr("x2"),a.attr("y2")]},polyline:function(a){return"M"+a.attr("points")},polygon:function(a){return"M"+a.attr("points")+"z"},deflt:function(a){a=a.node.getBBox();return s(a.x,a.y,a.width,a.height)}};a.path.toRelative=function(b){var e=A(b),h=String.prototype.toLowerCase;if(e.rel)return d(e.rel);
a.is(b,"array")&amp;&amp;a.is(b&amp;&amp;b[0],"array")||(b=a.parsePathString(b));var f=[],l=0,n=0,k=0,p=0,s=0;"M"==b[0][0]&amp;&amp;(l=b[0][1],n=b[0][2],k=l,p=n,s++,f.push(["M",l,n]));for(var r=b.length;s&lt;r;s++){var q=f[s]=[],x=b[s];if(x[0]!=h.call(x[0]))switch(q[0]=h.call(x[0]),q[0]){case "a":q[1]=x[1];q[2]=x[2];q[3]=x[3];q[4]=x[4];q[5]=x[5];q[6]=+(x[6]-l).toFixed(3);q[7]=+(x[7]-n).toFixed(3);break;case "v":q[1]=+(x[1]-n).toFixed(3);break;case "m":k=x[1],p=x[2];default:for(var c=1,t=x.length;c&lt;t;c++)q[c]=+(x[c]-(c%2?l:
n)).toFixed(3)}else for(f[s]=[],"m"==x[0]&amp;&amp;(k=x[1]+l,p=x[2]+n),q=0,c=x.length;q&lt;c;q++)f[s][q]=x[q];x=f[s].length;switch(f[s][0]){case "z":l=k;n=p;break;case "h":l+=+f[s][x-1];break;case "v":n+=+f[s][x-1];break;default:l+=+f[s][x-2],n+=+f[s][x-1]}}f.toString=z;e.rel=d(f);return f};a.path.toAbsolute=G;a.path.toCubic=I;a.path.map=function(a,b){if(!b)return a;var d,e,h,f,l,n,k;a=I(a);h=0;for(l=a.length;h&lt;l;h++)for(k=a[h],f=1,n=k.length;f&lt;n;f+=2)d=b.x(k[f],k[f+1]),e=b.y(k[f],k[f+1]),k[f]=d,k[f+1]=e;return a};
a.path.toString=z;a.path.clone=d});C.plugin(function(a,v,y,C){var A=Math.max,w=Math.min,z=function(a){this.items=[];this.bindings={};this.length=0;this.type="set";if(a)for(var f=0,n=a.length;f&lt;n;f++)a[f]&amp;&amp;(this[this.items.length]=this.items[this.items.length]=a[f],this.length++)};v=z.prototype;v.push=function(){for(var a,f,n=0,k=arguments.length;n&lt;k;n++)if(a=arguments[n])f=this.items.length,this[f]=this.items[f]=a,this.length++;return this};v.pop=function(){this.length&amp;&amp;delete this[this.length--];
return this.items.pop()};v.forEach=function(a,f){for(var n=0,k=this.items.length;n&lt;k&amp;&amp;!1!==a.call(f,this.items[n],n);n++);return this};v.animate=function(d,f,n,u){"function"!=typeof n||n.length||(u=n,n=L.linear);d instanceof a._.Animation&amp;&amp;(u=d.callback,n=d.easing,f=n.dur,d=d.attr);var p=arguments;if(a.is(d,"array")&amp;&amp;a.is(p[p.length-1],"array"))var b=!0;var q,e=function(){q?this.b=q:q=this.b},l=0,r=u&amp;&amp;function(){l++==this.length&amp;&amp;u.call(this)};return this.forEach(function(a,l){k.once("snap.animcreated."+
a.id,e);b?p[l]&amp;&amp;a.animate.apply(a,p[l]):a.animate(d,f,n,r)})};v.remove=function(){for(;this.length;)this.pop().remove();return this};v.bind=function(a,f,k){var u={};if("function"==typeof f)this.bindings[a]=f;else{var p=k||a;this.bindings[a]=function(a){u[p]=a;f.attr(u)}}return this};v.attr=function(a){var f={},k;for(k in a)if(this.bindings[k])this.bindings[k](a[k]);else f[k]=a[k];a=0;for(k=this.items.length;a&lt;k;a++)this.items[a].attr(f);return this};v.clear=function(){for(;this.length;)this.pop()};
v.splice=function(a,f,k){a=0&gt;a?A(this.length+a,0):a;f=A(0,w(this.length-a,f));var u=[],p=[],b=[],q;for(q=2;q&lt;arguments.length;q++)b.push(arguments[q]);for(q=0;q&lt;f;q++)p.push(this[a+q]);for(;q&lt;this.length-a;q++)u.push(this[a+q]);var e=b.length;for(q=0;q&lt;e+u.length;q++)this.items[a+q]=this[a+q]=q&lt;e?b[q]:u[q-e];for(q=this.items.length=this.length-=f-e;this[q];)delete this[q++];return new z(p)};v.exclude=function(a){for(var f=0,k=this.length;f&lt;k;f++)if(this[f]==a)return this.splice(f,1),!0;return!1};
v.insertAfter=function(a){for(var f=this.items.length;f--;)this.items[f].insertAfter(a);return this};v.getBBox=function(){for(var a=[],f=[],k=[],u=[],p=this.items.length;p--;)if(!this.items[p].removed){var b=this.items[p].getBBox();a.push(b.x);f.push(b.y);k.push(b.x+b.width);u.push(b.y+b.height)}a=w.apply(0,a);f=w.apply(0,f);k=A.apply(0,k);u=A.apply(0,u);return{x:a,y:f,x2:k,y2:u,width:k-a,height:u-f,cx:a+(k-a)/2,cy:f+(u-f)/2}};v.clone=function(a){a=new z;for(var f=0,k=this.items.length;f&lt;k;f++)a.push(this.items[f].clone());
return a};v.toString=function(){return"Snap\u2018s set"};v.type="set";a.set=function(){var a=new z;arguments.length&amp;&amp;a.push.apply(a,Array.prototype.slice.call(arguments,0));return a}});C.plugin(function(a,v,y,C){function A(a){var b=a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,1,0,0,1,0,0];case "r":return 4==a.length?[b,0,a[2],a[3] ]:[b,0];case "s":return 5==a.length?[b,1,1,a[3],a[4] ]:3==a.length?[b,1,1]:[b,1]}}function w(b,d,f){d=q(d).replace(/\.{3}|\u2026/g,b);b=a.parseTransformString(b)||
[];d=a.parseTransformString(d)||[];for(var k=Math.max(b.length,d.length),p=[],v=[],h=0,w,z,y,I;h&lt;k;h++){y=b[h]||A(d[h]);I=d[h]||A(y);if(y[0]!=I[0]||"r"==y[0].toLowerCase()&amp;&amp;(y[2]!=I[2]||y[3]!=I[3])||"s"==y[0].toLowerCase()&amp;&amp;(y[3]!=I[3]||y[4]!=I[4])){b=a._.transform2matrix(b,f());d=a._.transform2matrix(d,f());p=[["m",b.a,b.b,b.c,b.d,b.e,b.f] ];v=[["m",d.a,d.b,d.c,d.d,d.e,d.f] ];break}p[h]=[];v[h]=[];w=0;for(z=Math.max(y.length,I.length);w&lt;z;w++)w in y&amp;&amp;(p[h][w]=y[w]),w in I&amp;&amp;(v[h][w]=I[w])}return{from:u(p),
to:u(v),f:n(p)}}function z(a){return a}function d(a){return function(b){return+b.toFixed(3)+a}}function f(b){return a.rgb(b[0],b[1],b[2])}function n(a){var b=0,d,f,k,n,h,p,q=[];d=0;for(f=a.length;d&lt;f;d++){h="[";p=['"'+a[d][0]+'"'];k=1;for(n=a[d].length;k&lt;n;k++)p[k]="val["+b++ +"]";h+=p+"]";q[d]=h}return Function("val","return Snap.path.toString.call(["+q+"])")}function u(a){for(var b=[],d=0,f=a.length;d&lt;f;d++)for(var k=1,n=a[d].length;k&lt;n;k++)b.push(a[d][k]);return b}var p={},b=/[a-z]+$/i,q=String;
p.stroke=p.fill="colour";v.prototype.equal=function(a,b){return k("snap.util.equal",this,a,b).firstDefined()};k.on("snap.util.equal",function(e,k){var r,s;r=q(this.attr(e)||"");var x=this;if(r==+r&amp;&amp;k==+k)return{from:+r,to:+k,f:z};if("colour"==p[e])return r=a.color(r),s=a.color(k),{from:[r.r,r.g,r.b,r.opacity],to:[s.r,s.g,s.b,s.opacity],f:f};if("transform"==e||"gradientTransform"==e||"patternTransform"==e)return k instanceof a.Matrix&amp;&amp;(k=k.toTransformString()),a._.rgTransform.test(k)||(k=a._.svgTransform2string(k)),
w(r,k,function(){return x.getBBox(1)});if("d"==e||"path"==e)return r=a.path.toCubic(r,k),{from:u(r[0]),to:u(r[1]),f:n(r[0])};if("points"==e)return r=q(r).split(a._.separator),s=q(k).split(a._.separator),{from:r,to:s,f:function(a){return a}};aUnit=r.match(b);s=q(k).match(b);return aUnit&amp;&amp;aUnit==s?{from:parseFloat(r),to:parseFloat(k),f:d(aUnit)}:{from:this.asPX(e),to:this.asPX(e,k),f:z}})});C.plugin(function(a,v,y,C){var A=v.prototype,w="createTouch"in C.doc;v="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel".split(" ");
var z={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},d=function(a,b){var d="y"==a?"scrollTop":"scrollLeft",e=b&amp;&amp;b.node?b.node.ownerDocument:C.doc;return e[d in e.documentElement?"documentElement":"body"][d]},f=function(){this.returnValue=!1},n=function(){return this.originalEvent.preventDefault()},u=function(){this.cancelBubble=!0},p=function(){return this.originalEvent.stopPropagation()},b=function(){if(C.doc.addEventListener)return function(a,b,e,f){var k=w&amp;&amp;z[b]?z[b]:b,l=function(k){var l=
d("y",f),q=d("x",f);if(w&amp;&amp;z.hasOwnProperty(b))for(var r=0,u=k.targetTouches&amp;&amp;k.targetTouches.length;r&lt;u;r++)if(k.targetTouches[r].target==a||a.contains(k.targetTouches[r].target)){u=k;k=k.targetTouches[r];k.originalEvent=u;k.preventDefault=n;k.stopPropagation=p;break}return e.call(f,k,k.clientX+q,k.clientY+l)};b!==k&amp;&amp;a.addEventListener(b,l,!1);a.addEventListener(k,l,!1);return function(){b!==k&amp;&amp;a.removeEventListener(b,l,!1);a.removeEventListener(k,l,!1);return!0}};if(C.doc.attachEvent)return function(a,
b,e,h){var k=function(a){a=a||h.node.ownerDocument.window.event;var b=d("y",h),k=d("x",h),k=a.clientX+k,b=a.clientY+b;a.preventDefault=a.preventDefault||f;a.stopPropagation=a.stopPropagation||u;return e.call(h,a,k,b)};a.attachEvent("on"+b,k);return function(){a.detachEvent("on"+b,k);return!0}}}(),q=[],e=function(a){for(var b=a.clientX,e=a.clientY,f=d("y"),l=d("x"),n,p=q.length;p--;){n=q[p];if(w)for(var r=a.touches&amp;&amp;a.touches.length,u;r--;){if(u=a.touches[r],u.identifier==n.el._drag.id||n.el.node.contains(u.target)){b=
u.clientX;e=u.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();b+=l;e+=f;k("snap.drag.move."+n.el.id,n.move_scope||n.el,b-n.el._drag.x,e-n.el._drag.y,b,e,a)}},l=function(b){a.unmousemove(e).unmouseup(l);for(var d=q.length,f;d--;)f=q[d],f.el._drag={},k("snap.drag.end."+f.el.id,f.end_scope||f.start_scope||f.move_scope||f.el,b);q=[]};for(y=v.length;y--;)(function(d){a[d]=A[d]=function(e,f){a.is(e,"function")&amp;&amp;(this.events=this.events||[],this.events.push({name:d,
f:e,unbind:b(this.node||document,d,e,f||this)}));return this};a["un"+d]=A["un"+d]=function(a){for(var b=this.events||[],e=b.length;e--;)if(b[e].name==d&amp;&amp;(b[e].f==a||!a)){b[e].unbind();b.splice(e,1);!b.length&amp;&amp;delete this.events;break}return this}})(v[y]);A.hover=function(a,b,d,e){return this.mouseover(a,d).mouseout(b,e||d)};A.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var r=[];A.drag=function(b,d,f,h,n,p){function u(r,v,w){(r.originalEvent||r).preventDefault();this._drag.x=v;
this._drag.y=w;this._drag.id=r.identifier;!q.length&amp;&amp;a.mousemove(e).mouseup(l);q.push({el:this,move_scope:h,start_scope:n,end_scope:p});d&amp;&amp;k.on("snap.drag.start."+this.id,d);b&amp;&amp;k.on("snap.drag.move."+this.id,b);f&amp;&amp;k.on("snap.drag.end."+this.id,f);k("snap.drag.start."+this.id,n||h||this,v,w,r)}if(!arguments.length){var v;return this.drag(function(a,b){this.attr({transform:v+(v?"T":"t")+[a,b]})},function(){v=this.transform().local})}this._drag={};r.push({el:this,start:u});this.mousedown(u);return this};
A.undrag=function(){for(var b=r.length;b--;)r[b].el==this&amp;&amp;(this.unmousedown(r[b].start),r.splice(b,1),k.unbind("snap.drag.*."+this.id));!r.length&amp;&amp;a.unmousemove(e).unmouseup(l);return this}});C.plugin(function(a,v,y,C){y=y.prototype;var A=/^\s*url\((.+)\)/,w=String,z=a._.$;a.filter={};y.filter=function(d){var f=this;"svg"!=f.type&amp;&amp;(f=f.paper);d=a.parse(w(d));var k=a._.id(),u=z("filter");z(u,{id:k,filterUnits:"userSpaceOnUse"});u.appendChild(d.node);f.defs.appendChild(u);return new v(u)};k.on("snap.util.getattr.filter",
function(){k.stop();var d=z(this.node,"filter");if(d)return(d=w(d).match(A))&amp;&amp;a.select(d[1])});k.on("snap.util.attr.filter",function(d){if(d instanceof v&amp;&amp;"filter"==d.type){k.stop();var f=d.node.id;f||(z(d.node,{id:d.id}),f=d.id);z(this.node,{filter:a.url(f)})}d&amp;&amp;"none"!=d||(k.stop(),this.node.removeAttribute("filter"))});a.filter.blur=function(d,f){null==d&amp;&amp;(d=2);return a.format('&lt;feGaussianBlur stdDeviation="{def}"/&gt;',{def:null==f?d:[d,f]})};a.filter.blur.toString=function(){return this()};a.filter.shadow=
function(d,f,k,u,p){"string"==typeof k&amp;&amp;(p=u=k,k=4);"string"!=typeof u&amp;&amp;(p=u,u="#000");null==k&amp;&amp;(k=4);null==p&amp;&amp;(p=1);null==d&amp;&amp;(d=0,f=2);null==f&amp;&amp;(f=d);u=a.color(u||"#000");return a.format('&lt;feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/&gt;&lt;feOffset dx="{dx}" dy="{dy}" result="offsetblur"/&gt;&lt;feFlood flood-color="{color}"/&gt;&lt;feComposite in2="offsetblur" operator="in"/&gt;&lt;feComponentTransfer&gt;&lt;feFuncA type="linear" slope="{opacity}"/&gt;&lt;/feComponentTransfer&gt;&lt;feMerge&gt;&lt;feMergeNode/&gt;&lt;feMergeNode in="SourceGraphic"/&gt;&lt;/feMerge&gt;',
{color:u,dx:d,dy:f,blur:k,opacity:p})};a.filter.shadow.toString=function(){return this()};a.filter.grayscale=function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/&gt;',{a:0.2126+0.7874*(1-d),b:0.7152-0.7152*(1-d),c:0.0722-0.0722*(1-d),d:0.2126-0.2126*(1-d),e:0.7152+0.2848*(1-d),f:0.0722-0.0722*(1-d),g:0.2126-0.2126*(1-d),h:0.0722+0.9278*(1-d)})};a.filter.grayscale.toString=function(){return this()};a.filter.sepia=
function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/&gt;',{a:0.393+0.607*(1-d),b:0.769-0.769*(1-d),c:0.189-0.189*(1-d),d:0.349-0.349*(1-d),e:0.686+0.314*(1-d),f:0.168-0.168*(1-d),g:0.272-0.272*(1-d),h:0.534-0.534*(1-d),i:0.131+0.869*(1-d)})};a.filter.sepia.toString=function(){return this()};a.filter.saturate=function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feColorMatrix type="saturate" values="{amount}"/&gt;',{amount:1-
d})};a.filter.saturate.toString=function(){return this()};a.filter.hueRotate=function(d){return a.format('&lt;feColorMatrix type="hueRotate" values="{angle}"/&gt;',{angle:d||0})};a.filter.hueRotate.toString=function(){return this()};a.filter.invert=function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feComponentTransfer&gt;&lt;feFuncR type="table" tableValues="{amount} {amount2}"/&gt;&lt;feFuncG type="table" tableValues="{amount} {amount2}"/&gt;&lt;feFuncB type="table" tableValues="{amount} {amount2}"/&gt;&lt;/feComponentTransfer&gt;',{amount:d,
amount2:1-d})};a.filter.invert.toString=function(){return this()};a.filter.brightness=function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feComponentTransfer&gt;&lt;feFuncR type="linear" slope="{amount}"/&gt;&lt;feFuncG type="linear" slope="{amount}"/&gt;&lt;feFuncB type="linear" slope="{amount}"/&gt;&lt;/feComponentTransfer&gt;',{amount:d})};a.filter.brightness.toString=function(){return this()};a.filter.contrast=function(d){null==d&amp;&amp;(d=1);return a.format('&lt;feComponentTransfer&gt;&lt;feFuncR type="linear" slope="{amount}" intercept="{amount2}"/&gt;&lt;feFuncG type="linear" slope="{amount}" intercept="{amount2}"/&gt;&lt;feFuncB type="linear" slope="{amount}" intercept="{amount2}"/&gt;&lt;/feComponentTransfer&gt;',
{amount:d,amount2:0.5-d/2})};a.filter.contrast.toString=function(){return this()}});return C});

]]&gt; &lt;/script&gt;
&lt;script&gt; &lt;![CDATA[

(function (glob, factory) {
    // AMD support
    if (typeof define === "function" &amp;&amp; define.amd) {
        // Define as an anonymous module
        define("Gadfly", ["Snap.svg"], function (Snap) {
            return factory(Snap);
        });
    } else {
        // Browser globals (glob is window)
        // Snap adds itself to window
        glob.Gadfly = factory(glob.Snap);
    }
}(this, function (Snap) {

var Gadfly = {};

// Get an x/y coordinate value in pixels
var xPX = function(fig, x) {
    var client_box = fig.node.getBoundingClientRect();
    return x * fig.node.viewBox.baseVal.width / client_box.width;
};

var yPX = function(fig, y) {
    var client_box = fig.node.getBoundingClientRect();
    return y * fig.node.viewBox.baseVal.height / client_box.height;
};


Snap.plugin(function (Snap, Element, Paper, global) {
    // Traverse upwards from a snap element to find and return the first
    // note with the "plotroot" class.
    Element.prototype.plotroot = function () {
        var element = this;
        while (!element.hasClass("plotroot") &amp;&amp; element.parent() != null) {
            element = element.parent();
        }
        return element;
    };

    Element.prototype.svgroot = function () {
        var element = this;
        while (element.node.nodeName != "svg" &amp;&amp; element.parent() != null) {
            element = element.parent();
        }
        return element;
    };

    Element.prototype.plotbounds = function () {
        var root = this.plotroot()
        var bbox = root.select(".guide.background").node.getBBox();
        return {
            x0: bbox.x,
            x1: bbox.x + bbox.width,
            y0: bbox.y,
            y1: bbox.y + bbox.height
        };
    };

    Element.prototype.plotcenter = function () {
        var root = this.plotroot()
        var bbox = root.select(".guide.background").node.getBBox();
        return {
            x: bbox.x + bbox.width / 2,
            y: bbox.y + bbox.height / 2
        };
    };

    // Emulate IE style mouseenter/mouseleave events, since Microsoft always
    // does everything right.
    // See: http://www.dynamic-tools.net/toolbox/isMouseLeaveOrEnter/
    var events = ["mouseenter", "mouseleave"];

    for (i in events) {
        (function (event_name) {
            var event_name = events[i];
            Element.prototype[event_name] = function (fn, scope) {
                if (Snap.is(fn, "function")) {
                    var fn2 = function (event) {
                        if (event.type != "mouseover" &amp;&amp; event.type != "mouseout") {
                            return;
                        }

                        var reltg = event.relatedTarget ? event.relatedTarget :
                            event.type == "mouseout" ? event.toElement : event.fromElement;
                        while (reltg &amp;&amp; reltg != this.node) reltg = reltg.parentNode;

                        if (reltg != this.node) {
                            return fn.apply(this, event);
                        }
                    };

                    if (event_name == "mouseenter") {
                        this.mouseover(fn2, scope);
                    } else {
                        this.mouseout(fn2, scope);
                    }
                }
                return this;
            };
        })(events[i]);
    }


    Element.prototype.mousewheel = function (fn, scope) {
        if (Snap.is(fn, "function")) {
            var el = this;
            var fn2 = function (event) {
                fn.apply(el, [event]);
            };
        }

        this.node.addEventListener(
            /Firefox/i.test(navigator.userAgent) ? "DOMMouseScroll" : "mousewheel",
            fn2);

        return this;
    };


    // Snap's attr function can be too slow for things like panning/zooming.
    // This is a function to directly update element attributes without going
    // through eve.
    Element.prototype.attribute = function(key, val) {
        if (val === undefined) {
            return this.node.getAttribute(key);
        } else {
            this.node.setAttribute(key, val);
            return this;
        }
    };

    Element.prototype.init_gadfly = function() {
        this.mouseenter(Gadfly.plot_mouseover)
            .mouseleave(Gadfly.plot_mouseout)
            .dblclick(Gadfly.plot_dblclick)
            .mousewheel(Gadfly.guide_background_scroll)
            .drag(Gadfly.guide_background_drag_onmove,
                  Gadfly.guide_background_drag_onstart,
                  Gadfly.guide_background_drag_onend);
        this.mouseenter(function (event) {
            init_pan_zoom(this.plotroot());
        });
        return this;
    };
});


// When the plot is moused over, emphasize the grid lines.
Gadfly.plot_mouseover = function(event) {
    var root = this.plotroot();

    var keyboard_zoom = function(event) {
        if (event.which == 187) { // plus
            increase_zoom_by_position(root, 0.1, true);
        } else if (event.which == 189) { // minus
            increase_zoom_by_position(root, -0.1, true);
        }
    };
    root.data("keyboard_zoom", keyboard_zoom);
    window.addEventListener("keyup", keyboard_zoom);

    var xgridlines = root.select(".xgridlines"),
        ygridlines = root.select(".ygridlines");

    xgridlines.data("unfocused_strokedash",
                    xgridlines.attribute("stroke-dasharray").replace(/(\d)(,|$)/g, "$1mm$2"));
    ygridlines.data("unfocused_strokedash",
                    ygridlines.attribute("stroke-dasharray").replace(/(\d)(,|$)/g, "$1mm$2"));

    // emphasize grid lines
    var destcolor = root.data("focused_xgrid_color");
    xgridlines.attribute("stroke-dasharray", "none")
              .selectAll("path")
              .animate({stroke: destcolor}, 250);

    destcolor = root.data("focused_ygrid_color");
    ygridlines.attribute("stroke-dasharray", "none")
              .selectAll("path")
              .animate({stroke: destcolor}, 250);

    // reveal zoom slider
    root.select(".zoomslider")
        .animate({opacity: 1.0}, 250);
};

// Reset pan and zoom on double click
Gadfly.plot_dblclick = function(event) {
  set_plot_pan_zoom(this.plotroot(), 0.0, 0.0, 1.0);
};

// Unemphasize grid lines on mouse out.
Gadfly.plot_mouseout = function(event) {
    var root = this.plotroot();

    window.removeEventListener("keyup", root.data("keyboard_zoom"));
    root.data("keyboard_zoom", undefined);

    var xgridlines = root.select(".xgridlines"),
        ygridlines = root.select(".ygridlines");

    var destcolor = root.data("unfocused_xgrid_color");

    xgridlines.attribute("stroke-dasharray", xgridlines.data("unfocused_strokedash"))
              .selectAll("path")
              .animate({stroke: destcolor}, 250);

    destcolor = root.data("unfocused_ygrid_color");
    ygridlines.attribute("stroke-dasharray", ygridlines.data("unfocused_strokedash"))
              .selectAll("path")
              .animate({stroke: destcolor}, 250);

    // hide zoom slider
    root.select(".zoomslider")
        .animate({opacity: 0.0}, 250);
};


var set_geometry_transform = function(root, tx, ty, scale) {
    var xscalable = root.hasClass("xscalable"),
        yscalable = root.hasClass("yscalable");

    var old_scale = root.data("scale");

    var xscale = xscalable ? scale : 1.0,
        yscale = yscalable ? scale : 1.0;

    tx = xscalable ? tx : 0.0;
    ty = yscalable ? ty : 0.0;

    var t = new Snap.Matrix().translate(tx, ty).scale(xscale, yscale);

    root.selectAll(".geometry, image")
        .forEach(function (element, i) {
            element.transform(t);
        });

    bounds = root.plotbounds();

    if (yscalable) {
        var xfixed_t = new Snap.Matrix().translate(0, ty).scale(1.0, yscale);
        root.selectAll(".xfixed")
            .forEach(function (element, i) {
                element.transform(xfixed_t);
            });

        root.select(".ylabels")
            .transform(xfixed_t)
            .selectAll("text")
            .forEach(function (element, i) {
                if (element.attribute("gadfly:inscale") == "true") {
                    var cx = element.asPX("x"),
                        cy = element.asPX("y");
                    var st = element.data("static_transform");
                    unscale_t = new Snap.Matrix();
                    unscale_t.scale(1, 1/scale, cx, cy).add(st);
                    element.transform(unscale_t);

                    var y = cy * scale + ty;
                    element.attr("visibility",
                        bounds.y0 &lt;= y &amp;&amp; y &lt;= bounds.y1 ? "visible" : "hidden");
                }
            });
    }

    if (xscalable) {
        var yfixed_t = new Snap.Matrix().translate(tx, 0).scale(xscale, 1.0);
        var xtrans = new Snap.Matrix().translate(tx, 0);
        root.selectAll(".yfixed")
            .forEach(function (element, i) {
                element.transform(yfixed_t);
            });

        root.select(".xlabels")
            .transform(yfixed_t)
            .selectAll("text")
            .forEach(function (element, i) {
                if (element.attribute("gadfly:inscale") == "true") {
                    var cx = element.asPX("x"),
                        cy = element.asPX("y");
                    var st = element.data("static_transform");
                    unscale_t = new Snap.Matrix();
                    unscale_t.scale(1/scale, 1, cx, cy).add(st);

                    element.transform(unscale_t);

                    var x = cx * scale + tx;
                    element.attr("visibility",
                        bounds.x0 &lt;= x &amp;&amp; x &lt;= bounds.x1 ? "visible" : "hidden");
                    }
            });
    }

    // we must unscale anything that is scale invariance: widths, raiduses, etc.
    var size_attribs = ["font-size"];
    var unscaled_selection = ".geometry, .geometry *";
    if (xscalable) {
        size_attribs.push("rx");
        unscaled_selection += ", .xgridlines";
    }
    if (yscalable) {
        size_attribs.push("ry");
        unscaled_selection += ", .ygridlines";
    }

    root.selectAll(unscaled_selection)
        .forEach(function (element, i) {
            // circle need special help
            if (element.node.nodeName == "circle") {
                var cx = element.attribute("cx"),
                    cy = element.attribute("cy");
                unscale_t = new Snap.Matrix().scale(1/xscale, 1/yscale,
                                                        cx, cy);
                element.transform(unscale_t);
                return;
            }

            for (i in size_attribs) {
                var key = size_attribs[i];
                var val = parseFloat(element.attribute(key));
                if (val !== undefined &amp;&amp; val != 0 &amp;&amp; !isNaN(val)) {
                    element.attribute(key, val * old_scale / scale);
                }
            }
        });
};


// Find the most appropriate tick scale and update label visibility.
var update_tickscale = function(root, scale, axis) {
    if (!root.hasClass(axis + "scalable")) return;

    var tickscales = root.data(axis + "tickscales");
    var best_tickscale = 1.0;
    var best_tickscale_dist = Infinity;
    for (tickscale in tickscales) {
        var dist = Math.abs(Math.log(tickscale) - Math.log(scale));
        if (dist &lt; best_tickscale_dist) {
            best_tickscale_dist = dist;
            best_tickscale = tickscale;
        }
    }

    if (best_tickscale != root.data(axis + "tickscale")) {
        root.data(axis + "tickscale", best_tickscale);
        var mark_inscale_gridlines = function (element, i) {
            var inscale = element.attr("gadfly:scale") == best_tickscale;
            element.attribute("gadfly:inscale", inscale);
            element.attr("visibility", inscale ? "visible" : "hidden");
        };

        var mark_inscale_labels = function (element, i) {
            var inscale = element.attr("gadfly:scale") == best_tickscale;
            element.attribute("gadfly:inscale", inscale);
            element.attr("visibility", inscale ? "visible" : "hidden");
        };

        root.select("." + axis + "gridlines").selectAll("path").forEach(mark_inscale_gridlines);
        root.select("." + axis + "labels").selectAll("text").forEach(mark_inscale_labels);
    }
};


var set_plot_pan_zoom = function(root, tx, ty, scale) {
    var old_scale = root.data("scale");
    var bounds = root.plotbounds();

    var width = bounds.x1 - bounds.x0,
        height = bounds.y1 - bounds.y0;

    // compute the viewport derived from tx, ty, and scale
    var x_min = -width * scale - (scale * width - width),
        x_max = width * scale,
        y_min = -height * scale - (scale * height - height),
        y_max = height * scale;

    var x0 = bounds.x0 - scale * bounds.x0,
        y0 = bounds.y0 - scale * bounds.y0;

    var tx = Math.max(Math.min(tx - x0, x_max), x_min),
        ty = Math.max(Math.min(ty - y0, y_max), y_min);

    tx += x0;
    ty += y0;

    // when the scale change, we may need to alter which set of
    // ticks is being displayed
    if (scale != old_scale) {
        update_tickscale(root, scale, "x");
        update_tickscale(root, scale, "y");
    }

    set_geometry_transform(root, tx, ty, scale);

    root.data("scale", scale);
    root.data("tx", tx);
    root.data("ty", ty);
};


var scale_centered_translation = function(root, scale) {
    var bounds = root.plotbounds();

    var width = bounds.x1 - bounds.x0,
        height = bounds.y1 - bounds.y0;

    var tx0 = root.data("tx"),
        ty0 = root.data("ty");

    var scale0 = root.data("scale");

    // how off from center the current view is
    var xoff = tx0 - (bounds.x0 * (1 - scale0) + (width * (1 - scale0)) / 2),
        yoff = ty0 - (bounds.y0 * (1 - scale0) + (height * (1 - scale0)) / 2);

    // rescale offsets
    xoff = xoff * scale / scale0;
    yoff = yoff * scale / scale0;

    // adjust for the panel position being scaled
    var x_edge_adjust = bounds.x0 * (1 - scale),
        y_edge_adjust = bounds.y0 * (1 - scale);

    return {
        x: xoff + x_edge_adjust + (width - width * scale) / 2,
        y: yoff + y_edge_adjust + (height - height * scale) / 2
    };
};


// Initialize data for panning zooming if it isn't already.
var init_pan_zoom = function(root) {
    if (root.data("zoompan-ready")) {
        return;
    }

    // The non-scaling-stroke trick. Rather than try to correct for the
    // stroke-width when zooming, we force it to a fixed value.
    var px_per_mm = root.node.getCTM().a;

    // Drag events report deltas in pixels, which we'd like to convert to
    // millimeters.
    root.data("px_per_mm", px_per_mm);

    root.selectAll("path")
        .forEach(function (element, i) {
        sw = element.asPX("stroke-width") * px_per_mm;
        if (sw &gt; 0) {
            element.attribute("stroke-width", sw);
            element.attribute("vector-effect", "non-scaling-stroke");
        }
    });

    // Store ticks labels original tranformation
    root.selectAll(".xlabels &gt; text, .ylabels &gt; text")
        .forEach(function (element, i) {
            var lm = element.transform().localMatrix;
            element.data("static_transform",
                new Snap.Matrix(lm.a, lm.b, lm.c, lm.d, lm.e, lm.f));
        });

    var xgridlines = root.select(".xgridlines");
    var ygridlines = root.select(".ygridlines");
    var xlabels = root.select(".xlabels");
    var ylabels = root.select(".ylabels");

    if (root.data("tx") === undefined) root.data("tx", 0);
    if (root.data("ty") === undefined) root.data("ty", 0);
    if (root.data("scale") === undefined) root.data("scale", 1.0);
    if (root.data("xtickscales") === undefined) {

        // index all the tick scales that are listed
        var xtickscales = {};
        var ytickscales = {};
        var add_x_tick_scales = function (element, i) {
            xtickscales[element.attribute("gadfly:scale")] = true;
        };
        var add_y_tick_scales = function (element, i) {
            ytickscales[element.attribute("gadfly:scale")] = true;
        };

        if (xgridlines) xgridlines.selectAll("path").forEach(add_x_tick_scales);
        if (ygridlines) ygridlines.selectAll("path").forEach(add_y_tick_scales);
        if (xlabels) xlabels.selectAll("text").forEach(add_x_tick_scales);
        if (ylabels) ylabels.selectAll("text").forEach(add_y_tick_scales);

        root.data("xtickscales", xtickscales);
        root.data("ytickscales", ytickscales);
        root.data("xtickscale", 1.0);
    }

    var min_scale = 1.0, max_scale = 1.0;
    for (scale in xtickscales) {
        min_scale = Math.min(min_scale, scale);
        max_scale = Math.max(max_scale, scale);
    }
    for (scale in ytickscales) {
        min_scale = Math.min(min_scale, scale);
        max_scale = Math.max(max_scale, scale);
    }
    root.data("min_scale", min_scale);
    root.data("max_scale", max_scale);

    // store the original positions of labels
    if (xlabels) {
        xlabels.selectAll("text")
               .forEach(function (element, i) {
                   element.data("x", element.asPX("x"));
               });
    }

    if (ylabels) {
        ylabels.selectAll("text")
               .forEach(function (element, i) {
                   element.data("y", element.asPX("y"));
               });
    }

    // mark grid lines and ticks as in or out of scale.
    var mark_inscale = function (element, i) {
        element.attribute("gadfly:inscale", element.attribute("gadfly:scale") == 1.0);
    };

    if (xgridlines) xgridlines.selectAll("path").forEach(mark_inscale);
    if (ygridlines) ygridlines.selectAll("path").forEach(mark_inscale);
    if (xlabels) xlabels.selectAll("text").forEach(mark_inscale);
    if (ylabels) ylabels.selectAll("text").forEach(mark_inscale);

    // figure out the upper ond lower bounds on panning using the maximum
    // and minum grid lines
    var bounds = root.plotbounds();
    var pan_bounds = {
        x0: 0.0,
        y0: 0.0,
        x1: 0.0,
        y1: 0.0
    };

    if (xgridlines) {
        xgridlines
            .selectAll("path")
            .forEach(function (element, i) {
                if (element.attribute("gadfly:inscale") == "true") {
                    var bbox = element.node.getBBox();
                    if (bounds.x1 - bbox.x &lt; pan_bounds.x0) {
                        pan_bounds.x0 = bounds.x1 - bbox.x;
                    }
                    if (bounds.x0 - bbox.x &gt; pan_bounds.x1) {
                        pan_bounds.x1 = bounds.x0 - bbox.x;
                    }
                    element.attr("visibility", "visible");
                }
            });
    }

    if (ygridlines) {
        ygridlines
            .selectAll("path")
            .forEach(function (element, i) {
                if (element.attribute("gadfly:inscale") == "true") {
                    var bbox = element.node.getBBox();
                    if (bounds.y1 - bbox.y &lt; pan_bounds.y0) {
                        pan_bounds.y0 = bounds.y1 - bbox.y;
                    }
                    if (bounds.y0 - bbox.y &gt; pan_bounds.y1) {
                        pan_bounds.y1 = bounds.y0 - bbox.y;
                    }
                    element.attr("visibility", "visible");
                }
            });
    }

    // nudge these values a little
    pan_bounds.x0 -= 5;
    pan_bounds.x1 += 5;
    pan_bounds.y0 -= 5;
    pan_bounds.y1 += 5;
    root.data("pan_bounds", pan_bounds);

    root.data("zoompan-ready", true)
};


// drag actions, i.e. zooming and panning
var pan_action = {
    start: function(root, x, y, event) {
        root.data("dx", 0);
        root.data("dy", 0);
        root.data("tx0", root.data("tx"));
        root.data("ty0", root.data("ty"));
    },
    update: function(root, dx, dy, x, y, event) {
        var px_per_mm = root.data("px_per_mm");
        dx /= px_per_mm;
        dy /= px_per_mm;

        var tx0 = root.data("tx"),
            ty0 = root.data("ty");

        var dx0 = root.data("dx"),
            dy0 = root.data("dy");

        root.data("dx", dx);
        root.data("dy", dy);

        dx = dx - dx0;
        dy = dy - dy0;

        var tx = tx0 + dx,
            ty = ty0 + dy;

        set_plot_pan_zoom(root, tx, ty, root.data("scale"));
    },
    end: function(root, event) {

    },
    cancel: function(root) {
        set_plot_pan_zoom(root, root.data("tx0"), root.data("ty0"), root.data("scale"));
    }
};

var zoom_box;
var zoom_action = {
    start: function(root, x, y, event) {
        var bounds = root.plotbounds();
        var width = bounds.x1 - bounds.x0,
            height = bounds.y1 - bounds.y0;
        var ratio = width / height;
        var xscalable = root.hasClass("xscalable"),
            yscalable = root.hasClass("yscalable");
        var px_per_mm = root.data("px_per_mm");
        x = xscalable ? x / px_per_mm : bounds.x0;
        y = yscalable ? y / px_per_mm : bounds.y0;
        var w = xscalable ? 0 : width;
        var h = yscalable ? 0 : height;
        zoom_box = root.rect(x, y, w, h).attr({
            "fill": "#000",
            "opacity": 0.25
        });
        zoom_box.data("ratio", ratio);
    },
    update: function(root, dx, dy, x, y, event) {
        var xscalable = root.hasClass("xscalable"),
            yscalable = root.hasClass("yscalable");
        var px_per_mm = root.data("px_per_mm");
        var bounds = root.plotbounds();
        if (yscalable) {
            y /= px_per_mm;
            y = Math.max(bounds.y0, y);
            y = Math.min(bounds.y1, y);
        } else {
            y = bounds.y1;
        }
        if (xscalable) {
            x /= px_per_mm;
            x = Math.max(bounds.x0, x);
            x = Math.min(bounds.x1, x);
        } else {
            x = bounds.x1;
        }

        dx = x - zoom_box.attr("x");
        dy = y - zoom_box.attr("y");
        if (xscalable &amp;&amp; yscalable) {
            var ratio = zoom_box.data("ratio");
            var width = Math.min(Math.abs(dx), ratio * Math.abs(dy));
            var height = Math.min(Math.abs(dy), Math.abs(dx) / ratio);
            dx = width * dx / Math.abs(dx);
            dy = height * dy / Math.abs(dy);
        }
        var xoffset = 0,
            yoffset = 0;
        if (dx &lt; 0) {
            xoffset = dx;
            dx = -1 * dx;
        }
        if (dy &lt; 0) {
            yoffset = dy;
            dy = -1 * dy;
        }
        if (isNaN(dy)) {
            dy = 0.0;
        }
        if (isNaN(dx)) {
            dx = 0.0;
        }
        zoom_box.transform("T" + xoffset + "," + yoffset);
        zoom_box.attr("width", dx);
        zoom_box.attr("height", dy);
    },
    end: function(root, event) {
        var xscalable = root.hasClass("xscalable"),
            yscalable = root.hasClass("yscalable");
        var zoom_bounds = zoom_box.getBBox();
        if (zoom_bounds.width * zoom_bounds.height &lt;= 0) {
            return;
        }
        var plot_bounds = root.plotbounds();
        var zoom_factor = 1.0;
        if (yscalable) {
            zoom_factor = (plot_bounds.y1 - plot_bounds.y0) / zoom_bounds.height;
        } else {
            zoom_factor = (plot_bounds.x1 - plot_bounds.x0) / zoom_bounds.width;
        }
        var tx = (root.data("tx") - zoom_bounds.x) * zoom_factor + plot_bounds.x0,
            ty = (root.data("ty") - zoom_bounds.y) * zoom_factor + plot_bounds.y0;
        set_plot_pan_zoom(root, tx, ty, root.data("scale") * zoom_factor);
        zoom_box.remove();
    },
    cancel: function(root) {
        zoom_box.remove();
    }
};


Gadfly.guide_background_drag_onstart = function(x, y, event) {
    var root = this.plotroot();
    var scalable = root.hasClass("xscalable") || root.hasClass("yscalable");
    var zoomable = !event.altKey &amp;&amp; !event.ctrlKey &amp;&amp; event.shiftKey &amp;&amp; scalable;
    var panable = !event.altKey &amp;&amp; !event.ctrlKey &amp;&amp; !event.shiftKey &amp;&amp; scalable;
    var drag_action = zoomable ? zoom_action :
                      panable  ? pan_action :
                                 undefined;
    root.data("drag_action", drag_action);
    if (drag_action) {
        var cancel_drag_action = function(event) {
            if (event.which == 27) { // esc key
                drag_action.cancel(root);
                root.data("drag_action", undefined);
            }
        };
        window.addEventListener("keyup", cancel_drag_action);
        root.data("cancel_drag_action", cancel_drag_action);
        drag_action.start(root, x, y, event);
    }
};


Gadfly.guide_background_drag_onmove = function(dx, dy, x, y, event) {
    var root = this.plotroot();
    var drag_action = root.data("drag_action");
    if (drag_action) {
        drag_action.update(root, dx, dy, x, y, event);
    }
};


Gadfly.guide_background_drag_onend = function(event) {
    var root = this.plotroot();
    window.removeEventListener("keyup", root.data("cancel_drag_action"));
    root.data("cancel_drag_action", undefined);
    var drag_action = root.data("drag_action");
    if (drag_action) {
        drag_action.end(root, event);
    }
    root.data("drag_action", undefined);
};


Gadfly.guide_background_scroll = function(event) {
    if (event.shiftKey) {
        increase_zoom_by_position(this.plotroot(), 0.001 * event.wheelDelta);
        event.preventDefault();
    }
};


Gadfly.zoomslider_button_mouseover = function(event) {
    this.select(".button_logo")
         .animate({fill: this.data("mouseover_color")}, 100);
};


Gadfly.zoomslider_button_mouseout = function(event) {
     this.select(".button_logo")
         .animate({fill: this.data("mouseout_color")}, 100);
};


Gadfly.zoomslider_zoomout_click = function(event) {
    increase_zoom_by_position(this.plotroot(), -0.1, true);
};


Gadfly.zoomslider_zoomin_click = function(event) {
    increase_zoom_by_position(this.plotroot(), 0.1, true);
};


Gadfly.zoomslider_track_click = function(event) {
    // TODO
};


// Map slider position x to scale y using the function y = a*exp(b*x)+c.
// The constants a, b, and c are solved using the constraint that the function
// should go through the points (0; min_scale), (0.5; 1), and (1; max_scale).
var scale_from_slider_position = function(position, min_scale, max_scale) {
    var a = (1 - 2 * min_scale + min_scale * min_scale) / (min_scale + max_scale - 2),
        b = 2 * Math.log((max_scale - 1) / (1 - min_scale)),
        c = (min_scale * max_scale - 1) / (min_scale + max_scale - 2);
    return a * Math.exp(b * position) + c;
}

// inverse of scale_from_slider_position
var slider_position_from_scale = function(scale, min_scale, max_scale) {
    var a = (1 - 2 * min_scale + min_scale * min_scale) / (min_scale + max_scale - 2),
        b = 2 * Math.log((max_scale - 1) / (1 - min_scale)),
        c = (min_scale * max_scale - 1) / (min_scale + max_scale - 2);
    return 1 / b * Math.log((scale - c) / a);
}

var increase_zoom_by_position = function(root, delta_position, animate) {
    var scale = root.data("scale"),
        min_scale = root.data("min_scale"),
        max_scale = root.data("max_scale");
    var position = slider_position_from_scale(scale, min_scale, max_scale);
    position += delta_position;
    scale = scale_from_slider_position(position, min_scale, max_scale);
    set_zoom(root, scale, animate);
}

var set_zoom = function(root, scale, animate) {
    var min_scale = root.data("min_scale"),
        max_scale = root.data("max_scale"),
        old_scale = root.data("scale");
    var new_scale = Math.max(min_scale, Math.min(scale, max_scale));
    if (animate) {
        Snap.animate(
            old_scale,
            new_scale,
            function (new_scale) {
                update_plot_scale(root, new_scale);
            },
            200);
    } else {
        update_plot_scale(root, new_scale);
    }
}


var update_plot_scale = function(root, new_scale) {
    var trans = scale_centered_translation(root, new_scale);
    set_plot_pan_zoom(root, trans.x, trans.y, new_scale);

    root.selectAll(".zoomslider_thumb")
        .forEach(function (element, i) {
            var min_pos = element.data("min_pos"),
                max_pos = element.data("max_pos"),
                min_scale = root.data("min_scale"),
                max_scale = root.data("max_scale");
            var xmid = (min_pos + max_pos) / 2;
            var xpos = slider_position_from_scale(new_scale, min_scale, max_scale);
            element.transform(new Snap.Matrix().translate(
                Math.max(min_pos, Math.min(
                         max_pos, min_pos + (max_pos - min_pos) * xpos)) - xmid, 0));
    });
};


Gadfly.zoomslider_thumb_dragmove = function(dx, dy, x, y, event) {
    var root = this.plotroot();
    var min_pos = this.data("min_pos"),
        max_pos = this.data("max_pos"),
        min_scale = root.data("min_scale"),
        max_scale = root.data("max_scale"),
        old_scale = root.data("old_scale");

    var px_per_mm = root.data("px_per_mm");
    dx /= px_per_mm;
    dy /= px_per_mm;

    var xmid = (min_pos + max_pos) / 2;
    var xpos = slider_position_from_scale(old_scale, min_scale, max_scale) +
                   dx / (max_pos - min_pos);

    // compute the new scale
    var new_scale = scale_from_slider_position(xpos, min_scale, max_scale);
    new_scale = Math.min(max_scale, Math.max(min_scale, new_scale));

    update_plot_scale(root, new_scale);
    event.stopPropagation();
};


Gadfly.zoomslider_thumb_dragstart = function(x, y, event) {
    this.animate({fill: this.data("mouseover_color")}, 100);
    var root = this.plotroot();

    // keep track of what the scale was when we started dragging
    root.data("old_scale", root.data("scale"));
    event.stopPropagation();
};


Gadfly.zoomslider_thumb_dragend = function(event) {
    this.animate({fill: this.data("mouseout_color")}, 100);
    event.stopPropagation();
};


var toggle_color_class = function(root, color_class, ison) {
    var guides = root.selectAll(".guide." + color_class + ",.guide ." + color_class);
    var geoms = root.selectAll(".geometry." + color_class + ",.geometry ." + color_class);
    if (ison) {
        guides.animate({opacity: 0.5}, 250);
        geoms.animate({opacity: 0.0}, 250);
    } else {
        guides.animate({opacity: 1.0}, 250);
        geoms.animate({opacity: 1.0}, 250);
    }
};


Gadfly.colorkey_swatch_click = function(event) {
    var root = this.plotroot();
    var color_class = this.data("color_class");

    if (event.shiftKey) {
        root.selectAll(".colorkey text")
            .forEach(function (element) {
                var other_color_class = element.data("color_class");
                if (other_color_class != color_class) {
                    toggle_color_class(root, other_color_class,
                                       element.attr("opacity") == 1.0);
                }
            });
    } else {
        toggle_color_class(root, color_class, this.attr("opacity") == 1.0);
    }
};


return Gadfly;

}));


//@ sourceURL=gadfly.js

(function (glob, factory) {
    // AMD support
      if (typeof require === "function" &amp;&amp; typeof define === "function" &amp;&amp; define.amd) {
        require(["Snap.svg", "Gadfly"], function (Snap, Gadfly) {
            factory(Snap, Gadfly);
        });
      } else {
          factory(glob.Snap, glob.Gadfly);
      }
})(window, function (Snap, Gadfly) {
    var fig = Snap("#fig-0378e04b897742b597befd2e8e1c169e");
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-8")
   .init_gadfly();
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-11")
   .plotroot().data("unfocused_ygrid_color", "#D0D0E0")
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-11")
   .plotroot().data("focused_ygrid_color", "#A0A0A0")
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-12")
   .plotroot().data("unfocused_xgrid_color", "#D0D0E0")
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-12")
   .plotroot().data("focused_xgrid_color", "#A0A0A0")
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-16")
   .data("mouseover_color", "#CD5C5C")
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-16")
   .data("mouseout_color", "#6A6A6A")
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-16")
   .click(Gadfly.zoomslider_zoomin_click)
.mouseenter(Gadfly.zoomslider_button_mouseover)
.mouseleave(Gadfly.zoomslider_button_mouseout)
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-18")
   .data("max_pos", 111.58)
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-18")
   .data("min_pos", 94.58)
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-18")
   .click(Gadfly.zoomslider_track_click);
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-19")
   .data("max_pos", 111.58)
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-19")
   .data("min_pos", 94.58)
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-19")
   .data("mouseover_color", "#CD5C5C")
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-19")
   .data("mouseout_color", "#6A6A6A")
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-19")
   .drag(Gadfly.zoomslider_thumb_dragmove,
     Gadfly.zoomslider_thumb_dragstart,
     Gadfly.zoomslider_thumb_dragend)
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-20")
   .data("mouseover_color", "#CD5C5C")
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-20")
   .data("mouseout_color", "#6A6A6A")
;
fig.select("#fig-0378e04b897742b597befd2e8e1c169e-element-20")
   .click(Gadfly.zoomslider_zoomout_click)
.mouseenter(Gadfly.zoomslider_button_mouseover)
.mouseleave(Gadfly.zoomslider_button_mouseout)
;
    });
]]&gt; &lt;/script&gt;
&lt;/svg&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h3 id="Final-simulation"&gt;Final simulation&lt;a class="anchor-link" href="#Final-simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;We're now going to actually build out the full motion that we'll use for computing the pricing of our autocallable products. It will be largely the same, but we will use far more sample paths for the simulation.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[8]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;full_simulation&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;forward&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;vcat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;forward_term&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

    &lt;span class="c"&gt;# And an S0 to kick things off.&lt;/span&gt;
    &lt;span class="n"&gt;final_motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ones&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;T&lt;/span&gt;
        &lt;span class="n"&gt;μ&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;year_motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;simulate_gbm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;final_motion&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;μ&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;σ&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;final_motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hcat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;final_motion&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_motion&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;final_motion&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;tic&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;full_simulation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;time&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;toq&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Time to run simulation: %.2fs&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;
&lt;div class="output_subarea output_stream output_stdout output_text"&gt;
&lt;pre&gt;Time to run simulation: 5.34s&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h2 id="Athena-Simulation"&gt;Athena Simulation&lt;a class="anchor-link" href="#Athena-Simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Now that we've defined our underlying simulation, let's actually try and price an Athena note. Athena has the following characteristics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Automatically called if the underlying is above the &lt;strong&gt;call barrier&lt;/strong&gt; at observation&lt;/li&gt;
&lt;li&gt;Accelerated coupon paid if the underlying is above the &lt;strong&gt;call barrier&lt;/strong&gt; at observation&lt;ul&gt;
&lt;li&gt;The coupon paid is $c \cdot i$ with $i$ as the current year, and $c$ the coupon rate&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Principle protection up until a &lt;strong&gt;protection barrier&lt;/strong&gt; at observation; All principle at risk if this barrier not met&lt;/li&gt;
&lt;li&gt;Observed yearly&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[9]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;call_barrier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt;
&lt;span class="n"&gt;strike&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt;
&lt;span class="n"&gt;protection_barrier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;
&lt;span class="n"&gt;coupon&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;nominal&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;07&lt;/span&gt;

&lt;span class="n"&gt;price_athena&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;initial_price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;call_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;protection_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;total_coupons&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    
    &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;
        &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="n"&gt;≥&lt;/span&gt; &lt;span class="n"&gt;call_barrier&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nominal&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;prod&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;

    &lt;span class="c"&gt;# We&amp;#39;ve reached maturity, time to check capital protection&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;protection_barrier&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;nominal&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;
        &lt;span class="n"&gt;put&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;strike&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;strike&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;nominal&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;put&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;forward_structure&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;forward_term&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;price_function&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;price_athena&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;call_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;protection_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;athena&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;year_indexes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;full_simulation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;payoffs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;price_function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_indexes&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payoffs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;mean_payoffs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;zeros&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;num_simulations&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;num_simulations&lt;/span&gt;
    &lt;span class="n"&gt;tic&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;mean_payoffs&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;athena&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;time&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;toq&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Mean of simulation %i: \&lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;%.4f; Simulation time: %.2fs&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mean_payoffs&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;final_mean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mean_payoffs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Mean over &lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;num_simulations simulations: &lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;(mean(mean_payoffs))&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;pv&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;final_mean&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prod&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Present value of Athena note: \&lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;%.2f, notional: \&lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;%.2f&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pv&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nominal&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;
&lt;div class="output_subarea output_stream output_stdout output_text"&gt;
&lt;pre&gt;Mean of simulation 1: $103.2805; Simulation time: 5.59s
Mean of simulation 2: $103.3796; Simulation time: 5.05s
Mean of simulation 3: $103.4752; Simulation time: 5.18s
Mean of simulation 4: $103.4099; Simulation time: 5.37s
Mean of simulation 5: $103.3260; Simulation time: 5.32s
Mean over 5 simulations: 103.37421610015554
Present value of Athena note: $95.00, notional: $100.00&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h2 id="Phoenix-without-Memory-Simulation"&gt;Phoenix without Memory Simulation&lt;a class="anchor-link" href="#Phoenix-without-Memory-Simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Let's move into pricing a Phoenix without memory. It's very similar to the Athena production, with the exception that we introduce a coupon barrier so coupons are paid even when the underlying is below the initial price.&lt;/p&gt;
&lt;p&gt;The Phoenix product has the following characteristics (example &lt;a href="https://www.rbccm.com/usstructurednotes/file-780079.pdf"&gt;here&lt;/a&gt;):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Automatically called if the underlying is above the &lt;strong&gt;call barrier&lt;/strong&gt; at observation&lt;/li&gt;
&lt;li&gt;Coupon paid if the underlying is above a &lt;strong&gt;coupon barrier&lt;/strong&gt; at observation&lt;/li&gt;
&lt;li&gt;Principle protection up until a &lt;strong&gt;protection barrier&lt;/strong&gt; at observation; All principle at risk if this barrier not met&lt;/li&gt;
&lt;li&gt;Observed yearly&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Some example paths (all assume that a call barrier of the current price, and coupon barrier some level below that):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;At the end of year 1, the stock is above the call barrier; the note is called and you receive the value of the stock plus the coupon being paid.&lt;/li&gt;
&lt;li&gt;At the end of year 1, the stock is above the coupon barrier, but not the call barrier; you receive the coupon. At the end of year 2, the stock is below the coupon barrier; you receive nothing. At the end of year 3, the stock is above the call barrier; the note is called and you receive the value of the stock plus a coupon for year 3.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We're going to re-use the same simulation, with the following parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Call barrier: 100%&lt;/li&gt;
&lt;li&gt;Coupon barrier: 70%&lt;/li&gt;
&lt;li&gt;Coupon: 6%&lt;/li&gt;
&lt;li&gt;Capital protection until 70% (at maturity)&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[10]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;call_barrier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt;
&lt;span class="n"&gt;coupon_barrier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;
&lt;span class="n"&gt;protection_barrier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;
&lt;span class="n"&gt;coupon&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;nominal&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;06&lt;/span&gt;

&lt;span class="n"&gt;price_phoenix_no_memory&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;initial_price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;call_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;coupon_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;protection_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;total_coupons&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;
        &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="n"&gt;≥&lt;/span&gt; &lt;span class="n"&gt;call_barrier&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nominal&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;total_coupons&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;prod&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="k"&gt;elseif&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="n"&gt;≥&lt;/span&gt; &lt;span class="n"&gt;coupon_barrier&lt;/span&gt;
            &lt;span class="n"&gt;total_coupons&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;total_coupons&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt;
            &lt;span class="n"&gt;total_coupons&lt;/span&gt; &lt;span class="o"&gt;*=&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;

    &lt;span class="c"&gt;# We&amp;#39;ve reached maturity, time to check capital protection&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;protection_barrier&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;nominal&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;total_coupons&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;
        &lt;span class="n"&gt;put&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;strike&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;strike&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;nominal&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;put&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;forward_structure&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;forward_term&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;price_function&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;price_phoenix_no_memory&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;call_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;coupon_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;protection_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;phoenix_no_memory&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;year_indexes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;full_simulation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;payoffs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;price_function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_indexes&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payoffs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;mean_payoffs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;zeros&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;num_simulations&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;num_simulations&lt;/span&gt;
    &lt;span class="n"&gt;tic&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;mean_payoffs&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;phoenix_no_memory&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;time&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;toq&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Mean of simulation %i: \&lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;%.4f; Simulation time: %.2fs&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mean_payoffs&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;final_mean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mean_payoffs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Mean over &lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;num_simulations simulations: &lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;(mean(mean_payoffs))&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;pv&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;final_mean&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prod&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Present value of Phoenix without memory note: \&lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;%.2f&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pv&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;
&lt;div class="output_subarea output_stream output_stdout output_text"&gt;
&lt;pre&gt;Mean of simulation 1: $106.0562; Simulation time: 5.72s
Mean of simulation 2: $106.0071; Simulation time: 5.85s
Mean of simulation 3: $105.9959; Simulation time: 5.87s
Mean of simulation 4: $106.0665; Simulation time: 5.93s
Mean of simulation 5: $106.0168; Simulation time: 5.81s
Mean over 5 simulations: 106.02850857209883
Present value of Phoenix without memory note: $97.44&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h2 id="Phoenix-with-Memory-Simulation"&gt;Phoenix with Memory Simulation&lt;a class="anchor-link" href="#Phoenix-with-Memory-Simulation"&gt;&amp;#182;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The Phoenix with Memory structure is very similar to the Phoenix, but as the name implies, has a special "memory" property: &lt;strong&gt;It remembers any coupons that haven't been paid at prior observation times, and pays them all if the underlying crosses the coupon barrier&lt;/strong&gt;. For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Note issued with 100% call barrier, 70% coupon barrier. At year 1, the underlying is at 50%, so no coupons are paid. At year 2, the underlying is at 80%, so coupons for both year 1 and 2 are paid, resulting in a double coupon.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also find an example &lt;a href="https://www.rbccm.com/usstructurednotes/file-781232.pdf"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Let's go ahead and set up the simulation! The parameters will be the same, but we can expect that the value will go up because of the memory attribute&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[11]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-julia"&gt;&lt;pre&gt;&lt;span class="n"&gt;call_barrier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt;
&lt;span class="n"&gt;coupon_barrier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;
&lt;span class="n"&gt;protection_barrier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;
&lt;span class="n"&gt;coupon&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;nominal&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;07&lt;/span&gt;

&lt;span class="n"&gt;price_phoenix_with_memory&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;initial_price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;call_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;coupon_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;protection_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;last_coupon&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="n"&gt;total_coupons&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    
    &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;
        &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;call_barrier&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nominal&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;total_coupons&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;prod&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="k"&gt;elseif&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;coupon_barrier&lt;/span&gt;
            &lt;span class="c"&gt;####################################################################&lt;/span&gt;
            &lt;span class="c"&gt;# The only difference between with/without memory is the below lines&lt;/span&gt;
            &lt;span class="n"&gt;memory_coupons&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;last_coupon&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt;
            &lt;span class="n"&gt;last_coupon&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;
            &lt;span class="n"&gt;total_coupons&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;total_coupons&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;memory_coupons&lt;/span&gt;
            &lt;span class="c"&gt;####################################################################&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt;
            &lt;span class="n"&gt;total_coupons&lt;/span&gt; &lt;span class="o"&gt;*=&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;end&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;

    &lt;span class="c"&gt;# We&amp;#39;ve reached maturity, time to check capital protection&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;protection_barrier&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;nominal&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;total_coupons&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;
        &lt;span class="n"&gt;put&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;strike&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;strike&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;nominal&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;put&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;forward_structure&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;forward_term&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;price_function&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;price_phoenix_with_memory&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_prices&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;call_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;coupon_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;protection_barrier&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;coupon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;phoenix_with_memory&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;year_indexes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;motion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;full_simulation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;payoffs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;price_function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year_indexes&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payoffs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;mean_payoffs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;zeros&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;num_simulations&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;num_simulations&lt;/span&gt;
    &lt;span class="n"&gt;tic&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;mean_payoffs&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;phoenix_with_memory&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;time&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;toq&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Mean of simulation %i: \&lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;%.4f; Simulation time: %.2fs&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mean_payoffs&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;final_mean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mean_payoffs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Mean over &lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;num_simulations simulations: &lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;(mean(mean_payoffs))&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;pv&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;final_mean&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prod&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forward_structure&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Present value of Phoenix with memory note: \&lt;/span&gt;&lt;span class="si"&gt;$&lt;/span&gt;&lt;span class="s"&gt;%.2f&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pv&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;
&lt;div class="output_subarea output_stream output_stdout output_text"&gt;
&lt;pre&gt;Mean of simulation 1: $108.8612; Simulation time: 5.89s
Mean of simulation 2: $109.0226; Simulation time: 5.90s
Mean of simulation 3: $108.9175; Simulation time: 5.92s
Mean of simulation 4: $108.9426; Simulation time: 5.94s
Mean of simulation 5: $108.8087; Simulation time: 6.06s
Mean over 5 simulations: 108.91052564051816
Present value of Phoenix with memory note: $100.09&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;&lt;/p&gt;</summary><category term="finance"></category><category term="simulation"></category><category term="monte carlo"></category></entry><entry><title>Welcome, and an algorithm</title><link href="https://bspeice.github.io/welcome-and-an-algorithm.html" rel="alternate"></link><updated>2015-12-05T00:00:00-05:00</updated><author><name>Bradlee Speice</name></author><id>tag:bspeice.github.io,2015-11-19:welcome-and-an-algorithm.html</id><summary type="html">&lt;script type="text/x-mathjax-config"&gt;
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\(','\)']]}});
&lt;/script&gt;

&lt;script async src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML'&gt;&lt;/script&gt;

&lt;p&gt;Hello! Glad to meet you. I'm currently a student at Columbia University
studying Financial Engineering, and want to give an overview of the projects
I'm working on!&lt;/p&gt;
&lt;p&gt;To start things off, Columbia has been hosting a trading competition that
myself and another partner are competing in. I'm including a notebook of the
algorithm that we're using, just to give a simple overview of a miniature
algorithm.&lt;/p&gt;
&lt;p&gt;The competition is scored in 3 areas:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Total return&lt;/li&gt;
&lt;li&gt;&lt;a href="1"&gt;Sharpe ratio&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Maximum drawdown&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Our algorithm uses a basic momentum strategy: in the given list of potential
portfolios, pick the stocks that have been performing well in the past 30
days. Then, optimize for return subject to the drawdown being below a specific
level. We didn't include the Sharpe ratio as a constraint, mostly because
we were a bit late entering the competition.&lt;/p&gt;
&lt;p&gt;I'll be updating this post with the results of our algorithm as they come along!&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;UPDATE 12/5/2015&lt;/strong&gt;: Now that the competition has ended, I wanted to update
how the algorithm performed. Unfortunately, it didn't do very well. I'm planning
to make some tweaks over the coming weeks, and do another forward test in January.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;After week 1: Down .1%&lt;/li&gt;
&lt;li&gt;After week 2: Down 1.4%&lt;/li&gt;
&lt;li&gt;After week 3: Flat&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And some statistics for all teams participating in the competition:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Max Return&lt;/td&gt;
&lt;td&gt;74.1%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Min Return&lt;/td&gt;
&lt;td&gt;-97.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Average Return&lt;/td&gt;
&lt;td&gt;-.1%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Std Dev of Returns&lt;/td&gt;
&lt;td&gt;19.6%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr /&gt;
&lt;p&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Trading-Competition-Optimization"&gt;Trading Competition Optimization&lt;a class="anchor-link" href="#Trading-Competition-Optimization"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;h3 id="Goal:-Max-return-given-maximum-Sharpe-and-Drawdown"&gt;Goal: Max return given maximum Sharpe and Drawdown&lt;a class="anchor-link" href="#Goal:-Max-return-given-maximum-Sharpe-and-Drawdown"&gt;&amp;#182;&lt;/a&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[1]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;IPython.display&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;display&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;Quandl&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timedelta&lt;/span&gt;

&lt;span class="n"&gt;tickers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;XOM&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;CVX&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;CLB&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;OXY&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;SLB&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;market_ticker&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;GOOG/NYSE_VOO&amp;#39;&lt;/span&gt;
&lt;span class="n"&gt;lookback&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;
&lt;span class="n"&gt;d_col&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;Close&amp;#39;&lt;/span&gt;

&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Quandl&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;YAHOO/{}&amp;#39;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;))[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;lookback&lt;/span&gt;&lt;span class="p"&gt;:]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;tick&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;market&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Quandl&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;market_ticker&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Calculating-the-Return"&gt;Calculating the Return&lt;a class="anchor-link" href="#Calculating-the-Return"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;We first want to know how much each ticker returned over the prior period.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[2]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;returns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="n"&gt;d_col&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pct_change&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;tick&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;display&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;returns&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;tick&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_text output_subarea "&gt;
&lt;pre&gt;{&amp;apos;CLB&amp;apos;: -0.0016320202164526894,
 &amp;apos;CVX&amp;apos;: 0.0010319531629488911,
 &amp;apos;OXY&amp;apos;: 0.00093418904454400551,
 &amp;apos;SLB&amp;apos;: 0.00098431254720448159,
 &amp;apos;XOM&amp;apos;: 0.00044165797556096868}&lt;/pre&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Calculating-the-Sharpe-ratio"&gt;Calculating the Sharpe ratio&lt;a class="anchor-link" href="#Calculating-the-Sharpe-ratio"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;Sharpe: ${R - R_M \over \sigma}$&lt;/p&gt;
&lt;p&gt;We use the average return over the lookback period, minus the market average return, over the ticker standard deviation to calculate the Sharpe. Shorting a stock turns a negative Sharpe positive.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[3]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;market_returns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;market&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pct_change&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="n"&gt;sharpe&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;ret&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ret&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;market_returns&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;d_col&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;ret&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;std&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;sharpes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;sharpe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;returns&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;tick&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;display&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sharpes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_text output_subarea "&gt;
&lt;pre&gt;{&amp;apos;CLB&amp;apos;: -0.10578734457846127,
 &amp;apos;CVX&amp;apos;: 0.027303529817677398,
 &amp;apos;OXY&amp;apos;: 0.022622210057414487,
 &amp;apos;SLB&amp;apos;: 0.026950946344858676,
 &amp;apos;XOM&amp;apos;: -0.0053519259698605499}&lt;/pre&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Calculating-the-drawdown"&gt;Calculating the drawdown&lt;a class="anchor-link" href="#Calculating-the-drawdown"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;This one is easy - what is the maximum daily change over the lookback period? That is, because we will allow short positions, we are not concerned strictly with maximum downturn, but in general, what is the largest 1-day change?&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[4]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="n"&gt;drawdown&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;ret&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ret&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;drawdowns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;drawdown&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;returns&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;tick&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;display&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;drawdowns&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_text output_subarea "&gt;
&lt;pre&gt;{&amp;apos;CLB&amp;apos;: 0.043551495607375035,
 &amp;apos;CVX&amp;apos;: 0.044894389686214398,
 &amp;apos;OXY&amp;apos;: 0.051424517867144637,
 &amp;apos;SLB&amp;apos;: 0.034774627850375328,
 &amp;apos;XOM&amp;apos;: 0.035851524605672758}&lt;/pre&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;div class="cell border-box-sizing text_cell rendered"&gt;
&lt;div class="prompt input_prompt"&gt;
&lt;/div&gt;
&lt;div class="inner_cell"&gt;
&lt;div class="text_cell_render border-box-sizing rendered_html"&gt;
&lt;h1 id="Performing-the-optimization"&gt;Performing the optimization&lt;a class="anchor-link" href="#Performing-the-optimization"&gt;&amp;#182;&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;$\begin{align}
max\ \ &amp; \mu \cdot \omega\\
s.t.\ \ &amp; \vec{1} \omega = 1\\
&amp; \vec{S} \omega \ge s\\
&amp; \vec{D} \cdot | \omega | \le d\\
&amp; \left|\omega\right| \le l\\
\end{align}$&lt;/p&gt;
&lt;p&gt;We want to maximize average return subject to having a full portfolio, Sharpe above a specific level, drawdown below a level, and leverage not too high - that is, don't have huge long/short positions.&lt;/p&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cell border-box-sizing code_cell rendered"&gt;
&lt;div class="input"&gt;
&lt;div class="prompt input_prompt"&gt;In&amp;nbsp;[5]:&lt;/div&gt;
&lt;div class="inner_cell"&gt;
    &lt;div class="input_area"&gt;
&lt;div class=" highlight hl-ipython3"&gt;&lt;pre&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nn"&gt;np&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;scipy.optimize&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;minimize&lt;/span&gt;

&lt;span class="c1"&gt;#sharpe_limit = .1&lt;/span&gt;
&lt;span class="n"&gt;drawdown_limit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;05&lt;/span&gt;
&lt;span class="n"&gt;leverage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;250&lt;/span&gt;

&lt;span class="c1"&gt;# Use the map so we can guarantee we maintain the correct order&lt;/span&gt;
&lt;span class="c1"&gt;# sharpe_a = np.array(list(map(lambda tick: sharpes[tick], tickers))) * -1 # So we can write as upper-bound&lt;/span&gt;
&lt;span class="n"&gt;dd_a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;drawdowns&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;span class="n"&gt;returns_a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;returns&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt; &lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt; &lt;span class="c1"&gt;# Because minimizing&lt;/span&gt;

&lt;span class="n"&gt;meets_sharpe&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;sharpe_a&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;sharpe_limit&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;meets_dd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;portfolio&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;portfolio&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="c1"&gt;# If there are no stocks in the portfolio,&lt;/span&gt;
        &lt;span class="c1"&gt;# we can accidentally induce division by 0,&lt;/span&gt;
        &lt;span class="c1"&gt;# or division by something small enough to cause infinity&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;drawdown_limit&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;dd_a&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="n"&gt;is_portfolio&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;within_leverage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;leverage&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="n"&gt;objective&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;returns_a&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="c1"&gt;# Because we&amp;#39;re minimizing&lt;/span&gt;
&lt;span class="n"&gt;bounds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;),)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;zeros&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="n"&gt;constraints&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s1"&gt;&amp;#39;type&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;eq&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;&amp;#39;fun&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;is_portfolio&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s1"&gt;&amp;#39;type&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;ineq&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;&amp;#39;fun&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;within_leverage&lt;/span&gt;
    &lt;span class="c1"&gt;#}, {&lt;/span&gt;
    &lt;span class="c1"&gt;#    &amp;#39;type&amp;#39;: &amp;#39;ineq&amp;#39;,&lt;/span&gt;
    &lt;span class="c1"&gt;#    &amp;#39;fun&amp;#39;: meets_sharpe&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s1"&gt;&amp;#39;type&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;ineq&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;&amp;#39;fun&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;meets_dd&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;optimal&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;minimize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;objective&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bounds&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;bounds&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;constraints&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;constraints&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;maxiter&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="c1"&gt;# Optimization time!&lt;/span&gt;
&lt;span class="n"&gt;display&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;optimal&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;display&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Holdings: {}&amp;quot;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;zip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tickers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;optimal&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;))))&lt;/span&gt;

&lt;span class="n"&gt;expected_return&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;optimal&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fun&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;  &lt;span class="c1"&gt;# multiply by -100 to scale, and compensate for minimizing&lt;/span&gt;
&lt;span class="n"&gt;display&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Expected Return: {:.3f}%&amp;quot;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected_return&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="n"&gt;expected_drawdown&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;optimal&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;dd_a&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;optimal&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;
&lt;span class="n"&gt;display&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Expected Max Drawdown: {0:.2f}%&amp;quot;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected_drawdown&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="c1"&gt;# TODO: Calculate expected Sharpe&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="output_wrapper"&gt;
&lt;div class="output"&gt;


&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_text output_subarea "&gt;
&lt;pre&gt;&amp;apos;Optimization terminated successfully.&amp;apos;&lt;/pre&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_text output_subarea "&gt;
&lt;pre&gt;&amp;quot;Holdings: [(&amp;apos;XOM&amp;apos;, 5.8337945679814904), (&amp;apos;CVX&amp;apos;, 42.935064321851307), (&amp;apos;CLB&amp;apos;, -124.5), (&amp;apos;OXY&amp;apos;, 36.790387773552119), (&amp;apos;SLB&amp;apos;, 39.940753336615096)]&amp;quot;&lt;/pre&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_text output_subarea "&gt;
&lt;pre&gt;&amp;apos;Expected Return: 32.375%&amp;apos;&lt;/pre&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div class="output_area"&gt;&lt;div class="prompt"&gt;&lt;/div&gt;


&lt;div class="output_text output_subarea "&gt;
&lt;pre&gt;&amp;apos;Expected Max Drawdown: 4.34%&amp;apos;&lt;/pre&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;&lt;/p&gt;</summary><category term="introduction"></category><category term="trading"></category></entry></feed>