(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("328ae767-f454-4dee-ab02-98a9208c3498");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '328ae767-f454-4dee-ab02-98a9208c3498' 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 = {"3e726ff6-c327-4d1c-b1e3-5251b32aef23":{"roots":{"references":[{"attributes":{"callback":null},"id":"fcfd8d71-b56c-4f2a-afa5-6637c8ce9c06","type":"DataRange1d"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"AAAAAAAAAMCNsNzTCMv9vxphuacRlvu/qBGWexph+b81wnJPIyz3v8JyTyMs9/S/UCMs9zTC8r/d0wjLPY3wv9QIyz2NsOy/7mmE5Z5G6L8Iyz2NsNzjv0hY7mmE5d6/fBphuacR1r9guacRlnvKv6B7GmG5p7G/oHsaYbmnsT9guacRlnvKP3gaYbmnEdY/SFjuaYTl3j8Iyz2NsNzjP/BphOWeRug/1AjLPY2w7D/c0wjLPY3wP1AjLPc0wvI/wnJPIyz39D80wnJPIyz3P6gRlnsaYfk/GmG5pxGW+z+MsNzTCMv9PwAAAAAAAABA","dtype":"float64","shape":[30]},"y":{"__ndarray__":"AAAAAAAAEEBpbwI4CL0LQG77lpD9xwdAE6S9CeAgBEBTaXajr8cAQF+WgrvYePs/VpM8cSz+9T+EyRpoWh/xP9lxOkDFuOk/HsOHMopq4j+xDTtOB6jYPyT07nfG1M0/XC0TuaBwvj8rDBgpseqlP1onhyRIe3M/WieHJEh7cz8rDBgpseqlP1EtE7mgcL4/JPTud8bUzT+xDTtOB6jYPyHDhzKKauI/2XE6QMW46T+CyRpoWh/xP1aTPHEs/vU/X5aCu9h4+z9RaXajr8cAQBOkvQngIARAbvuWkP3HB0BnbwI4CL0LQAAAAAAAABBA","dtype":"float64","shape":[30]}}},"id":"765b2a6f-dc4e-4308-b9b5-301287987671","type":"ColumnDataSource"},{"attributes":{"formatter":{"id":"df682a31-54c2-4352-975f-500270f32bcc","type":"BasicTickFormatter"},"plot":{"id":"0a4f5876-42e4-4bb1-9bbd-a0cbe197866f","type":"Plot"},"ticker":{"id":"c83df1fd-e24f-4f0b-bee4-9821d24112d1","type":"BasicTicker"}},"id":"ff510afc-72f0-46a0-8056-55dab2d21847","type":"LinearAxis"},{"attributes":{},"id":"b305b3ce-4a9f-404d-b2ef-68e026d0e0ba","type":"BasicTickFormatter"},{"attributes":{},"id":"8428ac59-4366-4d33-b3cd-dfa1d4c5c4c5","type":"BasicTicker"},{"attributes":{},"id":"60490f40-b9b2-4a21-a58e-ed8c1cf82b86","type":"LinearScale"},{"attributes":{"formatter":{"id":"b305b3ce-4a9f-404d-b2ef-68e026d0e0ba","type":"BasicTickFormatter"},"plot":{"id":"0a4f5876-42e4-4bb1-9bbd-a0cbe197866f","type":"Plot"},"ticker":{"id":"8428ac59-4366-4d33-b3cd-dfa1d4c5c4c5","type":"BasicTicker"}},"id":"9cdfcc1e-c10c-4def-adfc-1ef3dc0ad1fa","type":"LinearAxis"},{"attributes":{},"id":"6655a33d-e9c3-477b-9bf6-50be5274660f","type":"LinearScale"},{"attributes":{"source":{"id":"765b2a6f-dc4e-4308-b9b5-301287987671","type":"ColumnDataSource"}},"id":"5e6e5146-4052-4ef8-8e54-2318c9300acb","type":"CDSView"},{"attributes":{"data_source":{"id":"765b2a6f-dc4e-4308-b9b5-301287987671","type":"ColumnDataSource"},"glyph":{"id":"7f7da336-bb63-4e56-a498-9b629e13e185","type":"Line"},"hover_glyph":null,"muted_glyph":null,"view":{"id":"5e6e5146-4052-4ef8-8e54-2318c9300acb","type":"CDSView"}},"id":"04deab80-4353-425e-9163-a5d6f7cbe7d5","type":"GlyphRenderer"},{"attributes":{"below":[{"id":"ff510afc-72f0-46a0-8056-55dab2d21847","type":"LinearAxis"}],"h_symmetry":false,"left":[{"id":"9cdfcc1e-c10c-4def-adfc-1ef3dc0ad1fa","type":"LinearAxis"}],"min_border":0,"plot_height":300,"plot_width":300,"renderers":[{"id":"04deab80-4353-425e-9163-a5d6f7cbe7d5","type":"GlyphRenderer"},{"id":"ff510afc-72f0-46a0-8056-55dab2d21847","type":"LinearAxis"},{"id":"9cdfcc1e-c10c-4def-adfc-1ef3dc0ad1fa","type":"LinearAxis"},{"id":"19d46be3-b70a-488e-9ce7-2b2f65fe56ca","type":"Grid"},{"id":"51d0a245-a31c-46f3-a87c-3c532aa14989","type":"Grid"}],"title":null,"toolbar":{"id":"076b7800-47cd-4e3d-b1a1-2bee8444ace5","type":"Toolbar"},"toolbar_location":null,"x_range":{"id":"1242c794-1752-4412-8257-648cbff06c72","type":"DataRange1d"},"x_scale":{"id":"60490f40-b9b2-4a21-a58e-ed8c1cf82b86","type":"LinearScale"},"y_range":{"id":"fcfd8d71-b56c-4f2a-afa5-6637c8ce9c06","type":"DataRange1d"},"y_scale":{"id":"6655a33d-e9c3-477b-9bf6-50be5274660f","type":"LinearScale"}},"id":"0a4f5876-42e4-4bb1-9bbd-a0cbe197866f","type":"Plot"},{"attributes":{},"id":"df682a31-54c2-4352-975f-500270f32bcc","type":"BasicTickFormatter"},{"attributes":{"line_alpha":{"value":0.6},"line_color":{"value":"#F46D43"},"line_width":{"value":6},"x":{"field":"x"},"y":{"field":"y"}},"id":"7f7da336-bb63-4e56-a498-9b629e13e185","type":"Line"},{"attributes":{},"id":"c83df1fd-e24f-4f0b-bee4-9821d24112d1","type":"BasicTicker"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto"},"id":"076b7800-47cd-4e3d-b1a1-2bee8444ace5","type":"Toolbar"},{"attributes":{"dimension":1,"plot":{"id":"0a4f5876-42e4-4bb1-9bbd-a0cbe197866f","type":"Plot"},"ticker":{"id":"8428ac59-4366-4d33-b3cd-dfa1d4c5c4c5","type":"BasicTicker"}},"id":"51d0a245-a31c-46f3-a87c-3c532aa14989","type":"Grid"},{"attributes":{"plot":{"id":"0a4f5876-42e4-4bb1-9bbd-a0cbe197866f","type":"Plot"},"ticker":{"id":"c83df1fd-e24f-4f0b-bee4-9821d24112d1","type":"BasicTicker"}},"id":"19d46be3-b70a-488e-9ce7-2b2f65fe56ca","type":"Grid"},{"attributes":{"callback":null},"id":"1242c794-1752-4412-8257-648cbff06c72","type":"DataRange1d"}],"root_ids":["0a4f5876-42e4-4bb1-9bbd-a0cbe197866f"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"3e726ff6-c327-4d1c-b1e3-5251b32aef23","elementid":"328ae767-f454-4dee-ab02-98a9208c3498","modelid":"0a4f5876-42e4-4bb1-9bbd-a0cbe197866f"}];
                
                    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);
})();
