@techor/log
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -1,12 +0,11 @@ | ||
var gt=Object.create;var F=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var ht=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bt=(e,t)=>{for(var r in t)F(e,r,{get:t[r],enumerable:!0})},de=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mt(t))!dt.call(e,o)&&o!==r&&F(e,o,{get:()=>t[o],enumerable:!(n=pt(t,o))||n.enumerable});return e};var h=(e,t,r)=>(r=e!=null?gt(ht(e)):{},de(t||!e||!e.__esModule?F(r,"default",{value:e,enumerable:!0}):r,e)),yt=e=>de(F({},"__esModule",{value:!0}),e);var ye=v((Ht,be)=>{"use strict";be.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var te=v((Zt,ve)=>{var L=ye(),ke={};for(let e of Object.keys(L))ke[L[e]]=e;var c={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};ve.exports=c;for(let e of Object.keys(c)){if(!("channels"in c[e]))throw new Error("missing channels property: "+e);if(!("labels"in c[e]))throw new Error("missing channel labels property: "+e);if(c[e].labels.length!==c[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=c[e];delete c[e].channels,delete c[e].labels,Object.defineProperty(c[e],"channels",{value:t}),Object.defineProperty(c[e],"labels",{value:r})}c.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),s=Math.max(t,r,n),i=s-o,l,a;s===o?l=0:t===s?l=(r-n)/i:r===s?l=2+(n-t)/i:n===s&&(l=4+(t-r)/i),l=Math.min(l*60,360),l<0&&(l+=360);let u=(o+s)/2;return s===o?a=0:u<=.5?a=i/(s+o):a=i/(2-s-o),[l,a*100,u*100]};c.rgb.hsv=function(e){let t,r,n,o,s,i=e[0]/255,l=e[1]/255,a=e[2]/255,u=Math.max(i,l,a),p=u-Math.min(i,l,a),m=function(Q){return(u-Q)/6/p+1/2};return p===0?(o=0,s=0):(s=p/u,t=m(i),r=m(l),n=m(a),i===u?o=n-r:l===u?o=1/3+t-n:a===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,s*100,u*100]};c.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],o=c.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,s*100,n*100]};c.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n),s=(1-t-o)/(1-o)||0,i=(1-r-o)/(1-o)||0,l=(1-n-o)/(1-o)||0;return[s*100,i*100,l*100,o*100]};function vt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}c.rgb.keyword=function(e){let t=ke[e];if(t)return t;let r=1/0,n;for(let o of Object.keys(L)){let s=L[o],i=vt(e,s);i<r&&(r=i,n=o)}return n};c.keyword.rgb=function(e){return L[e]};c.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let o=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,i=t*.0193+r*.1192+n*.9505;return[o*100,s*100,i*100]};c.rgb.lab=function(e){let t=c.rgb.xyz(e),r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let s=116*n-16,i=500*(r-n),l=200*(n-o);return[s,i,l]};c.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o,s,i;if(r===0)return i=n*255,[i,i,i];n<.5?o=n*(1+r):o=n+r-n*r;let l=2*n-o,a=[0,0,0];for(let u=0;u<3;u++)s=t+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?i=l+(o-l)*6*s:2*s<1?i=o:3*s<2?i=l+(o-l)*(2/3-s)*6:i=l,a[u]=i*255;return a};c.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=s<=1?s:2-s;let i=(n+r)/2,l=n===0?2*o/(s+o):2*r/(n+r);return[t,l*100,i*100]};c.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),i=255*n*(1-r),l=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,o){case 0:return[n,a,i];case 1:return[l,n,i];case 2:return[i,n,a];case 3:return[i,l,n];case 4:return[a,i,n];case 5:return[n,i,l]}};c.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01),s,i;i=(2-r)*n;let l=(2-r)*o;return s=r*o,s/=l<=1?l:2-l,s=s||0,i/=2,[t,s*100,i*100]};c.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o=r+n,s;o>1&&(r/=o,n/=o);let i=Math.floor(6*t),l=1-n;s=6*t-i,i&1&&(s=1-s);let a=r+s*(l-r),u,p,m;switch(i){default:case 6:case 0:u=l,p=a,m=r;break;case 1:u=a,p=l,m=r;break;case 2:u=r,p=l,m=a;break;case 3:u=r,p=a,m=l;break;case 4:u=a,p=r,m=l;break;case 5:u=l,p=r,m=a;break}return[u*255,p*255,m*255]};c.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100,s=1-Math.min(1,t*(1-o)+o),i=1-Math.min(1,r*(1-o)+o),l=1-Math.min(1,n*(1-o)+o);return[s*255,i*255,l*255]};c.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o,s,i;return o=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,i=t*.0557+r*-.204+n*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[o*255,s*255,i*255]};c.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let o=116*r-16,s=500*(t-r),i=200*(r-n);return[o,s,i]};c.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],o,s,i;s=(t+16)/116,o=r/500+s,i=s-n/200;let l=s**3,a=o**3,u=i**3;return s=l>.008856?l:(s-16/116)/7.787,o=a>.008856?a:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o*=95.047,s*=100,i*=108.883,[o,s,i]};c.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],o;o=Math.atan2(n,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+n*n);return[t,i,o]};c.lch.lab=function(e){let t=e[0],r=e[1],o=e[2]/360*2*Math.PI,s=r*Math.cos(o),i=r*Math.sin(o);return[t,s,i]};c.rgb.ansi16=function(e,t=null){let[r,n,o]=e,s=t===null?c.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let i=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(i+=60),i};c.hsv.ansi16=function(e){return c.rgb.ansi16(c.hsv.rgb(e),e[2])};c.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};c.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,o=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,o,s]};c.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,n,o]};c.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};c.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(l=>l+l).join(""));let n=parseInt(r,16),o=n>>16&255,s=n>>8&255,i=n&255;return[o,s,i]};c.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),i=o-s,l,a;return i<1?l=s/(1-i):l=0,i<=0?a=0:o===t?a=(r-n)/i%6:o===r?a=2+(n-t)/i:a=4+(t-r)/i,a/=6,a%=1,[a*360,i*100,l*100]};c.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],n*100,o*100]};c.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],n*100,o*100]};c.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let o=[0,0,0],s=t%1*6,i=s%1,l=1-i,a=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return a=(1-r)*n,[(r*o[0]+a)*255,(r*o[1]+a)*255,(r*o[2]+a)*255]};c.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),o=0;return n>0&&(o=t/n),[e[0],o*100,n*100]};c.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],o*100,n*100]};c.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};c.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,o=n-t,s=0;return o<1&&(s=(n-o)/(1-o)),[e[0],o*100,s*100]};c.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};c.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};c.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};c.gray.hsl=function(e){return[0,0,e[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(e){return[0,100,e[0]]};c.gray.cmyk=function(e){return[0,0,0,e[0]]};c.gray.lab=function(e){return[e[0],0,0]};c.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};c.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var xe=v((Qt,we)=>{var I=te();function wt(){let e={},t=Object.keys(I);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function xt(e){let t=wt(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),o=Object.keys(I[n]);for(let s=o.length,i=0;i<s;i++){let l=o[i],a=t[l];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(l))}}return t}function Ot(e,t){return function(r){return t(e(r))}}function $t(e,t){let r=[t[e].parent,e],n=I[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=Ot(I[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}we.exports=function(e){let t=xt(e),r={},n=Object.keys(t);for(let o=n.length,s=0;s<o;s++){let i=n[s];t[i].parent!==null&&(r[i]=$t(i,t))}return r}});var $e=v((er,Oe)=>{var re=te(),Et=xe(),$={},Ct=Object.keys(re);function Mt(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function jt(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let o=e(r);if(typeof o=="object")for(let s=o.length,i=0;i<s;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}Ct.forEach(e=>{$[e]={},Object.defineProperty($[e],"channels",{value:re[e].channels}),Object.defineProperty($[e],"labels",{value:re[e].labels});let t=Et(e);Object.keys(t).forEach(n=>{let o=t[n];$[e][n]=jt(o),$[e][n].raw=Mt(o)})});Oe.exports=$});var Re=v((tr,Le)=>{"use strict";var Ee=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,Ce=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},Me=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},P=e=>e,je=(e,t,r)=>[e,t,r],E=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},ne,C=(e,t,r,n)=>{ne===void 0&&(ne=$e());let o=n?10:0,s={};for(let[i,l]of Object.entries(ne)){let a=i==="ansi16"?"ansi":i;i===t?s[a]=e(r,o):typeof l=="object"&&(s[a]=e(l[t],o))}return s};function Lt(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[o,s]of Object.entries(n))t[o]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[o]=t[o],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",E(t.color,"ansi",()=>C(Ee,"ansi16",P,!1)),E(t.color,"ansi256",()=>C(Ce,"ansi256",P,!1)),E(t.color,"ansi16m",()=>C(Me,"rgb",je,!1)),E(t.bgColor,"ansi",()=>C(Ee,"ansi16",P,!0)),E(t.bgColor,"ansi256",()=>C(Ce,"ansi256",P,!0)),E(t.bgColor,"ansi16m",()=>C(Me,"rgb",je,!0)),t}Object.defineProperty(Le,"exports",{enumerable:!0,get:Lt})});var Ne=v((rr,Be)=>{"use strict";Be.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var Te=v((nr,Ae)=>{"use strict";var Rt=require("os"),Se=require("tty"),k=Ne(),{env:d}=process,x;k("no-color")||k("no-colors")||k("color=false")||k("color=never")?x=0:(k("color")||k("colors")||k("color=true")||k("color=always"))&&(x=1);"FORCE_COLOR"in d&&(d.FORCE_COLOR==="true"?x=1:d.FORCE_COLOR==="false"?x=0:x=d.FORCE_COLOR.length===0?1:Math.min(parseInt(d.FORCE_COLOR,10),3));function oe(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function se(e,t){if(x===0)return 0;if(k("color=16m")||k("color=full")||k("color=truecolor"))return 3;if(k("color=256"))return 2;if(e&&!t&&x===void 0)return 0;let r=x||0;if(d.TERM==="dumb")return r;if(process.platform==="win32"){let n=Rt.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in d)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in d)||d.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in d)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION)?1:0;if(d.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in d){let n=parseInt((d.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(d.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(d.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)||"COLORTERM"in d?1:r}function Bt(e){let t=se(e,e&&e.isTTY);return oe(t)}Ae.exports={supportsColor:Bt,stdout:oe(se(!0,Se.isatty(1))),stderr:oe(se(!0,Se.isatty(2)))}});var _e=v((or,Fe)=>{"use strict";var Nt=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let o=t.length,s=0,i="";do i+=e.substr(s,n-s)+t+r,s=n+o,n=e.indexOf(t,s);while(n!==-1);return i+=e.substr(s),i},St=(e,t,r,n)=>{let o=0,s="";do{let i=e[n-1]==="\r";s+=e.substr(o,(i?n-1:n)-o)+t+(i?`\r | ||
var $e=Object.create;var S=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty;var ve=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),Ae=(o,e)=>{for(var r in e)S(o,r,{get:e[r],enumerable:!0})},ee=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ne(e))!xe.call(o,i)&&i!==r&&S(o,i,{get:()=>e[i],enumerable:!(t=Te(e,i))||t.enumerable});return o};var E=(o,e,r)=>(r=o!=null?$e(ke(o)):{},ee(e||!o||!o.__esModule?S(r,"default",{value:o,enumerable:!0}):r,o)),Ce=o=>ee(S({},"__esModule",{value:!0}),o);var he=ve((Zr,Q)=>{"use strict";function Ye(o){var e=void 0;typeof o=="string"?e=[o]:e=o.raw;for(var r="",t=0;t<e.length;t++)r+=e[t].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),t<(arguments.length<=1?0:arguments.length-1)&&(r+=arguments.length<=t+1?void 0:arguments[t+1]);var i=r.split(` | ||
`),s=null;return i.forEach(function(l){var u=l.match(/^(\s+)\S+/);if(u){var y=u[1].length;s?s=Math.min(s,y):s=y}}),s!==null&&(r=i.map(function(l){return l[0]===" "?l.slice(s):l}).join(` | ||
`)),r=r.trim(),r.replace(/\\n/g,` | ||
`)}typeof Q<"u"&&(Q.exports=Ye)});var De={};Ae(De,{a:()=>x,add:()=>x,chalk:()=>n,conflict:()=>M,d:()=>T,default:()=>We,del:()=>T,e:()=>v,error:()=>v,fail:()=>W,i:()=>R,info:()=>R,invalid:()=>C,o:()=>A,ok:()=>I,paint:()=>f,pass:()=>G,success:()=>_,tree:()=>Y,valid:()=>A,warn:()=>P,x:()=>C});module.exports=Ce(De);var d=(o,e)=>{if(!o)throw new Error(e)};var Re=o=>{let e={joined:!0,spacerNoNeighbour:" ",spacerNeighbour:"\u2502 ",keyNoNeighbour:"\u2514\u2500 ",keyNeighbour:"\u251C\u2500 ",separator:": ",renderFn:r=>["boolean","string","number"].includes(typeof r)?r:void 0,sortFn:null,breakCircularWith:" (circular ref.)",...o};return d(Object.keys(e).length===9,"Unexpected Option(s) provided"),d(typeof e.joined=="boolean",'Option "joined" has invalid format'),d(typeof e.spacerNoNeighbour=="string",'Option "spacerNoNeighbour" has invalid format'),d(typeof e.spacerNeighbour=="string",'Option "spacerNeighbour" has invalid format'),d(typeof e.keyNoNeighbour=="string",'Option "keyNoNeighbour" has invalid format'),d(typeof e.keyNeighbour=="string",'Option "keyNeighbour" has invalid format'),d(typeof e.separator=="string",'Option "separator" has invalid format'),d(typeof e.renderFn=="function",'Option "renderFn" has invalid format'),d(typeof e.sortFn=="function"||e.sortFn===null,'Option "sortFn" has invalid format'),d(typeof e.breakCircularWith=="string"||e.breakCircularWith===null,'Option "breakCircularWith" has invalid format'),e},B=(o,e={})=>{let r=Re(e),t=[],i=r.renderFn(o);i!==void 0&&t.push(String(i));let s=p=>r.sortFn===null?p.reverse():p.sort((b,L)=>r.sortFn(L,b)),l=[],u=s(Object.keys(o)).map(p=>[p]),y=[o];for(;u.length!==0;){let p=u.pop(),b=y[p.length-1][p[p.length-1]],L=r.breakCircularWith!==null&&y.includes(b);l[p.length-1]=u.length!==0&&u[u.length-1].length===p.length;let Oe=r.renderFn(b);t.push([l.slice(0,p.length-1).map(D=>D?r.spacerNeighbour:r.spacerNoNeighbour).join(""),l[p.length-1]?r.keyNeighbour:r.keyNoNeighbour,p[p.length-1],Oe===void 0?"":`${r.separator}${b}`,L?r.breakCircularWith:""].join("")),b instanceof Object&&!Array.isArray(b)&&!L&&(u.push(...s(Object.keys(b)).map(D=>p.concat(D))),y[p.length]=b)}return r.joined===!0?t.join(` | ||
`):t};var re=(o=0)=>e=>`\x1B[${e+o}m`,oe=(o=0)=>e=>`\x1B[${38+o};5;${e}m`,te=(o=0)=>(e,r,t)=>`\x1B[${38+o};2;${e};${r};${t}m`,c={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},ne=Object.keys(c.modifier),U=Object.keys(c.color),V=Object.keys(c.bgColor),ie=[...U,...V];function Le(){let o=new Map;for(let[e,r]of Object.entries(c)){for(let[t,i]of Object.entries(r))c[t]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[t]=c[t],o.set(i[0],i[1]);Object.defineProperty(c,e,{value:r,enumerable:!1})}return Object.defineProperty(c,"codes",{value:o,enumerable:!1}),c.color.close="\x1B[39m",c.bgColor.close="\x1B[49m",c.color.ansi=re(),c.color.ansi256=oe(),c.color.ansi16m=te(),c.bgColor.ansi=re(10),c.bgColor.ansi256=oe(10),c.bgColor.ansi16m=te(10),Object.defineProperties(c,{rgbToAnsi256:{value(e,r,t){return e===r&&r===t?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[t]=r;t.length===3&&(t=[...t].map(s=>s+s).join(""));let i=Number.parseInt(t,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>c.rgbToAnsi256(...c.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,t,i;if(e>=232)r=((e-232)*10+8)/255,t=r,i=r;else{e-=16;let u=e%36;r=Math.floor(e/36)/5,t=Math.floor(u/6)/5,i=u%6/5}let s=Math.max(r,t,i)*2;if(s===0)return 30;let l=30+(Math.round(i)<<2|Math.round(t)<<1|Math.round(r));return s===2&&(l+=60),l},enumerable:!1},rgbToAnsi:{value:(e,r,t)=>c.ansi256ToAnsi(c.rgbToAnsi256(e,r,t)),enumerable:!1},hexToAnsi:{value:e=>c.ansi256ToAnsi(c.hexToAnsi256(e)),enumerable:!1}}),c}var Se=Le(),h=Se;var j=E(require("node:process"),1),le=E(require("node:os"),1),K=E(require("node:tty"),1);function g(o,e=globalThis.Deno?globalThis.Deno.args:j.default.argv){let r=o.startsWith("-")?"":o.length===1?"-":"--",t=e.indexOf(r+o),i=e.indexOf("--");return t!==-1&&(i===-1||t<i)}var{env:m}=j.default,F;g("no-color")||g("no-colors")||g("color=false")||g("color=never")?F=0:(g("color")||g("colors")||g("color=true")||g("color=always"))&&(F=1);function Ee(){if("FORCE_COLOR"in m)return m.FORCE_COLOR==="true"?1:m.FORCE_COLOR==="false"?0:m.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(m.FORCE_COLOR,10),3)}function Be(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}}function Fe(o,{streamIsTTY:e,sniffFlags:r=!0}={}){let t=Ee();t!==void 0&&(F=t);let i=r?F:t;if(i===0)return 0;if(r){if(g("color=16m")||g("color=full")||g("color=truecolor"))return 3;if(g("color=256"))return 2}if("TF_BUILD"in m&&"AGENT_NAME"in m)return 1;if(o&&!e&&i===void 0)return 0;let s=i||0;if(m.TERM==="dumb")return s;if(j.default.platform==="win32"){let l=le.default.release().split(".");return Number(l[0])>=10&&Number(l[2])>=10586?Number(l[2])>=14931?3:2:1}if("CI"in m)return"GITHUB_ACTIONS"in m?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(l=>l in m)||m.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in m)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0;if(m.COLORTERM==="truecolor"||m.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in m){let l=Number.parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":return l>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(m.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)||"COLORTERM"in m?1:s}function se(o,e={}){let r=Fe(o,{streamIsTTY:o&&o.isTTY,...e});return Be(r)}var je={stdout:se({isTTY:K.default.isatty(1)}),stderr:se({isTTY:K.default.isatty(2)})},ae=je;function ce(o,e,r){let t=o.indexOf(e);if(t===-1)return o;let i=e.length,s=0,l="";do l+=o.slice(s,t)+e+r,s=t+i,t=o.indexOf(e,s);while(t!==-1);return l+=o.slice(s),l}function me(o,e,r,t){let i=0,s="";do{let l=o[t-1]==="\r";s+=o.slice(i,l?t-1:t)+e+(l?`\r | ||
`:` | ||
`)+r,o=n+1,n=e.indexOf(` | ||
`,o)}while(n!==-1);return s+=e.substr(o),s};Fe.exports={stringReplaceAll:Nt,stringEncaseCRLFWithFirstIndex:St}});var ze=v((sr,Ge)=>{"use strict";var At=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ie=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Tt=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ft=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,_t=new Map([["n",` | ||
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function qe(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):_t.get(e)||e}function It(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),o;for(let s of n){let i=Number(s);if(!Number.isNaN(i))r.push(i);else if(o=s.match(Tt))r.push(o[2].replace(Ft,(l,a,u)=>a?qe(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function Pt(e){Ie.lastIndex=0;let t=[],r;for(;(r=Ie.exec(e))!==null;){let n=r[1];if(r[2]){let o=It(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function Pe(e,t){let r={};for(let o of t)for(let s of o.styles)r[s[0]]=o.inverse?null:s.slice(1);let n=e;for(let[o,s]of Object.entries(r))if(Array.isArray(s)){if(!(o in n))throw new Error(`Unknown Chalk style: ${o}`);n=s.length>0?n[o](...s):n[o]}return n}Ge.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(At,(s,i,l,a,u,p)=>{if(i)o.push(qe(i));else if(a){let m=o.join("");o=[],n.push(r.length===0?m:Pe(e,r)(m)),r.push({inverse:l,styles:Pt(a)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Pe(e,r)(o.join(""))),o=[],r.pop()}else o.push(p)}),n.push(o.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var b=v((ir,De)=>{"use strict";var R=Re(),{stdout:le,stderr:ce}=Te(),{stringReplaceAll:qt,stringEncaseCRLFWithFirstIndex:Gt}=_e(),{isArray:q}=Array,Ye=["ansi","ansi","ansi256","ansi16m"],M=Object.create(null),zt=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=le?le.level:0;e.level=t.level===void 0?r:t.level},ae=class{constructor(t){return Ue(t)}},Ue=e=>{let t={};return zt(t,e),t.template=(...r)=>Ke(t.template,...r),Object.setPrototypeOf(t,G.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=ae,t.template};function G(e){return Ue(e)}for(let[e,t]of Object.entries(R))M[e]={get(){let r=z(this,ue(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};M.visible={get(){let e=z(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ve=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Ve)M[e]={get(){let{level:t}=this;return function(...r){let n=ue(R.color[Ye[t]][e](...r),R.color.close,this._styler);return z(this,n,this._isEmpty)}}};for(let e of Ve){let t="bg"+e[0].toUpperCase()+e.slice(1);M[t]={get(){let{level:r}=this;return function(...n){let o=ue(R.bgColor[Ye[r]][e](...n),R.bgColor.close,this._styler);return z(this,o,this._isEmpty)}}}}var Wt=Object.defineProperties(()=>{},{...M,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),ue=(e,t,r)=>{let n,o;return r===void 0?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},z=(e,t,r)=>{let n=(...o)=>q(o[0])&&q(o[0].raw)?We(n,Ke(n,...o)):We(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,Wt),n._generator=e,n._styler=t,n._isEmpty=r,n},We=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=qt(t,r.close,r.open),r=r.parent;let s=t.indexOf(` | ||
`);return s!==-1&&(t=Gt(t,o,n,s)),n+t+o},ie,Ke=(e,...t)=>{let[r]=t;if(!q(r)||!q(r.raw))return t.join(" ");let n=t.slice(1),o=[r.raw[0]];for(let s=1;s<r.length;s++)o.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return ie===void 0&&(ie=ze()),ie(e,o.join(""))};Object.defineProperties(G.prototype,M);var W=G();W.supportsColor=le;W.stderr=G({level:ce?ce.level:0});W.stderr.supportsColor=ce;De.exports=W});var ct=v((qr,me)=>{"use strict";function Yt(e){var t=void 0;typeof e=="string"?t=[e]:t=e.raw;for(var r="",n=0;n<t.length;n++)r+=t[n].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),n<(arguments.length<=1?0:arguments.length-1)&&(r+=arguments.length<=n+1?void 0:arguments[n+1]);var o=r.split(` | ||
`),s=null;return o.forEach(function(i){var l=i.match(/^(\s+)\S+/);if(l){var a=l[1].length;s?s=Math.min(s,a):s=a}}),s!==null&&(r=o.map(function(i){return i[0]===" "?i.slice(s):i}).join(` | ||
`)),r=r.trim(),r.replace(/\\n/g,` | ||
`)}typeof me<"u"&&(me.exports=Yt)});var Vt={};bt(Vt,{a:()=>B,add:()=>B,chalk:()=>ft.default,conflict:()=>U,d:()=>j,default:()=>Ut,del:()=>j,e:()=>N,error:()=>N,fail:()=>H,i:()=>T,info:()=>T,invalid:()=>A,o:()=>S,ok:()=>V,paint:()=>y,pass:()=>J,success:()=>K,tree:()=>X,valid:()=>S,warn:()=>D,x:()=>A});module.exports=yt(Vt);var w=(e,t)=>{if(!e)throw new Error(t)};var kt=e=>{let t={joined:!0,spacerNoNeighbour:" ",spacerNeighbour:"\u2502 ",keyNoNeighbour:"\u2514\u2500 ",keyNeighbour:"\u251C\u2500 ",separator:": ",renderFn:r=>["boolean","string","number"].includes(typeof r)?r:void 0,sortFn:null,breakCircularWith:" (circular ref.)",...e};return w(Object.keys(t).length===9,"Unexpected Option(s) provided"),w(typeof t.joined=="boolean",'Option "joined" has invalid format'),w(typeof t.spacerNoNeighbour=="string",'Option "spacerNoNeighbour" has invalid format'),w(typeof t.spacerNeighbour=="string",'Option "spacerNeighbour" has invalid format'),w(typeof t.keyNoNeighbour=="string",'Option "keyNoNeighbour" has invalid format'),w(typeof t.keyNeighbour=="string",'Option "keyNeighbour" has invalid format'),w(typeof t.separator=="string",'Option "separator" has invalid format'),w(typeof t.renderFn=="function",'Option "renderFn" has invalid format'),w(typeof t.sortFn=="function"||t.sortFn===null,'Option "sortFn" has invalid format'),w(typeof t.breakCircularWith=="string"||t.breakCircularWith===null,'Option "breakCircularWith" has invalid format'),t},_=(e,t={})=>{let r=kt(t),n=[],o=r.renderFn(e);o!==void 0&&n.push(String(o));let s=u=>r.sortFn===null?u.reverse():u.sort((p,m)=>r.sortFn(m,p)),i=[],l=s(Object.keys(e)).map(u=>[u]),a=[e];for(;l.length!==0;){let u=l.pop(),p=a[u.length-1][u[u.length-1]],m=r.breakCircularWith!==null&&a.includes(p);i[u.length-1]=l.length!==0&&l[l.length-1].length===u.length;let Q=r.renderFn(p);n.push([i.slice(0,u.length-1).map(ee=>ee?r.spacerNeighbour:r.spacerNoNeighbour).join(""),i[u.length-1]?r.keyNeighbour:r.keyNoNeighbour,u[u.length-1],Q===void 0?"":`${r.separator}${p}`,m?r.breakCircularWith:""].join("")),p instanceof Object&&!Array.isArray(p)&&!m&&(l.push(...s(Object.keys(p)).map(ee=>u.concat(ee))),a[u.length]=p)}return r.joined===!0?n.join(` | ||
`):n};var Je=h(b());var Y=h(b());var g=h(b());function y(e){return e.split(" ").map(t=>t.replace(/^(\d*\.?\d*)$/g,`${g.default.blue("$1")}`).replace(/^(\d*\.?\d*)(YB|ZB|EB|PB|TB|GB|MB|KB|B|mb|kb|kB|bit|zs|as|fs|ps|ns|µs|ms|s|m|h|d|m|y)$/g,`${g.default.cyan("$1")}${g.default.magenta("$2")}`).replace(/^((?:[0-1]?[0-9]|[2][0-3]):[0-5][0-9]:[0-5][0-9] (?:AM|PM)?)$/g,`${g.default.dim("$1")}`).replace(/^\[(.*?)\]$/g,`${g.default.dim("[")}${g.default.magenta("$1")}${g.default.dim("]")}`).replace(/^`(.*?)`$/g,`${g.default.dim("`")}$1${g.default.dim("`")}`).replace(/^\((.*?)\)$/g,`${g.default.dim("(")}$1${g.default.dim(")")}`).replace(/^<(.*?)>$/g,`${g.default.dim("<")}${g.default.gray("$1")}${g.default.dim(">")}`).replace(/->/g,g.default.dim("\u2192")).replace(/<-/g,g.default.dim("\u2190")).replace(/^\$t$/g,`${g.default.dim(new Date().toLocaleTimeString())}`).replace(/^\*\*(.*?)\*\*$/g,`${g.default.bold.white("$1")}`).replace(/^~~(.*?)~~$/g,`${g.default.strikethrough("$1")}`).replace(/^__(.*?)__$/g,`${g.default.underline("$1")}`).replace(/^\.\.(.*?)\.\.$/g,`${g.default.dim("$1")}`).replace(/^!!(.*?)!!$/g,`${g.default.yellow("$1")}`).replace(/^\*(.*?)\*$/g,`${g.default.italic("$1")}`).replace(/^_(.*?)_$/g,`${g.default.italic("$1")}`).replace(/^\+(.*?)\+$/g,`${g.default.green("$1")}`).replace(/^-(.*?)-$/g,`${g.default.red("$1")}`)).join(" ")}function f(e,t){let r="";if(Array.isArray(e))for(let n=0;n<e.length;n++)r+=fe(e[n])+fe(t[n]);else r=[e,...t].map(n=>fe(n)).join(" ");return y(r)}var fe=e=>e?Array.isArray(e)?e.map(t=>{switch(typeof t){case"string":return`'${Y.default.yellow(t)}'`;case"number":case"boolean":return Y.default.blue(t);default:return t}}).join(Y.default.gray(", ")):e:"";var B=(e,...t)=>{let r=Je.default.green("+")+" "+f(e,t);return console.log(r),r};var Xe=h(b());var N=(e,...t)=>{let r=Xe.default.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+f(e,t);return console.log(r),r};var ge=h(b());var U=(e,...t)=>{let r=ge.default.bgYellow.bold.white(" \u26A0\uFE0F CONFLICT ")+" "+ge.default.yellow(f(e,t));return console.log(r),r};var He=h(b());var V=(e,...t)=>{let r=He.default.green("\u2713 ")+f(e,t);return console.log(r),r};var Ze=h(b());var j=(e,...t)=>{let r=Ze.default.red("-")+" "+f(e,t);return console.log(r),r};var Qe=h(b());var S=(e,...t)=>{let r=Qe.default.green("\u25CB ")+f(e,t);return console.log(r),r};var et=h(b());var A=(e,...t)=>{let r=et.default.red("\u2717 ")+f(e,t);return console.log(r),r};var tt=h(b());var T=(e,...t)=>{let r=tt.default.cyan("\u{1D4F2}")+" "+f(e,t);return console.log(r),r};var rt=h(b());var K=(e,...t)=>{let r=rt.default.green("\u23FA Success ")+f(e,t);return console.log(r),r};var nt=h(b());var D=(e,...t)=>{let r=nt.default.yellow("\u23FA Warn ")+f(e,t);return console.log(r),r};var ot=h(b());var J=(e,...t)=>{let r=ot.default.bgGreen.bold.white(" \u2713 PASS ")+" "+f(e,t);return console.log(r),r};var X=e=>{let t=_(it(st(JSON.parse(JSON.stringify(e)))),{spacerNeighbour:y("..\u2502..")+" ",keyNoNeighbour:y("..\u2514\u2500..")+" ",keyNeighbour:y("..\u251C\u2500..")+" ",separator:y("..:..")+" "});return console.log(t),t};function st(e){for(let t in e){let r=e[t];typeof r=="object"?r!==null&&!Object.keys(r).length?delete e[t]:e[t]=st(r):r===void 0&&delete e[t]}return e}function it(e){for(let t in e){let r=e[t];Array.isArray(r)?e[t]=r.map(n=>y(`**${n}**`)).join(y("..,..")):typeof r=="object"?it(r):e[t]=y(`**${r}**`)}return e}var lt=h(b());var H=(e,...t)=>{let r=lt.default.red("\u23FA Fail ")+f(e,t);return console.log(r),r};var pe=(e,...t)=>{let r=y("$t ")+f(e,t);return console.log(r),r};var at=h(ct()),Z=h(b());function ut(e){let{message:t,stack:r}=typeof e=="string"?new Error(e):e,n={};return(0,at.default)(r.replace(t,"").replace(/^Error: /,"")).split(` | ||
`).forEach(o=>{n[o.split(" ").map(s=>s.replace(/^\((.+)\)$/,`${Z.default.cyan("$1")}`).replace(/\./g,`${Z.default.dim(".")}`).replace(/^at$/,i=>Z.default.dim(i))).join(" ")]=null}),{message:t.trim().replace(/Error: /g,""),stackTree:n}}var O=h(b()),he=(e,...t)=>{if(e instanceof Error){let{message:r,stackTree:n}=ut(e);return console.log(""),console.log(O.default.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+O.default.bold.red(r)),console.log(_(n,{spacerNeighbour:O.default.redBright.dim("\u2502\u2000\u2000"),keyNoNeighbour:O.default.redBright.dim("\u2514\u2500\u2000"),keyNeighbour:O.default.redBright.dim("\u251C\u2500 "),separator:O.default.redBright.dim(":\u2000")})),console.log(""),r}else{let r=f(e,t);return console.log(r),r}};Object.assign(he,{a:B,add:B,d:j,del:j,delete:j,o:S,valid:S,x:A,invalid:A,i:T,info:T,e:N,error:N,t:pe,timestamp:pe,success:K,fail:H,warn:D,pass:J,conflict:U,ok:V,tree:X,paint:y});var ft=h(b());var Ut=he;0&&(module.exports={a,add,chalk,conflict,d,del,e,error,fail,i,info,invalid,o,ok,paint,pass,success,tree,valid,warn,x}); | ||
`)+r,i=t+1,t=o.indexOf(` | ||
`,i)}while(t!==-1);return s+=o.slice(i),s}var{stdout:pe,stderr:fe}=ae,J=Symbol("GENERATOR"),O=Symbol("STYLER"),N=Symbol("IS_EMPTY"),ue=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null),we=(o,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=pe?pe.level:0;o.level=e.level===void 0?r:e.level};var Me=o=>{let e=(...r)=>r.join(" ");return we(e,o),Object.setPrototypeOf(e,k.prototype),e};function k(o){return Me(o)}Object.setPrototypeOf(k.prototype,Function.prototype);for(let[o,e]of Object.entries(h))$[o]={get(){let r=w(this,H(e.open,e.close,this[O]),this[N]);return Object.defineProperty(this,o,{value:r}),r}};$.visible={get(){let o=w(this,this[O],!0);return Object.defineProperty(this,"visible",{value:o}),o}};var z=(o,e,r,...t)=>o==="rgb"?e==="ansi16m"?h[r].ansi16m(...t):e==="ansi256"?h[r].ansi256(h.rgbToAnsi256(...t)):h[r].ansi(h.rgbToAnsi(...t)):o==="hex"?z("rgb",e,r,...h.hexToRgb(...t)):h[r][o](...t),Ie=["rgb","hex","ansi256"];for(let o of Ie){$[o]={get(){let{level:r}=this;return function(...t){let i=H(z(o,ue[r],"color",...t),h.color.close,this[O]);return w(this,i,this[N])}}};let e="bg"+o[0].toUpperCase()+o.slice(1);$[e]={get(){let{level:r}=this;return function(...t){let i=H(z(o,ue[r],"bgColor",...t),h.bgColor.close,this[O]);return w(this,i,this[N])}}}}var _e=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[J].level},set(o){this[J].level=o}}}),H=(o,e,r)=>{let t,i;return r===void 0?(t=o,i=e):(t=r.openAll+o,i=e+r.closeAll),{open:o,close:e,openAll:t,closeAll:i,parent:r}},w=(o,e,r)=>{let t=(...i)=>Pe(t,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(t,_e),t[J]=o,t[O]=e,t[N]=r,t},Pe=(o,e)=>{if(o.level<=0||!e)return o[N]?"":e;let r=o[O];if(r===void 0)return e;let{openAll:t,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=ce(e,r.close,r.open),r=r.parent;let s=e.indexOf(` | ||
`);return s!==-1&&(e=me(e,i,t,s)),t+e+i};Object.defineProperties(k.prototype,$);var Ge=k(),er=k({level:fe?fe.level:0});var n=Ge;function f(o){return o.split(" ").map(e=>e.replace(/^(\d*\.?\d*)$/g,`${n.blue("$1")}`).replace(/^(\d*\.?\d*)(YB|ZB|EB|PB|TB|GB|MB|KB|B|mb|kb|kB|bit|zs|as|fs|ps|ns|µs|ms|s|m|h|d|m|y)$/g,`${n.cyan("$1")}${n.magenta("$2")}`).replace(/^((?:[0-1]?[0-9]|[2][0-3]):[0-5][0-9]:[0-5][0-9] (?:AM|PM)?)$/g,`${n.dim("$1")}`).replace(/^\[(.*?)\]$/g,`${n.dim("[")}${n.magenta("$1")}${n.dim("]")}`).replace(/^`(.*?)`$/g,`${n.dim("`")}$1${n.dim("`")}`).replace(/^\((.*?)\)$/g,`${n.dim("(")}$1${n.dim(")")}`).replace(/^<(.*?)>$/g,`${n.dim("<")}${n.gray("$1")}${n.dim(">")}`).replace(/->/g,n.dim("\u2192")).replace(/<-/g,n.dim("\u2190")).replace(/^\$t$/g,`${n.dim(new Date().toLocaleTimeString())}`).replace(/^\*\*(.*?)\*\*$/g,`${n.bold.white("$1")}`).replace(/^~~(.*?)~~$/g,`${n.strikethrough("$1")}`).replace(/^__(.*?)__$/g,`${n.underline("$1")}`).replace(/^\.\.(.*?)\.\.$/g,`${n.dim("$1")}`).replace(/^!!(.*?)!!$/g,`${n.yellow("$1")}`).replace(/^\*(.*?)\*$/g,`${n.italic("$1")}`).replace(/^_(.*?)_$/g,`${n.italic("$1")}`).replace(/^\+(.*?)\+$/g,`${n.green("$1")}`).replace(/^-(.*?)-$/g,`${n.red("$1")}`)).join(" ")}function a(o,e){let r="";if(Array.isArray(o))for(let t=0;t<o.length;t++)r+=Z(o[t])+Z(e[t]);else r=[o,...e].map(t=>Z(t)).join(" ");return f(r)}var Z=o=>o?Array.isArray(o)?o.map(e=>{switch(typeof e){case"string":return`'${n.yellow(e)}'`;case"number":case"boolean":return n.blue(e);default:return e}}).join(n.gray(", ")):o:"";var x=(o,...e)=>{let r=n.green("+")+" "+a(o,e);return console.log(r),r};var v=(o,...e)=>{let r=n.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+a(o,e);return console.log(r),r};var M=(o,...e)=>{let r=n.bgYellow.bold.white(" \u26A0\uFE0F CONFLICT ")+" "+n.yellow(a(o,e));return console.log(r),r};var I=(o,...e)=>{let r=n.green("\u2713 ")+a(o,e);return console.log(r),r};var T=(o,...e)=>{let r=n.red("-")+" "+a(o,e);return console.log(r),r};var A=(o,...e)=>{let r=n.green("\u25CB ")+a(o,e);return console.log(r),r};var C=(o,...e)=>{let r=n.red("\u2717 ")+a(o,e);return console.log(r),r};var R=(o,...e)=>{let r=n.cyan("\u{1D4F2}")+" "+a(o,e);return console.log(r),r};var _=(o,...e)=>{let r=n.green("\u23FA Success ")+a(o,e);return console.log(r),r};var P=(o,...e)=>{let r=n.yellow("\u23FA Warn ")+a(o,e);return console.log(r),r};var G=(o,...e)=>{let r=n.bgGreen.bold.white(" \u2713 PASS ")+" "+a(o,e);return console.log(r),r};var Y=o=>{let e=B(de(ge(JSON.parse(JSON.stringify(o)))),{spacerNeighbour:f("..\u2502..")+" ",keyNoNeighbour:f("..\u2514\u2500..")+" ",keyNeighbour:f("..\u251C\u2500..")+" ",separator:f("..:..")+" "});return console.log(e),e};function ge(o){for(let e in o){let r=o[e];typeof r=="object"?r!==null&&!Object.keys(r).length?delete o[e]:o[e]=ge(r):r===void 0&&delete o[e]}return o}function de(o){for(let e in o){let r=o[e];Array.isArray(r)?o[e]=r.map(t=>f(`**${t}**`)).join(f("..,..")):typeof r=="object"?de(r):o[e]=f(`**${r}**`)}return o}var W=(o,...e)=>{let r=n.red("\u23FA Fail ")+a(o,e);return console.log(r),r};var q=(o,...e)=>{let r=f("$t ")+a(o,e);return console.log(r),r};var be=E(he());function ye(o){let{message:e,stack:r}=typeof o=="string"?new Error(o):o,t={};return(0,be.default)(r.replace(e,"").replace(/^Error: /,"")).split(` | ||
`).forEach(i=>{t[i.split(" ").map(s=>s.replace(/^\((.+)\)$/,`${n.cyan("$1")}`).replace(/\./g,`${n.dim(".")}`).replace(/^at$/,l=>n.dim(l))).join(" ")]=null}),{message:e.trim().replace(/Error: /g,""),stackTree:t}}var X=(o,...e)=>{if(o instanceof Error){let{message:r,stackTree:t}=ye(o);return console.log(""),console.log(n.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+n.bold.red(r)),console.log(B(t,{spacerNeighbour:n.redBright.dim("\u2502\u2000\u2000"),keyNoNeighbour:n.redBright.dim("\u2514\u2500\u2000"),keyNeighbour:n.redBright.dim("\u251C\u2500 "),separator:n.redBright.dim(":\u2000")})),console.log(""),r}else{let r=a(o,e);return console.log(r),r}};Object.assign(X,{a:x,add:x,d:T,del:T,delete:T,o:A,valid:A,x:C,invalid:C,i:R,info:R,e:v,error:v,t:q,timestamp:q,success:_,fail:W,warn:P,pass:G,conflict:M,ok:I,tree:Y,paint:f});var We=X;0&&(module.exports={a,add,chalk,conflict,d,del,e,error,fail,i,info,invalid,o,ok,paint,pass,success,tree,valid,warn,x}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
{"name":"@techor/log","license":"MIT","scripts":{"build:cjs":"esbuild src/index.ts --bundle --outfile=dist/index.js --format=cjs --minify --sourcemap --platform=node","build:esm":"esbuild src/index.ts --bundle --outfile=dist/index.mjs --format=esm --minify --sourcemap --platform=node","build:type":"tsc --emitDeclarationOnly --preserveWatchOutput","build":"npm run build:cjs && npm run build:esm && npm run build:type","dev":"conc 'npm:build:* -- --watch'","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"description":"A set of human-friendly and beautiful console log syntax","author":{"name":"Aron","email":"i@aron.tw","url":"https://aron.tw"},"homepage":"https://github.com/1aron/techor","bugs":{"url":"https://github.com/1aron/techor/issues"},"repository":{"type":"git","url":"https://github.com/1aron/techor.git","directory":"packages/log"},"keywords":["console","log","chalk","semantic"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"sideEffects":false,"publishConfig":{"access":"public"},"devDependencies":{"chalk":"^4.0.0","dedent":"^0.7.0","object-treeify":"^3.3.1"},"version":"2.1.6"} | ||
{"name":"@techor/log","license":"MIT","scripts":{"build:cjs":"esbuild src/index.ts --bundle --outfile=dist/index.js --format=cjs --minify --sourcemap --platform=node","build:esm":"esbuild src/index.ts --bundle --outfile=dist/index.mjs --format=esm --minify --sourcemap --platform=node","build:type":"tsc --emitDeclarationOnly --preserveWatchOutput","build":"npm run build:cjs && npm run build:esm && npm run build:type","dev":"conc 'npm:build:* -- --watch'","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"description":"A set of human-friendly and beautiful console log syntax","author":{"name":"Aron","email":"i@aron.tw","url":"https://aron.tw"},"homepage":"https://github.com/1aron/techor","bugs":{"url":"https://github.com/1aron/techor/issues"},"repository":{"type":"git","url":"https://github.com/1aron/techor.git","directory":"packages/log"},"keywords":["console","log","chalk","semantic"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"sideEffects":false,"publishConfig":{"access":"public"},"devDependencies":{"chalk":"^5.2.0","dedent":"^0.7.0","object-treeify":"^3.3.1"},"version":"2.1.7"} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
152441
202