squint-cljs
Advanced tools
Comparing version 0.6.92 to 0.6.93
@@ -11,9 +11,9 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
c):c:null},e$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.EG(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},oha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?nha(e,d,f):b$(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},pha=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.GE);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.GE,$APP.Tq.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)? | ||
f$),k=$APP.fe.g(e,g$);c=$APP.fe.g(e,$APP.Dm);var l=$APP.fe.g(e,$APP.FE);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.FE,$APP.Tq.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.FG(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.Hu.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.Qw,d,s$,l,t$,a,u$,c,v$,f],null)},tha=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([pha(d)])):b,f=f$.h(e),k=function(){var vb=g$.h(e);return $APP.r(vb)?vb:$APP.Er.h(e)}(),l=qha.h(e),m=$APP.GE.h(e),h=i$.h(e),p=j$.h(e),q=function(){var vb=z$.h(e);return $APP.r(vb)?vb:rha.h(e)}(),v=$APP.Zh($APP.R.l($APP.Mh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Mh(f)]))), | ||
5,[$APP.Ow,d,s$,l,t$,a,u$,c,v$,f],null)},tha=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([pha(d)])):b,f=f$.h(e),k=function(){var vb=g$.h(e);return $APP.r(vb)?vb:$APP.Er.h(e)}(),l=qha.h(e),m=$APP.FE.h(e),h=i$.h(e),p=j$.h(e),q=function(){var vb=z$.h(e);return $APP.r(vb)?vb:rha.h(e)}(),v=$APP.Zh($APP.R.l($APP.Mh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Mh(f)]))), | ||
D=$APP.A.g(!0,q)?v:null==q?null:$APP.Zh(q),J=h$.h(e),O=function(){var vb=sha.h(e);return $APP.r(vb)?vb:function(Yb){Yb=$APP.jf(Yb);var Ic=$APP.fe.g(Yb,A$);throw $APP.cl.g(Ic,Yb);}}(),P=m$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,k$),ha=$APP.fe.g(W,l$),na=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$,ha],null)}(),pa=$APP.jf(na),fa=$APP.fe.g(pa,l$),E=$APP.fe.g(pa,n$),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),da=$APP.B.j(C,0,null),K=$APP.B.j(C,1,null),M=function(){for(var vb=$APP.hf,Yb=null,Ic=null,Ke=$APP.r(p)?p$:null,hd=$APP.x(K),Ig=E;;){if($APP.Za(hd))return new $APP.I(null,3,5,$APP.N,[vb,Yb,Ic],null);var kg=$APP.y(hd),Tc=kg instanceof $APP.H;if(Tc){Yb=e$(vb,Yb,Ic,null);var me=kg;hd=$APP.z(hd);vb=Yb;Yb=me}else{var Al=!0===kg,Qf=$APP.t.h(kg);me=d$(l,Yb,$APP.fe.g(f,Yb));var xi=$APP.fe.g(f,Yb),Bl=w$(Qf,Ke,Yb,xi,Ic),Kh=$APP.jf(Bl),Cl=$APP.fe.g(Kh,s$),Lh=$APP.fe.g(Kh, | ||
t$),Dl=$APP.fe.g(Kh,u$),Rf=$APP.fe.g(Kh,$APP.Qw),mk=$APP.fe.g(Kh,v$);if($APP.r(function(){var Me=Cl;return $APP.r(Me)?Me:Dl}())){var Yc=$APP.qa(Qf,"--"),nk=Yc&&$APP.A.g("--",Qf);if(nk){var El=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Me=vb;return El?$APP.jo.A(Me,$APP.Ju,new $APP.I(null,2,5,$APP.N,[y$,l$],null),$APP.mg(El)):Me}(),Yb,Ic],null)}var ok=Yc?$APP.ji.g(Qf,2):$APP.Zj(Qf,/^(:|-|)/,""),zf=Yc?$APP.Ar.g(ok,/=/):new $APP.I(null,1,5,$APP.N,[ok],null),Sd=$APP.B.j(zf,0,null),Be= | ||
t$),Dl=$APP.fe.g(Kh,u$),Rf=$APP.fe.g(Kh,$APP.Ow),mk=$APP.fe.g(Kh,v$);if($APP.r(function(){var Me=Cl;return $APP.r(Me)?Me:Dl}())){var Yc=$APP.qa(Qf,"--"),nk=Yc&&$APP.A.g("--",Qf);if(nk){var El=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Me=vb;return El?$APP.jo.A(Me,$APP.Ju,new $APP.I(null,2,5,$APP.N,[y$,l$],null),$APP.mg(El)):Me}(),Yb,Ic],null)}var ok=Yc?$APP.ji.g(Qf,2):$APP.Zj(Qf,/^(:|-|)/,""),zf=Yc?$APP.Ar.g(ok,/=/):new $APP.I(null,1,5,$APP.N,[ok],null),Sd=$APP.B.j(zf,0,null),Be= | ||
$APP.B.j(zf,1,null),Tb=$APP.zi.h(Sd),Ec=$APP.fe.j(k,Tb,Tb);if($APP.r(Be))Ic=e$(vb,Yb,Ic,me),Yb=Ec,Ke=Rf,hd=$APP.He(Be,$APP.cd(hd)),vb=Ic,Ic=null;else{var Ab=$APP.z(hd),Le=$APP.y(Ab),jw=w$(Le,Rf,Yb,xi,Ic);if($APP.r(function(){var Me=s$.h(jw);return $APP.r(Me)?Me:$APP.Qd(Ab)}()))if($APP.r(Lh)){var kw=$APP.ai(Ec);Ic=$APP.aq.l(function(){return function(Me){return new $APP.I(null,2,5,$APP.N,[["-",$APP.t.h(Me)].join(""),!0],null)}}(vb,Yb,Ic,Ke,hd,Ig,kw,Ab,Le,jw,ok,zf,Sd,Be,Tb,Ec,Yc,nk,Al,Qf,me,xi,Bl,Kh, | ||
@@ -23,4 +23,4 @@ Cl,Lh,Dl,Rf,mk,kg,Tc,d,e,f,k,l,m,h,p,q,v,D,J,O,c,P,W,ca,ha,na,pa,fa,E,C,da,K),$APP.F([kw]));hd=$APP.R.g(Ic,Ab);Ke=Rf;Ic=Yb=null}else hd=$APP.he(v,Ec)?null:$APP.uG($APP.t.h(Ec),":no-"),Ke=$APP.r(hd)?$APP.zi.h($APP.Zj($APP.t.h(Ec),":no-","")):Ec,hd=$APP.He($APP.Za(hd),Ab),Yb=e$(vb,Yb,Ic,me),me=Ke,Ke=Rf,vb=Yb,Yb=me;else Yb=e$(vb,Yb,Ic,me),me=Ec,Ke=Rf,hd=Ab,vb=Yb,Yb=me}}else if(nk=$APP.A.g(q$,xi)&&$APP.Qh.g(Qf,"true")&&$APP.Qh.g(Qf,"false")||$APP.A.g(Ic,Yb)&&$APP.Za(me))if(Ig=$APP.r(hd)?$APP.r(Ig)?o$(hd, | ||
$APP.A.g(r$,Rf);return Me?mk:Me}())?null:Yb;Ke=Rf;hd=$APP.z(hd);vb=Zd;Yb=Ic;Ic=me}}}}(),ea=$APP.B.j(M,0,null),ia=$APP.B.j(M,1,null),ja=$APP.B.j(M,2,null),ra=d$(l,ia,$APP.fe.g(f,ia)),ta=function(){var vb=e$(ea,ia,ja,ra);return $APP.x(da)?$APP.jo.A(vb,$APP.Nk,new $APP.I(null,2,5,$APP.N,[y$,l$],null),function(Yb){return $APP.Rg.g($APP.mg(da),Yb)}):vb}(),xa=$APP.r(h)?$APP.Md($APP.Qk.l($APP.F([h,ta])),$APP.Nd(ta)):ta;if($APP.r(D)){a=$APP.x($APP.Mh(xa));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,[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.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,[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.ba(null,Ca),$APP.r($APP.EG(xa,Ha))||c(new $APP.n(null,4,[C$,$APP.GE,A$,["Required option: ", | ||
$APP.t.h(Ha)].join(""),$APP.GE,m,D$,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.EG(xa,a))||c(new $APP.n(null,4,[C$,$APP.GE,A$,["Required option: ",$APP.t.h(a)].join(""),$APP.GE,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),za=null,Oa=0,Sa=0;;)if(Sa<Oa){var db=za.ba(null,Sa),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Xb=function(){var vb=(vb=$APP.Vd(Bb))?F$.h(Bb):vb;return $APP.r(vb)? | ||
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.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,[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.ba(null,Ca),$APP.r($APP.EG(xa,Ha))||c(new $APP.n(null,4,[C$,$APP.FE,A$,["Required option: ", | ||
$APP.t.h(Ha)].join(""),$APP.FE,m,D$,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.EG(xa,a))||c(new $APP.n(null,4,[C$,$APP.FE,A$,["Required option: ",$APP.t.h(a)].join(""),$APP.FE,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),za=null,Oa=0,Sa=0;;)if(Sa<Oa){var db=za.ba(null,Sa),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Xb=function(){var vb=(vb=$APP.Vd(Bb))?F$.h(Bb):vb;return $APP.r(vb)? | ||
vb:Bb}(),qc=$APP.EG(xa,ub);if($APP.r(qc)){var $c=qc,Rb=$APP.B.j($c,0,null),lf=$APP.B.j($c,1,null);if(!$APP.r(Xb.h?Xb.h(lf):Xb.call(null,lf))){var ik=function(){var vb=G$.h(Bb);return $APP.r(vb)?vb:function(){return function(Yb){var Ic=$APP.jf(Yb);Yb=$APP.fe.g(Ic,D$);Ic=$APP.fe.g(Ic,E$);return["Invalid value for option ",$APP.t.h(Yb),": ",$APP.t.h(Ic)].join("")}}(Da,za,Oa,Sa,vb,$c,Rb,lf,qc,Xb,db,ub,Bb,d,e,f,k,l,m,h,p,q,v,D,J,O,c,P,W,ca,ha,na,pa,fa,E,C,da,K,M,ea,ia,ja,ra,ta,xa)}();c(new $APP.n(null, | ||
@@ -41,5 +41,5 @@ 5,[C$,h$,A$,function(){var vb=new $APP.n(null,2,[D$,ub,E$,lf],null);return ik.h?ik.h(vb):ik.call(null,vb)}(),h$,J,D$,ub,E$,lf],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,za=b,Oa=ya;else{var jk=$APP.y(vi),kk=$APP.B.j(jk,0,null),qj=$APP.B.j(jk,1,null),lk=function(){var vb=(vb=$APP.Vd(qj))?F$.h(qj):vb;return $APP.r(vb)?vb:qj}(),yl=$APP.EG(xa,kk);if($APP.r(yl)){var Hc=yl,rj=$APP.B.j(Hc,0,null),wi=$APP.B.j(Hc,1,null);if(!$APP.r(lk.h? | ||
"s","s",1705939918),B$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),Bha=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.ir),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var wha=$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.ir=$APP.Yx;$APP.Xq=$APP.hr=!0;var b=function(){var d=$APP.lH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(yha);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.jH.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.ir=$APP.Wx;$APP.Xq=$APP.hr=!0;var b=function(){var d=$APP.lH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(yha);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.jH.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.ir=$APP.Yx;$APP.Xq=$APP.hr=!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});P$(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.mg($APP.aq.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])))},Cha=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.mH);var b=$APP.u($APP.OG),c=$APP.Qk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.$k); | ||
$$.h=function(){$APP.ir=$APP.Wx;$APP.Xq=$APP.hr=!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});P$(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.mg($APP.aq.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])))},Cha=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.mH);var b=$APP.u($APP.OG),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.jH.l($APP.F(["[squint] Running",d]));return $APP.dH($APP.Rh.l(c,$APP.ZG,d,$APP.F([$APP.qr,function(e){return R$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.aH);e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",$APP.t.h(e)].join("");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); | ||
@@ -50,6 +50,6 @@ a=$APP.fe.g(b,W$);b=$APP.fe.g(b,$APP.mH);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.mH);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, | ||
f.call(null,p)).on("all",function(D,J,O,P,W,ca,ha,na,pa,fa,E,C){return function(da,K){return $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),da)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(K))?V$(fa,new $APP.I(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(D,J,O,P,W,ca,ha,na,pa,fa,E,C)):S$(K,C,E)}}(k,l,m,h, | ||
p,v,q,f,b,c,d,e)),k=$APP.z(v),l=null,m=0);h=0}else return null}})}],null),new $APP.n(null,2,[k$,$APP.lg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.mH);a=$APP.mE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.jH.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.st.h(c))?$APP.Zj("(do %s\n)","%s",a):a;a=$APP.tG.g(a,$APP.Rh.l(c,$APP.st,$APP.st.h(c),$APP.F([$APP.Br, | ||
$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.Yx],null)),$APP.Op,$APP.r($APP.st.h(c))?$APP.Rp:$APP.Sp,$APP.Wt,function(){var f=$APP.st.h(c);return $APP.r(f)?!1!==$APP.Wt.h(c):f}()])));a=$APP.r($APP.st.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(zha.h(c))&&$APP.jH.l($APP.F([a]));if(!1===Aha.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()), | ||
"/",e].join("");return($APP.r($APP.st.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.st.h(c))?$APP.iH.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.jH.l($APP.F(["Squint v0.6.92\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."])): | ||
p,v,q,f,b,c,d,e)),k=$APP.z(v),l=null,m=0);h=0}else return null}})}],null),new $APP.n(null,2,[k$,$APP.lg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.mH);a=$APP.nE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.jH.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.st.h(c))?$APP.Zj("(do %s\n)","%s",a):a;a=$APP.tG.g(a,$APP.Rh.l(c,$APP.st,$APP.st.h(c),$APP.F([$APP.Br, | ||
$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.Wx],null)),$APP.Op,$APP.r($APP.st.h(c))?$APP.Rp:$APP.Sp,$APP.Wt,function(){var f=$APP.st.h(c);return $APP.r(f)?!1!==$APP.Wt.h(c):f}()])));a=$APP.r($APP.st.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(zha.h(c))&&$APP.jH.l($APP.F([a]));if(!1===Aha.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()), | ||
"/",e].join("");return($APP.r($APP.st.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.st.h(c))?$APP.iH.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.jH.l($APP.F(["Squint v0.6.93\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.Er,new $APP.n(null,1,[Bha,U$],null),f$,new $APP.n(null,4,[$APP.Wt,q$,$APP.Fr,q$,$APP.cH,$APP.nl,$APP.st,q$],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=vha(l,d);if($APP.r(h)){k=function(){var v=null==h?null:$APP.x(h);return null==v?null:$APP.mg(v)}();k=$APP.R.g(k,e);f=uha(k,W9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k, | ||
$APP.mH);f=$APP.fe.g(k,l$);k=$APP.fe.g(k,k$);var q=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,l$,q,$APP.F([W$,q,$APP.mH,p,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,Cha)})(); |
@@ -11,7 +11,7 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
WG=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Br);a=$APP.jp($APP.hp(a),$APP.Tt);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(QG,$APP.y(l))?new $APP.I(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.RG.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.SG.h($APP.u($APP.TG)); | ||
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.wr),v=$APP.fe.g(h,$APP.xr);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.LE,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.I(null,1,5,$APP.N,[$APP.UG],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),p=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var q=$APP.fe.g(h,$APP.wr),v=$APP.fe.g(h,$APP.xr);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.KE,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.I(null,1,5,$APP.N,[$APP.UG],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, | ||
VG,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.Mh(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.Ju(J,new $APP.I(null,2,5,$APP.N,[$APP.rt,p],null),D);J=$APP.r(v)?$APP.Ju(J,new $APP.I(null,3,5,$APP.N,[d,$APP.Er,v],null),p):J;return $APP.r(q)?$APP.Ju(J,new $APP.I(null,2,5,$APP.N,[d,$APP.Cr], | ||
null),$APP.bi(q,$APP.Dr.h(p))):J})})})},Promise.resolve(null),e)}):null}return null};XG=function(a,b){return Promise.resolve(WG(a,b)).then(function(){return $APP.gu(a,b,null)})}; | ||
$APP.YG=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.dH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.ZG),c=$APP.fe.g(a,$G),d=$APP.fe.g(a,$APP.aH),e=$APP.fe.g(a,$APP.bH),f=$APP.fe.j(a,$APP.cH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return XG(c,$APP.Rh.j(a,$APP.Br,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.Yx],null)))).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.fu),m=$APP.fe.g(k,$APP.vq),h=$APP.NG.g($APP.u($APP.OG),new $APP.I(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?h=d:(h=$APP.YG(b,h), | ||
$APP.dH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.ZG),c=$APP.fe.g(a,$G),d=$APP.fe.g(a,$APP.aH),e=$APP.fe.g(a,$APP.bH),f=$APP.fe.j(a,$APP.cH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return XG(c,$APP.Rh.j(a,$APP.Br,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.Wx],null)))).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.fu),m=$APP.fe.g(k,$APP.vq),h=$APP.NG.g($APP.u($APP.OG),new $APP.I(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?h=d:(h=$APP.YG(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.cH,f,$APP.aH,p],null));esm_import$fs.writeFileSync(p,l,"utf-8");return $APP.Rh.j(k,$APP.aH,p)})}; | ||
@@ -26,5 +26,5 @@ eH=function(a){return $APP.hu.l(a,$APP.F([$APP.iu,!0]))};fH=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.Iu.g(eH,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.cv):$APP.cv(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.BG.prototype.add=function(a){return this.C.push(a)}; | ||
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.RG.g=function(a,b){return $APP.RG.j(a,a,b)};$APP.RG.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.RG.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.RG.m=3;$APP.GG.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.GG.prototype.$c=function(){return $APP.Za(this.f)}; | ||
$APP.GG.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.dD,null==this.f?$APP.sw:$APP.QA,$APP.av,this.value],null),b,c);return $APP.ic(b,"]")};$APP.kH=function kH(a){switch(arguments.length){case 1:return kH.h(arguments[0]);case 2:return kH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.GG.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.dD,null==this.f?$APP.rw:$APP.RA,$APP.av,this.value],null),b,c);return $APP.ic(b,"]")};$APP.kH=function kH(a){switch(arguments.length){case 1:return kH.h(arguments[0]);case 2:return kH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.kH.h=function(a){return LG(new $APP.n(null,3,[$APP.Cm,$APP.u($APP.wF),$APP.Dm,$APP.u($APP.vF),$APP.il,null],null),a)};$APP.kH.g=function(a,b){return LG($APP.Tm.j($APP.Qk.l($APP.F([new $APP.n(null,1,[$APP.Dm,$APP.u($APP.vF)],null),a])),$APP.Cm,function(c){return $APP.Qk.l($APP.F([$APP.u($APP.wF),c]))}),b)};$APP.kH.m=2;$APP.lH=new $APP.H(null,"port","port",1534937262);$APP.UG=new $APP.H(null,"reload","reload",863702807);$APP.mH=new $APP.H(null,"opts","opts",155075701); | ||
$APP.cH=new $APP.H(null,"output-dir","output-dir",-290956991);QG=new $APP.H(null,"require-macros","require-macros",707947416);$APP.nH=new $APP.H(null,"message","message",-406056002);$APP.ZG=new $APP.H(null,"in-file","in-file",-1682176692);$APP.oH=new $APP.H(null,"id","id",-1388402092);VG=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.NG=new $APP.H(null,"paths","paths",-1807389588);$APP.pH=new $APP.H(null,"eval","eval",-1103567905); | ||
$APP.SG=new $APP.H(null,"eval-form","eval-form",-1934118476);$APP.aH=new $APP.H(null,"out-file","out-file",-1187066405);$G=new $APP.H(null,"in-str","in-str",-1014658121);$APP.bH=new $APP.H(null,"extension","extension",1453374065);$APP.OG=new $APP.GG(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.kH.h(a)}else a=null;return a},null);var qH;$APP.TG=$APP.Vi.h(null);qH=fH(XG);export const compileFile=fH($APP.dH);export const compileString=qH; |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.6.92", | ||
"version": "0.6.93", | ||
"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
1372906
8235