UNPKG

build-lz-options

Version:

Build LayerZero options with one command

34 lines (30 loc) 1.07 MB
'use strict'; var dD = require('assert'); var process$1 = require('process'); function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; } var dD__default = /*#__PURE__*/_interopDefault(dD); var lq=Object.create;var r_=Object.defineProperty;var cq=Object.getOwnPropertyDescriptor;var fq=Object.getOwnPropertyNames;var hq=Object.getPrototypeOf,dq=Object.prototype.hasOwnProperty;var pq=(e,t,r)=>t in e?r_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var it=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var mq=(e,t)=>()=>(e&&(t=e(e=0)),t);var H=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gq=(e,t)=>{for(var r in t)r_(e,r,{get:t[r],enumerable:!0});},YD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fq(t))!dq.call(e,i)&&i!==r&&r_(e,i,{get:()=>t[i],enumerable:!(n=cq(t,i))||n.enumerable});return e};var Wi=(e,t,r)=>(r=e!=null?lq(hq(e)):{},YD(t||!e||!e.__esModule?r_(r,"default",{value:e,enumerable:!0}):r,e)),_q=e=>YD(r_({},"__esModule",{value:!0}),e);var GD=(e,t,r)=>(pq(e,typeof t!="symbol"?t+"":t,r),r);var qo=H((kle,iM)=>{var dS=class e extends Error{constructor(t){super(`Format functions must be synchronous taking a two arguments: (info, opts) Found: ${t.toString().split(` `)[0]} `),Error.captureStackTrace(this,e);}};iM.exports=e=>{if(e.length>2)throw new dS(e);function t(n={}){this.options=n;}t.prototype.transform=e;function r(n){return new t(n)}return r.Format=t,r};});var uM=H((Vle,aM)=>{var oM={};aM.exports=oM;var sM={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(sM).forEach(function(e){var t=sM[e],r=oM[e]=[];r.open="\x1B["+t[0]+"m",r.close="\x1B["+t[1]+"m";});});var cM=H((Ule,lM)=>{lM.exports=function(e,t){t=t||process.argv||[];var r=t.indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(n+e);return i!==-1&&(r===-1?!0:i<r)};});var hM=H((Hle,fM)=>{var vq=it("os"),Vu=cM(),ho=process.env,fm=void 0;Vu("no-color")||Vu("no-colors")||Vu("color=false")?fm=!1:(Vu("color")||Vu("colors")||Vu("color=true")||Vu("color=always"))&&(fm=!0);"FORCE_COLOR"in ho&&(fm=ho.FORCE_COLOR.length===0||parseInt(ho.FORCE_COLOR,10)!==0);function yq(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Nq(e){if(fm===!1)return 0;if(Vu("color=16m")||Vu("color=full")||Vu("color=truecolor"))return 3;if(Vu("color=256"))return 2;if(e&&!e.isTTY&&fm!==!0)return 0;var t=fm?1:0;if(process.platform==="win32"){var r=vq.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ho)return ["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in ho})||ho.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in ho)return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ho.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in ho){var n=parseInt((ho.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ho.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return /-256(color)?$/i.test(ho.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(ho.TERM)||"COLORTERM"in ho?1:(ho.TERM==="dumb",t)}function pS(e){var t=Nq(e);return yq(t)}fM.exports={supportsColor:pS,stdout:pS(process.stdout),stderr:pS(process.stderr)};});var pM=H((qle,dM)=>{dM.exports=function(t,r){var n="";t=t||"Run the trap, drop the bass",t=t.split("");var i={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return t.forEach(function(s){s=s.toLowerCase();var a=i[s]||[" "],f=Math.floor(Math.random()*a.length);typeof i[s]!="undefined"?n+=i[s][f]:n+=s;}),n};});var gM=H((jle,mM)=>{mM.exports=function(t,r){t=t||" he is here ";var n={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},i=[].concat(n.up,n.down,n.mid);function s(p){var g=Math.floor(Math.random()*p);return g}function a(p){var g=!1;return i.filter(function(S){g=S===p;}),g}function f(p,g){var S="",y,O;g=g||{},g.up=typeof g.up!="undefined"?g.up:!0,g.mid=typeof g.mid!="undefined"?g.mid:!0,g.down=typeof g.down!="undefined"?g.down:!0,g.size=typeof g.size!="undefined"?g.size:"maxi",p=p.split("");for(O in p)if(!a(O)){switch(S=S+p[O],y={up:0,down:0,mid:0},g.size){case"mini":y.up=s(8),y.mid=s(2),y.down=s(8);break;case"maxi":y.up=s(16)+3,y.mid=s(4)+1,y.down=s(64)+3;break;default:y.up=s(8)+1,y.mid=s(6)/2,y.down=s(8)+1;break}var x=["up","mid","down"];for(var U in x)for(var te=x[U],se=0;se<=y[te];se++)g[te]&&(S=S+n[te][s(n[te].length)]);}return S}return f(t,r)};});var EM=H(($le,_M)=>{_M.exports=function(e){return function(t,r,n){if(t===" ")return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}};});var vM=H((Yle,TM)=>{TM.exports=function(e){return function(t,r,n){return r%2===0?t:e.inverse(t)}};});var NM=H((Gle,yM)=>{yM.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){return r===" "?r:e[t[n++%t.length]](r)}};});var AM=H((Wle,SM)=>{SM.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return r===" "?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}};});var RM=H((Xle,MM)=>{var Ar={};MM.exports=Ar;Ar.themes={};var Sq=it("util"),Cd=Ar.styles=uM(),wM=Object.defineProperties,Aq=new RegExp(/[\r\n]+/g);Ar.supportsColor=hM().supportsColor;typeof Ar.enabled=="undefined"&&(Ar.enabled=Ar.supportsColor()!==!1);Ar.enable=function(){Ar.enabled=!0;};Ar.disable=function(){Ar.enabled=!1;};Ar.stripColors=Ar.strip=function(e){return (""+e).replace(/\x1B\[\d+m/g,"")};Ar.stylize=function(t,r){if(!Ar.enabled)return t+"";var n=Cd[r];return !n&&r in Ar?Ar[r](t):n.open+t+n.close};var bq=/[|\\{}()[\]^$+*?.]/g,wq=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(bq,"\\$&")};function OM(e){var t=function r(){return Dq.apply(r,arguments)};return t._styles=e,t.__proto__=Oq,t}var DM=function(){var e={};return Cd.grey=Cd.gray,Object.keys(Cd).forEach(function(t){Cd[t].closeRe=new RegExp(wq(Cd[t].close),"g"),e[t]={get:function(){return OM(this._styles.concat(t))}};}),e}(),Oq=wM(function(){},DM);function Dq(){var e=Array.prototype.slice.call(arguments),t=e.map(function(a){return a!=null&&a.constructor===String?a:Sq.inspect(a)}).join(" ");if(!Ar.enabled||!t)return t;for(var r=t.indexOf(` `)!=-1,n=this._styles,i=n.length;i--;){var s=Cd[n[i]];t=s.open+t.replace(s.closeRe,s.open)+s.close,r&&(t=t.replace(Aq,function(a){return s.close+a+s.open}));}return t}Ar.setTheme=function(e){if(typeof e=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var t in e)(function(r){Ar[r]=function(n){if(typeof e[r]=="object"){var i=n;for(var s in e[r])i=Ar[e[r][s]](i);return i}return Ar[e[r]](n)};})(t);};function Mq(){var e={};return Object.keys(DM).forEach(function(t){e[t]={get:function(){return OM([t])}};}),e}var Rq=function(t,r){var n=r.split("");return n=n.map(t),n.join("")};Ar.trap=pM();Ar.zalgo=gM();Ar.maps={};Ar.maps.america=EM()(Ar);Ar.maps.zebra=vM()(Ar);Ar.maps.rainbow=NM()(Ar);Ar.maps.random=AM()(Ar);for(bM in Ar.maps)(function(e){Ar[e]=function(t){return Rq(Ar.maps[e],t)};})(bM);var bM;wM(Ar,Mq());});var mS=H((Zle,xM)=>{var xq=RM();xM.exports=xq;});var CM=H(gS=>{gS.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};gS.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"};});var IM=H(_S=>{_S.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};_S.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"};});var LM=H(ES=>{ES.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};ES.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"};});var PM=H(YE=>{Object.defineProperty(YE,"cli",{value:CM()});Object.defineProperty(YE,"npm",{value:IM()});Object.defineProperty(YE,"syslog",{value:LM()});});var zi=H(n_=>{Object.defineProperty(n_,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(n_,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(n_,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(n_,"configs",{value:PM()});});var zE=H((rce,WE)=>{var yS=mS(),{LEVEL:TS,MESSAGE:vS}=zi();yS.enabled=!0;var BM=/\s+/,GE=class e{constructor(t={}){t.colors&&this.addColors(t.colors),this.options=t;}static addColors(t){let r=Object.keys(t).reduce((n,i)=>(n[i]=BM.test(t[i])?t[i].split(BM):t[i],n),{});return e.allColors=Object.assign({},e.allColors||{},r),e.allColors}addColors(t){return e.addColors(t)}colorize(t,r,n){if(typeof n=="undefined"&&(n=r),!Array.isArray(e.allColors[t]))return yS[e.allColors[t]](n);for(let i=0,s=e.allColors[t].length;i<s;i++)n=yS[e.allColors[t][i]](n);return n}transform(t,r){return r.all&&typeof t[vS]=="string"&&(t[vS]=this.colorize(t[TS],t.level,t[vS])),(r.level||r.all||!r.message)&&(t.level=this.colorize(t[TS],t.level)),(r.all||r.message)&&(t.message=this.colorize(t[TS],t.level,t.message)),t}};WE.exports=e=>new GE(e);WE.exports.Colorizer=WE.exports.Format=GE;});var kM=H((nce,FM)=>{var{Colorizer:Cq}=zE();FM.exports=e=>(Cq.addColors(e.colors||e),e);});var UM=H((ice,VM)=>{var Iq=qo();VM.exports=Iq(e=>(e.message=` ${e.message}`,e));});var jM=H((sce,qM)=>{var Lq=qo(),{LEVEL:HM,MESSAGE:NS}=zi();qM.exports=Lq((e,{stack:t,cause:r})=>{if(e instanceof Error){let i=Object.assign({},e,{level:e.level,[HM]:e[HM]||e.level,message:e.message,[NS]:e[NS]||e.message});return t&&(i.stack=e.stack),r&&(i.cause=e.cause),i}if(!(e.message instanceof Error))return e;let n=e.message;return Object.assign(e,n),e.message=n.message,e[NS]=n.message,t&&(e.stack=n.stack),r&&(e.cause=n.cause),e});});var AS=H((oce,ZE)=>{var{configs:Pq,LEVEL:$M,MESSAGE:SS}=zi(),XE=class e{constructor(t={levels:Pq.npm.levels}){this.paddings=e.paddingForLevels(t.levels,t.filler),this.options=t;}static getLongestLevel(t){let r=Object.keys(t).map(n=>n.length);return Math.max(...r)}static paddingForLevel(t,r,n){let i=n+1-t.length,s=Math.floor(i/r.length);return `${r}${r.repeat(s)}`.slice(0,i)}static paddingForLevels(t,r=" "){let n=e.getLongestLevel(t);return Object.keys(t).reduce((i,s)=>(i[s]=e.paddingForLevel(s,r,n),i),{})}transform(t,r){return t.message=`${this.paddings[t[$M]]}${t.message}`,t[SS]&&(t[SS]=`${this.paddings[t[$M]]}${t[SS]}`),t}};ZE.exports=e=>new XE(e);ZE.exports.Padder=ZE.exports.Format=XE;});var YM=H((ace,bS)=>{var{Colorizer:Bq}=zE(),{Padder:Fq}=AS(),{configs:kq,MESSAGE:Vq}=zi(),KE=class{constructor(t={}){t.levels||(t.levels=kq.cli.levels),this.colorizer=new Bq(t),this.padder=new Fq(t),this.options=t;}transform(t,r){return this.colorizer.transform(this.padder.transform(t,r),r),t[Vq]=`${t.level}:${t.message}`,t}};bS.exports=e=>new KE(e);bS.exports.Format=KE;});var WM=H((uce,wS)=>{var Uq=qo();function GM(e){if(e.every(Hq))return t=>{let r=t;for(let n=0;n<e.length;n++)if(r=e[n].transform(r,e[n].options),!r)return !1;return r}}function Hq(e){if(typeof e.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(` `));return !0}wS.exports=(...e)=>{let t=Uq(GM(e)),r=t();return r.Format=t.Format,r};wS.exports.cascade=GM;});var i_=H((RS,KM)=>{var{hasOwnProperty:JE}=Object.prototype,Ld=MS();Ld.configure=MS;Ld.stringify=Ld;Ld.default=Ld;RS.stringify=Ld;RS.configure=MS;KM.exports=Ld;var qq=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function _h(e){return e.length<5e3&&!qq.test(e)?`"${e}"`:JSON.stringify(e)}function OS(e){if(e.length>200)return e.sort();for(let t=1;t<e.length;t++){let r=e[t],n=t;for(;n!==0&&e[n-1]>r;)e[n]=e[n-1],n--;e[n]=r;}return e}var jq=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function DS(e){return jq.call(e)!==void 0&&e.length!==0}function zM(e,t,r){e.length<r&&(r=e.length);let n=t===","?"":" ",i=`"0":${n}${e[0]}`;for(let s=1;s<r;s++)i+=`${t}"${s}":${n}${e[s]}`;return i}function $q(e){if(JE.call(e,"circularValue")){let t=e.circularValue;if(typeof t=="string")return `"${t}"`;if(t==null)return t;if(t===Error||t===TypeError)return {toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return '"[Circular]"'}function XM(e,t){let r;if(JE.call(e,t)&&(r=e[t],typeof r!="boolean"))throw new TypeError(`The "${t}" argument must be of type boolean`);return r===void 0?!0:r}function ZM(e,t){let r;if(JE.call(e,t)){if(r=e[t],typeof r!="number")throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${t}" argument must be an integer`);if(r<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return r===void 0?1/0:r}function Id(e){return e===1?"1 item":`${e} items`}function Yq(e){let t=new Set;for(let r of e)(typeof r=="string"||typeof r=="number")&&t.add(String(r));return t}function Gq(e){if(JE.call(e,"strict")){let t=e.strict;if(typeof t!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(t)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}function MS(e){e={...e};let t=Gq(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let r=$q(e),n=XM(e,"bigint"),i=XM(e,"deterministic"),s=ZM(e,"maximumDepth"),a=ZM(e,"maximumBreadth");function f(O,x,U,te,se,ae){let oe=x[O];switch(typeof oe=="object"&&oe!==null&&typeof oe.toJSON=="function"&&(oe=oe.toJSON(O)),oe=te.call(x,O,oe),typeof oe){case"string":return _h(oe);case"object":{if(oe===null)return "null";if(U.indexOf(oe)!==-1)return r;let Ne="",Ee=",",Me=ae;if(Array.isArray(oe)){if(oe.length===0)return "[]";if(s<U.length+1)return '"[Array]"';U.push(oe),se!==""&&(ae+=se,Ne+=` ${ae}`,Ee=`, ${ae}`);let st=Math.min(oe.length,a),rt=0;for(;rt<st-1;rt++){let E=f(String(rt),oe,U,te,se,ae);Ne+=E!==void 0?E:"null",Ne+=Ee;}let k=f(String(rt),oe,U,te,se,ae);if(Ne+=k!==void 0?k:"null",oe.length-1>a){let E=oe.length-a-1;Ne+=`${Ee}"... ${Id(E)} not stringified"`;}return se!==""&&(Ne+=` ${Me}`),U.pop(),`[${Ne}]`}let Ce=Object.keys(oe),De=Ce.length;if(De===0)return "{}";if(s<U.length+1)return '"[Object]"';let He="",Fe="";se!==""&&(ae+=se,Ee=`, ${ae}`,He=" ");let Ut=Math.min(De,a);i&&!DS(oe)&&(Ce=OS(Ce)),U.push(oe);for(let st=0;st<Ut;st++){let rt=Ce[st],k=f(rt,oe,U,te,se,ae);k!==void 0&&(Ne+=`${Fe}${_h(rt)}:${He}${k}`,Fe=Ee);}if(De>a){let st=De-a;Ne+=`${Fe}"...":${He}"${Id(st)} not stringified"`,Fe=Ee;}return se!==""&&Fe.length>1&&(Ne=` ${ae}${Ne} ${Me}`),U.pop(),`{${Ne}}`}case"number":return isFinite(oe)?String(oe):t?t(oe):"null";case"boolean":return oe===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(oe);default:return t?t(oe):void 0}}function p(O,x,U,te,se,ae){switch(typeof x=="object"&&x!==null&&typeof x.toJSON=="function"&&(x=x.toJSON(O)),typeof x){case"string":return _h(x);case"object":{if(x===null)return "null";if(U.indexOf(x)!==-1)return r;let oe=ae,Ne="",Ee=",";if(Array.isArray(x)){if(x.length===0)return "[]";if(s<U.length+1)return '"[Array]"';U.push(x),se!==""&&(ae+=se,Ne+=` ${ae}`,Ee=`, ${ae}`);let De=Math.min(x.length,a),He=0;for(;He<De-1;He++){let Ut=p(String(He),x[He],U,te,se,ae);Ne+=Ut!==void 0?Ut:"null",Ne+=Ee;}let Fe=p(String(He),x[He],U,te,se,ae);if(Ne+=Fe!==void 0?Fe:"null",x.length-1>a){let Ut=x.length-a-1;Ne+=`${Ee}"... ${Id(Ut)} not stringified"`;}return se!==""&&(Ne+=` ${oe}`),U.pop(),`[${Ne}]`}U.push(x);let Me="";se!==""&&(ae+=se,Ee=`, ${ae}`,Me=" ");let Ce="";for(let De of te){let He=p(De,x[De],U,te,se,ae);He!==void 0&&(Ne+=`${Ce}${_h(De)}:${Me}${He}`,Ce=Ee);}return se!==""&&Ce.length>1&&(Ne=` ${ae}${Ne} ${oe}`),U.pop(),`{${Ne}}`}case"number":return isFinite(x)?String(x):t?t(x):"null";case"boolean":return x===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(x);default:return t?t(x):void 0}}function g(O,x,U,te,se){switch(typeof x){case"string":return _h(x);case"object":{if(x===null)return "null";if(typeof x.toJSON=="function"){if(x=x.toJSON(O),typeof x!="object")return g(O,x,U,te,se);if(x===null)return "null"}if(U.indexOf(x)!==-1)return r;let ae=se;if(Array.isArray(x)){if(x.length===0)return "[]";if(s<U.length+1)return '"[Array]"';U.push(x),se+=te;let He=` ${se}`,Fe=`, ${se}`,Ut=Math.min(x.length,a),st=0;for(;st<Ut-1;st++){let k=g(String(st),x[st],U,te,se);He+=k!==void 0?k:"null",He+=Fe;}let rt=g(String(st),x[st],U,te,se);if(He+=rt!==void 0?rt:"null",x.length-1>a){let k=x.length-a-1;He+=`${Fe}"... ${Id(k)} not stringified"`;}return He+=` ${ae}`,U.pop(),`[${He}]`}let oe=Object.keys(x),Ne=oe.length;if(Ne===0)return "{}";if(s<U.length+1)return '"[Object]"';se+=te;let Ee=`, ${se}`,Me="",Ce="",De=Math.min(Ne,a);DS(x)&&(Me+=zM(x,Ee,a),oe=oe.slice(x.length),De-=x.length,Ce=Ee),i&&(oe=OS(oe)),U.push(x);for(let He=0;He<De;He++){let Fe=oe[He],Ut=g(Fe,x[Fe],U,te,se);Ut!==void 0&&(Me+=`${Ce}${_h(Fe)}: ${Ut}`,Ce=Ee);}if(Ne>a){let He=Ne-a;Me+=`${Ce}"...": "${Id(He)} not stringified"`,Ce=Ee;}return Ce!==""&&(Me=` ${se}${Me} ${ae}`),U.pop(),`{${Me}}`}case"number":return isFinite(x)?String(x):t?t(x):"null";case"boolean":return x===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(x);default:return t?t(x):void 0}}function S(O,x,U){switch(typeof x){case"string":return _h(x);case"object":{if(x===null)return "null";if(typeof x.toJSON=="function"){if(x=x.toJSON(O),typeof x!="object")return S(O,x,U);if(x===null)return "null"}if(U.indexOf(x)!==-1)return r;let te="";if(Array.isArray(x)){if(x.length===0)return "[]";if(s<U.length+1)return '"[Array]"';U.push(x);let Ee=Math.min(x.length,a),Me=0;for(;Me<Ee-1;Me++){let De=S(String(Me),x[Me],U);te+=De!==void 0?De:"null",te+=",";}let Ce=S(String(Me),x[Me],U);if(te+=Ce!==void 0?Ce:"null",x.length-1>a){let De=x.length-a-1;te+=`,"... ${Id(De)} not stringified"`;}return U.pop(),`[${te}]`}let se=Object.keys(x),ae=se.length;if(ae===0)return "{}";if(s<U.length+1)return '"[Object]"';let oe="",Ne=Math.min(ae,a);DS(x)&&(te+=zM(x,",",a),se=se.slice(x.length),Ne-=x.length,oe=","),i&&(se=OS(se)),U.push(x);for(let Ee=0;Ee<Ne;Ee++){let Me=se[Ee],Ce=S(Me,x[Me],U);Ce!==void 0&&(te+=`${oe}${_h(Me)}:${Ce}`,oe=",");}if(ae>a){let Ee=ae-a;te+=`${oe}"...":"${Id(Ee)} not stringified"`;}return U.pop(),`{${te}}`}case"number":return isFinite(x)?String(x):t?t(x):"null";case"boolean":return x===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(x);default:return t?t(x):void 0}}function y(O,x,U){if(arguments.length>1){let te="";if(typeof U=="number"?te=" ".repeat(Math.min(U,10)):typeof U=="string"&&(te=U.slice(0,10)),x!=null){if(typeof x=="function")return f("",{"":O},[],x,te,"");if(Array.isArray(x))return p("",O,[],Yq(x),te,"")}if(te.length!==0)return g("",O,[],te,"")}return S("",O,[])}return y}});var xS=H((lce,JM)=>{var Wq=qo(),{MESSAGE:zq}=zi(),Xq=i_();function Zq(e,t){return typeof t=="bigint"?t.toString():t}JM.exports=Wq((e,t)=>{let r=Xq.configure(t);return e[zq]=r(e,t.replacer||Zq,t.space),e});});var eR=H((cce,QM)=>{var Kq=qo();QM.exports=Kq((e,t)=>t.message?(e.message=`[${t.label}] ${e.message}`,e):(e.label=t.label,e));});var rR=H((fce,tR)=>{var Jq=qo(),{MESSAGE:Qq}=zi(),ej=i_();tR.exports=Jq(e=>{let t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[Qq]=ej(t),e});});var iR=H((hce,nR)=>{var tj=qo();function rj(e,t,r){let n=t.reduce((s,a)=>(s[a]=e[a],delete e[a],s),{}),i=Object.keys(e).reduce((s,a)=>(s[a]=e[a],delete e[a],s),{});return Object.assign(e,n,{[r]:i}),e}function nj(e,t,r){return e[r]=t.reduce((n,i)=>(n[i]=e[i],delete e[i],n),{}),e}nR.exports=tj((e,t={})=>{let r="metadata";t.key&&(r=t.key);let n=[];return !t.fillExcept&&!t.fillWith&&(n.push("level"),n.push("message")),t.fillExcept&&(n=t.fillExcept),n.length>0?rj(e,n,r):t.fillWith?nj(e,t.fillWith,r):e});});var oR=H((dce,sR)=>{var hm=1e3,dm=hm*60,pm=dm*60,Pd=pm*24,ij=Pd*7,sj=Pd*365.25;sR.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return oj(e);if(r==="number"&&isFinite(e))return t.long?uj(e):aj(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function oj(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*sj;case"weeks":case"week":case"w":return r*ij;case"days":case"day":case"d":return r*Pd;case"hours":case"hour":case"hrs":case"hr":case"h":return r*pm;case"minutes":case"minute":case"mins":case"min":case"m":return r*dm;case"seconds":case"second":case"secs":case"sec":case"s":return r*hm;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function aj(e){var t=Math.abs(e);return t>=Pd?Math.round(e/Pd)+"d":t>=pm?Math.round(e/pm)+"h":t>=dm?Math.round(e/dm)+"m":t>=hm?Math.round(e/hm)+"s":e+"ms"}function uj(e){var t=Math.abs(e);return t>=Pd?QE(e,t,Pd,"day"):t>=pm?QE(e,t,pm,"hour"):t>=dm?QE(e,t,dm,"minute"):t>=hm?QE(e,t,hm,"second"):e+" ms"}function QE(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var uR=H((s_,aR)=>{var lj=qo(),cj=oR();aR.exports=lj(e=>{let t=+new Date;return s_.diff=t-(s_.prevTime||t),s_.prevTime=t,e.ms=`+${cj(s_.diff)}`,e});});var fR=H((pce,cR)=>{var fj=it("util").inspect,hj=qo(),{LEVEL:dj,MESSAGE:lR,SPLAT:pj}=zi();cR.exports=hj((e,t={})=>{let r=Object.assign({},e);return delete r[dj],delete r[lR],delete r[pj],e[lR]=fj(r,!1,t.depth||null,t.colorize),e});});var hR=H((mce,tT)=>{var{MESSAGE:mj}=zi(),eT=class{constructor(t){this.template=t;}transform(t){return t[mj]=this.template(t),t}};tT.exports=e=>new eT(e);tT.exports.Printf=tT.exports.Format=eT;});var mR=H((gce,pR)=>{var gj=qo(),{MESSAGE:dR}=zi(),_j=i_();pR.exports=gj(e=>{let t=_j(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),r=e.padding&&e.padding[e.level]||"";return t!=="{}"?e[dR]=`${e.level}:${r} ${e.message} ${t}`:e[dR]=`${e.level}:${r} ${e.message}`,e});});var ER=H((_ce,_R)=>{var Ej=it("util"),{SPLAT:gR}=zi(),Tj=/%[scdjifoO%]/g,vj=/%%/g,CS=class{constructor(t){this.options=t;}_splat(t,r){let n=t.message,i=t[gR]||t.splat||[],s=n.match(vj),a=s&&s.length||0,p=r.length-a-i.length,g=p<0?i.splice(p,-1*p):[],S=g.length;if(S)for(let y=0;y<S;y++)Object.assign(t,g[y]);return t.message=Ej.format(n,...i),t}transform(t){let r=t.message,n=t[gR]||t.splat;if(!n||!n.length)return t;let i=r&&r.match&&r.match(Tj);if(!i&&(n||n.length)){let s=n.length>1?n.splice(0):n,a=s.length;if(a)for(let f=0;f<a;f++)Object.assign(t,s[f]);return t}return i?this._splat(t,i):t}};_R.exports=e=>new CS(e);});var PR={};gq(PR,{assign:()=>vh,default:()=>Dj,defaultI18n:()=>IS,format:()=>IR,parse:()=>LR,setGlobalDateI18n:()=>xR,setGlobalDateMasks:()=>CR});function DR(e,t){for(var r=[],n=0,i=e.length;n<i;n++)r.push(e[n].substr(0,t));return r}function vh(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var s=i[n];for(var a in s)e[a]=s[a];}return e}function LR(e,t,r){if(r===void 0&&(r={}),typeof t!="string")throw new Error("Invalid format in fecha parse");if(t=nT[t]||t,e.length>1e3)return null;var n=new Date,i={year:n.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],a=[],f=t.replace(OR,function(Ee,Me){return a.push(vR(Me)),"@@@"}),p={},g={};f=vR(f).replace(wR,function(Ee){var Me=wj[Ee],Ce=Me[0],De=Me[1],He=Me[3];if(p[Ce])throw new Error("Invalid format. "+Ce+" specified twice in format");return p[Ce]=!0,He&&(g[He]=!0),s.push(Me),"("+De+")"}),Object.keys(g).forEach(function(Ee){if(!p[Ee])throw new Error("Invalid format. "+Ee+" is required in specified format")}),f=f.replace(/@@@/g,function(){return a.shift()});var S=e.match(new RegExp(f,"i"));if(!S)return null;for(var y=vh(vh({},rT),r),O=1;O<S.length;O++){var x=s[O-1],U=x[0],te=x[2],se=te?te(S[O],y):+S[O];if(se==null)return null;i[U]=se;}i.isPm===1&&i.hour!=null&&+i.hour!=12?i.hour=+i.hour+12:i.isPm===0&&+i.hour==12&&(i.hour=0);var ae;if(i.timezoneOffset==null){ae=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var oe=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],O=0,Ne=oe.length;O<Ne;O++)if(p[oe[O][0]]&&i[oe[O][0]]!==ae[oe[O][1]]())return null}else if(ae=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return ae}var wR,Th,Eh,yj,Nj,o_,OR,TR,MR,RR,Sj,Aj,IS,rT,xR,vR,jo,bj,yR,NR,SR,AR,bR,wj,nT,CR,IR,Oj,Dj,BR=mq(()=>{wR=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Th="\\d\\d?",Eh="\\d\\d",yj="\\d{3}",Nj="\\d{4}",o_="[^\\s]+",OR=/\[([^]*?)\]/gm;TR=function(e){return function(t,r){var n=r[e].map(function(s){return s.toLowerCase()}),i=n.indexOf(t.toLowerCase());return i>-1?i:null}};MR=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],RR=["January","February","March","April","May","June","July","August","September","October","November","December"],Sj=DR(RR,3),Aj=DR(MR,3),IS={dayNamesShort:Aj,dayNames:MR,monthNamesShort:Sj,monthNames:RR,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},rT=vh({},IS),xR=function(e){return rT=vh(rT,e)},vR=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},jo=function(e,t){for(t===void 0&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},bj={D:function(e){return String(e.getDate())},DD:function(e){return jo(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return jo(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return jo(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return jo(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return jo(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return jo(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return jo(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return jo(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return jo(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return jo(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return jo(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return (t>0?"-":"+")+jo(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return (t>0?"-":"+")+jo(Math.floor(Math.abs(t)/60),2)+":"+jo(Math.abs(t)%60,2)}},yR=function(e){return +e-1},NR=[null,Th],SR=[null,o_],AR=["isPm",o_,function(e,t){var r=e.toLowerCase();return r===t.amPm[0]?0:r===t.amPm[1]?1:null}],bR=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var r=+t[1]*60+parseInt(t[2],10);return t[0]==="+"?r:-r}return 0}],wj={D:["day",Th],DD:["day",Eh],Do:["day",Th+o_,function(e){return parseInt(e,10)}],M:["month",Th,yR],MM:["month",Eh,yR],YY:["year",Eh,function(e){var t=new Date,r=+(""+t.getFullYear()).substr(0,2);return +(""+(+e>68?r-1:r)+e)}],h:["hour",Th,void 0,"isPm"],hh:["hour",Eh,void 0,"isPm"],H:["hour",Th],HH:["hour",Eh],m:["minute",Th],mm:["minute",Eh],s:["second",Th],ss:["second",Eh],YYYY:["year",Nj],S:["millisecond","\\d",function(e){return +e*100}],SS:["millisecond",Eh,function(e){return +e*10}],SSS:["millisecond",yj],d:NR,dd:NR,ddd:SR,dddd:SR,MMM:["month",o_,TR("monthNamesShort")],MMMM:["month",o_,TR("monthNames")],a:AR,A:AR,ZZ:bR,Z:bR},nT={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},CR=function(e){return vh(nT,e)},IR=function(e,t,r){if(t===void 0&&(t=nT.default),r===void 0&&(r={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=nT[t]||t;var n=[];t=t.replace(OR,function(s,a){return n.push(a),"@@@"});var i=vh(vh({},rT),r);return t=t.replace(wR,function(s){return bj[s](e,i)}),t.replace(/@@@/g,function(){return n.shift()})};Oj={format:IR,parse:LR,defaultI18n:IS,setGlobalDateI18n:xR,setGlobalDateMasks:CR},Dj=Oj;});var kR=H((Ece,FR)=>{var Mj=(BR(),_q(PR)),Rj=qo();FR.exports=Rj((e,t={})=>(t.format&&(e.timestamp=typeof t.format=="function"?t.format():Mj.format(new Date,t.format)),e.timestamp||(e.timestamp=new Date().toISOString()),t.alias&&(e[t.alias]=e.timestamp),e));});var UR=H((Tce,VR)=>{var LS=mS(),xj=qo(),{MESSAGE:PS}=zi();VR.exports=xj((e,t)=>(t.level!==!1&&(e.level=LS.strip(e.level)),t.message!==!1&&(e.message=LS.strip(String(e.message))),t.raw!==!1&&e[PS]&&(e[PS]=LS.strip(String(e[PS]))),e));});var FS=H(BS=>{var Cj=BS.format=qo();BS.levels=kM();function Ds(e,t){Object.defineProperty(Cj,e,{get(){return t()},configurable:!0});}Ds("align",function(){return UM()});Ds("errors",function(){return jM()});Ds("cli",function(){return YM()});Ds("combine",function(){return WM()});Ds("colorize",function(){return zE()});Ds("json",function(){return xS()});Ds("label",function(){return eR()});Ds("logstash",function(){return rR()});Ds("metadata",function(){return iR()});Ds("ms",function(){return uR()});Ds("padLevels",function(){return AS()});Ds("prettyPrint",function(){return fR()});Ds("printf",function(){return hR()});Ds("simple",function(){return mR()});Ds("splat",function(){return ER()});Ds("timestamp",function(){return kR()});Ds("uncolorize",function(){return UR()});});var kS=H(iT=>{var{format:HR}=it("util");iT.warn={deprecated(e){return ()=>{throw new Error(HR("{ %s } was removed in winston@3.0.0.",e))}},useFormat(e){return ()=>{throw new Error([HR("{ %s } was removed in winston@3.0.0.",e),"Use a custom winston.format = winston.format(function) instead."].join(` `))}},forFunctions(e,t,r){r.forEach(n=>{e[n]=iT.warn[t](n);});},forProperties(e,t,r){r.forEach(n=>{let i=iT.warn[t](n);Object.defineProperty(e,n,{get:i,set:i});});}};});var qR=H((Nce,Ij)=>{Ij.exports={name:"winston",description:"A logger for just about everything.",version:"3.11.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.5.0"},devDependencies:{"@babel/cli":"^7.17.0","@babel/core":"^7.17.2","@babel/preset-env":"^7.16.7","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.3.1","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.9.0",hock:"^1.4.1",mocha:"8.1.3",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^1.0.1",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"};});var $R=H((Sce,jR)=>{jR.exports=it("util").deprecate;});var VS=H((Ace,YR)=>{YR.exports=it("stream");});var HS=H((bce,WR)=>{function Lj(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(US,this,e)):process.nextTick(US,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(sT,r):(r._writableState.errorEmitted=!0,process.nextTick(GR,r,s)):process.nextTick(GR,r,s):t?(process.nextTick(sT,r),t(s)):process.nextTick(sT,r);}),this)}function GR(e,t){US(e,t),sT(e);}function sT(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close");}function Pj(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1);}function US(e,t){e.emit("error",t);}function Bj(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t);}WR.exports={destroy:Lj,undestroy:Pj,errorOrDestroy:Bj};});var yh=H((wce,ZR)=>{var XR={};function iu(e,t,r){r||(r=Error);function n(s,a,f){return typeof t=="string"?t:t(s,a,f)}class i extends r{constructor(a,f,p){super(n(a,f,p));}}i.prototype.name=r.name,i.prototype.code=e,XR[e]=i;}function zR(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return `of ${t} ${String(e)}`}function Fj(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function kj(e,t,r){return (r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Vj(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}iu("ERR_INVALID_OPT_VALUE",function(e,t){return 'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);iu("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&Fj(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(kj(e," argument"))i=`The ${e} ${n} ${zR(t,"type")}`;else {let s=Vj(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${zR(t,"type")}`;}return i+=`. Received type ${typeof r}`,i},TypeError);iu("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");iu("ERR_METHOD_NOT_IMPLEMENTED",function(e){return "The "+e+" method is not implemented"});iu("ERR_STREAM_PREMATURE_CLOSE","Premature close");iu("ERR_STREAM_DESTROYED",function(e){return "Cannot call "+e+" after a stream was destroyed"});iu("ERR_MULTIPLE_CALLBACK","Callback called multiple times");iu("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");iu("ERR_STREAM_WRITE_AFTER_END","write after end");iu("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);iu("ERR_UNKNOWN_ENCODING",function(e){return "Unknown encoding: "+e},TypeError);iu("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ZR.exports.codes=XR;});var qS=H((Oce,KR)=>{var Uj=yh().codes.ERR_INVALID_OPT_VALUE;function Hj(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function qj(e,t,r,n){var i=Hj(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Uj(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}KR.exports={getHighWaterMark:qj};});var JR=H((Dce,jS)=>{typeof Object.create=="function"?jS.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}));}:jS.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t;}};});var mm=H((Mce,YS)=>{try{if($S=it("util"),typeof $S.inherits!="function")throw "";YS.exports=$S.inherits;}catch(e){YS.exports=JR();}var $S;});var ix=H((Rce,nx)=>{function QR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n);}return r}function ex(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QR(Object(r),!0).forEach(function(n){jj(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function jj(e,t,r){return t=rx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rx(n.key),n);}}function Yj(e,t,r){return t&&tx(e.prototype,t),r&&tx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rx(e){var t=Gj(e,"string");return typeof t=="symbol"?t:String(t)}function Gj(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}var Wj=it("buffer"),oT=Wj.Buffer,zj=it("util"),GS=zj.inspect,Xj=GS&&GS.custom||"inspect";function Zj(e,t,r){oT.prototype.copy.call(e,t,r);}nx.exports=function(){function e(){$j(this,e),this.head=null,this.tail=null,this.length=0;}return Yj(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length;}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length;}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0;}},{key:"join",value:function(r){if(this.length===0)return "";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return oT.alloc(0);for(var n=oT.allocUnsafe(r>>>0),i=this.head,s=0;i;)Zj(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var a=n.data,f=r>a.length?a.length:r;if(f===a.length?s+=a:s+=a.slice(0,r),r-=f,r===0){f===a.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(f));break}++i;}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=oT.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var a=i.data,f=r>a.length?a.length:r;if(a.copy(n,n.length-r,0,f),r-=f,r===0){f===a.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(f));break}++s;}return this.length-=s,n}},{key:Xj,value:function(r,n){return GS(this,ex(ex({},n),{},{depth:0,customInspect:!1}))}}]),e}();});var ax=H((WS,ox)=>{var aT=it("buffer"),Vl=aT.Buffer;function sx(e,t){for(var r in e)t[r]=e[r];}Vl.from&&Vl.alloc&&Vl.allocUnsafe&&Vl.allocUnsafeSlow?ox.exports=aT:(sx(aT,WS),WS.Buffer=Bd);function Bd(e,t,r){return Vl(e,t,r)}Bd.prototype=Object.create(Vl.prototype);sx(Vl,Bd);Bd.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Vl(e,t,r)};Bd.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Vl(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Bd.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Vl(e)};Bd.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return aT.SlowBuffer(e)};});var ZS=H(lx=>{var XS=ax().Buffer,ux=XS.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return !0;default:return !1}};function Kj(e){if(!e)return "utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return "utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return "utf16le";case"latin1":case"binary":return "latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0;}}function Jj(e){var t=Kj(e);if(typeof t!="string"&&(XS.isEncoding===ux||!ux(e)))throw new Error("Unknown encoding: "+e);return t||e}lx.StringDecoder=a_;function a_(e){this.encoding=Jj(e);var t;switch(this.encoding){case"utf16le":this.text=i9,this.end=s9,t=4;break;case"utf8":this.fillLast=t9,t=4;break;case"base64":this.text=o9,this.end=a9,t=3;break;default:this.write=u9,this.end=l9;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=XS.allocUnsafe(t);}a_.prototype.write=function(e){if(e.length===0)return "";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return "";r=this.lastNeed,this.lastNeed=0;}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};a_.prototype.end=n9;a_.prototype.text=r9;a_.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length;};function zS(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Qj(e,t,r){var n=t.length-1;if(n<r)return 0;var i=zS(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=zS(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=zS(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function e9(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function t9(e){var t=this.lastTotal-this.lastNeed,r=e9(this,e);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length;}function r9(e,t){var r=Qj(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function n9(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function i9(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function s9(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function o9(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function a9(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u9(e){return e.toString(this.encoding)}function l9(e){return e&&e.length?this.write(e):""}});var uT=H((Cce,hx)=>{var cx=yh().codes.ERR_STREAM_PREMATURE_CLOSE;function c9(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n);}}}function f9(){}function h9(e){return e.setHeader&&typeof e.abort=="function"}function fx(e,t,r){if(typeof t=="function")return fx(e,null,t);t||(t={}),r=c9(r||f9);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||f();},a=e._writableState&&e._writableState.finished,f=function(){i=!1,a=!0,n||r.call(e);},p=e._readableState&&e._readableState.endEmitted,g=function(){n=!1,p=!0,i||r.call(e);},S=function(U){r.call(e,U);},y=function(){var U;if(n&&!p)return (!e._readableState||!e._readableState.ended)&&(U=new cx),r.call(e,U);if(i&&!a)return (!e._writableState||!e._writableState.ended)&&(U=new cx),r.call(e,U)},O=function(){e.req.on("finish",f);};return h9(e)?(e.on("complete",f),e.on("abort",y),e.req?O():e.on("request",O)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",g),e.on("finish",f),t.error!==!1&&e.on("error",S),e.on("close",y),function(){e.removeListener("complete",f),e.removeListener("abort",y),e.removeListener("request",O),e.req&&e.req.removeListener("finish",f),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",f),e.removeListener("end",g),e.removeListener("error",S),e.removeListener("close",y);}}hx.exports=fx;});var px=H((Ice,dx)=>{var lT;function Nh(e,t,r){return t=d9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d9(e){var t=p9(e,"string");return typeof t=="symbol"?t:String(t)}function p9(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primiti