// Compiled by ClojureScript 1.7.170 {}
goog.provide('cljs.source_map');
goog.require('cljs.core');
goog.require('goog.object');
goog.require('clojure.string');
goog.require('clojure.set');
goog.require('cljs.source_map.base64_vlq');
/**
 * Take a seq of source file names and return a map from
 * file number to integer index. For reverse source maps.
 */
cljs.source_map.indexed_sources = (function cljs$source_map$indexed_sources(sources){
return cljs.core.reduce.call(null,(function (m,p__10927){
var vec__10928 = p__10927;
var i = cljs.core.nth.call(null,vec__10928,(0),null);
var v = cljs.core.nth.call(null,vec__10928,(1),null);
return cljs.core.assoc.call(null,m,v,i);
}),cljs.core.PersistentArrayMap.EMPTY,cljs.core.map_indexed.call(null,(function (a,b){
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [a,b], null);
}),sources));
});
/**
 * Take a seq of source file names and return a comparator
 * that can be used to construct a sorted map. For reverse
 * source maps.
 */
cljs.source_map.source_compare = (function cljs$source_map$source_compare(sources){
var sources__$1 = cljs.source_map.indexed_sources.call(null,sources);
return ((function (sources__$1){
return (function (a,b){
return cljs.core.compare.call(null,sources__$1.call(null,a),sources__$1.call(null,b));
});
;})(sources__$1))
});
/**
 * Take a source map segment represented as a vector
 * and return a map.
 */
cljs.source_map.seg__GT_map = (function cljs$source_map$seg__GT_map(seg,source_map){
var vec__10930 = seg;
var gcol = cljs.core.nth.call(null,vec__10930,(0),null);
var source = cljs.core.nth.call(null,vec__10930,(1),null);
var line = cljs.core.nth.call(null,vec__10930,(2),null);
var col = cljs.core.nth.call(null,vec__10930,(3),null);
var name = cljs.core.nth.call(null,vec__10930,(4),null);
return new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"gcol","gcol",309250807),gcol,new cljs.core.Keyword(null,"source","source",-433931539),(goog.object.get(source_map,"sources")[source]),new cljs.core.Keyword(null,"line","line",212345235),line,new cljs.core.Keyword(null,"col","col",-1959363084),col,new cljs.core.Keyword(null,"name","name",1843675177),(function (){var temp__4425__auto__ = new cljs.core.Keyword(null,"name","name",1843675177).cljs$core$IFn$_invoke$arity$1(cljs.core.meta.call(null,seg));
if(cljs.core.truth_(temp__4425__auto__)){
var name__$1 = temp__4425__auto__;
return (goog.object.get(source_map,"names")[name__$1]);
} else {
return null;
}
})()], null);
});
/**
 * Combine a source map segment vector and a relative
 * source map segment vector and combine them to get
 * an absolute segment posititon information as a vector.
 */
cljs.source_map.seg_combine = (function cljs$source_map$seg_combine(seg,relseg){
var vec__10933 = seg;
var gcol = cljs.core.nth.call(null,vec__10933,(0),null);
var source = cljs.core.nth.call(null,vec__10933,(1),null);
var line = cljs.core.nth.call(null,vec__10933,(2),null);
var col = cljs.core.nth.call(null,vec__10933,(3),null);
var name = cljs.core.nth.call(null,vec__10933,(4),null);
var vec__10934 = relseg;
var rgcol = cljs.core.nth.call(null,vec__10934,(0),null);
var rsource = cljs.core.nth.call(null,vec__10934,(1),null);
var rline = cljs.core.nth.call(null,vec__10934,(2),null);
var rcol = cljs.core.nth.call(null,vec__10934,(3),null);
var rname = cljs.core.nth.call(null,vec__10934,(4),null);
var nseg = new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [(gcol + rgcol),((function (){var or__4668__auto__ = source;
if(cljs.core.truth_(or__4668__auto__)){
return or__4668__auto__;
} else {
return (0);
}
})() + rsource),((function (){var or__4668__auto__ = line;
if(cljs.core.truth_(or__4668__auto__)){
return or__4668__auto__;
} else {
return (0);
}
})() + rline),((function (){var or__4668__auto__ = col;
if(cljs.core.truth_(or__4668__auto__)){
return or__4668__auto__;
} else {
return (0);
}
})() + rcol),((function (){var or__4668__auto__ = name;
if(cljs.core.truth_(or__4668__auto__)){
return or__4668__auto__;
} else {
return (0);
}
})() + rname)], null);
if(cljs.core.truth_(name)){
return cljs.core.with_meta.call(null,nseg,new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"name","name",1843675177),(name + rname)], null));
} else {
return nseg;
}
});
/**
 * Helper for decode-reverse. Take a reverse source map and
 *   update it with a segment map.
 */
cljs.source_map.update_reverse_result = (function cljs$source_map$update_reverse_result(result,segmap,gline){
var map__10937 = segmap;
var map__10937__$1 = ((((!((map__10937 == null)))?((((map__10937.cljs$lang$protocol_mask$partition0$ & (64))) || (map__10937.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__10937):map__10937);
var gcol = cljs.core.get.call(null,map__10937__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
var source = cljs.core.get.call(null,map__10937__$1,new cljs.core.Keyword(null,"source","source",-433931539));
var line = cljs.core.get.call(null,map__10937__$1,new cljs.core.Keyword(null,"line","line",212345235));
var col = cljs.core.get.call(null,map__10937__$1,new cljs.core.Keyword(null,"col","col",-1959363084));
var name = cljs.core.get.call(null,map__10937__$1,new cljs.core.Keyword(null,"name","name",1843675177));
var d = new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"gline","gline",-1086242431),gline,new cljs.core.Keyword(null,"gcol","gcol",309250807),gcol], null);
var d__$1 = (cljs.core.truth_(name)?cljs.core.assoc.call(null,d,new cljs.core.Keyword(null,"name","name",1843675177),name):d);
return cljs.core.update_in.call(null,result,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [source], null),cljs.core.fnil.call(null,((function (map__10937,map__10937__$1,gcol,source,line,col,name,d,d__$1){
return (function (m){
return cljs.core.update_in.call(null,m,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [line], null),cljs.core.fnil.call(null,((function (map__10937,map__10937__$1,gcol,source,line,col,name,d,d__$1){
return (function (m__$1){
return cljs.core.update_in.call(null,m__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [col], null),cljs.core.fnil.call(null,((function (map__10937,map__10937__$1,gcol,source,line,col,name,d,d__$1){
return (function (v){
return cljs.core.conj.call(null,v,d__$1);
});})(map__10937,map__10937__$1,gcol,source,line,col,name,d,d__$1))
,cljs.core.PersistentVector.EMPTY));
});})(map__10937,map__10937__$1,gcol,source,line,col,name,d,d__$1))
,cljs.core.sorted_map.call(null)));
});})(map__10937,map__10937__$1,gcol,source,line,col,name,d,d__$1))
,cljs.core.sorted_map.call(null)));
});
/**
 * Convert a v3 source map JSON object into a reverse source map
 *   mapping original ClojureScript source locations to the generated
 *   JavaScript.
 */
cljs.source_map.decode_reverse = (function cljs$source_map$decode_reverse(var_args){
var args10939 = [];
var len__5726__auto___10943 = arguments.length;
var i__5727__auto___10944 = (0);
while(true){
if((i__5727__auto___10944 < len__5726__auto___10943)){
args10939.push((arguments[i__5727__auto___10944]));

var G__10945 = (i__5727__auto___10944 + (1));
i__5727__auto___10944 = G__10945;
continue;
} else {
}
break;
}

var G__10941 = args10939.length;
switch (G__10941) {
case 1:
return cljs.source_map.decode_reverse.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));

break;
case 2:
return cljs.source_map.decode_reverse.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));

break;
default:
throw (new Error([cljs.core.str("Invalid arity: "),cljs.core.str(args10939.length)].join('')));

}
});

cljs.source_map.decode_reverse.cljs$core$IFn$_invoke$arity$1 = (function (source_map){
return cljs.source_map.decode_reverse.call(null,goog.object.get(source_map,"mappings"),source_map);
});

cljs.source_map.decode_reverse.cljs$core$IFn$_invoke$arity$2 = (function (mappings,source_map){
var sources = goog.object.get(source_map,"sources");
var relseg_init = new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [(0),(0),(0),(0),(0)], null);
var lines = cljs.core.seq.call(null,clojure.string.split.call(null,mappings,/;/));
var gline = (0);
var lines__$1 = lines;
var relseg = relseg_init;
var result = cljs.core.sorted_map_by.call(null,cljs.source_map.source_compare.call(null,sources));
while(true){
if(lines__$1){
var line = cljs.core.first.call(null,lines__$1);
var vec__10942 = ((clojure.string.blank_QMARK_.call(null,line))?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [result,relseg], null):(function (){var segs = cljs.core.seq.call(null,clojure.string.split.call(null,line,/,/));
var segs__$1 = segs;
var relseg__$1 = relseg;
var result__$1 = result;
while(true){
if(segs__$1){
var seg = cljs.core.first.call(null,segs__$1);
var nrelseg = cljs.source_map.seg_combine.call(null,cljs.source_map.base64_vlq.decode.call(null,seg),relseg__$1);
var G__10947 = cljs.core.next.call(null,segs__$1);
var G__10948 = nrelseg;
var G__10949 = cljs.source_map.update_reverse_result.call(null,result__$1,cljs.source_map.seg__GT_map.call(null,nrelseg,source_map),gline);
segs__$1 = G__10947;
relseg__$1 = G__10948;
result__$1 = G__10949;
continue;
} else {
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [result__$1,relseg__$1], null);
}
break;
}
})());
var result__$1 = cljs.core.nth.call(null,vec__10942,(0),null);
var relseg__$1 = cljs.core.nth.call(null,vec__10942,(1),null);
var G__10950 = (gline + (1));
var G__10951 = cljs.core.next.call(null,lines__$1);
var G__10952 = cljs.core.assoc.call(null,relseg__$1,(0),(0));
var G__10953 = result__$1;
gline = G__10950;
lines__$1 = G__10951;
relseg = G__10952;
result = G__10953;
continue;
} else {
return result;
}
break;
}
});

cljs.source_map.decode_reverse.cljs$lang$maxFixedArity = 2;
/**
 * Helper for decode. Take a source map and update it based on a
 *   segment map.
 */
cljs.source_map.update_result = (function cljs$source_map$update_result(result,segmap,gline){
var map__10957 = segmap;
var map__10957__$1 = ((((!((map__10957 == null)))?((((map__10957.cljs$lang$protocol_mask$partition0$ & (64))) || (map__10957.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__10957):map__10957);
var gcol = cljs.core.get.call(null,map__10957__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
var source = cljs.core.get.call(null,map__10957__$1,new cljs.core.Keyword(null,"source","source",-433931539));
var line = cljs.core.get.call(null,map__10957__$1,new cljs.core.Keyword(null,"line","line",212345235));
var col = cljs.core.get.call(null,map__10957__$1,new cljs.core.Keyword(null,"col","col",-1959363084));
var name = cljs.core.get.call(null,map__10957__$1,new cljs.core.Keyword(null,"name","name",1843675177));
var d = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"line","line",212345235),line,new cljs.core.Keyword(null,"col","col",-1959363084),col,new cljs.core.Keyword(null,"source","source",-433931539),source], null);
var d__$1 = (cljs.core.truth_(name)?cljs.core.assoc.call(null,d,new cljs.core.Keyword(null,"name","name",1843675177),name):d);
return cljs.core.update_in.call(null,result,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline], null),cljs.core.fnil.call(null,((function (map__10957,map__10957__$1,gcol,source,line,col,name,d,d__$1){
return (function (m){
return cljs.core.update_in.call(null,m,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gcol], null),cljs.core.fnil.call(null,((function (map__10957,map__10957__$1,gcol,source,line,col,name,d,d__$1){
return (function (p1__10954_SHARP_){
return cljs.core.conj.call(null,p1__10954_SHARP_,d__$1);
});})(map__10957,map__10957__$1,gcol,source,line,col,name,d,d__$1))
,cljs.core.PersistentVector.EMPTY));
});})(map__10957,map__10957__$1,gcol,source,line,col,name,d,d__$1))
,cljs.core.sorted_map.call(null)));
});
/**
 * Convert a v3 source map JSON object into a source map mapping
 *   generated JavaScript source locations to the original
 *   ClojureScript.
 */
cljs.source_map.decode = (function cljs$source_map$decode(var_args){
var args10959 = [];
var len__5726__auto___10963 = arguments.length;
var i__5727__auto___10964 = (0);
while(true){
if((i__5727__auto___10964 < len__5726__auto___10963)){
args10959.push((arguments[i__5727__auto___10964]));

var G__10965 = (i__5727__auto___10964 + (1));
i__5727__auto___10964 = G__10965;
continue;
} else {
}
break;
}

var G__10961 = args10959.length;
switch (G__10961) {
case 1:
return cljs.source_map.decode.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));

break;
case 2:
return cljs.source_map.decode.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));

break;
default:
throw (new Error([cljs.core.str("Invalid arity: "),cljs.core.str(args10959.length)].join('')));

}
});

cljs.source_map.decode.cljs$core$IFn$_invoke$arity$1 = (function (source_map){
return cljs.source_map.decode.call(null,goog.object.get(source_map,"mappings"),source_map);
});

cljs.source_map.decode.cljs$core$IFn$_invoke$arity$2 = (function (mappings,source_map){
var sources = goog.object.get(source_map,"sources");
var relseg_init = new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [(0),(0),(0),(0),(0)], null);
var lines = cljs.core.seq.call(null,clojure.string.split.call(null,mappings,/;/));
var gline = (0);
var lines__$1 = lines;
var relseg = relseg_init;
var result = cljs.core.PersistentArrayMap.EMPTY;
while(true){
if(lines__$1){
var line = cljs.core.first.call(null,lines__$1);
var vec__10962 = ((clojure.string.blank_QMARK_.call(null,line))?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [result,relseg], null):(function (){var segs = cljs.core.seq.call(null,clojure.string.split.call(null,line,/,/));
var segs__$1 = segs;
var relseg__$1 = relseg;
var result__$1 = result;
while(true){
if(segs__$1){
var seg = cljs.core.first.call(null,segs__$1);
var nrelseg = cljs.source_map.seg_combine.call(null,cljs.source_map.base64_vlq.decode.call(null,seg),relseg__$1);
var G__10967 = cljs.core.next.call(null,segs__$1);
var G__10968 = nrelseg;
var G__10969 = cljs.source_map.update_result.call(null,result__$1,cljs.source_map.seg__GT_map.call(null,nrelseg,source_map),gline);
segs__$1 = G__10967;
relseg__$1 = G__10968;
result__$1 = G__10969;
continue;
} else {
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [result__$1,relseg__$1], null);
}
break;
}
})());
var result__$1 = cljs.core.nth.call(null,vec__10962,(0),null);
var relseg__$1 = cljs.core.nth.call(null,vec__10962,(1),null);
var G__10970 = (gline + (1));
var G__10971 = cljs.core.next.call(null,lines__$1);
var G__10972 = cljs.core.assoc.call(null,relseg__$1,(0),(0));
var G__10973 = result__$1;
gline = G__10970;
lines__$1 = G__10971;
relseg = G__10972;
result = G__10973;
continue;
} else {
return result;
}
break;
}
});

cljs.source_map.decode.cljs$lang$maxFixedArity = 2;
/**
 * Take a nested sorted map encoding line and column information
 * for a file and return a vector of vectors of encoded segments.
 * Each vector represents a line, and the internal vectors are segments
 * representing the contents of the line.
 */
cljs.source_map.lines__GT_segs = (function cljs$source_map$lines__GT_segs(lines){
var relseg = cljs.core.atom.call(null,new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [(0),(0),(0),(0),(0)], null));
return cljs.core.reduce.call(null,((function (relseg){
return (function (segs,cols){
cljs.core.swap_BANG_.call(null,relseg,((function (relseg){
return (function (p__10980){
var vec__10981 = p__10980;
var _ = cljs.core.nth.call(null,vec__10981,(0),null);
var source = cljs.core.nth.call(null,vec__10981,(1),null);
var line = cljs.core.nth.call(null,vec__10981,(2),null);
var col = cljs.core.nth.call(null,vec__10981,(3),null);
var name = cljs.core.nth.call(null,vec__10981,(4),null);
return new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [(0),source,line,col,name], null);
});})(relseg))
);

return cljs.core.conj.call(null,segs,cljs.core.reduce.call(null,((function (relseg){
return (function (cols__$1,p__10982){
var vec__10983 = p__10982;
var gcol = cljs.core.nth.call(null,vec__10983,(0),null);
var sidx = cljs.core.nth.call(null,vec__10983,(1),null);
var line = cljs.core.nth.call(null,vec__10983,(2),null);
var col = cljs.core.nth.call(null,vec__10983,(3),null);
var name = cljs.core.nth.call(null,vec__10983,(4),null);
var seg = vec__10983;
var offset = cljs.core.map.call(null,cljs.core._,seg,cljs.core.deref.call(null,relseg));
cljs.core.swap_BANG_.call(null,relseg,((function (offset,vec__10983,gcol,sidx,line,col,name,seg,relseg){
return (function (p__10984){
var vec__10985 = p__10984;
var _ = cljs.core.nth.call(null,vec__10985,(0),null);
var ___$1 = cljs.core.nth.call(null,vec__10985,(1),null);
var ___$2 = cljs.core.nth.call(null,vec__10985,(2),null);
var ___$3 = cljs.core.nth.call(null,vec__10985,(3),null);
var lname = cljs.core.nth.call(null,vec__10985,(4),null);
return new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [gcol,sidx,line,col,(function (){var or__4668__auto__ = name;
if(cljs.core.truth_(or__4668__auto__)){
return or__4668__auto__;
} else {
return lname;
}
})()], null);
});})(offset,vec__10983,gcol,sidx,line,col,name,seg,relseg))
);

return cljs.core.conj.call(null,cols__$1,cljs.source_map.base64_vlq.encode.call(null,offset));
});})(relseg))
,cljs.core.PersistentVector.EMPTY,cols));
});})(relseg))
,cljs.core.PersistentVector.EMPTY,lines);
});
/**
 * Take an internal source map representation represented as nested
 * sorted maps of file, line, column and return a source map v3 JSON
 * string.
 */
cljs.source_map.encode = (function cljs$source_map$encode(m,opts){
var lines = cljs.core.atom.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.PersistentVector.EMPTY], null));
var names__GT_idx = cljs.core.atom.call(null,cljs.core.PersistentArrayMap.EMPTY);
var name_idx = cljs.core.atom.call(null,(0));
var preamble_lines = cljs.core.take.call(null,(function (){var or__4668__auto__ = new cljs.core.Keyword(null,"preamble-line-count","preamble-line-count",-659949744).cljs$core$IFn$_invoke$arity$1(opts);
if(cljs.core.truth_(or__4668__auto__)){
return or__4668__auto__;
} else {
return (0);
}
})(),cljs.core.repeat.call(null,cljs.core.PersistentVector.EMPTY));
var info__GT_segv = ((function (lines,names__GT_idx,name_idx,preamble_lines){
return (function (info,source_idx,line,col){
var segv = new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"gcol","gcol",309250807).cljs$core$IFn$_invoke$arity$1(info),source_idx,line,col], null);
var temp__4423__auto__ = new cljs.core.Keyword(null,"name","name",1843675177).cljs$core$IFn$_invoke$arity$1(info);
if(cljs.core.truth_(temp__4423__auto__)){
var name = temp__4423__auto__;
var idx = (function (){var temp__4423__auto____$1 = cljs.core.get.call(null,cljs.core.deref.call(null,names__GT_idx),name);
if(cljs.core.truth_(temp__4423__auto____$1)){
var idx = temp__4423__auto____$1;
return idx;
} else {
var cidx = cljs.core.deref.call(null,name_idx);
cljs.core.swap_BANG_.call(null,names__GT_idx,cljs.core.assoc,name,cidx);

cljs.core.swap_BANG_.call(null,name_idx,cljs.core.inc);

return cidx;
}
})();
return cljs.core.conj.call(null,segv,idx);
} else {
return segv;
}
});})(lines,names__GT_idx,name_idx,preamble_lines))
;
var encode_cols = ((function (lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv){
return (function (infos,source_idx,line,col){
var seq__11039 = cljs.core.seq.call(null,infos);
var chunk__11040 = null;
var count__11041 = (0);
var i__11042 = (0);
while(true){
if((i__11042 < count__11041)){
var info = cljs.core._nth.call(null,chunk__11040,i__11042);
var segv_11089 = info__GT_segv.call(null,info,source_idx,line,col);
var gline_11090 = new cljs.core.Keyword(null,"gline","gline",-1086242431).cljs$core$IFn$_invoke$arity$1(info);
var lc_11091 = cljs.core.count.call(null,cljs.core.deref.call(null,lines));
if((gline_11090 > (lc_11091 - (1)))){
cljs.core.swap_BANG_.call(null,lines,((function (seq__11039,chunk__11040,count__11041,i__11042,segv_11089,gline_11090,lc_11091,info,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv){
return (function (lines__$1){
return cljs.core.conj.call(null,cljs.core.into.call(null,lines__$1,cljs.core.repeat.call(null,((gline_11090 - (lc_11091 - (1))) - (1)),cljs.core.PersistentVector.EMPTY)),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [segv_11089], null));
});})(seq__11039,chunk__11040,count__11041,i__11042,segv_11089,gline_11090,lc_11091,info,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv))
);
} else {
cljs.core.swap_BANG_.call(null,lines,((function (seq__11039,chunk__11040,count__11041,i__11042,segv_11089,gline_11090,lc_11091,info,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv){
return (function (lines__$1){
return cljs.core.update_in.call(null,lines__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline_11090], null),cljs.core.conj,segv_11089);
});})(seq__11039,chunk__11040,count__11041,i__11042,segv_11089,gline_11090,lc_11091,info,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv))
);
}

var G__11092 = seq__11039;
var G__11093 = chunk__11040;
var G__11094 = count__11041;
var G__11095 = (i__11042 + (1));
seq__11039 = G__11092;
chunk__11040 = G__11093;
count__11041 = G__11094;
i__11042 = G__11095;
continue;
} else {
var temp__4425__auto__ = cljs.core.seq.call(null,seq__11039);
if(temp__4425__auto__){
var seq__11039__$1 = temp__4425__auto__;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11039__$1)){
var c__5471__auto__ = cljs.core.chunk_first.call(null,seq__11039__$1);
var G__11096 = cljs.core.chunk_rest.call(null,seq__11039__$1);
var G__11097 = c__5471__auto__;
var G__11098 = cljs.core.count.call(null,c__5471__auto__);
var G__11099 = (0);
seq__11039 = G__11096;
chunk__11040 = G__11097;
count__11041 = G__11098;
i__11042 = G__11099;
continue;
} else {
var info = cljs.core.first.call(null,seq__11039__$1);
var segv_11100 = info__GT_segv.call(null,info,source_idx,line,col);
var gline_11101 = new cljs.core.Keyword(null,"gline","gline",-1086242431).cljs$core$IFn$_invoke$arity$1(info);
var lc_11102 = cljs.core.count.call(null,cljs.core.deref.call(null,lines));
if((gline_11101 > (lc_11102 - (1)))){
cljs.core.swap_BANG_.call(null,lines,((function (seq__11039,chunk__11040,count__11041,i__11042,segv_11100,gline_11101,lc_11102,info,seq__11039__$1,temp__4425__auto__,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv){
return (function (lines__$1){
return cljs.core.conj.call(null,cljs.core.into.call(null,lines__$1,cljs.core.repeat.call(null,((gline_11101 - (lc_11102 - (1))) - (1)),cljs.core.PersistentVector.EMPTY)),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [segv_11100], null));
});})(seq__11039,chunk__11040,count__11041,i__11042,segv_11100,gline_11101,lc_11102,info,seq__11039__$1,temp__4425__auto__,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv))
);
} else {
cljs.core.swap_BANG_.call(null,lines,((function (seq__11039,chunk__11040,count__11041,i__11042,segv_11100,gline_11101,lc_11102,info,seq__11039__$1,temp__4425__auto__,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv){
return (function (lines__$1){
return cljs.core.update_in.call(null,lines__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline_11101], null),cljs.core.conj,segv_11100);
});})(seq__11039,chunk__11040,count__11041,i__11042,segv_11100,gline_11101,lc_11102,info,seq__11039__$1,temp__4425__auto__,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv))
);
}

var G__11103 = cljs.core.next.call(null,seq__11039__$1);
var G__11104 = null;
var G__11105 = (0);
var G__11106 = (0);
seq__11039 = G__11103;
chunk__11040 = G__11104;
count__11041 = G__11105;
i__11042 = G__11106;
continue;
}
} else {
return null;
}
}
break;
}
});})(lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv))
;
var seq__11043_11107 = cljs.core.seq.call(null,cljs.core.map_indexed.call(null,((function (lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv,encode_cols){
return (function (i,v){
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [i,v], null);
});})(lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv,encode_cols))
,m));
var chunk__11044_11108 = null;
var count__11045_11109 = (0);
var i__11046_11110 = (0);
while(true){
if((i__11046_11110 < count__11045_11109)){
var vec__11047_11111 = cljs.core._nth.call(null,chunk__11044_11108,i__11046_11110);
var source_idx_11112 = cljs.core.nth.call(null,vec__11047_11111,(0),null);
var vec__11048_11113 = cljs.core.nth.call(null,vec__11047_11111,(1),null);
var __11114 = cljs.core.nth.call(null,vec__11048_11113,(0),null);
var lines_11115__$1 = cljs.core.nth.call(null,vec__11048_11113,(1),null);
var seq__11049_11116 = cljs.core.seq.call(null,lines_11115__$1);
var chunk__11050_11117 = null;
var count__11051_11118 = (0);
var i__11052_11119 = (0);
while(true){
if((i__11052_11119 < count__11051_11118)){
var vec__11053_11120 = cljs.core._nth.call(null,chunk__11050_11117,i__11052_11119);
var line_11121 = cljs.core.nth.call(null,vec__11053_11120,(0),null);
var cols_11122 = cljs.core.nth.call(null,vec__11053_11120,(1),null);
var seq__11054_11123 = cljs.core.seq.call(null,cols_11122);
var chunk__11055_11124 = null;
var count__11056_11125 = (0);
var i__11057_11126 = (0);
while(true){
if((i__11057_11126 < count__11056_11125)){
var vec__11058_11127 = cljs.core._nth.call(null,chunk__11055_11124,i__11057_11126);
var col_11128 = cljs.core.nth.call(null,vec__11058_11127,(0),null);
var infos_11129 = cljs.core.nth.call(null,vec__11058_11127,(1),null);
encode_cols.call(null,infos_11129,source_idx_11112,line_11121,col_11128);

var G__11130 = seq__11054_11123;
var G__11131 = chunk__11055_11124;
var G__11132 = count__11056_11125;
var G__11133 = (i__11057_11126 + (1));
seq__11054_11123 = G__11130;
chunk__11055_11124 = G__11131;
count__11056_11125 = G__11132;
i__11057_11126 = G__11133;
continue;
} else {
var temp__4425__auto___11134 = cljs.core.seq.call(null,seq__11054_11123);
if(temp__4425__auto___11134){
var seq__11054_11135__$1 = temp__4425__auto___11134;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11054_11135__$1)){
var c__5471__auto___11136 = cljs.core.chunk_first.call(null,seq__11054_11135__$1);
var G__11137 = cljs.core.chunk_rest.call(null,seq__11054_11135__$1);
var G__11138 = c__5471__auto___11136;
var G__11139 = cljs.core.count.call(null,c__5471__auto___11136);
var G__11140 = (0);
seq__11054_11123 = G__11137;
chunk__11055_11124 = G__11138;
count__11056_11125 = G__11139;
i__11057_11126 = G__11140;
continue;
} else {
var vec__11059_11141 = cljs.core.first.call(null,seq__11054_11135__$1);
var col_11142 = cljs.core.nth.call(null,vec__11059_11141,(0),null);
var infos_11143 = cljs.core.nth.call(null,vec__11059_11141,(1),null);
encode_cols.call(null,infos_11143,source_idx_11112,line_11121,col_11142);

var G__11144 = cljs.core.next.call(null,seq__11054_11135__$1);
var G__11145 = null;
var G__11146 = (0);
var G__11147 = (0);
seq__11054_11123 = G__11144;
chunk__11055_11124 = G__11145;
count__11056_11125 = G__11146;
i__11057_11126 = G__11147;
continue;
}
} else {
}
}
break;
}

var G__11148 = seq__11049_11116;
var G__11149 = chunk__11050_11117;
var G__11150 = count__11051_11118;
var G__11151 = (i__11052_11119 + (1));
seq__11049_11116 = G__11148;
chunk__11050_11117 = G__11149;
count__11051_11118 = G__11150;
i__11052_11119 = G__11151;
continue;
} else {
var temp__4425__auto___11152 = cljs.core.seq.call(null,seq__11049_11116);
if(temp__4425__auto___11152){
var seq__11049_11153__$1 = temp__4425__auto___11152;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11049_11153__$1)){
var c__5471__auto___11154 = cljs.core.chunk_first.call(null,seq__11049_11153__$1);
var G__11155 = cljs.core.chunk_rest.call(null,seq__11049_11153__$1);
var G__11156 = c__5471__auto___11154;
var G__11157 = cljs.core.count.call(null,c__5471__auto___11154);
var G__11158 = (0);
seq__11049_11116 = G__11155;
chunk__11050_11117 = G__11156;
count__11051_11118 = G__11157;
i__11052_11119 = G__11158;
continue;
} else {
var vec__11060_11159 = cljs.core.first.call(null,seq__11049_11153__$1);
var line_11160 = cljs.core.nth.call(null,vec__11060_11159,(0),null);
var cols_11161 = cljs.core.nth.call(null,vec__11060_11159,(1),null);
var seq__11061_11162 = cljs.core.seq.call(null,cols_11161);
var chunk__11062_11163 = null;
var count__11063_11164 = (0);
var i__11064_11165 = (0);
while(true){
if((i__11064_11165 < count__11063_11164)){
var vec__11065_11166 = cljs.core._nth.call(null,chunk__11062_11163,i__11064_11165);
var col_11167 = cljs.core.nth.call(null,vec__11065_11166,(0),null);
var infos_11168 = cljs.core.nth.call(null,vec__11065_11166,(1),null);
encode_cols.call(null,infos_11168,source_idx_11112,line_11160,col_11167);

var G__11169 = seq__11061_11162;
var G__11170 = chunk__11062_11163;
var G__11171 = count__11063_11164;
var G__11172 = (i__11064_11165 + (1));
seq__11061_11162 = G__11169;
chunk__11062_11163 = G__11170;
count__11063_11164 = G__11171;
i__11064_11165 = G__11172;
continue;
} else {
var temp__4425__auto___11173__$1 = cljs.core.seq.call(null,seq__11061_11162);
if(temp__4425__auto___11173__$1){
var seq__11061_11174__$1 = temp__4425__auto___11173__$1;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11061_11174__$1)){
var c__5471__auto___11175 = cljs.core.chunk_first.call(null,seq__11061_11174__$1);
var G__11176 = cljs.core.chunk_rest.call(null,seq__11061_11174__$1);
var G__11177 = c__5471__auto___11175;
var G__11178 = cljs.core.count.call(null,c__5471__auto___11175);
var G__11179 = (0);
seq__11061_11162 = G__11176;
chunk__11062_11163 = G__11177;
count__11063_11164 = G__11178;
i__11064_11165 = G__11179;
continue;
} else {
var vec__11066_11180 = cljs.core.first.call(null,seq__11061_11174__$1);
var col_11181 = cljs.core.nth.call(null,vec__11066_11180,(0),null);
var infos_11182 = cljs.core.nth.call(null,vec__11066_11180,(1),null);
encode_cols.call(null,infos_11182,source_idx_11112,line_11160,col_11181);

var G__11183 = cljs.core.next.call(null,seq__11061_11174__$1);
var G__11184 = null;
var G__11185 = (0);
var G__11186 = (0);
seq__11061_11162 = G__11183;
chunk__11062_11163 = G__11184;
count__11063_11164 = G__11185;
i__11064_11165 = G__11186;
continue;
}
} else {
}
}
break;
}

var G__11187 = cljs.core.next.call(null,seq__11049_11153__$1);
var G__11188 = null;
var G__11189 = (0);
var G__11190 = (0);
seq__11049_11116 = G__11187;
chunk__11050_11117 = G__11188;
count__11051_11118 = G__11189;
i__11052_11119 = G__11190;
continue;
}
} else {
}
}
break;
}

var G__11191 = seq__11043_11107;
var G__11192 = chunk__11044_11108;
var G__11193 = count__11045_11109;
var G__11194 = (i__11046_11110 + (1));
seq__11043_11107 = G__11191;
chunk__11044_11108 = G__11192;
count__11045_11109 = G__11193;
i__11046_11110 = G__11194;
continue;
} else {
var temp__4425__auto___11195 = cljs.core.seq.call(null,seq__11043_11107);
if(temp__4425__auto___11195){
var seq__11043_11196__$1 = temp__4425__auto___11195;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11043_11196__$1)){
var c__5471__auto___11197 = cljs.core.chunk_first.call(null,seq__11043_11196__$1);
var G__11198 = cljs.core.chunk_rest.call(null,seq__11043_11196__$1);
var G__11199 = c__5471__auto___11197;
var G__11200 = cljs.core.count.call(null,c__5471__auto___11197);
var G__11201 = (0);
seq__11043_11107 = G__11198;
chunk__11044_11108 = G__11199;
count__11045_11109 = G__11200;
i__11046_11110 = G__11201;
continue;
} else {
var vec__11067_11202 = cljs.core.first.call(null,seq__11043_11196__$1);
var source_idx_11203 = cljs.core.nth.call(null,vec__11067_11202,(0),null);
var vec__11068_11204 = cljs.core.nth.call(null,vec__11067_11202,(1),null);
var __11205 = cljs.core.nth.call(null,vec__11068_11204,(0),null);
var lines_11206__$1 = cljs.core.nth.call(null,vec__11068_11204,(1),null);
var seq__11069_11207 = cljs.core.seq.call(null,lines_11206__$1);
var chunk__11070_11208 = null;
var count__11071_11209 = (0);
var i__11072_11210 = (0);
while(true){
if((i__11072_11210 < count__11071_11209)){
var vec__11073_11211 = cljs.core._nth.call(null,chunk__11070_11208,i__11072_11210);
var line_11212 = cljs.core.nth.call(null,vec__11073_11211,(0),null);
var cols_11213 = cljs.core.nth.call(null,vec__11073_11211,(1),null);
var seq__11074_11214 = cljs.core.seq.call(null,cols_11213);
var chunk__11075_11215 = null;
var count__11076_11216 = (0);
var i__11077_11217 = (0);
while(true){
if((i__11077_11217 < count__11076_11216)){
var vec__11078_11218 = cljs.core._nth.call(null,chunk__11075_11215,i__11077_11217);
var col_11219 = cljs.core.nth.call(null,vec__11078_11218,(0),null);
var infos_11220 = cljs.core.nth.call(null,vec__11078_11218,(1),null);
encode_cols.call(null,infos_11220,source_idx_11203,line_11212,col_11219);

var G__11221 = seq__11074_11214;
var G__11222 = chunk__11075_11215;
var G__11223 = count__11076_11216;
var G__11224 = (i__11077_11217 + (1));
seq__11074_11214 = G__11221;
chunk__11075_11215 = G__11222;
count__11076_11216 = G__11223;
i__11077_11217 = G__11224;
continue;
} else {
var temp__4425__auto___11225__$1 = cljs.core.seq.call(null,seq__11074_11214);
if(temp__4425__auto___11225__$1){
var seq__11074_11226__$1 = temp__4425__auto___11225__$1;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11074_11226__$1)){
var c__5471__auto___11227 = cljs.core.chunk_first.call(null,seq__11074_11226__$1);
var G__11228 = cljs.core.chunk_rest.call(null,seq__11074_11226__$1);
var G__11229 = c__5471__auto___11227;
var G__11230 = cljs.core.count.call(null,c__5471__auto___11227);
var G__11231 = (0);
seq__11074_11214 = G__11228;
chunk__11075_11215 = G__11229;
count__11076_11216 = G__11230;
i__11077_11217 = G__11231;
continue;
} else {
var vec__11079_11232 = cljs.core.first.call(null,seq__11074_11226__$1);
var col_11233 = cljs.core.nth.call(null,vec__11079_11232,(0),null);
var infos_11234 = cljs.core.nth.call(null,vec__11079_11232,(1),null);
encode_cols.call(null,infos_11234,source_idx_11203,line_11212,col_11233);

var G__11235 = cljs.core.next.call(null,seq__11074_11226__$1);
var G__11236 = null;
var G__11237 = (0);
var G__11238 = (0);
seq__11074_11214 = G__11235;
chunk__11075_11215 = G__11236;
count__11076_11216 = G__11237;
i__11077_11217 = G__11238;
continue;
}
} else {
}
}
break;
}

var G__11239 = seq__11069_11207;
var G__11240 = chunk__11070_11208;
var G__11241 = count__11071_11209;
var G__11242 = (i__11072_11210 + (1));
seq__11069_11207 = G__11239;
chunk__11070_11208 = G__11240;
count__11071_11209 = G__11241;
i__11072_11210 = G__11242;
continue;
} else {
var temp__4425__auto___11243__$1 = cljs.core.seq.call(null,seq__11069_11207);
if(temp__4425__auto___11243__$1){
var seq__11069_11244__$1 = temp__4425__auto___11243__$1;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11069_11244__$1)){
var c__5471__auto___11245 = cljs.core.chunk_first.call(null,seq__11069_11244__$1);
var G__11246 = cljs.core.chunk_rest.call(null,seq__11069_11244__$1);
var G__11247 = c__5471__auto___11245;
var G__11248 = cljs.core.count.call(null,c__5471__auto___11245);
var G__11249 = (0);
seq__11069_11207 = G__11246;
chunk__11070_11208 = G__11247;
count__11071_11209 = G__11248;
i__11072_11210 = G__11249;
continue;
} else {
var vec__11080_11250 = cljs.core.first.call(null,seq__11069_11244__$1);
var line_11251 = cljs.core.nth.call(null,vec__11080_11250,(0),null);
var cols_11252 = cljs.core.nth.call(null,vec__11080_11250,(1),null);
var seq__11081_11253 = cljs.core.seq.call(null,cols_11252);
var chunk__11082_11254 = null;
var count__11083_11255 = (0);
var i__11084_11256 = (0);
while(true){
if((i__11084_11256 < count__11083_11255)){
var vec__11085_11257 = cljs.core._nth.call(null,chunk__11082_11254,i__11084_11256);
var col_11258 = cljs.core.nth.call(null,vec__11085_11257,(0),null);
var infos_11259 = cljs.core.nth.call(null,vec__11085_11257,(1),null);
encode_cols.call(null,infos_11259,source_idx_11203,line_11251,col_11258);

var G__11260 = seq__11081_11253;
var G__11261 = chunk__11082_11254;
var G__11262 = count__11083_11255;
var G__11263 = (i__11084_11256 + (1));
seq__11081_11253 = G__11260;
chunk__11082_11254 = G__11261;
count__11083_11255 = G__11262;
i__11084_11256 = G__11263;
continue;
} else {
var temp__4425__auto___11264__$2 = cljs.core.seq.call(null,seq__11081_11253);
if(temp__4425__auto___11264__$2){
var seq__11081_11265__$1 = temp__4425__auto___11264__$2;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11081_11265__$1)){
var c__5471__auto___11266 = cljs.core.chunk_first.call(null,seq__11081_11265__$1);
var G__11267 = cljs.core.chunk_rest.call(null,seq__11081_11265__$1);
var G__11268 = c__5471__auto___11266;
var G__11269 = cljs.core.count.call(null,c__5471__auto___11266);
var G__11270 = (0);
seq__11081_11253 = G__11267;
chunk__11082_11254 = G__11268;
count__11083_11255 = G__11269;
i__11084_11256 = G__11270;
continue;
} else {
var vec__11086_11271 = cljs.core.first.call(null,seq__11081_11265__$1);
var col_11272 = cljs.core.nth.call(null,vec__11086_11271,(0),null);
var infos_11273 = cljs.core.nth.call(null,vec__11086_11271,(1),null);
encode_cols.call(null,infos_11273,source_idx_11203,line_11251,col_11272);

var G__11274 = cljs.core.next.call(null,seq__11081_11265__$1);
var G__11275 = null;
var G__11276 = (0);
var G__11277 = (0);
seq__11081_11253 = G__11274;
chunk__11082_11254 = G__11275;
count__11083_11255 = G__11276;
i__11084_11256 = G__11277;
continue;
}
} else {
}
}
break;
}

var G__11278 = cljs.core.next.call(null,seq__11069_11244__$1);
var G__11279 = null;
var G__11280 = (0);
var G__11281 = (0);
seq__11069_11207 = G__11278;
chunk__11070_11208 = G__11279;
count__11071_11209 = G__11280;
i__11072_11210 = G__11281;
continue;
}
} else {
}
}
break;
}

var G__11282 = cljs.core.next.call(null,seq__11043_11196__$1);
var G__11283 = null;
var G__11284 = (0);
var G__11285 = (0);
seq__11043_11107 = G__11282;
chunk__11044_11108 = G__11283;
count__11045_11109 = G__11284;
i__11046_11110 = G__11285;
continue;
}
} else {
}
}
break;
}

var source_map_file_contents = (function (){var G__11087 = {"version": (3), "file": new cljs.core.Keyword(null,"file","file",-1269645878).cljs$core$IFn$_invoke$arity$1(opts), "sources": (function (){var paths = cljs.core.keys.call(null,m);
var f = cljs.core.comp.call(null,((new cljs.core.Keyword(null,"source-map-timestamp","source-map-timestamp",1973015633).cljs$core$IFn$_invoke$arity$1(opts) === true)?((function (paths,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv,encode_cols){
return (function (p1__10986_SHARP_){
return [cljs.core.str(p1__10986_SHARP_),cljs.core.str("?rel="),cljs.core.str((new Date()).valueOf())].join('');
});})(paths,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv,encode_cols))
:cljs.core.identity),((function (paths,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv,encode_cols){
return (function (p1__10987_SHARP_){
return cljs.core.last.call(null,clojure.string.split.call(null,p1__10987_SHARP_,/\//));
});})(paths,lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv,encode_cols))
);
return cljs.core.into_array.call(null,cljs.core.map.call(null,f,paths));
})(), "lineCount": new cljs.core.Keyword(null,"lines","lines",-700165781).cljs$core$IFn$_invoke$arity$1(opts), "mappings": clojure.string.join.call(null,";",cljs.core.map.call(null,((function (lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv,encode_cols){
return (function (p1__10988_SHARP_){
return clojure.string.join.call(null,",",p1__10988_SHARP_);
});})(lines,names__GT_idx,name_idx,preamble_lines,info__GT_segv,encode_cols))
,cljs.source_map.lines__GT_segs.call(null,cljs.core.concat.call(null,preamble_lines,cljs.core.deref.call(null,lines))))), "names": cljs.core.into_array.call(null,cljs.core.map.call(null,clojure.set.map_invert.call(null,cljs.core.deref.call(null,names__GT_idx)),cljs.core.range.call(null,cljs.core.count.call(null,cljs.core.deref.call(null,names__GT_idx)))))};
var G__11087__$1 = (cljs.core.truth_(new cljs.core.Keyword(null,"sources-content","sources-content",1729970239).cljs$core$IFn$_invoke$arity$1(opts))?(function (){var G__11088 = G__11087;
goog.object.set(G__11088,"sourcesContent",cljs.core.into_array.call(null,new cljs.core.Keyword(null,"sources-content","sources-content",1729970239).cljs$core$IFn$_invoke$arity$1(opts)));

return G__11088;
})():G__11087);
return G__11087__$1;
})();
return JSON.stringify(source_map_file_contents);
});
/**
 * Merge an internal source map representation of a single
 * ClojureScript file mapping original to generated with a
 * second source map mapping original JS to generated JS.
 * The is to support source maps that work through multiple
 * compilation steps like Google Closure optimization passes.
 */
cljs.source_map.merge_source_maps = (function cljs$source_map$merge_source_maps(cljs_map,js_map){
var line_map_seq = cljs.core.seq.call(null,cljs_map);
var new_lines = cljs.core.sorted_map.call(null);
while(true){
if(line_map_seq){
var vec__11291 = cljs.core.first.call(null,line_map_seq);
var line = cljs.core.nth.call(null,vec__11291,(0),null);
var col_map = cljs.core.nth.call(null,vec__11291,(1),null);
var new_cols = (function (){var col_map_seq = cljs.core.seq.call(null,col_map);
var new_cols = cljs.core.sorted_map.call(null);
while(true){
if(col_map_seq){
var vec__11292 = cljs.core.first.call(null,col_map_seq);
var col = cljs.core.nth.call(null,vec__11292,(0),null);
var infos = cljs.core.nth.call(null,vec__11292,(1),null);
var G__11296 = cljs.core.next.call(null,col_map_seq);
var G__11297 = cljs.core.assoc.call(null,new_cols,col,cljs.core.reduce.call(null,((function (col_map_seq,new_cols,line_map_seq,new_lines,vec__11292,col,infos,vec__11291,line,col_map){
return (function (v,p__11293){
var map__11294 = p__11293;
var map__11294__$1 = ((((!((map__11294 == null)))?((((map__11294.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11294.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11294):map__11294);
var gline = cljs.core.get.call(null,map__11294__$1,new cljs.core.Keyword(null,"gline","gline",-1086242431));
var gcol = cljs.core.get.call(null,map__11294__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
return cljs.core.into.call(null,v,cljs.core.get_in.call(null,js_map,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline,gcol], null)));
});})(col_map_seq,new_cols,line_map_seq,new_lines,vec__11292,col,infos,vec__11291,line,col_map))
,cljs.core.PersistentVector.EMPTY,infos));
col_map_seq = G__11296;
new_cols = G__11297;
continue;
} else {
return new_cols;
}
break;
}
})();
var G__11298 = cljs.core.next.call(null,line_map_seq);
var G__11299 = cljs.core.assoc.call(null,new_lines,line,new_cols);
line_map_seq = G__11298;
new_lines = G__11299;
continue;
} else {
return new_lines;
}
break;
}
});
/**
 * Given a ClojureScript to JavaScript source map, invert it. Useful when
 * mapping JavaScript stack traces when environment support is unavailable.
 */
cljs.source_map.invert_reverse_map = (function cljs$source_map$invert_reverse_map(reverse_map){
var inverted = cljs.core.atom.call(null,cljs.core.sorted_map.call(null));
var seq__11350_11400 = cljs.core.seq.call(null,reverse_map);
var chunk__11351_11401 = null;
var count__11352_11402 = (0);
var i__11353_11403 = (0);
while(true){
if((i__11353_11403 < count__11352_11402)){
var vec__11354_11404 = cljs.core._nth.call(null,chunk__11351_11401,i__11353_11403);
var line_11405 = cljs.core.nth.call(null,vec__11354_11404,(0),null);
var columns_11406 = cljs.core.nth.call(null,vec__11354_11404,(1),null);
var seq__11355_11407 = cljs.core.seq.call(null,columns_11406);
var chunk__11356_11408 = null;
var count__11357_11409 = (0);
var i__11358_11410 = (0);
while(true){
if((i__11358_11410 < count__11357_11409)){
var vec__11359_11411 = cljs.core._nth.call(null,chunk__11356_11408,i__11358_11410);
var column_11412 = cljs.core.nth.call(null,vec__11359_11411,(0),null);
var column_info_11413 = cljs.core.nth.call(null,vec__11359_11411,(1),null);
var seq__11360_11414 = cljs.core.seq.call(null,column_info_11413);
var chunk__11361_11415 = null;
var count__11362_11416 = (0);
var i__11363_11417 = (0);
while(true){
if((i__11363_11417 < count__11362_11416)){
var map__11364_11418 = cljs.core._nth.call(null,chunk__11361_11415,i__11363_11417);
var map__11364_11419__$1 = ((((!((map__11364_11418 == null)))?((((map__11364_11418.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11364_11418.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11364_11418):map__11364_11418);
var gline_11420 = cljs.core.get.call(null,map__11364_11419__$1,new cljs.core.Keyword(null,"gline","gline",-1086242431));
var gcol_11421 = cljs.core.get.call(null,map__11364_11419__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
var name_11422 = cljs.core.get.call(null,map__11364_11419__$1,new cljs.core.Keyword(null,"name","name",1843675177));
cljs.core.swap_BANG_.call(null,inverted,cljs.core.update_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline_11420], null),cljs.core.fnil.call(null,((function (seq__11360_11414,chunk__11361_11415,count__11362_11416,i__11363_11417,seq__11355_11407,chunk__11356_11408,count__11357_11409,i__11358_11410,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11364_11418,map__11364_11419__$1,gline_11420,gcol_11421,name_11422,vec__11359_11411,column_11412,column_info_11413,vec__11354_11404,line_11405,columns_11406,inverted){
return (function (columns__$1){
return cljs.core.update_in.call(null,columns__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_11412], null),cljs.core.fnil.call(null,cljs.core.conj,cljs.core.PersistentVector.EMPTY),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"line","line",212345235),line_11405,new cljs.core.Keyword(null,"col","col",-1959363084),column_11412,new cljs.core.Keyword(null,"name","name",1843675177),name_11422], null));
});})(seq__11360_11414,chunk__11361_11415,count__11362_11416,i__11363_11417,seq__11355_11407,chunk__11356_11408,count__11357_11409,i__11358_11410,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11364_11418,map__11364_11419__$1,gline_11420,gcol_11421,name_11422,vec__11359_11411,column_11412,column_info_11413,vec__11354_11404,line_11405,columns_11406,inverted))
,cljs.core.sorted_map.call(null)));

var G__11423 = seq__11360_11414;
var G__11424 = chunk__11361_11415;
var G__11425 = count__11362_11416;
var G__11426 = (i__11363_11417 + (1));
seq__11360_11414 = G__11423;
chunk__11361_11415 = G__11424;
count__11362_11416 = G__11425;
i__11363_11417 = G__11426;
continue;
} else {
var temp__4425__auto___11427 = cljs.core.seq.call(null,seq__11360_11414);
if(temp__4425__auto___11427){
var seq__11360_11428__$1 = temp__4425__auto___11427;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11360_11428__$1)){
var c__5471__auto___11429 = cljs.core.chunk_first.call(null,seq__11360_11428__$1);
var G__11430 = cljs.core.chunk_rest.call(null,seq__11360_11428__$1);
var G__11431 = c__5471__auto___11429;
var G__11432 = cljs.core.count.call(null,c__5471__auto___11429);
var G__11433 = (0);
seq__11360_11414 = G__11430;
chunk__11361_11415 = G__11431;
count__11362_11416 = G__11432;
i__11363_11417 = G__11433;
continue;
} else {
var map__11366_11434 = cljs.core.first.call(null,seq__11360_11428__$1);
var map__11366_11435__$1 = ((((!((map__11366_11434 == null)))?((((map__11366_11434.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11366_11434.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11366_11434):map__11366_11434);
var gline_11436 = cljs.core.get.call(null,map__11366_11435__$1,new cljs.core.Keyword(null,"gline","gline",-1086242431));
var gcol_11437 = cljs.core.get.call(null,map__11366_11435__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
var name_11438 = cljs.core.get.call(null,map__11366_11435__$1,new cljs.core.Keyword(null,"name","name",1843675177));
cljs.core.swap_BANG_.call(null,inverted,cljs.core.update_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline_11436], null),cljs.core.fnil.call(null,((function (seq__11360_11414,chunk__11361_11415,count__11362_11416,i__11363_11417,seq__11355_11407,chunk__11356_11408,count__11357_11409,i__11358_11410,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11366_11434,map__11366_11435__$1,gline_11436,gcol_11437,name_11438,seq__11360_11428__$1,temp__4425__auto___11427,vec__11359_11411,column_11412,column_info_11413,vec__11354_11404,line_11405,columns_11406,inverted){
return (function (columns__$1){
return cljs.core.update_in.call(null,columns__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_11412], null),cljs.core.fnil.call(null,cljs.core.conj,cljs.core.PersistentVector.EMPTY),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"line","line",212345235),line_11405,new cljs.core.Keyword(null,"col","col",-1959363084),column_11412,new cljs.core.Keyword(null,"name","name",1843675177),name_11438], null));
});})(seq__11360_11414,chunk__11361_11415,count__11362_11416,i__11363_11417,seq__11355_11407,chunk__11356_11408,count__11357_11409,i__11358_11410,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11366_11434,map__11366_11435__$1,gline_11436,gcol_11437,name_11438,seq__11360_11428__$1,temp__4425__auto___11427,vec__11359_11411,column_11412,column_info_11413,vec__11354_11404,line_11405,columns_11406,inverted))
,cljs.core.sorted_map.call(null)));

var G__11439 = cljs.core.next.call(null,seq__11360_11428__$1);
var G__11440 = null;
var G__11441 = (0);
var G__11442 = (0);
seq__11360_11414 = G__11439;
chunk__11361_11415 = G__11440;
count__11362_11416 = G__11441;
i__11363_11417 = G__11442;
continue;
}
} else {
}
}
break;
}

var G__11443 = seq__11355_11407;
var G__11444 = chunk__11356_11408;
var G__11445 = count__11357_11409;
var G__11446 = (i__11358_11410 + (1));
seq__11355_11407 = G__11443;
chunk__11356_11408 = G__11444;
count__11357_11409 = G__11445;
i__11358_11410 = G__11446;
continue;
} else {
var temp__4425__auto___11447 = cljs.core.seq.call(null,seq__11355_11407);
if(temp__4425__auto___11447){
var seq__11355_11448__$1 = temp__4425__auto___11447;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11355_11448__$1)){
var c__5471__auto___11449 = cljs.core.chunk_first.call(null,seq__11355_11448__$1);
var G__11450 = cljs.core.chunk_rest.call(null,seq__11355_11448__$1);
var G__11451 = c__5471__auto___11449;
var G__11452 = cljs.core.count.call(null,c__5471__auto___11449);
var G__11453 = (0);
seq__11355_11407 = G__11450;
chunk__11356_11408 = G__11451;
count__11357_11409 = G__11452;
i__11358_11410 = G__11453;
continue;
} else {
var vec__11368_11454 = cljs.core.first.call(null,seq__11355_11448__$1);
var column_11455 = cljs.core.nth.call(null,vec__11368_11454,(0),null);
var column_info_11456 = cljs.core.nth.call(null,vec__11368_11454,(1),null);
var seq__11369_11457 = cljs.core.seq.call(null,column_info_11456);
var chunk__11370_11458 = null;
var count__11371_11459 = (0);
var i__11372_11460 = (0);
while(true){
if((i__11372_11460 < count__11371_11459)){
var map__11373_11461 = cljs.core._nth.call(null,chunk__11370_11458,i__11372_11460);
var map__11373_11462__$1 = ((((!((map__11373_11461 == null)))?((((map__11373_11461.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11373_11461.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11373_11461):map__11373_11461);
var gline_11463 = cljs.core.get.call(null,map__11373_11462__$1,new cljs.core.Keyword(null,"gline","gline",-1086242431));
var gcol_11464 = cljs.core.get.call(null,map__11373_11462__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
var name_11465 = cljs.core.get.call(null,map__11373_11462__$1,new cljs.core.Keyword(null,"name","name",1843675177));
cljs.core.swap_BANG_.call(null,inverted,cljs.core.update_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline_11463], null),cljs.core.fnil.call(null,((function (seq__11369_11457,chunk__11370_11458,count__11371_11459,i__11372_11460,seq__11355_11407,chunk__11356_11408,count__11357_11409,i__11358_11410,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11373_11461,map__11373_11462__$1,gline_11463,gcol_11464,name_11465,vec__11368_11454,column_11455,column_info_11456,seq__11355_11448__$1,temp__4425__auto___11447,vec__11354_11404,line_11405,columns_11406,inverted){
return (function (columns__$1){
return cljs.core.update_in.call(null,columns__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_11455], null),cljs.core.fnil.call(null,cljs.core.conj,cljs.core.PersistentVector.EMPTY),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"line","line",212345235),line_11405,new cljs.core.Keyword(null,"col","col",-1959363084),column_11455,new cljs.core.Keyword(null,"name","name",1843675177),name_11465], null));
});})(seq__11369_11457,chunk__11370_11458,count__11371_11459,i__11372_11460,seq__11355_11407,chunk__11356_11408,count__11357_11409,i__11358_11410,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11373_11461,map__11373_11462__$1,gline_11463,gcol_11464,name_11465,vec__11368_11454,column_11455,column_info_11456,seq__11355_11448__$1,temp__4425__auto___11447,vec__11354_11404,line_11405,columns_11406,inverted))
,cljs.core.sorted_map.call(null)));

var G__11466 = seq__11369_11457;
var G__11467 = chunk__11370_11458;
var G__11468 = count__11371_11459;
var G__11469 = (i__11372_11460 + (1));
seq__11369_11457 = G__11466;
chunk__11370_11458 = G__11467;
count__11371_11459 = G__11468;
i__11372_11460 = G__11469;
continue;
} else {
var temp__4425__auto___11470__$1 = cljs.core.seq.call(null,seq__11369_11457);
if(temp__4425__auto___11470__$1){
var seq__11369_11471__$1 = temp__4425__auto___11470__$1;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11369_11471__$1)){
var c__5471__auto___11472 = cljs.core.chunk_first.call(null,seq__11369_11471__$1);
var G__11473 = cljs.core.chunk_rest.call(null,seq__11369_11471__$1);
var G__11474 = c__5471__auto___11472;
var G__11475 = cljs.core.count.call(null,c__5471__auto___11472);
var G__11476 = (0);
seq__11369_11457 = G__11473;
chunk__11370_11458 = G__11474;
count__11371_11459 = G__11475;
i__11372_11460 = G__11476;
continue;
} else {
var map__11375_11477 = cljs.core.first.call(null,seq__11369_11471__$1);
var map__11375_11478__$1 = ((((!((map__11375_11477 == null)))?((((map__11375_11477.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11375_11477.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11375_11477):map__11375_11477);
var gline_11479 = cljs.core.get.call(null,map__11375_11478__$1,new cljs.core.Keyword(null,"gline","gline",-1086242431));
var gcol_11480 = cljs.core.get.call(null,map__11375_11478__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
var name_11481 = cljs.core.get.call(null,map__11375_11478__$1,new cljs.core.Keyword(null,"name","name",1843675177));
cljs.core.swap_BANG_.call(null,inverted,cljs.core.update_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline_11479], null),cljs.core.fnil.call(null,((function (seq__11369_11457,chunk__11370_11458,count__11371_11459,i__11372_11460,seq__11355_11407,chunk__11356_11408,count__11357_11409,i__11358_11410,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11375_11477,map__11375_11478__$1,gline_11479,gcol_11480,name_11481,seq__11369_11471__$1,temp__4425__auto___11470__$1,vec__11368_11454,column_11455,column_info_11456,seq__11355_11448__$1,temp__4425__auto___11447,vec__11354_11404,line_11405,columns_11406,inverted){
return (function (columns__$1){
return cljs.core.update_in.call(null,columns__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_11455], null),cljs.core.fnil.call(null,cljs.core.conj,cljs.core.PersistentVector.EMPTY),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"line","line",212345235),line_11405,new cljs.core.Keyword(null,"col","col",-1959363084),column_11455,new cljs.core.Keyword(null,"name","name",1843675177),name_11481], null));
});})(seq__11369_11457,chunk__11370_11458,count__11371_11459,i__11372_11460,seq__11355_11407,chunk__11356_11408,count__11357_11409,i__11358_11410,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11375_11477,map__11375_11478__$1,gline_11479,gcol_11480,name_11481,seq__11369_11471__$1,temp__4425__auto___11470__$1,vec__11368_11454,column_11455,column_info_11456,seq__11355_11448__$1,temp__4425__auto___11447,vec__11354_11404,line_11405,columns_11406,inverted))
,cljs.core.sorted_map.call(null)));

var G__11482 = cljs.core.next.call(null,seq__11369_11471__$1);
var G__11483 = null;
var G__11484 = (0);
var G__11485 = (0);
seq__11369_11457 = G__11482;
chunk__11370_11458 = G__11483;
count__11371_11459 = G__11484;
i__11372_11460 = G__11485;
continue;
}
} else {
}
}
break;
}

var G__11486 = cljs.core.next.call(null,seq__11355_11448__$1);
var G__11487 = null;
var G__11488 = (0);
var G__11489 = (0);
seq__11355_11407 = G__11486;
chunk__11356_11408 = G__11487;
count__11357_11409 = G__11488;
i__11358_11410 = G__11489;
continue;
}
} else {
}
}
break;
}

var G__11490 = seq__11350_11400;
var G__11491 = chunk__11351_11401;
var G__11492 = count__11352_11402;
var G__11493 = (i__11353_11403 + (1));
seq__11350_11400 = G__11490;
chunk__11351_11401 = G__11491;
count__11352_11402 = G__11492;
i__11353_11403 = G__11493;
continue;
} else {
var temp__4425__auto___11494 = cljs.core.seq.call(null,seq__11350_11400);
if(temp__4425__auto___11494){
var seq__11350_11495__$1 = temp__4425__auto___11494;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11350_11495__$1)){
var c__5471__auto___11496 = cljs.core.chunk_first.call(null,seq__11350_11495__$1);
var G__11497 = cljs.core.chunk_rest.call(null,seq__11350_11495__$1);
var G__11498 = c__5471__auto___11496;
var G__11499 = cljs.core.count.call(null,c__5471__auto___11496);
var G__11500 = (0);
seq__11350_11400 = G__11497;
chunk__11351_11401 = G__11498;
count__11352_11402 = G__11499;
i__11353_11403 = G__11500;
continue;
} else {
var vec__11377_11501 = cljs.core.first.call(null,seq__11350_11495__$1);
var line_11502 = cljs.core.nth.call(null,vec__11377_11501,(0),null);
var columns_11503 = cljs.core.nth.call(null,vec__11377_11501,(1),null);
var seq__11378_11504 = cljs.core.seq.call(null,columns_11503);
var chunk__11379_11505 = null;
var count__11380_11506 = (0);
var i__11381_11507 = (0);
while(true){
if((i__11381_11507 < count__11380_11506)){
var vec__11382_11508 = cljs.core._nth.call(null,chunk__11379_11505,i__11381_11507);
var column_11509 = cljs.core.nth.call(null,vec__11382_11508,(0),null);
var column_info_11510 = cljs.core.nth.call(null,vec__11382_11508,(1),null);
var seq__11383_11511 = cljs.core.seq.call(null,column_info_11510);
var chunk__11384_11512 = null;
var count__11385_11513 = (0);
var i__11386_11514 = (0);
while(true){
if((i__11386_11514 < count__11385_11513)){
var map__11387_11515 = cljs.core._nth.call(null,chunk__11384_11512,i__11386_11514);
var map__11387_11516__$1 = ((((!((map__11387_11515 == null)))?((((map__11387_11515.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11387_11515.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11387_11515):map__11387_11515);
var gline_11517 = cljs.core.get.call(null,map__11387_11516__$1,new cljs.core.Keyword(null,"gline","gline",-1086242431));
var gcol_11518 = cljs.core.get.call(null,map__11387_11516__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
var name_11519 = cljs.core.get.call(null,map__11387_11516__$1,new cljs.core.Keyword(null,"name","name",1843675177));
cljs.core.swap_BANG_.call(null,inverted,cljs.core.update_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline_11517], null),cljs.core.fnil.call(null,((function (seq__11383_11511,chunk__11384_11512,count__11385_11513,i__11386_11514,seq__11378_11504,chunk__11379_11505,count__11380_11506,i__11381_11507,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11387_11515,map__11387_11516__$1,gline_11517,gcol_11518,name_11519,vec__11382_11508,column_11509,column_info_11510,vec__11377_11501,line_11502,columns_11503,seq__11350_11495__$1,temp__4425__auto___11494,inverted){
return (function (columns__$1){
return cljs.core.update_in.call(null,columns__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_11509], null),cljs.core.fnil.call(null,cljs.core.conj,cljs.core.PersistentVector.EMPTY),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"line","line",212345235),line_11502,new cljs.core.Keyword(null,"col","col",-1959363084),column_11509,new cljs.core.Keyword(null,"name","name",1843675177),name_11519], null));
});})(seq__11383_11511,chunk__11384_11512,count__11385_11513,i__11386_11514,seq__11378_11504,chunk__11379_11505,count__11380_11506,i__11381_11507,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11387_11515,map__11387_11516__$1,gline_11517,gcol_11518,name_11519,vec__11382_11508,column_11509,column_info_11510,vec__11377_11501,line_11502,columns_11503,seq__11350_11495__$1,temp__4425__auto___11494,inverted))
,cljs.core.sorted_map.call(null)));

var G__11520 = seq__11383_11511;
var G__11521 = chunk__11384_11512;
var G__11522 = count__11385_11513;
var G__11523 = (i__11386_11514 + (1));
seq__11383_11511 = G__11520;
chunk__11384_11512 = G__11521;
count__11385_11513 = G__11522;
i__11386_11514 = G__11523;
continue;
} else {
var temp__4425__auto___11524__$1 = cljs.core.seq.call(null,seq__11383_11511);
if(temp__4425__auto___11524__$1){
var seq__11383_11525__$1 = temp__4425__auto___11524__$1;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11383_11525__$1)){
var c__5471__auto___11526 = cljs.core.chunk_first.call(null,seq__11383_11525__$1);
var G__11527 = cljs.core.chunk_rest.call(null,seq__11383_11525__$1);
var G__11528 = c__5471__auto___11526;
var G__11529 = cljs.core.count.call(null,c__5471__auto___11526);
var G__11530 = (0);
seq__11383_11511 = G__11527;
chunk__11384_11512 = G__11528;
count__11385_11513 = G__11529;
i__11386_11514 = G__11530;
continue;
} else {
var map__11389_11531 = cljs.core.first.call(null,seq__11383_11525__$1);
var map__11389_11532__$1 = ((((!((map__11389_11531 == null)))?((((map__11389_11531.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11389_11531.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11389_11531):map__11389_11531);
var gline_11533 = cljs.core.get.call(null,map__11389_11532__$1,new cljs.core.Keyword(null,"gline","gline",-1086242431));
var gcol_11534 = cljs.core.get.call(null,map__11389_11532__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
var name_11535 = cljs.core.get.call(null,map__11389_11532__$1,new cljs.core.Keyword(null,"name","name",1843675177));
cljs.core.swap_BANG_.call(null,inverted,cljs.core.update_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline_11533], null),cljs.core.fnil.call(null,((function (seq__11383_11511,chunk__11384_11512,count__11385_11513,i__11386_11514,seq__11378_11504,chunk__11379_11505,count__11380_11506,i__11381_11507,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11389_11531,map__11389_11532__$1,gline_11533,gcol_11534,name_11535,seq__11383_11525__$1,temp__4425__auto___11524__$1,vec__11382_11508,column_11509,column_info_11510,vec__11377_11501,line_11502,columns_11503,seq__11350_11495__$1,temp__4425__auto___11494,inverted){
return (function (columns__$1){
return cljs.core.update_in.call(null,columns__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_11509], null),cljs.core.fnil.call(null,cljs.core.conj,cljs.core.PersistentVector.EMPTY),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"line","line",212345235),line_11502,new cljs.core.Keyword(null,"col","col",-1959363084),column_11509,new cljs.core.Keyword(null,"name","name",1843675177),name_11535], null));
});})(seq__11383_11511,chunk__11384_11512,count__11385_11513,i__11386_11514,seq__11378_11504,chunk__11379_11505,count__11380_11506,i__11381_11507,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11389_11531,map__11389_11532__$1,gline_11533,gcol_11534,name_11535,seq__11383_11525__$1,temp__4425__auto___11524__$1,vec__11382_11508,column_11509,column_info_11510,vec__11377_11501,line_11502,columns_11503,seq__11350_11495__$1,temp__4425__auto___11494,inverted))
,cljs.core.sorted_map.call(null)));

var G__11536 = cljs.core.next.call(null,seq__11383_11525__$1);
var G__11537 = null;
var G__11538 = (0);
var G__11539 = (0);
seq__11383_11511 = G__11536;
chunk__11384_11512 = G__11537;
count__11385_11513 = G__11538;
i__11386_11514 = G__11539;
continue;
}
} else {
}
}
break;
}

var G__11540 = seq__11378_11504;
var G__11541 = chunk__11379_11505;
var G__11542 = count__11380_11506;
var G__11543 = (i__11381_11507 + (1));
seq__11378_11504 = G__11540;
chunk__11379_11505 = G__11541;
count__11380_11506 = G__11542;
i__11381_11507 = G__11543;
continue;
} else {
var temp__4425__auto___11544__$1 = cljs.core.seq.call(null,seq__11378_11504);
if(temp__4425__auto___11544__$1){
var seq__11378_11545__$1 = temp__4425__auto___11544__$1;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11378_11545__$1)){
var c__5471__auto___11546 = cljs.core.chunk_first.call(null,seq__11378_11545__$1);
var G__11547 = cljs.core.chunk_rest.call(null,seq__11378_11545__$1);
var G__11548 = c__5471__auto___11546;
var G__11549 = cljs.core.count.call(null,c__5471__auto___11546);
var G__11550 = (0);
seq__11378_11504 = G__11547;
chunk__11379_11505 = G__11548;
count__11380_11506 = G__11549;
i__11381_11507 = G__11550;
continue;
} else {
var vec__11391_11551 = cljs.core.first.call(null,seq__11378_11545__$1);
var column_11552 = cljs.core.nth.call(null,vec__11391_11551,(0),null);
var column_info_11553 = cljs.core.nth.call(null,vec__11391_11551,(1),null);
var seq__11392_11554 = cljs.core.seq.call(null,column_info_11553);
var chunk__11393_11555 = null;
var count__11394_11556 = (0);
var i__11395_11557 = (0);
while(true){
if((i__11395_11557 < count__11394_11556)){
var map__11396_11558 = cljs.core._nth.call(null,chunk__11393_11555,i__11395_11557);
var map__11396_11559__$1 = ((((!((map__11396_11558 == null)))?((((map__11396_11558.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11396_11558.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11396_11558):map__11396_11558);
var gline_11560 = cljs.core.get.call(null,map__11396_11559__$1,new cljs.core.Keyword(null,"gline","gline",-1086242431));
var gcol_11561 = cljs.core.get.call(null,map__11396_11559__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
var name_11562 = cljs.core.get.call(null,map__11396_11559__$1,new cljs.core.Keyword(null,"name","name",1843675177));
cljs.core.swap_BANG_.call(null,inverted,cljs.core.update_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline_11560], null),cljs.core.fnil.call(null,((function (seq__11392_11554,chunk__11393_11555,count__11394_11556,i__11395_11557,seq__11378_11504,chunk__11379_11505,count__11380_11506,i__11381_11507,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11396_11558,map__11396_11559__$1,gline_11560,gcol_11561,name_11562,vec__11391_11551,column_11552,column_info_11553,seq__11378_11545__$1,temp__4425__auto___11544__$1,vec__11377_11501,line_11502,columns_11503,seq__11350_11495__$1,temp__4425__auto___11494,inverted){
return (function (columns__$1){
return cljs.core.update_in.call(null,columns__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_11552], null),cljs.core.fnil.call(null,cljs.core.conj,cljs.core.PersistentVector.EMPTY),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"line","line",212345235),line_11502,new cljs.core.Keyword(null,"col","col",-1959363084),column_11552,new cljs.core.Keyword(null,"name","name",1843675177),name_11562], null));
});})(seq__11392_11554,chunk__11393_11555,count__11394_11556,i__11395_11557,seq__11378_11504,chunk__11379_11505,count__11380_11506,i__11381_11507,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11396_11558,map__11396_11559__$1,gline_11560,gcol_11561,name_11562,vec__11391_11551,column_11552,column_info_11553,seq__11378_11545__$1,temp__4425__auto___11544__$1,vec__11377_11501,line_11502,columns_11503,seq__11350_11495__$1,temp__4425__auto___11494,inverted))
,cljs.core.sorted_map.call(null)));

var G__11563 = seq__11392_11554;
var G__11564 = chunk__11393_11555;
var G__11565 = count__11394_11556;
var G__11566 = (i__11395_11557 + (1));
seq__11392_11554 = G__11563;
chunk__11393_11555 = G__11564;
count__11394_11556 = G__11565;
i__11395_11557 = G__11566;
continue;
} else {
var temp__4425__auto___11567__$2 = cljs.core.seq.call(null,seq__11392_11554);
if(temp__4425__auto___11567__$2){
var seq__11392_11568__$1 = temp__4425__auto___11567__$2;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__11392_11568__$1)){
var c__5471__auto___11569 = cljs.core.chunk_first.call(null,seq__11392_11568__$1);
var G__11570 = cljs.core.chunk_rest.call(null,seq__11392_11568__$1);
var G__11571 = c__5471__auto___11569;
var G__11572 = cljs.core.count.call(null,c__5471__auto___11569);
var G__11573 = (0);
seq__11392_11554 = G__11570;
chunk__11393_11555 = G__11571;
count__11394_11556 = G__11572;
i__11395_11557 = G__11573;
continue;
} else {
var map__11398_11574 = cljs.core.first.call(null,seq__11392_11568__$1);
var map__11398_11575__$1 = ((((!((map__11398_11574 == null)))?((((map__11398_11574.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11398_11574.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11398_11574):map__11398_11574);
var gline_11576 = cljs.core.get.call(null,map__11398_11575__$1,new cljs.core.Keyword(null,"gline","gline",-1086242431));
var gcol_11577 = cljs.core.get.call(null,map__11398_11575__$1,new cljs.core.Keyword(null,"gcol","gcol",309250807));
var name_11578 = cljs.core.get.call(null,map__11398_11575__$1,new cljs.core.Keyword(null,"name","name",1843675177));
cljs.core.swap_BANG_.call(null,inverted,cljs.core.update_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [gline_11576], null),cljs.core.fnil.call(null,((function (seq__11392_11554,chunk__11393_11555,count__11394_11556,i__11395_11557,seq__11378_11504,chunk__11379_11505,count__11380_11506,i__11381_11507,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11398_11574,map__11398_11575__$1,gline_11576,gcol_11577,name_11578,seq__11392_11568__$1,temp__4425__auto___11567__$2,vec__11391_11551,column_11552,column_info_11553,seq__11378_11545__$1,temp__4425__auto___11544__$1,vec__11377_11501,line_11502,columns_11503,seq__11350_11495__$1,temp__4425__auto___11494,inverted){
return (function (columns__$1){
return cljs.core.update_in.call(null,columns__$1,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [column_11552], null),cljs.core.fnil.call(null,cljs.core.conj,cljs.core.PersistentVector.EMPTY),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"line","line",212345235),line_11502,new cljs.core.Keyword(null,"col","col",-1959363084),column_11552,new cljs.core.Keyword(null,"name","name",1843675177),name_11578], null));
});})(seq__11392_11554,chunk__11393_11555,count__11394_11556,i__11395_11557,seq__11378_11504,chunk__11379_11505,count__11380_11506,i__11381_11507,seq__11350_11400,chunk__11351_11401,count__11352_11402,i__11353_11403,map__11398_11574,map__11398_11575__$1,gline_11576,gcol_11577,name_11578,seq__11392_11568__$1,temp__4425__auto___11567__$2,vec__11391_11551,column_11552,column_info_11553,seq__11378_11545__$1,temp__4425__auto___11544__$1,vec__11377_11501,line_11502,columns_11503,seq__11350_11495__$1,temp__4425__auto___11494,inverted))
,cljs.core.sorted_map.call(null)));

var G__11579 = cljs.core.next.call(null,seq__11392_11568__$1);
var G__11580 = null;
var G__11581 = (0);
var G__11582 = (0);
seq__11392_11554 = G__11579;
chunk__11393_11555 = G__11580;
count__11394_11556 = G__11581;
i__11395_11557 = G__11582;
continue;
}
} else {
}
}
break;
}

var G__11583 = cljs.core.next.call(null,seq__11378_11545__$1);
var G__11584 = null;
var G__11585 = (0);
var G__11586 = (0);
seq__11378_11504 = G__11583;
chunk__11379_11505 = G__11584;
count__11380_11506 = G__11585;
i__11381_11507 = G__11586;
continue;
}
} else {
}
}
break;
}

var G__11587 = cljs.core.next.call(null,seq__11350_11495__$1);
var G__11588 = null;
var G__11589 = (0);
var G__11590 = (0);
seq__11350_11400 = G__11587;
chunk__11351_11401 = G__11588;
count__11352_11402 = G__11589;
i__11353_11403 = G__11590;
continue;
}
} else {
}
}
break;
}

return cljs.core.deref.call(null,inverted);
});
