@logseq/nbb-logseq
Version:
Nbb with additional libraries like datascript included
64 lines • 29.2 kB
JavaScript
import { $APP, shadow$provide, $jscomp } from "./nbb_core.js";
const shadow_esm_import = function(x) { return import(x) };
var gT=function(a,b,c){if(null!=a&&null!=a.Kf)a=a.Kf(a,b,c);else{var d=gT[$APP.fa(null==a?null:a)];if(null!=d)a=d.j?d.j(a,b,c):d.call(null,a,b,c);else if(d=gT._,null!=d)a=d.j?d.j(a,b,c):d.call(null,a,b,c);else throw $APP.Db("ITransientVector.-assoc-n!",a);}return a},hT=function(a,b,c){var d=$APP.me(a);if(c>=d)return-1;!(0<c)&&0>c&&(c+=d,c=0>c?0:c);for(;;)if(c<d){if($APP.A.g($APP.B.g(a,c),b))return c;c+=1}else return-1},iT=function(a,b,c){var d=$APP.me(a);if(0===d)return-1;0<c?(--d,c=d<c?d:c):c=0>
c?d+c:c;for(;;)if(0<=c){if($APP.A.g($APP.B.g(a,c),b))return c;--c}else return-1},jT=function(a,b){if($APP.Ke(b))if($APP.ke(a)&&$APP.ke(b)&&$APP.me(a)!==$APP.me(b))a=!1;else a:for(a=$APP.u(a),b=$APP.u(b);;){if(null==a){a=null==b;break a}if(null!=b&&$APP.A.g($APP.v(a),$APP.v(b)))a=$APP.y(a),b=$APP.y(b);else{a=!1;break a}}else a=null;return $APP.Ya(a)},kT=function(a,b){var c=a.aa(null);if(0===c)return b.C?b.C():b.call(null);for(var d=a.ea(null,0),e=1;;)if(e<c){var f=a.ea(null,e);d=b.g?b.g(d,f):b.call(null,
d,f);if($APP.be(d))return $APP.q(d);e+=1}else return d},lT=function(a,b,c){var d=a.aa(null),e=c;for(c=0;;)if(c<d){var f=a.ea(null,c);e=b.g?b.g(e,f):b.call(null,e,f);if($APP.be(e))return $APP.q(e);c+=1}else return e},mT=function(a){return"number"===typeof a||"string"===typeof a||$APP.Ue(a)||null==a},pT=function(a,b,c,d){var e=null!=d?d.h?d.h(a):d.call(null,a):null;return null==e?mT(a)?a:$APP.xb(a)?new nT(null,a,b,c,d,!0,null,null,null):$APP.rb(a)?new oT(null,b,c,d,a,null):a:e},qT=function(a){return mT(a)?
a:a instanceof nT?a.Da:a instanceof oT?a.H:a},ZDa=function(a,b,c,d,e){var f=$APP.Ih($APP.Yc(YDa));$APP.Ga(a,function(g,m){return f.Wc(null,$APP.Li.j(f.Qa(null),b.h?b.h(m):b.call(null,m),$APP.l(e)?pT(g,b,c,d):g))});return $APP.$c($APP.q(f))},sT=function(a){a:for(var b=a.length,c=$APP.Gb(a),d=0;;)if(d<b){var e=d;var f=a[d];f=rT.h?rT.h(f):rT.call(null,f);c[e]=f;d+=1}else break a;return $APP.pf(c)},tT=function(a,b,c,d,e,f,g){g=f[g];f=b.h?b.h(g):b.call(null,g);a=a[g];b=e?pT(a,b,c,d):a;return new $APP.df(f,
b,null)},$Da=function(a,b){return a instanceof $APP.G&&b===$APP.fk||"string"===typeof a&&b===$APP.uf},uT=function(a,b){return mT(a)||!($APP.Me(a)&&!(a instanceof nT)||$APP.Oe(a)&&!(a instanceof oT))&&$APP.vb($APP.l(b)?$APP.xb(a)||$APP.rb(a):b)},aEa=function(a,b,c,d,e,f){this.Tb=!0;this.Da=a;this.sa=b;this.ca=c;this.transform=d;this.ya=e;this.qd=f;this.I=259;this.M=56},vT=function(a,b,c,d,e,f,g){this.Da=a;this.sa=b;this.ca=c;this.transform=d;this.ya=e;this.H=f;this.T=0;this.O=g},wT=function(a,b,c,
d,e,f,g,m){this.Da=a;this.sa=b;this.ca=c;this.transform=d;this.ya=e;this.H=f;this.T=g;this.K=m;this.I=2179858686;this.M=8192},nT=function(a,b,c,d,e,f,g,m,r){this.K=a;this.Da=b;this.sa=c;this.ca=d;this.transform=e;this.ya=f;this.zd=g;this.qd=m;this.D=r;this.I=2164131599;this.M=139268},bEa=function(a,b,c,d){this.Tb=!0;this.H=a;this.sa=b;this.ca=c;this.transform=d;this.M=88;this.I=275},xT=function(a,b,c,d,e){this.sa=a;this.ca=b;this.transform=c;this.H=d;this.T=0;this.O=e},yT=function(a,b,c,d,e,f){this.sa=
a;this.ca=b;this.transform=c;this.H=d;this.T=e;this.K=f;this.I=2179858686;this.M=8192},oT=function(a,b,c,d,e,f){this.K=a;this.sa=b;this.ca=c;this.transform=d;this.H=e;this.D=f;this.I=2315150111;this.M=141316},zT=function(a){return a instanceof $APP.G?a.S:null},AT=function(a){return a instanceof nT},BT=function(a){return a.Da},cEa=new $APP.t("cljs-bean.core","-\x3ejs","cljs-bean.core/-\x3ejs",272545438,null),CT=new $APP.G(null,"key-\x3eprop","key-\x3eprop",-1028452531),dEa=new $APP.t(null,"bean?",
"bean?",2057456095,null),eEa=new $APP.G(null,"recursive","recursive",718885872),fEa=new $APP.G(null,"prop-\x3ekey","prop-\x3ekey",-1297715246),gEa=new $APP.t("cljs-bean.core","bean?","cljs-bean.core/bean?",-413971875,null),hEa=new $APP.t("cljs-bean.core","bean","cljs-bean.core/bean",444589162,null),iEa=new $APP.t(null,"bean","bean",-1620239896,null),jEa=new $APP.G(null,"transform","transform",1381301764),kEa=new $APP.t(null,"-\x3eclj","-\x3eclj",-1549422014,null),lEa=new $APP.t("cljs-bean.core","object",
"cljs-bean.core/object",1153194626,null),mEa=new $APP.t("cljs-bean.core","-\x3eclj","cljs-bean.core/-\x3eclj",649375936,null),nEa=new $APP.t(null,"-\x3ejs","-\x3ejs",-1825590244,null);var DT={},YDa=$APP.ah;$APP.h=aEa.prototype;$APP.h.fa=function(a,b){if(this.Tb)return a=this.Da[this.ca.h?this.ca.h(b):this.ca.call(null,b)],this.ya?pT(a,this.sa,this.ca,this.transform):a;throw Error("lookup after persistent!");};$APP.h.N=function(a,b,c){if(this.Tb)return a=$APP.Ma(this.Da,this.ca.h?this.ca.h(b):this.ca.call(null,b),c),this.ya&&a!==c?pT(a,this.sa,this.ca,this.transform):a;throw Error("lookup after persistent!");};
$APP.h.aa=function(){return null==this.qd?this.qd=$APP.me($APP.Ha(this.Da)):this.qd};$APP.h.Td=function(a,b){a:if($APP.l(this.Tb))if($APP.ii(b))a=this.oe(null,$APP.hc(b),$APP.ic(b));else if($APP.Oe(b))a=this.oe(null,b.h?b.h(0):b.call(null,0),b.h?b.h(1):b.call(null,1));else for(a=$APP.u(b),b=this;;){var c=$APP.v(a);if($APP.l(c))a=$APP.y(a),b=$APP.ad(b,$APP.hc(c),$APP.ic(c));else{a=b;break a}}else throw Error("conj! after persistent!");return a};
$APP.h.Ae=function(){if(this.Tb)return this.Tb=!1,new nT(null,this.Da,this.sa,this.ca,this.transform,this.ya,null,this.qd,null);throw Error("persistent! called twice");};$APP.h.oe=function(a,b,c){if(this.Tb){if(!$Da(b,this.sa)||!uT(c,this.ya))return $APP.ad($APP.Yc(ZDa(this.Da,this.sa,this.ca,this.transform,this.ya)),b,c);this.Da[this.ca.h?this.ca.h(b):this.ca.call(null,b)]=this.ya?qT(c):c;this.qd=null;return this}throw Error("assoc! after persistent!");};
$APP.h.xg=function(a,b){if(this.Tb)return delete this.Da[this.ca.h?this.ca.h(b):this.ca.call(null,b)],this.qd=null,this;throw Error("dissoc! after persistent!");};$APP.h.call=function(a){switch(arguments.length-1){case 1:return this.h(arguments[1]);case 2:return this.g(arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.p.h(arguments.length-1)].join(""));}};$APP.h.apply=function(a,b){return this.call.apply(this,[this].concat($APP.Gb(b)))};
$APP.h.h=function(a){if(this.Tb)return a=this.Da[this.ca.h?this.ca.h(a):this.ca.call(null,a)],this.ya?pT(a,this.sa,this.ca,this.transform):a;throw Error("lookup after persistent!");};$APP.h.g=function(a,b){if(this.Tb)return a=$APP.Ma(this.Da,this.ca.h?this.ca.h(a):this.ca.call(null,a),b),this.ya&&a!==b?pT(a,this.sa,this.ca,this.transform):a;throw Error("lookup after persistent!");};vT.prototype.hasNext=function(){return this.T<this.O};
vT.prototype.next=function(){var a=tT(this.Da,this.sa,this.ca,this.transform,this.ya,this.H,this.T);this.T+=1;return a};$APP.h=wT.prototype;$APP.h.toString=function(){return $APP.ud(this)};$APP.h.equiv=function(a){return this.R(null,a)};$APP.h.indexOf=function(){var a=null;a=function(b,c){switch(arguments.length){case 1:return hT(this,b,0);case 2:return hT(this,b,c)}throw Error("Invalid arity: "+arguments.length);};a.h=function(b){return hT(this,b,0)};a.g=function(b,c){return hT(this,b,c)};return a}();
$APP.h.lastIndexOf=function(){function a(c){return iT(this,c,$APP.me(this))}var b=null;b=function(c,d){switch(arguments.length){case 1:return a.call(this,c);case 2:return iT(this,c,d)}throw Error("Invalid arity: "+arguments.length);};b.h=a;b.g=function(c,d){return iT(this,c,d)};return b}();$APP.h.ea=function(a,b){a=b+this.T;if(0<=a&&a<this.H.length)return tT(this.Da,this.sa,this.ca,this.transform,this.ya,this.H,a);throw Error("Index out of bounds");};
$APP.h.Ua=function(a,b,c){a=b+this.T;return 0<=a&&a<this.H.length?tT(this.Da,this.sa,this.ca,this.transform,this.ya,this.H,a):c};$APP.h.V=function(a,b,c){return $APP.ak(b,$APP.dk,"("," ",")",c,this)};$APP.h.W=function(){return this.K};$APP.h.ba=function(){return new wT(this.Da,this.sa,this.ca,this.transform,this.ya,this.H,this.T,this.K)};$APP.h.Na=function(){return this.T+1<this.H.length?new wT(this.Da,this.sa,this.ca,this.transform,this.ya,this.H,this.T+1,null):null};
$APP.h.aa=function(){var a=this.H.length-this.T;return 0>a?0:a};$APP.h.Y=function(){return $APP.Vd(this)};$APP.h.R=function(a,b){return jT(this,b)};$APP.h.Ha=function(){return $APP.Qd};$APP.h.Sa=function(a,b){return kT(this,b)};$APP.h.Oa=function(a,b,c){return lT(this,b,c)};$APP.h.Ta=function(){return tT(this.Da,this.sa,this.ca,this.transform,this.ya,this.H,this.T)};$APP.h.nb=function(){return this.T+1<this.H.length?new wT(this.Da,this.sa,this.ca,this.transform,this.ya,this.H,this.T+1,null):$APP.Qd};
$APP.h.Z=function(){return this};$APP.h.X=function(a,b){return b===this.K?this:new wT(this.Da,this.sa,this.ca,this.transform,this.ya,this.H,this.T,b)};$APP.h.da=function(a,b){return $APP.Bg(b,this)};$APP.h=nT.prototype;$APP.h.le=$APP.Cd;$APP.h.Sd=function(a,b){a=$APP.Ma(this.Da,this.ca.h?this.ca.h(b):this.ca.call(null,b),DT);return a===DT?null:new $APP.df(b,this.ya?pT(a,this.sa,this.ca,this.transform):a,null)};$APP.h.toString=function(){return $APP.ud(this)};
$APP.h.equiv=function(a){return this.R(null,a)};$APP.h.keys=function(){return $APP.Td($APP.uj(this))};$APP.h.entries=function(){return $APP.Ci($APP.u(this))};$APP.h.values=function(){return $APP.Td($APP.wj(this))};$APP.h.has=function(a){return $APP.cf(this,a)};$APP.h.get=function(a,b){return this.N(null,a,b)};
$APP.h.forEach=function(a){for(var b=$APP.u(this),c=null,d=0,e=0;;)if(e<d){var f=c.ea(null,e),g=$APP.B.j(f,0,null);f=$APP.B.j(f,1,null);a.g?a.g(f,g):a.call(null,f,g);e+=1}else if(b=$APP.u(b))$APP.Pe(b)?(c=$APP.hd(b),b=$APP.id(b),g=c,d=$APP.me(c),c=g):(c=$APP.v(b),g=$APP.B.j(c,0,null),f=$APP.B.j(c,1,null),a.g?a.g(f,g):a.call(null,f,g),b=$APP.y(b),c=null,d=0),e=0;else return null};
$APP.h.fa=function(a,b){a=this.Da[this.ca.h?this.ca.h(b):this.ca.call(null,b)];return this.ya?pT(a,this.sa,this.ca,this.transform):a};$APP.h.N=function(a,b,c){a=$APP.Ma(this.Da,this.ca.h?this.ca.h(b):this.ca.call(null,b),c);return this.ya&&a!==c?pT(a,this.sa,this.ca,this.transform):a};
$APP.h.pa=function(a,b,c){var d=this;try{var e=$APP.Ih(c);$APP.Ga(d.Da,function(f,g){var m=e.Wc;var r=e.Qa(null);g=d.sa.h?d.sa.h(g):d.sa.call(null,g);f=d.ya?pT(f,d.sa,d.ca,d.transform):f;r=b.j?b.j(r,g,f):b.call(null,r,g,f);m=m.call(e,null,r);if($APP.be(m))throw m;return null});return $APP.q(e)}catch(f){a=f;if($APP.be(a))return $APP.q(a);throw a;}};$APP.h.V=function(a,b,c){return $APP.kk(this,$APP.dk,b,c)};
$APP.h.ha=function(){null==this.zd&&(this.zd=$APP.Ha(this.Da));return new vT(this.Da,this.sa,this.ca,this.transform,this.ya,this.zd,this.aa(null))};$APP.h.W=function(){return this.K};$APP.h.ba=function(){return new nT(this.K,this.Da,this.sa,this.ca,this.transform,this.ya,this.zd,this.qd,this.D)};$APP.h.aa=function(){return null==this.qd?(null==this.zd&&(this.zd=$APP.Ha(this.Da)),this.qd=this.zd.length):this.qd};$APP.h.Y=function(){var a=this.D;return null!=a?a:this.D=a=$APP.Wd(this)};
$APP.h.R=function(a,b){return $APP.Ai(this,b)};$APP.h.ke=function(){return new aEa($APP.Na(this.Da),this.sa,this.ca,this.transform,this.ya,this.qd)};$APP.h.Ha=function(){return new nT(this.K,{},this.sa,this.ca,this.transform,this.ya,[],0,null)};$APP.h.Sa=function(a,b){return $APP.tv(this.Z(null),b)};$APP.h.Oa=function(a,b,c){return this.pa(null,function(d,e,f){e=new $APP.df(e,f,null);return b.g?b.g(d,e):b.call(null,d,e)},c)};
$APP.h.ta=function(a,b){a=this.K;var c=$APP.Na(this.Da);delete c[this.ca.h?this.ca.h(b):this.ca.call(null,b)];return new nT(a,c,this.sa,this.ca,this.transform,this.ya,null,null,null)};$APP.h.U=function(a,b,c){if($Da(b,this.sa)&&uT(c,this.ya)){a=this.K;var d=$APP.Na(this.Da);d[this.ca.h?this.ca.h(b):this.ca.call(null,b)]=this.ya?qT(c):c;b=new nT(a,d,this.sa,this.ca,this.transform,this.ya,null,null,null)}else b=$APP.cc($APP.Ce(ZDa(this.Da,this.sa,this.ca,this.transform,this.ya),this.K),b,c);return b};
$APP.h.ja=function(a,b){return this.N(null,b,DT)!==DT};$APP.h.Z=function(){null==this.zd&&(this.zd=$APP.Ha(this.Da));return 0<this.zd.length?new wT(this.Da,this.sa,this.ca,this.transform,this.ya,this.zd,0,null):null};$APP.h.X=function(a,b){return b===this.K?this:new nT(b,this.Da,this.sa,this.ca,this.transform,this.ya,this.zd,this.qd,this.D)};
$APP.h.da=function(a,b){a:if($APP.Oe(b))a=this.U(null,$APP.ze(b,0),$APP.ze(b,1));else for(a=this,b=$APP.u(b);;){if(null==b)break a;var c=$APP.v(b);if($APP.Oe(c))a=$APP.cc(a,$APP.ze(c,0),$APP.ze(c,1)),b=$APP.y(b);else throw Error("conj on a map takes map entries or seqables of map entries");}return a};
$APP.h.call=function(a){switch(arguments.length-1){case 1:return this.h(arguments[1]);case 2:return this.g(arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.p.h(arguments.length-1)].join(""));}};$APP.h.apply=function(a,b){return this.call.apply(this,[this].concat($APP.Gb(b)))};$APP.h.h=function(a){a=this.Da[this.ca.h?this.ca.h(a):this.ca.call(null,a)];return this.ya?pT(a,this.sa,this.ca,this.transform):a};
$APP.h.g=function(a,b){a=$APP.Ma(this.Da,this.ca.h?this.ca.h(a):this.ca.call(null,a),b);return this.ya&&a!==b?pT(a,this.sa,this.ca,this.transform):a};$APP.h=bEa.prototype;$APP.h.Td=function(a,b){if(this.Tb)return uT(b,!0)?(this.H.push(qT(b)),this):$APP.Zc($APP.Yc(sT(this.H)),b);throw Error("conj! after persistent!");};$APP.h.Ae=function(){if(this.Tb)return this.Tb=!1,new oT(null,this.sa,this.ca,this.transform,this.H,null);throw Error("persistent! called twice");};
$APP.h.oe=function(a,b,c){if("number"===typeof b)a=this.Kf(null,b,c);else throw Error([$APP.p.h("TransientArrayVector"),"'s key for assoc! must be a number."].join(""));return a};
$APP.h.Kf=function(a,b,c){if(this.Tb){if(uT(c,!0)){if(0<=b&&b<this.H.length)return this.H[b]=qT(c),this;if(b===this.H.length)return this.Td(null,c);throw Error(["Index ",$APP.p.h(b)," out of bounds for TransientArrayVector of length",$APP.p.h(this.H.length)].join(""));}return gT($APP.Yc(sT(this.H)),b,c)}throw Error("assoc! after persistent!");};
$APP.h.uh=function(){if(this.Tb){if(0===this.H.length)throw Error("Can't pop empty vector");this.H=this.H.slice(0,this.H.length-1);return this}throw Error("pop! after persistent!");};$APP.h.aa=function(){if(this.Tb)return this.H.length;throw Error("count after persistent!");};$APP.h.ea=function(a,b){if(this.Tb)return pT(this.H[b],this.sa,this.ca,this.transform);throw Error("nth after persistent!");};$APP.h.Ua=function(a,b,c){return 0<=b&&b<this.H.length?this.ea(null,b):c};
$APP.h.fa=function(a,b){return this.N(null,b,null)};$APP.h.N=function(a,b,c){return"number"===typeof b?this.Ua(null,b,c):c};$APP.h.call=function(a){switch(arguments.length-1){case 1:return this.h(arguments[1]);case 2:return this.g(arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.p.h(arguments.length-1)].join(""));}};$APP.h.apply=function(a,b){return this.call.apply(this,[this].concat($APP.Gb(b)))};$APP.h.h=function(a){return this.fa(null,a)};
$APP.h.g=function(a,b){return this.N(null,a,b)};xT.prototype.hasNext=function(){return this.T<this.O};xT.prototype.next=function(){var a=pT(this.H[this.T],this.sa,this.ca,this.transform);this.T+=1;return a};$APP.h=yT.prototype;$APP.h.toString=function(){return $APP.ud(this)};$APP.h.equiv=function(a){return this.R(null,a)};
$APP.h.indexOf=function(){var a=null;a=function(b,c){switch(arguments.length){case 1:return hT(this,b,0);case 2:return hT(this,b,c)}throw Error("Invalid arity: "+arguments.length);};a.h=function(b){return hT(this,b,0)};a.g=function(b,c){return hT(this,b,c)};return a}();
$APP.h.lastIndexOf=function(){function a(c){return iT(this,c,$APP.me(this))}var b=null;b=function(c,d){switch(arguments.length){case 1:return a.call(this,c);case 2:return iT(this,c,d)}throw Error("Invalid arity: "+arguments.length);};b.h=a;b.g=function(c,d){return iT(this,c,d)};return b}();$APP.h.ea=function(a,b){a=b+this.T;if(0<=a&&a<this.H.length)return pT(this.H[a],this.sa,this.ca,this.transform);throw Error("Index out of bounds");};
$APP.h.Ua=function(a,b,c){a=b+this.T;return 0<=a&&a<this.H.length?pT(this.H[a],this.sa,this.ca,this.transform):c};$APP.h.V=function(a,b,c){return $APP.ak(b,$APP.dk,"("," ",")",c,this)};$APP.h.W=function(){return this.K};$APP.h.ba=function(){return new yT(this.sa,this.ca,this.transform,this.H,this.T,this.K)};$APP.h.Na=function(){return this.T+1<this.H.length?new yT(this.sa,this.ca,this.transform,this.H,this.T+1,null):null};$APP.h.aa=function(){var a=this.H.length-this.T;return 0>a?0:a};$APP.h.Y=function(){return $APP.Vd(this)};
$APP.h.R=function(a,b){return jT(this,b)};$APP.h.Ha=function(){return $APP.Qd};$APP.h.Sa=function(a,b){return kT(this,b)};$APP.h.Oa=function(a,b,c){return lT(this,b,c)};$APP.h.Ta=function(){return pT(this.H[this.T],this.sa,this.ca,this.transform)};$APP.h.nb=function(){return this.T+1<this.H.length?new yT(this.sa,this.ca,this.transform,this.H,this.T+1,null):$APP.Qd};$APP.h.Z=function(){return this};$APP.h.X=function(a,b){return b===this.K?this:new yT(this.sa,this.ca,this.transform,this.H,this.T,b)};
$APP.h.da=function(a,b){return $APP.Bg(b,this)};$APP.h=oT.prototype;$APP.h.le=$APP.Cd;$APP.h.Sd=function(a,b){return 0<=b&&b<this.H.length?new $APP.df(b,pT(this.H[b],this.sa,this.ca,this.transform),null):null};$APP.h.toString=function(){return $APP.ud(this)};$APP.h.equiv=function(a){return this.R(null,a)};
$APP.h.indexOf=function(){var a=null;a=function(b,c){switch(arguments.length){case 1:return hT(this,b,0);case 2:return hT(this,b,c)}throw Error("Invalid arity: "+arguments.length);};a.h=function(b){return hT(this,b,0)};a.g=function(b,c){return hT(this,b,c)};return a}();
$APP.h.lastIndexOf=function(){var a=null;a=function(b,c){switch(arguments.length){case 1:return iT(this,b,$APP.me(this));case 2:return iT(this,b,c)}throw Error("Invalid arity: "+arguments.length);};a.h=function(b){return iT(this,b,$APP.me(this))};a.g=function(b,c){return iT(this,b,c)};return a}();$APP.h.fa=function(a,b){return this.N(null,b,null)};$APP.h.N=function(a,b,c){return"number"===typeof b?this.Ua(null,b,c):c};
$APP.h.pa=function(a,b,c){a=0;for(var d=c;;)if(a<this.H.length){c=this.H.length;var e;a:for(e=0;;)if(e<c){var f=e+a,g=pT(this.H[e],this.sa,this.ca,this.transform);d=b.j?b.j(d,f,g):b.call(null,d,f,g);if($APP.be(d)){e=d;break a}e+=1}else{e=d;break a}if($APP.be(e))return $APP.q(e);a+=c;d=e}else return d};$APP.h.ea=function(a,b){if(0<=b&&b<this.H.length)return pT(this.H[b],this.sa,this.ca,this.transform);throw Error(["No item ",$APP.p.h(b)," in vector of length ",$APP.p.h(this.H.length)].join(""));};
$APP.h.Ua=function(a,b,c){return 0<=b&&b<this.H.length?pT(this.H[b],this.sa,this.ca,this.transform):c};$APP.h.V=function(a,b,c){return $APP.ak(b,$APP.dk,"["," ","]",c,this)};$APP.h.sd=function(a,b,c){if(0<=b&&b<this.H.length)return uT(c,!0)?(a=$APP.Gb(this.H),a[b]=qT(c),new oT(this.K,this.sa,this.ca,this.transform,a,null)):$APP.pc(sT(this.H),b,c);if(b===this.H.length)return this.da(null,c);throw Error(["Index ",$APP.p.h(b)," out of bounds [0,",$APP.p.h(this.H.length),"]"].join(""));};
$APP.h.ha=function(){return new xT(this.sa,this.ca,this.transform,this.H,this.H.length)};$APP.h.W=function(){return this.K};$APP.h.ba=function(){return new oT(this.K,this.sa,this.ca,this.transform,this.H,this.D)};$APP.h.aa=function(){return this.H.length};$APP.h.me=function(){return 0<this.H.length?this.ea(null,this.H.length-1):null};
$APP.h.ne=function(){if(0===this.H.length)throw Error("Can't pop empty vector");if(1===this.H.length)return this.Ha(null);var a=$APP.Gb(this.H);return new oT(this.K,this.sa,this.ca,this.transform,a.slice(0,a.length-1),null)};$APP.h.ed=function(){return 0<this.H.length?new $APP.qe(this,this.H.length-1,null):null};$APP.h.Y=function(){var a=this.D;return null!=a?a:this.D=a=$APP.Vd(this)};
$APP.h.R=function(a,b){a:if(b instanceof oT)if(this.H.length===$APP.me(b))for(a=this.ha(null),b=$APP.rd(b);;)if(a.hasNext()){var c=a.next(),d=b.next();if(!$APP.A.g(c,d)){a=!1;break a}}else{a=!0;break a}else a=!1;else a=jT(this,b);return a};$APP.h.ke=function(){return new bEa($APP.Gb(this.H),this.sa,this.ca,this.transform)};$APP.h.Ha=function(){return new oT(this.K,this.sa,this.ca,this.transform,[],null)};$APP.h.Sa=function(a,b){return kT(this,b)};$APP.h.Oa=function(a,b,c){return lT(this,b,c)};
$APP.h.U=function(a,b,c){if("number"===typeof b)a=this.sd(null,b,c);else throw Error("Vector's key for assoc must be a number.");return a};$APP.h.ja=function(a,b){return $APP.Ye(b)?0<=b&&b<this.H.length:!1};$APP.h.Z=function(){return 0<this.H.length?new yT(this.sa,this.ca,this.transform,this.H,0,null):null};$APP.h.X=function(a,b){return b===this.K?this:new oT(b,this.sa,this.ca,this.transform,this.H,this.D)};
$APP.h.da=function(a,b){return uT(b,!0)?(a=$APP.Gb(this.H),a[a.length]=qT(b),new oT(this.K,this.sa,this.ca,this.transform,a,null)):$APP.Qb(sT(this.H),b)};$APP.h.call=function(a){switch(arguments.length-1){case 1:return this.h(arguments[1]);case 2:return this.g(arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.p.h(arguments.length-1)].join(""));}};$APP.h.apply=function(a,b){return this.call.apply(this,[this].concat($APP.Gb(b)))};$APP.h.h=function(a){return this.ea(null,a)};
$APP.h.g=function(a,b){return this.Ua(null,a,b)};$APP.h.rd=function(a,b){if($APP.Oe(b)){a=$APP.me(this);var c=$APP.me(b);if(a<c)b=-1;else if(a>c)b=1;else if(0===a)b=0;else a:for(c=0;;){var d=$APP.ff($APP.B.g(this,c),$APP.B.g(b,c));if(0===d&&c+1<a)c+=1;else{b=d;break a}}return b}throw Error(["Cannot compare ",$APP.p.h(this)," to ",$APP.p.h(b)].join(""));};
var ET=function ET(a){switch(arguments.length){case 0:return ET.C();case 1:return ET.h(arguments[0]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return ET.l(arguments[0],new $APP.Nd(c.slice(1),0,null))}};ET.C=function(){return new nT(null,{},$APP.fk,zT,null,!1,[],0,null)};ET.h=function(a){return new nT(null,a,$APP.fk,zT,null,!1,null,null,null)};
ET.l=function(a,b){var c=$APP.bh(b);b=$APP.D.g(c,$APP.Rw);var d=$APP.D.g(c,fEa),e=$APP.D.g(c,CT),f=$APP.D.g(c,jEa);c=$APP.D.g(c,eEa);return!1===b?new nT(null,a,$APP.uf,$APP.uf,f,$APP.Ya(c),null,null,null):null!=d&&null!=e?new nT(null,a,d,e,f,$APP.Ya(c),null,null,null):new nT(null,a,$APP.fk,zT,f,$APP.Ya(c),null,null,null)};ET.F=function(a){var b=$APP.v(a);a=$APP.y(a);return this.l(b,a)};ET.B=1;
var rT=function rT(a){switch(arguments.length){case 1:return rT.h(arguments[0]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return rT.l(arguments[0],new $APP.Nd(c.slice(1),0,null))}};rT.h=function(a){return pT(a,$APP.fk,zT,null)};rT.l=function(a,b){var c=$APP.bh(b);b=$APP.D.g(c,$APP.Rw);var d=$APP.D.g(c,fEa),e=$APP.D.g(c,CT);c=$APP.D.g(c,jEa);return!1===b?pT(a,$APP.uf,$APP.uf,c):null!=d&&null!=e?pT(a,d,e,c):pT(a,$APP.fk,zT,c)};
rT.F=function(a){var b=$APP.v(a);a=$APP.y(a);return this.l(b,a)};rT.B=1;var FT=function FT(a){switch(arguments.length){case 1:return FT.h(arguments[0]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return FT.l(arguments[0],new $APP.Nd(c.slice(1),0,null))}};FT.h=function(a){return a instanceof nT?a.Da:a instanceof oT?a.H:$APP.Ow.l(a,$APP.C([$APP.Pw,zT]))};
FT.l=function(a,b){if(a instanceof nT)return a.Da;if(a instanceof oT)return a.H;b=$APP.bh(b);b=$APP.D.j(b,CT,zT);return $APP.Ow.l(a,$APP.C([$APP.Pw,b]))};FT.F=function(a){var b=$APP.v(a);a=$APP.y(a);return this.l(b,a)};FT.B=1;var GT=$APP.mu($APP.XC),oEa=new $APP.k(null,5,[iEa,function(){var a=new $APP.Ld(function(){return ET},hEa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.NI,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.XC,iEa,"cljs_bean/core.cljs",11,new $APP.k(null,6,[$APP.ky,!0,$APP.Xs,1,$APP.$K,1,$APP.qK,new $APP.J(null,2,5,$APP.K,[$APP.Xh,new $APP.J(null,1,5,$APP.K,[$APP.hI],null)],null),$APP.Y,$APP.N($APP.Xh,new $APP.J(null,1,5,$APP.K,[$APP.hI],null),new $APP.J(null,3,5,$APP.K,[$APP.hI,$APP.il,$APP.cF],null)),
$APP.tD,$APP.N(null,null,null)],null),1,702,702,$APP.N($APP.Xh,new $APP.J(null,1,5,$APP.K,[$APP.hI],null),new $APP.J(null,3,5,$APP.K,[$APP.hI,$APP.il,$APP.cF],null)),"Takes a JavaScript object and returns a read-only implementation of the map\n abstraction backed by the object.\n\n By default, bean produces beans that keywordize the keys. Supply\n :keywordize-keys false to suppress this behavior. You can alternatively\n supply :prop-\x3ekey and :key-\x3eprop with functions that control the mapping\n between properties and keys.\n\n Supply :recursive true to create a bean which recursively converts\n JavaScript object values to beans and JavaScript arrays into vectors.\n\n Supply :transform and a function of one argument to transform values being\n converted from JavaScript to ClojureScript. This function should return nil\n if no conversion is to be performed, thus allowing default logic to be applied.\n\n Calling (bean) produces an empty bean.",
$APP.l(ET)?ET.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,GT,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),dEa,function(){var a=new $APP.Ld(function(){return AT},gEa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.XC,dEa,"cljs_bean/core.cljs",12,1,735,735,$APP.N(new $APP.J(null,1,5,$APP.K,[$APP.hI],
null)),"Returns true if x is a bean.",$APP.l(AT)?AT.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,GT,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),$APP.ZG,function(){var a=new $APP.Ld(function(){return BT},lEa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.In,$APP.Qm,$APP.qM,$APP.zn,$APP.Y,$APP.Z,$APP.AD],[$APP.XC,$APP.ZG,"cljs_bean/core.cljs",
17,1,740,740,$APP.AA,$APP.N(new $APP.J(null,1,5,$APP.K,[$APP.KH],null)),"Takes a bean and returns a JavaScript object.",$APP.l(BT)?BT.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,GT,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),nEa,function(){var a=new $APP.Ld(function(){return FT},cEa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.NI,$APP.In,
$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.XC,nEa,"cljs_bean/core.cljs",11,new $APP.k(null,6,[$APP.ky,!0,$APP.Xs,1,$APP.$K,1,$APP.qK,new $APP.J(null,1,5,$APP.K,[new $APP.J(null,1,5,$APP.K,[$APP.hI],null)],null),$APP.Y,$APP.N(new $APP.J(null,1,5,$APP.K,[$APP.hI],null),new $APP.J(null,3,5,$APP.K,[$APP.hI,$APP.il,$APP.cF],null)),$APP.tD,$APP.N(null,null)],null),1,775,775,$APP.N(new $APP.J(null,1,5,$APP.K,[$APP.hI],null),new $APP.J(null,3,5,$APP.K,[$APP.hI,$APP.il,$APP.cF],null)),"Recursively converts ClojureScript values to JavaScript.\n\n Where possible, directly returns the backing objects and arrays for values\n produced using -\x3eclj and bean.\n\n Otherwise delegates to clj-\x3ejs to perform the conversion, converting keyword\n keys using their qualified names. You can alternatively supply :key-\x3eprop with\n a function that controls the mapping from keys to properties.",
$APP.l(FT)?FT.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,GT,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),kEa,function(){var a=new $APP.Ld(function(){return rT},mEa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.NI,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.XC,kEa,"cljs_bean/core.cljs",12,new $APP.k(null,6,[$APP.ky,!0,$APP.Xs,1,$APP.$K,
1,$APP.qK,new $APP.J(null,1,5,$APP.K,[new $APP.J(null,1,5,$APP.K,[$APP.hI],null)],null),$APP.Y,$APP.N(new $APP.J(null,1,5,$APP.K,[$APP.hI],null),new $APP.J(null,3,5,$APP.K,[$APP.hI,$APP.il,$APP.cF],null)),$APP.tD,$APP.N(null,null)],null),1,745,745,$APP.N(new $APP.J(null,1,5,$APP.K,[$APP.hI],null),new $APP.J(null,3,5,$APP.K,[$APP.hI,$APP.il,$APP.cF],null)),"Recursively converts JavaScript values to ClojureScript.\n\n JavaScript objects are converted to beans with keywords for keys.\n\n JavaScript arrays are converted to read-only implementations of the vector\n abstraction, backed by the supplied array.\n\n By default, -\x3eclj produces values that keywordize the keys. Supply\n :keywordize-keys false to suppress this behavior. You can alternatively\n supply :prop-\x3ekey and :key-\x3eprop with functions that control the mapping\n between properties and keys.\n\n Supply :transform and a function of one argument to transform values being\n converted from JavaScript to ClojureScript. This function should return nil\n if no conversion is to be performed, thus allowing default logic to be applied.",
$APP.l(rT)?rT.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,GT,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}()],null);$APP.Wu(new $APP.k(null,1,[$APP.Rq,new $APP.k(null,1,[$APP.XC,oEa],null)],null));