(function() {
  var fn = function() {
    
    (function(root) {
      function now() {
        return new Date();
      }
    
      var force = false;
    
      if (typeof (root._bokeh_onload_callbacks) === "undefined" || force === true) {
        root._bokeh_onload_callbacks = [];
        root._bokeh_is_loading = undefined;
      }
    
      
      
    
      
      
    
      function run_callbacks() {
        try {
          root._bokeh_onload_callbacks.forEach(function(callback) { callback() });
        }
        finally {
          delete root._bokeh_onload_callbacks
        }
        console.info("Bokeh: all callbacks have finished");
      }
    
      function load_libs(js_urls, callback) {
        root._bokeh_onload_callbacks.push(callback);
        if (root._bokeh_is_loading > 0) {
          console.log("Bokeh: BokehJS is being loaded, scheduling callback at", now());
          return null;
        }
        if (js_urls == null || js_urls.length === 0) {
          run_callbacks();
          return null;
        }
        console.log("Bokeh: BokehJS not loaded, scheduling load and callback at", now());
        root._bokeh_is_loading = js_urls.length;
        for (var i = 0; i < js_urls.length; i++) {
          var url = js_urls[i];
          var s = document.createElement('script');
          s.src = url;
          s.async = false;
          s.onreadystatechange = s.onload = function() {
            root._bokeh_is_loading--;
            if (root._bokeh_is_loading === 0) {
              console.log("Bokeh: all BokehJS libraries loaded");
              run_callbacks()
            }
          };
          s.onerror = function() {
            console.warn("failed to load library " + url);
          };
          console.log("Bokeh: injecting script tag for BokehJS library: ", url);
          document.getElementsByTagName("head")[0].appendChild(s);
        }
      };var element = document.getElementById("381b1811-b7dd-4071-9282-4eb6f87c034c");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '381b1811-b7dd-4071-9282-4eb6f87c034c' but no matching script tag was found. ")
        return false;
      }
    
      var js_urls = ["https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-gl-0.12.9.min.js"];
    
      var inline_js = [
        function(Bokeh) {
          Bokeh.set_log_level("info");
        },
        
        function(Bokeh) {
          
        },
        
        function(Bokeh) {
          (function() {
            var fn = function() {
              Bokeh.safely(function() {
                (function(root) {
                  function embed_document(root) {
                    var docs_json = {"e7f29df4-a93c-424b-a42a-9b8a800d9559":{"roots":{"references":[{"attributes":{},"id":"9d33cbdc-e309-4a4c-abb9-a0a28dfb4dc7","type":"PanTool"},{"attributes":{"days":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},"id":"eb929b39-740e-49d4-a103-782d8c14a5ef","type":"DaysTicker"},{"attributes":{"days":[1,8,15,22]},"id":"72e2f7a0-0207-4d97-8330-412468592b3a","type":"DaysTicker"},{"attributes":{},"id":"98af0621-01ce-4061-a772-a6e4d4358d82","type":"YearsTicker"},{"attributes":{"callback":null},"id":"442ddc29-d63d-4691-a5ed-21a7112ebfe4","type":"DataRange1d"},{"attributes":{"months":[0,1,2,3,4,5,6,7,8,9,10,11]},"id":"ea881389-99c5-471c-928d-9089ef5b23ca","type":"MonthsTicker"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"x":{"field":"x"},"y":{"field":"y"}},"id":"33014d8c-b1be-44d7-bca1-9e3aee5ac110","type":"Line"},{"attributes":{"months":[0,6]},"id":"b72989e7-bd81-4149-857e-716651e9dd2b","type":"MonthsTicker"},{"attributes":{"bottom_units":"screen","fill_alpha":{"value":0.5},"fill_color":{"value":"lightgrey"},"left_units":"screen","level":"overlay","line_alpha":{"value":1.0},"line_color":{"value":"black"},"line_dash":[4,4],"line_width":{"value":2},"plot":null,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"0d1b5586-5303-4b37-8678-21bf2b9ca236","type":"BoxAnnotation"},{"attributes":{},"id":"fd025ec8-4f29-43f0-ae5b-df40a88948e6","type":"SaveTool"},{"attributes":{"base":24,"mantissas":[1,2,4,6,8,12],"max_interval":43200000.0,"min_interval":3600000.0,"num_minor_ticks":0},"id":"d047db53-81ea-4204-b74b-aaee7c7e1746","type":"AdaptiveTicker"},{"attributes":{"callback":null},"id":"5d4a7a17-a7b3-4cbe-b94d-4774f29030cc","type":"DataRange1d"},{"attributes":{},"id":"ec266d0d-95c9-425c-991f-89be3b9b9e1c","type":"WheelZoomTool"},{"attributes":{"num_minor_ticks":5,"tickers":[{"id":"096c0d67-baa8-47d6-966e-ac9a8c987625","type":"AdaptiveTicker"},{"id":"33c0fa2e-1ed3-425c-ba21-2e2bd0dfd523","type":"AdaptiveTicker"},{"id":"d047db53-81ea-4204-b74b-aaee7c7e1746","type":"AdaptiveTicker"},{"id":"eb929b39-740e-49d4-a103-782d8c14a5ef","type":"DaysTicker"},{"id":"a49eedb7-ee7a-468c-be65-8808b7c1170b","type":"DaysTicker"},{"id":"72e2f7a0-0207-4d97-8330-412468592b3a","type":"DaysTicker"},{"id":"2b61575c-519d-4ac5-b18c-4a0d31a446bf","type":"DaysTicker"},{"id":"ea881389-99c5-471c-928d-9089ef5b23ca","type":"MonthsTicker"},{"id":"bce274c7-0fc8-4c83-bb75-e25c9e67fa4e","type":"MonthsTicker"},{"id":"af38a35a-56ad-4d64-a11e-e7fbb4e4fd7b","type":"MonthsTicker"},{"id":"b72989e7-bd81-4149-857e-716651e9dd2b","type":"MonthsTicker"},{"id":"98af0621-01ce-4061-a772-a6e4d4358d82","type":"YearsTicker"}]},"id":"005374ed-7edf-4e73-b39d-ef0abd383ee9","type":"DatetimeTicker"},{"attributes":{"plot":{"id":"dc4a3759-fe99-4398-a060-1ec3934879a3","subtype":"Figure","type":"Plot"},"ticker":{"id":"005374ed-7edf-4e73-b39d-ef0abd383ee9","type":"DatetimeTicker"}},"id":"72166129-0240-4cb0-9e6b-fd29b8adde97","type":"Grid"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"[encoded data, 34880 characters]","dtype":"float64","shape":[3270]},"y":{"__ndarray__":"[encoded data, 34880 characters]","dtype":"float64","shape":[3270]}}},"id":"f07574ba-08db-4df8-8121-f05a2ca94d73","type":"ColumnDataSource"},{"attributes":{"mantissas":[1,2,5],"max_interval":500.0,"num_minor_ticks":0},"id":"096c0d67-baa8-47d6-966e-ac9a8c987625","type":"AdaptiveTicker"},{"attributes":{},"id":"86c1d529-98c9-476f-b494-7d7ee4e41bac","type":"DatetimeTickFormatter"},{"attributes":{"days":[1,4,7,10,13,16,19,22,25,28]},"id":"a49eedb7-ee7a-468c-be65-8808b7c1170b","type":"DaysTicker"},{"attributes":{},"id":"c87fbf5f-3601-4a48-a6fb-d1fd71fbc0a3","type":"LinearScale"},{"attributes":{"dimension":1,"plot":{"id":"dc4a3759-fe99-4398-a060-1ec3934879a3","subtype":"Figure","type":"Plot"},"ticker":{"id":"de2f5465-a476-4ec4-81ea-208d81148d5a","type":"BasicTicker"}},"id":"90836142-b371-4124-98f7-743754ff094d","type":"Grid"},{"attributes":{"data_source":{"id":"f07574ba-08db-4df8-8121-f05a2ca94d73","type":"ColumnDataSource"},"glyph":{"id":"29f0ff53-57bd-4112-83a5-6ab7fee1fc54","type":"Line"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"33014d8c-b1be-44d7-bca1-9e3aee5ac110","type":"Line"},"selection_glyph":null,"view":{"id":"66a43c47-8543-44fe-a780-c6aefe9a0b30","type":"CDSView"}},"id":"a26c02d0-7beb-4741-a0b0-1055790392f6","type":"GlyphRenderer"},{"attributes":{"line_alpha":{"value":0.5},"line_color":{"value":"navy"},"x":{"field":"x"},"y":{"field":"y"}},"id":"29f0ff53-57bd-4112-83a5-6ab7fee1fc54","type":"Line"},{"attributes":{"months":[0,4,8]},"id":"af38a35a-56ad-4d64-a11e-e7fbb4e4fd7b","type":"MonthsTicker"},{"attributes":{"overlay":{"id":"0d1b5586-5303-4b37-8678-21bf2b9ca236","type":"BoxAnnotation"}},"id":"d0a713d3-f471-4443-b064-e11259d0a6eb","type":"BoxZoomTool"},{"attributes":{"source":{"id":"f07574ba-08db-4df8-8121-f05a2ca94d73","type":"ColumnDataSource"}},"id":"66a43c47-8543-44fe-a780-c6aefe9a0b30","type":"CDSView"},{"attributes":{},"id":"de2f5465-a476-4ec4-81ea-208d81148d5a","type":"BasicTicker"},{"attributes":{"base":60,"mantissas":[1,2,5,10,15,20,30],"max_interval":1800000.0,"min_interval":1000.0,"num_minor_ticks":0},"id":"33c0fa2e-1ed3-425c-ba21-2e2bd0dfd523","type":"AdaptiveTicker"},{"attributes":{"formatter":{"id":"7383ef44-74b1-474a-9df5-944bd8238493","type":"BasicTickFormatter"},"plot":{"id":"dc4a3759-fe99-4398-a060-1ec3934879a3","subtype":"Figure","type":"Plot"},"ticker":{"id":"de2f5465-a476-4ec4-81ea-208d81148d5a","type":"BasicTicker"}},"id":"9a6cf2ed-4fbf-4d49-a863-8423429318b5","type":"LinearAxis"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"9d33cbdc-e309-4a4c-abb9-a0a28dfb4dc7","type":"PanTool"},{"id":"ec266d0d-95c9-425c-991f-89be3b9b9e1c","type":"WheelZoomTool"},{"id":"d0a713d3-f471-4443-b064-e11259d0a6eb","type":"BoxZoomTool"},{"id":"fd025ec8-4f29-43f0-ae5b-df40a88948e6","type":"SaveTool"},{"id":"b57ddaa5-a2b9-4a51-8528-05a1912ae1f4","type":"ResetTool"},{"id":"8e9d65a6-c4a1-40e8-a834-442b8929f7dc","type":"HelpTool"}]},"id":"87d173d6-8646-41a4-8823-eda7e9888b5d","type":"Toolbar"},{"attributes":{"formatter":{"id":"86c1d529-98c9-476f-b494-7d7ee4e41bac","type":"DatetimeTickFormatter"},"plot":{"id":"dc4a3759-fe99-4398-a060-1ec3934879a3","subtype":"Figure","type":"Plot"},"ticker":{"id":"005374ed-7edf-4e73-b39d-ef0abd383ee9","type":"DatetimeTicker"}},"id":"d1bd0cab-c86a-46a5-b6af-9e25f7579511","type":"DatetimeAxis"},{"attributes":{},"id":"8e9d65a6-c4a1-40e8-a834-442b8929f7dc","type":"HelpTool"},{"attributes":{"plot":null,"text":""},"id":"b75ed892-c590-4277-9fc4-6363735a01f7","type":"Title"},{"attributes":{"days":[1,15]},"id":"2b61575c-519d-4ac5-b18c-4a0d31a446bf","type":"DaysTicker"},{"attributes":{"months":[0,2,4,6,8,10]},"id":"bce274c7-0fc8-4c83-bb75-e25c9e67fa4e","type":"MonthsTicker"},{"attributes":{"below":[{"id":"d1bd0cab-c86a-46a5-b6af-9e25f7579511","type":"DatetimeAxis"}],"left":[{"id":"9a6cf2ed-4fbf-4d49-a863-8423429318b5","type":"LinearAxis"}],"plot_height":250,"plot_width":800,"renderers":[{"id":"d1bd0cab-c86a-46a5-b6af-9e25f7579511","type":"DatetimeAxis"},{"id":"72166129-0240-4cb0-9e6b-fd29b8adde97","type":"Grid"},{"id":"9a6cf2ed-4fbf-4d49-a863-8423429318b5","type":"LinearAxis"},{"id":"90836142-b371-4124-98f7-743754ff094d","type":"Grid"},{"id":"0d1b5586-5303-4b37-8678-21bf2b9ca236","type":"BoxAnnotation"},{"id":"a26c02d0-7beb-4741-a0b0-1055790392f6","type":"GlyphRenderer"}],"title":{"id":"b75ed892-c590-4277-9fc4-6363735a01f7","type":"Title"},"toolbar":{"id":"87d173d6-8646-41a4-8823-eda7e9888b5d","type":"Toolbar"},"x_range":{"id":"442ddc29-d63d-4691-a5ed-21a7112ebfe4","type":"DataRange1d"},"x_scale":{"id":"40e40766-e82b-4530-a839-0197d4d6cf67","type":"LinearScale"},"y_range":{"id":"5d4a7a17-a7b3-4cbe-b94d-4774f29030cc","type":"DataRange1d"},"y_scale":{"id":"c87fbf5f-3601-4a48-a6fb-d1fd71fbc0a3","type":"LinearScale"}},"id":"dc4a3759-fe99-4398-a060-1ec3934879a3","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"7383ef44-74b1-474a-9df5-944bd8238493","type":"BasicTickFormatter"},{"attributes":{},"id":"b57ddaa5-a2b9-4a51-8528-05a1912ae1f4","type":"ResetTool"},{"attributes":{},"id":"40e40766-e82b-4530-a839-0197d4d6cf67","type":"LinearScale"}],"root_ids":["dc4a3759-fe99-4398-a060-1ec3934879a3"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"e7f29df4-a93c-424b-a42a-9b8a800d9559","elementid":"381b1811-b7dd-4071-9282-4eb6f87c034c","modelid":"dc4a3759-fe99-4398-a060-1ec3934879a3"}];
                
                    root.Bokeh.embed.embed_items(docs_json, render_items);
                  }
                
                  if (root.Bokeh !== undefined) {
                    embed_document(root);
                  } else {
                    var attempts = 0;
                    var timer = setInterval(function(root) {
                      if (root.Bokeh !== undefined) {
                        embed_document(root);
                        clearInterval(timer);
                      }
                      attempts++;
                      if (attempts > 100) {
                        console.log("Bokeh: ERROR: Unable to embed document because BokehJS library is missing")
                        clearInterval(timer);
                      }
                    }, 10, root)
                  }
                })(window);
              });
            };
            if (document.readyState != "loading") fn();
            else document.addEventListener("DOMContentLoaded", fn);
          })();
        },
        function(Bokeh) {
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.css");
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.css");
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.css");
        }
      ];
    
      function run_inline_js() {
        
        for (var i = 0; i < inline_js.length; i++) {
          inline_js[i].call(root, root.Bokeh);
        }
        
      }
    
      if (root._bokeh_is_loading === 0) {
        console.log("Bokeh: BokehJS loaded, going straight to plotting");
        run_inline_js();
      } else {
        load_libs(js_urls, function() {
          console.log("Bokeh: BokehJS plotting callback run at", now());
          run_inline_js();
        });
      }
    }(window));
  };
  if (document.readyState != "loading") fn();
  else document.addEventListener("DOMContentLoaded", fn);
})();
