diff --git a/bin/card.js b/bin/card.js index c4b3bc4..65914fa 100755 --- a/bin/card.js +++ b/bin/card.js @@ -1,2 +1,2 @@ #!/usr/bin/env node -!function(e){"use strict";var t,n=function(){return M.__string_rec(this,"")},r=r||{},s=require("child_process");class i{static string(e){return M.__string_rec(e,"")}static parseInt(e){if(null!=e){let t=0,n=e.length;for(;t=14&&32!=r&&45!=r){let t=e.charCodeAt(n+1),r=parseInt(e,120==t||88==t?16:10);return isNaN(r)?null:r}}}return null}}i.__name__=!0;class l{static environment(){let e=new S,t=0,n=a.fields(process.env);for(;t=0&&e=e.length);){if(!this.matchSub(e,n)){r+=i.string(_.substr(e,n,null));break}let s=this.matchedPos();if(r+=i.string(_.substr(e,n,s.pos-n)),r+=i.string(t(this)),0==s.len?(r+=i.string(_.substr(e,s.pos,1)),n=s.pos+1):n=s.pos+s.len,!this.r.global)break}return!this.r.global&&n>0&&n0){let e=r[r.length-1]+1,t="",s=0;for(;s2)return 0}let t=l.environment().h.TERM;return null!=t&&new u("cygwin|xterm|vt100","").match(t)?0:2}static exec(e,t){let n=s.spawnSync(e,null!=t?t:[],{}),r=null==n.stdout?"":n.stdout.toString();return null==r&&(r=""),{exit:n.status,stdout:r}}}c.__name__=!0;class o{static fromString(e){if("#"==(e=e.toLowerCase()).charAt(0)||"bg#"==_.substr(e,0,3)){let t=e.indexOf("#"),n=_.substr(e,t+1,null);if(3==n.length){let e=n.split("");n=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}return new u("[^0-9a-f]","i").match(n)||n.length<6?"":e.substring(0,t)+"#"+n}switch(e){case"!":return"invert";case"/":return"reset";case"b":return"bold";case"bg_gray":return"bg_light_black";case"gray":return"light_black";case"i":return"italic";case"u":return"underline";default:return e}}}class _{static cca(e,t){let n=e.charCodeAt(t);if(n==n)return n}static substr(e,t,n){if(null==n)n=e.length;else if(n<0){if(0!=t)return"";n=e.length+n}return e.substr(t,n)}static now(){return Date.now()}}_.__name__=!0;class h{static fold(e,t,n){let r=he(e);for(;r.hasNext();)n=t(r.next(),n);return n}static find(e,t){let n=he(e);for(;n.hasNext();){let e=n.next();if(t(e))return e}return null}}h.__name__=!0,Math.__name__=!0;class d{constructor(){this.b=""}toString(){return this.b}}d.__name__=!0;class g{static isSpace(e,t){let n=_.cca(e,t);return n>8&&n<14||32==n}static ltrim(e){let t=e.length,n=0;for(;n0?_.substr(e,n,t-n):e}static rtrim(e){let t=e.length,n=0;for(;n0?_.substr(e,0,t-n):e}static trim(e){return g.ltrim(g.rtrim(e))}static lpad(e,t,n){if(t.length<=0)return e;let r="";for(n-=e.length;r.lengthe.length)throw k.thrown(E.OutsideBounds);let r=e.b,s=n;for(;s>0;)this.writeByte(r[t]),++t,--s;return n}writeFullBytes(e,t,n){for(;n>0;){let r=this.writeBytes(e,t,n);t+=r,n-=r}}writeString(e,t){let n=A.ofString(e,t);this.writeFullBytes(n,0,n.length)}}m.__name__=!0;class f extends m{constructor(e){super(),this.fd=e}writeByte(e){C.writeSync(this.fd,String.fromCodePoint(e))}writeBytes(e,t,n){let r=e.b;return C.writeSync(this.fd,I.from(r.buffer,r.byteOffset,e.length),t,n)}writeString(e,t){C.writeSync(this.fd,e)}}f.__name__=!0;class p{static _new(){return new d}static addLine(e,t){return e.b+=i.string(" "+t+b.newLine),e}static getLength(e,t){let n=new RegExp("<[^<]*>","g".split("u").join(""));return t.replace(n,"").length}static repeat(e,t,n){null==n&&(n=38);let r=[],s=0;for(;s╭"+p.repeat(t,"─")+"╮"),r=p.addLine(n,"│"+p.repeat(n," ",38-p.getLength(n,""))+"│"),s=p.repeat(r," ",Math.floor((38-p.getLength(r,"MC2IT"))/2))+"MC2IT";null==s&&(s="");let l=p.addLine(r,"│"+s+p.repeat(r," ",38-p.getLength(r,s))+"│"),a=p.repeat(l," ",Math.floor((38-p.getLength(l,"Distribution & Services"))/2))+"Distribution & Services";null==a&&(a="");let u=p.addLine(l,"│"+a+p.repeat(l," ",38-p.getLength(l,a))+"│"),o=p.addLine(u,"│"+p.repeat(u," ",38-p.getLength(u,""))+"│"),_=g.lpad("GitHub: "," ",8+" ".length+"".length)+"https://github.com/mc2it";null==_&&(_="");let h=p.addLine(o,"│"+_+p.repeat(o," ",38-p.getLength(o,_))+"│"),d=p.addLine(h,"│"+p.repeat(h," ",38-p.getLength(h,""))+"│"),m=g.lpad("Card: "," ",8+" ".length+"".length)+"npx @mc2it/card";null==m&&(m="");let f=p.addLine(d,"│"+m+p.repeat(d," ",38-p.getLength(d,m))+"│"),x=g.lpad("E-mail: "," ",8+" ".length+"".length)+"dev@mc2it.com";null==x&&(x="");let k=p.addLine(f,"│"+x+p.repeat(f," ",38-p.getLength(f,x))+"│"),y=g.lpad("Web: "," ",8+" ".length+"".length)+"https://mc2it.com";null==y&&(y="");let S=p.addLine(k,"│"+y+p.repeat(k," ",38-p.getLength(k,y))+"│"),v=p.addLine(S,"│"+p.repeat(S," ",38-p.getLength(S,""))+"│"),F=p.addLine(v,"╰"+p.repeat(v,"─")+"╯");c.formatMode=0,c.logPrefix="";let A=c.logPrefix+""+b.newLine+i.string(F);return null==A&&(A=""),c.printFormatted(A+"\n",0),new Q(new K(ne.Success(null)))}static main(){new P(new b,new U(5)).process(process.argv.slice(2)).handle(O.exit)}}b.__name__=!0;class w{static get_packageVersion(){return null==w.packageVersion&&(w.packageVersion="1.0.0"),w.packageVersion}}w.__name__=!0;var x=r["haxe.StackItem"]={__ename__:!0,__constructs__:null,CFunction:{_hx_name:"CFunction",_hx_index:0,__enum__:"haxe.StackItem",toString:n},Module:(t=function(e){return{_hx_index:1,m:e,__enum__:"haxe.StackItem",toString:n}},t._hx_name="Module",t.__params__=["m"],t),FilePos:(t=function(e,t,r,s){return{_hx_index:2,s:e,file:t,line:r,column:s,__enum__:"haxe.StackItem",toString:n}},t._hx_name="FilePos",t.__params__=["s","file","line","column"],t),Method:(t=function(e,t){return{_hx_index:3,classname:e,method:t,__enum__:"haxe.StackItem",toString:n}},t._hx_name="Method",t.__params__=["classname","method"],t),LocalFunction:(t=function(e){return{_hx_index:4,v:e,__enum__:"haxe.StackItem",toString:n}},t._hx_name="LocalFunction",t.__params__=["v"],t)};x.__constructs__=[x.CFunction,x.Module,x.FilePos,x.Method,x.LocalFunction];class k extends Error{constructor(e,t,n){super(e),this.message=e,this.__previousException=t,this.__nativeException=null!=n?n:this}unwrap(){return this.__nativeException}toString(){return this.get_message()}get_message(){return this.message}get_native(){return this.__nativeException}static caught(e){return e instanceof k?e:e instanceof Error?new k(e.message,null,e):new y(e,null,e)}static thrown(e){if(e instanceof k)return e.get_native();if(e instanceof Error)return e;return new y(e)}}k.__name__=!0;class y extends k{constructor(e,t,n){super(String(e),t,n),this.value=e}unwrap(){return this.value}}y.__name__=!0;class S{constructor(){this.h=Object.create(null)}}S.__name__=!0;class v extends k{constructor(e,t,n){super(e,t),this.posInfos=n??{fileName:"(unknown)",lineNumber:0,className:"(unknown)",methodName:"(unknown)"}}toString(){return super.toString()+" in "+this.posInfos.className+"."+this.posInfos.methodName+" at "+this.posInfos.fileName+":"+this.posInfos.lineNumber}}v.__name__=!0;class F extends v{constructor(e,t,n){null==e&&(e="Not implemented"),super(e,t,n)}}F.__name__=!0;class A{constructor(e){this.length=e.byteLength,this.b=new Uint8Array(e),this.b.bufferValue=e,e.hxBytes=this,e.bytes=this.b}static ofString(e,t){if(t==N.RawNative){let t=new Uint8Array(e.length<<1),n=0,r=e.length;for(;n>8}return new A(t.buffer)}let n=[],r=0;for(;r>6),n.push(128|63&t)):t<=65535?(n.push(224|t>>12),n.push(128|t>>6&63),n.push(128|63&t)):(n.push(240|t>>18),n.push(128|t>>12&63),n.push(128|t>>6&63),n.push(128|63&t))}return new A(new Uint8Array(n).buffer)}}A.__name__=!0;var N=r["haxe.io.Encoding"]={__ename__:!0,__constructs__:null,UTF8:{_hx_name:"UTF8",_hx_index:0,__enum__:"haxe.io.Encoding",toString:n},RawNative:{_hx_name:"RawNative",_hx_index:1,__enum__:"haxe.io.Encoding",toString:n}};N.__constructs__=[N.UTF8,N.RawNative];var E=r["haxe.io.Error"]={__ename__:!0,__constructs__:null,Blocked:{_hx_name:"Blocked",_hx_index:0,__enum__:"haxe.io.Error",toString:n},Overflow:{_hx_name:"Overflow",_hx_index:1,__enum__:"haxe.io.Error",toString:n},OutsideBounds:{_hx_name:"OutsideBounds",_hx_index:2,__enum__:"haxe.io.Error",toString:n},Custom:(t=function(e){return{_hx_index:3,e,__enum__:"haxe.io.Error",toString:n}},t._hx_name="Custom",t.__params__=["e"],t)};E.__constructs__=[E.Blocked,E.Overflow,E.OutsideBounds,E.Custom];class L{constructor(e){this.current=0,this.array=e}hasNext(){return this.current=5)return"<...>";let n=typeof e;switch("function"==n&&(e.__name__||e.__ename__)&&(n="object"),n){case"function":return"";case"object":if(e.__enum__){let n=r[e.__enum__].__constructs__[e._hx_index],s=n._hx_name;return n.__params__?(t+="\t",s+"("+function(r){let s=[];{let r=0,i=n.__params__;for(;r0?",":"")+M.__string_rec(e[s],t)}return n+="]",n}let n;try{n=e.toString}catch(e){return"???"}if(null!=n&&n!=Object.toString&&"function"==typeof n){let t=e.toString();if("[object Object]"!=t)return t}let s="{\n";t+="\t";let i=null!=e.hasOwnProperty,l=null;for(l in e)i&&!e.hasOwnProperty(l)||"prototype"!=l&&"__class__"!=l&&"__super__"!=l&&"__interfaces__"!=l&&"__properties__"!=l&&(2!=s.length&&(s+=", \n"),s+=t+l+" : "+M.__string_rec(e[l],t));return s+="\n"+(t=t.substring(1))+"}",s;case"string":return e;default:return String(e)}}}M.__name__=!0;var C=require("fs"),I=require("buffer").Buffer;class O{static exit(e){switch(e._hx_index){case 0:process.exit(0);break;case 1:let t=e.failure,n=t.message;null!=t.data&&(n+=", "+(null==t.data?"null":i.string(t.data))),process.stdout.write(i.string(n)),process.stdout.write("\n");let r=t.code;process.exit(r)}}}O.__name__=!0;class R{constructor(e){this.buffer=e}}R.__name__=!0;class j{static get(){return null==j.doc&&(j.doc={doc:" Print the business card of Cédric Belin, full stack developer. ",commands:[{isDefault:!0,isSub:!1,names:[],doc:null}],flags:[{names:["--help"],aliases:["h"],doc:" Output usage information. "},{names:["--version"],aliases:["v"],doc:" Output the version number. "}]}),j.doc}}j.__name__=!0;class B{constructor(e,t,n){this.command=e,this.prompt=t,this.hasFlags=n}processArgs(e){let t=this;return this.hasFlags?Y.catchExceptions((function(){let n=B.expandAssignments(e),r=[],s=0,i=!1;for(;s0){let e=h.fold(s,(function(e,t){let n=0,r=e.names;for(;nt&&(t=e.length)}return t}),0);null!=this.root&&(t+=i.string(" Usage: "+this.root+" \n")),t+=i.string(" Subcommands:\n");let n=function(n,r){null==r&&(r="(doc missing)"),t+=i.string(u.indent(g.lpad(n," ",e)+" : "+g.trim(u.indent(r,e+3)),6)+"\n")},r=0;for(;r1){let r=1,s=e.names.length;for(;r0){let n=function(e){let t=e.names.join(", ");if(e.aliases.length>0){let n=e.aliases,r=new Array(n.length),s=0,i=n.length;for(;st&&(t=r.length),t}),0),s=function(e,n){null==n&&(n=""),t+=i.string(u.indent(g.lpad(e," ",r)+" : "+g.trim(u.indent(n,r+3)),6)+"\n")};t=(t+="\n")+i.string(" Flags:\n");let l=0,a=e.flags;for(;l>1&&e.compact()}}}V.__name__=!0;class G{constructor(e){G._hx_skip_constructor||this._hx_constructor(e)}_hx_constructor(e){this.disposeHandlers=[],this.f=e}dispose(){let e=this.disposeHandlers;if(null!=e){this.disposeHandlers=null;let t=this.f;this.f=G.noop,t();let n=0;for(;n0){this.used=0;let e=this.ondrain;W.depth<500?(W.depth++,e(),W.depth--):W.defer(e)}}invoke(e){let t=this;if(W.depth<500){if(W.depth++,null!=t.disposeHandlers)if(t.busy){if(1!=t.destructive){let n=de(t,t.invoke),r=e,s=function(){n(r)};t.queue.push(s)}}else{t.busy=!0,t.destructive&&t.dispose();let n=t.cells.length,r=0;for(;r0&&t.queue.shift()())}W.depth--}else W.defer((function(){if(null!=t.disposeHandlers)if(t.busy){if(1!=t.destructive){let n=de(t,t.invoke),r=e,s=function(){n(r)};t.queue.push(s)}}else{t.busy=!0,t.destructive&&t.dispose();let n=t.cells.length,r=0;for(;r0&&t.queue.shift()())}}))}compact(){if(!this.busy)if(0==this.used){this.resize(0);let e=this.ondrain;W.depth<500?(W.depth++,e(),W.depth--):W.defer(e)}else{let e=0,t=0,n=this.cells.length;for(;t>10))+String.fromCharCode(56320+(1023&e))}),String.__name__=!0,Array.__name__=!0,"undefined"!=typeof performance&&"function"==typeof performance.now&&(_.now=performance.now.bind(performance)),M.__toStr={}.toString,c.formatMode=c.determineConsoleFormatMode(),c.logPrefix="> ",c.unicodeCompatibilityMode="Windows"==l.systemName()?1:0,c.unicodeCompatibilityEnabled=!1,c.formatTagPattern=new u("(\\\\)?<(/)?([^><{}\\s]*|{[^}<>]*})>","g"),b.newLine="Windows"==l.systemName()?"\r\n":"\n",W.depth=0,G._hx_skip_constructor=!1,X.NEVER=new J,b.main()}(global); \ No newline at end of file +!function(e){"use strict";var t,n=function(){return L.__string_rec(this,"")},r=r||{},s=require("child_process");class i{static string(e){return L.__string_rec(e,"")}static parseInt(e){if(null!=e){let t=0,n=e.length;for(;t=14&&32!=r&&45!=r){let t=e.charCodeAt(n+1),r=parseInt(e,120==t||88==t?16:10);return isNaN(r)?null:r}}}return null}}i.__name__=!0;class l{static environment(){let e=new S,t=0,n=a.fields(process.env);for(;t=0&&e=e.length);){if(!this.matchSub(e,n)){r+=i.string(_.substr(e,n,null));break}let s=this.matchedPos();if(r+=i.string(_.substr(e,n,s.pos-n)),r+=i.string(t(this)),0==s.len?(r+=i.string(_.substr(e,s.pos,1)),n=s.pos+1):n=s.pos+s.len,!this.r.global)break}return!this.r.global&&n>0&&n0){let e=r[r.length-1]+1,t="",s=0;for(;s2)return 0}let t=l.environment().h.TERM;return null!=t&&new u("cygwin|xterm|vt100","").match(t)?0:2}static exec(e,t){let n=s.spawnSync(e,null!=t?t:[],{}),r=null==n.stdout?"":n.stdout.toString();return null==r&&(r=""),{exit:n.status,stdout:r}}}c.__name__=!0;class o{static fromString(e){if("#"==(e=e.toLowerCase()).charAt(0)||"bg#"==_.substr(e,0,3)){let t=e.indexOf("#"),n=_.substr(e,t+1,null);if(3==n.length){let e=n.split("");n=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}return new u("[^0-9a-f]","i").match(n)||n.length<6?"":e.substring(0,t)+"#"+n}switch(e){case"!":return"invert";case"/":return"reset";case"b":return"bold";case"bg_gray":return"bg_light_black";case"gray":return"light_black";case"i":return"italic";case"u":return"underline";default:return e}}}class _{static cca(e,t){let n=e.charCodeAt(t);if(n==n)return n}static substr(e,t,n){if(null==n)n=e.length;else if(n<0){if(0!=t)return"";n=e.length+n}return e.substr(t,n)}static now(){return Date.now()}}_.__name__=!0;class h{static fold(e,t,n){let r=he(e);for(;r.hasNext();)n=t(r.next(),n);return n}static find(e,t){let n=he(e);for(;n.hasNext();){let e=n.next();if(t(e))return e}return null}}h.__name__=!0,Math.__name__=!0;class d{constructor(){this.b=""}toString(){return this.b}}d.__name__=!0;class g{static isSpace(e,t){let n=_.cca(e,t);return n>8&&n<14||32==n}static ltrim(e){let t=e.length,n=0;for(;n0?_.substr(e,n,t-n):e}static rtrim(e){let t=e.length,n=0;for(;n0?_.substr(e,0,t-n):e}static trim(e){return g.ltrim(g.rtrim(e))}static lpad(e,t,n){if(t.length<=0)return e;let r="";for(n-=e.length;r.lengthe.length)throw k.thrown(E.OutsideBounds);let r=e.b,s=n;for(;s>0;)this.writeByte(r[t]),++t,--s;return n}writeFullBytes(e,t,n){for(;n>0;){let r=this.writeBytes(e,t,n);t+=r,n-=r}}writeString(e,t){let n=A.ofString(e,t);this.writeFullBytes(n,0,n.length)}}m.__name__=!0;class f extends m{constructor(e){super(),this.fd=e}writeByte(e){C.writeSync(this.fd,String.fromCodePoint(e))}writeBytes(e,t,n){let r=e.b;return C.writeSync(this.fd,I.from(r.buffer,r.byteOffset,e.length),t,n)}writeString(e,t){C.writeSync(this.fd,e)}}f.__name__=!0;class p{static _new(){return new d}static addLine(e,t){return e.b+=i.string(" "+t+b.newLine),e}static getLength(e,t){let n=new RegExp("<[^<]*>","g".split("u").join(""));return t.replace(n,"").length}static repeat(e,t,n){null==n&&(n=39);let r=[],s=0;for(;s╭"+p.repeat(t,"─")+"╮"),r=p.addLine(n,"│"+p.repeat(n," ",39-p.getLength(n,""))+"│"),s=p.repeat(r," ",Math.floor((39-p.getLength(r,"MC2IT"))/2))+"MC2IT";null==s&&(s="");let l=p.addLine(r,"│"+s+p.repeat(r," ",39-p.getLength(r,s))+"│"),a=p.repeat(l," ",Math.floor((39-p.getLength(l,"Distribution & Services"))/2))+"Distribution & Services";null==a&&(a="");let u=p.addLine(l,"│"+a+p.repeat(l," ",39-p.getLength(l,a))+"│"),o=p.addLine(u,"│"+p.repeat(u," ",39-p.getLength(u,""))+"│"),_=g.lpad("GitHub: "," ",9+" ".length+"".length)+"https://github.com/mc2it";null==_&&(_="");let h=p.addLine(o,"│"+_+p.repeat(o," ",39-p.getLength(o,_))+"│"),d=p.addLine(h,"│"+p.repeat(h," ",39-p.getLength(h,""))+"│"),m=g.lpad("Card: "," ",9+" ".length+"".length)+"npx @mc2it/card";null==m&&(m="");let f=p.addLine(d,"│"+m+p.repeat(d," ",39-p.getLength(d,m))+"│"),x=g.lpad("Mail: "," ",9+" ".length+"".length)+"dev@mc2it.com";null==x&&(x="");let k=p.addLine(f,"│"+x+p.repeat(f," ",39-p.getLength(f,x))+"│"),y=g.lpad("Website: "," ",9+" ".length+"".length)+"https://mc2it.com";null==y&&(y="");let S=p.addLine(k,"│"+y+p.repeat(k," ",39-p.getLength(k,y))+"│"),v=p.addLine(S,"│"+p.repeat(S," ",39-p.getLength(S,""))+"│"),F=p.addLine(v,"╰"+p.repeat(v,"─")+"╯");c.formatMode=0,c.logPrefix="";let A=c.logPrefix+""+b.newLine+i.string(F);return null==A&&(A=""),c.printFormatted(A+"\n",0),new Q(new K(ne.Success(null)))}static main(){new P(new b,new U(5)).process(process.argv.slice(2)).handle(O.exit)}}b.__name__=!0;class w{static get_packageVersion(){return null==w.packageVersion&&(w.packageVersion="1.0.0"),w.packageVersion}}w.__name__=!0;var x=r["haxe.StackItem"]={__ename__:!0,__constructs__:null,CFunction:{_hx_name:"CFunction",_hx_index:0,__enum__:"haxe.StackItem",toString:n},Module:(t=function(e){return{_hx_index:1,m:e,__enum__:"haxe.StackItem",toString:n}},t._hx_name="Module",t.__params__=["m"],t),FilePos:(t=function(e,t,r,s){return{_hx_index:2,s:e,file:t,line:r,column:s,__enum__:"haxe.StackItem",toString:n}},t._hx_name="FilePos",t.__params__=["s","file","line","column"],t),Method:(t=function(e,t){return{_hx_index:3,classname:e,method:t,__enum__:"haxe.StackItem",toString:n}},t._hx_name="Method",t.__params__=["classname","method"],t),LocalFunction:(t=function(e){return{_hx_index:4,v:e,__enum__:"haxe.StackItem",toString:n}},t._hx_name="LocalFunction",t.__params__=["v"],t)};x.__constructs__=[x.CFunction,x.Module,x.FilePos,x.Method,x.LocalFunction];class k extends Error{constructor(e,t,n){super(e),this.message=e,this.__previousException=t,this.__nativeException=null!=n?n:this}unwrap(){return this.__nativeException}toString(){return this.get_message()}get_message(){return this.message}get_native(){return this.__nativeException}static caught(e){return e instanceof k?e:e instanceof Error?new k(e.message,null,e):new y(e,null,e)}static thrown(e){if(e instanceof k)return e.get_native();if(e instanceof Error)return e;return new y(e)}}k.__name__=!0;class y extends k{constructor(e,t,n){super(String(e),t,n),this.value=e}unwrap(){return this.value}}y.__name__=!0;class S{constructor(){this.h=Object.create(null)}}S.__name__=!0;class v extends k{constructor(e,t,n){super(e,t),this.posInfos=n??{fileName:"(unknown)",lineNumber:0,className:"(unknown)",methodName:"(unknown)"}}toString(){return super.toString()+" in "+this.posInfos.className+"."+this.posInfos.methodName+" at "+this.posInfos.fileName+":"+this.posInfos.lineNumber}}v.__name__=!0;class F extends v{constructor(e,t,n){null==e&&(e="Not implemented"),super(e,t,n)}}F.__name__=!0;class A{constructor(e){this.length=e.byteLength,this.b=new Uint8Array(e),this.b.bufferValue=e,e.hxBytes=this,e.bytes=this.b}static ofString(e,t){if(t==N.RawNative){let t=new Uint8Array(e.length<<1),n=0,r=e.length;for(;n>8}return new A(t.buffer)}let n=[],r=0;for(;r>6),n.push(128|63&t)):t<=65535?(n.push(224|t>>12),n.push(128|t>>6&63),n.push(128|63&t)):(n.push(240|t>>18),n.push(128|t>>12&63),n.push(128|t>>6&63),n.push(128|63&t))}return new A(new Uint8Array(n).buffer)}}A.__name__=!0;var N=r["haxe.io.Encoding"]={__ename__:!0,__constructs__:null,UTF8:{_hx_name:"UTF8",_hx_index:0,__enum__:"haxe.io.Encoding",toString:n},RawNative:{_hx_name:"RawNative",_hx_index:1,__enum__:"haxe.io.Encoding",toString:n}};N.__constructs__=[N.UTF8,N.RawNative];var E=r["haxe.io.Error"]={__ename__:!0,__constructs__:null,Blocked:{_hx_name:"Blocked",_hx_index:0,__enum__:"haxe.io.Error",toString:n},Overflow:{_hx_name:"Overflow",_hx_index:1,__enum__:"haxe.io.Error",toString:n},OutsideBounds:{_hx_name:"OutsideBounds",_hx_index:2,__enum__:"haxe.io.Error",toString:n},Custom:(t=function(e){return{_hx_index:3,e,__enum__:"haxe.io.Error",toString:n}},t._hx_name="Custom",t.__params__=["e"],t)};E.__constructs__=[E.Blocked,E.Overflow,E.OutsideBounds,E.Custom];class M{constructor(e){this.current=0,this.array=e}hasNext(){return this.current=5)return"<...>";let n=typeof e;switch("function"==n&&(e.__name__||e.__ename__)&&(n="object"),n){case"function":return"";case"object":if(e.__enum__){let n=r[e.__enum__].__constructs__[e._hx_index],s=n._hx_name;return n.__params__?(t+="\t",s+"("+function(r){let s=[];{let r=0,i=n.__params__;for(;r0?",":"")+L.__string_rec(e[s],t)}return n+="]",n}let n;try{n=e.toString}catch(e){return"???"}if(null!=n&&n!=Object.toString&&"function"==typeof n){let t=e.toString();if("[object Object]"!=t)return t}let s="{\n";t+="\t";let i=null!=e.hasOwnProperty,l=null;for(l in e)i&&!e.hasOwnProperty(l)||"prototype"!=l&&"__class__"!=l&&"__super__"!=l&&"__interfaces__"!=l&&"__properties__"!=l&&(2!=s.length&&(s+=", \n"),s+=t+l+" : "+L.__string_rec(e[l],t));return s+="\n"+(t=t.substring(1))+"}",s;case"string":return e;default:return String(e)}}}L.__name__=!0;var C=require("fs"),I=require("buffer").Buffer;class O{static exit(e){switch(e._hx_index){case 0:process.exit(0);break;case 1:let t=e.failure,n=t.message;null!=t.data&&(n+=", "+(null==t.data?"null":i.string(t.data))),process.stdout.write(i.string(n)),process.stdout.write("\n");let r=t.code;process.exit(r)}}}O.__name__=!0;class R{constructor(e){this.buffer=e}}R.__name__=!0;class j{static get(){return null==j.doc&&(j.doc={doc:" Print the business card of Cédric Belin, full stack developer. ",commands:[{isDefault:!0,isSub:!1,names:[],doc:null}],flags:[{names:["--help"],aliases:["h"],doc:" Output usage information. "},{names:["--version"],aliases:["v"],doc:" Output the version number. "}]}),j.doc}}j.__name__=!0;class B{constructor(e,t,n){this.command=e,this.prompt=t,this.hasFlags=n}processArgs(e){let t=this;return this.hasFlags?Y.catchExceptions((function(){let n=B.expandAssignments(e),r=[],s=0,i=!1;for(;s0){let e=h.fold(s,(function(e,t){let n=0,r=e.names;for(;nt&&(t=e.length)}return t}),0);null!=this.root&&(t+=i.string(" Usage: "+this.root+" \n")),t+=i.string(" Subcommands:\n");let n=function(n,r){null==r&&(r="(doc missing)"),t+=i.string(u.indent(g.lpad(n," ",e)+" : "+g.trim(u.indent(r,e+3)),6)+"\n")},r=0;for(;r1){let r=1,s=e.names.length;for(;r0){let n=function(e){let t=e.names.join(", ");if(e.aliases.length>0){let n=e.aliases,r=new Array(n.length),s=0,i=n.length;for(;st&&(t=r.length),t}),0),s=function(e,n){null==n&&(n=""),t+=i.string(u.indent(g.lpad(e," ",r)+" : "+g.trim(u.indent(n,r+3)),6)+"\n")};t=(t+="\n")+i.string(" Flags:\n");let l=0,a=e.flags;for(;l>1&&e.compact()}}}V.__name__=!0;class G{constructor(e){G._hx_skip_constructor||this._hx_constructor(e)}_hx_constructor(e){this.disposeHandlers=[],this.f=e}dispose(){let e=this.disposeHandlers;if(null!=e){this.disposeHandlers=null;let t=this.f;this.f=G.noop,t();let n=0;for(;n0){this.used=0;let e=this.ondrain;W.depth<500?(W.depth++,e(),W.depth--):W.defer(e)}}invoke(e){let t=this;if(W.depth<500){if(W.depth++,null!=t.disposeHandlers)if(t.busy){if(1!=t.destructive){let n=de(t,t.invoke),r=e,s=function(){n(r)};t.queue.push(s)}}else{t.busy=!0,t.destructive&&t.dispose();let n=t.cells.length,r=0;for(;r0&&t.queue.shift()())}W.depth--}else W.defer((function(){if(null!=t.disposeHandlers)if(t.busy){if(1!=t.destructive){let n=de(t,t.invoke),r=e,s=function(){n(r)};t.queue.push(s)}}else{t.busy=!0,t.destructive&&t.dispose();let n=t.cells.length,r=0;for(;r0&&t.queue.shift()())}}))}compact(){if(!this.busy)if(0==this.used){this.resize(0);let e=this.ondrain;W.depth<500?(W.depth++,e(),W.depth--):W.defer(e)}else{let e=0,t=0,n=this.cells.length;for(;t>10))+String.fromCharCode(56320+(1023&e))}),String.__name__=!0,Array.__name__=!0,"undefined"!=typeof performance&&"function"==typeof performance.now&&(_.now=performance.now.bind(performance)),L.__toStr={}.toString,c.formatMode=c.determineConsoleFormatMode(),c.logPrefix="> ",c.unicodeCompatibilityMode="Windows"==l.systemName()?1:0,c.unicodeCompatibilityEnabled=!1,c.formatTagPattern=new u("(\\\\)?<(/)?([^><{}\\s]*|{[^}<>]*})>","g"),b.newLine="Windows"==l.systemName()?"\r\n":"\n",W.depth=0,G._hx_skip_constructor=!1,X.NEVER=new J,b.main()}(global); \ No newline at end of file diff --git a/src/card/CardBuilder.hx b/src/card/CardBuilder.hx index b512348..1295d99 100644 --- a/src/card/CardBuilder.hx +++ b/src/card/CardBuilder.hx @@ -10,7 +10,7 @@ abstract CardBuilder(StringBuf) from StringBuf { static inline final indent = " "; /** The inner width of a line, in characters. **/ - static inline final width = 38; + static inline final width = 39; /** Creates a new string buffer. **/ public function new() this = new StringBuf(); @@ -29,7 +29,7 @@ abstract CardBuilder(StringBuf) from StringBuf { /** Adds a labeled value. **/ public inline function label(label: String, value: String) - return line('$label: '.lpad(" ", 8 + indent.length + "".length) + value); + return line('$label: '.lpad(" ", 9 + indent.length + "".length) + value); /** Appends a line of text. **/ public inline function line(text = "") diff --git a/src/card/Program.hx b/src/card/Program.hx index 53d3f59..1d6e56a 100644 --- a/src/card/Program.hx +++ b/src/card/Program.hx @@ -42,8 +42,8 @@ class Program { .label("GitHub", "https://github.com/mc2it") .line() .label("Card", "npx @mc2it/card") - .label("E-mail", "dev@mc2it.com") - .label("Web", "https://mc2it.com") + .label("Mail", "dev@mc2it.com") + .label("Website", "https://mc2it.com") .line() .footer();