squint-cljs
Advanced tools
Comparing version 0.7.103 to 0.7.104
@@ -11,24 +11,24 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
c):c:null},d$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.aH(a,b),$APP.r(c)?($APP.B.j(c,0,null),c=$APP.B.j(c,1,null),$APP.Rh.j(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.Rh.j(a,b,$APP.r(d)?d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},Kha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?Jha(e,d,f):a$(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},Lha=function(a){return $APP.oe.j(function(b,c){var d=$APP.B.j(c,0,null);c=$APP.B.j(c,1,null);var e=$APP.jf(c),f=$APP.fe.g(e, | ||
e$),k=$APP.fe.g(e,f$);c=$APP.fe.g(e,$APP.Dm);var l=$APP.fe.g(e,$APP.aF);e=$APP.fe.g(e,g$);b=$APP.r(f)?$APP.Tm.J(b,e$,$APP.Rh,d,f):b;b=$APP.r(k)?$APP.Tm.j(b,f$,function(m){if($APP.he(m,k))throw $APP.cl.g(["Conflicting alias ",$APP.t.h(k)," between ",$APP.t.h($APP.fe.g(m,k))," and ",$APP.t.h(d)].join(""),new $APP.n(null,1,[f$,k],null));return $APP.Rh.j(m,k,d)}):b;b=$APP.r(l)?$APP.Tm.j(b,$APP.aF,$APP.Wq.g(function(m){return $APP.Ee.g(m,d)},$APP.Vh)):b;b=$APP.r(e)?$APP.Tm.J(b,g$,$APP.Rh,d,e):b;return $APP.r(c)? | ||
e$),k=$APP.fe.g(e,f$);c=$APP.fe.g(e,$APP.Dm);var l=$APP.fe.g(e,$APP.$E);e=$APP.fe.g(e,g$);b=$APP.r(f)?$APP.Tm.J(b,e$,$APP.Rh,d,f):b;b=$APP.r(k)?$APP.Tm.j(b,f$,function(m){if($APP.he(m,k))throw $APP.cl.g(["Conflicting alias ",$APP.t.h(k)," between ",$APP.t.h($APP.fe.g(m,k))," and ",$APP.t.h(d)].join(""),new $APP.n(null,1,[f$,k],null));return $APP.Rh.j(m,k,d)}):b;b=$APP.r(l)?$APP.Tm.j(b,$APP.$E,$APP.Wq.g(function(m){return $APP.Ee.g(m,d)},$APP.Vh)):b;b=$APP.r(e)?$APP.Tm.J(b,g$,$APP.Rh,d,e):b;return $APP.r(c)? | ||
$APP.Tm.J(b,h$,$APP.Rh,d,c):b},$APP.hf,a)},l$=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,i$);b=$APP.bH(function(d){var e=$APP.r(c)?null:$APP.qa(d,":");return!($APP.r(e)?e:$APP.qa(d,"-"))},a);a=$APP.B.j(b,0,null);b=$APP.B.j(b,1,null);return new $APP.n(null,2,[j$,a,k$,b],null)},n$=function(a,b){if($APP.r(b))if($APP.x(a)){var c=$APP.xd(a),d=$APP.$e(c,b);c=c<d?c:d;a=new $APP.J(null,2,5,$APP.N,[$APP.R.g($APP.Su.g(b,a),$APP.Nf.g(c,a)),$APP.Nf.g(c,b)],null)}else a=new $APP.J(null,2,5,$APP.N,[a,b],null); | ||
else a=new $APP.J(null,2,5,$APP.N,[a,b],null);b=a;a=$APP.B.j(b,0,null);b=$APP.B.j(b,1,null);return new $APP.n(null,2,[k$,a,m$,b],null)},v$=function(a,b,c,d,e){var f=Z9(a),k="string"===typeof a?$APP.B.j(a,1,null):null,l;if(l=$APP.A.g(f,"-")){try{var m=Y9($APP.t.h(k))}catch(h){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?o$:null;f=$APP.A.g(":",f);c=$APP.Qh.g(o$,b)&&f&&($APP.A.g(p$,d)||$APP.Za(c)||$APP.A.g(e,c));d=$APP.r(b)?b:c?q$:null;a=l?$APP.r(k)?$APP.Qh.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.n(null, | ||
5,[$APP.bx,d,r$,l,s$,a,t$,c,u$,f],null)},Pha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[w$,d,$APP.Xk,x$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=w$.h(b),e=$APP.r(d)?V9(b,$APP.F([Lha(d)])):b,f=e$.h(e),k=function(){var vb=f$.h(e);return $APP.r(vb)?vb:$APP.Ir.h(e)}(),l=Mha.h(e),m=$APP.aF.h(e),h=h$.h(e),p=i$.h(e),q=function(){var vb=y$.h(e);return $APP.r(vb)?vb:Nha.h(e)}(),u=$APP.Zh($APP.R.l($APP.Kh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Kh(f)]))), | ||
D=$APP.A.g(!0,q)?u:null==q?null:$APP.Zh(q),I=g$.h(e),O=function(){var vb=Oha.h(e);return $APP.r(vb)?vb:function(Zb){Zb=$APP.jf(Zb);var Ic=$APP.fe.g(Zb,z$);throw $APP.cl.g(Ic,Zb);}}(),P=l$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,j$),ha=$APP.fe.g(W,k$),na=function(){var vb=m$.h(e);vb=$APP.r(vb)?vb:A$.h(e);return $APP.r(vb)?n$(ca,vb):new $APP.n(null,2,[m$,null,k$,ha],null)}(),pa=$APP.jf(na),fa=$APP.fe.g(pa,k$),E=$APP.fe.g(pa,m$),C=$APP.Qh.g(fa,ha)?new $APP.J(null,2,5,$APP.N,[null,$APP.R.g(fa,ha)],null): | ||
5,[$APP.bx,d,r$,l,s$,a,t$,c,u$,f],null)},Pha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[w$,d,$APP.Xk,x$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=w$.h(b),e=$APP.r(d)?V9(b,$APP.F([Lha(d)])):b,f=e$.h(e),k=function(){var vb=f$.h(e);return $APP.r(vb)?vb:$APP.Ir.h(e)}(),l=Mha.h(e),m=$APP.$E.h(e),h=h$.h(e),p=i$.h(e),q=function(){var vb=y$.h(e);return $APP.r(vb)?vb:Nha.h(e)}(),v=$APP.Zh($APP.R.l($APP.Kh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Kh(f)]))), | ||
D=$APP.A.g(!0,q)?v:null==q?null:$APP.Zh(q),I=g$.h(e),O=function(){var vb=Oha.h(e);return $APP.r(vb)?vb:function(Zb){Zb=$APP.jf(Zb);var Ic=$APP.fe.g(Zb,z$);throw $APP.cl.g(Ic,Zb);}}(),P=l$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,j$),ha=$APP.fe.g(W,k$),na=function(){var vb=m$.h(e);vb=$APP.r(vb)?vb:A$.h(e);return $APP.r(vb)?n$(ca,vb):new $APP.n(null,2,[m$,null,k$,ha],null)}(),pa=$APP.jf(na),fa=$APP.fe.g(pa,k$),E=$APP.fe.g(pa,m$),C=$APP.Qh.g(fa,ha)?new $APP.J(null,2,5,$APP.N,[null,$APP.R.g(fa,ha)],null): | ||
new $APP.J(null,2,5,$APP.N,[ca,ha],null),ea=$APP.B.j(C,0,null),K=$APP.B.j(C,1,null),M=function(){for(var vb=$APP.hf,Zb=null,Ic=null,Me=$APP.r(p)?o$:null,hd=$APP.x(K),Jg=E;;){if($APP.Za(hd))return new $APP.J(null,3,5,$APP.N,[vb,Zb,Ic],null);var og=$APP.y(hd),Uc=og instanceof $APP.H;if(Uc){Zb=d$(vb,Zb,Ic,null);var ne=og;hd=$APP.z(hd);vb=Zb;Zb=ne}else{var Al=!0===og,Tf=$APP.t.h(og);ne=c$(l,Zb,$APP.fe.g(f,Zb));var xi=$APP.fe.g(f,Zb),Bl=v$(Tf,Me,Zb,xi,Ic),Lh=$APP.jf(Bl),Cl=$APP.fe.g(Lh,r$),Mh=$APP.fe.g(Lh, | ||
s$),Dl=$APP.fe.g(Lh,t$),Uf=$APP.fe.g(Lh,$APP.bx),mk=$APP.fe.g(Lh,u$);if($APP.r(function(){var Oe=Cl;return $APP.r(Oe)?Oe:Dl}())){var Yc=$APP.qa(Tf,"--"),nk=Yc&&$APP.A.g("--",Tf);if(nk){var El=$APP.z(hd);return new $APP.J(null,3,5,$APP.N,[function(){var Oe=vb;return El?$APP.jo.A(Oe,$APP.Uu,new $APP.J(null,2,5,$APP.N,[x$,k$],null),$APP.lg(El)):Oe}(),Zb,Ic],null)}var ok=Yc?$APP.ji.g(Tf,2):$APP.Zj(Tf,/^(:|-|)/,""),zf=Yc?$APP.Er.g(ok,/=/):new $APP.J(null,1,5,$APP.N,[ok],null),Sd=$APP.B.j(zf,0,null),Ce= | ||
$APP.B.j(zf,1,null),Tb=$APP.zi.h(Sd),Ec=$APP.fe.j(k,Tb,Tb);if($APP.r(Ce))Ic=d$(vb,Zb,Ic,ne),Zb=Ec,Me=Uf,hd=$APP.He(Ce,$APP.cd(hd)),vb=Ic,Ic=null;else{var Ab=$APP.z(hd),Ne=$APP.y(Ab),qw=v$(Ne,Uf,Zb,xi,Ic);if($APP.r(function(){var Oe=r$.h(qw);return $APP.r(Oe)?Oe:$APP.Qd(Ab)}()))if($APP.r(Mh)){var rw=$APP.ai(Ec);Ic=$APP.Yp.l(function(){return function(Oe){return new $APP.J(null,2,5,$APP.N,[["-",$APP.t.h(Oe)].join(""),!0],null)}}(vb,Zb,Ic,Me,hd,Jg,rw,Ab,Ne,qw,ok,zf,Sd,Ce,Tb,Ec,Yc,nk,Al,Tf,ne,xi,Bl,Lh, | ||
Cl,Mh,Dl,Uf,mk,og,Uc,d,e,f,k,l,m,h,p,q,u,D,I,O,c,P,W,ca,ha,na,pa,fa,E,C,ea,K),$APP.F([rw]));hd=$APP.R.g(Ic,Ab);Me=Uf;Ic=Zb=null}else hd=$APP.he(u,Ec)?null:$APP.RG($APP.t.h(Ec),":no-"),Me=$APP.r(hd)?$APP.zi.h($APP.Zj($APP.t.h(Ec),":no-","")):Ec,hd=$APP.He($APP.Za(hd),Ab),Zb=d$(vb,Zb,Ic,ne),ne=Me,Me=Uf,vb=Zb,Zb=ne;else Zb=d$(vb,Zb,Ic,ne),ne=Ec,Me=Uf,hd=Ab,vb=Zb,Zb=ne}}else if(nk=$APP.A.g(p$,xi)&&$APP.Qh.g(Tf,"true")&&$APP.Qh.g(Tf,"false")||$APP.A.g(Ic,Zb)&&$APP.Za(ne))if(Jg=$APP.r(hd)?$APP.r(Jg)?n$(hd, | ||
Cl,Mh,Dl,Uf,mk,og,Uc,d,e,f,k,l,m,h,p,q,v,D,I,O,c,P,W,ca,ha,na,pa,fa,E,C,ea,K),$APP.F([rw]));hd=$APP.R.g(Ic,Ab);Me=Uf;Ic=Zb=null}else hd=$APP.he(v,Ec)?null:$APP.RG($APP.t.h(Ec),":no-"),Me=$APP.r(hd)?$APP.zi.h($APP.Zj($APP.t.h(Ec),":no-","")):Ec,hd=$APP.He($APP.Za(hd),Ab),Zb=d$(vb,Zb,Ic,ne),ne=Me,Me=Uf,vb=Zb,Zb=ne;else Zb=d$(vb,Zb,Ic,ne),ne=Ec,Me=Uf,hd=Ab,vb=Zb,Zb=ne}}else if(nk=$APP.A.g(p$,xi)&&$APP.Qh.g(Tf,"true")&&$APP.Qh.g(Tf,"false")||$APP.A.g(Ic,Zb)&&$APP.Za(ne))if(Jg=$APP.r(hd)?$APP.r(Jg)?n$(hd, | ||
Jg):new $APP.n(null,1,[k$,hd],null):new $APP.n(null,1,[k$,hd],null),Me=$APP.jf(Jg),Jg=$APP.fe.g(Me,k$),Me=$APP.fe.g(Me,m$),$APP.Qh.g(hd,Jg))ne=Me,Me=Uf,hd=Jg,Jg=ne;else return new $APP.J(null,3,5,$APP.N,[$APP.jo.A(vb,$APP.Uu,new $APP.J(null,2,5,$APP.N,[x$,k$],null),$APP.lg(hd)),Zb,Ic],null);else{try{var Zd=Kha(vb,Zb,ne,Gha(xi),Tf,Al)}catch(Oe){c(new $APP.n(null,4,[B$,e$,z$,$APP.fH(Oe),C$,Zb,D$,Tf],null)),Zd=vb}Ic=$APP.r(function(){var Oe=$APP.A.g(q$,Uf);return Oe?mk:Oe}())?null:Zb;ne=$APP.r(function(){var Oe= | ||
$APP.A.g(q$,Uf);return Oe?mk:Oe}())?null:Zb;Me=Uf;hd=$APP.z(hd);vb=Zd;Zb=Ic;Ic=ne}}}}(),da=$APP.B.j(M,0,null),ia=$APP.B.j(M,1,null),ja=$APP.B.j(M,2,null),sa=c$(l,ia,$APP.fe.g(f,ia)),ta=function(){var vb=d$(da,ia,ja,sa);return $APP.x(ea)?$APP.jo.A(vb,$APP.Nk,new $APP.J(null,2,5,$APP.N,[x$,k$],null),function(Zb){return $APP.Rg.g($APP.lg(ea),Zb)}):vb}(),wa=$APP.r(h)?$APP.Md($APP.Qk.l($APP.F([h,ta])),$APP.Nd(ta)):ta;if($APP.r(D)){a=$APP.x($APP.Kh(wa));b=null;for(var ya=0,Ca=0;;)if(Ca<ya){var Ha=b.ba(null, | ||
Ca);$APP.he(D,Ha)||c(new $APP.n(null,4,[B$,y$,z$,["Unknown option: ",$APP.t.h(Ha)].join(""),y$,D,C$,Ha],null));Ca+=1}else if(a=$APP.x(a))b=a,$APP.Yd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.he(D,a)||c(new $APP.n(null,4,[B$,y$,z$,["Unknown option: ",$APP.t.h(a)].join(""),y$,D,C$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break}if($APP.r(m))for(a=$APP.x(m),b=null,Ca=ya=0;;)if(Ca<ya)Ha=b.ba(null,Ca),$APP.r($APP.aH(wa,Ha))||c(new $APP.n(null,4,[B$,$APP.aF,z$,["Required option: ", | ||
$APP.t.h(Ha)].join(""),$APP.aF,m,C$,Ha],null)),Ca+=1;else if(a=$APP.x(a))b=a,$APP.Yd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.r($APP.aH(wa,a))||c(new $APP.n(null,4,[B$,$APP.aF,z$,["Required option: ",$APP.t.h(a)].join(""),$APP.aF,m,C$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(I))for(var Da=$APP.x(I),Aa=null,Oa=0,Sa=0;;)if(Sa<Oa){var db=Aa.ba(null,Sa),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Yb=function(){var vb=(vb=$APP.Vd(Bb))?E$.h(Bb):vb;return $APP.r(vb)? | ||
vb:Bb}(),qc=$APP.aH(wa,ub);if($APP.r(qc)){var $c=qc,Sb=$APP.B.j($c,0,null),nf=$APP.B.j($c,1,null);if(!$APP.r(Yb.h?Yb.h(nf):Yb.call(null,nf))){var ik=function(){var vb=F$.h(Bb);return $APP.r(vb)?vb:function(){return function(Zb){var Ic=$APP.jf(Zb);Zb=$APP.fe.g(Ic,C$);Ic=$APP.fe.g(Ic,D$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Ic)].join("")}}(Da,Aa,Oa,Sa,vb,$c,Sb,nf,qc,Yb,db,ub,Bb,d,e,f,k,l,m,h,p,q,u,D,I,O,c,P,W,ca,ha,na,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null, | ||
Ca);$APP.he(D,Ha)||c(new $APP.n(null,4,[B$,y$,z$,["Unknown option: ",$APP.t.h(Ha)].join(""),y$,D,C$,Ha],null));Ca+=1}else if(a=$APP.x(a))b=a,$APP.Yd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.he(D,a)||c(new $APP.n(null,4,[B$,y$,z$,["Unknown option: ",$APP.t.h(a)].join(""),y$,D,C$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break}if($APP.r(m))for(a=$APP.x(m),b=null,Ca=ya=0;;)if(Ca<ya)Ha=b.ba(null,Ca),$APP.r($APP.aH(wa,Ha))||c(new $APP.n(null,4,[B$,$APP.$E,z$,["Required option: ", | ||
$APP.t.h(Ha)].join(""),$APP.$E,m,C$,Ha],null)),Ca+=1;else if(a=$APP.x(a))b=a,$APP.Yd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.r($APP.aH(wa,a))||c(new $APP.n(null,4,[B$,$APP.$E,z$,["Required option: ",$APP.t.h(a)].join(""),$APP.$E,m,C$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(I))for(var Da=$APP.x(I),Aa=null,Oa=0,Sa=0;;)if(Sa<Oa){var db=Aa.ba(null,Sa),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Yb=function(){var vb=(vb=$APP.Vd(Bb))?E$.h(Bb):vb;return $APP.r(vb)? | ||
vb:Bb}(),qc=$APP.aH(wa,ub);if($APP.r(qc)){var $c=qc,Sb=$APP.B.j($c,0,null),nf=$APP.B.j($c,1,null);if(!$APP.r(Yb.h?Yb.h(nf):Yb.call(null,nf))){var ik=function(){var vb=F$.h(Bb);return $APP.r(vb)?vb:function(){return function(Zb){var Ic=$APP.jf(Zb);Zb=$APP.fe.g(Ic,C$);Ic=$APP.fe.g(Ic,D$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Ic)].join("")}}(Da,Aa,Oa,Sa,vb,$c,Sb,nf,qc,Yb,db,ub,Bb,d,e,f,k,l,m,h,p,q,v,D,I,O,c,P,W,ca,ha,na,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null, | ||
5,[B$,g$,z$,function(){var vb=new $APP.n(null,2,[C$,ub,D$,nf],null);return ik.h?ik.h(vb):ik.call(null,vb)}(),g$,I,C$,ub,D$,nf],null))}}Sa+=1}else{var xl=$APP.x(Da);if(xl){var vi=xl;if($APP.Yd(vi))ya=$APP.uc(vi),a=$APP.vc(vi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var jk=$APP.y(vi),kk=$APP.B.j(jk,0,null),rj=$APP.B.j(jk,1,null),lk=function(){var vb=(vb=$APP.Vd(rj))?E$.h(rj):vb;return $APP.r(vb)?vb:rj}(),yl=$APP.aH(wa,kk);if($APP.r(yl)){var Hc=yl,sj=$APP.B.j(Hc,0,null),wi=$APP.B.j(Hc,1,null);if(!$APP.r(lk.h? | ||
lk.h(wi):lk.call(null,wi))){var zl=function(){var vb=F$.h(rj);return $APP.r(vb)?vb:function(){return function(Zb){var Ic=$APP.jf(Zb);Zb=$APP.fe.g(Ic,C$);Ic=$APP.fe.g(Ic,D$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Ic)].join("")}}(Da,Aa,Oa,Sa,vb,Hc,sj,wi,yl,lk,jk,kk,rj,vi,xl,d,e,f,k,l,m,h,p,q,u,D,I,O,c,P,W,ca,ha,na,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null,5,[B$,g$,z$,function(){var vb=new $APP.n(null,2,[C$,kk,D$,wi],null);return zl.h?zl.h(vb):zl.call(null,vb)}(), | ||
g$,I,C$,kk,D$,wi],null))}}Da=$APP.z(vi);Aa=null;Oa=0}Sa=0}else break}return wa},Qha=function(a,b){a=Pha(a,b);b=x$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.JH,$APP.Rk.g(a,x$))},Rha=function(a,b){var c=$APP.Of($APP.xd(a),b);b=$APP.B.j(c,0,null);c=$APP.B.j(c,1,null);return $APP.A.g(b,a)?c:null},K$=function(a,b){$APP.Jf(G$,!1);a.setPrompt([$APP.t.h($APP.v(H$)),"\x3d\x3e "].join(""));a.prompt();return $APP.gk($APP.v(I$))?null:J$.g?J$.g(b,a):J$.call(null,b,a)},L$=function(a){var b=$APP.Bk(a);a=$APP.Ck(a); | ||
var c=$APP.gH($APP.v(I$));b=$APP.Nf.g(b-1,c);c=$APP.x(b);b=$APP.y(c);c=$APP.z(c);a=$APP.r(b)?$APP.ji.g(b,a):null;$APP.Jf(I$,$APP.Jp.g("\n",$APP.He(a,c)))},Tha=function(a,b,c){var d=function(){var f=$APP.lr;$APP.lr=$APP.v(H$);try{a:{var k=$APP.La;$APP.La=!0;try{var l=$APP.Ri.l($APP.F([a]));break a}finally{$APP.La=k}l=void 0}return $APP.ru(l,new $APP.n(null,3,[$APP.Lp,$APP.Op,$APP.Fr,Sha,$APP.gu,!0],null),null)}finally{$APP.lr=f}}(),e=$APP.jf(d);d=$APP.fe.g(e,$APP.qu);e=$APP.fe.g(e,$APP.T);d=$APP.Zj("(async function () {\n%s\n}) ()", | ||
"%s",d);$APP.Jf(H$,e);return Promise.resolve(eval(d)).then(function(f){$APP.r(c)?c.write(esm_import$node_util.inspect(f),"\n"):console.log(f);return J$.g?J$.g(c,b):J$.call(null,c,b)}).catch(function(f){esm_import$squint_cljs$core.println(f);return K$(b,c)})},J$=function(a,b){if($APP.r(function(){var e=$APP.v(G$);return $APP.r(e)?e:!$APP.gk($APP.v(I$))}())){$APP.Jf(G$,!0);var c=$APP.hp($APP.v(I$)),d=function(){try{return $APP.jp(c,$APP.du)}catch(f){var e=f;if(-1!=$APP.fH(e).indexOf("EOF while reading"))return M$; | ||
lk.h(wi):lk.call(null,wi))){var zl=function(){var vb=F$.h(rj);return $APP.r(vb)?vb:function(){return function(Zb){var Ic=$APP.jf(Zb);Zb=$APP.fe.g(Ic,C$);Ic=$APP.fe.g(Ic,D$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Ic)].join("")}}(Da,Aa,Oa,Sa,vb,Hc,sj,wi,yl,lk,jk,kk,rj,vi,xl,d,e,f,k,l,m,h,p,q,v,D,I,O,c,P,W,ca,ha,na,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null,5,[B$,g$,z$,function(){var vb=new $APP.n(null,2,[C$,kk,D$,wi],null);return zl.h?zl.h(vb):zl.call(null,vb)}(), | ||
g$,I,C$,kk,D$,wi],null))}}Da=$APP.z(vi);Aa=null;Oa=0}Sa=0}else break}return wa},Qha=function(a,b){a=Pha(a,b);b=x$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.JH,$APP.Rk.g(a,x$))},Rha=function(a,b){var c=$APP.Of($APP.xd(a),b);b=$APP.B.j(c,0,null);c=$APP.B.j(c,1,null);return $APP.A.g(b,a)?c:null},K$=function(a,b){$APP.Jf(G$,!1);a.setPrompt([$APP.t.h($APP.u(H$)),"\x3d\x3e "].join(""));a.prompt();return $APP.gk($APP.u(I$))?null:J$.g?J$.g(b,a):J$.call(null,b,a)},L$=function(a){var b=$APP.Bk(a);a=$APP.Ck(a); | ||
var c=$APP.gH($APP.u(I$));b=$APP.Nf.g(b-1,c);c=$APP.x(b);b=$APP.y(c);c=$APP.z(c);a=$APP.r(b)?$APP.ji.g(b,a):null;$APP.Jf(I$,$APP.Jp.g("\n",$APP.He(a,c)))},Tha=function(a,b,c){var d=function(){var f=$APP.lr;$APP.lr=$APP.u(H$);try{a:{var k=$APP.La;$APP.La=!0;try{var l=$APP.Ri.l($APP.F([a]));break a}finally{$APP.La=k}l=void 0}return $APP.ru(l,new $APP.n(null,3,[$APP.Lp,$APP.Op,$APP.Fr,Sha,$APP.gu,!0],null),null)}finally{$APP.lr=f}}(),e=$APP.jf(d);d=$APP.fe.g(e,$APP.qu);e=$APP.fe.g(e,$APP.T);d=$APP.Zj("(async function () {\n%s\n}) ()", | ||
"%s",d);$APP.Jf(H$,e);return Promise.resolve(eval(d)).then(function(f){$APP.r(c)?c.write(esm_import$node_util.inspect(f),"\n"):console.log(f);return J$.g?J$.g(c,b):J$.call(null,c,b)}).catch(function(f){esm_import$squint_cljs$core.println(f);return K$(b,c)})},J$=function(a,b){if($APP.r(function(){var e=$APP.u(G$);return $APP.r(e)?e:!$APP.gk($APP.u(I$))}())){$APP.Jf(G$,!0);var c=$APP.hp($APP.u(I$)),d=function(){try{return $APP.jp(c,$APP.du)}catch(f){var e=f;if(-1!=$APP.fH(e).indexOf("EOF while reading"))return M$; | ||
L$(c);$APP.FH.l($APP.F([$APP.t.h(e)]));return N$}}();if($APP.A.g(N$,d))return K$(b,a);if($APP.A.g(M$,d))return $APP.Jf(G$,!1);L$(c);return $APP.A.g($APP.ip,d)?K$(b,a):Tha(d,b,a)}return null},O$=function(a,b){a.on("line",function(c){$APP.Wi.A(I$,$APP.t,c,"\n");return J$(b,a)})},Uha=function(a){var b=esm_import$readline.createInterface({input:a,output:a});O$(b,a);a.setNoDelay(!0);return a.on("close",function(){return $APP.GH.l($APP.F(["Client closed connection."]))})},P$=function(a,b,c){return $APP.r(c)? | ||
esm_import$path.resolve(c,$APP.uH(a,b)):a},Q$=function(a,b,c){var d=$APP.zH.h(a),e=$APP.jH.h(a);b=P$(b,e,d);c=$APP.lH(c);d=null==c?null:P$(c,e,d);d=null==d?null:null==d?null:esm_import$path.relative(esm_import$path.dirname($APP.t.h(b)),d);return $APP.r(d)?(a=$APP.yH.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Zj(d,$APP.ki([$APP.t.h(e),"$"].join("")),a)].join("")):null},R$=function(a,b,c,d){if($APP.r(a)){var e=esm_import$path.resolve(c,$APP.uH(b, | ||
d));c=esm_import$path.dirname(e);if($APP.r($APP.Ef(function(f){return f instanceof $APP.H?$APP.ii($APP.ki(["\\.",$APP.ai(f),"$"].join("")),e):"string"===typeof f?$APP.ii($APP.ki(f),e):null},a)))return $APP.r(esm_import$fs.existsSync(c))||($APP.GH.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0})),$APP.GH.l($APP.F(["[squint] zCopying resource",b,"to",c])),esm_import$fs.copyFileSync(b,e)}return null},V$=function(a,b){var c=$APP.v($APP.kH),d=$APP.Qk.l($APP.F([c, | ||
d));c=esm_import$path.dirname(e);if($APP.r($APP.Ef(function(f){return f instanceof $APP.H?$APP.ii($APP.ki(["\\.",$APP.ai(f),"$"].join("")),e):"string"===typeof f?$APP.ii($APP.ki(f),e):null},a)))return $APP.r(esm_import$fs.existsSync(c))||($APP.GH.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0})),$APP.GH.l($APP.F(["[squint] zCopying resource",b,"to",c])),esm_import$fs.copyFileSync(b,e)}return null},V$=function(a,b){var c=$APP.u($APP.kH),d=$APP.Qk.l($APP.F([c, | ||
a])),e=$APP.jH.h(c),f=S$.h(c),k=$APP.zH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Yp.l(T$,$APP.F([e]))):b;b=$APP.zH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.GH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.GH(),$APP.GH.l($APP.F(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files\n--output-dir: output directory for JS files"]))): | ||
@@ -41,14 +41,14 @@ $APP.oe.j(function(l,m){return Promise.resolve(l).then(function(){return $APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(m))?($APP.GH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.AH($APP.Rh.l(d,$APP.vH,m,$APP.F([$APP.tr,function(h){return Q$(d,m,h)}])))):R$(f,m,k,e)}).then(function(h){h=$APP.jf(h);h=$APP.fe.g(h,$APP.xH);$APP.r(h)&&$APP.GH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},t$=new $APP.H(null,"kwd-opt","kwd-opt", | ||
-1841503952);var I$=$APP.Vi.h(""),G$=$APP.Vi.h(!1),H$=$APP.Vi.h($APP.lr),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var Sha=$APP.Vi.h($APP.hf),Z$=function Z$(a){switch(arguments.length){case 0:return Z$.v();case 1:return Z$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};Z$.v=function(){return Z$.h(null)}; | ||
Z$.h=function(a){$APP.lr=$APP.ky;$APP.$q=$APP.kr=!0;var b=function(){var d=$APP.IH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(Uha);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.GH.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1; | ||
Z$.h=function(a){$APP.lr=$APP.ly;$APP.$q=$APP.kr=!0;var b=function(){var d=$APP.IH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(Uha);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.GH.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1; | ||
var $$=function $$(a){switch(arguments.length){case 0:return $$.v();case 1:return $$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$$.v=function(){return $$.h(null)}; | ||
$$.h=function(){$APP.lr=$APP.ky;$APP.$q=$APP.kr=!0;$APP.r(X$)&&process.stdin.setRawMode(!0);return Promise.resolve(eval("globalThis.user \x3d globalThis.user || {};")).then(function(){return new Promise(function(a){var b=$APP.r(null)?esm_import$readline.createInterface({input:null,output:null}):esm_import$readline.createInterface({input:process.stdin,output:process.stdout});O$(b,null);b.setPrompt([$APP.t.h($APP.v(H$)),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};$$.m=1;var T$=function T$(a){var c=esm_import$fs.readdirSync(a);return $APP.lg($APP.Yp.l(function(d){d=esm_import$path.resolve(a,d);return $APP.r(esm_import$fs.lstatSync(d).isDirectory())?T$.h?T$.h(d):T$.call(null,d):new $APP.J(null,1,5,$APP.N,[d],null)},$APP.F([c])))},Yha=new $APP.J(null,7,5,$APP.N,[new $APP.n(null,3,[j$,new $APP.J(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.JH);var b=$APP.v($APP.kH),c=$APP.Qk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.$k); | ||
$$.h=function(){$APP.lr=$APP.ly;$APP.$q=$APP.kr=!0;$APP.r(X$)&&process.stdin.setRawMode(!0);return Promise.resolve(eval("globalThis.user \x3d globalThis.user || {};")).then(function(){return new Promise(function(a){var b=$APP.r(null)?esm_import$readline.createInterface({input:null,output:null}):esm_import$readline.createInterface({input:process.stdin,output:process.stdout});O$(b,null);b.setPrompt([$APP.t.h($APP.u(H$)),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};$$.m=1;var T$=function T$(a){var c=esm_import$fs.readdirSync(a);return $APP.lg($APP.Yp.l(function(d){d=esm_import$path.resolve(a,d);return $APP.r(esm_import$fs.lstatSync(d).isDirectory())?T$.h?T$.h(d):T$.call(null,d):new $APP.J(null,1,5,$APP.N,[d],null)},$APP.F([c])))},Yha=new $APP.J(null,7,5,$APP.N,[new $APP.n(null,3,[j$,new $APP.J(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.JH);var b=$APP.u($APP.kH),c=$APP.Qk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.$k); | ||
a=$APP.fe.g(a,U$);if($APP.r(a))return null;$APP.GH.l($APP.F(["[squint] Running",d]));return $APP.AH($APP.Rh.l(c,$APP.vH,d,$APP.F([$APP.tr,function(e){return Q$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.xH);e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",$APP.t.h(e)].join("");return shadow_esm_import(e)})},A$,new $APP.J(null,1,5,$APP.N,[$APP.$k],null)],null),new $APP.n(null,2,[j$,new $APP.J(null,1,5,$APP.N,["compile"],null),$APP.yo,function(a){var b=$APP.jf(a); | ||
a=$APP.fe.g(b,W$);b=$APP.fe.g(b,$APP.JH);return V$(b,a)}],null),new $APP.n(null,2,[j$,new $APP.J(null,1,5,$APP.N,["repl"],null),$APP.yo,$$],null),new $APP.n(null,2,[j$,new $APP.J(null,1,5,$APP.N,["socket-repl"],null),$APP.yo,Z$],null),new $APP.n(null,2,[j$,new $APP.J(null,1,5,$APP.N,["nrepl-server"],null),$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.JH);return shadow_esm_import("./node.nrepl_server.js").then(function(c){c=c.startServer;return c.h?c.h(b):c.call(null,b)})}],null),new $APP.n(null, | ||
2,[j$,new $APP.J(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){var b=$APP.v($APP.kH),c=$APP.Qk.l($APP.F([b,a])),d=$APP.jH.h(b),e=$APP.zH.g(b,"."),f=S$.h(b);return shadow_esm_import("chokidar").catch(function(k){return console.error(k)}).then(function(k){k=k.watch;$APP.GH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,p=0;;)if(p<h){var q=m.ba(null,p);(k.h?k.h(q):k.call(null,q)).on("all",function(I,O,P,W,ca,ha,na,pa,fa,E,C){return function(ea,K){return $APP.r(esm_import$fs.existsSync(K))? | ||
$APP.r(esm_import$fs.lstatSync(K).isDirectory())?null:$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),ea)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(K))?V$(pa,new $APP.J(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(I,O,P,W,ca,ha,na,pa,fa,E,C)):R$(C,K,E,fa):null}}(l,m,h,p,q,k,b,c,d,e,f));p+=1}else{var u=$APP.x(l);if(u){var D=u;$APP.Yd(D)?(l=$APP.uc(D),h=$APP.vc(D), | ||
2,[j$,new $APP.J(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){var b=$APP.u($APP.kH),c=$APP.Qk.l($APP.F([b,a])),d=$APP.jH.h(b),e=$APP.zH.g(b,"."),f=S$.h(b);return shadow_esm_import("chokidar").catch(function(k){return console.error(k)}).then(function(k){k=k.watch;$APP.GH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,p=0;;)if(p<h){var q=m.ba(null,p);(k.h?k.h(q):k.call(null,q)).on("all",function(I,O,P,W,ca,ha,na,pa,fa,E,C){return function(ea,K){return $APP.r(esm_import$fs.existsSync(K))? | ||
$APP.r(esm_import$fs.lstatSync(K).isDirectory())?null:$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),ea)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(K))?V$(pa,new $APP.J(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(I,O,P,W,ca,ha,na,pa,fa,E,C)):R$(C,K,E,fa):null}}(l,m,h,p,q,k,b,c,d,e,f));p+=1}else{var v=$APP.x(l);if(v){var D=v;$APP.Yd(D)?(l=$APP.uc(D),h=$APP.vc(D), | ||
m=l,D=$APP.xd(l),l=h,h=D):(q=$APP.y(D),(k.h?k.h(q):k.call(null,q)).on("all",function(I,O,P,W,ca,ha,na,pa,fa,E,C,ea,K){return function(M,da){return $APP.r(esm_import$fs.existsSync(da))?$APP.r(esm_import$fs.lstatSync(da).isDirectory())?null:$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),M)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(da))?V$(E,new $APP.J(null,1,5,$APP.N,[da],null)).catch(function(){return function(ia){return console.error(ia)}}(I, | ||
O,P,W,ca,ha,na,pa,fa,E,C,ea,K)):R$(K,da,ea,C):null}}(l,m,h,p,q,D,u,k,b,c,d,e,f)),l=$APP.z(D),m=null,h=0);p=0}else return null}})}],null),new $APP.n(null,2,[j$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.JH);a=$APP.JE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.GH.l($APP.F(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"]));a=$APP.r($APP.Bt.h(c))?$APP.Zj("(do %s\n)", | ||
"%s",a):a;a=$APP.QG.g(a,$APP.Rh.l(c,$APP.Bt,$APP.Bt.h(c),$APP.F([$APP.Fr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ky],null)),$APP.Lp,$APP.r($APP.Bt.h(c))?$APP.Op:$APP.Pp,$APP.gu,function(){var f=$APP.Bt.h(c);return $APP.r(f)?!1!==$APP.gu.h(c):f}()])));a=$APP.r($APP.Bt.h(c))?$APP.Zj("(async function() { %s })()","%s",a):a;var d=esm_import$fs.mkdtempSync(".tmp"),e=[$APP.t.h(d),"/squint.mjs"].join("");esm_import$fs.writeFileSync(e,a,"utf-8");$APP.r(Vha.h(c))&&$APP.GH.l($APP.F([a]));if(!1===Wha.h(c))return null; | ||
e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return($APP.r($APP.Bt.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.Bt.h(c))?$APP.FH.l($APP.F([f])):null}).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.r(function(){var f=U$.h(c);return $APP.r(f)?f:$APP.A.g("help",$APP.y(b))||$APP.Qd(b)}())?$APP.GH.l($APP.F(["Squint v0.7.103\n\nUsage: squint \x3csubcommand\x3e \x3copts\x3e\n\nSubcommands:\n\n-e \x3cexpr\x3e Compile and run expression.\nrun \x3cfile.cljs\x3e Compile and run a file\nwatch Watch :paths in squint.edn\ncompile \x3cfile.cljs\x3e ... Compile file(s)\nrepl Start repl\nhelp Print this help\n\nUse squint \x3csubcommand\x3e --help to show more info."])): | ||
V$(c,b)}],null)],null);(function(){var a=new $APP.n(null,2,[$APP.Ir,new $APP.n(null,1,[Xha,U$],null),e$,new $APP.n(null,4,[$APP.gu,p$,$APP.Jr,p$,$APP.zH,$APP.nl,$APP.Bt,p$],null)],null),b=l$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,j$),e=$APP.fe.g(c,k$);return $APP.oe.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,j$),m=$APP.fe.g(f,$APP.yo),h=Rha(l,d);if($APP.r(h)){k=function(){var u=null==h?null:$APP.x(h);return null==u?null:$APP.lg(u)}();k=$APP.R.g(k,e);f=Qha(k,V9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k, | ||
$APP.JH);f=$APP.fe.g(k,k$);k=$APP.fe.g(k,j$);var q=$APP.R.g(k,f);return $APP.ld(function(){var u=$APP.Rh.l(c,k$,q,$APP.F([W$,q,$APP.JH,p,$APP.ap,l]));return m.h?m.h(u):m.call(null,u)}())}return null},null,Yha)})(); | ||
O,P,W,ca,ha,na,pa,fa,E,C,ea,K)):R$(K,da,ea,C):null}}(l,m,h,p,q,D,v,k,b,c,d,e,f)),l=$APP.z(D),m=null,h=0);p=0}else return null}})}],null),new $APP.n(null,2,[j$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.JH);a=$APP.IE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.GH.l($APP.F(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"]));a=$APP.r($APP.Bt.h(c))?$APP.Zj("(do %s\n)", | ||
"%s",a):a;a=$APP.QG.g(a,$APP.Rh.l(c,$APP.Bt,$APP.Bt.h(c),$APP.F([$APP.Fr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ly],null)),$APP.Lp,$APP.r($APP.Bt.h(c))?$APP.Op:$APP.Pp,$APP.gu,function(){var f=$APP.Bt.h(c);return $APP.r(f)?!1!==$APP.gu.h(c):f}()])));a=$APP.r($APP.Bt.h(c))?$APP.Zj("(async function() { %s })()","%s",a):a;var d=esm_import$fs.mkdtempSync(".tmp"),e=[$APP.t.h(d),"/squint.mjs"].join("");esm_import$fs.writeFileSync(e,a,"utf-8");$APP.r(Vha.h(c))&&$APP.GH.l($APP.F([a]));if(!1===Wha.h(c))return null; | ||
e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return($APP.r($APP.Bt.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.Bt.h(c))?$APP.FH.l($APP.F([f])):null}).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.r(function(){var f=U$.h(c);return $APP.r(f)?f:$APP.A.g("help",$APP.y(b))||$APP.Qd(b)}())?$APP.GH.l($APP.F(["Squint v0.7.104\n\nUsage: squint \x3csubcommand\x3e \x3copts\x3e\n\nSubcommands:\n\n-e \x3cexpr\x3e Compile and run expression.\nrun \x3cfile.cljs\x3e Compile and run a file\nwatch Watch :paths in squint.edn\ncompile \x3cfile.cljs\x3e ... Compile file(s)\nrepl Start repl\nhelp Print this help\n\nUse squint \x3csubcommand\x3e --help to show more info."])): | ||
V$(c,b)}],null)],null);(function(){var a=new $APP.n(null,2,[$APP.Ir,new $APP.n(null,1,[Xha,U$],null),e$,new $APP.n(null,4,[$APP.gu,p$,$APP.Jr,p$,$APP.zH,$APP.nl,$APP.Bt,p$],null)],null),b=l$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,j$),e=$APP.fe.g(c,k$);return $APP.oe.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,j$),m=$APP.fe.g(f,$APP.yo),h=Rha(l,d);if($APP.r(h)){k=function(){var v=null==h?null:$APP.x(h);return null==v?null:$APP.lg(v)}();k=$APP.R.g(k,e);f=Qha(k,V9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k, | ||
$APP.JH);f=$APP.fe.g(k,k$);k=$APP.fe.g(k,j$);var q=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,k$,q,$APP.F([W$,q,$APP.JH,p,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,Yha)})(); |
@@ -9,9 +9,9 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a())].join("").toLowerCase())};$APP.fH=function(a){return a instanceof Error?a.message:null};$APP.gH=function(a){return $APP.Er.g(a,/\n|\r\n/)};hH=function(a,b){return $APP.r($APP.r(b)?$APP.Qh.g(b,""):b)?$APP.Em(a,$APP.Kk(b)):null};iH=function(a,b){return $APP.Ef(function(c){c=esm_import$path.resolve(a,[$APP.t.h(b),".",$APP.t.h(c)].join(""));return $APP.r(esm_import$fs.existsSync(c))?c:null},new $APP.J(null,2,5,$APP.N,["cljc","cljs"],null))}; | ||
$APP.lH=function(a){var b=$APP.Zj($APP.Zj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return iH(c,b)},$APP.jH.g($APP.v($APP.kH),new $APP.J(null,2,5,$APP.N,[".","src"],null)))}; | ||
sH=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Fr);a=$APP.jp($APP.hp(a),$APP.du);if($APP.be(a)&&$APP.A.g($APP.Dj,$APP.y(a))){a=$APP.x(a);$APP.y(a);a=$APP.z(a);var d=$APP.y(a);a=$APP.z(a);a=$APP.Ef(function(k){var l=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);return $APP.be(l)&&$APP.A.g(mH,$APP.y(l))?new $APP.J(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.nH.j(2,1,a));var e=$APP.B.j(a,0,null),f=$APP.B.j(a,1,null);return $APP.r(e)?shadow_esm_import("./compiler.sci.js").then(function(){var k=$APP.oH.h($APP.v($APP.pH)); | ||
return $APP.oe.j(function(l,m){return l.then(function(){var h=$APP.x(m),p=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var q=$APP.fe.g(h,$APP.Ar),u=$APP.fe.g(h,$APP.Br);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.fF,new $APP.G(null,new $APP.G(null,$APP.Mj,new $APP.G(null,p,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.J(null,1,5,$APP.N,[$APP.qH],null)):O}();k.h?k.h(D):k.call(null,D);var I=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null, | ||
rH,null,1,null),new $APP.G(null,$APP.S.h($APP.x($APP.R.g(new $APP.G(null,$APP.Mj,null,1,null),new $APP.G(null,p,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Kh(I);I=$APP.Oh(I);I=$APP.ui.g($APP.od,I);return $APP.bi(D,I)}()).then(function(D){return $APP.Wi.g(c,function(I){I=$APP.Uu(I,new $APP.J(null,2,5,$APP.N,[$APP.At,p],null),D);I=$APP.r(u)?$APP.Uu(I,new $APP.J(null,3,5,$APP.N,[d,$APP.Ir,u],null),p):I;return $APP.r(q)?$APP.Uu(I,new $APP.J(null,2,5,$APP.N,[d,$APP.Gr], | ||
$APP.lH=function(a){var b=$APP.Zj($APP.Zj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return iH(c,b)},$APP.jH.g($APP.u($APP.kH),new $APP.J(null,2,5,$APP.N,[".","src"],null)))}; | ||
sH=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Fr);a=$APP.jp($APP.hp(a),$APP.du);if($APP.be(a)&&$APP.A.g($APP.Dj,$APP.y(a))){a=$APP.x(a);$APP.y(a);a=$APP.z(a);var d=$APP.y(a);a=$APP.z(a);a=$APP.Ef(function(k){var l=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);return $APP.be(l)&&$APP.A.g(mH,$APP.y(l))?new $APP.J(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.nH.j(2,1,a));var e=$APP.B.j(a,0,null),f=$APP.B.j(a,1,null);return $APP.r(e)?shadow_esm_import("./compiler.sci.js").then(function(){var k=$APP.oH.h($APP.u($APP.pH)); | ||
return $APP.oe.j(function(l,m){return l.then(function(){var h=$APP.x(m),p=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var q=$APP.fe.g(h,$APP.Ar),v=$APP.fe.g(h,$APP.Br);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.eF,new $APP.G(null,new $APP.G(null,$APP.Mj,new $APP.G(null,p,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.J(null,1,5,$APP.N,[$APP.qH],null)):O}();k.h?k.h(D):k.call(null,D);var I=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null, | ||
rH,null,1,null),new $APP.G(null,$APP.S.h($APP.x($APP.R.g(new $APP.G(null,$APP.Mj,null,1,null),new $APP.G(null,p,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Kh(I);I=$APP.Oh(I);I=$APP.ui.g($APP.od,I);return $APP.bi(D,I)}()).then(function(D){return $APP.Wi.g(c,function(I){I=$APP.Uu(I,new $APP.J(null,2,5,$APP.N,[$APP.At,p],null),D);I=$APP.r(v)?$APP.Uu(I,new $APP.J(null,3,5,$APP.N,[d,$APP.Ir,v],null),p):I;return $APP.r(q)?$APP.Uu(I,new $APP.J(null,2,5,$APP.N,[d,$APP.Gr], | ||
null),$APP.bi(q,$APP.Hr.h(p))):I})})})},Promise.resolve(null),e)}):null}return null};tH=function(a,b){return Promise.resolve(sH(a,b)).then(function(){return $APP.ru(a,b,null)})}; | ||
$APP.uH=function(a,b){return $APP.oe.j(function(c,d){a:{var e=esm_import$path.resolve(d).split(esm_import$path.sep);for(var f=esm_import$path.resolve(a).split(esm_import$path.sep);;){var k=$APP.Qd(e);if(k){e=k;break a}if(k=$APP.x(f))if(k=$APP.A.g($APP.y(e),$APP.y(f)))e=$APP.cd(e),f=$APP.cd(f);else{e=k;break a}else{e=k;break a}}}return e?$APP.ld(esm_import$path.relative(d,a)):c},a,b)}; | ||
$APP.AH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.vH),c=$APP.fe.g(a,wH),d=$APP.fe.g(a,$APP.xH),e=$APP.fe.g(a,$APP.yH),f=$APP.fe.j(a,$APP.zH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return tH(c,$APP.Rh.j(a,$APP.Fr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ky],null)))).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.qu),m=$APP.fe.g(k,$APP.wq),h=$APP.jH.g($APP.v($APP.kH),new $APP.J(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?h=d:(h=$APP.uH(b,h), | ||
$APP.AH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.vH),c=$APP.fe.g(a,wH),d=$APP.fe.g(a,$APP.xH),e=$APP.fe.g(a,$APP.yH),f=$APP.fe.j(a,$APP.zH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return tH(c,$APP.Rh.j(a,$APP.Fr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ly],null)))).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.qu),m=$APP.fe.g(k,$APP.wq),h=$APP.jH.g($APP.u($APP.kH),new $APP.J(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?h=d:(h=$APP.uH(b,h), | ||
$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Zj(e,/^\./,"")].join(""):null,m=$APP.r(m)?m:".mjs"),h=$APP.Zj(h,/.clj(s|c)$/,m));p=q.call(p,f,h);q=esm_import$path.dirname(p);$APP.r(esm_import$fs.existsSync(q))||esm_import$fs.mkdirSync(q,{recursive:!0});if(!$APP.r(esm_import$fs.existsSync(q)))throw Error("File not found, make sure output-dir is a valid path: ",new $APP.n(null,2,[$APP.zH,f,$APP.xH,p],null));esm_import$fs.writeFileSync(p,l,"utf-8");return $APP.Rh.j(k,$APP.xH,p)})}; | ||
@@ -26,5 +26,5 @@ BH=function(a){return $APP.su.l(a,$APP.F([$APP.tu,!0]))};CH=function(a){return function(){function b(d){var e=null;if(0<arguments.length){e=0;for(var f=Array(arguments.length-0);e<f.length;)f[e]=arguments[e+0],++e;e=new $APP.Xc(f,0,null)}return c.call(this,e)}function c(d){d=$APP.Tu.g(BH,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.nv):$APP.nv(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.YG.prototype.add=function(a){return this.C.push(a)}; | ||
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.nH.g=function(a,b){return $APP.nH.j(a,a,b)};$APP.nH.j=function(a,b,c){return new $APP.Qe(null,function(){var d=$APP.x(c);return d?$APP.He($APP.Mf.g(a,d),$APP.nH.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.nH.m=3;$APP.cH.prototype.nb=function(){$APP.r(this.f)&&(this.value=this.f.v?this.f.v():this.f.call(null),this.f=null);return this.value};$APP.cH.prototype.$c=function(){return $APP.Za(this.f)}; | ||
$APP.cH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.xD,null==this.f?$APP.Dw:$APP.iB,$APP.lv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.HH=function HH(a){switch(arguments.length){case 1:return HH.h(arguments[0]);case 2:return HH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.HH.h=function(a){return hH(new $APP.n(null,3,[$APP.Cm,$APP.v($APP.SF),$APP.Dm,$APP.v($APP.RF),$APP.il,null],null),a)};$APP.HH.g=function(a,b){return hH($APP.Tm.j($APP.Qk.l($APP.F([new $APP.n(null,1,[$APP.Dm,$APP.v($APP.RF)],null),a])),$APP.Cm,function(c){return $APP.Qk.l($APP.F([$APP.v($APP.SF),c]))}),b)};$APP.HH.m=2;$APP.IH=new $APP.H(null,"port","port",1534937262);$APP.qH=new $APP.H(null,"reload","reload",863702807);$APP.JH=new $APP.H(null,"opts","opts",155075701); | ||
$APP.cH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.zD,null==this.f?$APP.Ew:$APP.jB,$APP.lv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.HH=function HH(a){switch(arguments.length){case 1:return HH.h(arguments[0]);case 2:return HH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.HH.h=function(a){return hH(new $APP.n(null,3,[$APP.Cm,$APP.u($APP.SF),$APP.Dm,$APP.u($APP.RF),$APP.il,null],null),a)};$APP.HH.g=function(a,b){return hH($APP.Tm.j($APP.Qk.l($APP.F([new $APP.n(null,1,[$APP.Dm,$APP.u($APP.RF)],null),a])),$APP.Cm,function(c){return $APP.Qk.l($APP.F([$APP.u($APP.SF),c]))}),b)};$APP.HH.m=2;$APP.IH=new $APP.H(null,"port","port",1534937262);$APP.qH=new $APP.H(null,"reload","reload",863702807);$APP.JH=new $APP.H(null,"opts","opts",155075701); | ||
$APP.zH=new $APP.H(null,"output-dir","output-dir",-290956991);mH=new $APP.H(null,"require-macros","require-macros",707947416);$APP.KH=new $APP.H(null,"message","message",-406056002);$APP.vH=new $APP.H(null,"in-file","in-file",-1682176692);$APP.LH=new $APP.H(null,"id","id",-1388402092);rH=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.jH=new $APP.H(null,"paths","paths",-1807389588);$APP.MH=new $APP.H(null,"eval","eval",-1103567905); | ||
$APP.oH=new $APP.H(null,"eval-form","eval-form",-1934118476);$APP.xH=new $APP.H(null,"out-file","out-file",-1187066405);wH=new $APP.H(null,"in-str","in-str",-1014658121);$APP.yH=new $APP.H(null,"extension","extension",1453374065);$APP.kH=new $APP.cH(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.HH.h(a)}else a=null;return a},null);var NH;$APP.pH=$APP.Vi.h(null);NH=CH(tH);export const compileFile=CH($APP.AH);export const compileString=NH; |
@@ -10,6 +10,6 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
"version-string",a)},gha=function(a,b,c){if($APP.r(a))if(a=O9.h?O9.h(a):O9.call(null,a),$APP.r(a)){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.q9),e=$APP.fe.g(b,$APP.i9),f=$APP.fe.g(b,$APP.s9);b=$APP.Qa;var k=$APP.li,l=$APP.R6;$APP.Qa=e;$APP.li=f;$APP.R6=d;try{var m=new $APP.Fa;d=$APP.Ta;e=$APP.Ua;$APP.Ta=!0;$APP.Ua=function(h){return m.append(h)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ua=e,$APP.Ta=d}return $APP.t.h(m)}finally{$APP.R6=l,$APP.li=k,$APP.Qa=b}}else return L9($APP.F(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])), | ||
$APP.Ri.l($APP.F([c]));else return $APP.Ri.l($APP.F([c]))},iha=function(a){a:{var b=$APP.lr;$APP.lr=$APP.v(P9);try{var c=$APP.ru(a,new $APP.n(null,5,[$APP.Lp,$APP.Op,$APP.Fr,hha,$APP.gu,!0,$APP.Bt,!0,$APP.Rp,!0],null),null);break a}finally{$APP.lr=b}c=void 0}c=$APP.jf(c);a=$APP.fe.g(c,$APP.qu);c=$APP.fe.g(c,$APP.T);a=$APP.Zj("(async function () {\n%s\n}) ()","%s",a);$APP.Jf(P9,c);return a},oha=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.T);a=$APP.fe.g(c,jha);$APP.fe.g(c,$APP.$k);$APP.fe.g(c,kha); | ||
$APP.fe.g(c,lha);return Promise.resolve(a).then(iha).then(function(d){$APP.GH.l($APP.F(["About to eval:"]));$APP.GH.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.v(P9)),"value",gha(mha.h(c),nha.h(c),d)],null);return b.g?b.g(c,d):b.call(null,c,d)}).catch(function(d){console.error(d);var e=$APP.KH.h($APP.pj(d));e=$APP.r(e)?e:d.message;$APP.r(e)&&(e=new $APP.n(null,1,["err",[$APP.t.h(e),"\n"].join("")],null),b.g?b.g(c,e):b.call(null,c,e));d=new $APP.n(null, | ||
2,["ex",$APP.t.h(d),"ns",$APP.t.h($APP.lr)],null);return b.g?b.g(c,d):b.call(null,c,d)}).finally(function(){var d=new $APP.n(null,2,["ns",$APP.t.h($APP.v(P9)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},Q9=function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.T);return null},bha=function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,M9),d=$APP.fe.g(R9,c);if($APP.r(d))return d.g?d.g(a,b):d.call(null,a,b);console.warn($APP.Jp.g(" ",$APP.F(["Unhandled operation",c]))); | ||
c=new $APP.n(null,1,["status",new $APP.J(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},pha=function(a){return function(b,c){return a.write(S9(c))}},qha=function(a,b){L9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=eha(),d=aha(fha(pha(b))),e=$APP.Vi.h(null);b.on("data",function(f){var k=$APP.v(e);if($APP.r(k)){f=[$APP.t.h(k),$APP.t.h(f)].join("");$APP.Jf(e,null);var l=f}else l=f;a:for(f=$APP.F([$APP.tu,!0]),k=$APP.kg;;){var m=$APP.Gf.j(T9, | ||
$APP.Ri.l($APP.F([c]));else return $APP.Ri.l($APP.F([c]))},iha=function(a){a:{var b=$APP.lr;$APP.lr=$APP.u(P9);try{var c=$APP.ru(a,new $APP.n(null,5,[$APP.Lp,$APP.Op,$APP.Fr,hha,$APP.gu,!0,$APP.Bt,!0,$APP.Rp,!0],null),null);break a}finally{$APP.lr=b}c=void 0}c=$APP.jf(c);a=$APP.fe.g(c,$APP.qu);c=$APP.fe.g(c,$APP.T);a=$APP.Zj("(async function () {\n%s\n}) ()","%s",a);$APP.Jf(P9,c);return a},oha=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.T);a=$APP.fe.g(c,jha);$APP.fe.g(c,$APP.$k);$APP.fe.g(c,kha); | ||
$APP.fe.g(c,lha);return Promise.resolve(a).then(iha).then(function(d){$APP.GH.l($APP.F(["About to eval:"]));$APP.GH.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(P9)),"value",gha(mha.h(c),nha.h(c),d)],null);return b.g?b.g(c,d):b.call(null,c,d)}).catch(function(d){console.error(d);var e=$APP.KH.h($APP.pj(d));e=$APP.r(e)?e:d.message;$APP.r(e)&&(e=new $APP.n(null,1,["err",[$APP.t.h(e),"\n"].join("")],null),b.g?b.g(c,e):b.call(null,c,e));d=new $APP.n(null, | ||
2,["ex",$APP.t.h(d),"ns",$APP.t.h($APP.lr)],null);return b.g?b.g(c,d):b.call(null,c,d)}).finally(function(){var d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(P9)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},Q9=function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.T);return null},bha=function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,M9),d=$APP.fe.g(R9,c);if($APP.r(d))return d.g?d.g(a,b):d.call(null,a,b);console.warn($APP.Jp.g(" ",$APP.F(["Unhandled operation",c]))); | ||
c=new $APP.n(null,1,["status",new $APP.J(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},pha=function(a){return function(b,c){return a.write(S9(c))}},qha=function(a,b){L9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=eha(),d=aha(fha(pha(b))),e=$APP.Vi.h(null);b.on("data",function(f){var k=$APP.u(e);if($APP.r(k)){f=[$APP.t.h(k),$APP.t.h(f)].join("");$APP.Jf(e,null);var l=f}else l=f;a:for(f=$APP.F([$APP.tu,!0]),k=$APP.kg;;){var m=$APP.Gf.j(T9, | ||
l,f);l=$APP.B.j(m,0,null);m=$APP.B.j(m,1,null);if(null==l){k=new $APP.J(null,2,5,$APP.N,[k,m],null);break a}k=$APP.Ee.g(k,l);l=m}f=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);$APP.gk(k)||$APP.Jf(e,k);f=$APP.x(f);k=null;for(var h=m=0;;)if(h<m)l=k.ba(null,h),c(l,d),h+=1;else if(f=$APP.x(f))k=f,$APP.Yd(k)?(f=$APP.uc(k),m=$APP.vc(k),k=f,l=$APP.xd(f),f=m,m=l):(l=$APP.y(k),c(l,d),f=$APP.z(k),k=null,m=0),h=0;else return null});return b.on("close",function(f){return $APP.r(f)?L9($APP.F(["Connection lost"])): | ||
@@ -23,3 +23,3 @@ L9($APP.F(["Connection closed"]))})},lha=new $APP.H(null,"_line","_line",232847719),nha=new $APP.H("nrepl.middleware.print","options","nrepl.middleware.print/options",868480159),$ga=new $APP.H(null,"session","session",1008279103),rha=new $APP.H(null,"lookup","lookup",1225356838),sha=new $APP.H(null,"load-file","load-file",-424586670),kha=new $APP.H(null,"_load-file?","_load-file?",-1198848711),M9=new $APP.H(null,"op","op",-1882987955),tha=new $APP.H(null,"describe","describe",1369790582),jha=new $APP.H(null, | ||
var hha=$APP.Vi.h($APP.hf),R9=$APP.vh([rha,xha,sha,uha,wha,tha,yha,Aha,$APP.MH],[Q9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.$k);return null},Q9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.eH()),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a,b){var c=new $APP.n(null,4,["versions",new $APP.n(null, | ||
2,["nbb-nrepl",N9("TODO"),"node",N9(process.version)],null),"aux",$APP.hf,"ops",$APP.bi($APP.ui.g($APP.ai,$APP.Kh(R9)),$APP.Hr.h($APP.hf)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},Q9,function(){return null},function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,$APP.T);$APP.FH.l($APP.F([$APP.T,c]));return oha($APP.Rh.j(a,$APP.T,$APP.v(P9)),b)}]),Bha=$APP.Vi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.IH.h(a);return $APP.r(e)?e:0}(),c=function(){var e=zha.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:vha.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Tk.g(qha,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.GH.l($APP.F([["nREPL server started on port ",$APP.t.h(f)," on host ",$APP.t.h(e)," - nrepl://",$APP.t.h(e), | ||
2,["nbb-nrepl",N9("TODO"),"node",N9(process.version)],null),"aux",$APP.hf,"ops",$APP.bi($APP.ui.g($APP.ai,$APP.Kh(R9)),$APP.Hr.h($APP.hf)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},Q9,function(){return null},function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,$APP.T);$APP.FH.l($APP.F([$APP.T,c]));return oha($APP.Rh.j(a,$APP.T,$APP.u(P9)),b)}]),Bha=$APP.Vi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.IH.h(a);return $APP.r(e)?e:0}(),c=function(){var e=zha.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:vha.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Tk.g(qha,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.GH.l($APP.F([["nREPL server started on port ",$APP.t.h(f)," on host ",$APP.t.h(e)," - nrepl://",$APP.t.h(e), | ||
":",$APP.t.h(f)].join("")]));try{return esm_import$fs.writeFileSync(".nrepl-port",$APP.t.h(f))}catch(k){return console.warn($APP.Jp.g(" ",$APP.F(["Could not write .nrepl-port",k])))}});return $APP.Jf(Bha,d)})}; |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.7.103", | ||
"version": "0.7.104", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "core.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1383025
8277