@unhook/cli
Version:
A CLI tool for testing webhooks locally with team collaboration features.
23 lines • 3.73 MB
JavaScript
#!/usr/bin/env node
import {createRequire}from'module';import {fileURLToPath}from'url';import f2,{type,homedir,cpus,uptime,totalmem,freemem,arch,platform,release,hostname}from'os';import*as At from'path';import At__default,{dirname,join,posix,sep,resolve,relative}from'path';import nb,{writeFile,mkdir,rename,appendFile,stat,realpath,lstat,readdir,open}from'fs/promises';import {render,Box,Text,useInput,useStdout,useApp,measureElement,useFocusManager,useFocus}from'ink';import*as Qr from'react';import Qr__default,{memo,useRef,useEffect,createContext,useState,useMemo,useCallback,useContext,Fragment as Fragment$1}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createEnv}from'@t3-oss/env-core';import*as r8 from'@t3-oss/env-core/presets-zod';import {z}from'zod';import {ErrorBoundary}from'react-error-boundary';import KL from'figlet';import gh from'crypto';import {createStore,useStore}from'zustand';import g2 from'clipboardy';import {readFileSync,stat as stat$1,promises,unwatchFile,watchFile,watch,createReadStream}from'fs';import {createInterface}from'readline';import iR from'open';import {createServer}from'http';import ob from'keytar';import oW,{createServer as createServer$1}from'net';import S2,{env}from'process';import {EventEmitter}from'events';import {Readable}from'stream';import tW from'js-yaml';import {request}from'undici';import wW from'cli-spinners';import cl from'chalk';import {highlight}from'cli-highlight';import mS from'figures';import {differenceInMinutes,format,formatDistanceToNow}from'date-fns';import J3 from'yargs';import {hideBin}from'yargs/helpers';var RN=Object.create;var FE=Object.defineProperty;var AN=Object.getOwnPropertyDescriptor;var NN=Object.getOwnPropertyNames;var DN=Object.getPrototypeOf,LN=Object.prototype.hasOwnProperty;var jc=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var MN=(t,e)=>()=>(t&&(e=t(t=0)),e);var De=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ny=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of NN(e))!LN.call(t,o)&&o!==r&&FE(t,o,{get:()=>e[o],enumerable:!(n=AN(e,o))||n.enumerable});return t},Dy=(t,e,r)=>(Ny(t,e,"default"),r),xp=(t,e,r)=>(r=t!=null?RN(DN(t)):{},Ny(FE(r,"default",{value:t,enumerable:true}),t));var jN,BN,qN,v=MN(()=>{jN=createRequire(import.meta.url),BN=fileURLToPath(import.meta.url),qN=fileURLToPath(new URL(".",import.meta.url));globalThis.require=jN;globalThis.__filename=BN;globalThis.__dirname=qN;});var BE=De((Bc,Ly)=>{v();(function(t,e){typeof Bc=="object"&&typeof Ly=="object"?Ly.exports=e():typeof define=="function"&&define.amd?define([],e):typeof Bc=="object"?Bc.util=e():t.util=e();})(Bc,()=>(()=>{var t={42:r=>{var n=["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","module","Module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];r.exports.BuiltinModule={exists:function(o){return o.startsWith("internal/")||n.indexOf(o)!==-1}};},72:r=>{function n(){var N,j,J=typeof Symbol=="function"?Symbol:{},be=J.iterator||"@@iterator",_e=J.toStringTag||"@@toStringTag";function et(mr,ro,uo,Ri){var Ai=ro&&ro.prototype instanceof ze?ro:ze,co=Object.create(Ai.prototype);return o(co,"_invoke",function(Cr,Ls,Ho){var Dn,xr,Ln,Ni=0,Zu=Ho||[],Wo=false,Ao={p:0,n:0,v:N,a:$n,f:$n.bind(N,4),d:function(zn,Vn){return Dn=zn,xr=0,Ln=N,Ao.n=Vn,Le}};function $n(zn,Vn){for(xr=zn,Ln=Vn,j=0;!Wo&&Ni&&!$o&&j<Zu.length;j++){var $o,Kn=Zu[j],Pl=Ao.p,Sa=Kn[2];zn>3?($o=Sa===Vn)&&(Ln=Kn[(xr=Kn[4])?5:(xr=3,3)],Kn[4]=Kn[5]=N):Kn[0]<=Pl&&(($o=zn<2&&Pl<Kn[1])?(xr=0,Ao.v=Vn,Ao.n=Kn[1]):Pl<Sa&&($o=zn<3||Kn[0]>Vn||Vn>Sa)&&(Kn[4]=zn,Kn[5]=Vn,Ao.n=Sa,xr=0));}if($o||zn>1)return Le;throw Wo=true,Vn}return function(zn,Vn,$o){if(Ni>1)throw TypeError("Generator is already running");for(Wo&&Vn===1&&$n(Vn,$o),xr=Vn,Ln=$o;(j=xr<2?N:Ln)||!Wo;){Dn||(xr?xr<3?(xr>1&&(Ao.n=-1),$n(xr,Ln)):Ao.n=Ln:Ao.v=Ln);try{if(Ni=2,Dn){if(xr||(zn="next"),j=Dn[zn]){if(!(j=j.call(Dn,Ln)))throw TypeError("iterator result is not an object");if(!j.done)return j;Ln=j.value,xr<2&&(xr=0);}else xr===1&&(j=Dn.return)&&j.call(Dn),xr<2&&(Ln=TypeError("The iterator does not provide a '"+zn+"' method"),xr=1);Dn=N;}else if((j=(Wo=Ao.n<0)?Ln:Cr.call(Ls,Ao))!==Le)break}catch(Kn){Dn=N,xr=1,Ln=Kn;}finally{Ni=1;}}return {value:j,done:Wo}}}(mr,uo,Ri),true),co}var Le={};function ze(){}function Qe(){}function lt(){}j=Object.getPrototypeOf;var Lt=[][be]?j(j([][be]())):(o(j={},be,function(){return this}),j),Vt=lt.prototype=ze.prototype=Object.create(Lt);function Ro(mr){return Object.setPrototypeOf?Object.setPrototypeOf(mr,lt):(mr.__proto__=lt,o(mr,_e,"GeneratorFunction")),mr.prototype=Object.create(Vt),mr}return Qe.prototype=lt,o(Vt,"constructor",lt),o(lt,"constructor",Qe),Qe.displayName="GeneratorFunction",o(lt,_e,"GeneratorFunction"),o(Vt),o(Vt,_e,"Generator"),o(Vt,be,function(){return this}),o(Vt,"toString",function(){return "[object Generator]"}),(n=function(){return {w:et,m:Ro}})()}function o(N,j,J,be){var _e=Object.defineProperty;try{_e({},"",{});}catch{_e=0;}o=function(et,Le,ze,Qe){function lt(Lt,Vt){o(et,Lt,function(Ro){return this._invoke(Lt,Vt,Ro)});}Le?_e?_e(et,Le,{value:ze,enumerable:!Qe,configurable:!Qe,writable:!Qe}):et[Le]=ze:(lt("next",0),lt("throw",1),lt("return",2));},o(N,j,J,be);}function i(N,j,J){return j=l(j),function(be,_e){if(_e&&(R(_e)=="object"||typeof _e=="function"))return _e;if(_e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}(be)}(N,s()?Reflect.construct(j,J||[],l(N).constructor):j.apply(N,J))}function s(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (s=function(){return !!N})()}function l(N){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(j){return j.__proto__||Object.getPrototypeOf(j)},l(N)}function u(N,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(j&&j.prototype,{constructor:{value:N,writable:true,configurable:true}}),Object.defineProperty(N,"prototype",{writable:false}),j&&p(N,j);}function p(N,j){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(J,be){return J.__proto__=be,J},p(N,j)}function m(N,j){if(!(N instanceof j))throw new TypeError("Cannot call a class as a function")}function g(N,j){for(var J=0;J<j.length;J++){var be=j[J];be.enumerable=be.enumerable||false,be.configurable=true,"value"in be&&(be.writable=true),Object.defineProperty(N,x(be.key),be);}}function h(N,j,J){return j&&g(N.prototype,j),Object.defineProperty(N,"prototype",{writable:false}),N}function b(N,j){var J=Object.keys(N);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(N);j&&(be=be.filter(function(_e){return Object.getOwnPropertyDescriptor(N,_e).enumerable})),J.push.apply(J,be);}return J}function y(N){for(var j=1;j<arguments.length;j++){var J=arguments[j]!=null?arguments[j]:{};j%2?b(Object(J),true).forEach(function(be){w(N,be,J[be]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(J)):b(Object(J)).forEach(function(be){Object.defineProperty(N,be,Object.getOwnPropertyDescriptor(J,be));});}return N}function w(N,j,J){return (j=x(j))in N?Object.defineProperty(N,j,{value:J,enumerable:true,configurable:true,writable:true}):N[j]=J,N}function x(N){var j=function(J){if(R(J)!="object"||!J)return J;var be=J[Symbol.toPrimitive];if(be!==void 0){var _e=be.call(J,"string");if(R(_e)!="object")return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(J)}(N);return R(j)=="symbol"?j:j+""}function B(N,j){var J=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!J){if(Array.isArray(N)||(J=function(Qe,lt){if(Qe){if(typeof Qe=="string")return $(Qe,lt);var Lt={}.toString.call(Qe).slice(8,-1);return Lt==="Object"&&Qe.constructor&&(Lt=Qe.constructor.name),Lt==="Map"||Lt==="Set"?Array.from(Qe):Lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt)?$(Qe,lt):void 0}}(N))||j){J&&(N=J);var be=0,_e=function(){};return {s:_e,n:function(){return be>=N.length?{done:true}:{done:false,value:N[be++]}},e:function(Qe){throw Qe},f:_e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var et,Le=true,ze=false;return {s:function(){J=J.call(N);},n:function(){var Qe=J.next();return Le=Qe.done,Qe},e:function(Qe){ze=true,et=Qe;},f:function(){try{Le||J.return==null||J.return();}finally{if(ze)throw et}}}}function $(N,j){(j==null||j>N.length)&&(j=N.length);for(var J=0,be=Array(j);J<j;J++)be[J]=N[J];return be}function R(N){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},R(N)}function F(N){return function(){return new ee(N.apply(this,arguments))}}function ee(N){var j,J;function be(et,Le){try{var ze=N[et](Le),Qe=ze.value,lt=Qe instanceof V;Promise.resolve(lt?Qe.v:Qe).then(function(Lt){if(lt){var Vt=et==="return"?"return":"next";if(!Qe.k||Lt.done)return be(Vt,Lt);Lt=N[Vt](Lt).value;}_e(ze.done?"return":"normal",Lt);},function(Lt){be("throw",Lt);});}catch(Lt){_e("throw",Lt);}}function _e(et,Le){switch(et){case "return":j.resolve({value:Le,done:true});break;case "throw":j.reject(Le);break;default:j.resolve({value:Le,done:false});}(j=j.next)?be(j.key,j.arg):J=null;}this._invoke=function(et,Le){return new Promise(function(ze,Qe){var lt={key:et,arg:Le,resolve:ze,reject:Qe,next:null};J?J=J.next=lt:(j=J=lt,be(et,Le));})},typeof N.return!="function"&&(this.return=void 0);}function V(N,j){this.v=N,this.k=j;}ee.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},ee.prototype.next=function(N){return this._invoke("next",N)},ee.prototype.throw=function(N){return this._invoke("throw",N)},ee.prototype.return=function(N){return this._invoke("return",N)};var A={__proto__:null},M=Reflect.defineProperty,Q=Reflect.getOwnPropertyDescriptor,se=Reflect.ownKeys,ce=Function.prototype,we=ce.apply,ve=ce.bind,oe=ce.call,Z=ve.bind(oe);A.uncurryThis=Z;var te=ve.bind(we);A.applyBind=te;var z=["ArrayOf","ArrayPrototypePush","ArrayPrototypeUnshift","MathHypot","MathMax","MathMin","StringFromCharCode","StringFromCodePoint","StringPrototypeConcat","TypedArrayOf"];function de(N){return R(N)==="symbol"?"Symbol".concat(N.description[7].toUpperCase()).concat(N.description.slice(8)):"".concat(N[0].toUpperCase()).concat(N.slice(1))}function Se(N,j,J,be){var _e=be.enumerable,et=be.get,Le=be.set;M(N,"".concat(j,"Get").concat(J),{__proto__:null,value:Z(et),enumerable:_e}),Le!==void 0&&M(N,"".concat(j,"Set").concat(J),{__proto__:null,value:Z(Le),enumerable:_e});}function rt(N,j,J){var be,_e=B(se(N));try{for(_e.s();!(be=_e.n()).done;){var et=be.value,Le=de(et),ze=Q(N,et);if("get"in ze)Se(j,J,Le,ze);else {var Qe="".concat(J).concat(Le);M(j,Qe,y({__proto__:null},ze)),z.includes(Qe)&&M(j,"".concat(Qe,"Apply"),{__proto__:null,value:te(ze.value,N)});}}}catch(lt){_e.e(lt);}finally{_e.f();}}function le(N,j,J){var be,_e=B(se(N));try{for(_e.s();!(be=_e.n()).done;){var et=be.value,Le=de(et),ze=Q(N,et);if("get"in ze)Se(j,J,Le,ze);else {var Qe=ze.value;typeof Qe=="function"&&(ze.value=Z(Qe));var lt="".concat(J).concat(Le);M(j,lt,y({__proto__:null},ze)),z.includes(lt)&&M(j,"".concat(lt,"Apply"),{__proto__:null,value:te(Qe)});}}}catch(Lt){_e.e(Lt);}finally{_e.f();}}["Proxy","globalThis"].forEach(function(N){A[N]=globalThis[N];}),[decodeURI,decodeURIComponent,encodeURI,encodeURIComponent].forEach(function(N){A[N.name]=N;}),[escape,eval,unescape].forEach(function(N){A[N.name]=N;}),["Atomics","JSON","Math","Proxy","Reflect"].forEach(function(N){rt(globalThis[N],A,N);}),["AggregateError","Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float32Array","Float64Array","Function","Int16Array","Int32Array","Int8Array","Map","Number","Object","RangeError","ReferenceError","RegExp","Set","String","Symbol","SyntaxError","TypeError","URIError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","WeakMap","WeakRef","WeakSet"].forEach(function(N){var j=globalThis[N];j&&(A[N]=j,rt(j,A,N),le(j.prototype,A,"".concat(N,"Prototype")));}),["Promise"].forEach(function(N){var j=globalThis[N];A[N]=j,function(J,be,_e){var et,Le=B(se(J));try{for(Le.s();!(et=Le.n()).done;){var ze=et.value,Qe=de(ze),lt=Q(J,ze);if("get"in lt)Se(be,_e,Qe,lt);else {var Lt=lt.value;typeof Lt=="function"&&(lt.value=Lt.bind(J));var Vt="".concat(_e).concat(Qe);M(be,Vt,y({__proto__:null},lt));}}}catch(Ro){Le.e(Ro);}finally{Le.f();}}(j,A,N),le(j.prototype,A,"".concat(N,"Prototype"));}),[{name:"TypedArray",original:Reflect.getPrototypeOf(Uint8Array)},{name:"ArrayIterator",original:{prototype:Reflect.getPrototypeOf(Array.prototype[Symbol.iterator]())}},{name:"StringIterator",original:{prototype:Reflect.getPrototypeOf(String.prototype[Symbol.iterator]())}}].forEach(function(N){var j=N.name,J=N.original;A[j]=J,le(J,A,j),le(J.prototype,A,"".concat(j,"Prototype"));}),A.IteratorPrototype=Reflect.getPrototypeOf(A.ArrayIteratorPrototype);var G=A.ArrayPrototypeForEach,ne=A.FinalizationRegistry,Oe=A.FunctionPrototypeCall,ke=A.Map,Ge=A.ObjectFreeze,at=A.ObjectSetPrototypeOf,fr=A.RegExp,nr=A.Set,Nt=A.SymbolIterator,Pt=A.WeakMap,tt=A.WeakRef,jt=A.WeakSet,Dt=function(N,j){var J=function(){return h(function be(_e){m(this,be),this._iterator=N(_e);},[{key:"next",value:function(){return j(this._iterator)}},{key:Nt,value:function(){return this}}])}();return at(J.prototype,null),Ge(J.prototype),Ge(J),J};A.SafeArrayIterator=Dt(A.ArrayPrototypeSymbolIterator,A.ArrayIteratorPrototypeNext),A.SafeStringIterator=Dt(A.StringPrototypeSymbolIterator,A.StringIteratorPrototypeNext);var W=function(N,j){G(se(N),function(J){Q(j,J)||M(j,J,y({__proto__:null},Q(N,J)));});},Y=function(N,j){if(Nt in N.prototype){var J,be=new N;G(se(N.prototype),function(_e){if(!Q(j.prototype,_e)){var et,Le=Q(N.prototype,_e);if(typeof Le.value=="function"&&Le.value.length===0&&Nt in((et=Oe(Le.value,be))!==null&&et!==void 0?et:{})){var ze=Z(Le.value);J=J||Z(ze(be).next);var Qe=Dt(ze,J);Le.value=function(){return new Qe(this)};}M(j.prototype,_e,y({__proto__:null},Le));}});}else W(N.prototype,j.prototype);return W(N,j),at(j.prototype,null),Ge(j.prototype),Ge(j),j};A.makeSafe=Y,A.SafeMap=Y(ke,function(N){function j(J){return m(this,j),i(this,j,[J])}return u(j,N),h(j)}(ke)),A.SafeWeakMap=Y(Pt,function(N){function j(J){return m(this,j),i(this,j,[J])}return u(j,N),h(j)}(Pt)),A.SafeSet=Y(nr,function(N){function j(J){return m(this,j),i(this,j,[J])}return u(j,N),h(j)}(nr)),A.SafeWeakSet=Y(jt,function(N){function j(J){return m(this,j),i(this,j,[J])}return u(j,N),h(j)}(jt)),A.SafeFinalizationRegistry=Y(ne,function(N){function j(J){return m(this,j),i(this,j,[J])}return u(j,N),h(j)}(ne)),A.SafeWeakRef=Y(tt,function(N){function j(J){return m(this,j),i(this,j,[J])}return u(j,N),h(j)}(tt)),A.AsyncIteratorPrototype=A.ReflectGetPrototypeOf(F(n().m(function N(){return n().w(function(j){for(;;)if(j.n===0)return j.a(2)},N)}))).prototype,A.internalBinding=function(N){if(N==="config")return {hasIntl:false};throw new Error('unknown module: "'.concat(N,'"'))},A._stringPrototypeReplaceAll=function(N,j,J){return Object.prototype.toString.call(j).toLowerCase()==="[object regexp]"?N.replace(j,J):N.replace(new fr(j,"g"),J)},A.StringPrototypeReplaceAll=A.StringPrototypeReplaceAll||A._stringPrototypeReplaceAll,at(A,null),Ge(A),r.exports=A;},94:(r,n,o)=>{var i=o(72),s=i.ArrayPrototypeJoin,l=i.Error,u=i.StringPrototypeReplace,p=i.SymbolFor,m=/\u001b\[\d\d?m/g;r.exports={customInspectSymbol:p("nodejs.util.inspect.custom"),isError:function(g){return g instanceof l},join:s,removeColors:function(g){return u(g,m,"")}};},101:r=>{r.exports=URL;},125:(r,n,o)=>{var i=o(72),s=i.StringPrototypeCharCodeAt,l=i.StringPrototypeIncludes,u=i.StringPrototypeReplace,p=o(101),m=o(129).CHAR_FORWARD_SLASH,g=o(173),h=/%/g,b=/\\/g,y=/\n/g,w=/\r/g,x=/\t/g;r.exports={pathToFileURL:function(B){var $=new p("file://"),R=g.resolve(B);return s(B,B.length-1)===m&&R[R.length-1]!==g.sep&&(R+="/"),$.pathname=function(F){return l(F,"%")&&(F=u(F,h,"%25")),l(F,"\\")&&(F=u(F,b,"%5C")),l(F,`
`)&&(F=u(F,y,"%0A")),l(F,"\r")&&(F=u(F,w,"%0D")),l(F," ")&&(F=u(F,x,"%09")),F}(R),$},URL:p};},129:r=>{r.exports={CHAR_DOT:46,CHAR_FORWARD_SLASH:47,CHAR_BACKWARD_SLASH:92};},173:(r,n,o)=>{var i=o(72),s=i.StringPrototypeCharCodeAt,l=i.StringPrototypeLastIndexOf,u=i.StringPrototypeSlice,p=o(129),m=p.CHAR_DOT,g=p.CHAR_FORWARD_SLASH,h=o(469).validateString;function b(w){return w===g}function y(w,x,B,$){for(var R="",F=0,ee=-1,V=0,A=0,M=0;M<=w.length;++M){if(M<w.length)A=s(w,M);else {if($(A))break;A=g;}if($(A)){if(!(ee===M-1||V===1))if(V===2){if(R.length<2||F!==2||s(R,R.length-1)!==m||s(R,R.length-2)!==m){if(R.length>2){var Q=l(R,B);Q===-1?(R="",F=0):F=(R=u(R,0,Q)).length-1-l(R,B),ee=M,V=0;continue}if(R.length!==0){R="",F=0,ee=M,V=0;continue}}x&&(R+=R.length>0?"".concat(B,".."):"..",F=2);}else R.length>0?R+="".concat(B).concat(u(w,ee+1,M)):R=u(w,ee+1,M),F=M-ee-1;ee=M,V=0;}else A===m&&V!==-1?++V:V=-1;}return R}r.exports={isPosixPathSeparator:b,normalizeString:y,resolve:function(){if((arguments.length===0||arguments.length===1&&((arguments.length<=0?void 0:arguments[0])===""||(arguments.length<=0?void 0:arguments[0])==="."))&&s("/",0)===g)return "/";for(var w="",x=false,B=arguments.length-1;B>=0&&!x;B--){var $=B<0||arguments.length<=B?void 0:arguments[B];h($,"paths[".concat(B,"]")),$.length!==0&&(w="".concat($,"/").concat(w),x=s($,0)===g);}return x||(w="".concat("/","/").concat(w),x=s("/",0)===g),w=y(w,!x,"/",b),x?"/".concat(w):w.length>0?w:"."}};},189:(r,n,o)=>{function i(Y,N){(N==null||N>Y.length)&&(N=Y.length);for(var j=0,J=Array(N);j<N;j++)J[j]=Y[j];return J}function s(Y){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},s(Y)}function l(Y,N){for(var j=0;j<N.length;j++){var J=N[j];J.enumerable=J.enumerable||false,J.configurable=true,"value"in J&&(J.writable=true),Object.defineProperty(Y,u(J.key),J);}}function u(Y){var N=function(j){if(s(j)!="object"||!j)return j;var J=j[Symbol.toPrimitive];if(J!==void 0){var be=J.call(j,"string");if(s(be)!="object")return be;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(j)}(Y);return s(N)=="symbol"?N:N+""}function p(){try{var Y=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (p=function(){return !!Y})()}function m(Y){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},m(Y)}function g(Y,N){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,J){return j.__proto__=J,j},g(Y,N)}var h,b,y=o(72),w=y.ArrayIsArray,x=y.ArrayPrototypeIncludes,B=y.ArrayPrototypeIndexOf,$=y.ArrayPrototypeJoin,R=y.ArrayPrototypePush,F=y.ArrayPrototypeSlice,ee=y.ArrayPrototypeSplice,V=y.Error,A=y.ErrorCaptureStackTrace,M=y.JSONStringify,Q=y.ObjectDefineProperty,se=y.ReflectApply,ce=y.RegExpPrototypeExec,we=y.SafeMap,ve=y.SafeWeakMap,oe=y.String,Z=y.StringPrototypeEndsWith,te=y.StringPrototypeIncludes,z=y.StringPrototypeIndexOf,de=y.StringPrototypeSlice,Se=y.StringPrototypeToLowerCase,rt=y.Symbol,le=y.TypeError,G=rt("kIsNodeError"),ne=new we,Oe={},ke=/^[A-Z][a-zA-Z0-9]*$/,Ge=["string","function","number","object","Function","Object","boolean","bigint","symbol"],at=new ve,fr=o(212),nr=null;function Nt(Y,N){var j=function(J){function be(){var ze,Qe,lt,Lt;((function(ro,uo){if(!(ro instanceof uo))throw new TypeError("Cannot call a class as a function")}))(this,be),ze=function(ro,uo,Ri){return uo=m(uo),function(Ai,co){if(co&&(s(co)=="object"||typeof co=="function"))return co;if(co!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Cr){if(Cr===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Cr}(Ai)}(ro,p()?Reflect.construct(uo,[],m(ro).constructor):uo.apply(ro,Ri))}(this,be),Qe=ze,Lt=N,(lt=u(lt="code"))in Qe?Object.defineProperty(Qe,lt,{value:Lt,enumerable:true,configurable:true,writable:true}):Qe[lt]=Lt;for(var Vt=arguments.length,Ro=new Array(Vt),mr=0;mr<Vt;mr++)Ro[mr]=arguments[mr];return Q(ze,"message",{__proto__:null,value:tt(N,Ro,ze),enumerable:false,writable:true,configurable:true}),ze}return function(ze,Qe){if(typeof Qe!="function"&&Qe!==null)throw new TypeError("Super expression must either be null or a function");ze.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:ze,writable:true,configurable:true}}),Object.defineProperty(ze,"prototype",{writable:false}),Qe&&g(ze,Qe);}(be,J),_e=be,(et=[{key:"toString",value:function(){return "".concat(this.name," [").concat(N,"]: ").concat(this.message)}}])&&l(_e.prototype,et),Le&&l(_e,Le),Object.defineProperty(_e,"prototype",{writable:false}),_e;var _e,et,Le;}(Y);return j}function Pt(Y,N,j){ne.set(Y,N);var J=Nt(j,Y);Oe[Y]=J;}function tt(Y,N,j){var J=ne.get(Y);if(typeof J=="function")return fr(J.length<=N.length,"Code: ".concat(Y,"; The provided arguments length (").concat(N.length,") does not ")+"match the required ones (".concat(J.length,").")),se(J,j,N)}var jt=rt("kEnhanceStackBeforeInspector");function Dt(Y){if(Y===null)return "null";if(Y===void 0)return "undefined";switch(s(Y)){case "bigint":return "type bigint (".concat(Y,"n)");case "number":return Y===0?1/Y==-1/0?"type number (-0)":"type number (0)":Y!=Y?"type number (NaN)":Y===1/0?"type number (Infinity)":Y===-1/0?"type number (-Infinity)":"type number (".concat(Y,")");case "boolean":return Y?"type boolean (true)":"type boolean (false)";case "symbol":return "type symbol (".concat(oe(Y),")");case "function":return "function ".concat(Y.name);case "object":return Y.constructor&&"name"in Y.constructor?"an instance of ".concat(Y.constructor.name):"".concat((nr=nr||o(336)).inspect(Y,{depth:-1}));case "string":return Y.length>28&&(Y="".concat(de(Y,0,25),"...")),z(Y,"'")===-1?"type string ('".concat(Y,"')"):"type string (".concat(M(Y),")")}}function W(Y){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"and";switch(Y.length){case 0:return "";case 1:return "".concat(Y[0]);case 2:return "".concat(Y[0]," ").concat(N," ").concat(Y[1]);case 3:return "".concat(Y[0],", ").concat(Y[1],", ").concat(N," ").concat(Y[2]);default:return "".concat($(F(Y,0,-1),", "),", ").concat(N," ").concat(Y[Y.length-1])}}r.exports={codes:Oe,determineSpecificType:Dt,E:Pt,formatList:W,getMessage:tt,hideStackFrames:function(Y){function N(){try{for(var j=arguments.length,J=new Array(j),be=0;be<j;be++)J[be]=arguments[be];return se(Y,this,J)}catch(_e){throw V.stackTraceLimit&&A(_e,N),_e}}return N.withoutStackTrace=Y,N},isStackOverflowError:function(Y){if(b===void 0)try{var N=function(){N();};N();}catch(j){b=j.message,h=j.name;}return Y&&Y.name===h&&Y.message===b},kEnhanceStackBeforeInspector:jt,kIsNodeError:G,overrideStackTrace:at},Pt("ERR_INTERNAL_ASSERTION",function(Y){var N=`This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
`;return Y===void 0?N:"".concat(Y,`
`).concat(N)},V),Pt("ERR_INVALID_ARG_TYPE",function(Y,N,j){fr(typeof Y=="string","'name' must be a string"),w(N)||(N=[N]);var J="The ";if(Z(Y," argument"))J+="".concat(Y," ");else {var be=te(Y,".")?"property":"argument";J+='"'.concat(Y,'" ').concat(be," ");}J+="must be ";var _e,et=[],Le=[],ze=[],Qe=function(Vt,Ro){var mr=typeof Symbol<"u"&&Vt[Symbol.iterator]||Vt["@@iterator"];if(!mr){if(Array.isArray(Vt)||(mr=function(Cr,Ls){if(Cr){if(typeof Cr=="string")return i(Cr,Ls);var Ho={}.toString.call(Cr).slice(8,-1);return Ho==="Object"&&Cr.constructor&&(Ho=Cr.constructor.name),Ho==="Map"||Ho==="Set"?Array.from(Cr):Ho==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ho)?i(Cr,Ls):void 0}}(Vt))||Ro){mr&&(Vt=mr);var ro=0,uo=function(){};return {s:uo,n:function(){return ro>=Vt.length?{done:true}:{done:false,value:Vt[ro++]}},e:function(Cr){throw Cr},f:uo}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ri,Ai=true,co=false;return {s:function(){mr=mr.call(Vt);},n:function(){var Cr=mr.next();return Ai=Cr.done,Cr},e:function(Cr){co=true,Ri=Cr;},f:function(){try{Ai||mr.return==null||mr.return();}finally{if(co)throw Ri}}}}(N);try{for(Qe.s();!(_e=Qe.n()).done;){var lt=_e.value;fr(typeof lt=="string","All expected entries have to be of type string"),x(Ge,lt)?R(et,Se(lt)):ce(ke,lt)!==null?R(Le,lt):(fr(lt!=="object",'The value "object" should be written as "Object"'),R(ze,lt));}}catch(Vt){Qe.e(Vt);}finally{Qe.f();}if(Le.length>0){var Lt=B(et,"object");Lt!==-1&&(ee(et,Lt,1),R(Le,"Object"));}return et.length>0&&(J+="".concat(et.length>1?"one of type":"of type"," ").concat(W(et,"or")),(Le.length>0||ze.length>0)&&(J+=" or ")),Le.length>0&&(J+="an instance of ".concat(W(Le,"or")),ze.length>0&&(J+=" or ")),ze.length>0&&(ze.length>1?J+="one of ".concat(W(ze,"or")):(Se(ze[0])!==ze[0]&&(J+="an "),J+="".concat(ze[0]))),J+". Received ".concat(Dt(j))},le);},212:(r,n,o)=>{var i;function s(){return i=i??o(189).codes.ERR_INTERNAL_ASSERTION}function l(u,p){if(!u)throw new(s())(p)}l.fail=function(u){throw new(s())(u)},r.exports=l;},336:(r,n,o)=>{function i(T){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},i(T)}function s(T,D){var q=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(!q){if(Array.isArray(T)||(q=function(qe,nt){if(qe){if(typeof qe=="string")return l(qe,nt);var Ze={}.toString.call(qe).slice(8,-1);return Ze==="Object"&&qe.constructor&&(Ze=qe.constructor.name),Ze==="Map"||Ze==="Set"?Array.from(qe):Ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ze)?l(qe,nt):void 0}}(T))||D){q&&(T=q);var re=0,ae=function(){};return {s:ae,n:function(){return re>=T.length?{done:true}:{done:false,value:T[re++]}},e:function(qe){throw qe},f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ue,Ie=true,Ee=false;return {s:function(){q=q.call(T);},n:function(){var qe=q.next();return Ie=qe.done,qe},e:function(qe){Ee=true,ue=qe;},f:function(){try{Ie||q.return==null||q.return();}finally{if(Ee)throw ue}}}}function l(T,D){(D==null||D>T.length)&&(D=T.length);for(var q=0,re=Array(D);q<D;q++)re[q]=T[q];return re}function u(T,D){var q=Object.keys(T);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(T);D&&(re=re.filter(function(ae){return Object.getOwnPropertyDescriptor(T,ae).enumerable})),q.push.apply(q,re);}return q}function p(T){for(var D=1;D<arguments.length;D++){var q=arguments[D]!=null?arguments[D]:{};D%2?u(Object(q),true).forEach(function(re){m(T,re,q[re]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(q)):u(Object(q)).forEach(function(re){Object.defineProperty(T,re,Object.getOwnPropertyDescriptor(q,re));});}return T}function m(T,D,q){return (D=function(re){var ae=function(ue){if(i(ue)!="object"||!ue)return ue;var Ie=ue[Symbol.toPrimitive];if(Ie!==void 0){var Ee=Ie.call(ue,"string");if(i(Ee)!="object")return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ue)}(re);return i(ae)=="symbol"?ae:ae+""}(D))in T?Object.defineProperty(T,D,{value:q,enumerable:true,configurable:true,writable:true}):T[D]=q,T}var g,h,b,y=o(72),w=y.Array,x=y.ArrayBuffer,B=y.ArrayBufferPrototype,$=y.ArrayIsArray,R=y.ArrayPrototype,F=y.ArrayPrototypeFilter,ee=y.ArrayPrototypeForEach,V=y.ArrayPrototypeIncludes,A=y.ArrayPrototypeIndexOf,M=y.ArrayPrototypeJoin,Q=y.ArrayPrototypeMap,se=y.ArrayPrototypePop,ce=y.ArrayPrototypePush,we=y.ArrayPrototypePushApply,ve=y.ArrayPrototypeSlice,oe=y.ArrayPrototypeSort,Z=y.ArrayPrototypeSplice,te=y.ArrayPrototypeUnshift,z=y.BigIntPrototypeValueOf,de=y.Boolean,Se=y.BooleanPrototype,rt=y.BooleanPrototypeValueOf,le=y.DataView,G=y.DataViewPrototype,ne=y.Date,Oe=y.DatePrototype,ke=y.DatePrototypeGetTime,Ge=y.DatePrototypeToISOString,at=y.DatePrototypeToString,fr=y.Error,nr=y.ErrorPrototype,Nt=y.ErrorPrototypeToString,Pt=y.Function,tt=y.FunctionPrototype,jt=y.FunctionPrototypeBind,Dt=y.FunctionPrototypeCall,W=y.FunctionPrototypeSymbolHasInstance,Y=y.FunctionPrototypeToString,N=y.JSONStringify,j=y.Map,J=y.MapPrototype,be=y.MapPrototypeEntries,_e=y.MapPrototypeGetSize,et=y.MathFloor,Le=y.MathMax,ze=y.MathMin,Qe=y.MathRound,lt=y.MathSqrt,Lt=y.MathTrunc,Vt=y.Number,Ro=y.NumberIsFinite,mr=y.NumberIsNaN,ro=y.NumberParseFloat,uo=y.NumberParseInt,Ri=y.NumberPrototype,Ai=y.NumberPrototypeToString,co=y.NumberPrototypeValueOf,Cr=y.Object,Ls=y.ObjectAssign,Ho=y.ObjectDefineProperty,Dn=y.ObjectGetOwnPropertyDescriptor,xr=y.ObjectGetOwnPropertyNames,Ln=y.ObjectGetOwnPropertySymbols,Ni=y.ObjectGetPrototypeOf,Zu=y.ObjectIs,Wo=y.ObjectKeys,Ao=y.ObjectPrototype,$n=y.ObjectPrototypeHasOwnProperty,zn=y.ObjectPrototypePropertyIsEnumerable,Vn=y.ObjectSeal,$o=y.ObjectSetPrototypeOf,Kn=y.Promise,Pl=y.PromisePrototype,Sa=y.ReflectApply,FS=y.ReflectOwnKeys,is=y.RegExp,jS=y.RegExpPrototype,ss=y.RegExpPrototypeExec,Ea=y.RegExpPrototypeSymbolReplace,ng=y.RegExpPrototypeSymbolSplit,BS=y.RegExpPrototypeToString,og=y.SafeMap,ig=y.SafeSet,qS=y.SafeStringIterator,US=y.Set,HS=y.SetPrototype,WS=y.SetPrototypeGetSize,$S=y.SetPrototypeValues,as=y.String,zS=y.StringPrototype,Tl=y.StringPrototypeCharCodeAt,VS=y.StringPrototypeCodePointAt,sg=y.StringPrototypeEndsWith,ci=y.StringPrototypeIncludes,Cl=y.StringPrototypeIndexOf,KS=y.StringPrototypeLastIndexOf,GS=y.StringPrototypeNormalize,QS=y.StringPrototypePadEnd,dd=y.StringPrototypePadStart,_a=y.StringPrototypeRepeat,YS=y.StringPrototypeReplace,pd=y.StringPrototypeReplaceAll,Qt=y.StringPrototypeSlice,hd=y.StringPrototypeSplit,ag=y.StringPrototypeStartsWith,JS=y.StringPrototypeToLowerCase,XS=y.StringPrototypeTrim,ZS=y.StringPrototypeValueOf,xl=y.SymbolIterator,Il=y.SymbolPrototypeToString,md=y.SymbolPrototypeValueOf,Ms=y.SymbolToPrimitive,ec=y.SymbolToStringTag,gd=y.TypedArray,yd=y.TypedArrayPrototype,vd=y.TypedArrayPrototypeGetLength,bd=y.TypedArrayPrototypeGetSymbolToStringTag,wd=y.Uint8Array,Sd=y.WeakMap,Ed=y.WeakMapPrototype,_d=y.WeakSet,Pd=y.WeakSetPrototype,e0=y.globalThis,t0=y.internalBinding,r0=y.uncurryThis,Di=o(614),tc=Di.constants,n0=tc.ALL_PROPERTIES,Td=tc.ONLY_ENUMERABLE,Cd=tc.kPending,lg=tc.kRejected,ug=Di.getOwnNonIndexProperties,o0=Di.getPromiseDetails,ls=Di.getProxyDetails,Pa=Di.previewEntries,us=Di.getConstructorName,xd=Di.getExternalValue,Fs=Di.Proxy,Ta=o(94),fo=Ta.customInspectSymbol,Id=Ta.isError,cs=Ta.join,cg=Ta.removeColors,fg=o(189).isStackOverflowError,gr=o(756),rc=gr.isAsyncFunction,dg=gr.isGeneratorFunction,pg=gr.isAnyArrayBuffer,kd=gr.isArrayBuffer,hg=gr.isArgumentsObject,Od=gr.isBoxedPrimitive,mg=gr.isDataView,gg=gr.isExternal,yg=gr.isMap,vg=gr.isMapIterator,No=gr.isModuleNamespaceObject,nc=gr.isNativeError,Rd=gr.isPromise,Ad=gr.isSet,bg=gr.isSetIterator,Ca=gr.isWeakMap,Nd=gr.isWeakSet,wg=gr.isRegExp,Sg=gr.isDate,Eg=gr.isTypedArray,_g=gr.isStringObject,oc=gr.isNumberObject,kl=gr.isBooleanObject,Dd=gr.isBigIntObject,xa=o(212),Pg=o(42).BuiltinModule,ic=o(469),Ia=ic.validateObject,Ld=ic.validateString,Ol=ic.kValidateObjectAllowArray;function Tg(T){return (h=h??o(125)).pathToFileURL(T).href}var ka,Rl,sc,Al,ac,Oa=new ig(F(xr(e0),function(T){return ss(/^[A-Z][a-zA-Z0-9]+$/,T)!==null})),Cg=function(T){return T===void 0&&T!==void 0},an=Vn({showHidden:false,depth:2,colors:false,customInspect:true,showProxy:false,maxArrayLength:100,maxStringLength:1e4,breakLength:80,compact:3,sorted:false,getters:false,numericSeparator:false});try{ka=new is("[\\x00-\\x1f\\x27\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]"),Rl=new is("[\0-\\x1f\\x27\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]","g"),sc=new is("[\\x00-\\x1f\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]"),Al=new is("[\\x00-\\x1f\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]","g");var lc=new is("(?<=\\n)");ac=function(T){return ng(lc,T)};}catch{ka=/[\x00-\x1f\x27\x5c\x7f-\x9f]/,Rl=/[\x00-\x1f\x27\x5c\x7f-\x9f]/g,sc=/[\x00-\x1f\x5c\x7f-\x9f]/,Al=/[\x00-\x1f\x5c\x7f-\x9f]/g,ac=function(D){var q=ng(/\n/,D),re=se(q),ae=Q(q,function(ue){return ue+`
`});return re!==""&&ae.push(re),ae};}var Nl,i0=/^[a-zA-Z_][a-zA-Z_0-9]*$/,Md=/^(0|[1-9][0-9]*)$/,s0=/^ {4}at (?:[^/\\(]+ \(|)node:(.+):\d+:\d+\)?$/,zo=/[/\\]node_modules[/\\](.+?)(?=[/\\])/g,Dl=/^(\s+[^(]*?)\s*{/,Ll=/(\/\/.*?\n)|(\/\*(.|\n)*?\*\/)/g,fs=["\\x00","\\x01","\\x02","\\x03","\\x04","\\x05","\\x06","\\x07","\\b","\\t","\\n","\\x0B","\\f","\\r","\\x0E","\\x0F","\\x10","\\x11","\\x12","\\x13","\\x14","\\x15","\\x16","\\x17","\\x18","\\x19","\\x1A","\\x1B","\\x1C","\\x1D","\\x1E","\\x1F","","","","","","","","\\'","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\x7F","\\x80","\\x81","\\x82","\\x83","\\x84","\\x85","\\x86","\\x87","\\x88","\\x89","\\x8A","\\x8B","\\x8C","\\x8D","\\x8E","\\x8F","\\x90","\\x91","\\x92","\\x93","\\x94","\\x95","\\x96","\\x97","\\x98","\\x99","\\x9A","\\x9B","\\x9C","\\x9D","\\x9E","\\x9F"],xg=new is("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/\\#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/\\#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))","g");function ln(T,D){var q={budget:{},indentationLvl:0,seen:[],currentDepth:0,stylize:Fl,showHidden:an.showHidden,depth:an.depth,colors:an.colors,customInspect:an.customInspect,showProxy:an.showProxy,maxArrayLength:an.maxArrayLength,maxStringLength:an.maxStringLength,breakLength:an.breakLength,compact:an.compact,sorted:an.sorted,getters:an.getters,numericSeparator:an.numericSeparator};if(arguments.length>1){if(arguments.length>2&&(arguments[2]!==void 0&&(q.depth=arguments[2]),arguments.length>3&&arguments[3]!==void 0&&(q.colors=arguments[3])),typeof D=="boolean")q.showHidden=D;else if(D)for(var re=Wo(D),ae=0;ae<re.length;++ae){var ue=re[ae];$n(an,ue)||ue==="stylize"?q[ue]=D[ue]:q.userOptions===void 0&&(q.userOptions=D);}}return q.colors&&(q.stylize=Ig),q.maxArrayLength===null&&(q.maxArrayLength=1/0),q.maxStringLength===null&&(q.maxStringLength=1/0),Mr(q,T,0)}ln.custom=fo,Ho(ln,"defaultOptions",{__proto__:null,get:function(){return an},set:function(T){return Ia(T,"options"),Ls(an,T)}});var Pn=39,un=49;function Tn(T,D){Ho(ln.colors,D,{__proto__:null,get:function(){return this[T]},set:function(q){this[T]=q;},configurable:true,enumerable:false});}function cn(T,D){return D===-1?'"'.concat(T,'"'):D===-2?"`".concat(T,"`"):"'".concat(T,"'")}function mt(T){var D=Tl(T);return fs.length>D?fs[D]:"\\u".concat(Ai(D,16))}function Ml(T){var D=ka,q=Rl,re=39;if(ci(T,"'")&&(ci(T,'"')?ci(T,"`")||ci(T,"${")||(re=-2):re=-1,re!==39&&(D=sc,q=Al)),T.length<5e3&&ss(D,T)===null)return cn(T,re);if(T.length>100)return cn(T=Ea(q,T,mt),re);for(var ae="",ue=0,Ie=0;Ie<T.length;Ie++){var Ee=Tl(T,Ie);if(Ee===re||Ee===92||Ee<32||Ee>126&&Ee<160)ae+=ue===Ie?fs[Ee]:"".concat(Qt(T,ue,Ie)).concat(fs[Ee]),ue=Ie+1;else if(Ee>=55296&&Ee<=57343){if(Ee<=56319&&Ie+1<T.length){var qe=Tl(T,Ie+1);if(qe>=56320&&qe<=57343){Ie++;continue}}ae+="".concat(Qt(T,ue,Ie),"\\u").concat(Ai(Ee,16)),ue=Ie+1;}}return ue!==T.length&&(ae+=Qt(T,ue)),cn(ae,re)}function Ig(T,D){var q=ln.styles[D];if(q!==void 0){var re=ln.colors[q];if(re!==void 0)return "\x1B[".concat(re[0],"m").concat(T,"\x1B[").concat(re[1],"m")}return T}function Fl(T){return T}function Fd(){return []}function a0(T,D){try{return T instanceof D}catch{return false}}ln.colors={__proto__:null,reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],blink:[5,25],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],doubleunderline:[21,24],black:[30,Pn],red:[31,Pn],green:[32,Pn],yellow:[33,Pn],blue:[34,Pn],magenta:[35,Pn],cyan:[36,Pn],white:[37,Pn],bgBlack:[40,un],bgRed:[41,un],bgGreen:[42,un],bgYellow:[43,un],bgBlue:[44,un],bgMagenta:[45,un],bgCyan:[46,un],bgWhite:[47,un],framed:[51,54],overlined:[53,55],gray:[90,Pn],redBright:[91,Pn],greenBright:[92,Pn],yellowBright:[93,Pn],blueBright:[94,Pn],magentaBright:[95,Pn],cyanBright:[96,Pn],whiteBright:[97,Pn],bgGray:[100,un],bgRedBright:[101,un],bgGreenBright:[102,un],bgYellowBright:[103,un],bgBlueBright:[104,un],bgMagentaBright:[105,un],bgCyanBright:[106,un],bgWhiteBright:[107,un]},Tn("gray","grey"),Tn("gray","blackBright"),Tn("bgGray","bgGrey"),Tn("bgGray","bgBlackBright"),Tn("dim","faint"),Tn("strikethrough","crossedout"),Tn("strikethrough","strikeThrough"),Tn("strikethrough","crossedOut"),Tn("hidden","conceal"),Tn("inverse","swapColors"),Tn("inverse","swapcolors"),Tn("doubleunderline","doubleUnderline"),ln.styles=Ls({__proto__:null},{special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red",module:"underline"});var l0=new og().set(R,{name:"Array",constructor:w}).set(B,{name:"ArrayBuffer",constructor:x}).set(tt,{name:"Function",constructor:Pt}).set(J,{name:"Map",constructor:j}).set(HS,{name:"Set",constructor:US}).set(Ao,{name:"Object",constructor:Cr}).set(yd,{name:"TypedArray",constructor:gd}).set(jS,{name:"RegExp",constructor:is}).set(Oe,{name:"Date",constructor:ne}).set(G,{name:"DataView",constructor:le}).set(nr,{name:"Error",constructor:fr}).set(Se,{name:"Boolean",constructor:de}).set(Ri,{name:"Number",constructor:Vt}).set(zS,{name:"String",constructor:as}).set(Pl,{name:"Promise",constructor:Kn}).set(Ed,{name:"WeakMap",constructor:Sd}).set(Pd,{name:"WeakSet",constructor:_d});function kg(T,D,q,re){for(var ae,ue=T;T||Cg(T);){var Ie=l0.get(T);if(Ie!==void 0){var Ee=Ie.name,qe=Ie.constructor;if(W(qe,ue))return re!==void 0&&ae!==T&&Og(D,ue,ae||ue,q,re),Ee}var nt=Dn(T,"constructor");if(nt!==void 0&&typeof nt.value=="function"&&nt.value.name!==""&&a0(ue,nt.value))return re===void 0||ae===T&&Oa.has(nt.value.name)||Og(D,ue,ae||ue,q,re),as(nt.value.name);T=Ni(T),ae===void 0&&(ae=T);}if(ae===null)return null;var Ze=us(ue);if(q>D.depth&&D.depth!==null)return "".concat(Ze," <Complex prototype>");var bt=kg(ae,D,q+1,re);return bt===null?"".concat(Ze," <").concat(ln(ae,p(p({},D),{},{customInspect:false,depth:-1})),">"):"".concat(Ze," <").concat(bt,">")}function Og(T,D,q,re,ae){var ue,Ie,Ee=0;do{if(Ee!==0||D===q){if((q=Ni(q))===null)return;var qe=Dn(q,"constructor");if(qe!==void 0&&typeof qe.value=="function"&&Oa.has(qe.value.name))return}Ee===0?Ie=new ig:ee(ue,function(ut){return Ie.add(ut)}),ue=FS(q),ce(T.seen,D);var nt,Ze=s(ue);try{for(Ze.s();!(nt=Ze.n()).done;){var bt=nt.value;if(!(bt==="constructor"||$n(D,bt)||Ee!==0&&Ie.has(bt))){var ye=Dn(q,bt);if(typeof ye.value!="function"){var me=qs(T,q,re,bt,0,ye,D);T.colors?ce(ae,"\x1B[2m".concat(me,"\x1B[22m")):ce(ae,me);}}}}catch(ut){Ze.e(ut);}finally{Ze.f();}se(T.seen);}while(++Ee!==3)}function fn(T,D,q){var re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return T===null?D!==""&&q!==D?"[".concat(q).concat(re,": null prototype] [").concat(D,"] "):"[".concat(q).concat(re,": null prototype] "):D!==""&&T!==D?"".concat(T).concat(re," [").concat(D,"] "):"".concat(T).concat(re," ")}function Ra(T,D){var q,re=Ln(T);if(D)q=xr(T),re.length!==0&&we(q,re);else {try{q=Wo(T);}catch(ae){xa(nc(ae)&&ae.name==="ReferenceError"&&No(T)),q=xr(T);}re.length!==0&&we(q,F(re,function(ae){return zn(T,ae)}));}return q}function po(T,D,q){var re="";return D===null&&(re=us(T))===q&&(re="Object"),fn(D,q,re)}function Mr(T,D,q,re){if(i(D)!=="object"&&typeof D!="function"&&!Cg(D))return fc(T.stylize,D,T);if(D===null)return T.stylize("null","null");var ae=D,ue=ls(D,!!T.showProxy);if(ue!==void 0){if(ue===null||ue[0]===null)return T.stylize("<Revoked Proxy>","special");if(T.showProxy)return function(ye,me,ut){if(ut>ye.depth&&ye.depth!==null)return ye.stylize("Proxy [Array]","special");ut+=1,ye.indentationLvl+=2;var Gn=[Mr(ye,me[0],ut),Mr(ye,me[1],ut)];return ye.indentationLvl-=2,Ko(ye,Gn,"",["Proxy [","]"],2,ut)}(T,ue,q);D=ue;}if(T.customInspect){var Ie,Ee=D[fo];if(typeof Ee=="function"&&Ee!==ln&&((Ie=Dn(D,"constructor"))===null||Ie===void 0||(Ie=Ie.value)===null||Ie===void 0?void 0:Ie.prototype)!==D){var qe=T.depth===null?null:T.depth-q,nt=ue!==void 0||!W(Cr,ae),Ze=Dt(Ee,ae,qe,function(ye,me){var ut=p({stylize:ye.stylize,showHidden:ye.showHidden,depth:ye.depth,colors:ye.colors,customInspect:ye.customInspect,showProxy:ye.showProxy,maxArrayLength:ye.maxArrayLength,maxStringLength:ye.maxStringLength,breakLength:ye.breakLength,compact:ye.compact,sorted:ye.sorted,getters:ye.getters,numericSeparator:ye.numericSeparator},ye.userOptions);if(me){$o(ut,null);var Gn,ct=s(Wo(ut));try{for(ct.s();!(Gn=ct.n()).done;){var Bt=Gn.value;i(ut[Bt])!=="object"&&typeof ut[Bt]!="function"||ut[Bt]===null||delete ut[Bt];}}catch(dt){ct.e(dt);}finally{ct.f();}ut.stylize=$o(function(dt,kt){var Ot;try{Ot="".concat(ye.stylize(dt,kt));}catch{}return typeof Ot!="string"?dt:Ot},null);}return ut}(T,nt),ln);if(Ze!==ae)return typeof Ze!="string"?Mr(T,Ze,q):pd(Ze,`
`,`
`.concat(_a(" ",T.indentationLvl)))}}if(T.seen.includes(D)){var bt=1;return T.circular===void 0?(T.circular=new og,T.circular.set(D,bt)):(bt=T.circular.get(D))===void 0&&(bt=T.circular.size+1,T.circular.set(D,bt)),T.stylize("[Circular *".concat(bt,"]"),"special")}return function(ye,me,ut,Gn){var ct,Bt;ye.showHidden&&(ut<=ye.depth||ye.depth===null)&&(Bt=[]);var dt=kg(me,ye,ut,Bt);Bt!==void 0&&Bt.length===0&&(Bt=void 0);var kt=me[ec];(typeof kt!="string"||kt!==""&&(ye.showHidden?$n:zn)(me,ec))&&(kt="");var Ot,dn,yr="",Ir=Fd,fi=true,Mi=0,Us=ye.showHidden?n0:Td,Go=0;if(xl in me||dt===null)if(fi=false,$(me)){var Fi=dt!=="Array"||kt!==""?fn(dt,kt,"Array","(".concat(me.length,")")):"";if(ct=ug(me,Us),Ot=["".concat(Fi,"["),"]"],me.length===0&&ct.length===0&&Bt===void 0)return "".concat(Ot[0],"]");Go=2,Ir=qd;}else if(Ad(me)){var Qo=WS(me),Hs=fn(dt,kt,"Set","(".concat(Qo,")"));if(ct=Ra(me,ye.showHidden),Ir=jt(Ag,null,dt!==null?me:$S(me)),Qo===0&&ct.length===0&&Bt===void 0)return "".concat(Hs,"{}");Ot=["".concat(Hs,"{"),"}"];}else if(yg(me)){var Yo=_e(me),Qn=fn(dt,kt,"Map","(".concat(Yo,")"));if(ct=Ra(me,ye.showHidden),Ir=jt(Ud,null,dt!==null?me:be(me)),Yo===0&&ct.length===0&&Bt===void 0)return "".concat(Qn,"{}");Ot=["".concat(Qn,"{"),"}"];}else if(Eg(me)){ct=ug(me,Us);var Ul=me,ji="";dt===null&&(ji=bd(me),Ul=new y[ji](me));var Vr=vd(me),mc=fn(dt,kt,ji,"(".concat(Vr,")"));if(Ot=["".concat(mc,"["),"]"],me.length===0&&ct.length===0&&!ye.showHidden)return "".concat(Ot[0],"]");Ir=jt(Rg,null,Ul,Vr),Go=2;}else vg(me)?(ct=Ra(me,ye.showHidden),Ot=Kt("Map",kt),Ir=jt(jl,null,Ot)):bg(me)?(ct=Ra(me,ye.showHidden),Ot=Kt("Set",kt),Ir=jt(jl,null,Ot)):fi=true;if(fi){if(ct=Ra(me,ye.showHidden),Ot=["{","}"],typeof me=="function"){if(yr=function(or,Hr,no,kr){var Xr=Y(Hr);if(ag(Xr,"class")&&Xr[Xr.length-1]==="}"){var ho=Qt(Xr,5,-1),lr=Cl(ho,"{");if(lr!==-1&&(!ci(Qt(ho,0,lr),"(")||ss(Dl,Ea(Ll,ho))!==null))return function(di,Bi,ms){var gs=$n(di,"name")&&di.name||"(anonymous)",Jo="class ".concat(gs);if(Bi!=="Function"&&Bi!==null&&(Jo+=" [".concat(Bi,"]")),ms!==""&&Bi!==ms&&(Jo+=" [".concat(ms,"]")),Bi!==null){var ys=Ni(di).name;ys&&(Jo+=" extends ".concat(ys));}else Jo+=" extends [null prototype]";return "[".concat(Jo,"]")}(Hr,no,kr)}var Cn="Function";dg(Hr)&&(Cn="Generator".concat(Cn)),rc(Hr)&&(Cn="Async".concat(Cn));var Do="[".concat(Cn);return no===null&&(Do+=" (null prototype)"),Hr.name===""?Do+=" (anonymous)":Do+=": ".concat(typeof Hr.name=="string"?Hr.name:Mr(or,Hr.name)),Do+="]",no!==Cn&&no!==null&&(Do+=" ".concat(no)),kr!==""&&no!==kr&&(Do+=" [".concat(kr,"]")),Do}(ye,me,dt,kt),ct.length===0&&Bt===void 0)return ye.stylize(yr,"special")}else if(dt==="Object"){if(hg(me)?Ot[0]="[Arguments] {":kt!==""&&(Ot[0]="".concat(fn(dt,kt,"Object"),"{")),ct.length===0&&Bt===void 0)return "".concat(Ot[0],"}")}else if(wg(me)){yr=BS(dt!==null?me:new is(me));var Hl=fn(dt,kt,"RegExp");if(Hl!=="RegExp "&&(yr="".concat(Hl).concat(yr)),ct.length===0&&Bt===void 0||ut>ye.depth&&ye.depth!==null)return ye.stylize(yr,"regexp")}else if(Sg(me)){yr=mr(ke(me))?at(me):Ge(me);var gc=fn(dt,kt,"Date");if(gc!=="Date "&&(yr="".concat(gc).concat(yr)),ct.length===0&&Bt===void 0)return ye.stylize(yr,"date")}else if(Id(me)){if(yr=function(or,Hr,no,kr,Xr){var ho=or.name!=null?or.name:"Error",lr=js(kr,or);((function(ir,xn,In,kn){if(!ir.showHidden&&xn.length!==0)for(var Mn=0,Xo=["name","message","stack"];Mn<Xo.length;Mn++){var hi=Xo[Mn],mo=A(xn,hi);mo===-1||typeof In[hi]=="string"&&!ci(kn,In[hi])||Z(xn,mo,1);}}))(kr,Xr,or,lr),!("cause"in or)||Xr.length!==0&&V(Xr,"cause")||ce(Xr,"cause"),!$(or.errors)||Xr.length!==0&&V(Xr,"errors")||ce(Xr,"errors"),lr=function(ir,xn,In,kn){var Mn=In.length;if(typeof In!="string"&&(ir=YS(ir,"".concat(In),"".concat(In," [").concat(Qt(fn(xn,kn,"Error"),0,-1),"]"))),xn===null||sg(In,"Error")&&ag(ir,In)&&(ir.length===Mn||ir[Mn]===":"||ir[Mn]===`
`)){var Xo="Error";if(xn===null){var hi=ss(/^([A-Z][a-z_ A-Z0-9[\]()-]+)(?::|\n {4}at)/,ir)||ss(/^([a-z_A-Z0-9-]*Error)$/,ir);Mn=(Xo=hi?.[1]||"").length,Xo=Xo||"Error";}var mo=Qt(fn(xn,kn,Xo),0,-1);In!==mo&&(ir=ci(mo,In)?Mn===0?"".concat(mo,": ").concat(ir):"".concat(mo).concat(Qt(ir,Mn)):"".concat(mo," [").concat(In,"]").concat(Qt(ir,Mn)));}return ir}(lr,Hr,ho,no);var Cn=or.message&&Cl(lr,or.message)||-1;Cn!==-1&&(Cn+=or.message.length);var Do=Cl(lr,`
at`,Cn);if(Do===-1)lr="[".concat(lr,"]");else {var di=Qt(lr,0,Do),Bi=function(ir,xn,In){var kn,Mn=hd(In,`
`);try{kn=xn.cause;}catch{}if(kn!=null&&Id(kn)){var Xo=js(ir,kn),hi=Cl(Xo,`
at`);if(hi!==-1){var mo=ds(Mn,hd(Qt(Xo,hi+1),`
`)),ep=mo.len,Vl=mo.offset;if(ep>0){var tp=ep-2,Mg=" ... ".concat(tp," lines matching cause stack trace ...");Mn.splice(Vl+1,tp,ir.stylize(Mg,"undefined"));}}}return Mn}(kr,or,Qt(lr,Do+1));if(kr.colors){var ms,gs,Jo=function(){var ir;try{ir=process.cwd();}catch{return}return ir}(),ys=s(Bi);try{for(ys.s();!(gs=ys.n()).done;){var pi=gs.value,Zd=ss(s0,pi);if(Zd!==null&&Pg.exists(Zd[1]))di+=`
`.concat(kr.stylize(pi,"undefined"));else {if(di+=`
`,pi=Vo(kr,pi),Jo!==void 0){var zl=uc(kr,pi,Jo);zl===pi&&(zl=uc(kr,pi,ms=ms??Tg(Jo))),pi=zl;}di+=pi;}}}catch(ir){ys.e(ir);}finally{ys.f();}}else di+=`
`.concat(M(Bi,`
`));lr=di;}if(kr.indentationLvl!==0){var Ws=_a(" ",kr.indentationLvl);lr=pd(lr,`
`,`
`.concat(Ws));}return lr}(me,dt,kt,ye,ct),ct.length===0&&Bt===void 0)return yr}else if(pg(me)){var Fa=fn(dt,kt,kd(me)?"ArrayBuffer":"SharedArrayBuffer");if(Gn===void 0)Ir=Bd;else if(ct.length===0&&Bt===void 0)return Fa+"{ byteLength: ".concat(Aa(ye.stylize,me.byteLength,false)," }");Ot[0]="".concat(Fa,"{"),te(ct,"byteLength");}else if(mg(me))Ot[0]="".concat(fn(dt,kt,"DataView"),"{"),te(ct,"byteLength","byteOffset","buffer");else if(Rd(me))Ot[0]="".concat(fn(dt,kt,"Promise"),"{"),Ir=Ng;else if(Nd(me))Ot[0]="".concat(fn(dt,kt,"WeakSet"),"{"),Ir=ye.showHidden?Da:Wd;else if(Ca(me))Ot[0]="".concat(fn(dt,kt,"WeakMap"),"{"),Ir=ye.showHidden?$d:Wd;else if(No(me))Ot[0]="".concat(fn(dt,kt,"Module"),"{"),Ir=Li.bind(null,ct);else if(Od(me)){if(yr=function(or,Hr,no,kr,Xr){var ho,lr;oc(or)?(ho=co,lr="Number"):_g(or)?(ho=ZS,lr="String",no.splice(0,or.length)):kl(or)?(ho=rt,lr="Boolean"):Dd(or)?(ho=z,lr="BigInt"):(ho=md,lr="Symbol");var Cn="[".concat(lr);return lr!==kr&&(Cn+=kr===null?" (null prototype)":" (".concat(kr,")")),Cn+=": ".concat(fc(Fl,ho(or),Hr),"]"),Xr!==""&&Xr!==kr&&(Cn+=" [".concat(Xr,"]")),no.length!==0||Hr.stylize===Fl?Cn:Hr.stylize(Cn,JS(lr))}(me,ye,ct,dt,kt),ct.length===0&&Bt===void 0)return yr}else if(!function(or){return h=h??o(125),typeof or.href=="string"&&or instanceof h.URL}(me)||ut>ye.depth&&ye.depth!==null){if(ct.length===0&&Bt===void 0){if(gg(me)){var Dg=xd(me).toString(16);return ye.stylize("[External: ".concat(Dg,"]"),"special")}return "".concat(po(me,dt,kt),"{}")}Ot[0]="".concat(po(me,dt,kt),"{");}else if(ct=function(or){return b=b||Ln(new h.URL("http://user:pass@localhost:8080/?foo=bar#baz")),or.filter(function(Hr){return b[Hr]===-1})}(ct),yr=me.href,ct.length===0&&Bt===void 0)return yr}if(ut>ye.depth&&ye.depth!==null){var Wl=Qt(po(me,dt,kt),0,-1);return dt!==null&&(Wl="[".concat(Wl,"]")),ye.stylize(Wl,"special")}ut+=1,ye.seen.push(me),ye.currentDepth=ut;var Lg=ye.indentationLvl;try{for(dn=Ir(ye,me,ut),Mi=0;Mi<ct.leng