text: // Compiled by ClojureScript 1.10.520 {}
  goog.provide('figwheel.core');
  goog.require('cljs.core');
  goog.require('figwheel.tools.heads_up');
  goog.require('goog.object');
  goog.require('goog.string');
  goog.require('goog.string.format');
  goog.require('goog.log');
  goog.require('clojure.set');
  goog.require('clojure.string');
  goog.require('goog.debug.Console');
  goog.require('goog.async.Deferred');
  goog.require('goog.Promise');
  goog.require('goog.events.EventTarget');
  goog.require('goog.events.Event');
  figwheel.core.distinct_by = (function figwheel$core$distinct_by(f,coll){
  var seen = cljs.core.volatile_BANG_.call(null,cljs.core.PersistentHashSet.EMPTY);
  return cljs.core.filter.call(null,((function (seen){
  return (function (p1__47833_SHARP_){
  var k = f.call(null,p1__47833_SHARP_);
  var res = cljs.core.not.call(null,cljs.core.deref.call(null,seen).call(null,k));
  cljs.core._vreset_BANG_.call(null,seen,cljs.core.conj.call(null,cljs.core._deref.call(null,seen),k));
  
  return res;
  });})(seen))
  ,coll);
  });
  figwheel.core.map_keys = (function figwheel$core$map_keys(f,coll){
  return cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,cljs.core.map.call(null,(function (p__47834){
  var vec__47835 = p__47834;
  var k = cljs.core.nth.call(null,vec__47835,(0),null);
  var v = cljs.core.nth.call(null,vec__47835,(1),null);
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [f.call(null,k),v], null);
  })),coll);
  });
  figwheel.core._STAR_inline_code_message_max_column_STAR_ = (80);
  figwheel.core.wrap_line = (function figwheel$core$wrap_line(text,size){
  return cljs.core.re_seq.call(null,cljs.core.re_pattern.call(null,[".{1,",cljs.core.str.cljs$core$IFn$_invoke$arity$1(size),"}\\s|.{1,",cljs.core.str.cljs$core$IFn$_invoke$arity$1(size),"}"].join('')),[cljs.core.str.cljs$core$IFn$_invoke$arity$1(clojure.string.replace.call(null,text,/\n/," "))," "].join(''));
  });
  figwheel.core.cross_format = (function figwheel$core$cross_format(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___47839 = arguments.length;
  var i__4731__auto___47840 = (0);
  while(true){
  if((i__4731__auto___47840 < len__4730__auto___47839)){
  args__4736__auto__.push((arguments[i__4731__auto___47840]));
  
  var G__47841 = (i__4731__auto___47840 + (1));
  i__4731__auto___47840 = G__47841;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((0) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((0)),(0),null)):null);
  return figwheel.core.cross_format.cljs$core$IFn$_invoke$arity$variadic(argseq__4737__auto__);
  });
  
  figwheel.core.cross_format.cljs$core$IFn$_invoke$arity$variadic = (function (args){
  return cljs.core.apply.call(null,goog.string.format,args);
  });
  
  figwheel.core.cross_format.cljs$lang$maxFixedArity = (0);
  
  /** @this {Function} */
  figwheel.core.cross_format.cljs$lang$applyTo = (function (seq47838){
  var self__4718__auto__ = this;
  return self__4718__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq47838));
  });
  
  figwheel.core.pointer_message_lines = (function figwheel$core$pointer_message_lines(p__47844){
  var map__47845 = p__47844;
  var map__47845__$1 = (((((!((map__47845 == null))))?(((((map__47845.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__47845.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__47845):map__47845);
  var message = cljs.core.get.call(null,map__47845__$1,new cljs.core.Keyword(null,"message","message",-406056002));
  var column = cljs.core.get.call(null,map__47845__$1,new cljs.core.Keyword(null,"column","column",2078222095));
  if(((column + cljs.core.count.call(null,message)) > figwheel.core._STAR_inline_code_message_max_column_STAR_)){
  return cljs.core.mapv.call(null,((function (map__47845,map__47845__$1,message,column){
  return (function (p1__47843_SHARP_){
  return cljs.core.vec.call(null,cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"error-message","error-message",1756021561),null], null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [p1__47843_SHARP_], null)));
  });})(map__47845,map__47845__$1,message,column))
  ,cljs.core.cons.call(null,figwheel.core.cross_format.call(null,(function (){var col = (column - (1));
  return ["%",cljs.core.str.cljs$core$IFn$_invoke$arity$1((((col === (0)))?null:col)),"s%s"].join('');
  })(),"","^---"),cljs.core.map.call(null,((function (map__47845,map__47845__$1,message,column){
  return (function (p1__47842_SHARP_){
  return figwheel.core.cross_format.call(null,["%",cljs.core.str.cljs$core$IFn$_invoke$arity$1(figwheel.core._STAR_inline_code_message_max_column_STAR_),"s"].join(''),p1__47842_SHARP_);
  });})(map__47845,map__47845__$1,message,column))
  ,figwheel.core.wrap_line.call(null,message,(figwheel.core._STAR_inline_code_message_max_column_STAR_ - (10))))));
  } else {
  return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"error-message","error-message",1756021561),null,figwheel.core.cross_format.call(null,(function (){var col = (column - (1));
  return ["%",cljs.core.str.cljs$core$IFn$_invoke$arity$1((((col === (0)))?null:col)),"s%s %s"].join('');
  })(),"","^---",message)], null)], null);
  }
  });
  figwheel.core.inline_message_display_data = (function figwheel$core$inline_message_display_data(p__47848){
  var map__47849 = p__47848;
  var map__47849__$1 = (((((!((map__47849 == null))))?(((((map__47849.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__47849.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__47849):map__47849);
  var message_data = map__47849__$1;
  var message = cljs.core.get.call(null,map__47849__$1,new cljs.core.Keyword(null,"message","message",-406056002));
  var line = cljs.core.get.call(null,map__47849__$1,new cljs.core.Keyword(null,"line","line",212345235));
  var column = cljs.core.get.call(null,map__47849__$1,new cljs.core.Keyword(null,"column","column",2078222095));
  var file_excerpt = cljs.core.get.call(null,map__47849__$1,new cljs.core.Keyword(null,"file-excerpt","file-excerpt",-1132330744));
  if(cljs.core.truth_(file_excerpt)){
  var map__47851 = file_excerpt;
  var map__47851__$1 = (((((!((map__47851 == null))))?(((((map__47851.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__47851.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__47851):map__47851);
  var start_line = cljs.core.get.call(null,map__47851__$1,new cljs.core.Keyword(null,"start-line","start-line",-41746654));
  var path = cljs.core.get.call(null,map__47851__$1,new cljs.core.Keyword(null,"path","path",-188191168));
  var excerpt = cljs.core.get.call(null,map__47851__$1,new cljs.core.Keyword(null,"excerpt","excerpt",219850763));
  var lines = cljs.core.map_indexed.call(null,((function (map__47851,map__47851__$1,start_line,path,excerpt,map__47849,map__47849__$1,message_data,message,line,column,file_excerpt){
  return (function (i,l){
  var ln = (i + start_line);
  return (new cljs.core.PersistentVector(null,3,(5),cljs.core.PersistentVector.EMPTY_NODE,[((cljs.core._EQ_.call(null,line,ln))?new cljs.core.Keyword(null,"error-in-code","error-in-code",-1661931357):new cljs.core.Keyword(null,"code-line","code-line",-2138627853)),ln,l],null));
  });})(map__47851,map__47851__$1,start_line,path,excerpt,map__47849,map__47849__$1,message_data,message,line,column,file_excerpt))
  ,clojure.string.split_lines.call(null,excerpt));
  var vec__47852 = cljs.core.split_with.call(null,((function (map__47851,map__47851__$1,start_line,path,excerpt,lines,map__47849,map__47849__$1,message_data,message,line,column,file_excerpt){
  return (function (p1__47847_SHARP_){
  return cljs.core.not_EQ_.call(null,new cljs.core.Keyword(null,"error-in-code","error-in-code",-1661931357),cljs.core.first.call(null,p1__47847_SHARP_));
  });})(map__47851,map__47851__$1,start_line,path,excerpt,lines,map__47849,map__47849__$1,message_data,message,line,column,file_excerpt))
  ,lines);
  var begin = cljs.core.nth.call(null,vec__47852,(0),null);
  var end = cljs.core.nth.call(null,vec__47852,(1),null);
  return cljs.core.concat.call(null,cljs.core.take_last.call(null,(5),begin),cljs.core.take.call(null,(1),end),figwheel.core.pointer_message_lines.call(null,message_data),cljs.core.take.call(null,(5),cljs.core.rest.call(null,end)));
  } else {
  return null;
  }
  });
  figwheel.core.file_line_column = (function figwheel$core$file_line_column(p__47856){
  var map__47857 = p__47856;
  var map__47857__$1 = (((((!((map__47857 == null))))?(((((map__47857.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__47857.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__47857):map__47857);
  var file = cljs.core.get.call(null,map__47857__$1,new cljs.core.Keyword(null,"file","file",-1269645878));
  var line = cljs.core.get.call(null,map__47857__$1,new cljs.core.Keyword(null,"line","line",212345235));
  var column = cljs.core.get.call(null,map__47857__$1,new cljs.core.Keyword(null,"column","column",2078222095));
  var G__47859 = "";
  var G__47859__$1 = (cljs.core.truth_(file)?[G__47859,"file ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(file)].join(''):G__47859);
  var G__47859__$2 = (cljs.core.truth_(line)?[G__47859__$1," at line ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(line)].join(''):G__47859__$1);
  if(cljs.core.truth_((function (){var and__4120__auto__ = line;
  if(cljs.core.truth_(and__4120__auto__)){
  return column;
  } else {
  return and__4120__auto__;
  }
  })())){
  return [G__47859__$2,", column ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(column)].join('');
  } else {
  return G__47859__$2;
  }
  });
  if((typeof figwheel !== 'undefined') && (typeof figwheel.core !== 'undefined') && (typeof figwheel.core.logger !== 'undefined')){
  } else {
  figwheel.core.logger = goog.log.getLogger("Figwheel");
  }
  
  figwheel.core.console_logging = (function figwheel$core$console_logging(){
  if(cljs.core.truth_(goog.object.get(goog.debug.Console,"instance"))){
  } else {
  var c_47914 = (new goog.debug.Console());
  var G__47866_47915 = c_47914.getFormatter();
  goog.object.set(G__47866_47915,"showAbsoluteTime",false);
  
  goog.object.set(G__47866_47915,"showRelativeTime",false);
  
  
  goog.object.set(goog.debug.Console,"instance",c_47914);
  
  }
  
  var temp__5720__auto__ = goog.object.get(goog.debug.Console,"instance");
  if(cljs.core.truth_(temp__5720__auto__)){
  var console_instance = temp__5720__auto__;
  console_instance.setCapturing(true);
  
  return true;
  } else {
  return null;
  }
  });
  goog.exportSymbol('figwheel.core.console_logging', figwheel.core.console_logging);
  
  if((typeof figwheel !== 'undefined') && (typeof figwheel.core !== 'undefined') && (typeof figwheel.core.log_console !== 'undefined')){
  } else {
  figwheel.core.log_console = figwheel.core.console_logging.call(null);
  }
  
  figwheel.core.event_target = (((typeof document !== 'undefined'))?document:(new goog.events.EventTarget()));
  goog.exportSymbol('figwheel.core.event_target', figwheel.core.event_target);
  
  if((typeof figwheel !== 'undefined') && (typeof figwheel.core !== 'undefined') && (typeof figwheel.core.listener_key_map !== 'undefined')){
  } else {
  figwheel.core.listener_key_map = cljs.core.atom.call(null,cljs.core.PersistentArrayMap.EMPTY);
  }
  
  figwheel.core.unlisten = (function figwheel$core$unlisten(ky,event_name){
  var temp__5720__auto__ = cljs.core.get.call(null,cljs.core.deref.call(null,figwheel.core.listener_key_map),ky);
  if(cljs.core.truth_(temp__5720__auto__)){
  var f = temp__5720__auto__;
  return figwheel.core.event_target.removeEventListener(cljs.core.name.call(null,event_name),f);
  } else {
  return null;
  }
  });
  
  figwheel.core.listen = (function figwheel$core$listen(ky,event_name,f){
  figwheel.core.unlisten.call(null,ky,event_name);
  
  figwheel.core.event_target.addEventListener(cljs.core.name.call(null,event_name),f);
  
  return cljs.core.swap_BANG_.call(null,figwheel.core.listener_key_map,cljs.core.assoc,ky,f);
  });
  
  figwheel.core.dispatch_event = (function figwheel$core$dispatch_event(event_name,data){
  return figwheel.core.event_target.dispatchEvent((function (){var G__47867 = (((figwheel.core.event_target instanceof goog.events.EventTarget))?(new goog.events.Event(cljs.core.name.call(null,event_name),figwheel.core.event_target)):(new Event(cljs.core.name.call(null,event_name),figwheel.core.event_target)));
  goog.object.add(G__47867,"data",(function (){var or__4131__auto__ = data;
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return cljs.core.PersistentArrayMap.EMPTY;
  }
  })());
  
  return G__47867;
  })());
  });
  
  figwheel.core.event_data = (function figwheel$core$event_data(e){
  return goog.object.get((function (){var temp__5718__auto__ = e.event_;
  if(cljs.core.truth_(temp__5718__auto__)){
  var e__$1 = temp__5718__auto__;
  return e__$1;
  } else {
  return e;
  }
  })(),"data");
  });
  
  
  /** @define {boolean} */
  goog.define("figwheel.core.load_warninged_code",false);
  
  
  /** @define {boolean} */
  goog.define("figwheel.core.heads_up_display",true);
  
  if((typeof figwheel !== 'undefined') && (typeof figwheel.core !== 'undefined') && (typeof figwheel.core.state !== 'undefined')){
  } else {
  figwheel.core.state = cljs.core.atom.call(null,new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715),cljs.core.PersistentArrayMap.EMPTY], null));
  }
  
  figwheel.core.heads_up_display_QMARK_ = (function figwheel$core$heads_up_display_QMARK_(){
  return ((figwheel.core.heads_up_display) && ((!((goog.global.document == null)))));
  });
  
  var last_reload_timestamp_47916 = cljs.core.atom.call(null,(0));
  var promise_chain_47917 = (new goog.Promise(((function (last_reload_timestamp_47916){
  return (function (r,_){
  return r.call(null,true);
  });})(last_reload_timestamp_47916))
  ));
  figwheel.core.render_watcher = ((function (last_reload_timestamp_47916,promise_chain_47917){
  return (function figwheel$core$render_watcher(_,___$1,o,n){
  if(figwheel.core.heads_up_display_QMARK_.call(null)){
  var temp__5718__auto__ = (function (){var temp__5720__auto__ = cljs.core.get_in.call(null,n,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715),new cljs.core.Keyword(null,"reload-started","reload-started",-1932451477)], null));
  if(cljs.core.truth_(temp__5720__auto__)){
  var ts = temp__5720__auto__;
  var and__4120__auto__ = (cljs.core.deref.call(null,last_reload_timestamp_47916) < ts);
  if(and__4120__auto__){
  return ts;
  } else {
  return and__4120__auto__;
  }
  } else {
  return null;
  }
  })();
  if(cljs.core.truth_(temp__5718__auto__)){
  var ts = temp__5718__auto__;
  var warnings = cljs.core.not_empty.call(null,cljs.core.get_in.call(null,n,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715),new cljs.core.Keyword(null,"warnings","warnings",-735437651)], null)));
  var exception = cljs.core.get_in.call(null,n,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715),new cljs.core.Keyword(null,"exception","exception",-335277064)], null));
  cljs.core.reset_BANG_.call(null,last_reload_timestamp_47916,ts);
  
  if(cljs.core.truth_(warnings)){
  return promise_chain_47917.then(((function (warnings,exception,ts,temp__5718__auto__,last_reload_timestamp_47916,promise_chain_47917){
  return (function (){
  var warn = cljs.core.first.call(null,warnings);
  var _STAR_inline_code_message_max_column_STAR__orig_val__47868 = figwheel.core._STAR_inline_code_message_max_column_STAR_;
  var _STAR_inline_code_message_max_column_STAR__temp_val__47869 = (132);
  figwheel.core._STAR_inline_code_message_max_column_STAR_ = _STAR_inline_code_message_max_column_STAR__temp_val__47869;
  
  try{return figwheel.tools.heads_up.display_warning.call(null,cljs.core.assoc.call(null,warn,new cljs.core.Keyword(null,"error-inline","error-inline",1073987185),figwheel.core.inline_message_display_data.call(null,warn))).then(((function (_STAR_inline_code_message_max_column_STAR__orig_val__47868,_STAR_inline_code_message_max_column_STAR__temp_val__47869,warn,warnings,exception,ts,temp__5718__auto__,last_reload_timestamp_47916,promise_chain_47917){
  return (function (){
  var seq__47870 = cljs.core.seq.call(null,cljs.core.rest.call(null,warnings));
  var chunk__47871 = null;
  var count__47872 = (0);
  var i__47873 = (0);
  while(true){
  if((i__47873 < count__47872)){
  var w = cljs.core._nth.call(null,chunk__47871,i__47873);
  figwheel.tools.heads_up.append_warning_message.call(null,w);
  
  
  var G__47918 = seq__47870;
  var G__47919 = chunk__47871;
  var G__47920 = count__47872;
  var G__47921 = (i__47873 + (1));
  seq__47870 = G__47918;
  chunk__47871 = G__47919;
  count__47872 = G__47920;
  i__47873 = G__47921;
  continue;
  } else {
  var temp__5720__auto__ = cljs.core.seq.call(null,seq__47870);
  if(temp__5720__auto__){
  var seq__47870__$1 = temp__5720__auto__;
  if(cljs.core.chunked_seq_QMARK_.call(null,seq__47870__$1)){
  var c__4550__auto__ = cljs.core.chunk_first.call(null,seq__47870__$1);
  var G__47922 = cljs.core.chunk_rest.call(null,seq__47870__$1);
  var G__47923 = c__4550__auto__;
  var G__47924 = cljs.core.count.call(null,c__4550__auto__);
  var G__47925 = (0);
  seq__47870 = G__47922;
  chunk__47871 = G__47923;
  count__47872 = G__47924;
  i__47873 = G__47925;
  continue;
  } else {
  var w = cljs.core.first.call(null,seq__47870__$1);
  figwheel.tools.heads_up.append_warning_message.call(null,w);
  
  
  var G__47926 = cljs.core.next.call(null,seq__47870__$1);
  var G__47927 = null;
  var G__47928 = (0);
  var G__47929 = (0);
  seq__47870 = G__47926;
  chunk__47871 = G__47927;
  count__47872 = G__47928;
  i__47873 = G__47929;
  continue;
  }
  } else {
  return null;
  }
  }
  break;
  }
  });})(_STAR_inline_code_message_max_column_STAR__orig_val__47868,_STAR_inline_code_message_max_column_STAR__temp_val__47869,warn,warnings,exception,ts,temp__5718__auto__,last_reload_timestamp_47916,promise_chain_47917))
  );
  }finally {figwheel.core._STAR_inline_code_message_max_column_STAR_ = _STAR_inline_code_message_max_column_STAR__orig_val__47868;
  }});})(warnings,exception,ts,temp__5718__auto__,last_reload_timestamp_47916,promise_chain_47917))
  );
  } else {
  if(cljs.core.truth_(exception)){
  return promise_chain_47917.then(((function (warnings,exception,ts,temp__5718__auto__,last_reload_timestamp_47916,promise_chain_47917){
  return (function (){
  var _STAR_inline_code_message_max_column_STAR__orig_val__47874 = figwheel.core._STAR_inline_code_message_max_column_STAR_;
  var _STAR_inline_code_message_max_column_STAR__temp_val__47875 = (132);
  figwheel.core._STAR_inline_code_message_max_column_STAR_ = _STAR_inline_code_message_max_column_STAR__temp_val__47875;
  
  try{return figwheel.tools.heads_up.display_exception.call(null,cljs.core.assoc.call(null,exception,new cljs.core.Keyword(null,"error-inline","error-inline",1073987185),figwheel.core.inline_message_display_data.call(null,exception)));
  }finally {figwheel.core._STAR_inline_code_message_max_column_STAR_ = _STAR_inline_code_message_max_column_STAR__orig_val__47874;
  }});})(warnings,exception,ts,temp__5718__auto__,last_reload_timestamp_47916,promise_chain_47917))
  );
  } else {
  return promise_chain_47917.then(((function (warnings,exception,ts,temp__5718__auto__,last_reload_timestamp_47916,promise_chain_47917){
  return (function (){
  return figwheel.tools.heads_up.flash_loaded.call(null);
  });})(warnings,exception,ts,temp__5718__auto__,last_reload_timestamp_47916,promise_chain_47917))
  );
  
  }
  }
  } else {
  return null;
  }
  } else {
  return null;
  }
  });})(last_reload_timestamp_47916,promise_chain_47917))
  ;
  
  cljs.core.add_watch.call(null,figwheel.core.state,new cljs.core.Keyword("figwheel.core","render-watcher","figwheel.core/render-watcher",2046135910),figwheel.core.render_watcher);
  
  figwheel.core.immutable_ns_QMARK_ = (function figwheel$core$immutable_ns_QMARK_(ns){
  var ns__$1 = cljs.core.name.call(null,ns);
  var or__4131__auto__ = new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 5, ["cljs.nodejs",null,"goog",null,"figwheel.connect",null,"cljs.core",null,"figwheel.preload",null], null), null).call(null,ns__$1);
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  var or__4131__auto____$1 = goog.string.startsWith("clojure.",ns__$1);
  if(cljs.core.truth_(or__4131__auto____$1)){
  return or__4131__auto____$1;
  } else {
  return goog.string.startsWith("goog.",ns__$1);
  }
  }
  });
  
  figwheel.core.name__GT_path = (function figwheel$core$name__GT_path(ns){
  return goog.object.get(goog.dependencies_.nameToPath,ns);
  });
  
  figwheel.core.provided_QMARK_ = (function figwheel$core$provided_QMARK_(ns){
  return goog.object.get(goog.dependencies_.written,figwheel.core.name__GT_path.call(null,cljs.core.name.call(null,ns)));
  });
  
  figwheel.core.ns_exists_QMARK_ = (function figwheel$core$ns_exists_QMARK_(ns){
  return (!((cljs.core.reduce.call(null,cljs.core.fnil.call(null,goog.object.get,({})),goog.global,clojure.string.split.call(null,cljs.core.name.call(null,ns),".")) == null)));
  });
  
  figwheel.core.reload_ns_QMARK_ = (function figwheel$core$reload_ns_QMARK_(namespace){
  var meta_data = cljs.core.meta.call(null,namespace);
  var and__4120__auto__ = cljs.core.not.call(null,figwheel.core.immutable_ns_QMARK_.call(null,namespace));
  if(and__4120__auto__){
  var and__4120__auto____$1 = cljs.core.not.call(null,new cljs.core.Keyword(null,"figwheel-no-load","figwheel-no-load",-555840179).cljs$core$IFn$_invoke$arity$1(meta_data));
  if(and__4120__auto____$1){
  var or__4131__auto__ = new cljs.core.Keyword(null,"figwheel-always","figwheel-always",799819691).cljs$core$IFn$_invoke$arity$1(meta_data);
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  var or__4131__auto____$1 = new cljs.core.Keyword(null,"figwheel-load","figwheel-load",1316089175).cljs$core$IFn$_invoke$arity$1(meta_data);
  if(cljs.core.truth_(or__4131__auto____$1)){
  return or__4131__auto____$1;
  } else {
  var or__4131__auto____$2 = figwheel.core.provided_QMARK_.call(null,namespace);
  if(cljs.core.truth_(or__4131__auto____$2)){
  return or__4131__auto____$2;
  } else {
  return figwheel.core.ns_exists_QMARK_.call(null,namespace);
  }
  }
  }
  } else {
  return and__4120__auto____$1;
  }
  } else {
  return and__4120__auto__;
  }
  });
  
  figwheel.core.call_hooks = (function figwheel$core$call_hooks(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___47930 = arguments.length;
  var i__4731__auto___47931 = (0);
  while(true){
  if((i__4731__auto___47931 < len__4730__auto___47930)){
  args__4736__auto__.push((arguments[i__4731__auto___47931]));
  
  var G__47932 = (i__4731__auto___47931 + (1));
  i__4731__auto___47931 = G__47932;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((1) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((1)),(0),null)):null);
  return figwheel.core.call_hooks.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__4737__auto__);
  });
  
  figwheel.core.call_hooks.cljs$core$IFn$_invoke$arity$variadic = (function (hook_key,args){
  var hooks = cljs.core.keep.call(null,(function (p__47878){
  var vec__47879 = p__47878;
  var n = cljs.core.nth.call(null,vec__47879,(0),null);
  var mdata = cljs.core.nth.call(null,vec__47879,(1),null);
  var temp__5720__auto__ = cljs.core.get_in.call(null,mdata,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"figwheel-hooks","figwheel-hooks",720015356),hook_key], null));
  if(cljs.core.truth_(temp__5720__auto__)){
  var f = temp__5720__auto__;
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [n,f], null);
  } else {
  return null;
  }
  }),new cljs.core.Keyword("figwheel.core","metadata","figwheel.core/metadata",-720139885).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,figwheel.core.state)));
  var seq__47882 = cljs.core.seq.call(null,hooks);
  var chunk__47883 = null;
  var count__47884 = (0);
  var i__47885 = (0);
  while(true){
  if((i__47885 < count__47884)){
  var vec__47892 = cljs.core._nth.call(null,chunk__47883,i__47885);
  var n = cljs.core.nth.call(null,vec__47892,(0),null);
  var f = cljs.core.nth.call(null,vec__47892,(1),null);
  var temp__5718__auto___47933 = cljs.core.reduce.call(null,((function (seq__47882,chunk__47883,count__47884,i__47885,vec__47892,n,f,hooks){
  return (function (p1__47860_SHARP_,p2__47861_SHARP_){
  if(cljs.core.truth_(p1__47860_SHARP_)){
  return goog.object.get(p1__47860_SHARP_,p2__47861_SHARP_);
  } else {
  return null;
  }
  });})(seq__47882,chunk__47883,count__47884,i__47885,vec__47892,n,f,hooks))
  ,goog.global,cljs.core.map.call(null,cljs.core.str,cljs.core.concat.call(null,clojure.string.split.call(null,n,/\./),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [f], null))));
  if(cljs.core.truth_(temp__5718__auto___47933)){
  var hook_47934 = temp__5718__auto___47933;
  goog.log.info(figwheel.core.logger,["Calling ",cljs.core.pr_str.call(null,hook_key)," hook - ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(n),".",cljs.core.str.cljs$core$IFn$_invoke$arity$1(f)].join(''));
  
  cljs.core.apply.call(null,hook_47934,args);
  } else {
  goog.log.warning(figwheel.core.logger,["Unable to find ",cljs.core.pr_str.call(null,hook_key)," hook - ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(n),".",cljs.core.str.cljs$core$IFn$_invoke$arity$1(f)].join(''));
  }
  
  
  var G__47935 = seq__47882;
  var G__47936 = chunk__47883;
  var G__47937 = count__47884;
  var G__47938 = (i__47885 + (1));
  seq__47882 = G__47935;
  chunk__47883 = G__47936;
  count__47884 = G__47937;
  i__47885 = G__47938;
  continue;
  } else {
  var temp__5720__auto__ = cljs.core.seq.call(null,seq__47882);
  if(temp__5720__auto__){
  var seq__47882__$1 = temp__5720__auto__;
  if(cljs.core.chunked_seq_QMARK_.call(null,seq__47882__$1)){
  var c__4550__auto__ = cljs.core.chunk_first.call(null,seq__47882__$1);
  var G__47939 = cljs.core.chunk_rest.call(null,seq__47882__$1);
  var G__47940 = c__4550__auto__;
  var G__47941 = cljs.core.count.call(null,c__4550__auto__);
  var G__47942 = (0);
  seq__47882 = G__47939;
  chunk__47883 = G__47940;
  count__47884 = G__47941;
  i__47885 = G__47942;
  continue;
  } else {
  var vec__47895 = cljs.core.first.call(null,seq__47882__$1);
  var n = cljs.core.nth.call(null,vec__47895,(0),null);
  var f = cljs.core.nth.call(null,vec__47895,(1),null);
  var temp__5718__auto___47943 = cljs.core.reduce.call(null,((function (seq__47882,chunk__47883,count__47884,i__47885,vec__47895,n,f,seq__47882__$1,temp__5720__auto__,hooks){
  return (function (p1__47860_SHARP_,p2__47861_SHARP_){
  if(cljs.core.truth_(p1__47860_SHARP_)){
  return goog.object.get(p1__47860_SHARP_,p2__47861_SHARP_);
  } else {
  return null;
  }
  });})(seq__47882,chunk__47883,count__47884,i__47885,vec__47895,n,f,seq__47882__$1,temp__5720__auto__,hooks))
  ,goog.global,cljs.core.map.call(null,cljs.core.str,cljs.core.concat.call(null,clojure.string.split.call(null,n,/\./),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [f], null))));
  if(cljs.core.truth_(temp__5718__auto___47943)){
  var hook_47944 = temp__5718__auto___47943;
  goog.log.info(figwheel.core.logger,["Calling ",cljs.core.pr_str.call(null,hook_key)," hook - ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(n),".",cljs.core.str.cljs$core$IFn$_invoke$arity$1(f)].join(''));
  
  cljs.core.apply.call(null,hook_47944,args);
  } else {
  goog.log.warning(figwheel.core.logger,["Unable to find ",cljs.core.pr_str.call(null,hook_key)," hook - ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(n),".",cljs.core.str.cljs$core$IFn$_invoke$arity$1(f)].join(''));
  }
  
  
  var G__47945 = cljs.core.next.call(null,seq__47882__$1);
  var G__47946 = null;
  var G__47947 = (0);
  var G__47948 = (0);
  seq__47882 = G__47945;
  chunk__47883 = G__47946;
  count__47884 = G__47947;
  i__47885 = G__47948;
  continue;
  }
  } else {
  return null;
  }
  }
  break;
  }
  });
  
  figwheel.core.call_hooks.cljs$lang$maxFixedArity = (1);
  
  /** @this {Function} */
  figwheel.core.call_hooks.cljs$lang$applyTo = (function (seq47876){
  var G__47877 = cljs.core.first.call(null,seq47876);
  var seq47876__$1 = cljs.core.next.call(null,seq47876);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__47877,seq47876__$1);
  });
  
  
  figwheel.core.reload_namespaces = (function figwheel$core$reload_namespaces(namespaces,figwheel_meta){
  var figwheel_meta__$1 = cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,cljs.core.map.call(null,(function (p__47898){
  var vec__47899 = p__47898;
  var k = cljs.core.nth.call(null,vec__47899,(0),null);
  var v = cljs.core.nth.call(null,vec__47899,(1),null);
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.name.call(null,k),v], null);
  })),cljs.core.js__GT_clj.call(null,figwheel_meta,new cljs.core.Keyword(null,"keywordize-keys","keywordize-keys",1310784252),true));
  var namespaces__$1 = cljs.core.map.call(null,((function (figwheel_meta__$1){
  return (function (p1__47862_SHARP_){
  return cljs.core.with_meta.call(null,cljs.core.symbol.call(null,p1__47862_SHARP_),cljs.core.get.call(null,figwheel_meta__$1,p1__47862_SHARP_));
  });})(figwheel_meta__$1))
  ,namespaces);
  cljs.core.swap_BANG_.call(null,figwheel.core.state,((function (figwheel_meta__$1,namespaces__$1){
  return (function (p1__47863_SHARP_){
  return cljs.core.assoc_in.call(null,cljs.core.assoc.call(null,p1__47863_SHARP_,new cljs.core.Keyword("figwheel.core","metadata","figwheel.core/metadata",-720139885),figwheel_meta__$1),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715),new cljs.core.Keyword(null,"reload-started","reload-started",-1932451477)], null),(new Date()).getTime());
  });})(figwheel_meta__$1,namespaces__$1))
  );
  
  var to_reload = (cljs.core.truth_((function (){var and__4120__auto__ = (!(figwheel.core.load_warninged_code));
  if(and__4120__auto__){
  return cljs.core.not_empty.call(null,cljs.core.get_in.call(null,cljs.core.deref.call(null,figwheel.core.state),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715),new cljs.core.Keyword(null,"warnings","warnings",-735437651)], null)));
  } else {
  return and__4120__auto__;
  }
  })())?null:cljs.core.filter.call(null,((function (figwheel_meta__$1,namespaces__$1){
  return (function (p1__47864_SHARP_){
  return figwheel.core.reload_ns_QMARK_.call(null,p1__47864_SHARP_);
  });})(figwheel_meta__$1,namespaces__$1))
  ,namespaces__$1));
  if(cljs.core.empty_QMARK_.call(null,to_reload)){
  } else {
  figwheel.core.call_hooks.call(null,new cljs.core.Keyword(null,"before-load","before-load",-2060117064),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"namespaces","namespaces",-1444157469),namespaces__$1], null));
  
  setTimeout(((function (to_reload,figwheel_meta__$1,namespaces__$1){
  return (function (){
  return figwheel.core.dispatch_event.call(null,new cljs.core.Keyword(null,"figwheel.before-load","figwheel.before-load",58978771),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"namespaces","namespaces",-1444157469),namespaces__$1], null));
  });})(to_reload,figwheel_meta__$1,namespaces__$1))
  ,(0));
  }
  
  var seq__47902_47949 = cljs.core.seq.call(null,to_reload);
  var chunk__47903_47950 = null;
  var count__47904_47951 = (0);
  var i__47905_47952 = (0);
  while(true){
  if((i__47905_47952 < count__47904_47951)){
  var ns_47953 = cljs.core._nth.call(null,chunk__47903_47950,i__47905_47952);
  goog.require(cljs.core.name.call(null,ns_47953),true);
  
  
  var G__47954 = seq__47902_47949;
  var G__47955 = chunk__47903_47950;
  var G__47956 = count__47904_47951;
  var G__47957 = (i__47905_47952 + (1));
  seq__47902_47949 = G__47954;
  chunk__47903_47950 = G__47955;
  count__47904_47951 = G__47956;
  i__47905_47952 = G__47957;
  continue;
  } else {
  var temp__5720__auto___47958 = cljs.core.seq.call(null,seq__47902_47949);
  if(temp__5720__auto___47958){
  var seq__47902_47959__$1 = temp__5720__auto___47958;
  if(cljs.core.chunked_seq_QMARK_.call(null,seq__47902_47959__$1)){
  var c__4550__auto___47960 = cljs.core.chunk_first.call(null,seq__47902_47959__$1);
  var G__47961 = cljs.core.chunk_rest.call(null,seq__47902_47959__$1);
  var G__47962 = c__4550__auto___47960;
  var G__47963 = cljs.core.count.call(null,c__4550__auto___47960);
  var G__47964 = (0);
  seq__47902_47949 = G__47961;
  chunk__47903_47950 = G__47962;
  count__47904_47951 = G__47963;
  i__47905_47952 = G__47964;
  continue;
  } else {
  var ns_47965 = cljs.core.first.call(null,seq__47902_47959__$1);
  goog.require(cljs.core.name.call(null,ns_47965),true);
  
  
  var G__47966 = cljs.core.next.call(null,seq__47902_47959__$1);
  var G__47967 = null;
  var G__47968 = (0);
  var G__47969 = (0);
  seq__47902_47949 = G__47966;
  chunk__47903_47950 = G__47967;
  count__47904_47951 = G__47968;
  i__47905_47952 = G__47969;
  continue;
  }
  } else {
  }
  }
  break;
  }
  
  var after_reload_fn_47970 = ((function (to_reload,figwheel_meta__$1,namespaces__$1){
  return (function (){
  try{if(cljs.core.truth_(cljs.core.not_empty.call(null,to_reload))){
  goog.log.info(figwheel.core.logger,["loaded ",cljs.core.pr_str.call(null,to_reload)].join(''));
  
  figwheel.core.call_hooks.call(null,new cljs.core.Keyword(null,"after-load","after-load",-1278503285),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"reloaded-namespaces","reloaded-namespaces",1589557425),to_reload], null));
  
  figwheel.core.dispatch_event.call(null,new cljs.core.Keyword(null,"figwheel.after-load","figwheel.after-load",-1913099389),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"reloaded-namespaces","reloaded-namespaces",1589557425),to_reload], null));
  } else {
  }
  
  var temp__5720__auto__ = cljs.core.not_empty.call(null,cljs.core.filter.call(null,cljs.core.complement.call(null,cljs.core.set.call(null,to_reload)),namespaces__$1));
  if(cljs.core.truth_(temp__5720__auto__)){
  var not_loaded = temp__5720__auto__;
  return goog.log.info(figwheel.core.logger,["did not load ",cljs.core.pr_str.call(null,not_loaded)].join(''));
  } else {
  return null;
  }
  }finally {cljs.core.swap_BANG_.call(null,figwheel.core.state,cljs.core.assoc,new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715),cljs.core.PersistentArrayMap.EMPTY);
  }});})(to_reload,figwheel_meta__$1,namespaces__$1))
  ;
  if((((typeof figwheel !== 'undefined') && (typeof figwheel.repl !== 'undefined')) && ((typeof figwheel !== 'undefined') && (typeof figwheel.repl !== 'undefined') && (typeof figwheel.repl.after_reloads !== 'undefined')))){
  figwheel.repl.after_reloads(after_reload_fn_47970);
  } else {
  setTimeout(after_reload_fn_47970,(100));
  }
  
  return null;
  });
  goog.exportSymbol('figwheel.core.reload_namespaces', figwheel.core.reload_namespaces);
  
  figwheel.core.compile_warnings = (function figwheel$core$compile_warnings(warnings){
  if(cljs.core.empty_QMARK_.call(null,warnings)){
  } else {
  setTimeout((function (){
  return figwheel.core.dispatch_event.call(null,new cljs.core.Keyword(null,"figwheel.compile-warnings","figwheel.compile-warnings",-2015032448),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"warnings","warnings",-735437651),warnings], null));
  }),(0));
  }
  
  cljs.core.swap_BANG_.call(null,figwheel.core.state,cljs.core.update_in,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715),new cljs.core.Keyword(null,"warnings","warnings",-735437651)], null),cljs.core.concat,warnings);
  
  var seq__47906 = cljs.core.seq.call(null,warnings);
  var chunk__47907 = null;
  var count__47908 = (0);
  var i__47909 = (0);
  while(true){
  if((i__47909 < count__47908)){
  var warning = cljs.core._nth.call(null,chunk__47907,i__47909);
  goog.log.warning(figwheel.core.logger,["Compile Warning - ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(new cljs.core.Keyword(null,"message","message",-406056002).cljs$core$IFn$_invoke$arity$1(warning))," in ",figwheel.core.file_line_column.call(null,warning)].join(''));
  
  
  var G__47971 = seq__47906;
  var G__47972 = chunk__47907;
  var G__47973 = count__47908;
  var G__47974 = (i__47909 + (1));
  seq__47906 = G__47971;
  chunk__47907 = G__47972;
  count__47908 = G__47973;
  i__47909 = G__47974;
  continue;
  } else {
  var temp__5720__auto__ = cljs.core.seq.call(null,seq__47906);
  if(temp__5720__auto__){
  var seq__47906__$1 = temp__5720__auto__;
  if(cljs.core.chunked_seq_QMARK_.call(null,seq__47906__$1)){
  var c__4550__auto__ = cljs.core.chunk_first.call(null,seq__47906__$1);
  var G__47975 = cljs.core.chunk_rest.call(null,seq__47906__$1);
  var G__47976 = c__4550__auto__;
  var G__47977 = cljs.core.count.call(null,c__4550__auto__);
  var G__47978 = (0);
  seq__47906 = G__47975;
  chunk__47907 = G__47976;
  count__47908 = G__47977;
  i__47909 = G__47978;
  continue;
  } else {
  var warning = cljs.core.first.call(null,seq__47906__$1);
  goog.log.warning(figwheel.core.logger,["Compile Warning - ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(new cljs.core.Keyword(null,"message","message",-406056002).cljs$core$IFn$_invoke$arity$1(warning))," in ",figwheel.core.file_line_column.call(null,warning)].join(''));
  
  
  var G__47979 = cljs.core.next.call(null,seq__47906__$1);
  var G__47980 = null;
  var G__47981 = (0);
  var G__47982 = (0);
  seq__47906 = G__47979;
  chunk__47907 = G__47980;
  count__47908 = G__47981;
  i__47909 = G__47982;
  continue;
  }
  } else {
  return null;
  }
  }
  break;
  }
  });
  goog.exportSymbol('figwheel.core.compile_warnings', figwheel.core.compile_warnings);
  
  figwheel.core.compile_warnings_remote = (function figwheel$core$compile_warnings_remote(warnings_json){
  return figwheel.core.compile_warnings.call(null,cljs.core.js__GT_clj.call(null,warnings_json,new cljs.core.Keyword(null,"keywordize-keys","keywordize-keys",1310784252),true));
  });
  goog.exportSymbol('figwheel.core.compile_warnings_remote', figwheel.core.compile_warnings_remote);
  
  figwheel.core.handle_exception = (function figwheel$core$handle_exception(p__47910){
  var map__47911 = p__47910;
  var map__47911__$1 = (((((!((map__47911 == null))))?(((((map__47911.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__47911.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__47911):map__47911);
  var exception_data = map__47911__$1;
  var file = cljs.core.get.call(null,map__47911__$1,new cljs.core.Keyword(null,"file","file",-1269645878));
  var type = cljs.core.get.call(null,map__47911__$1,new cljs.core.Keyword(null,"type","type",1174270348));
  var message = cljs.core.get.call(null,map__47911__$1,new cljs.core.Keyword(null,"message","message",-406056002));
  try{setTimeout(((function (map__47911,map__47911__$1,exception_data,file,type,message){
  return (function (){
  return figwheel.core.dispatch_event.call(null,new cljs.core.Keyword(null,"figwheel.compile-exception","figwheel.compile-exception",1092880746),exception_data);
  });})(map__47911,map__47911__$1,exception_data,file,type,message))
  ,(0));
  
  cljs.core.swap_BANG_.call(null,figwheel.core.state,((function (map__47911,map__47911__$1,exception_data,file,type,message){
  return (function (p1__47865_SHARP_){
  return cljs.core.assoc_in.call(null,cljs.core.assoc_in.call(null,p1__47865_SHARP_,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715),new cljs.core.Keyword(null,"reload-started","reload-started",-1932451477)], null),(new Date()).getTime()),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715),new cljs.core.Keyword(null,"exception","exception",-335277064)], null),exception_data);
  });})(map__47911,map__47911__$1,exception_data,file,type,message))
  );
  
  return goog.log.warning(figwheel.core.logger,(function (){var G__47913 = "Compile Exception - ";
  var G__47913__$1 = (cljs.core.truth_((function (){var or__4131__auto__ = type;
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return message;
  }
  })())?[G__47913,cljs.core.str.cljs$core$IFn$_invoke$arity$1(clojure.string.join.call(null," : ",cljs.core.filter.call(null,cljs.core.some_QMARK_,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [type,message], null))))].join(''):G__47913);
  if(cljs.core.truth_(file)){
  return [G__47913__$1," in ",figwheel.core.file_line_column.call(null,exception_data)].join('');
  } else {
  return G__47913__$1;
  }
  })());
  }finally {cljs.core.swap_BANG_.call(null,figwheel.core.state,cljs.core.assoc_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("figwheel.core","reload-state","figwheel.core/reload-state",1887223715)], null),cljs.core.PersistentArrayMap.EMPTY);
  }});
  goog.exportSymbol('figwheel.core.handle_exception', figwheel.core.handle_exception);
  
  figwheel.core.handle_exception_remote = (function figwheel$core$handle_exception_remote(exception_data){
  return figwheel.core.handle_exception.call(null,cljs.core.js__GT_clj.call(null,exception_data,new cljs.core.Keyword(null,"keywordize-keys","keywordize-keys",1310784252),true));
  });
  goog.exportSymbol('figwheel.core.handle_exception_remote', figwheel.core.handle_exception_remote);
  
  //# sourceMappingURL=core.js.map
  