mirror of
https://github.com/status-im/pluto.git
synced 2026-08-31 20:41:12 +00:00
403 lines
19 KiB
JavaScript
403 lines
19 KiB
JavaScript
// Compiled by ClojureScript 1.10.439 {:static-fns true, :optimize-constants true}
|
|
goog.provide('cljs.tools.reader.impl.utils');
|
|
goog.require('cljs.core');
|
|
goog.require('cljs.core.constants');
|
|
goog.require('clojure.string');
|
|
goog.require('goog.string');
|
|
cljs.tools.reader.impl.utils.char$ = (function cljs$tools$reader$impl$utils$char(x){
|
|
if((x == null)){
|
|
return null;
|
|
} else {
|
|
return cljs.core.char$(x);
|
|
}
|
|
});
|
|
cljs.tools.reader.impl.utils.ex_info_QMARK_ = (function cljs$tools$reader$impl$utils$ex_info_QMARK_(ex){
|
|
return (ex instanceof cljs.core.ExceptionInfo);
|
|
});
|
|
|
|
/**
|
|
* @constructor
|
|
* @implements {cljs.core.IRecord}
|
|
* @implements {cljs.core.IKVReduce}
|
|
* @implements {cljs.core.IEquiv}
|
|
* @implements {cljs.core.IHash}
|
|
* @implements {cljs.core.ICollection}
|
|
* @implements {cljs.core.ICounted}
|
|
* @implements {cljs.core.ISeqable}
|
|
* @implements {cljs.core.IMeta}
|
|
* @implements {cljs.core.ICloneable}
|
|
* @implements {cljs.core.IPrintWithWriter}
|
|
* @implements {cljs.core.IIterable}
|
|
* @implements {cljs.core.IWithMeta}
|
|
* @implements {cljs.core.IAssociative}
|
|
* @implements {cljs.core.IMap}
|
|
* @implements {cljs.core.ILookup}
|
|
*/
|
|
cljs.tools.reader.impl.utils.ReaderConditional = (function (splicing_QMARK_,form,__meta,__extmap,__hash){
|
|
this.splicing_QMARK_ = splicing_QMARK_;
|
|
this.form = form;
|
|
this.__meta = __meta;
|
|
this.__extmap = __extmap;
|
|
this.__hash = __hash;
|
|
this.cljs$lang$protocol_mask$partition0$ = 2230716170;
|
|
this.cljs$lang$protocol_mask$partition1$ = 139264;
|
|
});
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$ILookup$_lookup$arity$2 = (function (this__4301__auto__,k__4302__auto__){
|
|
var self__ = this;
|
|
var this__4301__auto____$1 = this;
|
|
return this__4301__auto____$1.cljs$core$ILookup$_lookup$arity$3(null,k__4302__auto__,null);
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$ILookup$_lookup$arity$3 = (function (this__4303__auto__,k6317,else__4304__auto__){
|
|
var self__ = this;
|
|
var this__4303__auto____$1 = this;
|
|
var G__6321 = k6317;
|
|
var G__6321__$1 = (((G__6321 instanceof cljs.core.Keyword))?G__6321.fqn:null);
|
|
switch (G__6321__$1) {
|
|
case "splicing?":
|
|
return self__.splicing_QMARK_;
|
|
|
|
break;
|
|
case "form":
|
|
return self__.form;
|
|
|
|
break;
|
|
default:
|
|
return cljs.core.get.cljs$core$IFn$_invoke$arity$3(self__.__extmap,k6317,else__4304__auto__);
|
|
|
|
}
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IKVReduce$_kv_reduce$arity$3 = (function (this__4320__auto__,f__4321__auto__,init__4322__auto__){
|
|
var self__ = this;
|
|
var this__4320__auto____$1 = this;
|
|
return cljs.core.reduce.cljs$core$IFn$_invoke$arity$3(((function (this__4320__auto____$1){
|
|
return (function (ret__4323__auto__,p__6322){
|
|
var vec__6323 = p__6322;
|
|
var k__4324__auto__ = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__6323,(0),null);
|
|
var v__4325__auto__ = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__6323,(1),null);
|
|
return (f__4321__auto__.cljs$core$IFn$_invoke$arity$3 ? f__4321__auto__.cljs$core$IFn$_invoke$arity$3(ret__4323__auto__,k__4324__auto__,v__4325__auto__) : f__4321__auto__.call(null,ret__4323__auto__,k__4324__auto__,v__4325__auto__));
|
|
});})(this__4320__auto____$1))
|
|
,init__4322__auto__,this__4320__auto____$1);
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IPrintWithWriter$_pr_writer$arity$3 = (function (this__4315__auto__,writer__4316__auto__,opts__4317__auto__){
|
|
var self__ = this;
|
|
var this__4315__auto____$1 = this;
|
|
var pr_pair__4318__auto__ = ((function (this__4315__auto____$1){
|
|
return (function (keyval__4319__auto__){
|
|
return cljs.core.pr_sequential_writer(writer__4316__auto__,cljs.core.pr_writer,""," ","",opts__4317__auto__,keyval__4319__auto__);
|
|
});})(this__4315__auto____$1))
|
|
;
|
|
return cljs.core.pr_sequential_writer(writer__4316__auto__,pr_pair__4318__auto__,"#cljs.tools.reader.impl.utils.ReaderConditional{",", ","}",opts__4317__auto__,cljs.core.concat.cljs$core$IFn$_invoke$arity$2(new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[cljs.core.cst$kw$splicing_QMARK_,self__.splicing_QMARK_],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[cljs.core.cst$kw$form,self__.form],null))], null),self__.__extmap));
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IIterable$_iterator$arity$1 = (function (G__6316){
|
|
var self__ = this;
|
|
var G__6316__$1 = this;
|
|
return (new cljs.core.RecordIter((0),G__6316__$1,2,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.cst$kw$splicing_QMARK_,cljs.core.cst$kw$form], null),(cljs.core.truth_(self__.__extmap)?cljs.core._iterator(self__.__extmap):cljs.core.nil_iter())));
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IMeta$_meta$arity$1 = (function (this__4299__auto__){
|
|
var self__ = this;
|
|
var this__4299__auto____$1 = this;
|
|
return self__.__meta;
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$ICloneable$_clone$arity$1 = (function (this__4296__auto__){
|
|
var self__ = this;
|
|
var this__4296__auto____$1 = this;
|
|
return (new cljs.tools.reader.impl.utils.ReaderConditional(self__.splicing_QMARK_,self__.form,self__.__meta,self__.__extmap,self__.__hash));
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$ICounted$_count$arity$1 = (function (this__4305__auto__){
|
|
var self__ = this;
|
|
var this__4305__auto____$1 = this;
|
|
return (2 + cljs.core.count(self__.__extmap));
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IHash$_hash$arity$1 = (function (this__4297__auto__){
|
|
var self__ = this;
|
|
var this__4297__auto____$1 = this;
|
|
var h__4159__auto__ = self__.__hash;
|
|
if((!((h__4159__auto__ == null)))){
|
|
return h__4159__auto__;
|
|
} else {
|
|
var h__4159__auto____$1 = (function (){var fexpr__6326 = ((function (h__4159__auto__,this__4297__auto____$1){
|
|
return (function (coll__4298__auto__){
|
|
return (-209062840 ^ cljs.core.hash_unordered_coll(coll__4298__auto__));
|
|
});})(h__4159__auto__,this__4297__auto____$1))
|
|
;
|
|
return fexpr__6326(this__4297__auto____$1);
|
|
})();
|
|
self__.__hash = h__4159__auto____$1;
|
|
|
|
return h__4159__auto____$1;
|
|
}
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IEquiv$_equiv$arity$2 = (function (this6318,other6319){
|
|
var self__ = this;
|
|
var this6318__$1 = this;
|
|
return (((!((other6319 == null)))) && ((this6318__$1.constructor === other6319.constructor)) && (cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this6318__$1.splicing_QMARK_,other6319.splicing_QMARK_)) && (cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this6318__$1.form,other6319.form)) && (cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this6318__$1.__extmap,other6319.__extmap)));
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IMap$_dissoc$arity$2 = (function (this__4310__auto__,k__4311__auto__){
|
|
var self__ = this;
|
|
var this__4310__auto____$1 = this;
|
|
if(cljs.core.contains_QMARK_(new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 2, [cljs.core.cst$kw$splicing_QMARK_,null,cljs.core.cst$kw$form,null], null), null),k__4311__auto__)){
|
|
return cljs.core.dissoc.cljs$core$IFn$_invoke$arity$2(cljs.core._with_meta(cljs.core.into.cljs$core$IFn$_invoke$arity$2(cljs.core.PersistentArrayMap.EMPTY,this__4310__auto____$1),self__.__meta),k__4311__auto__);
|
|
} else {
|
|
return (new cljs.tools.reader.impl.utils.ReaderConditional(self__.splicing_QMARK_,self__.form,self__.__meta,cljs.core.not_empty(cljs.core.dissoc.cljs$core$IFn$_invoke$arity$2(self__.__extmap,k__4311__auto__)),null));
|
|
}
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IAssociative$_assoc$arity$3 = (function (this__4308__auto__,k__4309__auto__,G__6316){
|
|
var self__ = this;
|
|
var this__4308__auto____$1 = this;
|
|
var pred__6327 = cljs.core.keyword_identical_QMARK_;
|
|
var expr__6328 = k__4309__auto__;
|
|
if(cljs.core.truth_((function (){var G__6330 = cljs.core.cst$kw$splicing_QMARK_;
|
|
var G__6331 = expr__6328;
|
|
return (pred__6327.cljs$core$IFn$_invoke$arity$2 ? pred__6327.cljs$core$IFn$_invoke$arity$2(G__6330,G__6331) : pred__6327.call(null,G__6330,G__6331));
|
|
})())){
|
|
return (new cljs.tools.reader.impl.utils.ReaderConditional(G__6316,self__.form,self__.__meta,self__.__extmap,null));
|
|
} else {
|
|
if(cljs.core.truth_((function (){var G__6332 = cljs.core.cst$kw$form;
|
|
var G__6333 = expr__6328;
|
|
return (pred__6327.cljs$core$IFn$_invoke$arity$2 ? pred__6327.cljs$core$IFn$_invoke$arity$2(G__6332,G__6333) : pred__6327.call(null,G__6332,G__6333));
|
|
})())){
|
|
return (new cljs.tools.reader.impl.utils.ReaderConditional(self__.splicing_QMARK_,G__6316,self__.__meta,self__.__extmap,null));
|
|
} else {
|
|
return (new cljs.tools.reader.impl.utils.ReaderConditional(self__.splicing_QMARK_,self__.form,self__.__meta,cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(self__.__extmap,k__4309__auto__,G__6316),null));
|
|
}
|
|
}
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$ISeqable$_seq$arity$1 = (function (this__4313__auto__){
|
|
var self__ = this;
|
|
var this__4313__auto____$1 = this;
|
|
return cljs.core.seq(cljs.core.concat.cljs$core$IFn$_invoke$arity$2(new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(new cljs.core.MapEntry(cljs.core.cst$kw$splicing_QMARK_,self__.splicing_QMARK_,null)),(new cljs.core.MapEntry(cljs.core.cst$kw$form,self__.form,null))], null),self__.__extmap));
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (this__4300__auto__,G__6316){
|
|
var self__ = this;
|
|
var this__4300__auto____$1 = this;
|
|
return (new cljs.tools.reader.impl.utils.ReaderConditional(self__.splicing_QMARK_,self__.form,G__6316,self__.__extmap,self__.__hash));
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$ICollection$_conj$arity$2 = (function (this__4306__auto__,entry__4307__auto__){
|
|
var self__ = this;
|
|
var this__4306__auto____$1 = this;
|
|
if(cljs.core.vector_QMARK_(entry__4307__auto__)){
|
|
return this__4306__auto____$1.cljs$core$IAssociative$_assoc$arity$3(null,cljs.core._nth.cljs$core$IFn$_invoke$arity$2(entry__4307__auto__,(0)),cljs.core._nth.cljs$core$IFn$_invoke$arity$2(entry__4307__auto__,(1)));
|
|
} else {
|
|
return cljs.core.reduce.cljs$core$IFn$_invoke$arity$3(cljs.core._conj,this__4306__auto____$1,entry__4307__auto__);
|
|
}
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.getBasis = (function (){
|
|
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.cst$sym$splicing_QMARK_,cljs.core.cst$sym$form], null);
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.cljs$lang$type = true;
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.cljs$lang$ctorPrSeq = (function (this__4344__auto__){
|
|
return (new cljs.core.List(null,"cljs.tools.reader.impl.utils/ReaderConditional",null,(1),null));
|
|
});
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.cljs$lang$ctorPrWriter = (function (this__4344__auto__,writer__4345__auto__){
|
|
return cljs.core._write(writer__4345__auto__,"cljs.tools.reader.impl.utils/ReaderConditional");
|
|
});
|
|
|
|
/**
|
|
* Positional factory function for cljs.tools.reader.impl.utils/ReaderConditional.
|
|
*/
|
|
cljs.tools.reader.impl.utils.__GT_ReaderConditional = (function cljs$tools$reader$impl$utils$__GT_ReaderConditional(splicing_QMARK_,form){
|
|
return (new cljs.tools.reader.impl.utils.ReaderConditional(splicing_QMARK_,form,null,null,null));
|
|
});
|
|
|
|
/**
|
|
* Factory function for cljs.tools.reader.impl.utils/ReaderConditional, taking a map of keywords to field values.
|
|
*/
|
|
cljs.tools.reader.impl.utils.map__GT_ReaderConditional = (function cljs$tools$reader$impl$utils$map__GT_ReaderConditional(G__6320){
|
|
var extmap__4340__auto__ = (function (){var G__6334 = cljs.core.dissoc.cljs$core$IFn$_invoke$arity$variadic(G__6320,cljs.core.cst$kw$splicing_QMARK_,cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([cljs.core.cst$kw$form], 0));
|
|
if(cljs.core.record_QMARK_(G__6320)){
|
|
return cljs.core.into.cljs$core$IFn$_invoke$arity$2(cljs.core.PersistentArrayMap.EMPTY,G__6334);
|
|
} else {
|
|
return G__6334;
|
|
}
|
|
})();
|
|
return (new cljs.tools.reader.impl.utils.ReaderConditional(cljs.core.cst$kw$splicing_QMARK_.cljs$core$IFn$_invoke$arity$1(G__6320),cljs.core.cst$kw$form.cljs$core$IFn$_invoke$arity$1(G__6320),null,cljs.core.not_empty(extmap__4340__auto__),null));
|
|
});
|
|
|
|
/**
|
|
* Return true if the value is the data representation of a reader conditional
|
|
*/
|
|
cljs.tools.reader.impl.utils.reader_conditional_QMARK_ = (function cljs$tools$reader$impl$utils$reader_conditional_QMARK_(value){
|
|
return (value instanceof cljs.tools.reader.impl.utils.ReaderConditional);
|
|
});
|
|
/**
|
|
* Construct a data representation of a reader conditional.
|
|
* If true, splicing? indicates read-cond-splicing.
|
|
*/
|
|
cljs.tools.reader.impl.utils.reader_conditional = (function cljs$tools$reader$impl$utils$reader_conditional(form,splicing_QMARK_){
|
|
return (new cljs.tools.reader.impl.utils.ReaderConditional(splicing_QMARK_,form,null,null,null));
|
|
});
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IPrintWithWriter$ = cljs.core.PROTOCOL_SENTINEL;
|
|
|
|
cljs.tools.reader.impl.utils.ReaderConditional.prototype.cljs$core$IPrintWithWriter$_pr_writer$arity$3 = (function (coll,writer,opts){
|
|
var coll__$1 = this;
|
|
cljs.core._write(writer,["#?",cljs.core.str.cljs$core$IFn$_invoke$arity$1((cljs.core.truth_(cljs.core.cst$kw$splicing_QMARK_.cljs$core$IFn$_invoke$arity$1(coll__$1))?"@":null))].join(''));
|
|
|
|
return cljs.core.pr_writer(cljs.core.cst$kw$form.cljs$core$IFn$_invoke$arity$1(coll__$1),writer,opts);
|
|
});
|
|
cljs.tools.reader.impl.utils.ws_rx = /[\s]/;
|
|
/**
|
|
* Checks whether a given character is whitespace
|
|
*/
|
|
cljs.tools.reader.impl.utils.whitespace_QMARK_ = (function cljs$tools$reader$impl$utils$whitespace_QMARK_(ch){
|
|
if((ch == null)){
|
|
return null;
|
|
} else {
|
|
if((ch === ",")){
|
|
return true;
|
|
} else {
|
|
return cljs.tools.reader.impl.utils.ws_rx.test(ch);
|
|
}
|
|
}
|
|
});
|
|
/**
|
|
* Checks whether a given character is numeric
|
|
*/
|
|
cljs.tools.reader.impl.utils.numeric_QMARK_ = (function cljs$tools$reader$impl$utils$numeric_QMARK_(ch){
|
|
if((ch == null)){
|
|
return null;
|
|
} else {
|
|
return goog.string.isNumeric(ch);
|
|
}
|
|
});
|
|
/**
|
|
* Checks whether the character is a newline
|
|
*/
|
|
cljs.tools.reader.impl.utils.newline_QMARK_ = (function cljs$tools$reader$impl$utils$newline_QMARK_(c){
|
|
return ((("\n" === c)) || (("\n" === c)) || ((c == null)));
|
|
});
|
|
/**
|
|
* Resolves syntactical sugar in metadata
|
|
*/
|
|
cljs.tools.reader.impl.utils.desugar_meta = (function cljs$tools$reader$impl$utils$desugar_meta(f){
|
|
if((f instanceof cljs.core.Keyword)){
|
|
return cljs.core.PersistentArrayMap.createAsIfByAssoc([f,true]);
|
|
} else {
|
|
if((f instanceof cljs.core.Symbol)){
|
|
return new cljs.core.PersistentArrayMap(null, 1, [cljs.core.cst$kw$tag,f], null);
|
|
} else {
|
|
if(typeof f === 'string'){
|
|
return new cljs.core.PersistentArrayMap(null, 1, [cljs.core.cst$kw$tag,f], null);
|
|
} else {
|
|
return f;
|
|
|
|
}
|
|
}
|
|
}
|
|
});
|
|
cljs.tools.reader.impl.utils.last_id = cljs.core.atom.cljs$core$IFn$_invoke$arity$1((0));
|
|
cljs.tools.reader.impl.utils.next_id = (function cljs$tools$reader$impl$utils$next_id(){
|
|
return cljs.core.swap_BANG_.cljs$core$IFn$_invoke$arity$2(cljs.tools.reader.impl.utils.last_id,cljs.core.inc);
|
|
});
|
|
cljs.tools.reader.impl.utils.namespace_keys = (function cljs$tools$reader$impl$utils$namespace_keys(ns,keys){
|
|
var iter__4434__auto__ = (function cljs$tools$reader$impl$utils$namespace_keys_$_iter__6336(s__6337){
|
|
return (new cljs.core.LazySeq(null,(function (){
|
|
var s__6337__$1 = s__6337;
|
|
while(true){
|
|
var temp__5720__auto__ = cljs.core.seq(s__6337__$1);
|
|
if(temp__5720__auto__){
|
|
var s__6337__$2 = temp__5720__auto__;
|
|
if(cljs.core.chunked_seq_QMARK_(s__6337__$2)){
|
|
var c__4432__auto__ = cljs.core.chunk_first(s__6337__$2);
|
|
var size__4433__auto__ = cljs.core.count(c__4432__auto__);
|
|
var b__6339 = cljs.core.chunk_buffer(size__4433__auto__);
|
|
if((function (){var i__6338 = (0);
|
|
while(true){
|
|
if((i__6338 < size__4433__auto__)){
|
|
var key = cljs.core._nth.cljs$core$IFn$_invoke$arity$2(c__4432__auto__,i__6338);
|
|
cljs.core.chunk_append(b__6339,(((((key instanceof cljs.core.Symbol)) || ((key instanceof cljs.core.Keyword))))?(function (){var vec__6340 = (function (){var fexpr__6343 = cljs.core.juxt.cljs$core$IFn$_invoke$arity$2(cljs.core.namespace,cljs.core.name);
|
|
return (fexpr__6343.cljs$core$IFn$_invoke$arity$1 ? fexpr__6343.cljs$core$IFn$_invoke$arity$1(key) : fexpr__6343.call(null,key));
|
|
})();
|
|
var key_ns = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__6340,(0),null);
|
|
var key_name = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__6340,(1),null);
|
|
var __GT_key = (((key instanceof cljs.core.Symbol))?cljs.core.symbol:cljs.core.keyword);
|
|
if((key_ns == null)){
|
|
return (__GT_key.cljs$core$IFn$_invoke$arity$2 ? __GT_key.cljs$core$IFn$_invoke$arity$2(ns,key_name) : __GT_key.call(null,ns,key_name));
|
|
} else {
|
|
if(cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2("_",key_ns)){
|
|
return (__GT_key.cljs$core$IFn$_invoke$arity$1 ? __GT_key.cljs$core$IFn$_invoke$arity$1(key_name) : __GT_key.call(null,key_name));
|
|
} else {
|
|
return key;
|
|
|
|
}
|
|
}
|
|
})():key));
|
|
|
|
var G__6348 = (i__6338 + (1));
|
|
i__6338 = G__6348;
|
|
continue;
|
|
} else {
|
|
return true;
|
|
}
|
|
break;
|
|
}
|
|
})()){
|
|
return cljs.core.chunk_cons(cljs.core.chunk(b__6339),cljs$tools$reader$impl$utils$namespace_keys_$_iter__6336(cljs.core.chunk_rest(s__6337__$2)));
|
|
} else {
|
|
return cljs.core.chunk_cons(cljs.core.chunk(b__6339),null);
|
|
}
|
|
} else {
|
|
var key = cljs.core.first(s__6337__$2);
|
|
return cljs.core.cons((((((key instanceof cljs.core.Symbol)) || ((key instanceof cljs.core.Keyword))))?(function (){var vec__6344 = (function (){var fexpr__6347 = cljs.core.juxt.cljs$core$IFn$_invoke$arity$2(cljs.core.namespace,cljs.core.name);
|
|
return (fexpr__6347.cljs$core$IFn$_invoke$arity$1 ? fexpr__6347.cljs$core$IFn$_invoke$arity$1(key) : fexpr__6347.call(null,key));
|
|
})();
|
|
var key_ns = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__6344,(0),null);
|
|
var key_name = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__6344,(1),null);
|
|
var __GT_key = (((key instanceof cljs.core.Symbol))?cljs.core.symbol:cljs.core.keyword);
|
|
if((key_ns == null)){
|
|
return (__GT_key.cljs$core$IFn$_invoke$arity$2 ? __GT_key.cljs$core$IFn$_invoke$arity$2(ns,key_name) : __GT_key.call(null,ns,key_name));
|
|
} else {
|
|
if(cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2("_",key_ns)){
|
|
return (__GT_key.cljs$core$IFn$_invoke$arity$1 ? __GT_key.cljs$core$IFn$_invoke$arity$1(key_name) : __GT_key.call(null,key_name));
|
|
} else {
|
|
return key;
|
|
|
|
}
|
|
}
|
|
})():key),cljs$tools$reader$impl$utils$namespace_keys_$_iter__6336(cljs.core.rest(s__6337__$2)));
|
|
}
|
|
} else {
|
|
return null;
|
|
}
|
|
break;
|
|
}
|
|
}),null,null));
|
|
});
|
|
return iter__4434__auto__(keys);
|
|
});
|
|
cljs.tools.reader.impl.utils.second_SINGLEQUOTE_ = (function cljs$tools$reader$impl$utils$second_SINGLEQUOTE_(p__6349){
|
|
var vec__6350 = p__6349;
|
|
var a = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__6350,(0),null);
|
|
var b = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__6350,(1),null);
|
|
if(cljs.core.truth_(a)){
|
|
return null;
|
|
} else {
|
|
return b;
|
|
}
|
|
});
|
|
cljs.tools.reader.impl.utils.char_code = (function cljs$tools$reader$impl$utils$char_code(ch,base){
|
|
var code = parseInt(ch,base);
|
|
if(cljs.core.truth_(isNaN(code))){
|
|
return (-1);
|
|
} else {
|
|
return code;
|
|
}
|
|
});
|