squint-cljs
Advanced tools
Comparing version 0.8.118 to 0.8.119
@@ -6,48 +6,45 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
import*as esm_import$fs from"fs";import*as esm_import$net from"net";import*as esm_import$readline from"readline";import*as esm_import$squint_cljs$core from"squint-cljs/core.js";import*as esm_import$node_util from"node:util";import*as esm_import$url from"url";import*as esm_import$path from"path"; | ||
var Nha=function(a,b){return $APP.Vd(a)&&$APP.Vd(b)?$APP.Qk.l($APP.F([a,b])):$APP.Rd(a)&&($APP.Ud(a)||$APP.Td(a))&&$APP.Rd(b)&&($APP.Ud(b)||$APP.Td(b))?$APP.Rg.g(a,b):b},U9=function(a,b){return $APP.ne.j(function(c,d){return $APP.ov.l(Nha,$APP.F([c,d]))},a,b)},V9=function(a){throw $APP.cl.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.n(null,1,[Oha,a],null));},W9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:V9(a)},Pha=function(a){var b=JSON.parse(a);return $APP.eH(b)?b:V9(a)},Qha= | ||
function(a){var b=JSON.parse(a);return $APP.fH(b)?b:V9(a)},X9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:V9(a)},Y9=function(a){return"string"===typeof a?$APP.B.j(a,0,null):null},Z9=function(a){return $APP.A.g(":",Y9(a))?$APP.vi.h($APP.ji.g(a,1)):$APP.vi.h(a)},Rha=function(a){return $APP.Rd(a)?$APP.y(a):a},$9=function(a){if("string"===typeof a)try{var b=Y9(a);if($APP.A.g("true",a)||$APP.A.g("false",a))var c=W9(a);else{if($APP.A.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e= | ||
X9(a);else{var f=$APP.A.g(":",b);var k=f?$APP.hi(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?Z9(a):a}d=e}c=d}return c}catch(l){return a}else return a},a$=function(a,b,c,d){throw $APP.cl.j(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.Ri.l($APP.F([a]))].join(""),c instanceof $APP.H?" to ":" with ",$APP.t.h(c instanceof $APP.H?$APP.ai(c):c)].join(""),new $APP.n(null,2,[Sha,a,Tha,c],null),d);},Uha=function(a,b,c){var d=function(){switch(b instanceof $APP.H?b.da:null){case "boolean":case "bool":return W9; | ||
case "int":case "long":return Pha;case "double":return Qha;case "number":return X9;case "symbol":return $APP.Hi;case "keyword":return Z9;case "string":return $APP.se;case "edn":return $APP.RH;case "auto":return $9;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=a$(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?a$(a,c,b,null):d},b$=function(a,b,c){a=$APP.fe.g(a,b);c=$APP.r(a)?a:$APP.Rd(c)?$APP.Hd(c):null;return $APP.r(c)?$APP.Rd(c)?$APP.Zq.g($APP.Ee, | ||
c):c:null},c$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.jH(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},Vha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?Uha(e,d,f):$9(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},Wha=function(a){return $APP.ne.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, | ||
d$),k=$APP.fe.g(e,e$);c=$APP.fe.g(e,$APP.Dm);var l=$APP.fe.g(e,$APP.hF);e=$APP.fe.g(e,f$);b=$APP.r(f)?$APP.Tm.J(b,d$,$APP.Rh,d,f):b;b=$APP.r(k)?$APP.Tm.j(b,e$,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,[e$,k],null));return $APP.Rh.j(m,k,d)}):b;b=$APP.r(l)?$APP.Tm.j(b,$APP.hF,$APP.Zq.g(function(m){return $APP.Ee.g(m,d)},$APP.Vh)):b;b=$APP.r(e)?$APP.Tm.J(b,f$,$APP.Rh,d,e):b;return $APP.r(c)? | ||
$APP.Tm.J(b,g$,$APP.Rh,d,c):b},$APP.hf,a)},k$=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,h$);b=$APP.kH(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,[i$,a,j$,b],null)},m$=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.I(null,2,5,$APP.N,[$APP.R.g($APP.$u.g(b,a),$APP.Nf.g(c,a)),$APP.Nf.g(c,b)],null)}else a=new $APP.I(null,2,5,$APP.N,[a,b],null); | ||
else a=new $APP.I(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,[j$,a,l$,b],null)},u$=function(a,b,c,d,e){var f=Y9(a),k="string"===typeof a?$APP.B.j(a,1,null):null,l;if(l=$APP.A.g(f,"-")){try{var m=X9($APP.t.h(k))}catch(h){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?n$:null;f=$APP.A.g(":",f);c=$APP.Qh.g(n$,b)&&f&&($APP.A.g(o$,d)||$APP.Za(c)||$APP.A.g(e,c));d=$APP.r(b)?b:c?p$:null;a=l?$APP.r(k)?$APP.Qh.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.n(null, | ||
5,[$APP.lx,d,q$,l,r$,a,s$,c,t$,f],null)},$ha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[v$,d,$APP.Xk,w$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=v$.h(b),e=$APP.r(d)?U9(b,$APP.F([Wha(d)])):b,f=d$.h(e),k=function(){var vb=e$.h(e);return $APP.r(vb)?vb:$APP.Lr.h(e)}(),l=Xha.h(e),m=$APP.hF.h(e),h=g$.h(e),q=h$.h(e),p=function(){var vb=x$.h(e);return $APP.r(vb)?vb:Yha.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,p)?v:null==p?null:$APP.Zh(p),J=f$.h(e),O=function(){var vb=Zha.h(e);return $APP.r(vb)?vb:function(Zb){Zb=$APP.jf(Zb);var Jc=$APP.fe.g(Zb,y$);throw $APP.cl.g(Jc,Zb);}}(),P=k$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,i$),ha=$APP.fe.g(W,j$),oa=function(){var vb=l$.h(e);vb=$APP.r(vb)?vb:z$.h(e);return $APP.r(vb)?m$(ca,vb):new $APP.n(null,2,[l$,null,j$,ha],null)}(),pa=$APP.jf(oa),fa=$APP.fe.g(pa,j$),E=$APP.fe.g(pa,l$),C=$APP.Qh.g(fa,ha)?new $APP.I(null,2,5,$APP.N,[null,$APP.R.g(fa,ha)],null): | ||
new $APP.I(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,Jc=null,Pe=$APP.r(q)?n$:null,hd=$APP.x(K),Kg=E;;){if($APP.Za(hd))return new $APP.I(null,3,5,$APP.N,[vb,Zb,Jc],null);var pg=$APP.y(hd),Uc=pg instanceof $APP.H;if(Uc){Zb=c$(vb,Zb,Jc,null);var oe=pg;hd=$APP.z(hd);vb=Zb;Zb=oe}else{var Dl=!0===pg,Tf=$APP.t.h(pg);oe=b$(l,Zb,$APP.fe.g(f,Zb));var yi=$APP.fe.g(f,Zb),El=u$(Tf,Pe,Zb,yi,Jc),Lh=$APP.jf(El),Fl=$APP.fe.g(Lh,q$),Mh=$APP.fe.g(Lh, | ||
r$),Gl=$APP.fe.g(Lh,s$),Uf=$APP.fe.g(Lh,$APP.lx),pk=$APP.fe.g(Lh,t$);if($APP.r(function(){var Re=Fl;return $APP.r(Re)?Re:Gl}())){var Yc=$APP.qa(Tf,"--"),qk=Yc&&$APP.A.g("--",Tf);if(qk){var Hl=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Re=vb;return Hl?$APP.jo.A(Re,$APP.bv,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(Hl)):Re}(),Zb,Jc],null)}var rk=Yc?$APP.ji.g(Tf,2):$APP.Zj(Tf,/^(:|-|)/,""),Af=Yc?$APP.Hr.g(rk,/=/):new $APP.I(null,1,5,$APP.N,[rk],null),Sd=$APP.B.j(Af,0,null),Ce= | ||
$APP.B.j(Af,1,null),Vb=$APP.vi.h(Sd),Fc=$APP.fe.j(k,Vb,Vb);if($APP.r(Ce))Jc=c$(vb,Zb,Jc,oe),Zb=Fc,Pe=Uf,hd=$APP.He(Ce,$APP.cd(hd)),vb=Jc,Jc=null;else{var Ab=$APP.z(hd),Qe=$APP.y(Ab),uw=u$(Qe,Uf,Zb,yi,Jc);if($APP.r(function(){var Re=q$.h(uw);return $APP.r(Re)?Re:$APP.Qd(Ab)}()))if($APP.r(Mh)){var vw=$APP.ai(Fc);Jc=$APP.Zp.l(function(){return function(Re){return new $APP.I(null,2,5,$APP.N,[["-",$APP.t.h(Re)].join(""),!0],null)}}(vb,Zb,Jc,Pe,hd,Kg,vw,Ab,Qe,uw,rk,Af,Sd,Ce,Vb,Fc,Yc,qk,Dl,Tf,oe,yi,El,Lh, | ||
Fl,Mh,Gl,Uf,pk,pg,Uc,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K),$APP.F([vw]));hd=$APP.R.g(Jc,Ab);Pe=Uf;Jc=Zb=null}else hd=$APP.he(v,Fc)?null:$APP.$G($APP.t.h(Fc),":no-"),Pe=$APP.r(hd)?$APP.vi.h($APP.Zj($APP.t.h(Fc),":no-","")):Fc,hd=$APP.He($APP.Za(hd),Ab),Zb=c$(vb,Zb,Jc,oe),oe=Pe,Pe=Uf,vb=Zb,Zb=oe;else Zb=c$(vb,Zb,Jc,oe),oe=Fc,Pe=Uf,hd=Ab,vb=Zb,Zb=oe}}else if(qk=$APP.A.g(o$,yi)&&$APP.Qh.g(Tf,"true")&&$APP.Qh.g(Tf,"false")||$APP.A.g(Jc,Zb)&&$APP.Za(oe))if(Kg=$APP.r(hd)?$APP.r(Kg)?m$(hd, | ||
Kg):new $APP.n(null,1,[j$,hd],null):new $APP.n(null,1,[j$,hd],null),Pe=$APP.jf(Kg),Kg=$APP.fe.g(Pe,j$),Pe=$APP.fe.g(Pe,l$),$APP.Qh.g(hd,Kg))oe=Pe,Pe=Uf,hd=Kg,Kg=oe;else return new $APP.I(null,3,5,$APP.N,[$APP.jo.A(vb,$APP.bv,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(hd)),Zb,Jc],null);else{try{var Yd=Vha(vb,Zb,oe,Rha(yi),Tf,Dl)}catch(Re){c(new $APP.n(null,4,[A$,d$,y$,$APP.oH(Re),B$,Zb,C$,Tf],null)),Yd=vb}Jc=$APP.r(function(){var Re=$APP.A.g(p$,Uf);return Re?pk:Re}())?null:Zb;oe=$APP.r(function(){var Re= | ||
$APP.A.g(p$,Uf);return Re?pk:Re}())?null:Zb;Pe=Uf;hd=$APP.z(hd);vb=Yd;Zb=Jc;Jc=oe}}}}(),da=$APP.B.j(M,0,null),ia=$APP.B.j(M,1,null),ja=$APP.B.j(M,2,null),sa=b$(l,ia,$APP.fe.g(f,ia)),ta=function(){var vb=c$(da,ia,ja,sa);return $APP.x(ea)?$APP.jo.A(vb,$APP.Nk,new $APP.I(null,2,5,$APP.N,[w$,j$],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,[A$,x$,y$,["Unknown option: ",$APP.t.h(Ha)].join(""),x$,D,B$,Ha],null));Ca+=1}else if(a=$APP.x(a))b=a,$APP.Zd(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,[A$,x$,y$,["Unknown option: ",$APP.t.h(a)].join(""),x$,D,B$,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.jH(wa,Ha))||c(new $APP.n(null,4,[A$,$APP.hF,y$,["Required option: ", | ||
$APP.t.h(Ha)].join(""),$APP.hF,m,B$,Ha],null)),Ca+=1;else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.r($APP.jH(wa,a))||c(new $APP.n(null,4,[A$,$APP.hF,y$,["Required option: ",$APP.t.h(a)].join(""),$APP.hF,m,B$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(J))for(var Da=$APP.x(J),Aa=null,Oa=0,Ua=0;;)if(Ua<Oa){var db=Aa.ba(null,Ua),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Yb=function(){var vb=(vb=$APP.Vd(Bb))?D$.h(Bb):vb;return $APP.r(vb)? | ||
vb:Bb}(),qc=$APP.jH(wa,ub);if($APP.r(qc)){var $c=qc,Tb=$APP.B.j($c,0,null),of=$APP.B.j($c,1,null);if(!$APP.r(Yb.h?Yb.h(of):Yb.call(null,of))){var lk=function(){var vb=E$.h(Bb);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,$c,Tb,of,qc,Yb,db,ub,Bb,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null, | ||
5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,ub,C$,of],null);return lk.h?lk.h(vb):lk.call(null,vb)}(),f$,J,B$,ub,C$,of],null))}}Ua+=1}else{var Al=$APP.x(Da);if(Al){var wi=Al;if($APP.Zd(wi))ya=$APP.uc(wi),a=$APP.vc(wi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var mk=$APP.y(wi),nk=$APP.B.j(mk,0,null),sj=$APP.B.j(mk,1,null),ok=function(){var vb=(vb=$APP.Vd(sj))?D$.h(sj):vb;return $APP.r(vb)?vb:sj}(),Bl=$APP.jH(wa,nk);if($APP.r(Bl)){var Ic=Bl,tj=$APP.B.j(Ic,0,null),xi=$APP.B.j(Ic,1,null);if(!$APP.r(ok.h? | ||
ok.h(xi):ok.call(null,xi))){var Cl=function(){var vb=E$.h(sj);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,Ic,tj,xi,Bl,ok,mk,nk,sj,wi,Al,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null,5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,nk,C$,xi],null);return Cl.h?Cl.h(vb):Cl.call(null,vb)}(), | ||
f$,J,B$,nk,C$,xi],null))}}Da=$APP.z(wi);Aa=null;Oa=0}Ua=0}else break}return wa},aia=function(a,b){a=$ha(a,b);b=w$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.TH,$APP.Rk.g(a,w$))},bia=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},J$=function(a,b){$APP.Jf(F$,!1);a.setPrompt([$APP.t.h($APP.u(G$)),"\x3d\x3e "].join(""));a.prompt();return $APP.gk($APP.u(H$))?null:I$.g?I$.g(b,a):I$.call(null,b,a)},K$=function(a){var b=$APP.Bk(a);a=$APP.Ck(a); | ||
var c=$APP.pH($APP.u(H$));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(H$,$APP.Jp.g("\n",$APP.He(a,c)))},cia=function(a,b,c){var d=function(){var k=$APP.or;$APP.or=$APP.u(G$);try{a:{var l=$APP.La;$APP.La=!0;try{var m=$APP.Ri.l($APP.F([a]));break a}finally{$APP.La=l}m=void 0}return $APP.zu(m,new $APP.n(null,3,[$APP.Kp,$APP.Pp,$APP.pu,!0,$APP.$p,!0],null),$APP.u(L$))}finally{$APP.or=k}}(),e=$APP.jf(d),f=$APP.fe.g(e,$APP.yu);d=$APP.fe.g(e,$APP.T);$APP.Jf(L$, | ||
e);e=$APP.Zj("(async function () {\n%s\n}) ()","%s",f);$APP.Jf(G$,d);return Promise.resolve(eval(e)).then(function(k){$APP.r(c)?c.write(esm_import$node_util.inspect(k),"\n"):console.log(k);return I$.g?I$.g(c,b):I$.call(null,c,b)}).catch(function(k){esm_import$squint_cljs$core.println(k);return J$(b,c)})},I$=function(a,b){if($APP.r(function(){var e=$APP.u(F$);return $APP.r(e)?e:!$APP.gk($APP.u(H$))}())){$APP.Jf(F$,!0);var c=$APP.hp($APP.u(H$)),d=function(){try{return $APP.jp(c,$APP.mu)}catch(f){var e= | ||
f;if(-1!=$APP.oH(e).indexOf("EOF while reading"))return M$;K$(c);$APP.PH.l($APP.F([$APP.t.h(e)]));return N$}}();if($APP.A.g(N$,d))return J$(b,a);if($APP.A.g(M$,d))return $APP.Jf(F$,!1);K$(c);return $APP.A.g($APP.ip,d)?J$(b,a):cia(d,b,a)}return null},O$=function(a,b){a.on("line",function(c){$APP.Wi.A(H$,$APP.t,c,"\n");return I$(b,a)})},dia=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.QH.l($APP.F(["Client closed connection."]))})}, | ||
P$=function(a,b,c){return $APP.r(c)?esm_import$path.resolve(c,$APP.EH(a,b)):a},Q$=function(a,b,c){var d=$APP.JH.h(a),e=$APP.sH.h(a);b=P$(b,e,d);c=$APP.uH(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.IH.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= | ||
var Lha=function(a,b){return $APP.Vd(a)&&$APP.Vd(b)?$APP.Qk.l($APP.F([a,b])):$APP.Rd(a)&&($APP.Ud(a)||$APP.Td(a))&&$APP.Rd(b)&&($APP.Ud(b)||$APP.Td(b))?$APP.Rg.g(a,b):b},W9=function(a,b){return $APP.oe.j(function(c,d){return $APP.ov.l(Lha,$APP.F([c,d]))},a,b)},X9=function(a){throw $APP.cl.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.n(null,1,[Mha,a],null));},Y9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:X9(a)},Nha=function(a){var b=JSON.parse(a);return $APP.eH(b)?b:X9(a)},Oha= | ||
function(a){var b=JSON.parse(a);return $APP.fH(b)?b:X9(a)},Z9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:X9(a)},$9=function(a){return"string"===typeof a?$APP.B.j(a,0,null):null},a$=function(a){return $APP.A.g(":",$9(a))?$APP.vi.h($APP.ji.g(a,1)):$APP.vi.h(a)},Pha=function(a){return $APP.Rd(a)?$APP.y(a):a},b$=function(a){if("string"===typeof a)try{var b=$9(a);if($APP.A.g("true",a)||$APP.A.g("false",a))var c=Y9(a);else{if($APP.A.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e= | ||
Z9(a);else{var f=$APP.A.g(":",b);var k=f?$APP.hi(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?a$(a):a}d=e}c=d}return c}catch(l){return a}else return a},c$=function(a,b,c,d){throw $APP.cl.j(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.Ri.l($APP.F([a]))].join(""),c instanceof $APP.H?" to ":" with ",$APP.t.h(c instanceof $APP.H?$APP.ai(c):c)].join(""),new $APP.n(null,2,[Qha,a,Rha,c],null),d);},Sha=function(a,b,c){var d=function(){switch(b instanceof $APP.H?b.da:null){case "boolean":case "bool":return Y9; | ||
case "int":case "long":return Nha;case "double":return Oha;case "number":return Z9;case "symbol":return $APP.Hi;case "keyword":return a$;case "string":return $APP.se;case "edn":return $APP.RH;case "auto":return b$;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=c$(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?c$(a,c,b,null):d},d$=function(a,b,c){a=$APP.fe.g(a,b);c=$APP.r(a)?a:$APP.Rd(c)?$APP.Hd(c):null;return $APP.r(c)?$APP.Rd(c)?$APP.Zq.g($APP.Ee, | ||
c):c:null},e$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.jH(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},Tha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?Sha(e,d,f):b$(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},Uha=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, | ||
f$),k=$APP.fe.g(e,g$);c=$APP.fe.g(e,$APP.Dm);var l=$APP.fe.g(e,$APP.iF);e=$APP.fe.g(e,h$);b=$APP.r(f)?$APP.Tm.J(b,f$,$APP.Rh,d,f):b;b=$APP.r(k)?$APP.Tm.j(b,g$,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,[g$,k],null));return $APP.Rh.j(m,k,d)}):b;b=$APP.r(l)?$APP.Tm.j(b,$APP.iF,$APP.Zq.g(function(m){return $APP.Ee.g(m,d)},$APP.Vh)):b;b=$APP.r(e)?$APP.Tm.J(b,h$,$APP.Rh,d,e):b;return $APP.r(c)? | ||
$APP.Tm.J(b,i$,$APP.Rh,d,c):b},$APP.hf,a)},m$=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,j$);b=$APP.kH(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,[k$,a,l$,b],null)},o$=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.I(null,2,5,$APP.N,[$APP.R.g($APP.$u.g(b,a),$APP.Nf.g(c,a)),$APP.Nf.g(c,b)],null)}else a=new $APP.I(null,2,5,$APP.N,[a,b],null); | ||
else a=new $APP.I(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,[l$,a,n$,b],null)},w$=function(a,b,c,d,e){var f=$9(a),k="string"===typeof a?$APP.B.j(a,1,null):null,l;if(l=$APP.A.g(f,"-")){try{var m=Z9($APP.t.h(k))}catch(h){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?p$:null;f=$APP.A.g(":",f);c=$APP.Qh.g(p$,b)&&f&&($APP.A.g(q$,d)||$APP.Za(c)||$APP.A.g(e,c));d=$APP.r(b)?b:c?r$:null;a=l?$APP.r(k)?$APP.Qh.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.n(null, | ||
5,[$APP.lx,d,s$,l,t$,a,u$,c,v$,f],null)},Yha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[x$,d,$APP.Xk,y$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=x$.h(b),e=$APP.r(d)?W9(b,$APP.F([Uha(d)])):b,f=f$.h(e),k=function(){var vb=g$.h(e);return $APP.r(vb)?vb:$APP.Lr.h(e)}(),l=Vha.h(e),m=$APP.iF.h(e),h=i$.h(e),q=j$.h(e),p=function(){var vb=z$.h(e);return $APP.r(vb)?vb:Wha.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,p)?v:null==p?null:$APP.Zh(p),J=h$.h(e),O=function(){var vb=Xha.h(e);return $APP.r(vb)?vb:function(Zb){Zb=$APP.jf(Zb);var Jc=$APP.fe.g(Zb,A$);throw $APP.cl.g(Jc,Zb);}}(),P=m$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,k$),ia=$APP.fe.g(W,l$),oa=function(){var vb=n$.h(e);vb=$APP.r(vb)?vb:B$.h(e);return $APP.r(vb)?o$(ca,vb):new $APP.n(null,2,[n$,null,l$,ia],null)}(),pa=$APP.jf(oa),fa=$APP.fe.g(pa,l$),E=$APP.fe.g(pa,n$),C=$APP.Qh.g(fa,ia)?new $APP.I(null,2,5,$APP.N,[null,$APP.R.g(fa,ia)],null): | ||
new $APP.I(null,2,5,$APP.N,[ca,ia],null),ea=$APP.B.j(C,0,null),K=$APP.B.j(C,1,null),M=function(){for(var vb=$APP.hf,Zb=null,Jc=null,Pe=$APP.r(q)?p$:null,hd=$APP.x(K),Kg=E;;){if($APP.Za(hd))return new $APP.I(null,3,5,$APP.N,[vb,Zb,Jc],null);var pg=$APP.y(hd),Uc=pg instanceof $APP.H;if(Uc){Zb=e$(vb,Zb,Jc,null);var ne=pg;hd=$APP.z(hd);vb=Zb;Zb=ne}else{var Dl=!0===pg,Tf=$APP.t.h(pg);ne=d$(l,Zb,$APP.fe.g(f,Zb));var zi=$APP.fe.g(f,Zb),El=w$(Tf,Pe,Zb,zi,Jc),Lh=$APP.jf(El),Fl=$APP.fe.g(Lh,s$),Mh=$APP.fe.g(Lh, | ||
t$),Gl=$APP.fe.g(Lh,u$),Uf=$APP.fe.g(Lh,$APP.lx),qk=$APP.fe.g(Lh,v$);if($APP.r(function(){var Re=Fl;return $APP.r(Re)?Re:Gl}())){var Yc=$APP.qa(Tf,"--"),rk=Yc&&$APP.A.g("--",Tf);if(rk){var Hl=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Re=vb;return Hl?$APP.jo.A(Re,$APP.bv,new $APP.I(null,2,5,$APP.N,[y$,l$],null),$APP.lg(Hl)):Re}(),Zb,Jc],null)}var sk=Yc?$APP.ji.g(Tf,2):$APP.Zj(Tf,/^(:|-|)/,""),Af=Yc?$APP.Hr.g(sk,/=/):new $APP.I(null,1,5,$APP.N,[sk],null),Sd=$APP.B.j(Af,0,null),Ce= | ||
$APP.B.j(Af,1,null),Vb=$APP.vi.h(Sd),Fc=$APP.fe.j(k,Vb,Vb);if($APP.r(Ce))Jc=e$(vb,Zb,Jc,ne),Zb=Fc,Pe=Uf,hd=$APP.He(Ce,$APP.cd(hd)),vb=Jc,Jc=null;else{var Ab=$APP.z(hd),Qe=$APP.y(Ab),tw=w$(Qe,Uf,Zb,zi,Jc);if($APP.r(function(){var Re=s$.h(tw);return $APP.r(Re)?Re:$APP.Qd(Ab)}()))if($APP.r(Mh)){var uw=$APP.ai(Fc);Jc=$APP.Zp.l(function(){return function(Re){return new $APP.I(null,2,5,$APP.N,[["-",$APP.t.h(Re)].join(""),!0],null)}}(vb,Zb,Jc,Pe,hd,Kg,uw,Ab,Qe,tw,sk,Af,Sd,Ce,Vb,Fc,Yc,rk,Dl,Tf,ne,zi,El,Lh, | ||
Fl,Mh,Gl,Uf,qk,pg,Uc,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ia,oa,pa,fa,E,C,ea,K),$APP.F([uw]));hd=$APP.R.g(Jc,Ab);Pe=Uf;Jc=Zb=null}else hd=$APP.he(v,Fc)?null:$APP.$G($APP.t.h(Fc),":no-"),Pe=$APP.r(hd)?$APP.vi.h($APP.Zj($APP.t.h(Fc),":no-","")):Fc,hd=$APP.He($APP.Za(hd),Ab),Zb=e$(vb,Zb,Jc,ne),ne=Pe,Pe=Uf,vb=Zb,Zb=ne;else Zb=e$(vb,Zb,Jc,ne),ne=Fc,Pe=Uf,hd=Ab,vb=Zb,Zb=ne}}else if(rk=$APP.A.g(q$,zi)&&$APP.Qh.g(Tf,"true")&&$APP.Qh.g(Tf,"false")||$APP.A.g(Jc,Zb)&&$APP.Za(ne))if(Kg=$APP.r(hd)?$APP.r(Kg)?o$(hd, | ||
Kg):new $APP.n(null,1,[l$,hd],null):new $APP.n(null,1,[l$,hd],null),Pe=$APP.jf(Kg),Kg=$APP.fe.g(Pe,l$),Pe=$APP.fe.g(Pe,n$),$APP.Qh.g(hd,Kg))ne=Pe,Pe=Uf,hd=Kg,Kg=ne;else return new $APP.I(null,3,5,$APP.N,[$APP.jo.A(vb,$APP.bv,new $APP.I(null,2,5,$APP.N,[y$,l$],null),$APP.lg(hd)),Zb,Jc],null);else{try{var Yd=Tha(vb,Zb,ne,Pha(zi),Tf,Dl)}catch(Re){c(new $APP.n(null,4,[C$,f$,A$,$APP.oH(Re),D$,Zb,E$,Tf],null)),Yd=vb}Jc=$APP.r(function(){var Re=$APP.A.g(r$,Uf);return Re?qk:Re}())?null:Zb;ne=$APP.r(function(){var Re= | ||
$APP.A.g(r$,Uf);return Re?qk:Re}())?null:Zb;Pe=Uf;hd=$APP.z(hd);vb=Yd;Zb=Jc;Jc=ne}}}}(),da=$APP.B.j(M,0,null),ha=$APP.B.j(M,1,null),ja=$APP.B.j(M,2,null),sa=d$(l,ha,$APP.fe.g(f,ha)),ta=function(){var vb=e$(da,ha,ja,sa);return $APP.x(ea)?$APP.jo.A(vb,$APP.Nk,new $APP.I(null,2,5,$APP.N,[y$,l$],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.ca(null, | ||
Ca);$APP.he(D,Ha)||c(new $APP.n(null,4,[C$,z$,A$,["Unknown option: ",$APP.t.h(Ha)].join(""),z$,D,D$,Ha],null));Ca+=1}else if(a=$APP.x(a))b=a,$APP.Zd(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,[C$,z$,A$,["Unknown option: ",$APP.t.h(a)].join(""),z$,D,D$,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.ca(null,Ca),$APP.r($APP.jH(wa,Ha))||c(new $APP.n(null,4,[C$,$APP.iF,A$,["Required option: ", | ||
$APP.t.h(Ha)].join(""),$APP.iF,m,D$,Ha],null)),Ca+=1;else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.r($APP.jH(wa,a))||c(new $APP.n(null,4,[C$,$APP.iF,A$,["Required option: ",$APP.t.h(a)].join(""),$APP.iF,m,D$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(J))for(var Da=$APP.x(J),Aa=null,Oa=0,Ua=0;;)if(Ua<Oa){var db=Aa.ca(null,Ua),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Yb=function(){var vb=(vb=$APP.Vd(Bb))?F$.h(Bb):vb;return $APP.r(vb)? | ||
vb:Bb}(),qc=$APP.jH(wa,ub);if($APP.r(qc)){var $c=qc,Tb=$APP.B.j($c,0,null),of=$APP.B.j($c,1,null);if(!$APP.r(Yb.h?Yb.h(of):Yb.call(null,of))){var mk=function(){var vb=G$.h(Bb);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,D$);Jc=$APP.fe.g(Jc,E$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,$c,Tb,of,qc,Yb,db,ub,Bb,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ia,oa,pa,fa,E,C,ea,K,M,da,ha,ja,sa,ta,wa)}();c(new $APP.n(null, | ||
5,[C$,h$,A$,function(){var vb=new $APP.n(null,2,[D$,ub,E$,of],null);return mk.h?mk.h(vb):mk.call(null,vb)}(),h$,J,D$,ub,E$,of],null))}}Ua+=1}else{var Al=$APP.x(Da);if(Al){var xi=Al;if($APP.Zd(xi))ya=$APP.uc(xi),a=$APP.vc(xi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var nk=$APP.y(xi),ok=$APP.B.j(nk,0,null),uj=$APP.B.j(nk,1,null),pk=function(){var vb=(vb=$APP.Vd(uj))?F$.h(uj):vb;return $APP.r(vb)?vb:uj}(),Bl=$APP.jH(wa,ok);if($APP.r(Bl)){var Ic=Bl,vj=$APP.B.j(Ic,0,null),yi=$APP.B.j(Ic,1,null);if(!$APP.r(pk.h? | ||
pk.h(yi):pk.call(null,yi))){var Cl=function(){var vb=G$.h(uj);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,D$);Jc=$APP.fe.g(Jc,E$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,Ic,vj,yi,Bl,pk,nk,ok,uj,xi,Al,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ia,oa,pa,fa,E,C,ea,K,M,da,ha,ja,sa,ta,wa)}();c(new $APP.n(null,5,[C$,h$,A$,function(){var vb=new $APP.n(null,2,[D$,ok,E$,yi],null);return Cl.h?Cl.h(vb):Cl.call(null,vb)}(), | ||
h$,J,D$,ok,E$,yi],null))}}Da=$APP.z(xi);Aa=null;Oa=0}Ua=0}else break}return wa},Zha=function(a,b){a=Yha(a,b);b=y$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.TH,$APP.Rk.g(a,y$))},$ha=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},L$=function(a,b){$APP.Jf(H$,!1);a.setPrompt([$APP.t.h($APP.u(I$)),"\x3d\x3e "].join(""));a.prompt();return $APP.gk($APP.u(J$))?null:K$.g?K$.g(b,a):K$.call(null,b,a)},M$=function(a){var b=$APP.Bk(a);a=$APP.Ck(a); | ||
var c=$APP.pH($APP.u(J$));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(J$,$APP.Jp.g("\n",$APP.He(a,c)))},aia=function(a,b,c){var d=function(){var k=$APP.or;$APP.or=$APP.u(I$);try{a:{var l=$APP.La;$APP.La=!0;try{var m=$APP.Ri.l($APP.F([a]));break a}finally{$APP.La=l}m=void 0}return $APP.zu(m,new $APP.n(null,3,[$APP.Kp,$APP.Pp,$APP.pu,!0,$APP.$p,!0],null),$APP.u(N$))}finally{$APP.or=k}}(),e=$APP.jf(d),f=$APP.fe.g(e,$APP.yu);d=$APP.fe.g(e,$APP.T);$APP.Jf(N$, | ||
e);e=$APP.Zj("(async function () {\n%s\n}) ()","%s",f);$APP.Jf(I$,d);return Promise.resolve(eval(e)).then(function(k){$APP.r(c)?c.write(esm_import$node_util.inspect(k),"\n"):console.log(k);return K$.g?K$.g(c,b):K$.call(null,c,b)}).catch(function(k){esm_import$squint_cljs$core.println(k);return L$(b,c)})},K$=function(a,b){if($APP.r(function(){var e=$APP.u(H$);return $APP.r(e)?e:!$APP.gk($APP.u(J$))}())){$APP.Jf(H$,!0);var c=$APP.hp($APP.u(J$)),d=function(){try{return $APP.jp(c,$APP.mu)}catch(f){var e= | ||
f;if(-1!=$APP.oH(e).indexOf("EOF while reading"))return O$;M$(c);$APP.PH.l($APP.F([$APP.t.h(e)]));return P$}}();if($APP.A.g(P$,d))return L$(b,a);if($APP.A.g(O$,d))return $APP.Jf(H$,!1);M$(c);return $APP.A.g($APP.ip,d)?L$(b,a):aia(d,b,a)}return null},Q$=function(a,b){a.on("line",function(c){$APP.Wi.A(J$,$APP.t,c,"\n");return K$(b,a)})},bia=function(a){var b=esm_import$readline.createInterface({input:a,output:a});Q$(b,a);a.setNoDelay(!0);return a.on("close",function(){return $APP.QH.l($APP.F(["Client closed connection."]))})}, | ||
R$=function(a,b,c){return $APP.r(c)?esm_import$path.resolve(c,$APP.EH(a,b)):a},S$=function(a,b,c){var d=$APP.JH.h(a),e=$APP.sH.h(a);b=R$(b,e,d);c=$APP.uH(c);d=null==c?null:R$(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.IH.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},cia=function(a,b,c,d){if($APP.r(a)){var e= | ||
esm_import$path.resolve(c,$APP.EH(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.QH.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0})),$APP.QH.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.tH), | ||
d=$APP.Qk.l($APP.F([c,a])),e=$APP.sH.h(c),f=S$.h(c),k=$APP.JH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Zp.l(T$,$APP.F([e]))):b;b=$APP.JH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.QH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.QH(),$APP.QH.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"]))): | ||
$APP.ne.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.QH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.KH($APP.Rh.l(d,$APP.FH,m,$APP.F([$APP.wr,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.HH);$APP.r(h)&&$APP.QH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},eia=function(a){var b=$APP.u($APP.tH), | ||
c=$APP.Qk.l($APP.F([b,a])),d=$APP.sH.h(b),e=$APP.JH.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.QH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,q=0;;)if(q<h){var p=m.ba(null,q);(k.h?k.h(p):k.call(null,p)).on("all",function(J,O,P,W,ca,ha,oa,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.I(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(J,O,P,W,ca,ha,oa,pa,fa,E,C)):R$(C,K,E,fa):null}}(l,m,h,q,p,k,b,c,d,e,f));q+=1}else{var v=$APP.x(l);if(v){var D=v;$APP.Zd(D)?(l=$APP.uc(D),h=$APP.vc(D),m=l,D=$APP.xd(l),l=h,h=D):(p=$APP.y(D),(k.h?k.h(p): | ||
k.call(null,p)).on("all",function(J,O,P,W,ca,ha,oa,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.I(null,1,5,$APP.N,[da],null)).catch(function(){return function(ia){return console.error(ia)}}(J,O,P,W, | ||
ca,ha,oa,pa,fa,E,C,ea,K)):R$(K,da,ea,C):null}}(l,m,h,q,p,D,v,k,b,c,d,e,f)),l=$APP.z(D),m=null,h=0);q=0}else return null}})},s$=new $APP.H(null,"kwd-opt","kwd-opt",1313309243),n$=new $APP.H(null,"hyphens","hyphens",2113533609),v$=new $APP.H(null,"spec","spec",347520401),d$=new $APP.H(null,"coerce","coerce",1917884504),x$=new $APP.H(null,"restrict","restrict",-1071101511),p$=new $APP.H(null,"keywords","keywords",1526959054),N$=new $APP.H("squint.repl.node","continue","squint.repl.node/continue",1558138730), | ||
y$=new $APP.H(null,"msg","msg",-1386103444),fia=new $APP.H(null,"show","show",-576705889),o$=new $APP.H(null,"boolean","boolean",-1919418404),Sha=new $APP.H(null,"input","input",556931961),W$=new $APP.H(null,"rest-cmds","rest-cmds",-423198324),w$=new $APP.H("org.babashka","cli","org.babashka/cli",1162430315),l$=new $APP.H(null,"args-\x3eopts","args-\x3eopts",964391046),e$=new $APP.H(null,"alias","alias",-2039751630),Xha=new $APP.H(null,"collect","collect",-284321549),f$=new $APP.H(null,"validate", | ||
"validate",-201300827),r$=new $APP.H(null,"composite-opt","composite-opt",-2021292928),gia=new $APP.H(null,"run","run",-1821166653),q$=new $APP.H(null,"hyphen-opt","hyphen-opt",1836909464),U$=new $APP.H(null,"help","help",-439233446),A$=new $APP.H(null,"cause","cause",231901252),t$=new $APP.H(null,"fst-colon","fst-colon",1618567071),Tha=new $APP.H(null,"coerce-fn","coerce-fn",-821146515),j$=new $APP.H(null,"args","args",1315556576),h$=new $APP.H(null,"no-keyword-opts","no-keyword-opts",761286018), | ||
C$=new $APP.H(null,"value","value",305978217),S$=new $APP.H(null,"copy-resources","copy-resources",-1367155536),D$=new $APP.H(null,"pred","pred",1927423397),Yha=new $APP.H(null,"closed","closed",-919675359),M$=new $APP.H("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Zha=new $APP.H(null,"error-fn","error-fn",-171437615),B$=new $APP.H(null,"option","option",65132272),g$=new $APP.H(null,"exec-args","exec-args",-1860766354),E$=new $APP.H(null,"ex-msg","ex-msg", | ||
-1111774387),Oha=new $APP.H(null,"s","s",1705939918),z$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),hia=new $APP.H(null,"h","h",1109658740),i$=new $APP.H(null,"cmds","cmds",-1841503952);var H$=$APP.Vi.h(""),F$=$APP.Vi.h(!1),G$=$APP.Vi.h($APP.or),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var L$=$APP.Vi.h(null),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.or=$APP.ty;$APP.cr=$APP.nr=!0;var b=function(){var d=$APP.SH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(dia);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.QH.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1; | ||
d=$APP.Qk.l($APP.F([c,a])),e=$APP.sH.h(c),f=dia.h(c),k=$APP.JH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Zp.l(T$,$APP.F([e]))):b;b=$APP.JH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.QH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.QH(),$APP.QH.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"]))): | ||
$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.QH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.KH($APP.Rh.l(d,$APP.FH,m,$APP.F([$APP.wr,function(h){return S$(d,m,h)}])))):cia(f,m,k,e)}).then(function(h){h=$APP.jf(h);h=$APP.fe.g(h,$APP.HH);$APP.r(h)&&$APP.QH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},u$=new $APP.H(null,"kwd-opt","kwd-opt", | ||
1313309243),p$=new $APP.H(null,"hyphens","hyphens",2113533609),x$=new $APP.H(null,"spec","spec",347520401),f$=new $APP.H(null,"coerce","coerce",1917884504),z$=new $APP.H(null,"restrict","restrict",-1071101511),r$=new $APP.H(null,"keywords","keywords",1526959054),P$=new $APP.H("squint.repl.node","continue","squint.repl.node/continue",1558138730),A$=new $APP.H(null,"msg","msg",-1386103444),eia=new $APP.H(null,"show","show",-576705889),q$=new $APP.H(null,"boolean","boolean",-1919418404),Qha=new $APP.H(null, | ||
"input","input",556931961),W$=new $APP.H(null,"rest-cmds","rest-cmds",-423198324),y$=new $APP.H("org.babashka","cli","org.babashka/cli",1162430315),n$=new $APP.H(null,"args-\x3eopts","args-\x3eopts",964391046),g$=new $APP.H(null,"alias","alias",-2039751630),Vha=new $APP.H(null,"collect","collect",-284321549),h$=new $APP.H(null,"validate","validate",-201300827),t$=new $APP.H(null,"composite-opt","composite-opt",-2021292928),fia=new $APP.H(null,"run","run",-1821166653),s$=new $APP.H(null,"hyphen-opt", | ||
"hyphen-opt",1836909464),U$=new $APP.H(null,"help","help",-439233446),C$=new $APP.H(null,"cause","cause",231901252),v$=new $APP.H(null,"fst-colon","fst-colon",1618567071),Rha=new $APP.H(null,"coerce-fn","coerce-fn",-821146515),l$=new $APP.H(null,"args","args",1315556576),j$=new $APP.H(null,"no-keyword-opts","no-keyword-opts",761286018),E$=new $APP.H(null,"value","value",305978217),dia=new $APP.H(null,"copy-resources","copy-resources",-1367155536),F$=new $APP.H(null,"pred","pred",1927423397),Wha=new $APP.H(null, | ||
"closed","closed",-919675359),O$=new $APP.H("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Xha=new $APP.H(null,"error-fn","error-fn",-171437615),D$=new $APP.H(null,"option","option",65132272),i$=new $APP.H(null,"exec-args","exec-args",-1860766354),G$=new $APP.H(null,"ex-msg","ex-msg",-1111774387),Mha=new $APP.H(null,"s","s",1705939918),B$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),gia=new $APP.H(null,"h","h",1109658740),k$=new $APP.H(null,"cmds","cmds", | ||
-1841503952);var J$=$APP.Vi.h(""),H$=$APP.Vi.h(!1),I$=$APP.Vi.h($APP.or),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var N$=$APP.Vi.h(null),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.or=$APP.sy;$APP.cr=$APP.nr=!0;var b=function(){var d=$APP.SH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(bia);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.QH.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.or=$APP.ty;$APP.cr=$APP.nr=!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(G$)),"\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.Zp.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.I(null,1,5,$APP.N,[d],null)},$APP.F([c])))},iia=new $APP.I(null,7,5,$APP.N,[new $APP.n(null,3,[i$,new $APP.I(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.TH);var b=$APP.u($APP.tH),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.QH.l($APP.F(["[squint] Running",d]));return $APP.KH($APP.Rh.l(c,$APP.FH,d,$APP.F([$APP.wr,function(e){return Q$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.HH);e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return shadow_esm_import(e)})},z$,new $APP.I(null,1,5,$APP.N,[$APP.$k],null)],null),new $APP.n(null,2,[i$,new $APP.I(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.TH);return V$(b,a)}],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["repl"],null),$APP.yo,$$],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["socket-repl"],null),$APP.yo,Z$],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["nrepl-server"],null),$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.TH);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,[i$,new $APP.I(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.TH);return eia(a)}],null),new $APP.n(null,2,[i$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.TH);a=$APP.PE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.QH.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.$p.h(c))? | ||
$APP.Zj("(do %s\n)","%s",a):a;a=$APP.ZG.g(a,$APP.Rh.l(c,$APP.$p,$APP.$p.h(c),$APP.F([$APP.Ir,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ty],null)),$APP.Kp,$APP.r($APP.$p.h(c))?$APP.Pp:$APP.Qp,$APP.pu,function(){var f=$APP.$p.h(c);return $APP.r(f)?!1!==$APP.pu.h(c):f}()])));a=$APP.r($APP.$p.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(fia.h(c))&&$APP.QH.l($APP.F([a])); | ||
if(!1===gia.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return($APP.r($APP.$p.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.$p.h(c))?$APP.PH.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.QH.l($APP.F(["Squint v0.8.118\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.Lr,new $APP.n(null,1,[hia,U$],null),d$,new $APP.n(null,4,[$APP.pu,o$,$APP.Mr,o$,$APP.JH,$APP.nl,$APP.$p,o$],null)],null),b=k$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,i$),e=$APP.fe.g(c,j$);return $APP.ne.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,i$),m=$APP.fe.g(f,$APP.yo),h=bia(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=aia(k,U9(a,$APP.F([f])));k=$APP.jf(f);var q=$APP.fe.g(k, | ||
$APP.TH);f=$APP.fe.g(k,j$);k=$APP.fe.g(k,i$);var p=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,j$,p,$APP.F([W$,p,$APP.TH,q,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,iia)})(); | ||
$$.h=function(){$APP.or=$APP.sy;$APP.cr=$APP.nr=!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});Q$(b,null);b.setPrompt([$APP.t.h($APP.u(I$)),"\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.Zp.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.I(null,1,5,$APP.N,[d],null)},$APP.F([c])))},hia=new $APP.I(null,7,5,$APP.N,[new $APP.n(null,3,[k$,new $APP.I(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.TH);var b=$APP.u($APP.tH),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.QH.l($APP.F(["[squint] Running",d]));return $APP.KH($APP.Rh.l(c,$APP.FH,d,$APP.F([$APP.wr,function(e){return S$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.HH);e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return shadow_esm_import(e)})},B$,new $APP.I(null,1,5,$APP.N,[$APP.$k],null)],null),new $APP.n(null,2,[k$,new $APP.I(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.TH);return V$(b,a)}],null),new $APP.n(null,2,[k$,new $APP.I(null,1,5,$APP.N,["repl"],null),$APP.yo,$$],null),new $APP.n(null,2,[k$,new $APP.I(null,1,5,$APP.N,["socket-repl"],null),$APP.yo,Z$],null),new $APP.n(null,2,[k$,new $APP.I(null,1,5,$APP.N,["nrepl-server"],null),$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.TH);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,[k$,new $APP.I(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.TH);return $APP.PH.l($APP.F([$APP.TH,a]))}],null),new $APP.n(null,2,[k$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.TH);a=$APP.QE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.QH.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.$p.h(c))?$APP.Zj("(do %s\n)","%s",a):a;a=$APP.ZG.g(a,$APP.Rh.l(c,$APP.$p,$APP.$p.h(c),$APP.F([$APP.Ir,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.sy],null)),$APP.Kp,$APP.r($APP.$p.h(c))?$APP.Pp:$APP.Qp,$APP.pu,function(){var f=$APP.$p.h(c);return $APP.r(f)?!1!==$APP.pu.h(c):f}()])));a=$APP.r($APP.$p.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(eia.h(c))&& | ||
$APP.QH.l($APP.F([a]));if(!1===fia.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return($APP.r($APP.$p.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.$p.h(c))?$APP.PH.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.QH.l($APP.F(["Squint v0.8.119\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.Lr,new $APP.n(null,1,[gia,U$],null),f$,new $APP.n(null,6,[$APP.pu,q$,$APP.Mr,q$,$APP.JH,$APP.nl,$APP.$p,q$,$APP.sH,new $APP.I(null,1,5,$APP.N,[$APP.nl],null),$APP.IH,$APP.nl],null)],null),b=m$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,k$),e=$APP.fe.g(c,l$);return $APP.oe.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,k$),m=$APP.fe.g(f,$APP.yo),h=$ha(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=Zha(k,W9(a,$APP.F([f])));k=$APP.jf(f);var q=$APP.fe.g(k,$APP.TH);f=$APP.fe.g(k,l$);k=$APP.fe.g(k,k$);var p=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,l$,p,$APP.F([W$,p,$APP.TH,q,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,hia)})(); |
@@ -11,6 +11,6 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
BH=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Ir);a=$APP.jp($APP.hp(a),$APP.mu);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(vH,$APP.y(l))?new $APP.I(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.wH.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.xH.h($APP.u($APP.yH)); | ||
return $APP.ne.j(function(l,m){return l.then(function(){var h=$APP.x(m),q=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var p=$APP.fe.g(h,$APP.Dr),v=$APP.fe.g(h,$APP.Er);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.oF,new $APP.G(null,new $APP.G(null,$APP.Mj,new $APP.G(null,q,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.I(null,1,5,$APP.N,[$APP.zH],null)):O}();k.h?k.h(D):k.call(null,D);var J=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null, | ||
return $APP.oe.j(function(l,m){return l.then(function(){var h=$APP.x(m),q=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var p=$APP.fe.g(h,$APP.Dr),v=$APP.fe.g(h,$APP.Er);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.pF,new $APP.G(null,new $APP.G(null,$APP.Mj,new $APP.G(null,q,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.I(null,1,5,$APP.N,[$APP.zH],null)):O}();k.h?k.h(D):k.call(null,D);var J=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null, | ||
AH,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,q,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Kh(J);J=$APP.Oh(J);J=$APP.ui.g($APP.od,J);return $APP.bi(D,J)}()).then(function(D){return $APP.Wi.g(c,function(J){J=$APP.bv(J,new $APP.I(null,2,5,$APP.N,[$APP.Rt,q],null),D);J=$APP.r(v)?$APP.bv(J,new $APP.I(null,3,5,$APP.N,[d,$APP.Lr,v],null),q):J;return $APP.r(p)?$APP.bv(J,new $APP.I(null,2,5,$APP.N,[d,$APP.Jr], | ||
null),$APP.bi(p,$APP.Kr.h(q))):J})})})},Promise.resolve(null),e)}):null}return null};CH=function(a){var b=$APP.Rh.j;var c=$APP.Ir.h(a);c=$APP.r(c)?c:$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ty],null));return b.call($APP.Rh,a,$APP.Ir,c)};DH=function(a,b){var c=CH(b);return Promise.resolve(BH(a,c)).then(function(){return $APP.zu(a,c,null)})}; | ||
$APP.EH=function(a,b){return $APP.ne.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)}; | ||
null),$APP.bi(p,$APP.Kr.h(q))):J})})})},Promise.resolve(null),e)}):null}return null};CH=function(a){var b=$APP.Rh.j;var c=$APP.Ir.h(a);c=$APP.r(c)?c:$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.sy],null));return b.call($APP.Rh,a,$APP.Ir,c)};DH=function(a,b){var c=CH(b);return Promise.resolve(BH(a,c)).then(function(){return $APP.zu(a,c,null)})}; | ||
$APP.EH=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.KH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.FH),c=$APP.fe.g(a,GH),d=$APP.fe.g(a,$APP.HH),e=$APP.fe.g(a,$APP.IH),f=$APP.fe.j(a,$APP.JH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");a=CH(a);return DH(c,a).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.yu),m=$APP.fe.g(k,$APP.zq),h=$APP.sH.g($APP.u($APP.tH),new $APP.I(null,2,5,$APP.N,[".","src"],null)),q=esm_import$path,p=q.resolve;$APP.r(d)?h=d:(h=$APP.EH(b,h),$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Zj(e,/^\./,"")].join(""): | ||
@@ -25,5 +25,5 @@ null,m=$APP.r(m)?m:".mjs"),h=$APP.Zj(h,/.clj(s|c)$/,m));q=p.call(q,f,h);p=esm_import$path.dirname(q);$APP.r(esm_import$fs.existsSync(p))||esm_import$fs.mkdirSync(p,{recursive:!0});if(!$APP.r(esm_import$fs.existsSync(p)))throw Error("File not found, make sure output-dir is a valid path: ",new $APP.n(null,2,[$APP.JH,f,$APP.HH,q],null));esm_import$fs.writeFileSync(q,l,"utf-8");return $APP.Rh.j(k,$APP.HH,q)})};LH=function(a){return $APP.Au.l(a,$APP.F([$APP.Bu,!0]))}; | ||
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.wH.g=function(a,b){return $APP.wH.j(a,a,b)};$APP.wH.j=function(a,b,c){return new $APP.Ne(null,function(){var d=$APP.x(c);return d?$APP.He($APP.Mf.g(a,d),$APP.wH.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.wH.m=3;$APP.lH.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.lH.prototype.$c=function(){return $APP.Za(this.f)}; | ||
$APP.lH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.FD,null==this.f?$APP.Nw:$APP.rB,$APP.tv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.RH=function RH(a){switch(arguments.length){case 1:return RH.h(arguments[0]);case 2:return RH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.lH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.FD,null==this.f?$APP.Mw:$APP.nB,$APP.tv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.RH=function RH(a){switch(arguments.length){case 1:return RH.h(arguments[0]);case 2:return RH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.RH.h=function(a){return qH(new $APP.n(null,3,[$APP.Cm,$APP.u($APP.aG),$APP.Dm,$APP.u($APP.$F),$APP.il,null],null),a)};$APP.RH.g=function(a,b){return qH($APP.Tm.j($APP.Qk.l($APP.F([new $APP.n(null,1,[$APP.Dm,$APP.u($APP.$F)],null),a])),$APP.Cm,function(c){return $APP.Qk.l($APP.F([$APP.u($APP.aG),c]))}),b)};$APP.RH.m=2;$APP.SH=new $APP.H(null,"port","port",1534937262);$APP.zH=new $APP.H(null,"reload","reload",863702807);$APP.TH=new $APP.H(null,"opts","opts",155075701); | ||
$APP.JH=new $APP.H(null,"output-dir","output-dir",-290956991);vH=new $APP.H(null,"require-macros","require-macros",707947416);$APP.UH=new $APP.H(null,"message","message",-406056002);$APP.FH=new $APP.H(null,"in-file","in-file",-1682176692);$APP.VH=new $APP.H(null,"id","id",-1388402092);AH=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.sH=new $APP.H(null,"paths","paths",-1807389588);$APP.WH=new $APP.H(null,"eval","eval",-1103567905); | ||
$APP.xH=new $APP.H(null,"eval-form","eval-form",-1934118476);$APP.HH=new $APP.H(null,"out-file","out-file",-1187066405);GH=new $APP.H(null,"in-str","in-str",-1014658121);$APP.IH=new $APP.H(null,"extension","extension",1453374065);$APP.tH=new $APP.lH(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.RH.h(a)}else a=null;return a},null);var XH;$APP.yH=$APP.Vi.h(null);XH=MH(DH);export const compileFile=MH($APP.KH);export const compileString=XH; |
@@ -7,18 +7,18 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
import*as esm_import$fs from"fs";import*as esm_import$net from"net"; | ||
var G9=function(a,b){a=a.indexOf(b);if(0>a)throw Error("out of input");return a},H9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},I9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},J9=function(a){return console.debug($APP.Jp.g(" ",a))},mha=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.VH),e=$APP.fe.g(b,lha);c=$APP.Rh.j(c,"id",d);c=$APP.r(e)?$APP.Rh.j(c,"session",e):c;return a.g?a.g(b,c):a.call(null,b,c)}},oha=function(){var a= | ||
nha;return function(b,c){b=$APP.Tm.j(b,K9,$APP.vi);return a.g?a.g(b,c):a.call(null,b,c)}},qha=function(){var a=pha();return function(b,c){J9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},rha=function(a){return function(b,c){J9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},pha=function(){var a=oha();return function(b,c){return a.g?a.g(b,c):a.call(null,b,c)}},L9=function(a){return $APP.Rh.j($APP.bi(new $APP.I(null,3,5,$APP.N,["major","minor","incremental"],null),$APP.Au.h(a.split("."))), | ||
"version-string",a)},sha=function(a,b,c){if($APP.r(a))if(a=M9.h?M9.h(a):M9.call(null,a),$APP.r(a)){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.n9),e=$APP.fe.g(b,$APP.g9),f=$APP.fe.g(b,$APP.p9);b=$APP.Qa;var k=$APP.li,l=$APP.P6;$APP.Qa=e;$APP.li=f;$APP.P6=d;try{var m=new $APP.Fa;d=$APP.Sa;e=$APP.Ta;$APP.Sa=!0;$APP.Ta=function(h){return m.append(h)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ta=e,$APP.Sa=d}return $APP.t.h(m)}finally{$APP.P6=l,$APP.li=k,$APP.Qa=b}}else return J9($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]))},tha=function(a){a=$APP.zu(a,new $APP.n(null,4,[$APP.Kp,$APP.Pp,$APP.pu,!0,$APP.$p,!0,$APP.Sp,!0],null),$APP.u(N9));var b=$APP.jf(a),c=$APP.fe.g(b,$APP.yu);a=$APP.fe.g(b,$APP.T);$APP.Jf(N9,b);b=$APP.Zj("(async function () {\n%s\n}) ()","%s",c);$APP.Jf(O9,a);return b},zha=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.T);a=$APP.fe.g(c,uha);$APP.fe.g(c,$APP.$k);$APP.fe.g(c,vha);$APP.fe.g(c,wha);return Promise.resolve(a).then(tha).then(function(d){$APP.QH.l($APP.F(["About to eval:"])); | ||
$APP.QH.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(O9)),"value",sha(xha.h(c),yha.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.UH.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.or)],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(O9)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},P9=function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.T);return null},nha=function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,K9),d=$APP.fe.g(Q9,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.I(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a, | ||
c):b.call(null,a,c)},Aha=function(a){return function(b,c){return a.write(R9(c))}},Bha=function(a,b){J9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=qha(),d=mha(rha(Aha(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.Bu,!0]),k=$APP.kg;;){var m=$APP.Gf.j(S9,l,f);l=$APP.B.j(m,0,null);m=$APP.B.j(m,1,null);if(null==l){k=new $APP.I(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.Zd(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)?J9($APP.F(["Connection lost"])):J9($APP.F(["Connection closed"]))})},wha=new $APP.H(null,"_line","_line",232847719),yha=new $APP.H("nrepl.middleware.print", | ||
"options","nrepl.middleware.print/options",868480159),lha=new $APP.H(null,"session","session",1008279103),Cha=new $APP.H(null,"lookup","lookup",1225356838),Dha=new $APP.H(null,"load-file","load-file",-424586670),vha=new $APP.H(null,"_load-file?","_load-file?",-1198848711),K9=new $APP.H(null,"op","op",-1882987955),Eha=new $APP.H(null,"describe","describe",1369790582),uha=new $APP.H(null,"code","code",1586293142),Fha=new $APP.H(null,"eldoc","eldoc",-1321421900),Gha=new $APP.H(null,"log_level","log_level", | ||
-1756736313),xha=new $APP.H("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Hha=new $APP.H(null,"clone","clone",711747572),Iha=new $APP.H(null,"close","close",1835149582),Jha=new $APP.H(null,"info","info",-317069002),Kha=new $APP.H(null,"host","host",-1558485167),Lha=new $APP.H(null,"complete","complete",-500388775);var T9=function T9(a,b){switch($APP.t.h(I9(a,1))){case "i":return a=H9(a,1),b=G9(a,"e"),new $APP.I(null,2,5,$APP.N,[parseInt(I9(a,b)),H9(a,b+1)],null);case "l":var d=a=H9(a,1);for(a=$APP.mc($APP.kg);;){if($APP.A.g($APP.t.h(I9(d,1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(a),H9(d,1)],null);var e=T9.g?T9.g(d,b):T9.call(null,d,b),f=$APP.B.j(e,0,null),k=$APP.B.j(e,1,null);e=k;a=$APP.fg.g(a,f);d=e}case "d":for(a=H9(a,1),f=$APP.jf(b),f=$APP.fe.g(f,$APP.Bu),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(I9(d, | ||
1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(e),H9(d,1)],null);a=T9.g?T9.g(d,b):T9.call(null,d,b);d=$APP.B.j(a,0,null);k=$APP.B.j(a,1,null);k=T9.g?T9.g(k,b):T9.call(null,k,b);a=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);d=$APP.r(f)?$APP.vi.h(d):d;a=$APP.Ug.j(e,d,a);d=k;e=a}default:return b=G9(a,":"),f=parseInt(I9(a,b)),a=H9(a,b+1),new $APP.I(null,2,5,$APP.N,[$APP.t.h(I9(a,f)),H9(a,f)],null)}},S9=function S9(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return S9.l(arguments[0], | ||
1<c.length?new $APP.Xc(c.slice(1),0,null):null)};S9.l=function(a,b){try{return T9(a,b)}catch(c){if(c instanceof Error)return new $APP.I(null,2,5,$APP.N,[null,a],null);throw c;}};S9.m=1;S9.o=function(a){var b=$APP.y(a);a=$APP.z(a);return this.l(b,a)}; | ||
var R9=function R9(a){for(;;){if("string"===typeof a)return[$APP.t.h(Buffer.from(a).length),":",a].join("");if(a instanceof $APP.H||a instanceof $APP.w)a=[function(){var c=$APP.Le(a);return $APP.r(c)?[c,"/"].join(""):null}(),$APP.ai(a)].join("");else return"number"===typeof a?["i",$APP.t.h(a),"e"].join(""):$APP.Td(a)||$APP.Xd(a)||null==a?["l",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(R9,a))),"e"].join(""):$APP.Vd(a)?["d",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(function(){return function(c){var d=$APP.B.j(c, | ||
0,null);c=$APP.B.j(c,1,null);return[$APP.t.h(R9.h?R9.h(d):R9.call(null,d)),$APP.t.h(R9.h?R9.h(c):R9.call(null,c))].join("")}}(a),$APP.OH.g($APP.y,a)))),"e"].join(""):null}};var O9=$APP.Vi.h($APP.or),M9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.w9],null);$APP.Vi.h(!1); | ||
var N9=$APP.Vi.h(null),Q9=$APP.vh([Cha,Iha,Dha,Fha,Hha,Eha,Jha,Lha,$APP.WH],[P9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.I(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},P9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.nH()),"status",new $APP.I(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",L9("TODO"),"node",L9(process.version)],null),"aux",$APP.hf,"ops",$APP.bi($APP.ui.g($APP.ai,$APP.Kh(Q9)),$APP.Kr.h($APP.hf)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},P9,function(){return null},function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,$APP.T);$APP.PH.l($APP.F([$APP.T,c]));return zha($APP.Rh.j(a,$APP.T,$APP.u(O9)),b)}]),Mha=$APP.Vi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.SH.h(a);return $APP.r(e)?e:0}(),c=function(){var e=Kha.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:Gha.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Tk.g(Bha,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.QH.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(Mha,d)})}; | ||
var I9=function(a,b){a=a.indexOf(b);if(0>a)throw Error("out of input");return a},J9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},K9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},L9=function(a){return console.debug($APP.Jp.g(" ",a))},kha=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.VH),e=$APP.fe.g(b,jha);c=$APP.Rh.j(c,"id",d);c=$APP.r(e)?$APP.Rh.j(c,"session",e):c;return a.g?a.g(b,c):a.call(null,b,c)}},mha=function(){var a= | ||
lha;return function(b,c){b=$APP.Tm.j(b,M9,$APP.vi);return a.g?a.g(b,c):a.call(null,b,c)}},oha=function(){var a=nha();return function(b,c){L9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},pha=function(a){return function(b,c){L9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},nha=function(){var a=mha();return function(b,c){return a.g?a.g(b,c):a.call(null,b,c)}},N9=function(a){return $APP.Rh.j($APP.bi(new $APP.I(null,3,5,$APP.N,["major","minor","incremental"],null),$APP.Au.h(a.split("."))), | ||
"version-string",a)},qha=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.p9),e=$APP.fe.g(b,$APP.i9),f=$APP.fe.g(b,$APP.r9);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.Sa;e=$APP.Ta;$APP.Sa=!0;$APP.Ta=function(h){return m.append(h)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ta=e,$APP.Sa=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]))},rha=function(a){a=$APP.zu(a,new $APP.n(null,4,[$APP.Kp,$APP.Pp,$APP.pu,!0,$APP.$p,!0,$APP.Sp,!0],null),$APP.u(P9));var b=$APP.jf(a),c=$APP.fe.g(b,$APP.yu);a=$APP.fe.g(b,$APP.T);$APP.Jf(P9,b);b=$APP.Zj("(async function () {\n%s\n}) ()","%s",c);$APP.Jf(Q9,a);return b},xha=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.T);a=$APP.fe.g(c,sha);$APP.fe.g(c,$APP.$k);$APP.fe.g(c,tha);$APP.fe.g(c,uha);return Promise.resolve(a).then(rha).then(function(d){$APP.QH.l($APP.F(["About to eval:"])); | ||
$APP.QH.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(Q9)),"value",qha(vha.h(c),wha.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.UH.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.or)],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(Q9)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},R9=function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.T);return null},lha=function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,M9),d=$APP.fe.g(S9,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.I(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a, | ||
c):b.call(null,a,c)},yha=function(a){return function(b,c){return a.write(T9(c))}},zha=function(a,b){L9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=oha(),d=kha(pha(yha(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.Bu,!0]),k=$APP.kg;;){var m=$APP.Gf.j(U9,l,f);l=$APP.B.j(m,0,null);m=$APP.B.j(m,1,null);if(null==l){k=new $APP.I(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.ca(null,h),c(l,d),h+=1;else if(f=$APP.x(f))k=f,$APP.Zd(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"])):L9($APP.F(["Connection closed"]))})},uha=new $APP.H(null,"_line","_line",232847719),wha=new $APP.H("nrepl.middleware.print", | ||
"options","nrepl.middleware.print/options",868480159),jha=new $APP.H(null,"session","session",1008279103),Aha=new $APP.H(null,"lookup","lookup",1225356838),Bha=new $APP.H(null,"load-file","load-file",-424586670),tha=new $APP.H(null,"_load-file?","_load-file?",-1198848711),M9=new $APP.H(null,"op","op",-1882987955),Cha=new $APP.H(null,"describe","describe",1369790582),sha=new $APP.H(null,"code","code",1586293142),Dha=new $APP.H(null,"eldoc","eldoc",-1321421900),Eha=new $APP.H(null,"log_level","log_level", | ||
-1756736313),vha=new $APP.H("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Fha=new $APP.H(null,"clone","clone",711747572),Gha=new $APP.H(null,"close","close",1835149582),Hha=new $APP.H(null,"info","info",-317069002),Iha=new $APP.H(null,"host","host",-1558485167),Jha=new $APP.H(null,"complete","complete",-500388775);var V9=function V9(a,b){switch($APP.t.h(K9(a,1))){case "i":return a=J9(a,1),b=I9(a,"e"),new $APP.I(null,2,5,$APP.N,[parseInt(K9(a,b)),J9(a,b+1)],null);case "l":var d=a=J9(a,1);for(a=$APP.mc($APP.kg);;){if($APP.A.g($APP.t.h(K9(d,1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(a),J9(d,1)],null);var e=V9.g?V9.g(d,b):V9.call(null,d,b),f=$APP.B.j(e,0,null),k=$APP.B.j(e,1,null);e=k;a=$APP.fg.g(a,f);d=e}case "d":for(a=J9(a,1),f=$APP.jf(b),f=$APP.fe.g(f,$APP.Bu),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(K9(d, | ||
1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(e),J9(d,1)],null);a=V9.g?V9.g(d,b):V9.call(null,d,b);d=$APP.B.j(a,0,null);k=$APP.B.j(a,1,null);k=V9.g?V9.g(k,b):V9.call(null,k,b);a=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);d=$APP.r(f)?$APP.vi.h(d):d;a=$APP.Ug.j(e,d,a);d=k;e=a}default:return b=I9(a,":"),f=parseInt(K9(a,b)),a=J9(a,b+1),new $APP.I(null,2,5,$APP.N,[$APP.t.h(K9(a,f)),J9(a,f)],null)}},U9=function U9(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return U9.l(arguments[0], | ||
1<c.length?new $APP.Xc(c.slice(1),0,null):null)};U9.l=function(a,b){try{return V9(a,b)}catch(c){if(c instanceof Error)return new $APP.I(null,2,5,$APP.N,[null,a],null);throw c;}};U9.m=1;U9.o=function(a){var b=$APP.y(a);a=$APP.z(a);return this.l(b,a)}; | ||
var T9=function T9(a){for(;;){if("string"===typeof a)return[$APP.t.h(Buffer.from(a).length),":",a].join("");if(a instanceof $APP.H||a instanceof $APP.w)a=[function(){var c=$APP.Le(a);return $APP.r(c)?[c,"/"].join(""):null}(),$APP.ai(a)].join("");else return"number"===typeof a?["i",$APP.t.h(a),"e"].join(""):$APP.Td(a)||$APP.Xd(a)||null==a?["l",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(T9,a))),"e"].join(""):$APP.Vd(a)?["d",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(function(){return function(c){var d=$APP.B.j(c, | ||
0,null);c=$APP.B.j(c,1,null);return[$APP.t.h(T9.h?T9.h(d):T9.call(null,d)),$APP.t.h(T9.h?T9.h(c):T9.call(null,c))].join("")}}(a),$APP.OH.g($APP.y,a)))),"e"].join(""):null}};var Q9=$APP.Vi.h($APP.or),O9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.y9],null);$APP.Vi.h(!1); | ||
var P9=$APP.Vi.h(null),S9=$APP.vh([Aha,Gha,Bha,Dha,Fha,Cha,Hha,Jha,$APP.WH],[R9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.I(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},R9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.nH()),"status",new $APP.I(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(S9)),$APP.Kr.h($APP.hf)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},R9,function(){return null},function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,$APP.T);$APP.PH.l($APP.F([$APP.T,c]));return xha($APP.Rh.j(a,$APP.T,$APP.u(Q9)),b)}]),Kha=$APP.Vi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.SH.h(a);return $APP.r(e)?e:0}(),c=function(){var e=Iha.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:Eha.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Tk.g(zha,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.QH.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(Kha,d)})}; |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.8.118", | ||
"version": "0.8.119", | ||
"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
1394201
8372