New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

squint-cljs

Package Overview
Dependencies
Maintainers
0
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

squint-cljs - npm Package Compare versions

Comparing version 0.7.111 to 0.8.112

86

lib/cli.js

@@ -6,48 +6,48 @@ 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$path from"path";
var Hha=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.jv.l(Hha,$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,[Iha,a],null));},W9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:V9(a)},Jha=function(a){var b=JSON.parse(a);return $APP.ZG(b)?b:V9(a)},Kha=
function(a){var b=JSON.parse(a);return $APP.$G(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.zi.h($APP.ji.g(a,1)):$APP.zi.h(a)},Lha=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,[Mha,a,Nha,c],null),d);},Oha=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 Jha;case "double":return Kha;case "number":return X9;case "symbol":return $APP.Hi;case "keyword":return Z9;case "string":return $APP.se;case "edn":return $APP.LH;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.$q.g($APP.Ee,
c):c:null},c$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.dH(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},Pha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?Oha(e,d,f):$9(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},Qha=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.dF);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.dF,$APP.$q.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.eH(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.Vu.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);
var Iha=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.kv.l(Iha,$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,[Jha,a],null));},W9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:V9(a)},Kha=function(a){var b=JSON.parse(a);return $APP.$G(b)?b:V9(a)},Lha=
function(a){var b=JSON.parse(a);return $APP.aH(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.zi.h($APP.ji.g(a,1)):$APP.zi.h(a)},Mha=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,[Nha,a,Oha,c],null),d);},Pha=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 Kha;case "double":return Lha;case "number":return X9;case "symbol":return $APP.Hi;case "keyword":return Z9;case "string":return $APP.se;case "edn":return $APP.MH;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.$q.g($APP.Ee,
c):c:null},c$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.eH(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},Qha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?Pha(e,d,f):$9(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},Rha=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.eF);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.eF,$APP.$q.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.fH(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.Wu.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.ex,d,q$,l,r$,a,s$,c,t$,f],null)},Uha=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([Qha(d)])):b,f=d$.h(e),k=function(){var vb=e$.h(e);return $APP.r(vb)?vb:$APP.Mr.h(e)}(),l=Rha.h(e),m=$APP.dF.h(e),h=g$.h(e),p=h$.h(e),q=function(){var vb=x$.h(e);return $APP.r(vb)?vb:Sha.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)]))),
C=$APP.A.g(!0,q)?v:null==q?null:$APP.Zh(q),J=f$.h(e),O=function(){var vb=Tha.h(e);return $APP.r(vb)?vb:function(Yb){Yb=$APP.jf(Yb);var Jc=$APP.fe.g(Yb,y$);throw $APP.cl.g(Jc,Yb);}}(),P=k$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,i$),ha=$APP.fe.g(W,j$),na=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(na),fa=$APP.fe.g(pa,j$),E=$APP.fe.g(pa,l$),D=$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(D,0,null),K=$APP.B.j(D,1,null),M=function(){for(var vb=$APP.hf,Yb=null,Jc=null,Ne=$APP.r(p)?n$:null,hd=$APP.x(K),Kg=E;;){if($APP.Za(hd))return new $APP.I(null,3,5,$APP.N,[vb,Yb,Jc],null);var og=$APP.y(hd),Uc=og instanceof $APP.H;if(Uc){Yb=c$(vb,Yb,Jc,null);var oe=og;hd=$APP.z(hd);vb=Yb;Yb=oe}else{var Cl=!0===og,Sf=$APP.t.h(og);oe=b$(l,Yb,$APP.fe.g(f,Yb));var xi=$APP.fe.g(f,Yb),Dl=u$(Sf,Ne,Yb,xi,Jc),Lh=$APP.jf(Dl),El=$APP.fe.g(Lh,q$),Mh=$APP.fe.g(Lh,
r$),Fl=$APP.fe.g(Lh,s$),Tf=$APP.fe.g(Lh,$APP.ex),nk=$APP.fe.g(Lh,t$);if($APP.r(function(){var Pe=El;return $APP.r(Pe)?Pe:Fl}())){var Yc=$APP.qa(Sf,"--"),ok=Yc&&$APP.A.g("--",Sf);if(ok){var Gl=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Pe=vb;return Gl?$APP.jo.A(Pe,$APP.Xu,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(Gl)):Pe}(),Yb,Jc],null)}var pk=Yc?$APP.ji.g(Sf,2):$APP.Zj(Sf,/^(:|-|)/,""),Af=Yc?$APP.Ir.g(pk,/=/):new $APP.I(null,1,5,$APP.N,[pk],null),Sd=$APP.B.j(Af,0,null),Ce=
5,[$APP.gx,d,q$,l,r$,a,s$,c,t$,f],null)},Vha=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([Rha(d)])):b,f=d$.h(e),k=function(){var vb=e$.h(e);return $APP.r(vb)?vb:$APP.Mr.h(e)}(),l=Sha.h(e),m=$APP.eF.h(e),h=g$.h(e),p=h$.h(e),q=function(){var vb=x$.h(e);return $APP.r(vb)?vb:Tha.h(e)}(),v=$APP.Zh($APP.R.l($APP.Kh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Kh(f)]))),
D=$APP.A.g(!0,q)?v:null==q?null:$APP.Zh(q),J=f$.h(e),O=function(){var vb=Uha.h(e);return $APP.r(vb)?vb:function(Yb){Yb=$APP.jf(Yb);var Jc=$APP.fe.g(Yb,y$);throw $APP.cl.g(Jc,Yb);}}(),P=k$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,i$),ha=$APP.fe.g(W,j$),na=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(na),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,Yb=null,Jc=null,Ne=$APP.r(p)?n$:null,hd=$APP.x(K),Kg=E;;){if($APP.Za(hd))return new $APP.I(null,3,5,$APP.N,[vb,Yb,Jc],null);var og=$APP.y(hd),Uc=og instanceof $APP.H;if(Uc){Yb=c$(vb,Yb,Jc,null);var oe=og;hd=$APP.z(hd);vb=Yb;Yb=oe}else{var Cl=!0===og,Sf=$APP.t.h(og);oe=b$(l,Yb,$APP.fe.g(f,Yb));var xi=$APP.fe.g(f,Yb),Dl=u$(Sf,Ne,Yb,xi,Jc),Lh=$APP.jf(Dl),El=$APP.fe.g(Lh,q$),Mh=$APP.fe.g(Lh,
r$),Fl=$APP.fe.g(Lh,s$),Tf=$APP.fe.g(Lh,$APP.gx),nk=$APP.fe.g(Lh,t$);if($APP.r(function(){var Pe=El;return $APP.r(Pe)?Pe:Fl}())){var Yc=$APP.qa(Sf,"--"),ok=Yc&&$APP.A.g("--",Sf);if(ok){var Gl=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Pe=vb;return Gl?$APP.jo.A(Pe,$APP.Yu,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(Gl)):Pe}(),Yb,Jc],null)}var pk=Yc?$APP.ji.g(Sf,2):$APP.Zj(Sf,/^(:|-|)/,""),Af=Yc?$APP.Ir.g(pk,/=/):new $APP.I(null,1,5,$APP.N,[pk],null),Sd=$APP.B.j(Af,0,null),Ce=
$APP.B.j(Af,1,null),Tb=$APP.zi.h(Sd),Fc=$APP.fe.j(k,Tb,Tb);if($APP.r(Ce))Jc=c$(vb,Yb,Jc,oe),Yb=Fc,Ne=Tf,hd=$APP.He(Ce,$APP.cd(hd)),vb=Jc,Jc=null;else{var Ab=$APP.z(hd),Oe=$APP.y(Ab),tw=u$(Oe,Tf,Yb,xi,Jc);if($APP.r(function(){var Pe=q$.h(tw);return $APP.r(Pe)?Pe:$APP.Qd(Ab)}()))if($APP.r(Mh)){var uw=$APP.ai(Fc);Jc=$APP.Zp.l(function(){return function(Pe){return new $APP.I(null,2,5,$APP.N,[["-",$APP.t.h(Pe)].join(""),!0],null)}}(vb,Yb,Jc,Ne,hd,Kg,uw,Ab,Oe,tw,pk,Af,Sd,Ce,Tb,Fc,Yc,ok,Cl,Sf,oe,xi,Dl,Lh,
El,Mh,Fl,Tf,nk,og,Uc,d,e,f,k,l,m,h,p,q,v,C,J,O,c,P,W,ca,ha,na,pa,fa,E,D,ea,K),$APP.F([uw]));hd=$APP.R.g(Jc,Ab);Ne=Tf;Jc=Yb=null}else hd=$APP.he(v,Fc)?null:$APP.UG($APP.t.h(Fc),":no-"),Ne=$APP.r(hd)?$APP.zi.h($APP.Zj($APP.t.h(Fc),":no-","")):Fc,hd=$APP.He($APP.Za(hd),Ab),Yb=c$(vb,Yb,Jc,oe),oe=Ne,Ne=Tf,vb=Yb,Yb=oe;else Yb=c$(vb,Yb,Jc,oe),oe=Fc,Ne=Tf,hd=Ab,vb=Yb,Yb=oe}}else if(ok=$APP.A.g(o$,xi)&&$APP.Qh.g(Sf,"true")&&$APP.Qh.g(Sf,"false")||$APP.A.g(Jc,Yb)&&$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),Ne=$APP.jf(Kg),Kg=$APP.fe.g(Ne,j$),Ne=$APP.fe.g(Ne,l$),$APP.Qh.g(hd,Kg))oe=Ne,Ne=Tf,hd=Kg,Kg=oe;else return new $APP.I(null,3,5,$APP.N,[$APP.jo.A(vb,$APP.Xu,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(hd)),Yb,Jc],null);else{try{var Yd=Pha(vb,Yb,oe,Lha(xi),Sf,Cl)}catch(Pe){c(new $APP.n(null,4,[A$,d$,y$,$APP.iH(Pe),B$,Yb,C$,Sf],null)),Yd=vb}Jc=$APP.r(function(){var Pe=$APP.A.g(p$,Tf);return Pe?nk:Pe}())?null:Yb;oe=$APP.r(function(){var Pe=
$APP.A.g(p$,Tf);return Pe?nk:Pe}())?null:Yb;Ne=Tf;hd=$APP.z(hd);vb=Yd;Yb=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(Yb){return $APP.Rg.g($APP.lg(ea),Yb)}):vb}(),wa=$APP.r(h)?$APP.Md($APP.Qk.l($APP.F([h,ta])),$APP.Nd(ta)):ta;if($APP.r(C)){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(C,Ha)||c(new $APP.n(null,4,[A$,x$,y$,["Unknown option: ",$APP.t.h(Ha)].join(""),x$,C,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(C,a)||c(new $APP.n(null,4,[A$,x$,y$,["Unknown option: ",$APP.t.h(a)].join(""),x$,C,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.dH(wa,Ha))||c(new $APP.n(null,4,[A$,$APP.dF,y$,["Required option: ",
$APP.t.h(Ha)].join(""),$APP.dF,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.dH(wa,a))||c(new $APP.n(null,4,[A$,$APP.dF,y$,["Required option: ",$APP.t.h(a)].join(""),$APP.dF,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),Xb=function(){var vb=(vb=$APP.Vd(Bb))?D$.h(Bb):vb;return $APP.r(vb)?
vb:Bb}(),qc=$APP.dH(wa,ub);if($APP.r(qc)){var $c=qc,Sb=$APP.B.j($c,0,null),of=$APP.B.j($c,1,null);if(!$APP.r(Xb.h?Xb.h(of):Xb.call(null,of))){var jk=function(){var vb=E$.h(Bb);return $APP.r(vb)?vb:function(){return function(Yb){var Jc=$APP.jf(Yb);Yb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Yb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,$c,Sb,of,qc,Xb,db,ub,Bb,d,e,f,k,l,m,h,p,q,v,C,J,O,c,P,W,ca,ha,na,pa,fa,E,D,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 jk.h?jk.h(vb):jk.call(null,vb)}(),f$,J,B$,ub,C$,of],null))}}Ua+=1}else{var zl=$APP.x(Da);if(zl){var vi=zl;if($APP.Zd(vi))ya=$APP.uc(vi),a=$APP.vc(vi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var kk=$APP.y(vi),lk=$APP.B.j(kk,0,null),rj=$APP.B.j(kk,1,null),mk=function(){var vb=(vb=$APP.Vd(rj))?D$.h(rj):vb;return $APP.r(vb)?vb:rj}(),Al=$APP.dH(wa,lk);if($APP.r(Al)){var Ic=Al,sj=$APP.B.j(Ic,0,null),wi=$APP.B.j(Ic,1,null);if(!$APP.r(mk.h?
mk.h(wi):mk.call(null,wi))){var Bl=function(){var vb=E$.h(rj);return $APP.r(vb)?vb:function(){return function(Yb){var Jc=$APP.jf(Yb);Yb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Yb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,Ic,sj,wi,Al,mk,kk,lk,rj,vi,zl,d,e,f,k,l,m,h,p,q,v,C,J,O,c,P,W,ca,ha,na,pa,fa,E,D,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$,lk,C$,wi],null);return Bl.h?Bl.h(vb):Bl.call(null,vb)}(),
f$,J,B$,lk,C$,wi],null))}}Da=$APP.z(vi);Aa=null;Oa=0}Ua=0}else break}return wa},Vha=function(a,b){a=Uha(a,b);b=w$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.NH,$APP.Rk.g(a,w$))},Wha=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.jH($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)))},Xha=function(a,b,c){var d=function(){var k=$APP.pr;$APP.pr=$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.uu(m,new $APP.n(null,2,[$APP.Kp,$APP.Pp,$APP.ku,!0],null),$APP.u(L$))}finally{$APP.pr=k}}(),e=$APP.jf(d),f=$APP.fe.g(e,$APP.tu);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.hu)}catch(f){var e=
f;if(-1!=$APP.iH(e).indexOf("EOF while reading"))return M$;K$(c);$APP.JH.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):Xha(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)})},Yha=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.KH.l($APP.F(["Client closed connection."]))})},
P$=function(a,b,c){return $APP.r(c)?esm_import$path.resolve(c,$APP.yH(a,b)):a},Q$=function(a,b,c){var d=$APP.DH.h(a),e=$APP.mH.h(a);b=P$(b,e,d);c=$APP.oH(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.CH.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Zj(d,$APP.ki([$APP.t.h(e),"$"].join("")),a)].join("")):null},R$=function(a,b,c,d){if($APP.r(a)){var e=
esm_import$path.resolve(c,$APP.yH(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.KH.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0})),$APP.KH.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.nH),
d=$APP.Qk.l($APP.F([c,a])),e=$APP.mH.h(c),f=S$.h(c),k=$APP.DH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Zp.l(T$,$APP.F([e]))):b;b=$APP.DH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.KH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.KH(),$APP.KH.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.KH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.EH($APP.Rh.l(d,$APP.zH,m,$APP.F([$APP.xr,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.BH);$APP.r(h)&&$APP.KH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},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),Zha=new $APP.H(null,"show","show",-576705889),o$=new $APP.H(null,"boolean","boolean",-1919418404),Mha=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),Rha=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),$ha=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),Nha=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),Sha=new $APP.H(null,
"closed","closed",-919675359),M$=new $APP.H("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Tha=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),Iha=new $APP.H(null,"s","s",1705939918),z$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),aia=new $APP.H(null,"h","h",1109658740),i$=new $APP.H(null,"cmds","cmds",
El,Mh,Fl,Tf,nk,og,Uc,d,e,f,k,l,m,h,p,q,v,D,J,O,c,P,W,ca,ha,na,pa,fa,E,C,ea,K),$APP.F([uw]));hd=$APP.R.g(Jc,Ab);Ne=Tf;Jc=Yb=null}else hd=$APP.he(v,Fc)?null:$APP.VG($APP.t.h(Fc),":no-"),Ne=$APP.r(hd)?$APP.zi.h($APP.Zj($APP.t.h(Fc),":no-","")):Fc,hd=$APP.He($APP.Za(hd),Ab),Yb=c$(vb,Yb,Jc,oe),oe=Ne,Ne=Tf,vb=Yb,Yb=oe;else Yb=c$(vb,Yb,Jc,oe),oe=Fc,Ne=Tf,hd=Ab,vb=Yb,Yb=oe}}else if(ok=$APP.A.g(o$,xi)&&$APP.Qh.g(Sf,"true")&&$APP.Qh.g(Sf,"false")||$APP.A.g(Jc,Yb)&&$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),Ne=$APP.jf(Kg),Kg=$APP.fe.g(Ne,j$),Ne=$APP.fe.g(Ne,l$),$APP.Qh.g(hd,Kg))oe=Ne,Ne=Tf,hd=Kg,Kg=oe;else return new $APP.I(null,3,5,$APP.N,[$APP.jo.A(vb,$APP.Yu,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(hd)),Yb,Jc],null);else{try{var Yd=Qha(vb,Yb,oe,Mha(xi),Sf,Cl)}catch(Pe){c(new $APP.n(null,4,[A$,d$,y$,$APP.jH(Pe),B$,Yb,C$,Sf],null)),Yd=vb}Jc=$APP.r(function(){var Pe=$APP.A.g(p$,Tf);return Pe?nk:Pe}())?null:Yb;oe=$APP.r(function(){var Pe=
$APP.A.g(p$,Tf);return Pe?nk:Pe}())?null:Yb;Ne=Tf;hd=$APP.z(hd);vb=Yd;Yb=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(Yb){return $APP.Rg.g($APP.lg(ea),Yb)}):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.eH(wa,Ha))||c(new $APP.n(null,4,[A$,$APP.eF,y$,["Required option: ",
$APP.t.h(Ha)].join(""),$APP.eF,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.eH(wa,a))||c(new $APP.n(null,4,[A$,$APP.eF,y$,["Required option: ",$APP.t.h(a)].join(""),$APP.eF,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),Xb=function(){var vb=(vb=$APP.Vd(Bb))?D$.h(Bb):vb;return $APP.r(vb)?
vb:Bb}(),qc=$APP.eH(wa,ub);if($APP.r(qc)){var $c=qc,Sb=$APP.B.j($c,0,null),of=$APP.B.j($c,1,null);if(!$APP.r(Xb.h?Xb.h(of):Xb.call(null,of))){var jk=function(){var vb=E$.h(Bb);return $APP.r(vb)?vb:function(){return function(Yb){var Jc=$APP.jf(Yb);Yb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Yb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,$c,Sb,of,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,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 jk.h?jk.h(vb):jk.call(null,vb)}(),f$,J,B$,ub,C$,of],null))}}Ua+=1}else{var zl=$APP.x(Da);if(zl){var vi=zl;if($APP.Zd(vi))ya=$APP.uc(vi),a=$APP.vc(vi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var kk=$APP.y(vi),lk=$APP.B.j(kk,0,null),rj=$APP.B.j(kk,1,null),mk=function(){var vb=(vb=$APP.Vd(rj))?D$.h(rj):vb;return $APP.r(vb)?vb:rj}(),Al=$APP.eH(wa,lk);if($APP.r(Al)){var Ic=Al,sj=$APP.B.j(Ic,0,null),wi=$APP.B.j(Ic,1,null);if(!$APP.r(mk.h?
mk.h(wi):mk.call(null,wi))){var Bl=function(){var vb=E$.h(rj);return $APP.r(vb)?vb:function(){return function(Yb){var Jc=$APP.jf(Yb);Yb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Yb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,Ic,sj,wi,Al,mk,kk,lk,rj,vi,zl,d,e,f,k,l,m,h,p,q,v,D,J,O,c,P,W,ca,ha,na,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null,5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,lk,C$,wi],null);return Bl.h?Bl.h(vb):Bl.call(null,vb)}(),
f$,J,B$,lk,C$,wi],null))}}Da=$APP.z(vi);Aa=null;Oa=0}Ua=0}else break}return wa},Wha=function(a,b){a=Vha(a,b);b=w$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.OH,$APP.Rk.g(a,w$))},Xha=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.kH($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)))},Yha=function(a,b,c){var d=function(){var k=$APP.pr;$APP.pr=$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.vu(m,new $APP.n(null,2,[$APP.Kp,$APP.Pp,$APP.lu,!0],null),$APP.u(L$))}finally{$APP.pr=k}}(),e=$APP.jf(d),f=$APP.fe.g(e,$APP.uu);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.iu)}catch(f){var e=
f;if(-1!=$APP.jH(e).indexOf("EOF while reading"))return M$;K$(c);$APP.KH.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):Yha(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)})},Zha=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.LH.l($APP.F(["Client closed connection."]))})},
P$=function(a,b,c){return $APP.r(c)?esm_import$path.resolve(c,$APP.zH(a,b)):a},Q$=function(a,b,c){var d=$APP.EH.h(a),e=$APP.nH.h(a);b=P$(b,e,d);c=$APP.pH(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.DH.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Zj(d,$APP.ki([$APP.t.h(e),"$"].join("")),a)].join("")):null},R$=function(a,b,c,d){if($APP.r(a)){var e=
esm_import$path.resolve(c,$APP.zH(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.LH.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0})),$APP.LH.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.oH),
d=$APP.Qk.l($APP.F([c,a])),e=$APP.nH.h(c),f=S$.h(c),k=$APP.EH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Zp.l(T$,$APP.F([e]))):b;b=$APP.EH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.LH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.LH(),$APP.LH.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.LH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.FH($APP.Rh.l(d,$APP.AH,m,$APP.F([$APP.xr,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.CH);$APP.r(h)&&$APP.LH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},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),$ha=new $APP.H(null,"show","show",-576705889),o$=new $APP.H(null,"boolean","boolean",-1919418404),Nha=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),Sha=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),aia=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),Oha=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),Tha=new $APP.H(null,
"closed","closed",-919675359),M$=new $APP.H("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Uha=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),Jha=new $APP.H(null,"s","s",1705939918),z$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),bia=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.pr),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.pr=$APP.my;$APP.dr=$APP.or=!0;var b=function(){var d=$APP.MH.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.KH.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.pr=$APP.ny;$APP.dr=$APP.or=!0;var b=function(){var d=$APP.NH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(Zha);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.LH.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.pr=$APP.my;$APP.dr=$APP.or=!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])))},bia=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.NH);var b=$APP.u($APP.nH),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.KH.l($APP.F(["[squint] Running",d]));return $APP.EH($APP.Rh.l(c,$APP.zH,d,$APP.F([$APP.xr,function(e){return Q$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.BH);e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",$APP.t.h(e)].join("");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.NH);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.NH);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){var b=$APP.u($APP.nH),c=$APP.Qk.l($APP.F([b,a])),d=$APP.mH.h(b),e=$APP.DH.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.KH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,p=0;;)if(p<h){var q=m.ba(null,p);(k.h?k.h(q):k.call(null,q)).on("all",function(J,O,P,W,ca,ha,na,pa,fa,E,D){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,na,pa,fa,E,D)):R$(D,K,E,fa):null}}(l,m,h,p,q,k,b,c,d,e,f));p+=1}else{var v=$APP.x(l);if(v){var C=v;$APP.Zd(C)?(l=$APP.uc(C),h=$APP.vc(C),
m=l,C=$APP.xd(l),l=h,h=C):(q=$APP.y(C),(k.h?k.h(q):k.call(null,q)).on("all",function(J,O,P,W,ca,ha,na,pa,fa,E,D,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,na,pa,fa,E,D,ea,K)):R$(K,da,ea,D):null}}(l,m,h,p,q,C,v,k,b,c,d,e,f)),l=$APP.z(C),m=null,h=0);p=0}else return null}})}],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.NH);a=$APP.LE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.KH.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.TG.g(a,$APP.Rh.l(c,$APP.$p,$APP.$p.h(c),$APP.F([$APP.Jr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.my],null)),$APP.Kp,$APP.r($APP.$p.h(c))?$APP.Pp:$APP.Qp,$APP.ku,function(){var f=$APP.$p.h(c);return $APP.r(f)?!1!==$APP.ku.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(Zha.h(c))&&$APP.KH.l($APP.F([a]));if(!1===$ha.h(c))return null;
e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");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.JH.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.KH.l($APP.F(["Squint v0.7.111\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.Mr,new $APP.n(null,1,[aia,U$],null),d$,new $APP.n(null,4,[$APP.ku,o$,$APP.Nr,o$,$APP.DH,$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=Wha(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=Vha(k,U9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k,
$APP.NH);f=$APP.fe.g(k,j$);k=$APP.fe.g(k,i$);var q=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,j$,q,$APP.F([W$,q,$APP.NH,p,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,bia)})();
$$.h=function(){$APP.pr=$APP.ny;$APP.dr=$APP.or=!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])))},cia=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.OH);var b=$APP.u($APP.oH),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.LH.l($APP.F(["[squint] Running",d]));return $APP.FH($APP.Rh.l(c,$APP.AH,d,$APP.F([$APP.xr,function(e){return Q$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.CH);e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",$APP.t.h(e)].join("");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.OH);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.OH);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){var b=$APP.u($APP.oH),c=$APP.Qk.l($APP.F([b,a])),d=$APP.nH.h(b),e=$APP.EH.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.LH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,p=0;;)if(p<h){var q=m.ba(null,p);(k.h?k.h(q):k.call(null,q)).on("all",function(J,O,P,W,ca,ha,na,pa,fa,E,C){return function(ea,K){return $APP.r(esm_import$fs.existsSync(K))?
$APP.r(esm_import$fs.lstatSync(K).isDirectory())?null:$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),ea)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(K))?V$(pa,new $APP.I(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(J,O,P,W,ca,ha,na,pa,fa,E,C)):R$(C,K,E,fa):null}}(l,m,h,p,q,k,b,c,d,e,f));p+=1}else{var v=$APP.x(l);if(v){var D=v;$APP.Zd(D)?(l=$APP.uc(D),h=$APP.vc(D),
m=l,D=$APP.xd(l),l=h,h=D):(q=$APP.y(D),(k.h?k.h(q):k.call(null,q)).on("all",function(J,O,P,W,ca,ha,na,pa,fa,E,C,ea,K){return function(M,da){return $APP.r(esm_import$fs.existsSync(da))?$APP.r(esm_import$fs.lstatSync(da).isDirectory())?null:$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),M)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(da))?V$(E,new $APP.I(null,1,5,$APP.N,[da],null)).catch(function(){return function(ia){return console.error(ia)}}(J,
O,P,W,ca,ha,na,pa,fa,E,C,ea,K)):R$(K,da,ea,C):null}}(l,m,h,p,q,D,v,k,b,c,d,e,f)),l=$APP.z(D),m=null,h=0);p=0}else return null}})}],null),new $APP.n(null,2,[i$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.OH);a=$APP.NE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.LH.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.UG.g(a,$APP.Rh.l(c,$APP.$p,$APP.$p.h(c),$APP.F([$APP.Jr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ny],null)),$APP.Kp,$APP.r($APP.$p.h(c))?$APP.Pp:$APP.Qp,$APP.lu,function(){var f=$APP.$p.h(c);return $APP.r(f)?!1!==$APP.lu.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($ha.h(c))&&$APP.LH.l($APP.F([a]));if(!1===aia.h(c))return null;
e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");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.KH.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.LH.l($APP.F(["Squint v0.8.112\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.Mr,new $APP.n(null,1,[bia,U$],null),d$,new $APP.n(null,4,[$APP.lu,o$,$APP.Nr,o$,$APP.EH,$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=Xha(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=Wha(k,U9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k,
$APP.OH);f=$APP.fe.g(k,j$);k=$APP.fe.g(k,i$);var q=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,j$,q,$APP.F([W$,q,$APP.OH,p,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,cia)})();
import { $APP, shadow$provide, $jscomp } from "./compiler.js";
import "./node.js";
const shadow_esm_import = function(x) { return import(x) };
import*as esm_import$fs from"fs";import*as esm_import$path from"path";var VG,WG,XG,kH,lH,vH,wH,xH,FH,GH,pH,uH,AH;$APP.UG=function(a,b){return $APP.qa(a,b)};VG=function(a,b){a.sort(b||$APP.Ba)};WG=function(a,b){const c=Array(a.length);for(let e=0;e<a.length;e++)c[e]={index:e,value:a[e]};const d=b||$APP.Ba;VG(c,function(e,f){return d(e.value,f.value)||e.index-f.index});for(b=0;b<a.length;b++)a[b]=c[b].value};XG=function(){};
$APP.YG=function(a){return null!=a?a.D&512||$APP.Oc===a.Ce?!0:a.D?!1:$APP.cb($APP.yb,a):$APP.cb($APP.yb,a)};$APP.ZG=function(a){return $APP.ee(a)||!1};$APP.$G=function(a){return"number"===typeof a};$APP.aH=function(){this.C=[]};$APP.bH=function(a){return $APP.A.g(a,$APP.ie)?$APP.ie:function(b,c){var d=a.g?a.g(b,c):a.call(null,b,c);return"number"===typeof d?d:$APP.r(d)?-1:$APP.r(a.g?a.g(c,b):a.call(null,c,b))?1:0}};$APP.cH=function(a){$APP.pi("\n");return $APP.fe.g(a,$APP.Ga),null};
$APP.dH=function(a,b){return(null!=a?$APP.Oc===a.Hc||(a.wd?0:$APP.cb(XG,a)):$APP.cb(XG,a))?$APP.Db(a,b):null!=a&&$APP.YG(a)&&$APP.he(a,b)?new $APP.Ig(b,$APP.fe.g(a,b),null):null};$APP.eH=function(a,b){return new $APP.I(null,2,5,$APP.N,[$APP.gs.g(a,b),$APP.hs.g(a,b)],null)};$APP.fH=function(a,b){this.f=a;this.value=b;this.D=2147516416;this.M=1};$APP.gH=function(a){return Math.floor(Math.random()*a)};
$APP.hH=function(){function a(){return $APP.gH(16).toString(16)}var b=(8|3&$APP.gH(16)).toString(16);return new $APP.nj([$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-4",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(b),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),
$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a())].join("").toLowerCase())};$APP.iH=function(a){return a instanceof Error?a.message:null};$APP.jH=function(a){return $APP.Ir.g(a,/\n|\r\n/)};kH=function(a,b){return $APP.r($APP.r(b)?$APP.Qh.g(b,""):b)?$APP.Em(a,$APP.Kk(b)):null};lH=function(a,b){return $APP.Ef(function(c){c=esm_import$path.resolve(a,[$APP.t.h(b),".",$APP.t.h(c)].join(""));return $APP.r(esm_import$fs.existsSync(c))?c:null},new $APP.I(null,2,5,$APP.N,["cljc","cljs"],null))};
$APP.oH=function(a){var b=$APP.Zj($APP.Zj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return lH(c,b)},$APP.mH.g($APP.u($APP.nH),new $APP.I(null,2,5,$APP.N,[".","src"],null)))};
vH=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Jr);a=$APP.jp($APP.hp(a),$APP.hu);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(pH,$APP.y(l))?new $APP.I(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.qH.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.rH.h($APP.u($APP.sH));
return $APP.ne.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.Er),v=$APP.fe.g(h,$APP.Fr);return Promise.resolve(function(){var C=function(){var O=new $APP.G(null,$APP.jF,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.tH],null)):O}();k.h?k.h(C):k.call(null,C);var J=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null,
uH,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)}();C=$APP.Kh(J);J=$APP.Oh(J);J=$APP.ui.g($APP.od,J);return $APP.bi(C,J)}()).then(function(C){return $APP.Wi.g(c,function(J){J=$APP.Xu(J,new $APP.I(null,2,5,$APP.N,[$APP.Ft,p],null),C);J=$APP.r(v)?$APP.Xu(J,new $APP.I(null,3,5,$APP.N,[d,$APP.Mr,v],null),p):J;return $APP.r(q)?$APP.Xu(J,new $APP.I(null,2,5,$APP.N,[d,$APP.Kr],
null),$APP.bi(q,$APP.Lr.h(p))):J})})})},Promise.resolve(null),e)}):null}return null};wH=function(a){var b=$APP.Rh.j;var c=$APP.Jr.h(a);c=$APP.r(c)?c:$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.my],null));return b.call($APP.Rh,a,$APP.Jr,c)};xH=function(a,b){var c=wH(b);return Promise.resolve(vH(a,c)).then(function(){return $APP.uu(a,c,null)})};
$APP.yH=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)};
$APP.EH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.zH),c=$APP.fe.g(a,AH),d=$APP.fe.g(a,$APP.BH),e=$APP.fe.g(a,$APP.CH),f=$APP.fe.j(a,$APP.DH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");a=wH(a);return xH(c,a).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.tu),m=$APP.fe.g(k,$APP.zq),h=$APP.mH.g($APP.u($APP.nH),new $APP.I(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?h=d:(h=$APP.yH(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.DH,f,$APP.BH,p],null));esm_import$fs.writeFileSync(p,l,"utf-8");return $APP.Rh.j(k,$APP.BH,p)})};FH=function(a){return $APP.vu.l(a,$APP.F([$APP.wu,!0]))};
GH=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.Wu.g(FH,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.qv):$APP.qv(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.aH.prototype.add=function(a){return this.C.push(a)};$APP.aH.prototype.size=function(){return this.C.length};
$APP.aH.prototype.clear=function(){return this.C=[]};$APP.aH.prototype.fd=function(){return 0===this.C.length};$APP.HH=function HH(a){switch(arguments.length){case 1:return HH.h(arguments[0]);case 2:return HH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.HH.h=function(a){return $APP.HH.g($APP.ie,a)};$APP.HH.g=function(a,b){if($APP.x(b)){var c=$APP.Ze.h?$APP.Ze.h(b):$APP.Ze.call(null,b);WG(c,$APP.bH(a));return $APP.Md($APP.x(c),$APP.Nd(b))}return $APP.bd};
$APP.HH.m=2;$APP.IH=function IH(a){switch(arguments.length){case 2:return IH.g(arguments[0],arguments[1]);case 3:return IH.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.IH.g=function(a,b){return $APP.IH.j(a,$APP.ie,b)};$APP.IH.j=function(a,b,c){return $APP.HH.g(function(d,e){d=a.h?a.h(d):a.call(null,d);e=a.h?a.h(e):a.call(null,e);var f=$APP.bH(b);return f.g?f.g(d,e):f.call(null,d,e)},c)};$APP.IH.m=3;
$APP.JH=function JH(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return JH.l(0<c.length?new $APP.Xc(c.slice(0),0,null):null)};$APP.JH.l=function(a){$APP.Gi(a,$APP.Ra());return $APP.r($APP.Sa)?$APP.cH($APP.Ra()):null};$APP.JH.m=0;$APP.JH.o=function(a){return this.l($APP.x(a))};$APP.KH=function KH(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return KH.l(0<c.length?new $APP.Xc(c.slice(0),0,null):null)};
$APP.KH.l=function(a){$APP.Gi(a,$APP.Rh.j($APP.Ra(),$APP.Ia,!1));return $APP.r($APP.Sa)?$APP.cH($APP.Ra()):null};$APP.KH.m=0;$APP.KH.o=function(a){return this.l($APP.x(a))};$APP.qH=function qH(a){switch(arguments.length){case 1:return qH.h(arguments[0]);case 2:return qH.g(arguments[0],arguments[1]);case 3:return qH.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.qH.h=function(a){return function(b){var c=new $APP.aH;return function(){function d(l,m){c.add(m);return a===c.size()?(m=$APP.lg(c.C),c.clear(),b.g?b.g(l,m):b.call(null,l,m)):l}function e(l){if(!$APP.r(c.fd())){var m=$APP.lg(c.C);c.clear();l=$APP.pd(b.g?b.g(l,m):b.call(null,l,m))}return b.h?b.h(l):b.call(null,l)}function f(){return b.v?b.v():b.call(null)}var k=null;k=function(l,m){switch(arguments.length){case 0:return f.call(this);case 1:return e.call(this,l);case 2:return d.call(this,l,m)}throw Error("Invalid arity: "+
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.qH.g=function(a,b){return $APP.qH.j(a,a,b)};$APP.qH.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.qH.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.qH.m=3;$APP.fH.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.fH.prototype.$c=function(){return $APP.Za(this.f)};
$APP.fH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.AD,null==this.f?$APP.Gw:$APP.lB,$APP.ov,this.value],null),b,c);return $APP.ic(b,"]")};$APP.LH=function LH(a){switch(arguments.length){case 1:return LH.h(arguments[0]);case 2:return LH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.LH.h=function(a){return kH(new $APP.n(null,3,[$APP.Cm,$APP.u($APP.VF),$APP.Dm,$APP.u($APP.UF),$APP.il,null],null),a)};$APP.LH.g=function(a,b){return kH($APP.Tm.j($APP.Qk.l($APP.F([new $APP.n(null,1,[$APP.Dm,$APP.u($APP.UF)],null),a])),$APP.Cm,function(c){return $APP.Qk.l($APP.F([$APP.u($APP.VF),c]))}),b)};$APP.LH.m=2;$APP.MH=new $APP.H(null,"port","port",1534937262);$APP.tH=new $APP.H(null,"reload","reload",863702807);$APP.NH=new $APP.H(null,"opts","opts",155075701);
$APP.DH=new $APP.H(null,"output-dir","output-dir",-290956991);pH=new $APP.H(null,"require-macros","require-macros",707947416);$APP.OH=new $APP.H(null,"message","message",-406056002);$APP.zH=new $APP.H(null,"in-file","in-file",-1682176692);$APP.PH=new $APP.H(null,"id","id",-1388402092);uH=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.mH=new $APP.H(null,"paths","paths",-1807389588);$APP.QH=new $APP.H(null,"eval","eval",-1103567905);
$APP.rH=new $APP.H(null,"eval-form","eval-form",-1934118476);$APP.BH=new $APP.H(null,"out-file","out-file",-1187066405);AH=new $APP.H(null,"in-str","in-str",-1014658121);$APP.CH=new $APP.H(null,"extension","extension",1453374065);$APP.nH=new $APP.fH(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.LH.h(a)}else a=null;return a},null);var RH;$APP.sH=$APP.Vi.h(null);RH=GH(xH);export const compileFile=GH($APP.EH);export const compileString=RH;
import*as esm_import$fs from"fs";import*as esm_import$path from"path";var WG,XG,YG,lH,mH,wH,xH,yH,GH,HH,qH,vH,BH;$APP.VG=function(a,b){return $APP.qa(a,b)};WG=function(a,b){a.sort(b||$APP.Ba)};XG=function(a,b){const c=Array(a.length);for(let e=0;e<a.length;e++)c[e]={index:e,value:a[e]};const d=b||$APP.Ba;WG(c,function(e,f){return d(e.value,f.value)||e.index-f.index});for(b=0;b<a.length;b++)a[b]=c[b].value};YG=function(){};
$APP.ZG=function(a){return null!=a?a.D&512||$APP.Oc===a.Ce?!0:a.D?!1:$APP.cb($APP.yb,a):$APP.cb($APP.yb,a)};$APP.$G=function(a){return $APP.ee(a)||!1};$APP.aH=function(a){return"number"===typeof a};$APP.bH=function(){this.C=[]};$APP.cH=function(a){return $APP.A.g(a,$APP.ie)?$APP.ie:function(b,c){var d=a.g?a.g(b,c):a.call(null,b,c);return"number"===typeof d?d:$APP.r(d)?-1:$APP.r(a.g?a.g(c,b):a.call(null,c,b))?1:0}};$APP.dH=function(a){$APP.pi("\n");return $APP.fe.g(a,$APP.Ga),null};
$APP.eH=function(a,b){return(null!=a?$APP.Oc===a.Hc||(a.wd?0:$APP.cb(YG,a)):$APP.cb(YG,a))?$APP.Db(a,b):null!=a&&$APP.ZG(a)&&$APP.he(a,b)?new $APP.Ig(b,$APP.fe.g(a,b),null):null};$APP.fH=function(a,b){return new $APP.I(null,2,5,$APP.N,[$APP.gs.g(a,b),$APP.hs.g(a,b)],null)};$APP.gH=function(a,b){this.f=a;this.value=b;this.D=2147516416;this.M=1};$APP.hH=function(a){return Math.floor(Math.random()*a)};
$APP.iH=function(){function a(){return $APP.hH(16).toString(16)}var b=(8|3&$APP.hH(16)).toString(16);return new $APP.nj([$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-4",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(b),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),
$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a())].join("").toLowerCase())};$APP.jH=function(a){return a instanceof Error?a.message:null};$APP.kH=function(a){return $APP.Ir.g(a,/\n|\r\n/)};lH=function(a,b){return $APP.r($APP.r(b)?$APP.Qh.g(b,""):b)?$APP.Em(a,$APP.Kk(b)):null};mH=function(a,b){return $APP.Ef(function(c){c=esm_import$path.resolve(a,[$APP.t.h(b),".",$APP.t.h(c)].join(""));return $APP.r(esm_import$fs.existsSync(c))?c:null},new $APP.I(null,2,5,$APP.N,["cljc","cljs"],null))};
$APP.pH=function(a){var b=$APP.Zj($APP.Zj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return mH(c,b)},$APP.nH.g($APP.u($APP.oH),new $APP.I(null,2,5,$APP.N,[".","src"],null)))};
wH=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Jr);a=$APP.jp($APP.hp(a),$APP.iu);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(qH,$APP.y(l))?new $APP.I(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.rH.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.sH.h($APP.u($APP.tH));
return $APP.ne.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.Er),v=$APP.fe.g(h,$APP.Fr);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.jF,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.uH],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,
vH,null,1,null),new $APP.G(null,$APP.S.h($APP.x($APP.R.g(new $APP.G(null,$APP.Mj,null,1,null),new $APP.G(null,p,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Kh(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.Yu(J,new $APP.I(null,2,5,$APP.N,[$APP.Ft,p],null),D);J=$APP.r(v)?$APP.Yu(J,new $APP.I(null,3,5,$APP.N,[d,$APP.Mr,v],null),p):J;return $APP.r(q)?$APP.Yu(J,new $APP.I(null,2,5,$APP.N,[d,$APP.Kr],
null),$APP.bi(q,$APP.Lr.h(p))):J})})})},Promise.resolve(null),e)}):null}return null};xH=function(a){var b=$APP.Rh.j;var c=$APP.Jr.h(a);c=$APP.r(c)?c:$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ny],null));return b.call($APP.Rh,a,$APP.Jr,c)};yH=function(a,b){var c=xH(b);return Promise.resolve(wH(a,c)).then(function(){return $APP.vu(a,c,null)})};
$APP.zH=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)};
$APP.FH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.AH),c=$APP.fe.g(a,BH),d=$APP.fe.g(a,$APP.CH),e=$APP.fe.g(a,$APP.DH),f=$APP.fe.j(a,$APP.EH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");a=xH(a);return yH(c,a).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.uu),m=$APP.fe.g(k,$APP.zq),h=$APP.nH.g($APP.u($APP.oH),new $APP.I(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?h=d:(h=$APP.zH(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.EH,f,$APP.CH,p],null));esm_import$fs.writeFileSync(p,l,"utf-8");return $APP.Rh.j(k,$APP.CH,p)})};GH=function(a){return $APP.wu.l(a,$APP.F([$APP.xu,!0]))};
HH=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.Xu.g(GH,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.rv):$APP.rv(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.bH.prototype.add=function(a){return this.C.push(a)};$APP.bH.prototype.size=function(){return this.C.length};
$APP.bH.prototype.clear=function(){return this.C=[]};$APP.bH.prototype.fd=function(){return 0===this.C.length};$APP.IH=function IH(a){switch(arguments.length){case 1:return IH.h(arguments[0]);case 2:return IH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.IH.h=function(a){return $APP.IH.g($APP.ie,a)};$APP.IH.g=function(a,b){if($APP.x(b)){var c=$APP.Ze.h?$APP.Ze.h(b):$APP.Ze.call(null,b);XG(c,$APP.cH(a));return $APP.Md($APP.x(c),$APP.Nd(b))}return $APP.bd};
$APP.IH.m=2;$APP.JH=function JH(a){switch(arguments.length){case 2:return JH.g(arguments[0],arguments[1]);case 3:return JH.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.JH.g=function(a,b){return $APP.JH.j(a,$APP.ie,b)};$APP.JH.j=function(a,b,c){return $APP.IH.g(function(d,e){d=a.h?a.h(d):a.call(null,d);e=a.h?a.h(e):a.call(null,e);var f=$APP.cH(b);return f.g?f.g(d,e):f.call(null,d,e)},c)};$APP.JH.m=3;
$APP.KH=function KH(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return KH.l(0<c.length?new $APP.Xc(c.slice(0),0,null):null)};$APP.KH.l=function(a){$APP.Gi(a,$APP.Ra());return $APP.r($APP.Sa)?$APP.dH($APP.Ra()):null};$APP.KH.m=0;$APP.KH.o=function(a){return this.l($APP.x(a))};$APP.LH=function LH(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return LH.l(0<c.length?new $APP.Xc(c.slice(0),0,null):null)};
$APP.LH.l=function(a){$APP.Gi(a,$APP.Rh.j($APP.Ra(),$APP.Ia,!1));return $APP.r($APP.Sa)?$APP.dH($APP.Ra()):null};$APP.LH.m=0;$APP.LH.o=function(a){return this.l($APP.x(a))};$APP.rH=function rH(a){switch(arguments.length){case 1:return rH.h(arguments[0]);case 2:return rH.g(arguments[0],arguments[1]);case 3:return rH.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.rH.h=function(a){return function(b){var c=new $APP.bH;return function(){function d(l,m){c.add(m);return a===c.size()?(m=$APP.lg(c.C),c.clear(),b.g?b.g(l,m):b.call(null,l,m)):l}function e(l){if(!$APP.r(c.fd())){var m=$APP.lg(c.C);c.clear();l=$APP.pd(b.g?b.g(l,m):b.call(null,l,m))}return b.h?b.h(l):b.call(null,l)}function f(){return b.v?b.v():b.call(null)}var k=null;k=function(l,m){switch(arguments.length){case 0:return f.call(this);case 1:return e.call(this,l);case 2:return d.call(this,l,m)}throw Error("Invalid arity: "+
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.rH.g=function(a,b){return $APP.rH.j(a,a,b)};$APP.rH.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.rH.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.rH.m=3;$APP.gH.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.gH.prototype.$c=function(){return $APP.Za(this.f)};
$APP.gH.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.Jw:$APP.pB,$APP.pv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.MH=function MH(a){switch(arguments.length){case 1:return MH.h(arguments[0]);case 2:return MH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.MH.h=function(a){return lH(new $APP.n(null,3,[$APP.Cm,$APP.u($APP.WF),$APP.Dm,$APP.u($APP.VF),$APP.il,null],null),a)};$APP.MH.g=function(a,b){return lH($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.MH.m=2;$APP.NH=new $APP.H(null,"port","port",1534937262);$APP.uH=new $APP.H(null,"reload","reload",863702807);$APP.OH=new $APP.H(null,"opts","opts",155075701);
$APP.EH=new $APP.H(null,"output-dir","output-dir",-290956991);qH=new $APP.H(null,"require-macros","require-macros",707947416);$APP.PH=new $APP.H(null,"message","message",-406056002);$APP.AH=new $APP.H(null,"in-file","in-file",-1682176692);$APP.QH=new $APP.H(null,"id","id",-1388402092);vH=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.nH=new $APP.H(null,"paths","paths",-1807389588);$APP.RH=new $APP.H(null,"eval","eval",-1103567905);
$APP.sH=new $APP.H(null,"eval-form","eval-form",-1934118476);$APP.CH=new $APP.H(null,"out-file","out-file",-1187066405);BH=new $APP.H(null,"in-str","in-str",-1014658121);$APP.DH=new $APP.H(null,"extension","extension",1453374065);$APP.oH=new $APP.gH(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.MH.h(a)}else a=null;return a},null);var SH;$APP.tH=$APP.Vi.h(null);SH=HH(yH);export const compileFile=HH($APP.FH);export const compileString=SH;

@@ -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))},gha=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.PH),e=$APP.fe.g(b,fha);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)}},iha=function(){var a=
hha;return function(b,c){b=$APP.Tm.j(b,K9,$APP.zi);return a.g?a.g(b,c):a.call(null,b,c)}},kha=function(){var a=jha();return function(b,c){J9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},lha=function(a){return function(b,c){J9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},jha=function(){var a=iha();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.vu.h(a.split("."))),
"version-string",a)},mha=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]))},nha=function(a){a=$APP.uu(a,new $APP.n(null,4,[$APP.Kp,$APP.Pp,$APP.ku,!0,$APP.$p,!0,$APP.Sp,!0],null),$APP.u(N9));var b=$APP.jf(a),c=$APP.fe.g(b,$APP.tu);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},tha=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.T);a=$APP.fe.g(c,oha);$APP.fe.g(c,$APP.$k);$APP.fe.g(c,pha);$APP.fe.g(c,qha);return Promise.resolve(a).then(nha).then(function(d){$APP.KH.l($APP.F(["About to eval:"]));
$APP.KH.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(O9)),"value",mha(rha.h(c),sha.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.OH.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.pr)],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},hha=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)},uha=function(a){return function(b,c){return a.write(R9(c))}},vha=function(a,b){J9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=kha(),d=gha(lha(uha(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.wu,!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"]))})},qha=new $APP.H(null,"_line","_line",232847719),sha=new $APP.H("nrepl.middleware.print",
"options","nrepl.middleware.print/options",868480159),fha=new $APP.H(null,"session","session",1008279103),wha=new $APP.H(null,"lookup","lookup",1225356838),xha=new $APP.H(null,"load-file","load-file",-424586670),pha=new $APP.H(null,"_load-file?","_load-file?",-1198848711),K9=new $APP.H(null,"op","op",-1882987955),yha=new $APP.H(null,"describe","describe",1369790582),oha=new $APP.H(null,"code","code",1586293142),zha=new $APP.H(null,"eldoc","eldoc",-1321421900),Aha=new $APP.H(null,"log_level","log_level",
-1756736313),rha=new $APP.H("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Bha=new $APP.H(null,"clone","clone",711747572),Cha=new $APP.H(null,"close","close",1835149582),Dha=new $APP.H(null,"info","info",-317069002),Eha=new $APP.H(null,"host","host",-1558485167),Fha=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.wu),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(I9(d,
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))},hha=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.QH),e=$APP.fe.g(b,gha);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)}},jha=function(){var a=
iha;return function(b,c){b=$APP.Tm.j(b,K9,$APP.zi);return a.g?a.g(b,c):a.call(null,b,c)}},lha=function(){var a=kha();return function(b,c){J9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},mha=function(a){return function(b,c){J9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},kha=function(){var a=jha();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.wu.h(a.split("."))),
"version-string",a)},nha=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]))},oha=function(a){a=$APP.vu(a,new $APP.n(null,4,[$APP.Kp,$APP.Pp,$APP.lu,!0,$APP.$p,!0,$APP.Sp,!0],null),$APP.u(N9));var b=$APP.jf(a),c=$APP.fe.g(b,$APP.uu);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},uha=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.T);a=$APP.fe.g(c,pha);$APP.fe.g(c,$APP.$k);$APP.fe.g(c,qha);$APP.fe.g(c,rha);return Promise.resolve(a).then(oha).then(function(d){$APP.LH.l($APP.F(["About to eval:"]));
$APP.LH.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(O9)),"value",nha(sha.h(c),tha.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.PH.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.pr)],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},iha=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)},vha=function(a){return function(b,c){return a.write(R9(c))}},wha=function(a,b){J9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=lha(),d=hha(mha(vha(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.xu,!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"]))})},rha=new $APP.H(null,"_line","_line",232847719),tha=new $APP.H("nrepl.middleware.print",
"options","nrepl.middleware.print/options",868480159),gha=new $APP.H(null,"session","session",1008279103),xha=new $APP.H(null,"lookup","lookup",1225356838),yha=new $APP.H(null,"load-file","load-file",-424586670),qha=new $APP.H(null,"_load-file?","_load-file?",-1198848711),K9=new $APP.H(null,"op","op",-1882987955),zha=new $APP.H(null,"describe","describe",1369790582),pha=new $APP.H(null,"code","code",1586293142),Aha=new $APP.H(null,"eldoc","eldoc",-1321421900),Bha=new $APP.H(null,"log_level","log_level",
-1756736313),sha=new $APP.H("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Cha=new $APP.H(null,"clone","clone",711747572),Dha=new $APP.H(null,"close","close",1835149582),Eha=new $APP.H(null,"info","info",-317069002),Fha=new $APP.H(null,"host","host",-1558485167),Gha=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.xu),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.zi.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.IH.g($APP.y,a)))),"e"].join(""):null}};var O9=$APP.Vi.h($APP.pr),M9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.x9],null);$APP.Vi.h(!1);
var N9=$APP.Vi.h(null),Q9=$APP.vh([wha,Cha,xha,zha,Bha,yha,Dha,Fha,$APP.QH],[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.hH()),"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.Lr.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.JH.l($APP.F([$APP.T,c]));return tha($APP.Rh.j(a,$APP.T,$APP.u(O9)),b)}]),Gha=$APP.Vi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.MH.h(a);return $APP.r(e)?e:0}(),c=function(){var e=Eha.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:Aha.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Tk.g(vha,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.KH.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(Gha,d)})};
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.JH.g($APP.y,a)))),"e"].join(""):null}};var O9=$APP.Vi.h($APP.pr),M9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.x9],null);$APP.Vi.h(!1);
var N9=$APP.Vi.h(null),Q9=$APP.vh([xha,Dha,yha,Aha,Cha,zha,Eha,Gha,$APP.RH],[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.iH()),"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.Lr.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.KH.l($APP.F([$APP.T,c]));return uha($APP.Rh.j(a,$APP.T,$APP.u(O9)),b)}]),Hha=$APP.Vi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.NH.h(a);return $APP.r(e)?e:0}(),c=function(){var e=Fha.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:Bha.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Tk.g(wha,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.LH.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(Hha,d)})};

@@ -5,3 +5,3 @@ {

"sideEffects": false,
"version": "0.7.111",
"version": "0.8.112",
"files": [

@@ -8,0 +8,0 @@ "core.js",

@@ -223,3 +223,3 @@ ## Squint

See [this](https://squint-cljs.github.io/squint/?src=KG5zIG15ZWxlbWVudAogICg6cmVxdWlyZSBbc3F1aW50LmNvcmUgOnJlZmVyIFtkZWZjbGFzcyBqcy10ZW1wbGF0ZV1dCiAgIFsiaHR0cHM6Ly9lc20uc2gvbGl0IiA6YXMgbGl0XSkpCgooZGVmY2xhc3MgTXlFbGVtZW50CiAgKGV4dGVuZHMgbGl0L0xpdEVsZW1lbnQpCiAgKGZpZWxkIG5hbWUgIldvcmxkIikKICAoZmllbGQgY291bnQgMCkKCiAgKGNvbnN0cnVjdG9yIFtfXQogICAgKHN1cGVyKSkKCiAgT2JqZWN0CiAgKHJlbmRlciBbdGhpc10KICAgICNodG1sIF5saXQvaHRtbAogICAgWzpkaXYKICAgICBbOmgxIG5hbWVdCiAgICAgWzpidXR0b24geyJAY2xpY2siICguLW9uQ2xpY2sgdGhpcykKICAgICAgICAgICAgICAgOnBhcnQgImJ1dHRvbiJ9CiAgICAgICJDbGljayBjb3VudCAiIGNvdW50XV0pCgogIChvbkNsaWNrIFt0aGlzXQogICAgKHNldCEgY291bnQgKGluYyBjb3VudCkpCiAgICAoLmRpc3BhdGNoRXZlbnQgdGhpcyAobmV3IGpzL0N1c3RvbUV2ZW50ICJjb3VudC1jaGFuZ2VkIikpKSkKCihzZXQhICguLXByb3BlcnRpZXMgTXlFbGVtZW50KSAjanMgeyJjb3VudCIgI2pzIHt9fSkKCihqcy93aW5kb3cuY3VzdG9tRWxlbWVudHMuZGVmaW5lICJteS1lbGVtZW50IiBNeUVsZW1lbnQpCgooZGVmIGFwcCAob3IgKGpzL2RvY3VtZW50LnF1ZXJ5U2VsZWN0b3IgIiNhcHAiKQogICAgICAgICAgIChkb3RvIChqcy9kb2N1bWVudC5jcmVhdGVFbGVtZW50ICJkaXYiKQogICAgICAgICAgICAgKHNldCEgLWlkICJhcHAiKQogICAgICAgICAgICAgKGpzL2RvY3VtZW50LmJvZHkucHJlcGVuZCkpKSkKCihzZXQhICguLWlubmVySFRNTCBhcHApICNodG1sIFs6bXktZWxlbWVudF0p) playground example for a full example.
See [this](https://squint-cljs.github.io/squint/?src=KG5zIG15LWxpdAogICg6cmVxdWlyZSBbc3F1aW50LmNvcmUgOnJlZmVyIFtkZWZjbGFzcyBqcy10ZW1wbGF0ZV1dCiAgIFsiaHR0cHM6Ly9lc20uc2gvbGl0QDMuMC4wIiA6YXMgbGl0XSkpCgooZGVmY2xhc3MgTXlFbGVtZW50CiAgKGV4dGVuZHMgbGl0L0xpdEVsZW1lbnQpCiAgKF46c3RhdGljIGZpZWxkIHByb3BlcnRpZXMgezpjb3VudCB7fX0pCgogIChjb25zdHJ1Y3RvciBbdGhpc10KICAgIChzdXBlcikKICAgIChzZXQhIHRoaXMuY291bnQgMCkKICAgIChzZXQhIHRoaXMubmFtZSAiSGVsbG8iKSkKCiAgT2JqZWN0CiAgKHJlbmRlciBbdGhpc10KICAgICNodG1sIF5saXQvaHRtbAogICAgWzpkaXYKICAgICBbOmgxIHRoaXMubmFtZV0KICAgICBbOmJ1dHRvbiB7IkBjbGljayIgdGhpcy5vbkNsaWNrCiAgICAgICAgICAgICAgIDpwYXJ0ICJidXR0b24ifQogICAgICAiQ2xpY2sgY291bnQgIiB0aGlzLmNvdW50XV0pCgogIChvbkNsaWNrIFt0aGlzXQogICAgKHNldCEgdGhpcy5jb3VudCAoaW5jIHRoaXMuY291bnQpKSkpCgooanMvd2luZG93LmN1c3RvbUVsZW1lbnRzLmRlZmluZSAibXktZWxlbWVudCIgTXlFbGVtZW50KQoKKGRlZiBhcHAgKG9yIChqcy9kb2N1bWVudC5xdWVyeVNlbGVjdG9yICIjYXBwIikKICAgICAgICAgICAoZG90byAoanMvZG9jdW1lbnQuY3JlYXRlRWxlbWVudCAiZGl2IikKICAgICAgICAgICAgIChzZXQhIC1pZCAiYXBwIikKICAgICAgICAgICAgIChqcy9kb2N1bWVudC5ib2R5LnByZXBlbmQpKSkpCgooc2V0ISAoLi1pbm5lckhUTUwgYXBwKSAjaHRtbCBbOmRpdgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgWzpteS1lbGVtZW50XQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI19bOm15LWVsZW1lbnRdXSk%3D) playground example for a full example.

@@ -226,0 +226,0 @@ ## Async/await

@@ -0,1 +1,35 @@

import * as squint_core from './core.js';
class Html {
constructor(s) {
// if (typeof(s) !== 'string')
// throw Error(`Object not a string: ${s.constructor}`);
this.s = s;
}
toString() {
return this.s.toString();
}
}
export function html([s]) {
return new Html(s);
}
function escapeHTML(text) {
return text.toString()
.replace("&", "&amp;")
.replace("<", "&lt;")
.replace(">", "&gt;")
.replace("\"", "&quot;")
.replace("'", "&apos;");
}
function safe(x) {
if (x instanceof Html) return x;
if (squint_core.string_QMARK_(x)) {
return escapeHTML(x);
}
return escapeHTML(x.toString());
}
function css(v) {

@@ -25,2 +59,13 @@ let ret = "";

function toHTML(v) {
// console.log('v', v);
if (v == null) return;
if (v instanceof Html) return v;
if (typeof(v) === 'string') return safe(v);
if (v[Symbol.iterator]) {
return [...v].map(toHTML).join("");
}
return safe(v.toString());
}
export function attrs(v, props) {

@@ -43,14 +88,5 @@ v = Object.assign(props, v);

}
return ret;
return new Html(ret);
}
function toHTML(v) {
if (v == null) return;
if (typeof(v) === 'string') return v;
if (v[Symbol.iterator]) {
return [...v].join("");
}
return v;
}
export function tag(strs, ...vals) {

@@ -62,3 +98,3 @@ let out = strs[0];

}
return out;
return new Html(out);
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc