tabby/clients/tabby-agent/dist/index.global.js

107 lines
521 KiB
JavaScript
Raw Normal View History

var Tabby=(()=>{var L_=Object.create;var Ao=Object.defineProperty;var k_=Object.getOwnPropertyDescriptor;var F_=Object.getOwnPropertyNames;var P_=Object.getPrototypeOf,U_=Object.prototype.hasOwnProperty;var D_=(e,t,r)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ro=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var ei=(e,t)=>()=>(e&&(t=e(e=0)),t);var He=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ch=(e,t)=>{for(var r in t)Ao(e,r,{get:t[r],enumerable:!0})},Nh=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of F_(t))!U_.call(e,o)&&o!==r&&Ao(e,o,{get:()=>t[o],enumerable:!(n=k_(t,o))||n.enumerable});return e};var Ln=(e,t,r)=>(r=e!=null?L_(P_(e)):{},Nh(t||!e||!e.__esModule?Ao(r,"default",{value:e,enumerable:!0}):r,e)),M_=e=>Nh(Ao({},"__esModule",{value:!0}),e);var at=(e,t,r)=>(D_(e,typeof t!="symbol"?t+"":t,r),r),ku=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(ku(e,t,"read from private field"),r?r.call(e):t.get(e)),it=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ge=(e,t,r,n)=>(ku(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),xa=(e,t,r,n)=>({set _(o){Ge(e,t,o,r)},get _(){return J(e,t,n)}}),tt=(e,t,r)=>(ku(e,t,"access private method"),r);var se,$=ei(()=>{se=globalThis});var q=ei(()=>{});var z=ei(()=>{});var ce={};Ch(ce,{_debugEnd:()=>bp,_debugProcess:()=>wp,_events:()=>Fp,_eventsCount:()=>Pp,_exiting:()=>ep,_fatalExceptions:()=>yp,_getActiveHandles:()=>ip,_getActiveRequests:()=>np,_kill:()=>ap,_linkedBinding:()=>Jh,_maxListeners:()=>kp,_preload_modules:()=>Np,_rawDebug:()=>Kh,_startProfilerIdleNotifier:()=>_p,_stopProfilerIdleNotifier:()=>Ep,_tickCallback:()=>vp,abort:()=>Tp,addListener:()=>Up,allowedNodeEnvironmentFlags:()=>hp,arch:()=>Uh,argv:()=>jh,argv0:()=>Cp,assert:()=>pp,binding:()=>Hh,chdir:()=>Gh,config:()=>tp,cpuUsage:()=>Na,cwd:()=>Vh,debugPort:()=>Bp,default:()=>Zp,dlopen:()=>rp,domain:()=>Qh,emit:()=>qp,emitWarning:()=>Wh,env:()=>Mh,execArgv:()=>$h,execPath:()=>xp,exit:()=>lp,features:()=>dp,hasUncaughtExceptionCaptureCallback:()=>mp,hrtime:()=>Ca,kill:()=>fp,listeners:()=>Hp,memoryUsage:()=>up,moduleLoadList:()=>Xh,nextTick:()=>kh,off:()=>Mp,on:()=>yn,once:()=>Dp,openStdin:()=>cp,pid:()=>Op,platform:()=>Dh,ppid:()=>Ip,prependListener:()=>zp,prependOnceListener:()=>Wp,reallyExit:()=>op,release:()=>Yh,removeAllListeners:()=>$p,removeListener:()=>jp,resourceUsage:()=>sp,setSourceMapsEnabled:()=>Lp,setUncaughtExceptionCaptureCallback:()=>gp,stderr:()=>Ap,stdin:()=>Rp,stdout:()=>Sp,title:()=>Ph,umask:()=>Zh,uptime:()=>To,version:()=>qh,versions:()=>zh});function Uu(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function j_(){!ki||!ti||(ki=!1,ti.length?dn=ti.concat(dn):Ba=-1,dn.length&&Lh())}function Lh(){if(!ki){var e=setTimeout(j_,0);ki=!0;for(var t=dn.length;t;){for(ti=dn,dn=[];++Ba<t;)ti&&ti[Ba].run();Ba=-1,t=dn.length}ti=null,ki=!1,clearTimeout(e)}}function kh(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];dn.push(new Fh(e,t)),dn.length===1&&!ki&&setTimeout(Lh,0)}function Fh(e,t){this.fun=e,this.array=t}function er(){}function Jh(e){Uu("_linkedBinding")}function rp(e){Uu("dlopen")}function np(){return[]}function ip(){return[]}function pp(e,t){if(!e)throw new Error(t||"assertion error")}function mp(){return!1}function To(){return kn.now()/1e3}function Ca(e){var t=Math.floor((Date.now()-kn.now())*.001),r=kn.now()*.001,n=Math.floor(r)+t,o=Math.floor(r%1*1e9);return e&&(n=n-e[0],o=o-e[1],o<0&&(n--,o+=Pu)),[n,o]}function yn(){return Zp}function Hp(e){return[]}var dn,ki,ti,Ba,Ph,Uh,Dh,Mh,jh,$h,qh,zh,Wh,Hh,Zh,Vh,Gh,Yh,Kh,Xh,Qh,ep,tp,op,ap,Na,sp,up,fp,lp,cp,hp,dp,yp,gp,vp,wp,bp,_p,Ep,Sp,Ap,Rp,Tp,Op,Ip,xp,Bp,Cp,Np,Lp,kn,Fu,Pu,
`)>=0)return!1;return!0}function I2(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Kr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Kr.call(Array(t+1),r)}}function Cf(e,t){if(e.length===0)return"";var r=`
2023-06-06 14:25:31 +00:00
`+t.prev+t.base;return r+Kr.call(e,","+r)+`
`+t.prev}function ss(e,t){var r=Bf(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Mn(e,o)?t(e[o],e):""}var a=typeof Rf=="function"?Rf(e):[],i;if(Vi){i={};for(var f=0;f<a.length;f++)i["$"+a[f]]=a[f]}for(var l in e)Mn(e,l)&&(r&&String(Number(l))===l&&l<e.length||Vi&&i["$"+l]instanceof Symbol||(yg.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Rf=="function")for(var c=0;c<a.length;c++)gg.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}});var Uf=He((jP,Sg)=>{"use strict";$();q();z();H();W();var Ff=Ur(),Gi=lr(),x2=Eg(),B2=Ff("%TypeError%"),ls=Ff("%WeakMap%",!0),cs=Ff("%Map%",!0),C2=Gi("WeakMap.prototype.get",!0),N2=Gi("WeakMap.prototype.set",!0),L2=Gi("WeakMap.prototype.has",!0),k2=Gi("Map.prototype.get",!0),F2=Gi("Map.prototype.set",!0),P2=Gi("Map.prototype.has",!0),Pf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},U2=function(e,t){var r=Pf(e,t);return r&&r.value},D2=function(e,t,r){var n=Pf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},M2=function(e,t){return!!Pf(e,t)};Sg.exports=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new B2("Side channel does not contain "+x2(a))},get:function(a){if(ls&&a&&(typeof a=="object"||typeof a=="function")){if(t)return C2(t,a)}else if(cs){if(r)return k2(r,a)}else if(n)return U2(n,a)},has:function(a){if(ls&&a&&(typeof a=="object"||typeof a=="function")){if(t)return L2(t,a)}else if(cs){if(r)return P2(r,a)}else if(n)return M2(n,a);return!1},set:function(a,i){ls&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new ls),N2(t,a,i)):cs?(r||(r=new cs),F2(r,a,i)):(n||(n={key:{},next:null}),D2(n,a,i))}};return o}});var Rg=He((ZP,Ag)=>{"use strict";$();q();z();H();W();var j2=Ur(),$2=ff(),Vo=Uf()(),vn=j2("%TypeError%"),Df={assert:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");if(Vo.assert(e),!Df.has(e,t))throw new vn("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var r=Vo.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var r=Vo.get(e);return!!r&&$2(r,"$"+t)},set:function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new vn("`O` is not an object");if(typeof t!="string")throw new vn("`slot` must be a string");var n=Vo.get(e);n||(n={},Vo.set(e,n)),n["$"+t]=r}};Object.freeze&&Object.freeze(Df);Ag.exports=Df});var Ig=He((JP,Og)=>{"use strict";$();q();z();H();W();var Go=Rg(),q2=SyntaxError,Tg=typeof StopIteration=="object"?StopIteration:null;Og.exports=function(t){if(!Tg)throw new q2("this environment lacks StopIteration");Go.set(t,"[[Done]]",!1);var r={next:function(){var o=Go.get(this,"[[Iterator]]"),a=Go.get(o,"[[Done]]");try{return{done:a,value:a?void 0:o.next()}}catch(i){if(Go.set(o,"[[Done]]",!0),i!==Tg)throw i;return{done:!0,value:void 0}}}};return Go.set(r,"[[Iterator]]",t),r}});var Mf=He((iU,xg)=>{$();q();z();H();W();var z2={}.toString;xg.exports=Array.isArray||function(e){return z2.call(e)=="[object Array]"}});var jf=He((lU,Bg)=>{"use strict";$();q();z();H();W();var W2=String.prototype.valueOf,H2=function(t){try{return W2.call(t),!0}catch{return!1}},Z2=Object.prototype.toString,V2="[object String]",G2=mn()();Bg.exports=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:G2?H2(t):Z2.call(t)===V2}});var qf=He((gU,Lg)=>{"use strict";$();q();z();H();W();var $f=typeof Map=="function"&&Map.prototype?Map:null,Y2=typeof Set=="function"&&Set.prototype?Set:null,hs;$f||(hs=function(t){return!1});var Ng=$f?Map.prototype.has:null,Cg=Y2?Set.prototype.has:null;!hs&&!Ng&&(hs=function(t){return!1});Lg.exports=hs||function(t){if(!t||typeof t!="object")return!1;try{if(Ng.call(t),Cg)try{Cg.call(t)}catch{return!0}return t instanceof $f
2023-06-06 14:25:31 +00:00
(see https://github.com/puleos/object-hash/issues/26)
Use "options.replacer" or "options.ignoreUnknown"
`)},_domwindow:function(){return N("domwindow")},_bigint:function(x){return N("bigint:"+x.toString())},_process:function(){return N("process")},_timer:function(){return N("timer")},_pipe:function(){return N("pipe")},_tcp:function(){return N("tcp")},_udp:function(){return N("udp")},_tty:function(){return N("tty")},_statwatcher:function(){return N("statwatcher")},_securecontext:function(){return N("securecontext")},_connection:function(){return N("connection")},_zlib:function(){return N("zlib")},_context:function(){return N("context")},_nodescript:function(){return N("nodescript")},_httpparser:function(){return N("httpparser")},_dataview:function(){return N("dataview")},_signal:function(){return N("signal")},_fsevent:function(){return N("fsevent")},_tlswrap:function(){return N("tlswrap")}}}function M(){return{buf:"",write:function(D){this.buf+=D},end:function(D){this.buf+=D},read:function(){return this.buf}}}r.writeToStream=function(D,V,F){return F===void 0&&(F=V,V={}),C(V=S(D,V),F).dispatch(D)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){(function(v){"use strict";var _=typeof Uint8Array<"u"?Uint8Array:Array,h="+".charCodeAt(0),w="/".charCodeAt(0),S="0".charCodeAt(0),T="a".charCodeAt(0),C="A".charCodeAt(0),M="-".charCodeAt(0),D="_".charCodeAt(0);function V(F){return F=F.charCodeAt(0),F===h||F===M?62:F===w||F===D?63:F<S?-1:F<S+10?F-S+26+26:F<C+26?F-C:F<T+26?F-T+26:void 0}v.toByteArray=function(F){var N,x;if(0<F.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var G=F.length,G=F.charAt(G-2)==="="?2:F.charAt(G-1)==="="?1:0,Q=new _(3*F.length/4-G),Te=0<G?F.length-4:F.length,K=0;function re(ae){Q[K++]=ae}for(N=0;N<Te;N+=4,0)re((16711680&(x=V(F.charAt(N))<<18|V(F.charAt(N+1))<<12|V(F.charAt(N+2))<<6|V(F.charAt(N+3))))>>16),re((65280&x)>>8),re(255&x);return G==2?re(255&(x=V(F.charAt(N))<<2|V(F.charAt(N+1))>>4)):G==1&&(re((x=V(F.charAt(N))<<10|V(F.charAt(N+1))<<4|V(F.charAt(N+2))>>2)>>8&255),re(255&x)),Q},v.fromByteArray=function(F){var N,x,G,Q,Te=F.length%3,K="";function re(ae){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ae)}for(N=0,G=F.length-Te;N<G;N+=3)x=(F[N]<<16)+(F[N+1]<<8)+F[N+2],K+=re((Q=x)>>18&63)+re(Q>>12&63)+re(Q>>6&63)+re(63&Q);switch(Te){case 1:K=(K+=re((x=F[F.length-1])>>2))+re(x<<4&63)+"==";break;case 2:K=(K=(K+=re((x=(F[F.length-2]<<8)+F[F.length-1])>>10))+re(x>>4&63))+re(x<<2&63)+"="}return K}})(r===void 0?this.base64js={}:r)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("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(e,t,r){(function(n,o,h,i,f,l,c,d,y){var v=e("base64-js"),_=e("ieee754");function h(A,O,Y){if(!(this instanceof h))return new h(A,O,Y);var fe,ge,k,Z,Se=typeof A;if(O==="base64"&&Se=="string")for(A=(Z=A).trim?Z.trim():Z.replace(/^\s+|\s+$/g,"");A.length%4!=0;)A+="=";if(Se=="number")fe=Ne(A);else if(Se=="string")fe=h.byteLength(A,O);else{if(Se!="object")throw new Error("First argument needs to be a number, array or string.");fe=Ne(A.length)}if(h._useTypedArrays?ge=h._augment(new Uint8Array(fe)):((ge=this).length=fe,ge._isBuffer=!0),h._useTypedArrays&&typeof A.byteLength=="number")ge._set(A);else if(ne(Z=A)||h.isBuffer(Z)||Z&&typeof Z=="object"&&typeof Z.length=="number")for(k=0;k<fe;k++)h.isBuffer(A)?ge[k]=A.readUInt8(k):ge[k]=A[k];else if(Se=="string")ge.write(A,0,O);else if(Se=="number"&&!h._useTypedArrays&&!Y)for(k=0;k<fe;k++)ge[k]=0;return ge}function w(A,O,Y,fe){return h._charsWritten=Re(function(ge){for(var k=[],Z=0;Z<ge.length;Z++)k.push(255&ge.charCodeAt(Z));return k}(O),A,Y,fe)}function S(A,O,Y,fe){return h._charsWritten=Re(function(ge){for(var k,Z,Se=[],ke=0;ke<ge.length;ke++)Z=ge.charCodeAt(ke),k=Z>>8,Z=Z%256,Se.push(Z),S
list should be an Array.`),A.length===0)return new h(0);if(A.length===1)return A[0];if(typeof O!="number")for(ge=O=0;ge<A.length;ge++)O+=A[ge].length;for(var Y=new h(O),fe=0,ge=0;ge<A.length;ge++){var k=A[ge];k.copy(Y,fe),fe+=k.length}return Y},h.prototype.write=function(A,O,Y,fe){isFinite(O)?isFinite(Y)||(fe=Y,Y=void 0):(ke=fe,fe=O,O=Y,Y=ke),O=Number(O)||0;var ge,k,Z,Se,ke=this.length-O;switch((!Y||ke<(Y=Number(Y)))&&(Y=ke),fe=String(fe||"utf8").toLowerCase()){case"hex":ge=function(De,$e,Me,ot){Me=Number(Me)||0;var nt=De.length-Me;(!ot||nt<(ot=Number(ot)))&&(ot=nt),xe((nt=$e.length)%2==0,"Invalid hex string"),nt/2<ot&&(ot=nt/2);for(var et=0;et<ot;et++){var bt=parseInt($e.substr(2*et,2),16);xe(!isNaN(bt),"Invalid hex string"),De[Me+et]=bt}return h._charsWritten=2*et,et}(this,A,O,Y);break;case"utf8":case"utf-8":k=this,Z=O,Se=Y,ge=h._charsWritten=Re(ye(A),k,Z,Se);break;case"ascii":case"binary":ge=w(this,A,O,Y);break;case"base64":k=this,Z=O,Se=Y,ge=h._charsWritten=Re(me(A),k,Z,Se);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":ge=S(this,A,O,Y);break;default:throw new Error("Unknown encoding")}return ge},h.prototype.toString=function(A,O,Y){var fe,ge,k,Z,Se=this;if(A=String(A||"utf8").toLowerCase(),O=Number(O)||0,(Y=Y!==void 0?Number(Y):Se.length)===O)return"";switch(A){case"hex":fe=function(ke,De,$e){var Me=ke.length;(!De||De<0)&&(De=0),(!$e||$e<0||Me<$e)&&($e=Me);for(var ot="",nt=De;nt<$e;nt++)ot+=te(ke[nt]);return ot}(Se,O,Y);break;case"utf8":case"utf-8":fe=function(ke,De,$e){var Me="",ot="";$e=Math.min(ke.length,$e);for(var nt=De;nt<$e;nt++)ke[nt]<=127?(Me+=qe(ot)+String.fromCharCode(ke[nt]),ot=""):ot+="%"+ke[nt].toString(16);return Me+qe(ot)}(Se,O,Y);break;case"ascii":case"binary":fe=T(Se,O,Y);break;case"base64":ge=Se,Z=Y,fe=(k=O)===0&&Z===ge.length?v.fromByteArray(ge):v.fromByteArray(ge.slice(k,Z));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":fe=function(ke,De,$e){for(var Me=ke.slice(De,$e),ot="",nt=0;nt<Me.length;nt+=2)ot+=String.fromCharCode(Me[nt]+256*Me[nt+1]);return ot}(Se,O,Y);break;default:throw new Error("Unknown encoding")}return fe},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},h.prototype.copy=function(A,O,Y,fe){if(O=O||0,(fe=fe||fe===0?fe:this.length)!==(Y=Y||0)&&A.length!==0&&this.length!==0){xe(Y<=fe,"sourceEnd < sourceStart"),xe(0<=O&&O<A.length,"targetStart out of bounds"),xe(0<=Y&&Y<this.length,"sourceStart out of bounds"),xe(0<=fe&&fe<=this.length,"sourceEnd out of bounds"),fe>this.length&&(fe=this.length);var ge=(fe=A.length-O<fe-Y?A.length-O+Y:fe)-Y;if(ge<100||!h._useTypedArrays)for(var k=0;k<ge;k++)A[k+O]=this[k+Y];else A._set(this.subarray(Y,Y+ge),O)}},h.prototype.slice=function(A,O){var Y=this.length;if(A=Ce(A,Y,0),O=Ce(O,Y,Y),h._useTypedArrays)return h._augment(this.subarray(A,O));for(var fe=O-A,ge=new h(fe,void 0,!0),k=0;k<fe;k++)ge[k]=this[k+A];return ge},h.prototype.get=function(A){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(A)},h.prototype.set=function(A,O){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(A,O)},h.prototype.readUInt8=function(A,O){if(O||(xe(A!=null,"missing offset"),xe(A<this.length,"Trying to read beyond buffer length")),!(A>=this.length))return this[A]},h.prototype.readUInt16LE=function(A,O){return C(this,A,!0,O)},h.prototype.readUInt16BE=function(A,O){return C(this,A,!1,O)},h.prototype.readUInt32LE=function(A,O){return M(this,A,!0,O)},h.prototype.readUInt32BE=function(A,O){return M(this,A,!1,O)},h.prototype.readInt8=function(A,O){if(O||(xe(A!=null,"missing offset"),xe(A<this.length,"Trying to read beyond buffer length")),!(A>=this.length))return 128&this[A]?-1*(255-this[A]+1):this[A]},h.prototype.readInt16LE=function(A,O){return D(this,A,!0,O)},h.prototype.readInt16BE=function(A,O){return D(this,A,!1,O)},h.prototype.readInt32LE=function(A,O){return V(this,A,!0,O)},h.prototype.readInt32BE=function(A,O){return V(this,A,!1,O)},h.prototype.readFloatLE=function(A,O){return F(this,A,!0,O)},h.prototype
`))}C.fill(0),r.createHash=function(x){return M(x)},r.createHmac=M,r.randomBytes=function(x,G){if(!G||!G.call)return new v(w(x));try{G.call(this,void 0,new v(w(x)))}catch(Q){G(Q)}};var V,F=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],N=function(x){r[x]=function(){D("sorry,",x,"is not implemented yet")}};for(V in F)N(F[V],V)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){var v=e("./helpers");function _(D,V){D[V>>5]|=128<<V%32,D[14+(V+64>>>9<<4)]=V;for(var F=1732584193,N=-271733879,x=-1732584194,G=271733878,Q=0;Q<D.length;Q+=16){var Te=F,K=N,re=x,ae=G,F=w(F,N,x,G,D[Q+0],7,-680876936),G=w(G,F,N,x,D[Q+1],12,-389564586),x=w(x,G,F,N,D[Q+2],17,606105819),N=w(N,x,G,F,D[Q+3],22,-1044525330);F=w(F,N,x,G,D[Q+4],7,-176418897),G=w(G,F,N,x,D[Q+5],12,1200080426),x=w(x,G,F,N,D[Q+6],17,-1473231341),N=w(N,x,G,F,D[Q+7],22,-45705983),F=w(F,N,x,G,D[Q+8],7,1770035416),G=w(G,F,N,x,D[Q+9],12,-1958414417),x=w(x,G,F,N,D[Q+10],17,-42063),N=w(N,x,G,F,D[Q+11],22,-1990404162),F=w(F,N,x,G,D[Q+12],7,1804603682),G=w(G,F,N,x,D[Q+13],12,-40341101),x=w(x,G,F,N,D[Q+14],17,-1502002290),F=S(F,N=w(N,x,G,F,D[Q+15],22,1236535329),x,G,D[Q+1],5,-165796510),G=S(G,F,N,x,D[Q+6],9,-1069501632),x=S(x,G,F,N,D[Q+11],14,643717713),N=S(N,x,G,F,D[Q+0],20,-373897302),F=S(F,N,x,G,D[Q+5],5,-701558691),G=S(G,F,N,x,D[Q+10],9,38016083),x=S(x,G,F,N,D[Q+15],14,-660478335),N=S(N,x,G,F,D[Q+4],20,-405537848),F=S(F,N,x,G,D[Q+9],5,568446438),G=S(G,F,N,x,D[Q+14],9,-1019803690),x=S(x,G,F,N,D[Q+3],14,-187363961),N=S(N,x,G,F,D[Q+8],20,1163531501),F=S(F,N,x,G,D[Q+13],5,-1444681467),G=S(G,F,N,x,D[Q+2],9,-51403784),x=S(x,G,F,N,D[Q+7],14,1735328473),F=T(F,N=S(N,x,G,F,D[Q+12],20,-1926607734),x,G,D[Q+5],4,-378558),G=T(G,F,N,x,D[Q+8],11,-2022574463),x=T(x,G,F,N,D[Q+11],16,1839030562),N=T(N,x,G,F,D[Q+14],23,-35309556),F=T(F,N,x,G,D[Q+1],4,-1530992060),G=T(G,F,N,x,D[Q+4],11,1272893353),x=T(x,G,F,N,D[Q+7],16,-155497632),N=T(N,x,G,F,D[Q+10],23,-1094730640),F=T(F,N,x,G,D[Q+13],4,681279174),G=T(G,F,N,x,D[Q+0],11,-358537222),x=T(x,G,F,N,D[Q+3],16,-722521979),N=T(N,x,G,F,D[Q+6],23,76029189),F=T(F,N,x,G,D[Q+9],4,-640364487),G=T(G,F,N,x,D[Q+12],11,-421815835),x=T(x,G,F,N,D[Q+15],16,530742520),F=C(F,N=T(N,x,G,F,D[Q+2],23,-995338651),x,G,D[Q+0],6,-198630844),G=C(G,F,N,x,D[Q+7],10,1126891415),x=C(x,G,F,N,D[Q+14],15,-1416354905),N=C(N,x,G,F,D[Q+5],21,-57434055),F=C(F,N,x,G,D[Q+12],6,1700485571),G=C(G,F,N,x,D[Q+3],10,-1894986606),x=C(x,G,F,N,D[Q+10],15,-1051523),N=C(N,x,G,F,D[Q+1],21,-2054922799),F=C(F,N,x,G,D[Q+8],6,1873313359),G=C(G,F,N,x,D[Q+15],10,-30611744),x=C(x,G,F,N,D[Q+6],15,-1560198380),N=C(N,x,G,F,D[Q+13],21,1309151649),F=C(F,N,x,G,D[Q+4],6,-145523070),G=C(G,F,N,x,D[Q+11],10,-1120210379),x=C(x,G,F,N,D[Q+2],15,718787259),N=C(N,x,G,F,D[Q+9],21,-343485551),F=M(F,Te),N=M(N,K),x=M(x,re),G=M(G,ae)}return Array(F,N,x,G)}function h(D,V,F,N,x,G){return M((V=M(M(V,D),M(N,G)))<<x|V>>>32-x,F)}function w(D,V,F,N,x,G,Q){return h(V&F|~V&N,D,V,x,G,Q)}function S(D,V,F,N,x,G,Q){return h(V&N|F&~N,D,V,x,G,Q)}function T(D,V,F,N,x,G,Q){return h(V^F^N,D,V,x,G,Q)}function C(D,V,F,N,x,G,Q){return h(F^(V|~N),D,V,x,G,Q)}function M(D,V){var F=(65535&D)+(65535&V);return(D>>16)+(V>>16)+(F>>16)<<16|65535&F}t.exports=function(D){return v.hash(D,_,16)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,r){(function(n,o,a,i,f,l,c,d,y){var v;t.exports=v||function(_){for(var h,w=new Array(_),S=0;S<_;S++)!(3&S)&&(h=4294
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&FE[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};var gd=Symbol("internals");function No(e){return e&&String(e).trim().toLowerCase()}function Ha(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(Ha):String(e)}function PE(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}var UE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hu(e,t,r,n,o){if(Ee.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Ee.isString(t)){if(Ee.isString(n))return t.indexOf(n)!==-1;if(Ee.isRegExp(n))return n.test(t)}}function DE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ME(e,t){let r=Ee.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}var Di=class{constructor(t){t&&this.set(t)}set(t,r,n){let o=this;function a(f,l,c){let d=No(l);if(!d)throw new Error("header name must be a non-empty string");let y=Ee.findKey(o,d);(!y||o[y]===void 0||c===!0||c===void 0&&o[y]!==!1)&&(o[y||l]=Ha(f))}let i=(f,l)=>Ee.forEach(f,(c,d)=>a(c,d,l));return Ee.isPlainObject(t)||t instanceof this.constructor?i(t,r):Ee.isString(t)&&(t=t.trim())&&!UE(t)?i(yd(t),r):t!=null&&a(r,t,n),this}get(t,r){if(t=No(t),t){let n=Ee.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return PE(o);if(Ee.isFunction(r))return r.call(this,o,n);if(Ee.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=No(t),t){let n=Ee.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Hu(this,this[n],n,r)))}return!1}delete(t,r){let n=this,o=!1;function a(i){if(i=No(i),i){let f=Ee.findKey(n,i);f&&(!r||Hu(n,n[f],f,r))&&(delete n[f],o=!0)}}return Ee.isArray(t)?t.forEach(a):a(t),o}clear(t){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let a=r[n];(!t||Hu(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){let r=this,n={};return Ee.forEach(this,(o,a)=>{let i=Ee.findKey(n,a);if(i){r[i]=Ha(o),delete r[a];return}let f=t?DE(a):String(a).trim();f!==a&&delete r[a],r[f]=Ha(o),n[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return Ee.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Ee.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){let n=(this[gd]=this[gd]={accessors:{}}).accessors,o=this.prototype;function a(i){let f=No(i);n[f]||(ME(o,i),n[f]=!0)}return Ee.isArray(t)?t.forEach(a):a(t),this}};Di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ee.freezeMethods(Di.prototype);Ee.freezeMethods(Di);var ar=Di;function Lo(e,t){let r=this||Ui,n=t||r,o=ar.from(n.headers),a=n.data;return Ee.forEach(e,function(f){a=f.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}$();q();z();H();W();function ko(e){return!!(e&&e.__CANCEL__)}$();q();z();H();W();function md(e,t,r){dt.call(this,e??"canceled",dt.ERR_CANCELED,t,r),this.name="CanceledError"}Ee.inherits(md,dt,{__CANCEL__:!0});var Pn=md;$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();function Zu(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new dt("Request failed with status code "+r.status,[dt.ERR_BAD_REQUEST,dt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}$();q();z();H();W();var vd=tr.isStandardBrowserEnv?function(){return{write:function(r,n,o,a,i,f){let l=[];l.push(r+"="+encodeURIComponent(n)),Ee.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),Ee.isString(a)&&l.push("path="+a),Ee.isString(i)&&l.push("domain="+i),f===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){let n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();$();q();z();H();W();$();q();z();H();W();function Vu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}$();q();z();H();W();function Gu(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Fo(e,t){return e&&!Vu(t)?Gu(e,t):t}$();q();z();H();W();var wd=tr.isStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){let f=Ee.isString(i)?o(i):i;return f.protocol===n.protocol&&f.host===n.host}}():function(){return function(){return!0}}();$();q();z();H();W();function Yu(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}$();q();z();H();W();function jE(e,t){e=e||10;let r=new Array(e),n=new Array(e),o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){let c=Date.now(),d=n[a];i||(i=c),r[o]=l,n[o]=c;let y=a,v=0;for(;y!==o;)v+=r[y++],y=y%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;let _=d&&c-d;return _?Math.round(v*1e3/_):void 0}}var bd=jE;function _d(e,t){let r=0,n=bd(50,250);return o=>{let a=o.loaded,i=o.lengthComputable?o.total:void 0,f=a-r,l=n(f),c=a<=i;r=a;let d={loaded:a,total:i,progress:i?a/i:void 0,bytes:f,rate:l||void 0,estimated:l&&i&&c?(i-a)/l:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}var $E=typeof XMLHttpRequest<"u",Ed=$E&&function(e){return new Promise(function(r,n){let o=e.data,a=ar.from(e.headers).normalize(),i=e.responseType,f;function l(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}Ee.isFormData(o)&&(tr.isStandardBrowserEnv||tr.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){let _=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(_+":"+h))}let d=Fo(e.baseURL,e.url);c.open(e.method.toUpperCase(),Co(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function y(){if(!c)return;let
`,qt.homedir=function(){return"/"}),qt}var st=NT();st.endianness;st.hostname;st.loadavg;st.uptime;st.freemem;st.totalmem;st.cpus;st.type;st.release;st.networkInterfaces;st.getNetworkInterfaces;st.arch;st.platform;st.tmpdir;st.tmpDir;st.EOL;st.homedir;var LT=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?"LE":"BE";st.endianness=function(){return LT};st.homedir=function(){return"/home"};st.version=function(){return""};st.arch=function(){return"x64"};st.totalmem=function(){return navigator.deviceMemory!==void 0?navigator.deviceMemory*(1<<30):2*(1<<30)};st.cpus=function(){return Array(navigator.hardwareConcurrency||0).fill({model:"",times:{}})};st.uptime=To;st.constants={};var rq=st.version,nq=st.constants,iq=st.EOL,oq=st.arch,aq=st.cpus,sq=st.endianness,uq=st.freemem,fq=st.getNetworkInterfaces,lq=st.homedir,cq=st.hostname,hq=st.loadavg,pq=st.networkInterfaces,dq=st.platform,yq=st.release,gq=st.tmpDir,mq=st.tmpdir,vq=st.totalmem,wq=st.type;$();q();z();H();W();$();q();z();H();W();$();q();z();H();W();var Yl={},Iv=!1,co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function kT(){if(Iv)return Yl;Iv=!0;var e=Yl={},t,r;function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=n}catch{t=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=o}catch{r=o}})();function a(w){if(t===setTimeout)return setTimeout(w,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(w,0);try{return t(w,0)}catch{try{return t.call(null,w,0)}catch{return t.call(this||co,w,0)}}}function i(w){if(r===clearTimeout)return clearTimeout(w);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{return r(w)}catch{try{return r.call(null,w)}catch{return r.call(this||co,w)}}}var f=[],l=!1,c,d=-1;function y(){!l||!c||(l=!1,c.length?f=c.concat(f):d=-1,f.length&&v())}function v(){if(!l){var w=a(y);l=!0;for(var S=f.length;S;){for(c=f,f=[];++d<S;)c&&c[d].run();d=-1,S=f.length}c=null,l=!1,i(w)}}e.nextTick=function(w){var S=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)S[T-1]=arguments[T];f.push(new _(w,S)),f.length===1&&!l&&a(v)};function _(w,S){(this||co).fun=w,(this||co).array=S}_.prototype.run=function(){(this||co).fun.apply(null,(this||co).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function h(){}return e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.prependListener=h,e.prependOnceListener=h,e.listeners=function(w){return[]},e.binding=function(w){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(w){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},Yl}var lt=kT();lt.platform="browser";lt.addListener;lt.argv;lt.binding;lt.browser;lt.chdir;lt.cwd;lt.emit;lt.env;lt.listeners;lt.nextTick;lt.off;lt.on;lt.once;lt.prependListener;lt.prependOnceListener;lt.removeAllListeners;lt.removeListener;lt.title;lt.umask;lt.version;lt.versions;var Kl={},xv=!1;function FT(){if(xv)return Kl;xv=!0;var e=lt;function t(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,i){for(var f="",l=0,c=-1,d=0,y,v=0;v<=a.length;++v){if(v<a.length)y=a.charCodeAt(v);else{if(y===47)break;y=47}if(y===47){if(!(c===v-1||d===1))if(c!==v-1&&d===2){if(f.length<2||l!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var _=f.lastIndexOf("/");if(_!==f.length-1){_===-1?(f="",l=0):(f=f.slice(0,_),l=f.length-1-f.lastIndexOf("/")),c=v,d=0;continue}}else if(f.length===2||f.length===1){f="",l=0,c=v,d=0;continue}}i&&(f.length>0?f+="/..":f="..",l=2)}else f.length>0?f+="/"+a.slice(c+1,v):f=a.slice(c+1,v),l=v-c-1;c=v,d=0}else y===46&&d!==-1?++d:d=-1}return f}function n(a,i){var f=i.dir||i.root,l=i.base||(i.name||"")+(i.ext||"");return f?f===i.root?f+l:f+a+l:l}var o={resolve:function(){for(var i="",f=!1,l,c=arguments.length-1;c>=-1&&!f;c--){var d;c>=0?d=arguments[c]:(l=
2023-06-06 14:25:31 +00:00
`)>=0&&w++,S+T.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?h[0]+(_===""?"":_+`
`)+" "+v.join(`,
`)+" "+h[1]:h[0]+_+" "+v.join(", ")+" "+h[1]}(l,c,y)):y[0]+c+y[1]}function ec(e){return"["+Error.prototype.toString.call(e)+"]"}function tc(e,t,r,n,o,a){var i,f,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?f=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(f=e.stylize("[Setter]","special")),hw(n,o)||(i="["+o+"]"),f||(e.seen.indexOf(l.value)<0?(f=iu(r)?eu(e,l.value,null):eu(e,l.value,r-1)).indexOf(`
2023-06-06 14:25:31 +00:00
`)>-1&&(f=a?f.split(`
`).map(function(c){return" "+c}).join(`
`).substr(2):`
`+f.split(`
`).map(function(c){return" "+c}).join(`
`)):f=e.stylize("[Circular]","special")),mi(i)){if(a&&o.match(/^\d+$/))return f;(i=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+f}function lw(e){return Array.isArray(e)}function oc(e){return typeof e=="boolean"}function iu(e){return e===null}function cw(e){return typeof e=="number"}function tu(e){return typeof e=="string"}function mi(e){return e===void 0}function la(e){return yo(e)&&ac(e)==="[object RegExp]"}function yo(e){return typeof e=="object"&&e!==null}function ru(e){return yo(e)&&ac(e)==="[object Date]"}function ca(e){return yo(e)&&(ac(e)==="[object Error]"||e instanceof Error)}function Ks(e){return typeof e=="function"}function ac(e){return Object.prototype.toString.call(e)}function rc(e){return e<10?"0"+e.toString(10):e.toString(10)}Oe.debuglog=function(e){if(e=e.toUpperCase(),!Gs[e])if(fw.test(e)){var t=sn.pid;Gs[e]=function(){var r=Oe.format.apply(Oe,arguments);console.error("%s %d: %s",e,t,r)}}else Gs[e]=function(){};return Gs[e]},Oe.inspect=Kn,Kn.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Kn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Oe.types=ct,Oe.isArray=lw,Oe.isBoolean=oc,Oe.isNull=iu,Oe.isNullOrUndefined=function(e){return e==null},Oe.isNumber=cw,Oe.isString=tu,Oe.isSymbol=function(e){return typeof e=="symbol"},Oe.isUndefined=mi,Oe.isRegExp=la,Oe.types.isRegExp=la,Oe.isObject=yo,Oe.isDate=ru,Oe.types.isDate=ru,Oe.isError=ca,Oe.types.isNativeError=ca,Oe.isFunction=Ks,Oe.isPrimitive=function(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0},Oe.isBuffer=Kv;var cO=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hO(){var e=new Date,t=[rc(e.getHours()),rc(e.getMinutes()),rc(e.getSeconds())].join(":");return[e.getDate(),cO[e.getMonth()],t].join(" ")}function hw(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Oe.log=function(){console.log("%s - %s",hO(),Oe.format.apply(Oe,arguments))},Oe.inherits=XT,Oe._extend=function(e,t){if(!t||!yo(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var gi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function pO(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}Oe.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(gi&&e[gi]){var t;if(typeof(t=e[gi])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,gi,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var r,n,o=new Promise(function(f,l){r=f,n=l}),a=[],i=0;i<arguments.length;i++)a.push(arguments[i]);a.push(function(f,l){f?n(f):r(l)});try{e.apply(this||fa,a)}catch(f){n(f)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),gi&&Object.defineProperty(t,gi,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Zv(e))},Oe.promisify.custom=gi,Oe.callbackify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var o=r.pop();if(typeof o!="function")throw new TypeError("The last argument must be of type Function");var a=this||fa,i=function(){return o.apply(a,arguments)};e.apply(this||fa,r).then(function(f){sn.nextTick(i.bind(null,null,f))},function(f){sn.nextTick(pO.bind(null,f,i))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Zv(e)),t};Oe._extend;Oe.callbackify;Oe.debuglog;Oe.deprecate;Oe.format;Oe.inherits;Oe.inspect;Oe.isArray;Oe.isBoolean;Oe.isBuffer;Oe.isDate;Oe.isError;Oe.isF
2023-06-06 14:25:31 +00:00
`),ne=D(x).split(`
`),te=0,ye="";if(G==="strictEqual"&&d(N)==="object"&&d(x)==="object"&&N!==null&&x!==null&&(G="strictEqualObject"),Ne.length===1&&ne.length===1&&Ne[0]!==ne[0]){var me=Ne[0].length+ne[0].length;if(me<=10){if(!(d(N)==="object"&&N!==null||d(x)==="object"&&x!==null||N===0&&x===0))return"".concat(C[G],`
2023-06-06 14:25:31 +00:00
`)+"".concat(Ne[0]," !== ").concat(ne[0],`
`)}else if(G!=="strictEqualObject"&&me<(e.stderr&&e.stderr.isTTY?e.stderr.columns:80)){for(;Ne[0][te]===ne[0][te];)te++;te>2&&(ye=`
`.concat(function(k,Z){if(Z=Math.floor(Z),k.length==0||Z==0)return"";var Se=k.length*Z;for(Z=Math.floor(Math.log(Z)/Math.log(2));Z;)k+=k,Z--;return k+=k.substring(0,Se-k.length)}(" ",te),"^"),te=0)}}for(var Re=Ne[Ne.length-1],qe=ne[ne.length-1];Re===qe&&(te++<2?re=`
`.concat(Re).concat(re):Q=Re,Ne.pop(),ne.pop(),Ne.length!==0&&ne.length!==0);)Re=Ne[Ne.length-1],qe=ne[ne.length-1];var je=Math.max(Ne.length,ne.length);if(je===0){var Je=Ce.split(`
2023-06-06 14:25:31 +00:00
`);if(Je.length>30)for(Je[26]="".concat(h,"...").concat(T);Je.length>27;)Je.pop();return"".concat(C.notIdentical,`
`).concat(Je.join(`
`),`
`)}te>3&&(re=`
`.concat(h,"...").concat(T).concat(re),ae=!0),Q!==""&&(re=`
`.concat(Q).concat(re),Q="");var Ve=0,xe=C[G]+`
`.concat(w,"+ actual").concat(T," ").concat(S,"- expected").concat(T),A=" ".concat(h,"...").concat(T," Lines skipped");for(te=0;te<je;te++){var O=te-K;if(Ne.length<te+1)O>1&&te>2&&(O>4?(Te+=`
`.concat(h,"...").concat(T),ae=!0):O>3&&(Te+=`
`.concat(ne[te-2]),Ve++),Te+=`
`.concat(ne[te-1]),Ve++),K=te,Q+=`
`.concat(S,"-").concat(T," ").concat(ne[te]),Ve++;else if(ne.length<te+1)O>1&&te>2&&(O>4?(Te+=`
`.concat(h,"...").concat(T),ae=!0):O>3&&(Te+=`
`.concat(Ne[te-2]),Ve++),Te+=`
`.concat(Ne[te-1]),Ve++),K=te,Te+=`
`.concat(w,"+").concat(T," ").concat(Ne[te]),Ve++;else{var Y=ne[te],fe=Ne[te],ge=fe!==Y&&(!_(fe,",")||fe.slice(0,-1)!==Y);ge&&_(Y,",")&&Y.slice(0,-1)===fe&&(ge=!1,fe+=","),ge?(O>1&&te>2&&(O>4?(Te+=`
`.concat(h,"...").concat(T),ae=!0):O>3&&(Te+=`
`.concat(Ne[te-2]),Ve++),Te+=`
`.concat(Ne[te-1]),Ve++),K=te,Te+=`
`.concat(w,"+").concat(T," ").concat(fe),Q+=`
`.concat(S,"-").concat(T," ").concat(Y),Ve+=2):(Te+=Q,Q="",O!==1&&te!==0||(Te+=`
`.concat(fe),Ve++))}if(Ve>20&&te<je-2)return"".concat(xe).concat(A,`
`).concat(Te,`
`).concat(h,"...").concat(T).concat(Q,`
`)+"".concat(h,"...").concat(T)}return"".concat(xe).concat(ae?A:"",`
`).concat(Te).concat(Q).concat(re).concat(ye)}var F=function(N){function x(Te){var K;if(function(Je,Ve){if(!(Je instanceof Ve))throw new TypeError("Cannot call a class as a function")}(this,x),d(Te)!=="object"||Te===null)throw new v("options","Object",Te);var re=Te.message,ae=Te.operator,Ce=Te.stackStartFn,Ne=Te.actual,ne=Te.expected,te=Error.stackTraceLimit;if(Error.stackTraceLimit=0,re!=null)K=n(this,c(x).call(this,String(re)));else if(e.stderr&&e.stderr.isTTY&&(e.stderr&&e.stderr.getColorDepth&&e.stderr.getColorDepth()!==1?(h="\x1B[34m",w="\x1B[32m",T="\x1B[39m",S="\x1B[31m"):(h="",w="",T="",S="")),d(Ne)==="object"&&Ne!==null&&d(ne)==="object"&&ne!==null&&"stack"in Ne&&Ne instanceof Error&&"stack"in ne&&ne instanceof Error&&(Ne=M(Ne),ne=M(ne)),ae==="deepStrictEqual"||ae==="strictEqual")K=n(this,c(x).call(this,V(Ne,ne,ae)));else if(ae==="notDeepStrictEqual"||ae==="notStrictEqual"){var ye=C[ae],me=D(Ne).split(`
`);if(ae==="notStrictEqual"&&d(Ne)==="object"&&Ne!==null&&(ye=C.notStrictEqualObject),me.length>30)for(me[26]="".concat(h,"...").concat(T);me.length>27;)me.pop();K=me.length===1?n(this,c(x).call(this,"".concat(ye," ").concat(me[0]))):n(this,c(x).call(this,"".concat(ye,`
2023-06-06 14:25:31 +00:00
`).concat(me.join(`
`),`
`)))}else{var Re=D(Ne),qe="",je=C[ae];ae==="notDeepEqual"||ae==="notEqual"?(Re="".concat(C[ae],`
2023-06-06 14:25:31 +00:00
`).concat(Re)).length>1024&&(Re="".concat(Re.slice(0,1021),"...")):(qe="".concat(D(ne)),Re.length>512&&(Re="".concat(Re.slice(0,509),"...")),qe.length>512&&(qe="".concat(qe.slice(0,509),"...")),ae==="deepEqual"||ae==="equal"?Re="".concat(je,`
2023-06-06 14:25:31 +00:00
`).concat(Re,`
should equal
`):qe=" ".concat(ae," ").concat(qe)),K=n(this,c(x).call(this,"".concat(Re).concat(qe)))}return Error.stackTraceLimit=te,K.generatedMessage=!re,Object.defineProperty(o(K),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),K.code="ERR_ASSERTION",K.actual=Ne,K.expected=ne,K.operator=ae,Error.captureStackTrace&&Error.captureStackTrace(o(K),Ce),K.stack,K.name="AssertionError",n(K)}var G,Q;return function(Te,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");Te.prototype=Object.create(K&&K.prototype,{constructor:{value:Te,writable:!0,configurable:!0}}),K&&l(Te,K)}(x,N),G=x,(Q=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:y.custom,value:function(Te,K){return y(this,function(re){for(var ae=1;ae<arguments.length;ae++){var Ce=arguments[ae]!=null?arguments[ae]:{},Ne=Object.keys(Ce);typeof Object.getOwnPropertySymbols=="function"&&(Ne=Ne.concat(Object.getOwnPropertySymbols(Ce).filter(function(ne){return Object.getOwnPropertyDescriptor(Ce,ne).enumerable}))),Ne.forEach(function(ne){t(re,ne,Ce[ne])})}return re}({},K,{customInspect:!1,depth:0}))}}])&&r(G.prototype,Q),x}(a(Error));return b1=F}function E1(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var o=[],a=!0,i=!1,f=void 0;try{for(var l,c=r[Symbol.iterator]();!(a=(l=c.next()).done)&&(o.push(l.value),!n||o.length!==n);a=!0);}catch(d){i=!0,f=d}finally{try{a||c.return==null||c.return()}finally{if(i)throw f}}return o}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Zr(e){return(Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var NI=/a/g.flags!==void 0,wu=function(e){var t=[];return e.forEach(function(r){return t.push(r)}),t},S1=function(e){var t=[];return e.forEach(function(r,n){return t.push([n,r])}),t},A1=Object.is?Object.is:V1,mu=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},Gc=Number.isNaN?Number.isNaN:BI;function Jc(e){return e.call.bind(e)}var va=Jc(Object.prototype.hasOwnProperty),vu=Jc(Object.prototype.propertyIsEnumerable),R1=Jc(Object.prototype.toString),ur=Oe.types,LI=ur.isAnyArrayBuffer,kI=ur.isArrayBufferView,T1=ur.isDate,pu=ur.isMap,O1=ur.isRegExp,du=ur.isSet,FI=ur.isNativeError,PI=ur.isBoxedPrimitive,I1=ur.isNumberObject,x1=ur.isStringObject,B1=ur.isBooleanObject,C1=ur.isBigIntObject,UI=ur.isSymbolObject,DI=ur.isFloat32Array,MI=ur.isFloat64Array;function jI(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function yu(e){return Object.keys(e).filter(jI).concat(mu(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function N1(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0}function Cr(e,t,r,n){if(e===t)return e!==0||!r||A1(e,t);if(r){if(Zr(e)!=="object")return typeof e=="number"&&Gc(e)&&Gc(t);if(Zr(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||Zr(e)!=="object")return(t===null||Zr(t)!=="object")&&e==t;if(t===null||Zr(t)!=="object")return!1}var o,a,i,f,l=R1(e);if(l!==R1(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var c=yu(e),d=yu(t);return c.length===d.length&&ma(e,t,r,n,1,c)}if(l==="[object Object]"&&(!pu(e)&&pu(t)||!du(e)&&du(t)))return!1;if(T1(e)){if(!T1(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(O1(e)){if(!O1(t)||(i=e,f=t,!(NI?i.source===f.source&&i.flags===f.flags:RegExp.prototype.toString.call(i)===RegExp.prototype.toString.call(f))))return!1}else if(FI(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(kI(e)){if(r||!DI(e)&&!MI(e)){if(!function(_,h){return _.byteLength==
`)+'Actual message: "'.concat(te&&te.message,'"'),stackStartFn:ne})}throw te}}function Ne(){for(var ne=arguments.length,te=new Array(ne),ye=0;ye<ne;ye++)te[ye]=arguments[ye];F.apply(void 0,[Ne,te.length].concat(te))}return M.throws=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];ae.apply(void 0,[ne,Te(te)].concat(me))},M.rejects=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];return re(te).then(function(qe){return ae.apply(void 0,[ne,qe].concat(me))})},M.doesNotThrow=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];Ce.apply(void 0,[ne,Te(te)].concat(me))},M.doesNotReject=function ne(te){for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),Re=1;Re<ye;Re++)me[Re-1]=arguments[Re];return re(te).then(function(qe){return Ce.apply(void 0,[ne,qe].concat(me))})},M.ifError=function ne(te){if(te!=null){var ye="ifError got unwanted exception: ";t(te)==="object"&&typeof te.message=="string"?te.message.length===0&&te.constructor?ye+=te.constructor.name:ye+=te.message:ye+=y(te);var me=new d({actual:te,expected:null,operator:"ifError",message:ye,stackStartFn:ne}),Re=te.stack;if(typeof Re=="string"){var qe=Re.split(`
`);qe.shift();for(var je=me.stack.split(`
`),Je=0;Je<qe.length;Je++){var Ve=je.indexOf(qe[Je]);if(Ve!==-1){je=je.slice(0,Ve);break}}me.stack="".concat(je.join(`
2023-06-06 14:25:31 +00:00
`),`
`).concat(qe.join(`
`))}throw me}},M.strict=w(Ne,M,{equal:M.strictEqual,deepEqual:M.deepStrictEqual,notEqual:M.notStrictEqual,notDeepEqual:M.notDeepStrictEqual}),M.strict.strict=M.strict,Wc}var Qe=Yc();Qe.AssertionError;Qe.deepEqual;Qe.deepStrictEqual;Qe.doesNotReject;Qe.doesNotThrow;Qe.equal;Qe.fail;Qe.ifError;Qe.notDeepEqual;Qe.notDeepStrictEqual;Qe.notEqual;Qe.notStrictEqual;Qe.ok;Qe.rejects;Qe.strict;Qe.strictEqual;Qe.throws;Qe.AssertionError;Qe.deepEqual;Qe.deepStrictEqual;Qe.doesNotReject;Qe.doesNotThrow;Qe.equal;Qe.fail;Qe.ifError;Qe.notDeepEqual;Qe.notDeepStrictEqual;Qe.notEqual;Qe.notStrictEqual;Qe.ok;Qe.rejects;Qe.strict;Qe.strictEqual;Qe.throws;var YW=Qe.AssertionError,KW=Qe.deepEqual,XW=Qe.deepStrictEqual,JW=Qe.doesNotReject,QW=Qe.doesNotThrow,eH=Qe.equal,tH=Qe.fail,rH=Qe.ifError,nH=Qe.notDeepEqual,iH=Qe.notDeepStrictEqual,oH=Qe.notEqual,aH=Qe.notStrictEqual,sH=Qe.ok,uH=Qe.rejects,fH=Qe.strict,lH=Qe.strictEqual,cH=Qe.throws;var Qc={},J1=!1;function WI(){if(J1)return Qc;J1=!0;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return Qc=e,Qc}var or={},Q1=!1;function _u(){if(Q1)return or;Q1=!0;var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function t(o,a){return Object.prototype.hasOwnProperty.call(o,a)}or.assign=function(o){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var i=a.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(var f in i)t(i,f)&&(o[f]=i[f])}}return o},or.shrinkBuf=function(o,a){return o.length===a?o:o.subarray?o.subarray(0,a):(o.length=a,o)};var r={arraySet:function(o,a,i,f,l){if(a.subarray&&o.subarray){o.set(a.subarray(i,i+f),l);return}for(var c=0;c<f;c++)o[l+c]=a[i+c]},flattenChunks:function(o){var a,i,f,l,c,d;for(f=0,a=0,i=o.length;a<i;a++)f+=o[a].length;for(d=new Uint8Array(f),l=0,a=0,i=o.length;a<i;a++)c=o[a],d.set(c,l),l+=c.length;return d}},n={arraySet:function(o,a,i,f,l){for(var c=0;c<f;c++)o[l+c]=a[i+c]},flattenChunks:function(o){return[].concat.apply([],o)}};return or.setTyped=function(o){o?(or.Buf8=Uint8Array,or.Buf16=Uint16Array,or.Buf32=Int32Array,or.assign(or,r)):(or.Buf8=Array,or.Buf16=Array,or.Buf32=Array,or.assign(or,n))},or.setTyped(e),or}var Ii={},eb=!1;function HI(){if(eb)return Ii;eb=!0;var e=_u(),t=4,r=0,n=1,o=2;function a(m){for(var j=m.length;--j>=0;)m[j]=0}var i=0,f=1,l=2,c=3,d=258,y=29,v=256,_=v+1+y,h=30,w=19,S=2*_+1,T=15,C=16,M=7,D=256,V=16,F=17,N=18,x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],G=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=512,re=new Array((_+2)*2);a(re);var ae=new Array(h*2);a(ae);var Ce=new Array(K);a(Ce);var Ne=new Array(d-c+1);a(Ne);var ne=new Array(y);a(ne);var te=new Array(h);a(te);function ye(m,j,le,Be,ee){this.static_tree=m,this.extra_bits=j,this.extra_base=le,this.elems=Be,this.max_length=ee,this.has_stree=m&&m.length}var me,Re,qe;function je(m,j){this.dyn_tree=m,this.max_code=0,this.stat_desc=j}function Je(m){return m<256?Ce[m]:Ce[256+(m>>>7)]}function Ve(m,j){m.pending_buf[m.pending++]=j&255,m.pending_buf[m.pending++]=j>>>8&255}function xe(m,j,le){m.bi_valid>C-le?(m.bi_buf|=j<<m.bi_valid&65535,Ve(m,m.bi_buf),m.bi_buf=j>>C-m.bi_valid,m.bi_valid+=le-C):(m.bi_buf|=j<<m.bi_valid&65535,m.bi_valid+=le)}function A(m,j,le){xe(m,le[j*2],le[j*2+1])}function O(m,j){var le=0;do le|=m&1,m>>>=1,le<<=1;while(--j>0);return le>>>1}function Y(m){m.bi_valid===16?(Ve(m,m.bi_buf),m.bi_buf=0,m.bi_valid=0):m.bi_valid>=8&&(m.pending_buf[m.pending++]=m.bi_buf&255,m.bi_buf>>=8,m.bi_valid-=8)}function fe(m,j){var le=j.dyn_tree,Be=j.max_code,ee=j.stat_desc.static_tree,ue=j.stat_desc.has_stree,I=j.stat_desc.extra_bits,Fe=j.stat_desc.extra_base,rt=j.stat_desc.max_length,g,we,_e,U,ie,ve,Ye=0;for(U=0;U<=T;U++)m.bl_count[U]=0;for(le[m.heap[m.heap_max]*2+1]=0,g=m.heap_max+1;g<S;g++)we=m.heap[g],U=le[le[we*2+1]*2+1]+1,U>rt&&(U=rt,Ye++)
`," "]),lh=["'"].concat(cx),bb=["%","/","?",";","#"].concat(lh),_b=["/","?","#"],Eb=/^[+a-z0-9A-Z_-]{0,63}$/,hx=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,px={javascript:!0,"javascript:":!0},sh={javascript:!0,"javascript:":!0},wo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},uh=ln;function _a(e,t,r){if(e&&cn.isObject(e)&&e instanceof Lr)return e;var n=new Lr;return n.parse(e,t,r),n}Lr.prototype.parse=function(e,t,r){if(!cn.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=n!==-1&&n<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var i=e=a.join(o);if(i=i.trim(),!r&&e.split("#").length===1){var f=lx.exec(i);if(f)return this.path=i,this.href=i,this.pathname=f[1],f[2]?(this.search=f[2],this.query=t?uh.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=ux.exec(i);if(l){var c=(l=l[0]).toLowerCase();this.protocol=c,i=i.substr(l.length)}if(r||l||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var d=i.substr(0,2)==="//";!d||l&&sh[l]||(i=i.substr(2),this.slashes=!0)}if(!sh[l]&&(d||l&&!wo[l])){for(var y,v,_=-1,h=0;h<_b.length;h++)(w=i.indexOf(_b[h]))!==-1&&(_===-1||w<_)&&(_=w);for((v=_===-1?i.lastIndexOf("@"):i.lastIndexOf("@",_))!==-1&&(y=i.slice(0,v),i=i.slice(v+1),this.auth=decodeURIComponent(y)),_=-1,h=0;h<bb.length;h++){var w;(w=i.indexOf(bb[h]))!==-1&&(_===-1||w<_)&&(_=w)}_===-1&&(_=i.length),this.host=i.slice(0,_),i=i.slice(_),this.parseHost(),this.hostname=this.hostname||"";var S=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!S)for(var T=this.hostname.split(/\./),C=(h=0,T.length);h<C;h++){var M=T[h];if(M&&!M.match(Eb)){for(var D="",V=0,F=M.length;V<F;V++)M.charCodeAt(V)>127?D+="x":D+=M[V];if(!D.match(Eb)){var N=T.slice(0,h),x=T.slice(h+1),G=M.match(hx);G&&(N.push(G[1]),x.unshift(G[2])),x.length&&(i="/"+x.join(".")+i),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),S||(this.hostname=sx.toASCII(this.hostname));var Q=this.port?":"+this.port:"",Te=this.hostname||"";this.host=Te+Q,this.href+=this.host,S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),i[0]!=="/"&&(i="/"+i))}if(!px[c])for(h=0,C=lh.length;h<C;h++){var K=lh[h];if(i.indexOf(K)!==-1){var re=encodeURIComponent(K);re===K&&(re=escape(K)),i=i.split(K).join(re)}}var ae=i.indexOf("#");ae!==-1&&(this.hash=i.substr(ae),i=i.slice(0,ae));var Ce=i.indexOf("?");if(Ce!==-1?(this.search=i.substr(Ce),this.query=i.substr(Ce+1),t&&(this.query=uh.parse(this.query)),i=i.slice(0,Ce)):t&&(this.search="",this.query={}),i&&(this.pathname=i),wo[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Q=this.pathname||"";var Ne=this.search||"";this.path=Q+Ne}return this.href=this.format(),this},Lr.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&cn.isObject(this.query)&&Object.keys(this.query).length&&(a=uh.stringify(this.query));var i=this.search||a&&"?"+a||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||wo[t])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),n&&n.charAt(0)!=="#"&&(n="#"+n),i&&i.charAt(0)!=="?"&&(i="?"+i),t+o+(r=r.replace(/[?#]/g,function(f){return encodeURIComponent(f)}))+(i=i.replace("#","%23"))+n},Lr.prototype.resolve=function(e){return this.resolveObject(_a(e,!1,!0)).format()},Lr.prototype.resolveObject=function(e){if(cn.isString(e)){var t=new Lr;t.parse(e,!1,!0),e=t}for(var r=new Lr,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var i=Object.keys(e),f=0;f<i.length;f++){var l=i[f];l!=="protocol"&&(r[l]=e[l])}return wo[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),
`)&&(t=t.replace(Sx,"%0A")),t.includes("\r")&&(t=t.replace(Ax,"%0D")),t.includes(" ")&&(t=t.replace(Rx,"%09")),n.pathname=t,n}var Bx=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;St.URL=typeof URL<"u"?URL:null;St.pathToFileURL=zx;St.fileURLToPath=ph;var pV=St.Url,dV=St.format,yV=St.resolve,gV=St.resolveObject,mV=St.parse,vV=St.URL,Cx=92,Nx=47,Lx=97,kx=122,hh=Bx==="win32",Fx=/\//g,Px=/%/g,Ux=/\\/g,Dx=/\n/g,Mx=/\r/g,jx=/\t/g;function ph(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return hh?$x(e):qx(e)}function $x(e){let t=e.hostname,r=e.pathname;for(let n=0;n<r.length;n++)if(r[n]==="%"){let o=r.codePointAt(n+2)||32;if(r[n+1]==="2"&&o===102||r[n+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(Fx,"\\"),r=decodeURIComponent(r),t!=="")return`\\\\${t}${r}`;{let n=r.codePointAt(1)|32,o=r[2];if(n<Lx||n>kx||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function qx(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let r=0;r<t.length;r++)if(t[r]==="%"){let n=t.codePointAt(r+2)||32;if(t[r+1]==="2"&&n===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function zx(e){let t=Ot.resolve(e),r=e.charCodeAt(e.length-1);(r===Nx||hh&&r===Cx)&&t[t.length-1]!==Ot.sep&&(t+="/");let n=new URL("file://");return t.includes("%")&&(t=t.replace(Px,"%25")),!hh&&t.includes("\\")&&(t=t.replace(Ux,"%5C")),t.includes(`
`)&&(t=t.replace(Dx,"%0A")),t.includes("\r")&&(t=t.replace(Mx,"%0D")),t.includes(" ")&&(t=t.replace(jx,"%09")),n.pathname=t,n}Fa();var Ea={},Rb=!1;function Aa(){return Rb||(Rb=!0,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.constants=void 0,Ea.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}),Ea}var Eu={},Tb=!1;function Wx(){return Tb||(Tb=!0,typeof BigInt=="function"?Eu.default=BigInt:Eu.default=function(){throw new Error("BigInt is not supported in this environment.")}),Eu}var bo={},Ob=!1;function dh(){if(Ob)return bo;Ob=!0,Object.defineProperty(bo,"__esModule",{value:!0}),bo.Stats=void 0;var e=Aa(),t=Wx(),r=e.constants.S_IFMT,n=e.constants.S_IFDIR,o=e.constants.S_IFREG,a=e.constants.S_IFBLK,i=e.constants.S_IFCHR,f=e.constants.S_IFLNK,l=e.constants.S_IFIFO,c=e.constants.S_IFSOCK,d=function(){function y(){}return y.build=function(v,_){_===void 0&&(_=!1);var h=new y,w=v.uid,S=v.gid,T=v.atime,C=v.mtime,M=v.ctime,D=_?t.default:function(F){return F};h.uid=D(w),h.gid=D(S),h.rdev=D(0),h.blksize=D(4096),h.ino=D(v.ino),h.size=D(v.getSize()),h.blocks=D(1),h.atime=T,h.mtime=C,h.ctime=M,h.birthtime=M,h.atimeMs=D(T.getTime()),h.mtimeMs=D(C.getTime());var V=D(M.getTime());return h.ctimeMs=V,h.birthtimeMs=V,h.dev=D(0),h.mode=D(v.mode),h.nlink=D(v.nlink),h},y.prototype._checkModeProperty=function(v){return(Number(this.mode)&r)===v},y.prototype.isDirectory=function(){return this._checkModeProperty(n)},y.prototype.isFile=function(){return this._checkModeProperty(o)},y.prototype.isBlockDevice=function(){return this._checkModeProperty(a)},y.prototype.isCharacterDevice=function(){return this._checkModeProperty(i)},y.prototype.isSymbolicLink=function(){return this._checkModeProperty(f)},y.prototype.isFIFO=function(){return this._checkModeProperty(l)},y.prototype.isSocket=function(){return this._checkModeProperty(c)},y}();return bo.Stats=d,bo.default=d,bo}var Gr={},Ib=!1;function yh(){if(Ib)return Gr;Ib=!0;var e=Gr&&Gr.__spreadArray||function(a,i,f){if(f||arguments.length===2)for(var l=0,c=i.length,d;l<c;l++)(d||!(l in i))&&(d||(d=Array.prototype.slice.call(i,0,l)),d[l]=i[l]);return a.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.bufferFrom=Gr.bufferAllocUnsafe=Gr.Buffer=void 0;var t=Br;Object.defineProperty(Gr,"Buffer",{enumerable:!0,get:function(){return t.Buffer}});function r(a){for(var i=[],f=1;f<arguments.length;f++)i[f-1]=arguments[f];return new(t.Buffer.bind.apply(t.Buffer,e([void 0,a],i,!1)))}var n=t.Buffer.allocUnsafe||r;Gr.bufferAllocUnsafe=n;var o=t.Buffer.from||r;return Gr.bufferFrom=o,Gr}var zt={},xb=!1,Hx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:se;function qb(){if(xb)return zt;xb=!0;var e=zt&&zt.__extends||function(){var h=function(w,S){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&(T[M]=C[M])},h(w,S)};return function(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");h(w,S);function T(){this.constructor=w}w.prototype=S===null?Object.create(S):(T.prototype=S.prototype,new T)}}();Object.defineProperty(zt,"__esModule",{value:!0}),zt.E=zt.AssertionError=zt.message=zt.RangeError=zt.TypeError=zt.Error=void 0;var t=Qe,r=Oe,n=typeof Symbol>"u"?"_kCode":Symbol("code"),o={};function a(h){return function(w){e(S,w);function S(T){for(var C=[],M=1;M<arguments.length;M++)C[M-1]=arguments
`),r]}catch(l){if(l.code!=="ENOENT")throw l}for(let l of f)if(l)try{let c=await this.fsStat(l);c.isFile()?i.push({name:l,size:c.size,time:c.ctime.getTime()}):this.emit("warning",new Error(`File '${l}' contained in history is not a regular file`))}catch(c){if(c.code!=="ENOENT")throw c}if(i.sort((l,c)=>l.time-c.time),o)for(;i.length>o;){let l=i.shift();await this.unlink(l.name),this.emit("removed",l.name,!0)}if(a)for(;i.reduce((l,c)=>l+c.size,0)>a;){let l=i.shift();await this.unlink(l.name),this.emit("removed",l.name,!1)}await t_(n,i.map(l=>l.name).join(`
2023-06-06 14:25:31 +00:00
`)+`
`,"utf-8"),this.emit("history")}async immutate(r){let{size:n}=this.options,o=this.now();for(let a=1;a<1e3;++a){let i=0,f;this.filename=this.options.path+this.generator(o,a);try{f=await this.fsStat(this.filename)}catch(l){if(l.code!=="ENOENT")throw l}if(f){if(i=f.size,!f.isFile())throw new Error(`Can't write on: '${this.filename}' (it is not a file)`);if(n&&i>=n)continue}if(r)return this.last=this.filename,this.reopen(i);await this.rotated(this.last),this.last=this.filename;return}throw new Tu}async unlink(r){try{await this.fsUnlink(r)}catch(n){if(n.code!=="ENOENT")throw n;this.emit("warning",n)}}};function i_(e){return(t,r,n)=>{let o=parseInt(n,10);if(t!=="number"||o!==n||o<=0)throw new Error(`'${e}' option must be a positive integer number`)}}function wh(e,t){return(r,n,o)=>{if(r!=="string")throw new Error(`Don't know how to handle 'options.${e}' type: ${r}`);n[e]=t(o)}}function s_(e,t,r){let n={};if(n.num=parseInt(e,10),isNaN(n.num))throw new Error(`Unknown 'options.${t}' format: ${e}`);if(n.num<=0)throw new Error(`A positive integer number is expected for 'options.${t}'`);if(n.unit=e.replace(/^[ 0]*/g,"").substr((n.num+"").length,1),n.unit.length===0)throw new Error(`Missing unit for 'options.${t}'`);if(!r[n.unit])throw new Error(`Unknown 'options.${t}' unit: ${n.unit}`);return n}var aB={M:!0,d:!0,h:!0,m:!0,s:!0};function bh(e,t,r){if(parseInt(r/e.num,10)*e.num!==r)throw new Error(`An integer divider of ${r} is expected as ${t} for 'options.interval'`)}function sB(e){let t=s_(e,"interval",aB);switch(t.unit){case"h":bh(t,"hours",24);break;case"m":bh(t,"minutes",60);break;case"s":bh(t,"seconds",60);break}return t}var uB={B:!0,G:!0,K:!0,M:!0};function o_(e){let t=s_(e,"size",uB);return t.unit==="K"?t.num*1024:t.unit==="M"?t.num*1048576:t.unit==="G"?t.num*1073741824:t.num}var a_={encoding:(e,t,r)=>new n1(r),immutable:()=>{},initialRotation:()=>{},interval:wh("interval",sB),intervalBoundary:()=>{},maxFiles:i_("maxFiles"),maxSize:wh("maxSize",o_),mode:()=>{},omitExtension:()=>{},rotate:i_("rotate"),size:wh("size",o_),teeToStdout:()=>{},compress:(e,t,r)=>{if(!r)throw new Error("A value for 'options.compress' must be specified");if(e==="boolean")return t.compress=(n,o)=>`cat ${n} | gzip -c9 > ${o}`;if(e!=="function"){if(e!=="string")throw new Error(`Don't know how to handle 'options.compress' type: ${e}`);if(r!=="gzip")throw new Error(`Don't know how to handle compression method: ${r}`)}},history:e=>{if(e!=="string")throw new Error(`Don't know how to handle 'options.history' type: ${e}`)},path:(e,t,r)=>{if(e!=="string")throw new Error(`Don't know how to handle 'options.path' type: ${e}`);r[r.length-1]!==ua&&(t.path=r+ua)}};function fB(e){let t={};for(let r in e){let n=e[r],o=typeof n;if(!(r in a_))throw new Error(`Unknown option: ${r}`);t[r]=e[r],a_[r](o,t,n)}return t.path||(t.path=""),t.interval||(delete t.immutable,delete t.initialRotation,delete t.intervalBoundary),t.rotate&&(delete t.history,delete t.immutable,delete t.maxFiles,delete t.maxSize,delete t.intervalBoundary),t.immutable&&delete t.compress,t.intervalBoundary||delete t.initialRotation,t}function lB(e,t,r){return n=>n?`${e}.${n}${t&&!r?".gz":""}`:e}function cB(e,t,r){let n=o=>(o>9?"":"0")+o;return(o,a)=>{if(!o)return e;let i=o.getFullYear()+""+n(o.getMonth()+1),f=n(o.getDate()),l=n(o.getHours()),c=n(o.getMinutes());return i+f+"-"+l+c+"-"+n(a)+"-"+e+(t&&!r?".gz":"")}}function u_(e,t){if(typeof t>"u")t={};else if(typeof t!="object")throw new Error(`The "options" argument must be of type object. Received type ${typeof t}`);let r=fB(t),{compress:n,omitExtension:o}=r,a;if(typeof e=="string")a=t.rotate?lB(e,n!==void 0,o):cB(e,n!==void 0,o);else if(typeof e=="function")a=e;else throw new Error(`The "filename" argument must be one of type string or function. Received type ${typeof e}`);return new _h(a,r)}var Ah=Ln(g_()),m_=v_.isBrowser?null:u_("tabby-agent.log",{path:Ot.join(st.homedir(),".tabby","agent-logs"),size:"10M",interval:"1d"}),Qn=m_?(0,Ah.default)(m_):(0,Ah.default)(),xu=[Qn];Qn.onChild=e=>{xu.push(e)};var Bu=class{constructor(){this.logger=Qn.child({componen
/*! Bundled license information:
@jspm/core/nodelibs/browser/buffer.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
2023-05-29 02:09:44 +00:00
ieee754/index.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
buffer/index.js:
(*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*)
2023-06-06 14:25:31 +00:00
@jspm/core/nodelibs/browser/chunk-44e51b61.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
@jspm/core/nodelibs/browser/assert.js:
(*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*)
*/
//# sourceMappingURL=index.global.js.map