@phnq/message
Version:
Asynchronous, incremental messaging client and server
8 lines • 70.7 kB
JavaScript
var ti=Object.create;var{getPrototypeOf:ii,defineProperty:vn,getOwnPropertyNames:ri}=Object;var ui=Object.prototype.hasOwnProperty;var hn=(n,t,i)=>{i=n!=null?ti(ii(n)):{};let r=t||!n||!n.__esModule?vn(i,"default",{value:n,enumerable:!0}):i;for(let f of ri(n))if(!ui.call(r,f))vn(r,f,{get:()=>n[f],enumerable:!0});return r};var M=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var Fn=((n)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,i)=>(typeof require<"u"?require:t)[i]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var nt=M((ki,sn)=>{var fi=/[|\\{}()[\]^$+*?.]/g;sn.exports=function(n){if(typeof n!=="string")throw TypeError("Expected a string");return n.replace(fi,"\\$&")}});var it=M((xi,tt)=>{tt.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 Vn=M((mi,ut)=>{var on=it(),rt={};for(bn in on)if(on.hasOwnProperty(bn))rt[on[bn]]=bn;var bn,N=ut.exports={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"]}};for(v in N)if(N.hasOwnProperty(v)){if(!("channels"in N[v]))throw Error("missing channels property: "+v);if(!("labels"in N[v]))throw Error("missing channel labels property: "+v);if(N[v].labels.length!==N[v].channels)throw Error("channel and label counts mismatch: "+v);Jn=N[v].channels,$n=N[v].labels,delete N[v].channels,delete N[v].labels,Object.defineProperty(N[v],"channels",{value:Jn}),Object.defineProperty(N[v],"labels",{value:$n})}var Jn,$n,v;N.rgb.hsl=function(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255,f=Math.min(t,i,r),c=Math.max(t,i,r),a=c-f,e,y,F;if(c===f)e=0;else if(t===c)e=(i-r)/a;else if(i===c)e=2+(r-t)/a;else if(r===c)e=4+(t-i)/a;if(e=Math.min(e*60,360),e<0)e+=360;if(F=(f+c)/2,c===f)y=0;else if(F<=0.5)y=a/(c+f);else y=a/(2-c-f);return[e,y*100,F*100]};N.rgb.hsv=function(n){var t,i,r,f,c,a=n[0]/255,e=n[1]/255,y=n[2]/255,F=Math.max(a,e,y),J=F-Math.min(a,e,y),Z=function(A){return(F-A)/6/J+0.5};if(J===0)f=c=0;else{if(c=J/F,t=Z(a),i=Z(e),r=Z(y),a===F)f=r-i;else if(e===F)f=0.3333333333333333+t-r;else if(y===F)f=0.6666666666666666+i-t;if(f<0)f+=1;else if(f>1)f-=1}return[f*360,c*100,F*100]};N.rgb.hwb=function(n){var t=n[0],i=n[1],r=n[2],f=N.rgb.hsl(n)[0],c=0.00392156862745098*Math.min(t,Math.min(i,r));return r=1-0.00392156862745098*Math.max(t,Math.max(i,r)),[f,c*100,r*100]};N.rgb.cmyk=function(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255,f,c,a,e;return e=Math.min(1-t,1-i,1-r),f=(1-t-e)/(1-e)||0,c=(1-i-e)/(1-e)||0,a=(1-r-e)/(1-e)||0,[f*100,c*100,a*100,e*100]};function oi(n,t){return Math.pow(n[0]-t[0],2)+Math.pow(n[1]-t[1],2)+Math.pow(n[2]-t[2],2)}N.rgb.keyword=function(n){var t=rt[n];if(t)return t;var i=1/0,r;for(var f in on)if(on.hasOwnProperty(f)){var c=on[f],a=oi(n,c);if(a<i)i=a,r=f}return r};N.keyword.rgb=function(n){return on[n]};N.rgb.xyz=function(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255;t=t>0.04045?Math.pow((t+0.055)/1.055,2.4):t/12.92,i=i>0.04045?Math.pow((i+0.055)/1.055,2.4):i/12.92,r=r>0.04045?Math.pow((r+0.055)/1.055,2.4):r/12.92;var f=t*0.4124+i*0.3576+r*0.1805,c=t*0.2126+i*0.7152+r*0.0722,a=t*0.0193+i*0.1192+r*0.9505;return[f*100,c*100,a*100]};N.rgb.lab=function(n){var t=N.rgb.xyz(n),i=t[0],r=t[1],f=t[2],c,a,e;return i/=95.047,r/=100,f/=108.883,i=i>0.008856?Math.pow(i,0.3333333333333333):7.787*i+0.13793103448275862,r=r>0.008856?Math.pow(r,0.3333333333333333):7.787*r+0.13793103448275862,f=f>0.008856?Math.pow(f,0.3333333333333333):7.787*f+0.13793103448275862,c=116*r-16,a=500*(i-r),e=200*(r-f),[c,a,e]};N.hsl.rgb=function(n){var t=n[0]/360,i=n[1]/100,r=n[2]/100,f,c,a,e,y;if(i===0)return y=r*255,[y,y,y];if(r<0.5)c=r*(1+i);else c=r+i-r*i;f=2*r-c,e=[0,0,0];for(var F=0;F<3;F++){if(a=t+0.3333333333333333*-(F-1),a<0)a++;if(a>1)a--;if(6*a<1)y=f+(c-f)*6*a;else if(2*a<1)y=c;else if(3*a<2)y=f+(c-f)*(0.6666666666666666-a)*6;else y=f;e[F]=y*255}return e};N.hsl.hsv=function(n){var t=n[0],i=n[1]/100,r=n[2]/100,f=i,c=Math.max(r,0.01),a,e;return r*=2,i*=r<=1?r:2-r,f*=c<=1?c:2-c,e=(r+i)/2,a=r===0?2*f/(c+f):2*i/(r+i),[t,a*100,e*100]};N.hsv.rgb=function(n){var t=n[0]/60,i=n[1]/100,r=n[2]/100,f=Math.floor(t)%6,c=t-Math.floor(t),a=255*r*(1-i),e=255*r*(1-i*c),y=255*r*(1-i*(1-c));switch(r*=255,f){case 0:return[r,y,a];case 1:return[e,r,a];case 2:return[a,r,y];case 3:return[a,e,r];case 4:return[y,a,r];case 5:return[r,a,e]}};N.hsv.hsl=function(n){var t=n[0],i=n[1]/100,r=n[2]/100,f=Math.max(r,0.01),c,a,e;return e=(2-i)*r,c=(2-i)*f,a=i*f,a/=c<=1?c:2-c,a=a||0,e/=2,[t,a*100,e*100]};N.hwb.rgb=function(n){var t=n[0]/360,i=n[1]/100,r=n[2]/100,f=i+r,c,a,e,y;if(f>1)i/=f,r/=f;if(c=Math.floor(6*t),a=1-r,e=6*t-c,(c&1)!==0)e=1-e;y=i+e*(a-i);var F,J,Z;switch(c){default:case 6:case 0:F=a,J=y,Z=i;break;case 1:F=y,J=a,Z=i;break;case 2:F=i,J=a,Z=y;break;case 3:F=i,J=y,Z=a;break;case 4:F=y,J=i,Z=a;break;case 5:F=a,J=i,Z=y;break}return[F*255,J*255,Z*255]};N.cmyk.rgb=function(n){var t=n[0]/100,i=n[1]/100,r=n[2]/100,f=n[3]/100,c,a,e;return c=1-Math.min(1,t*(1-f)+f),a=1-Math.min(1,i*(1-f)+f),e=1-Math.min(1,r*(1-f)+f),[c*255,a*255,e*255]};N.xyz.rgb=function(n){var t=n[0]/100,i=n[1]/100,r=n[2]/100,f,c,a;return f=t*3.2406+i*-1.5372+r*-0.4986,c=t*-0.9689+i*1.8758+r*0.0415,a=t*0.0557+i*-0.204+r*1.057,f=f>0.0031308?1.055*Math.pow(f,0.4166666666666667)-0.055:f*12.92,c=c>0.0031308?1.055*Math.pow(c,0.4166666666666667)-0.055:c*12.92,a=a>0.0031308?1.055*Math.pow(a,0.4166666666666667)-0.055:a*12.92,f=Math.min(Math.max(0,f),1),c=Math.min(Math.max(0,c),1),a=Math.min(Math.max(0,a),1),[f*255,c*255,a*255]};N.xyz.lab=function(n){var t=n[0],i=n[1],r=n[2],f,c,a;return t/=95.047,i/=100,r/=108.883,t=t>0.008856?Math.pow(t,0.3333333333333333):7.787*t+0.13793103448275862,i=i>0.008856?Math.pow(i,0.3333333333333333):7.787*i+0.13793103448275862,r=r>0.008856?Math.pow(r,0.3333333333333333):7.787*r+0.13793103448275862,f=116*i-16,c=500*(t-i),a=200*(i-r),[f,c,a]};N.lab.xyz=function(n){var t=n[0],i=n[1],r=n[2],f,c,a;c=(t+16)/116,f=i/500+c,a=c-r/200;var e=Math.pow(c,3),y=Math.pow(f,3),F=Math.pow(a,3);return c=e>0.008856?e:(c-0.13793103448275862)/7.787,f=y>0.008856?y:(f-0.13793103448275862)/7.787,a=F>0.008856?F:(a-0.13793103448275862)/7.787,f*=95.047,c*=100,a*=108.883,[f,c,a]};N.lab.lch=function(n){var t=n[0],i=n[1],r=n[2],f,c,a;if(f=Math.atan2(r,i),c=f*360/2/Math.PI,c<0)c+=360;return a=Math.sqrt(i*i+r*r),[t,a,c]};N.lch.lab=function(n){var t=n[0],i=n[1],r=n[2],f,c,a;return a=r/360*2*Math.PI,f=i*Math.cos(a),c=i*Math.sin(a),[t,f,c]};N.rgb.ansi16=function(n){var t=n[0],i=n[1],r=n[2],f=1 in arguments?arguments[1]:N.rgb.hsv(n)[2];if(f=Math.round(f/50),f===0)return 30;var c=30+(Math.round(r/255)<<2|Math.round(i/255)<<1|Math.round(t/255));if(f===2)c+=60;return c};N.hsv.ansi16=function(n){return N.rgb.ansi16(N.hsv.rgb(n),n[2])};N.rgb.ansi256=function(n){var t=n[0],i=n[1],r=n[2];if(t===i&&i===r){if(t<8)return 16;if(t>248)return 231;return Math.round((t-8)/247*24)+232}var f=16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(r/255*5);return f};N.ansi16.rgb=function(n){var t=n%10;if(t===0||t===7){if(n>50)t+=3.5;return t=t/10.5*255,[t,t,t]}var i=(~~(n>50)+1)*0.5,r=(t&1)*i*255,f=(t>>1&1)*i*255,c=(t>>2&1)*i*255;return[r,f,c]};N.ansi256.rgb=function(n){if(n>=232){var t=(n-232)*10+8;return[t,t,t]}n-=16;var i,r=Math.floor(n/36)/5*255,f=Math.floor((i=n%36)/6)/5*255,c=i%6/5*255;return[r,f,c]};N.rgb.hex=function(n){var t=((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255),i=t.toString(16).toUpperCase();return"000000".substring(i.length)+i};N.hex.rgb=function(n){var t=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var i=t[0];if(t[0].length===3)i=i.split("").map(function(e){return e+e}).join("");var r=parseInt(i,16),f=r>>16&255,c=r>>8&255,a=r&255;return[f,c,a]};N.rgb.hcg=function(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255,f=Math.max(Math.max(t,i),r),c=Math.min(Math.min(t,i),r),a=f-c,e,y;if(a<1)e=c/(1-a);else e=0;if(a<=0)y=0;else if(f===t)y=(i-r)/a%6;else if(f===i)y=2+(r-t)/a;else y=4+(t-i)/a+4;return y/=6,y%=1,[y*360,a*100,e*100]};N.hsl.hcg=function(n){var t=n[1]/100,i=n[2]/100,r=1,f=0;if(i<0.5)r=2*t*i;else r=2*t*(1-i);if(r<1)f=(i-0.5*r)/(1-r);return[n[0],r*100,f*100]};N.hsv.hcg=function(n){var t=n[1]/100,i=n[2]/100,r=t*i,f=0;if(r<1)f=(i-r)/(1-r);return[n[0],r*100,f*100]};N.hcg.rgb=function(n){var t=n[0]/360,i=n[1]/100,r=n[2]/100;if(i===0)return[r*255,r*255,r*255];var f=[0,0,0],c=t%1*6,a=c%1,e=1-a,y=0;switch(Math.floor(c)){case 0:f[0]=1,f[1]=a,f[2]=0;break;case 1:f[0]=e,f[1]=1,f[2]=0;break;case 2:f[0]=0,f[1]=1,f[2]=a;break;case 3:f[0]=0,f[1]=e,f[2]=1;break;case 4:f[0]=a,f[1]=0,f[2]=1;break;default:f[0]=1,f[1]=0,f[2]=e}return y=(1-i)*r,[(i*f[0]+y)*255,(i*f[1]+y)*255,(i*f[2]+y)*255]};N.hcg.hsv=function(n){var t=n[1]/100,i=n[2]/100,r=t+i*(1-t),f=0;if(r>0)f=t/r;return[n[0],f*100,r*100]};N.hcg.hsl=function(n){var t=n[1]/100,i=n[2]/100,r=i*(1-t)+0.5*t,f=0;if(r>0&&r<0.5)f=t/(2*r);else if(r>=0.5&&r<1)f=t/(2*(1-r));return[n[0],f*100,r*100]};N.hcg.hwb=function(n){var t=n[1]/100,i=n[2]/100,r=t+i*(1-t);return[n[0],(r-t)*100,(1-r)*100]};N.hwb.hcg=function(n){var t=n[1]/100,i=n[2]/100,r=1-i,f=r-t,c=0;if(f<1)c=(r-f)/(1-f);return[n[0],f*100,c*100]};N.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};N.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};N.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};N.gray.hsl=N.gray.hsv=function(n){return[0,0,n[0]]};N.gray.hwb=function(n){return[0,100,n[0]]};N.gray.cmyk=function(n){return[0,0,0,n[0]]};N.gray.lab=function(n){return[n[0],0,0]};N.gray.hex=function(n){var t=Math.round(n[0]/100*255)&255,i=(t<<16)+(t<<8)+t,r=i.toString(16).toUpperCase();return"000000".substring(r.length)+r};N.rgb.gray=function(n){var t=(n[0]+n[1]+n[2])/3;return[t/255*100]}});var ot=M((gi,ft)=>{var On=Vn();function di(){var n={},t=Object.keys(On);for(var i=t.length,r=0;r<i;r++)n[t[r]]={distance:-1,parent:null};return n}function wi(n){var t=di(),i=[n];t[n].distance=0;while(i.length){var r=i.pop(),f=Object.keys(On[r]);for(var c=f.length,a=0;a<c;a++){var e=f[a],y=t[e];if(y.distance===-1)y.distance=t[r].distance+1,y.parent=r,i.unshift(e)}}return t}function ci(n,t){return function(i){return t(n(i))}}function hi(n,t){var i=[t[n].parent,n],r=On[t[n].parent][n],f=t[n].parent;while(t[f].parent)i.unshift(t[f].parent),r=ci(On[t[f].parent][f],r),f=t[f].parent;return r.conversion=i,r}ft.exports=function(n){var t=wi(n),i={},r=Object.keys(t);for(var f=r.length,c=0;c<f;c++){var a=r[c],e=t[a];if(e.parent===null)continue;i[a]=hi(a,t)}return i}});var wt=M((Mi,dt)=>{var Zn=Vn(),ai=ot(),an={},pi=Object.keys(Zn);function li(n){var t=function(i){if(i===void 0||i===null)return i;if(arguments.length>1)i=Array.prototype.slice.call(arguments);return n(i)};if("conversion"in n)t.conversion=n.conversion;return t}function Ii(n){var t=function(i){if(i===void 0||i===null)return i;if(arguments.length>1)i=Array.prototype.slice.call(arguments);var r=n(i);if(typeof r==="object")for(var f=r.length,c=0;c<f;c++)r[c]=Math.round(r[c]);return r};if("conversion"in n)t.conversion=n.conversion;return t}pi.forEach(function(n){an[n]={},Object.defineProperty(an[n],"channels",{value:Zn[n].channels}),Object.defineProperty(an[n],"labels",{value:Zn[n].labels});var t=ai(n),i=Object.keys(t);i.forEach(function(r){var f=t[r];an[n][r]=Ii(f),an[n][r].raw=li(f)})});dt.exports=an});var ht=M((vi,ct)=>{var pn=wt(),Dn=(n,t)=>function(){return`\x1B[${n.apply(pn,arguments)+t}m`},Yn=(n,t)=>function(){let i=n.apply(pn,arguments);return`\x1B[${38+t};5;${i}m`},Sn=(n,t)=>function(){let i=n.apply(pn,arguments);return`\x1B[${38+t};2;${i[0]};${i[1]};${i[2]}m`};function ei(){let n=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],gray:[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.grey=t.color.gray;for(let f of Object.keys(t)){let c=t[f];for(let a of Object.keys(c)){let e=c[a];t[a]={open:`\x1B[${e[0]}m`,close:`\x1B[${e[1]}m`},c[a]=t[a],n.set(e[0],e[1])}Object.defineProperty(t,f,{value:c,enumerable:!1}),Object.defineProperty(t,"codes",{value:n,enumerable:!1})}let i=(f)=>f,r=(f,c,a)=>[f,c,a];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Dn(i,0)},t.color.ansi256={ansi256:Yn(i,0)},t.color.ansi16m={rgb:Sn(r,0)},t.bgColor.ansi={ansi:Dn(i,10)},t.bgColor.ansi256={ansi256:Yn(i,10)},t.bgColor.ansi16m={rgb:Sn(r,10)};for(let f of Object.keys(pn)){if(typeof pn[f]!=="object")continue;let c=pn[f];if(f==="ansi16")f="ansi";if("ansi16"in c)t.color.ansi[f]=Dn(c.ansi16,0),t.bgColor.ansi[f]=Dn(c.ansi16,10);if("ansi256"in c)t.color.ansi256[f]=Yn(c.ansi256,0),t.bgColor.ansi256[f]=Yn(c.ansi256,10);if("rgb"in c)t.color.ansi16m[f]=Sn(c.rgb,0),t.bgColor.ansi16m[f]=Sn(c.rgb,10)}return t}Object.defineProperty(ct,"exports",{enumerable:!0,get:ei})});var pt=M((si,at)=>{at.exports={stdout:!1,stderr:!1}});var bt=M((n1,Et)=>{var Ei=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,lt=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,bi=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Bi=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,yi=new Map([["n",`
`],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function et(n){if(n[0]==="u"&&n.length===5||n[0]==="x"&&n.length===3)return String.fromCharCode(parseInt(n.slice(1),16));return yi.get(n)||n}function Ai(n,t){let i=[],r=t.trim().split(/\s*,\s*/g),f;for(let c of r)if(!isNaN(c))i.push(Number(c));else if(f=c.match(bi))i.push(f[2].replace(Bi,(a,e,y)=>e?et(e):y));else throw Error(`Invalid Chalk template style argument: ${c} (in style '${n}')`);return i}function Ui(n){lt.lastIndex=0;let t=[],i;while((i=lt.exec(n))!==null){let r=i[1];if(i[2]){let f=Ai(r,i[2]);t.push([r].concat(f))}else t.push([r])}return t}function It(n,t){let i={};for(let f of t)for(let c of f.styles)i[c[0]]=f.inverse?null:c.slice(1);let r=n;for(let f of Object.keys(i))if(Array.isArray(i[f])){if(!(f in r))throw Error(`Unknown Chalk style: ${f}`);if(i[f].length>0)r=r[f].apply(r,i[f]);else r=r[f]}return r}Et.exports=(n,t)=>{let i=[],r=[],f=[];if(t.replace(Ei,(c,a,e,y,F,J)=>{if(a)f.push(et(a));else if(y){let Z=f.join("");f=[],r.push(i.length===0?Z:It(n,i)(Z)),i.push({inverse:e,styles:Ui(y)})}else if(F){if(i.length===0)throw Error("Found extraneous } in Chalk template literal");r.push(It(n,i)(f.join(""))),f=[],i.pop()}else f.push(J)}),r.push(f.join("")),i.length>0){let c=`Chalk template literal is missing ${i.length} closing bracket${i.length===1?"":"s"} (\`}\`)`;throw Error(c)}return r.join("")}});var _t=M((t1,yn)=>{var Xn=nt(),T=ht(),Hn=pt().stdout,_i=bt(),yt=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),At=["ansi","ansi","ansi256","ansi16m"],Ut=new Set(["gray"]),ln=Object.create(null);function Bt(n,t){t=t||{};let i=Hn?Hn.level:0;n.level=t.level===void 0?i:t.level,n.enabled="enabled"in t?t.enabled:n.level>0}function Bn(n){if(!this||!(this instanceof Bn)||this.template){let t={};return Bt(t,n),t.template=function(){let i=[].slice.call(arguments);return Di.apply(null,[t.template].concat(i))},Object.setPrototypeOf(t,Bn.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Bn,t.template}Bt(this,n)}if(yt)T.blue.open="\x1B[94m";for(let n of Object.keys(T))T[n].closeRe=new RegExp(Xn(T[n].close),"g"),ln[n]={get(){let t=T[n];return jn.call(this,this._styles?this._styles.concat(t):[t],this._empty,n)}};ln.visible={get(){return jn.call(this,this._styles||[],!0,"visible")}};T.color.closeRe=new RegExp(Xn(T.color.close),"g");for(let n of Object.keys(T.color.ansi)){if(Ut.has(n))continue;ln[n]={get(){let t=this.level;return function(){let r={open:T.color[At[t]][n].apply(null,arguments),close:T.color.close,closeRe:T.color.closeRe};return jn.call(this,this._styles?this._styles.concat(r):[r],this._empty,n)}}}}T.bgColor.closeRe=new RegExp(Xn(T.bgColor.close),"g");for(let n of Object.keys(T.bgColor.ansi)){if(Ut.has(n))continue;let t="bg"+n[0].toUpperCase()+n.slice(1);ln[t]={get(){let i=this.level;return function(){let f={open:T.bgColor[At[i]][n].apply(null,arguments),close:T.bgColor.close,closeRe:T.bgColor.closeRe};return jn.call(this,this._styles?this._styles.concat(f):[f],this._empty,n)}}}}var Li=Object.defineProperties(()=>{},ln);function jn(n,t,i){let r=function(){return Oi.apply(r,arguments)};r._styles=n,r._empty=t;let f=this;return Object.defineProperty(r,"level",{enumerable:!0,get(){return f.level},set(c){f.level=c}}),Object.defineProperty(r,"enabled",{enumerable:!0,get(){return f.enabled},set(c){f.enabled=c}}),r.hasGrey=this.hasGrey||i==="gray"||i==="grey",r.__proto__=Li,r}function Oi(){let n=arguments,t=n.length,i=String(arguments[0]);if(t===0)return"";if(t>1)for(let f=1;f<t;f++)i+=" "+n[f];if(!this.enabled||this.level<=0||!i)return this._empty?"":i;let r=T.dim.open;if(yt&&this.hasGrey)T.dim.open="";for(let f of this._styles.slice().reverse())i=f.open+i.replace(f.closeRe,f.open)+f.close,i=i.replace(/\r?\n/g,`${f.close}$&${f.open}`);return T.dim.open=r,i}function Di(n,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let i=[].slice.call(arguments,2),r=[t.raw[0]];for(let f=1;f<t.length;f++)r.push(String(i[f-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[f]));return _i(n,r.join(""))}Object.defineProperties(Bn.prototype,ln);yn.exports=Bn();yn.exports.supportsColor=Hn;yn.exports.default=yn.exports});var Yt=M((fn)=>{var Yi=fn&&fn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(fn,"__esModule",{value:!0});fn.createLogger=fn.matchCategory=void 0;var Lt=Yi(_t()),Si=()=>new Date().toISOString(),ji=(n,t)=>{let r=n.split("").map((f)=>f.charCodeAt(0)).reduce((f,c)=>f+c,0)%360;if(t)return{args:[`font-weight: bold; color: hsl(${r}, 100%, 30%)`,"font-weight: normal; color: inherit"],text:`%c${n}%c`};return{args:[],text:Lt.default.hsl(r,100,30).bold(n)}},Ot=/.+/;fn.matchCategory=(n)=>{Ot=n};var un;(function(n){n.Log="log",n.Error="error",n.Warn="warn",n.Group="group",n.GroupCollapsed="groupCollapsed"})(un||(un={}));var Ci=(n)=>{switch(n){case un.Warn:return"⚠️ ";case un.Error:return"\uD83D\uDEAB "}return""};class Dt{constructor(n){if(this.stack="",n instanceof Error)this.stack=n.stack||"";else Error.captureStackTrace(this,n),this.stack=this.stack.split(`
`).slice(1).join(`
`)}}fn.createLogger=(n,t)=>{let i=ji(n,t),r=(c,...a)=>{if(n.match(Ot)){let[e,...y]=a;console.log(`${Si()} ${i.text} ${Ci(c)}${e}`,...i.args,...y);let F=(J)=>{let Z=new Dt(J instanceof Error?J:F);if(t)console.log(`%c${Z.stack}`,"color: #999");else console.log(Lt.default.hsl(0,0,30)(Z.stack))};return{stack:F}}return{stack:()=>{}}},f=(...c)=>r(un.Log,...c);return f.error=(...c)=>r(un.Error,...c),f.warn=(...c)=>r(un.Warn,...c),f.group=(c,a)=>{r(un.Group,c),a(f),console.groupEnd()},f.groupCollapsed=(c,a)=>{r(un.GroupCollapsed,c),a(f),console.groupEnd()},f}});var Kn=M((jt)=>{Object.defineProperty(jt,"__esModule",{value:!0});jt.createLogger=jt.matchCategory=void 0;var St=Yt();jt.matchCategory=St.matchCategory;jt.createLogger=(n)=>St.createLogger(n,!0)});var Ft=M((z)=>{var Nt=z&&z.__awaiter||function(n,t,i,r){function f(c){return c instanceof i?c:new i(function(a){a(c)})}return new(i||(i=Promise))(function(c,a){function e(J){try{F(r.next(J))}catch(Z){a(Z)}}function y(J){try{F(r.throw(J))}catch(Z){a(Z)}}function F(J){J.done?c(J.value):f(J.value).then(e,y)}F((r=r.apply(n,t||[])).next())})},An=z&&z.__await||function(n){return this instanceof An?(this.v=n,this):new An(n)},Wi=z&&z.__asyncGenerator||function(n,t,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r=i.apply(n,t||[]),f,c=[];return f={},a("next"),a("throw"),a("return"),f[Symbol.asyncIterator]=function(){return this},f;function a(A){if(r[A])f[A]=function(W){return new Promise(function(b,O){c.push([A,W,b,O])>1||e(A,W)})}}function e(A,W){try{y(r[A](W))}catch(b){Z(c[0][3],b)}}function y(A){A.value instanceof An?Promise.resolve(A.value.v).then(F,J):Z(c[0][2],A)}function F(A){e("next",A)}function J(A){e("throw",A)}function Z(A,W){if(A(W),c.shift(),c.length)e(c[0][0],c[0][1])}},Fi=z&&z.__asyncValues||function(n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t=n[Symbol.asyncIterator],i;return t?t.call(n):(n=typeof __values==="function"?__values(n):n[Symbol.iterator](),i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i);function r(c){i[c]=n[c]&&function(a){return new Promise(function(e,y){a=n[c](a),f(e,y,a.done,a.value)})}}function f(c,a,e,y){Promise.resolve(y).then(function(F){c({value:F,done:e})},a)}};Object.defineProperty(z,"__esModule",{value:!0});z.AsyncQueue=z.newQueueGenerator=z.FLUSH=void 0;z.FLUSH=Error("flush");var Ji=(n)=>function(){return Wi(this,arguments,function*(){while(!0)try{yield yield An(yield An(n.dequeue()))}catch(t){if(t===z.FLUSH)break;else throw t}})};z.newQueueGenerator=Ji;var Rn=()=>{let n,t,i=new Promise((r,f)=>{n=r,t=f});return{resolve:n,reject:t,promise:i}};class Wt{constructor(n){if(this.maxSize=0,this.maxWaitTime=0,this.gen=(0,z.newQueueGenerator)(this),this.resolverQueue=[],this.waitForEnqueue=Rn(),n)(()=>Nt(this,void 0,void 0,function*(){var t,i,r,f;try{for(var c=!0,a=Fi(n),e;e=yield a.next(),t=e.done,!t;c=!0){f=e.value,c=!1;let y=f;this.enqueue(y)}}catch(y){i={error:y}}finally{try{if(!c&&!t&&(r=a.return))yield r.call(a)}finally{if(i)throw i.error}}this.flush()}))()}enqueue(n){this.enqueueVal(n)}flush(){this.enqueueVal(void 0)}iterator(){return this.gen()}[Symbol.asyncIterator](){return this.gen()}dequeue(){return Nt(this,void 0,void 0,function*(){let n=this.resolverQueue.shift();if(n){let t=yield n.promise;if(t)return t;throw z.FLUSH}else{let t=this.maxWaitTime>0?setTimeout(()=>{this.waitForEnqueue.reject(Error(`Timed out waiting for enqueue (${this.maxWaitTime}ms)`))},this.maxWaitTime):0;if(yield this.waitForEnqueue.promise,t!==0)clearTimeout(t);return this.dequeue()}})}enqueueVal(n){if(this.maxSize>0&&this.resolverQueue.length>=this.maxSize)throw Error(`Cannot exceed maximum queue size (${this.maxSize})`);this.waitForEnqueue.resolve(),this.waitForEnqueue=Rn();let t=Rn();this.resolverQueue.push(t),t.resolve(n)}}z.AsyncQueue=Wt});var Jt=M((dn)=>{var $i=dn&&dn.__createBinding||(Object.create?function(n,t,i,r){if(r===void 0)r=i;var f=Object.getOwnPropertyDescriptor(t,i);if(!f||("get"in f?!t.__esModule:f.writable||f.configurable))f={enumerable:!0,get:function(){return t[i]}};Object.defineProperty(n,r,f)}:function(n,t,i,r){if(r===void 0)r=i;n[r]=t[i]}),Vi=dn&&dn.__exportStar||function(n,t){for(var i in n)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i))$i(t,n,i)};Object.defineProperty(dn,"__esModule",{value:!0});Vi(Ft(),dn)});var Vt=M((o1,$t)=>{$t.exports=process.hrtime||Hi;var In=global.performance||{},Zi=In.now||In.mozNow||In.msNow||In.oNow||In.webkitNow||function(){return new Date().getTime()};function Hi(n){var t=Zi.call(In)*0.001,i=Math.floor(t),r=Math.floor(t%1*1e9);if(n){if(i=i-n[0],r=r-n[1],r<0)i--,r+=1e9}return[i,r]}});var Kt=M((Ht,Xt)=>{(function(n){var t;typeof Ht=="object"?Xt.exports=n():typeof define=="function"&&define.amd?define(n):(typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"&&(t=self),t.objectHash=n())})(function(){return function n(t,i,r){function f(e,y){if(!i[e]){if(!t[e]){var F=Fn;if(!y&&F)return F(e,!0);if(c)return c(e,!0);throw Error("Cannot find module '"+e+"'")}y=i[e]={exports:{}},t[e][0].call(y.exports,function(J){var Z=t[e][1][J];return f(Z||J)},y,y.exports,n,t,i,r)}return i[e].exports}for(var c=Fn,a=0;a<r.length;a++)f(r[a]);return f}({1:[function(n,t,i){(function(r,f,c,a,e,y,F,J,Z){var A=n("crypto");function W(l,B){B=D(l,B);var d;return(d=B.algorithm!=="passthrough"?A.createHash(B.algorithm):new $).write===void 0&&(d.write=d.update,d.end=d.update),L(B,d).dispatch(l),d.update||d.end(""),d.digest?d.digest(B.encoding==="buffer"?void 0:B.encoding):(l=d.read(),B.encoding!=="buffer"?l.toString(B.encoding):l)}(i=t.exports=W).sha1=function(l){return W(l)},i.keys=function(l){return W(l,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},i.MD5=function(l){return W(l,{algorithm:"md5",encoding:"hex"})},i.keysMD5=function(l){return W(l,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var b=A.getHashes?A.getHashes().slice():["sha1","md5"],O=(b.push("passthrough"),["buffer","hex","binary","base64"]);function D(l,B){var d={};if(d.algorithm=(B=B||{}).algorithm||"sha1",d.encoding=B.encoding||"hex",d.excludeValues=!!B.excludeValues,d.algorithm=d.algorithm.toLowerCase(),d.encoding=d.encoding.toLowerCase(),d.ignoreUnknown=B.ignoreUnknown===!0,d.respectType=B.respectType!==!1,d.respectFunctionNames=B.respectFunctionNames!==!1,d.respectFunctionProperties=B.respectFunctionProperties!==!1,d.unorderedArrays=B.unorderedArrays===!0,d.unorderedSets=B.unorderedSets!==!1,d.unorderedObjects=B.unorderedObjects!==!1,d.replacer=B.replacer||void 0,d.excludeKeys=B.excludeKeys||void 0,l===void 0)throw Error("Object argument required.");for(var h=0;h<b.length;++h)b[h].toLowerCase()===d.algorithm.toLowerCase()&&(d.algorithm=b[h]);if(b.indexOf(d.algorithm)===-1)throw Error('Algorithm "'+d.algorithm+'" not supported. supported values: '+b.join(", "));if(O.indexOf(d.encoding)===-1&&d.algorithm!=="passthrough")throw Error('Encoding "'+d.encoding+'" not supported. supported values: '+O.join(", "));return d}function Y(l){if(typeof l=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(l))!=null}function L(l,B,d){d=d||[];function h(o){return B.update?B.update(o,"utf8"):B.write(o,"utf8")}return{dispatch:function(o){return this["_"+((o=l.replacer?l.replacer(o):o)===null?"null":typeof o)](o)},_object:function(o){var I,E=Object.prototype.toString.call(o),H=/\[object (.*)\]/i.exec(E);if(H=(H=H?H[1]:"unknown:["+E+"]").toLowerCase(),0<=(E=d.indexOf(o)))return this.dispatch("[CIRCULAR:"+E+"]");if(d.push(o),c!==void 0&&c.isBuffer&&c.isBuffer(o))return h("buffer:"),h(o);if(H==="object"||H==="function"||H==="asyncfunction")return E=Object.keys(o),l.unorderedObjects&&(E=E.sort()),l.respectType===!1||Y(o)||E.splice(0,0,"prototype","__proto__","constructor"),l.excludeKeys&&(E=E.filter(function(V){return!l.excludeKeys(V)})),h("object:"+E.length+":"),I=this,E.forEach(function(V){I.dispatch(V),h(":"),l.excludeValues||I.dispatch(o[V]),h(",")});if(!this["_"+H]){if(l.ignoreUnknown)return h("["+H+"]");throw Error('Unknown object type "'+H+'"')}this["_"+H](o)},_array:function(o,V){V=V!==void 0?V:l.unorderedArrays!==!1;var E=this;if(h("array:"+o.length+":"),!V||o.length<=1)return o.forEach(function(X){return E.dispatch(X)});var H=[],V=o.map(function(X){var C=new $,G=d.slice();return L(l,C,G).dispatch(X),H=H.concat(G.slice(d.length)),C.read().toString()});return d=d.concat(H),V.sort(),this._array(V,!1)},_date:function(o){return h("date:"+o.toJSON())},_symbol:function(o){return h("symbol:"+o.toString())},_error:function(o){return h("error:"+o.toString())},_boolean:function(o){return h("bool:"+o.toString())},_string:function(o){h("string:"+o.length+":"),h(o.toString())},_function:function(o){h("fn:"),Y(o)?this.dispatch("[native]"):this.dispatch(o.toString()),l.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(o.name)),l.respectFunctionProperties&&this._object(o)},_number:function(o){return h("number:"+o.toString())},_xml:function(o){return h("xml:"+o.toString())},_null:function(){return h("Null")},_undefined:function(){return h("Undefined")},_regexp:function(o){return h("regex:"+o.toString())},_uint8array:function(o){return h("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},_uint8clampedarray:function(o){return h("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},_int8array:function(o){return h("int8array:"),this.dispatch(Array.prototype.slice.call(o))},_uint16array:function(o){return h("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},_int16array:function(o){return h("int16array:"),this.dispatch(Array.prototype.slice.call(o))},_uint32array:function(o){return h("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},_int32array:function(o){return h("int32array:"),this.dispatch(Array.prototype.slice.call(o))},_float32array:function(o){return h("float32array:"),this.dispatch(Array.prototype.slice.call(o))},_float64array:function(o){return h("float64array:"),this.dispatch(Array.prototype.slice.call(o))},_arraybuffer:function(o){return h("arraybuffer:"),this.dispatch(new Uint8Array(o))},_url:function(o){return h("url:"+o.toString())},_map:function(o){return h("map:"),o=Array.from(o),this._array(o,l.unorderedSets!==!1)},_set:function(o){return h("set:"),o=Array.from(o),this._array(o,l.unorderedSets!==!1)},_file:function(o){return h("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},_blob:function(){if(l.ignoreUnknown)return h("[blob]");throw Error(`Hashing Blob objects is currently not supported
(see https://github.com/puleos/object-hash/issues/26)
Use "options.replacer" or "options.ignoreUnknown"
`)},_domwindow:function(){return h("domwindow")},_bigint:function(o){return h("bigint:"+o.toString())},_process:function(){return h("process")},_timer:function(){return h("timer")},_pipe:function(){return h("pipe")},_tcp:function(){return h("tcp")},_udp:function(){return h("udp")},_tty:function(){return h("tty")},_statwatcher:function(){return h("statwatcher")},_securecontext:function(){return h("securecontext")},_connection:function(){return h("connection")},_zlib:function(){return h("zlib")},_context:function(){return h("context")},_nodescript:function(){return h("nodescript")},_httpparser:function(){return h("httpparser")},_dataview:function(){return h("dataview")},_signal:function(){return h("signal")},_fsevent:function(){return h("fsevent")},_tlswrap:function(){return h("tlswrap")}}}function $(){return{buf:"",write:function(l){this.buf+=l},end:function(l){this.buf+=l},read:function(){return this.buf}}}i.writeToStream=function(l,B,d){return d===void 0&&(d=B,B={}),L(B=D(l,B),d).dispatch(l)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(n,t,i){(function(r,f,c,a,e,y,F,J,Z){(function(A){var W=typeof Uint8Array<"u"?Uint8Array:Array,b=43,O=47,D=48,Y=97,L=65,$=45,l=95;function B(d){return d=d.charCodeAt(0),d===b||d===$?62:d===O||d===l?63:d<D?-1:d<D+10?d-D+26+26:d<L+26?d-L:d<Y+26?d-Y+26:void 0}A.toByteArray=function(d){var h,o;if(0<d.length%4)throw Error("Invalid string. Length must be a multiple of 4");var I=d.length,I=d.charAt(I-2)==="="?2:d.charAt(I-1)==="="?1:0,E=new W(3*d.length/4-I),H=0<I?d.length-4:d.length,V=0;function X(C){E[V++]=C}for(h=0;h<H;h+=4,0)X((16711680&(o=B(d.charAt(h))<<18|B(d.charAt(h+1))<<12|B(d.charAt(h+2))<<6|B(d.charAt(h+3))))>>16),X((65280&o)>>8),X(255&o);return I==2?X(255&(o=B(d.charAt(h))<<2|B(d.charAt(h+1))>>4)):I==1&&(X((o=B(d.charAt(h))<<10|B(d.charAt(h+1))<<4|B(d.charAt(h+2))>>2)>>8&255),X(255&o)),E},A.fromByteArray=function(d){var h,o,I,E,H=d.length%3,V="";function X(C){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(C)}for(h=0,I=d.length-H;h<I;h+=3)o=(d[h]<<16)+(d[h+1]<<8)+d[h+2],V+=X((E=o)>>18&63)+X(E>>12&63)+X(E>>6&63)+X(63&E);switch(H){case 1:V=(V+=X((o=d[d.length-1])>>2))+X(o<<4&63)+"==";break;case 2:V=(V=(V+=X((o=(d[d.length-2]<<8)+d[d.length-1])>>10))+X(o>>4&63))+X(o<<2&63)+"="}return V}})(i===void 0?this.base64js={}:i)}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(n,t,i){(function(r,f,b,a,e,y,F,J,Z){var A=n("base64-js"),W=n("ieee754");function b(u,w,p){if(!(this instanceof b))return new b(u,w,p);var _,U,j,K,q=typeof u;if(w==="base64"&&q=="string")for(u=(K=u).trim?K.trim():K.replace(/^\s+|\s+$/g,"");u.length%4!=0;)u+="=";if(q=="number")_=g(u);else if(q=="string")_=b.byteLength(u,w);else{if(q!="object")throw Error("First argument needs to be a number, array or string.");_=g(u.length)}if(b._useTypedArrays?U=b._augment(new Uint8Array(_)):((U=this).length=_,U._isBuffer=!0),b._useTypedArrays&&typeof u.byteLength=="number")U._set(u);else if(P(K=u)||b.isBuffer(K)||K&&typeof K=="object"&&typeof K.length=="number")for(j=0;j<_;j++)b.isBuffer(u)?U[j]=u.readUInt8(j):U[j]=u[j];else if(q=="string")U.write(u,0,w);else if(q=="number"&&!b._useTypedArrays&&!p)for(j=0;j<_;j++)U[j]=0;return U}function O(u,w,p,_){return b._charsWritten=Ln(function(U){for(var j=[],K=0;K<U.length;K++)j.push(255&U.charCodeAt(K));return j}(w),u,p,_)}function D(u,w,p,_){return b._charsWritten=Ln(function(U){for(var j,K,q=[],k=0;k<U.length;k++)K=U.charCodeAt(k),j=K>>8,K=K%256,q.push(K),q.push(j);return q}(w),u,p,_)}function Y(u,w,p){var _="";p=Math.min(u.length,p);for(var U=w;U<p;U++)_+=String.fromCharCode(u[U]);return _}function L(u,w,p,j){j||(S(typeof p=="boolean","missing or invalid endian"),S(w!=null,"missing offset"),S(w+1<u.length,"Trying to read beyond buffer length"));var U,j=u.length;if(!(j<=w))return p?(U=u[w],w+1<j&&(U|=u[w+1]<<8)):(U=u[w]<<8,w+1<j&&(U|=u[w+1])),U}function $(u,w,p,j){j||(S(typeof p=="boolean","missing or invalid endian"),S(w!=null,"missing offset"),S(w+3<u.length,"Trying to read beyond buffer length"));var U,j=u.length;if(!(j<=w))return p?(w+2<j&&(U=u[w+2]<<16),w+1<j&&(U|=u[w+1]<<8),U|=u[w],w+3<j&&(U+=u[w+3]<<24>>>0)):(w+1<j&&(U=u[w+1]<<16),w+2<j&&(U|=u[w+2]<<8),w+3<j&&(U|=u[w+3]),U+=u[w]<<24>>>0),U}function l(u,w,p,_){if(_||(S(typeof p=="boolean","missing or invalid endian"),S(w!=null,"missing offset"),S(w+1<u.length,"Trying to read beyond buffer length")),!(u.length<=w))return _=L(u,w,p,!0),32768&_?-1*(65535-_+1):_}function B(u,w,p,_){if(_||(S(typeof p=="boolean","missing or invalid endian"),S(w!=null,"missing offset"),S(w+3<u.length,"Trying to read beyond buffer length")),!(u.length<=w))return _=$(u,w,p,!0),2147483648&_?-1*(4294967295-_+1):_}function d(u,w,p,_){return _||(S(typeof p=="boolean","missing or invalid endian"),S(w+3<u.length,"Trying to read beyond buffer length")),W.read(u,w,p,23,4)}function h(u,w,p,_){return _||(S(typeof p=="boolean","missing or invalid endian"),S(w+7<u.length,"Trying to read beyond buffer length")),W.read(u,w,p,52,8)}function o(u,w,p,_,U){if(U||(S(w!=null,"missing value"),S(typeof _=="boolean","missing or invalid endian"),S(p!=null,"missing offset"),S(p+1<u.length,"trying to write beyond buffer length"),Nn(w,65535)),U=u.length,!(U<=p))for(var j=0,K=Math.min(U-p,2);j<K;j++)u[p+j]=(w&255<<8*(_?j:1-j))>>>8*(_?j:1-j)}function I(u,w,p,_,U){if(U||(S(w!=null,"missing value"),S(typeof _=="boolean","missing or invalid endian"),S(p!=null,"missing offset"),S(p+3<u.length,"trying to write beyond buffer length"),Nn(w,4294967295)),U=u.length,!(U<=p))for(var j=0,K=Math.min(U-p,4);j<K;j++)u[p+j]=w>>>8*(_?j:3-j)&255}function E(u,w,p,_,U){U||(S(w!=null,"missing value"),S(typeof _=="boolean","missing or invalid endian"),S(p!=null,"missing offset"),S(p+1<u.length,"Trying to write beyond buffer length"),Wn(w,32767,-32768)),u.length<=p||o(u,0<=w?w:65535+w+1,p,_,U)}function H(u,w,p,_,U){U||(S(w!=null,"missing value"),S(typeof _=="boolean","missing or invalid endian"),S(p!=null,"missing offset"),S(p+3<u.length,"Trying to write beyond buffer length"),Wn(w,2147483647,-2147483648)),u.length<=p||I(u,0<=w?w:4294967295+w+1,p,_,U)}function V(u,w,p,_,U){U||(S(w!=null,"missing value"),S(typeof _=="boolean","missing or invalid endian"),S(p!=null,"missing offset"),S(p+3<u.length,"Trying to write beyond buffer length"),gn(w,340282346638528860000000000000000000000,-340282346638528860000000000000000000000)),u.length<=p||W.write(u,w,p,_,23,4)}function X(u,w,p,_,U){U||(S(w!=null,"missing value"),S(typeof _=="boolean","missing or invalid endian"),S(p!=null,"missing offset"),S(p+7<u.length,"Trying to write beyond buffer length"),gn(w,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)),u.length<=p||W.write(u,w,p,_,52,8)}i.Buffer=b,i.SlowBuffer=b,i.INSPECT_MAX_BYTES=50,b.poolSize=8192,b._useTypedArrays=function(){try{var u=new ArrayBuffer(0),w=new Uint8Array(u);return w.foo=function(){return 42},w.foo()===42&&typeof w.subarray=="function"}catch(p){return!1}}(),b.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},b.isBuffer=function(u){return!(u==null||!u._isBuffer)},b.byteLength=function(u,w){var p;switch(u+="",w||"utf8"){case"hex":p=u.length/2;break;case"utf8":case"utf-8":p=rn(u).length;break;case"ascii":case"binary":case"raw":p=u.length;break;case"base64":p=xn(u).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":p=2*u.length;break;default:throw Error("Unknown encoding")}return p},b.concat=function(u,w){if(S(P(u),`Usage: Buffer.concat(list, [totalLength])
list should be an Array.`),u.length===0)return new b(0);if(u.length===1)return u[0];if(typeof w!="number")for(U=w=0;U<u.length;U++)w+=u[U].length;for(var p=new b(w),_=0,U=0;U<u.length;U++){var j=u[U];j.copy(p,_),_+=j.length}return p},b.prototype.write=function(u,w,p,_){isFinite(w)?isFinite(p)||(_=p,p=void 0):(k=_,_=w,w=p,p=k),w=Number(w)||0;var U,j,K,q,k=this.length-w;switch((!p||k<(p=Number(p)))&&(p=k),_=String(_||"utf8").toLowerCase()){case"hex":U=function(tn,s,nn,x){nn=Number(nn)||0;var Q=tn.length-nn;(!x||Q<(x=Number(x)))&&(x=Q),S((Q=s.length)%2==0,"Invalid hex string"),Q/2<x&&(x=Q/2);for(var cn=0;cn<x;cn++){var Mn=parseInt(s.substr(2*cn,2),16);S(!isNaN(Mn),"Invalid hex string"),tn[nn+cn]=Mn}return b._charsWritten=2*cn,cn}(this,u,w,p);break;case"utf8":case"utf-8":j=this,K=w,q=p,U=b._charsWritten=Ln(rn(u),j,K,q);break;case"ascii":case"binary":U=O(this,u,w,p);break;case"base64":j=this,K=w,q=p,U=b._charsWritten=Ln(xn(u),j,K,q);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":U=D(this,u,w,p);break;default:throw Error("Unknown encoding")}return U},b.prototype.toString=function(u,w,p){var _,U,j,K,q=this;if(u=String(u||"utf8").toLowerCase(),w=Number(w)||0,(p=p!==void 0?Number(p):q.length)===w)return"";switch(u){case"hex":_=function(k,tn,s){var nn=k.length;(!tn||tn<0)&&(tn=0),(!s||s<0||nn<s)&&(s=nn);for(var x="",Q=tn;Q<s;Q++)x+=R(k[Q]);return x}(q,w,p);break;case"utf8":case"utf-8":_=function(k,tn,s){var nn="",x="";s=Math.min(k.length,s);for(var Q=tn;Q<s;Q++)k[Q]<=127?(nn+=mn(x)+String.fromCharCode(k[Q]),x=""):x+="%"+k[Q].toString(16);return nn+mn(x)}(q,w,p);break;case"ascii":case"binary":_=Y(q,w,p);break;case"base64":U=q,K=p,_=(j=w)===0&&K===U.length?A.fromByteArray(U):A.fromByteArray(U.slice(j,K));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":_=function(k,tn,s){for(var nn=k.slice(tn,s),x="",Q=0;Q<nn.length;Q+=2)x+=String.fromCharCode(nn[Q]+256*nn[Q+1]);return x}(q,w,p);break;default:throw Error("Unknown encoding")}return _},b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},b.prototype.copy=function(u,w,p,_){if(w=w||0,(_=_||_===0?_:this.length)!==(p=p||0)&&u.length!==0&&this.length!==0){S(p<=_,"sourceEnd < sourceStart"),S(0<=w&&w<u.length,"targetStart out of bounds"),S(0<=p&&p<this.length,"sourceStart out of bounds"),S(0<=_&&_<=this.length,"sourceEnd out of bounds"),_>this.length&&(_=this.length);var U=(_=u.length-w<_-p?u.length-w+p:_)-p;if(U<100||!b._useTypedArrays)for(var j=0;j<U;j++)u[j+w]=this[j+p];else u._set(this.subarray(p,p+U),w)}},b.prototype.slice=function(u,w){var p=this.length;if(u=G(u,p,0),w=G(w,p,p),b._useTypedArrays)return b._augment(this.subarray(u,w));for(var _=w-u,U=new b(_,void 0,!0),j=0;j<_;j++)U[j]=this[j+u];return U},b.prototype.get=function(u){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(u)},b.prototype.set=function(u,w){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(u,w)},b.prototype.readUInt8=function(u,w){if(w||(S(u!=null,"missing offset"),S(u<this.length,"Trying to read beyond buffer length")),!(u>=this.length))return this[u]},b.prototype.readUInt16LE=function(u,w){return L(this,u,!0,w)},b.prototype.readUInt16BE=function(u,w){return L(this,u,!1,w)},b.prototype.readUInt32LE=function(u,w){return $(this,u,!0,w)},b.prototype.readUInt32BE=function(u,w){return $(this,u,!1,w)},b.prototype.readInt8=function(u,w){if(w||(S(u!=null,"missing offset"),S(u<this.length,"Trying to read beyond buffer length")),!(u>=this.length))return 128&this[u]?-1*(255-this[u]+1):this[u]},b.prototype.readInt16LE=function(u,w){return l(this,u,!0,w)},b.prototype.readInt16BE=function(u,w){return l(this,u,!1,w)},b.prototype.readInt32LE=function(u,w){return B(this,u,!0,w)},b.prototype.readInt32BE=function(u,w){return B(this,u,!1,w)},b.prototype.readFloatLE=function(u,w){return d(this,u,!0,w)},b.prototype.readFloatBE=function(u,w){return d(this,u,!1,w)},b.prototype.readDoubleLE=function(u,w){return h(this,u,!0,w)},b.prototype.readDoubleBE=function(u,w){return h(this,u,!1,w)},b.prototype.writeUInt8=function(u,w,p){p||(S(u!=null,"missing value"),S(w!=null,"missing offset"),S(w<this.length,"trying to write beyond buffer length"),Nn(u,255)),w>=this.length||(this[w]=u)},b.prototype.writeUInt16LE=function(u,w,p){o(this,u,w,!0,p)},b.prototype.writeUInt16BE=function(u,w,p){o(this,u,w,!1,p)},b.prototype.writeUInt32LE=function(u,w,p){I(this,u,w,!0,p)},b.prototype.writeUInt32BE=function(u,w,p){I(this,u,w,!1,p)},b.prototype.writeInt8=function(u,w,p){p||(S(u!=null,"missing value"),S(w!=null,"missing offset"),S(w<this.length,"Trying to write beyond buffer length"),Wn(u,127,-128)),w>=this.length||(0<=u?this.writeUInt8(u,w,p):this.writeUInt8(255+u+1,w,p))},b.prototype.writeInt16LE=function(u,w,p){E(this,u,w,!0,p)},b.prototype.writeInt16BE=function(u,w,p){E(this,u,w,!1,p)},b.prototype.writeInt32LE=function(u,w,p){H(this,u,w,!0,p)},b.prototype.writeInt32BE=function(u,w,p){H(this,u,w,!1,p)},b.prototype.writeFloatLE=function(u,w,p){V(this,u,w,!0,p)},b.prototype.writeFloatBE=function(u,w,p){V(this,u,w,!1,p)},b.prototype.writeDoubleLE=function(u,w,p){X(this,u,w,!0,p)},b.prototype.writeDoubleBE=function(u,w,p){X(this,u,w,!1,p)},b.prototype.fill=function(u,w,p){if(w=w||0,p=p||this.length,S(typeof(u=typeof(u=u||0)=="string"?u.charCodeAt(0):u)=="number"&&!isNaN(u),"value is not a number"),S(w<=p,"end < start"),p!==w&&this.length!==0){S(0<=w&&w<this.length,"start out of bounds"),S(0<=p&&p<=this.length,"end out of bounds");for(var _=w;_<p;_++)this[_]=u}},b.prototype.inspect=function(){for(var u=[],w=this.length,p=0;p<w;p++)if(u[p]=R(this[p]),p===i.INSPECT_MAX_BYTES){u[p+1]="...";break}return"<Buffer "+u.join(" ")+">"},b.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw Error("Buffer.toArrayBuffer not supported in this browser");if(b._useTypedArrays)return new b(this).buffer;for(var u=new Uint8Array(this.length),w=0,p=u.length;w<p;w+=1)u[w]=this[w];return u.buffer};var C=b.prototype;function G(u,w,p){return typeof u!="number"?p:w<=(u=~~u)?w:0<=u||0<=(u+=w)?u:0}function g(u){return(u=~~Math.ceil(+u))<0?0:u}function P(u){return(Array.isArray||function(w){return Object.prototype.toString.call(w)==="[object Array]"})(u)}function R(u){return u<16?"0"+u.toString(16):u.toString(16)}function rn(u){for(var w=[],p=0;p<u.length;p++){var _=u.charCodeAt(p);if(_<=127)w.push(u.charCodeAt(p));else for(var U=p,j=(55296<=_&&_<=57343&&p++,encodeURIComponent(u.slice(U,p+1)).substr(1).split("%")),K=0;K<j.length;K++)w.push(parseInt(j[K],16))}return w}function xn(u){return A.toByteArray(u)}function Ln(u,w,p,_){for(var U=0;U<_&&!(U+p>=w.length||U>=u.length);U++)w[U+p]=u[U];return U}function mn(u){try{return decodeURIComponent(u)}catch(w){return String.fromCharCode(65533)}}function Nn(u,w){S(typeof u=="number","cannot write a non-number as a number"),S(0<=u,"specified a negative value for writing an unsigned value"),S(u<=w,"value is larger than maximum value for type"),S(Math.floor(u)===u,"value has a fractional component")}function Wn(u,w,p){S(typeof u=="number","cannot write a non-number as a number"),S(u<=w,"value larger than maximum allowed value"),S(p<=u,"value smaller than minimum allowed value"),S(Math.floor(u)===u,"value has a fractional component")}function gn(u,w,p){S(typeof u=="number","cannot write a non-number as a number"),S(u<=w,"value larger than maximum allowed value"),S(p<=u,"value smaller than minimum allowed value")}function S(u,w){if(!u)throw Error(w||"Failed assertion")}b._augment=function(u){return u._isBuffer=!0,u._get=u.get,u._set=u.set,u.get=C.get,u.set=C.set,u.write=C.write,u.toString=C.toString,u.toLocaleString=C.toString,u.toJSON=C.toJSON,u.copy=C.copy,u.slice=C.slice,u.readUInt8=C.readUInt8,u.readUInt16LE=C.readUInt16LE,u.readUInt16BE=C.readUInt16BE,u.readUInt32LE=C.readUInt32LE,u.readUInt32BE=C.readUInt32BE,u.readInt8=C.readInt8,u.readInt16LE=C.readInt16LE,u.readInt16BE=C.readInt16BE,u.readInt32LE=C.readInt32LE,u.readInt32BE=C.readInt32BE,u.readFloatLE=C