(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("04a59a6c-b3bb-4976-8130-6149e21b51fd");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '04a59a6c-b3bb-4976-8130-6149e21b51fd' 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 = {"07c6b32c-49a8-4240-8326-a51ba6750188":{"roots":{"references":[{"attributes":{},"id":"a7c8fa87-0bba-4470-8751-09dbe51bcaba","type":"StringFormatter"},{"attributes":{"children":[{"id":"2c9e6104-c7f7-4038-ac34-620c5354f329","type":"DataTable"}]},"id":"7e122a2e-12ce-4fad-8539-7cd7f0e8bdf1","type":"WidgetBox"},{"attributes":{"columns":[{"id":"606343dd-411a-4851-aa1d-4d1fd9178c11","type":"TableColumn"},{"id":"75dd6f49-250c-49d6-9715-7b1ca20b64ab","type":"TableColumn"}],"height":280,"source":{"id":"6f2eecad-43d2-4f89-935e-f97f68feee75","type":"ColumnDataSource"},"view":{"id":"a33cadad-aada-492e-beb1-471766acaaad","type":"CDSView"},"width":400},"id":"2c9e6104-c7f7-4038-ac34-620c5354f329","type":"DataTable"},{"attributes":{"editor":{"id":"2ae80fc5-beec-4685-9fb6-17ae05a4198c","type":"StringEditor"},"field":"dates","formatter":{"id":"125c29c5-b8ab-4797-bb31-485f75dc8301","type":"DateFormatter"},"title":"Date"},"id":"606343dd-411a-4851-aa1d-4d1fd9178c11","type":"TableColumn"},{"attributes":{},"id":"2ae80fc5-beec-4685-9fb6-17ae05a4198c","type":"StringEditor"},{"attributes":{"source":{"id":"6f2eecad-43d2-4f89-935e-f97f68feee75","type":"ColumnDataSource"}},"id":"a33cadad-aada-492e-beb1-471766acaaad","type":"CDSView"},{"attributes":{},"id":"125c29c5-b8ab-4797-bb31-485f75dc8301","type":"DateFormatter"},{"attributes":{"callback":null,"column_names":["downloads","dates"],"data":{"dates":[1393632000000.0,1393718400000.0,1393804800000.0,1393891200000.0,1393977600000.0,1394064000000.0,1394150400000.0,1394236800000.0,1394323200000.0,1394409600000.0],"downloads":[68,91,76,25,43,79,38,84,75,22]}},"id":"6f2eecad-43d2-4f89-935e-f97f68feee75","type":"ColumnDataSource"},{"attributes":{},"id":"8f45bc33-df70-43c6-b85e-2e655401c46e","type":"StringEditor"},{"attributes":{"editor":{"id":"8f45bc33-df70-43c6-b85e-2e655401c46e","type":"StringEditor"},"field":"downloads","formatter":{"id":"a7c8fa87-0bba-4470-8751-09dbe51bcaba","type":"StringFormatter"},"title":"Downloads"},"id":"75dd6f49-250c-49d6-9715-7b1ca20b64ab","type":"TableColumn"}],"root_ids":["7e122a2e-12ce-4fad-8539-7cd7f0e8bdf1"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"07c6b32c-49a8-4240-8326-a51ba6750188","elementid":"04a59a6c-b3bb-4976-8130-6149e21b51fd","modelid":"7e122a2e-12ce-4fad-8539-7cd7f0e8bdf1"}];
                
                    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);
})();
