@mservices-tech/scripts 3.2.2 → 3.2.3-scripts-release-refactor-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/buildUsingEsbuild/buildUsingEsbuild.js +32 -33
- package/bump_version/.versionrc.js +1 -1
- package/copy_package_build_to_project/copy_package_build_to_project.sh +1 -1
- package/generateIndexFilesFromTemplate/generateIndexFilesFromTemplate.js +116 -117
- package/package.json +1 -1
- package/removeGitHashesFromMarkdownFile/removeGitHashesFromMarkdownFile.js +32 -33
- package/runShellScript/runShellScript.js +32 -33
- package/testIncorrectValues/testIncorrectValues.js +35 -35
- package/utils.sh +3 -3
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var
|
|
2
|
+
"use strict";var Dl=Object.create;var ki=Object.defineProperty;var Fl=Object.getOwnPropertyDescriptor;var $l=Object.getOwnPropertyNames;var kl=Object.getPrototypeOf,Bl=Object.prototype.hasOwnProperty;var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Hl=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of $l(e))!Bl.call(t,i)&&i!==r&&ki(t,i,{get:()=>e[i],enumerable:!(n=Fl(e,i))||n.enumerable});return t};var ct=(t,e,r)=>(r=t!=null?Dl(kl(t)):{},Hl(e||!t||!t.__esModule?ki(r,"default",{value:t,enumerable:!0}):r,t));var Q=f((k0,Xi)=>{"use strict";var tn=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
3
3
|
Found: ${e.toString().split(`
|
|
4
4
|
`)[0]}
|
|
5
|
-
`),Error.captureStackTrace(this,t)}};
|
|
6
|
-
`)!=-1,n=this._styles,i=n.length;i--;){var
|
|
7
|
-
`));return!0}
|
|
8
|
-
${
|
|
9
|
-
${
|
|
10
|
-
${
|
|
11
|
-
${
|
|
12
|
-
${
|
|
13
|
-
${
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
${
|
|
20
|
-
${
|
|
21
|
-
${
|
|
22
|
-
${
|
|
23
|
-
${
|
|
24
|
-
${
|
|
25
|
-
${_}`),m.pop(),`{${L}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(f);default:return e?e(f):void 0}}function d(v,f,m){switch(typeof f){case"string":return xe(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(v),typeof f!="object")return d(v,f,m);if(f===null)return"null"}if(m.indexOf(f)!==-1)return r;let E="",y=f.length!==void 0;if(y&&Array.isArray(f)){if(f.length===0)return"[]";if(s<m.length+1)return'"[Array]"';m.push(f);let L=Math.min(f.length,o),R=0;for(;R<L-1;R++){let M=d(String(R),f[R],m);E+=M!==void 0?M:"null",E+=","}let P=d(String(R),f[R],m);if(E+=P!==void 0?P:"null",f.length-1>o){let M=f.length-o-1;E+=`,"... ${Ne(M)} not stringified"`}return m.pop(),`[${E}]`}let _=Object.keys(f),b=_.length;if(b===0)return"{}";if(s<m.length+1)return'"[Object]"';let w="",A=Math.min(b,o);y&&Pn(f)&&(E+=ps(f,",",o),_=_.slice(f.length),A-=f.length,w=","),i&&(_=An(_,a)),m.push(f);for(let L=0;L<A;L++){let R=_[L],P=d(R,f[R],m);P!==void 0&&(E+=`${w}${xe(R)}:${P}`,w=",")}if(b>o){let L=b-o;E+=`${w}"...":"${Ne(L)} not stringified"`}return m.pop(),`{${E}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(f);default:return e?e(f):void 0}}function g(v,f,m){if(arguments.length>1){let E="";if(typeof m=="number"?E=" ".repeat(Math.min(m,10)):typeof m=="string"&&(E=m.slice(0,10)),f!=null){if(typeof f=="function")return u("",{"":v},[],f,E,"");if(Array.isArray(f))return l("",v,[],eh(f),E,"")}if(E.length!==0)return h("",v,[],E,"")}return d("",v,[])}return g}});var jn=c((d1,vs)=>{"use strict";var rh=ee(),{MESSAGE:nh}=W(),ih=bt();function ah(t,e){return typeof e=="bigint"?e.toString():e}vs.exports=rh((t,e)=>{let r=ih.configure(e);return t[nh]=r(t,e.replacer||ah,e.space),t})});var bs=c((p1,ys)=>{"use strict";var sh=ee();ys.exports=sh((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var _s=c((g1,ws)=>{"use strict";var oh=ee(),{MESSAGE:uh}=W(),lh=bt();ws.exports=oh(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[uh]=lh(e),t})});var Ss=c((m1,Es)=>{"use strict";var fh=ee();function ch(t,e,r){let n=e.reduce((a,s)=>(a[s]=t[s],delete t[s],a),{}),i=Object.keys(t).reduce((a,s)=>(a[s]=t[s],delete t[s],a),{});return Object.assign(t,n,{[r]:i}),t}function hh(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}Es.exports=fh((t,e={})=>{let r="metadata";e.key&&(r=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?ch(t,n,r):e.fillWith?hh(t,e.fillWith,r):t})});var Os=c((v1,xs)=>{var Qe=1e3,Xe=Qe*60,et=Xe*60,Fe=et*24,dh=Fe*7,ph=Fe*365.25;xs.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return gh(t);if(r==="number"&&isFinite(t))return e.long?vh(t):mh(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function gh(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*ph;case"weeks":case"week":case"w":return r*dh;case"days":case"day":case"d":return r*Fe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*et;case"minutes":case"minute":case"mins":case"min":case"m":return r*Xe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Qe;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function mh(t){var e=Math.abs(t);return e>=Fe?Math.round(t/Fe)+"d":e>=et?Math.round(t/et)+"h":e>=Xe?Math.round(t/Xe)+"m":e>=Qe?Math.round(t/Qe)+"s":t+"ms"}function vh(t){var e=Math.abs(t);return e>=Fe?ur(t,e,Fe,"day"):e>=et?ur(t,e,et,"hour"):e>=Xe?ur(t,e,Xe,"minute"):e>=Qe?ur(t,e,Qe,"second"):t+" ms"}function ur(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Rs=c((wt,Ms)=>{"use strict";var yh=ee(),bh=Os();Ms.exports=yh(t=>{let e=+new Date;return wt.diff=e-(wt.prevTime||e),wt.prevTime=e,t.ms=`+${bh(wt.diff)}`,t})});var As=c((y1,qs)=>{"use strict";var wh=require("util").inspect,_h=ee(),{LEVEL:Eh,MESSAGE:Ts,SPLAT:Sh}=W();qs.exports=_h((t,e={})=>{let r=Object.assign({},t);return delete r[Eh],delete r[Ts],delete r[Sh],t[Ts]=wh(r,!1,e.depth||null,e.colorize),t})});var Ps=c((b1,fr)=>{"use strict";var{MESSAGE:xh}=W(),lr=class{constructor(e){this.template=e}transform(e){return e[xh]=this.template(e),e}};fr.exports=t=>new lr(t);fr.exports.Printf=fr.exports.Format=lr});var js=c((w1,Ls)=>{"use strict";var Oh=ee(),{MESSAGE:Cs}=W(),Mh=bt();Ls.exports=Oh(t=>{let e=Mh(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[Cs]=`${t.level}:${r} ${t.message} ${e}`:t[Cs]=`${t.level}:${r} ${t.message}`,t})});var Fs=c((_1,$s)=>{"use strict";var Rh=require("util"),{SPLAT:Ns}=W(),Th=/%[scdjifoO%]/g,qh=/%%/g,Nn=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[Ns]||e.splat||[],a=n.match(qh),s=a&&a.length||0,u=r.length-s-i.length,l=u<0?i.splice(u,-1*u):[],h=l.length;if(h)for(let d=0;d<h;d++)Object.assign(e,l[d]);return e.message=Rh.format(n,...i),e}transform(e){let r=e.message,n=e[Ns]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(Th);if(!i&&(n||n.length)){let a=n.length>1?n.splice(0):n,s=a.length;if(s)for(let o=0;o<s;o++)Object.assign(e,a[o]);return e}return i?this._splat(e,i):e}};$s.exports=t=>new Nn(t)});var ks=c((cr,Ds)=>{(function(t,e){typeof cr=="object"&&typeof Ds<"u"?e(cr):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(cr,function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r="\\d\\d?",n="\\d\\d",i="\\d{3}",a="\\d{4}",s="[^\\s]+",o=/\[([^]*?)\]/gm;function u(p,S){for(var j=[],Y=0,O=p.length;Y<O;Y++)j.push(p[Y].substr(0,S));return j}var l=function(p){return function(S,j){var Y=j[p].map(function(re){return re.toLowerCase()}),O=Y.indexOf(S.toLowerCase());return O>-1?O:null}};function h(p){for(var S=[],j=1;j<arguments.length;j++)S[j-1]=arguments[j];for(var Y=0,O=S;Y<O.length;Y++){var re=O[Y];for(var le in re)p[le]=re[le]}return p}var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"],v=u(g,3),f=u(d,3),m={dayNamesShort:f,dayNames:d,monthNamesShort:v,monthNames:g,amPm:["am","pm"],DoFn:function(p){return p+["th","st","nd","rd"][p%10>3?0:(p-p%10!==10?1:0)*p%10]}},E=h({},m),y=function(p){return E=h(E,p)},_=function(p){return p.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},b=function(p,S){for(S===void 0&&(S=2),p=String(p);p.length<S;)p="0"+p;return p},w={D:function(p){return String(p.getDate())},DD:function(p){return b(p.getDate())},Do:function(p,S){return S.DoFn(p.getDate())},d:function(p){return String(p.getDay())},dd:function(p){return b(p.getDay())},ddd:function(p,S){return S.dayNamesShort[p.getDay()]},dddd:function(p,S){return S.dayNames[p.getDay()]},M:function(p){return String(p.getMonth()+1)},MM:function(p){return b(p.getMonth()+1)},MMM:function(p,S){return S.monthNamesShort[p.getMonth()]},MMMM:function(p,S){return S.monthNames[p.getMonth()]},YY:function(p){return b(String(p.getFullYear()),4).substr(2)},YYYY:function(p){return b(p.getFullYear(),4)},h:function(p){return String(p.getHours()%12||12)},hh:function(p){return b(p.getHours()%12||12)},H:function(p){return String(p.getHours())},HH:function(p){return b(p.getHours())},m:function(p){return String(p.getMinutes())},mm:function(p){return b(p.getMinutes())},s:function(p){return String(p.getSeconds())},ss:function(p){return b(p.getSeconds())},S:function(p){return String(Math.round(p.getMilliseconds()/100))},SS:function(p){return b(Math.round(p.getMilliseconds()/10),2)},SSS:function(p){return b(p.getMilliseconds(),3)},a:function(p,S){return p.getHours()<12?S.amPm[0]:S.amPm[1]},A:function(p,S){return p.getHours()<12?S.amPm[0].toUpperCase():S.amPm[1].toUpperCase()},ZZ:function(p){var S=p.getTimezoneOffset();return(S>0?"-":"+")+b(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4)},Z:function(p){var S=p.getTimezoneOffset();return(S>0?"-":"+")+b(Math.floor(Math.abs(S)/60),2)+":"+b(Math.abs(S)%60,2)}},A=function(p){return+p-1},L=[null,r],R=[null,s],P=["isPm",s,function(p,S){var j=p.toLowerCase();return j===S.amPm[0]?0:j===S.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(p){var S=(p+"").match(/([+-]|\d\d)/gi);if(S){var j=+S[1]*60+parseInt(S[2],10);return S[0]==="+"?j:-j}return 0}],D={D:["day",r],DD:["day",n],Do:["day",r+s,function(p){return parseInt(p,10)}],M:["month",r,A],MM:["month",n,A],YY:["year",n,function(p){var S=new Date,j=+(""+S.getFullYear()).substr(0,2);return+(""+(+p>68?j-1:j)+p)}],h:["hour",r,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",r],HH:["hour",n],m:["minute",r],mm:["minute",n],s:["second",r],ss:["second",n],YYYY:["year",a],S:["millisecond","\\d",function(p){return+p*100}],SS:["millisecond",n,function(p){return+p*10}],SSS:["millisecond",i],d:L,dd:L,ddd:R,dddd:R,MMM:["month",s,l("monthNamesShort")],MMMM:["month",s,l("monthNames")],a:P,A:P,ZZ:M,Z:M},B={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"},G=function(p){return h(B,p)},U=function(p,S,j){if(S===void 0&&(S=B.default),j===void 0&&(j={}),typeof p=="number"&&(p=new Date(p)),Object.prototype.toString.call(p)!=="[object Date]"||isNaN(p.getTime()))throw new Error("Invalid Date pass to format");S=B[S]||S;var Y=[];S=S.replace(o,function(re,le){return Y.push(le),"@@@"});var O=h(h({},E),j);return S=S.replace(e,function(re){return w[re](p,O)}),S.replace(/@@@/g,function(){return Y.shift()})};function Z(p,S,j){if(j===void 0&&(j={}),typeof S!="string")throw new Error("Invalid format in fecha parse");if(S=B[S]||S,p.length>1e3)return null;var Y=new Date,O={year:Y.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},re=[],le=[],dt=S.replace(o,function(pt,Ve){return le.push(_(Ve)),"@@@"}),Yt={},sa={};dt=_(dt).replace(e,function(pt){var Ve=D[pt],cn=Ve[0],uc=Ve[1],fa=Ve[3];if(Yt[cn])throw new Error("Invalid format. "+cn+" specified twice in format");return Yt[cn]=!0,fa&&(sa[fa]=!0),re.push(Ve),"("+uc+")"}),Object.keys(sa).forEach(function(pt){if(!Yt[pt])throw new Error("Invalid format. "+pt+" is required in specified format")}),dt=dt.replace(/@@@/g,function(){return le.shift()});var Vt=p.match(new RegExp(dt,"i"));if(!Vt)return null;for(var ac=h(h({},E),j),fe=1;fe<Vt.length;fe++){var oa=re[fe-1],sc=oa[0],ua=oa[2],la=ua?ua(Vt[fe],ac):+Vt[fe];if(la==null)return null;O[sc]=la}O.isPm===1&&O.hour!=null&&+O.hour!=12?O.hour=+O.hour+12:O.isPm===0&&+O.hour==12&&(O.hour=0);var Kt;if(O.timezoneOffset==null){Kt=new Date(O.year,O.month,O.day,O.hour,O.minute,O.second,O.millisecond);for(var Jt=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],fe=0,oc=Jt.length;fe<oc;fe++)if(Yt[Jt[fe][0]]&&O[Jt[fe][0]]!==Kt[Jt[fe][1]]())return null}else if(Kt=new Date(Date.UTC(O.year,O.month,O.day,O.hour,O.minute-O.timezoneOffset,O.second,O.millisecond)),O.month>11||O.month<0||O.day>31||O.day<1||O.hour>23||O.hour<0||O.minute>59||O.minute<0||O.second>59||O.second<0)return null;return Kt}var me={format:U,parse:Z,defaultI18n:m,setGlobalDateI18n:y,setGlobalDateMasks:G};t.assign=h,t.default=me,t.format=U,t.parse=Z,t.defaultI18n=m,t.setGlobalDateI18n=y,t.setGlobalDateMasks=G,Object.defineProperty(t,"__esModule",{value:!0})})});var Bs=c((E1,Is)=>{"use strict";var Ah=ks(),Ph=ee();Is.exports=Ph((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():Ah.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var Ws=c((S1,Gs)=>{"use strict";var $n=yn(),Ch=ee(),{MESSAGE:Fn}=W();Gs.exports=Ch((t,e)=>(e.level!==!1&&(t.level=$n.strip(t.level)),e.message!==!1&&(t.message=$n.strip(String(t.message))),e.raw!==!1&&t[Fn]&&(t[Fn]=$n.strip(String(t[Fn]))),t))});var kn=c(Dn=>{"use strict";var Lh=Dn.format=ee();Dn.levels=is();function K(t,e){Object.defineProperty(Lh,t,{get(){return e()},configurable:!0})}K("align",function(){return ss()});K("errors",function(){return ls()});K("cli",function(){return cs()});K("combine",function(){return ds()});K("colorize",function(){return ir()});K("json",function(){return jn()});K("label",function(){return bs()});K("logstash",function(){return _s()});K("metadata",function(){return Ss()});K("ms",function(){return Rs()});K("padLevels",function(){return Rn()});K("prettyPrint",function(){return As()});K("printf",function(){return Ps()});K("simple",function(){return js()});K("splat",function(){return Fs()});K("timestamp",function(){return Bs()});K("uncolorize",function(){return Ws()})});var In=c(hr=>{"use strict";var{format:Hs}=require("util");hr.warn={deprecated(t){return()=>{throw new Error(Hs("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([Hs("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
26
|
-
`))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=hr.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=hr.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var Us=c((M1,jh)=>{jh.exports={name:"winston",description:"A logger for just about everything.",version:"3.12.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.7.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^2.0.0",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:"rimraf test/fixtures/logs/* && 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 Ys=c((R1,zs)=>{zs.exports=require("util").deprecate});var Bn=c((T1,Vs)=>{Vs.exports=require("stream")});var Wn=c((q1,Js)=>{"use strict";function Nh(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Gn,this,t)):process.nextTick(Gn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(a){!e&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(dr,r):(r._writableState.errorEmitted=!0,process.nextTick(Ks,r,a)):process.nextTick(Ks,r,a):e?(process.nextTick(dr,r),e(a)):process.nextTick(dr,r)}),this)}function Ks(t,e){Gn(t,e),dr(t)}function dr(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function $h(){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 Gn(t,e){t.emit("error",e)}function Fh(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Js.exports={destroy:Nh,undestroy:$h,errorOrDestroy:Fh}});var Oe=c((A1,Xs)=>{"use strict";var Qs={};function oe(t,e,r){r||(r=Error);function n(a,s,o){return typeof e=="string"?e:e(a,s,o)}class i extends r{constructor(s,o,u){super(n(s,o,u))}}i.prototype.name=r.name,i.prototype.code=t,Qs[t]=i}function Zs(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Dh(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function kh(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Ih(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}oe("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);oe("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Dh(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(kh(t," argument"))i=`The ${t} ${n} ${Zs(e,"type")}`;else{let a=Ih(t,".")?"property":"argument";i=`The "${t}" ${a} ${n} ${Zs(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);oe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");oe("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});oe("ERR_STREAM_PREMATURE_CLOSE","Premature close");oe("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});oe("ERR_MULTIPLE_CALLBACK","Callback called multiple times");oe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");oe("ERR_STREAM_WRITE_AFTER_END","write after end");oe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);oe("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);oe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Xs.exports.codes=Qs});var Hn=c((P1,eo)=>{"use strict";var Bh=Oe().codes.ERR_INVALID_OPT_VALUE;function Gh(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Wh(t,e,r,n){var i=Gh(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new Bh(a,i)}return Math.floor(i)}return t.objectMode?16:16*1024}eo.exports={getHighWaterMark:Wh}});var to=c((C1,Un)=>{typeof Object.create=="function"?Un.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Un.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var tt=c((L1,Yn)=>{try{if(zn=require("util"),typeof zn.inherits!="function")throw"";Yn.exports=zn.inherits}catch{Yn.exports=to()}var zn});var oo=c((j1,so)=>{"use strict";function ro(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function no(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ro(Object(r),!0).forEach(function(n){Hh(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ro(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hh(t,e,r){return e=ao(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function io(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ao(n.key),n)}}function zh(t,e,r){return e&&io(t.prototype,e),r&&io(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ao(t){var e=Yh(t,"string");return typeof e=="symbol"?e:String(e)}function Yh(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Vh=require("buffer"),pr=Vh.Buffer,Kh=require("util"),Vn=Kh.inspect,Jh=Vn&&Vn.custom||"inspect";function Zh(t,e,r){pr.prototype.copy.call(t,e,r)}so.exports=function(){function t(){Uh(this,t),this.head=null,this.tail=null,this.length=0}return zh(t,[{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 pr.alloc(0);for(var n=pr.allocUnsafe(r>>>0),i=this.head,a=0;i;)Zh(i.data,n,a),a+=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,a=n.data;for(r-=a.length;n=n.next;){var s=n.data,o=r>s.length?s.length:r;if(o===s.length?a+=s:a+=s.slice(0,r),r-=o,r===0){o===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=pr.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,o=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,o),r-=o,r===0){o===s.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(o));break}++a}return this.length-=a,n}},{key:Jh,value:function(r,n){return Vn(this,no(no({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var fo=c((Kn,lo)=>{var gr=require("buffer"),ve=gr.Buffer;function uo(t,e){for(var r in t)e[r]=t[r]}ve.from&&ve.alloc&&ve.allocUnsafe&&ve.allocUnsafeSlow?lo.exports=gr:(uo(gr,Kn),Kn.Buffer=De);function De(t,e,r){return ve(t,e,r)}De.prototype=Object.create(ve.prototype);uo(ve,De);De.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ve(t,e,r)};De.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=ve(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};De.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ve(t)};De.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return gr.SlowBuffer(t)}});var Qn=c(ho=>{"use strict";var Zn=fo().Buffer,co=Zn.isEncoding||function(t){switch(t=""+t,t&&t.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 Qh(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Xh(t){var e=Qh(t);if(typeof e!="string"&&(Zn.isEncoding===co||!co(t)))throw new Error("Unknown encoding: "+t);return e||t}ho.StringDecoder=_t;function _t(t){this.encoding=Xh(t);var e;switch(this.encoding){case"utf16le":this.text=ad,this.end=sd,e=4;break;case"utf8":this.fillLast=rd,e=4;break;case"base64":this.text=od,this.end=ud,e=3;break;default:this.write=ld,this.end=fd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Zn.allocUnsafe(e)}_t.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};_t.prototype.end=id;_t.prototype.text=nd;_t.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Jn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function ed(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Jn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Jn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Jn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function td(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function rd(t){var e=this.lastTotal-this.lastNeed,r=td(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function nd(t,e){var r=ed(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function id(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function ad(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function sd(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function od(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function ud(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ld(t){return t.toString(this.encoding)}function fd(t){return t&&t.length?this.write(t):""}});var mr=c(($1,mo)=>{"use strict";var po=Oe().codes.ERR_STREAM_PREMATURE_CLOSE;function cd(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function hd(){}function dd(t){return t.setHeader&&typeof t.abort=="function"}function go(t,e,r){if(typeof e=="function")return go(t,null,e);e||(e={}),r=cd(r||hd);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,a=function(){t.writable||o()},s=t._writableState&&t._writableState.finished,o=function(){i=!1,s=!0,n||r.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){n=!1,u=!0,i||r.call(t)},h=function(f){r.call(t,f)},d=function(){var f;if(n&&!u)return(!t._readableState||!t._readableState.ended)&&(f=new po),r.call(t,f);if(i&&!s)return(!t._writableState||!t._writableState.ended)&&(f=new po),r.call(t,f)},g=function(){t.req.on("finish",o)};return dd(t)?(t.on("complete",o),t.on("abort",d),t.req?g():t.on("request",g)):i&&!t._writableState&&(t.on("end",a),t.on("close",a)),t.on("end",l),t.on("finish",o),e.error!==!1&&t.on("error",h),t.on("close",d),function(){t.removeListener("complete",o),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",o),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",o),t.removeListener("end",l),t.removeListener("error",h),t.removeListener("close",d)}}mo.exports=go});var yo=c((F1,vo)=>{"use strict";var vr;function Me(t,e,r){return e=pd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pd(t){var e=gd(t,"string");return typeof e=="symbol"?e:String(e)}function gd(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var md=mr(),Re=Symbol("lastResolve"),ke=Symbol("lastReject"),Et=Symbol("error"),yr=Symbol("ended"),Ie=Symbol("lastPromise"),Xn=Symbol("handlePromise"),Be=Symbol("stream");function Te(t,e){return{value:t,done:e}}function vd(t){var e=t[Re];if(e!==null){var r=t[Be].read();r!==null&&(t[Ie]=null,t[Re]=null,t[ke]=null,e(Te(r,!1)))}}function yd(t){process.nextTick(vd,t)}function bd(t,e){return function(r,n){t.then(function(){if(e[yr]){r(Te(void 0,!0));return}e[Xn](r,n)},n)}}var wd=Object.getPrototypeOf(function(){}),_d=Object.setPrototypeOf((vr={get stream(){return this[Be]},next:function(){var e=this,r=this[Et];if(r!==null)return Promise.reject(r);if(this[yr])return Promise.resolve(Te(void 0,!0));if(this[Be].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[Et]?o(e[Et]):s(Te(void 0,!0))})});var n=this[Ie],i;if(n)i=new Promise(bd(n,this));else{var a=this[Be].read();if(a!==null)return Promise.resolve(Te(a,!1));i=new Promise(this[Xn])}return this[Ie]=i,i}},Me(vr,Symbol.asyncIterator,function(){return this}),Me(vr,"return",function(){var e=this;return new Promise(function(r,n){e[Be].destroy(null,function(i){if(i){n(i);return}r(Te(void 0,!0))})})}),vr),wd),Ed=function(e){var r,n=Object.create(_d,(r={},Me(r,Be,{value:e,writable:!0}),Me(r,Re,{value:null,writable:!0}),Me(r,ke,{value:null,writable:!0}),Me(r,Et,{value:null,writable:!0}),Me(r,yr,{value:e._readableState.endEmitted,writable:!0}),Me(r,Xn,{value:function(a,s){var o=n[Be].read();o?(n[Ie]=null,n[Re]=null,n[ke]=null,a(Te(o,!1))):(n[Re]=a,n[ke]=s)},writable:!0}),r));return n[Ie]=null,md(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[ke];a!==null&&(n[Ie]=null,n[Re]=null,n[ke]=null,a(i)),n[Et]=i;return}var s=n[Re];s!==null&&(n[Ie]=null,n[Re]=null,n[ke]=null,s(Te(void 0,!0))),n[yr]=!0}),e.on("readable",yd.bind(null,n)),n};vo.exports=Ed});var Eo=c((D1,_o)=>{"use strict";function bo(t,e,r,n,i,a,s){try{var o=t[a](s),u=o.value}catch(l){r(l);return}o.done?e(u):Promise.resolve(u).then(n,i)}function Sd(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function s(u){bo(a,n,i,s,o,"next",u)}function o(u){bo(a,n,i,s,o,"throw",u)}s(void 0)})}}function wo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function xd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?wo(Object(r),!0).forEach(function(n){Od(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Od(t,e,r){return e=Md(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Md(t){var e=Rd(t,"string");return typeof e=="symbol"?e:String(e)}function Rd(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Td=Oe().codes.ERR_INVALID_ARG_TYPE;function qd(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new Td("iterable",["Iterable"],e);var i=new t(xd({objectMode:!0},r)),a=!1;i._read=function(){a||(a=!0,s())};function s(){return o.apply(this,arguments)}function o(){return o=Sd(function*(){try{var u=yield n.next(),l=u.value,h=u.done;h?i.push(null):i.push(yield l)?s():a=!1}catch(d){i.destroy(d)}}),o.apply(this,arguments)}return i}_o.exports=qd});var li=c((I1,Co)=>{"use strict";Co.exports=C;var rt;C.ReadableState=Mo;var k1=require("events").EventEmitter,Oo=function(e,r){return e.listeners(r).length},xt=Bn(),br=require("buffer").Buffer,Ad=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Pd(t){return br.from(t)}function Cd(t){return br.isBuffer(t)||t instanceof Ad}var ei=require("util"),T;ei&&ei.debuglog?T=ei.debuglog("stream"):T=function(){};var Ld=oo(),oi=Wn(),jd=Hn(),Nd=jd.getHighWaterMark,wr=Oe().codes,$d=wr.ERR_INVALID_ARG_TYPE,Fd=wr.ERR_STREAM_PUSH_AFTER_EOF,Dd=wr.ERR_METHOD_NOT_IMPLEMENTED,kd=wr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,nt,ti,ri;tt()(C,xt);var St=oi.errorOrDestroy,ni=["error","close","destroy","pause","resume"];function Id(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Mo(t,e,r){rt=rt||Ge(),t=t||{},typeof r!="boolean"&&(r=e instanceof rt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Nd(this,t,"readableHighWaterMark",r),this.buffer=new Ld,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(nt||(nt=Qn().StringDecoder),this.decoder=new nt(t.encoding),this.encoding=t.encoding)}function C(t){if(rt=rt||Ge(),!(this instanceof C))return new C(t);var e=this instanceof rt;this._readableState=new Mo(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),xt.call(this)}Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});C.prototype.destroy=oi.destroy;C.prototype._undestroy=oi.undestroy;C.prototype._destroy=function(t,e){e(t)};C.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=br.from(t,e),e=""),n=!0),Ro(this,t,e,!1,n)};C.prototype.unshift=function(t){return Ro(this,t,null,!0,!1)};function Ro(t,e,r,n,i){T("readableAddChunk",e);var a=t._readableState;if(e===null)a.reading=!1,Wd(t,a);else{var s;if(i||(s=Bd(a,e)),s)St(t,s);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==br.prototype&&(e=Pd(e)),n)a.endEmitted?St(t,new kd):ii(t,a,e,!0);else if(a.ended)St(t,new Fd);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||e.length!==0?ii(t,a,e,!1):si(t,a)):ii(t,a,e,!1)}else n||(a.reading=!1,si(t,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function ii(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&_r(t)),si(t,e)}function Bd(t,e){var r;return!Cd(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new $d("chunk",["string","Buffer","Uint8Array"],e)),r}C.prototype.isPaused=function(){return this._readableState.flowing===!1};C.prototype.setEncoding=function(t){nt||(nt=Qn().StringDecoder);var e=new nt(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var So=1073741824;function Gd(t){return t>=So?t=So:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function xo(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=Gd(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}C.prototype.read=function(t){T("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return T("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ai(this):_r(this),null;if(t=xo(t,e),t===0&&e.ended)return e.length===0&&ai(this),null;var n=e.needReadable;T("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,T("length less than watermark",n)),e.ended||e.reading?(n=!1,T("reading or ended",n)):n&&(T("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=xo(r,e)));var i;return t>0?i=Ao(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&ai(this)),i!==null&&this.emit("data",i),i};function Wd(t,e){if(T("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?_r(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,To(t)))}}function _r(t){var e=t._readableState;T("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(T("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(To,t))}function To(t){var e=t._readableState;T("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,ui(t)}function si(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Hd,t,e))}function Hd(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(T("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}C.prototype._read=function(t){St(this,new Dd("_read()"))};C.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,T("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,a=i?o:m;n.endEmitted?process.nextTick(a):r.once("end",a),t.on("unpipe",s);function s(E,y){T("onunpipe"),E===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,h())}function o(){T("onend"),t.end()}var u=Ud(r);t.on("drain",u);var l=!1;function h(){T("cleanup"),t.removeListener("close",v),t.removeListener("finish",f),t.removeListener("drain",u),t.removeListener("error",g),t.removeListener("unpipe",s),r.removeListener("end",o),r.removeListener("end",m),r.removeListener("data",d),l=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}r.on("data",d);function d(E){T("ondata");var y=t.write(E);T("dest.write",y),y===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Po(n.pipes,t)!==-1)&&!l&&(T("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function g(E){T("onerror",E),m(),t.removeListener("error",g),Oo(t,"error")===0&&St(t,E)}Id(t,"error",g);function v(){t.removeListener("finish",f),m()}t.once("close",v);function f(){T("onfinish"),t.removeListener("close",v),m()}t.once("finish",f);function m(){T("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(T("pipe resume"),r.resume()),t};function Ud(t){return function(){var r=t._readableState;T("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Oo(t,"data")&&(r.flowing=!0,ui(t))}}C.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=Po(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};C.prototype.on=function(t,e){var r=xt.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,T("on readable",n.length,n.reading),n.length?_r(this):n.reading||process.nextTick(zd,this)),r};C.prototype.addListener=C.prototype.on;C.prototype.removeListener=function(t,e){var r=xt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(qo,this),r};C.prototype.removeAllListeners=function(t){var e=xt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(qo,this),e};function qo(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function zd(t){T("readable nexttick read 0"),t.read(0)}C.prototype.resume=function(){var t=this._readableState;return t.flowing||(T("resume"),t.flowing=!t.readableListening,Yd(this,t)),t.paused=!1,this};function Yd(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Vd,t,e))}function Vd(t,e){T("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),ui(t),e.flowing&&!e.reading&&t.read(0)}C.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ui(t){var e=t._readableState;for(T("flow",e.flowing);e.flowing&&t.read()!==null;);}C.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(T("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(T("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(o){return function(){return t[o].apply(t,arguments)}}(i));for(var a=0;a<ni.length;a++)t.on(ni[a],this.emit.bind(this,ni[a]));return this._read=function(s){T("wrapped _read",s),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(C.prototype[Symbol.asyncIterator]=function(){return ti===void 0&&(ti=yo()),ti(this)});Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(C.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(C.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});C._fromList=Ao;Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ao(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function ai(t){var e=t._readableState;T("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Kd,e,t))}function Kd(t,e){if(T("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(C.from=function(t,e){return ri===void 0&&(ri=Eo()),ri(C,t,e)});function Po(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Ge=c((B1,jo)=>{"use strict";var Jd=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};jo.exports=ye;var Lo=li(),ci=xr();tt()(ye,Lo);for(fi=Jd(ci.prototype),Er=0;Er<fi.length;Er++)Sr=fi[Er],ye.prototype[Sr]||(ye.prototype[Sr]=ci.prototype[Sr]);var fi,Sr,Er;function ye(t){if(!(this instanceof ye))return new ye(t);Lo.call(this,t),ci.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Zd)))}Object.defineProperty(ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ye.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Zd(){this._writableState.ended||process.nextTick(Qd,this)}function Qd(t){t.end()}Object.defineProperty(ye.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var xr=c((G1,Io)=>{"use strict";Io.exports=k;function $o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Op(e,t)}}var it;k.WritableState=Mt;var Xd={deprecate:Ys()},Fo=Bn(),Mr=require("buffer").Buffer,ep=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function tp(t){return Mr.from(t)}function rp(t){return Mr.isBuffer(t)||t instanceof ep}var di=Wn(),np=Hn(),ip=np.getHighWaterMark,qe=Oe().codes,ap=qe.ERR_INVALID_ARG_TYPE,sp=qe.ERR_METHOD_NOT_IMPLEMENTED,op=qe.ERR_MULTIPLE_CALLBACK,up=qe.ERR_STREAM_CANNOT_PIPE,lp=qe.ERR_STREAM_DESTROYED,fp=qe.ERR_STREAM_NULL_VALUES,cp=qe.ERR_STREAM_WRITE_AFTER_END,hp=qe.ERR_UNKNOWN_ENCODING,at=di.errorOrDestroy;tt()(k,Fo);function dp(){}function Mt(t,e,r){it=it||Ge(),t=t||{},typeof r!="boolean"&&(r=e instanceof it),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=ip(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){wp(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new $o(this)}Mt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Mt.prototype,"buffer",{get:Xd.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Or;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Or=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return Or.call(this,e)?!0:this!==k?!1:e&&e._writableState instanceof Mt}})):Or=function(e){return e instanceof this};function k(t){it=it||Ge();var e=this instanceof it;if(!e&&!Or.call(k,this))return new k(t);this._writableState=new Mt(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Fo.call(this)}k.prototype.pipe=function(){at(this,new up)};function pp(t,e){var r=new cp;at(t,r),process.nextTick(e,r)}function gp(t,e,r,n){var i;return r===null?i=new fp:typeof r!="string"&&!e.objectMode&&(i=new ap("chunk",["string","Buffer"],r)),i?(at(t,i),process.nextTick(n,i),!1):!0}k.prototype.write=function(t,e,r){var n=this._writableState,i=!1,a=!n.objectMode&&rp(t);return a&&!Mr.isBuffer(t)&&(t=tp(t)),typeof e=="function"&&(r=e,e=null),a?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=dp),n.ending?pp(this,r):(a||gp(this,n,t,r))&&(n.pendingcb++,i=vp(this,n,a,t,e,r)),i};k.prototype.cork=function(){this._writableState.corked++};k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Do(this,t))};k.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new hp(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function mp(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Mr.from(e,r)),e}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function vp(t,e,r,n,i,a){if(!r){var s=mp(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else hi(t,e,!1,o,n,i,a);return u}function hi(t,e,r,n,i,a,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new lp("write")):r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function yp(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(Ot,t,e),t._writableState.errorEmitted=!0,at(t,n)):(i(n),t._writableState.errorEmitted=!0,at(t,n),Ot(t,e))}function bp(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function wp(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new op;if(bp(r),e)yp(t,r,n,e,i);else{var a=ko(r)||t.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Do(t,r),n?process.nextTick(No,t,r,a,i):No(t,r,a,i)}}function No(t,e,r,n){r||_p(t,e),e.pendingcb--,n(),Ot(t,e)}function _p(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Do(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var s=0,o=!0;r;)i[s]=r,r.isBuf||(o=!1),r=r.next,s+=1;i.allBuffers=o,hi(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new $o(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,h=r.callback,d=e.objectMode?1:u.length;if(hi(t,e,!1,d,u,l,h),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}k.prototype._write=function(t,e,r){r(new sp("_write()"))};k.prototype._writev=null;k.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||xp(this,n,r),this};Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ko(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Ep(t,e){t._final(function(r){e.pendingcb--,r&&at(t,r),e.prefinished=!0,t.emit("prefinish"),Ot(t,e)})}function Sp(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Ep,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ot(t,e){var r=ko(e);if(r&&(Sp(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function xp(t,e,r){e.ending=!0,Ot(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Op(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});k.prototype.destroy=di.destroy;k.prototype._undestroy=di.undestroy;k.prototype._destroy=function(t,e){e(t)}});var pi=c((W1,Wo)=>{"use strict";var Mp=require("util"),Bo=xr(),{LEVEL:Go}=W(),Rt=Wo.exports=function(e={}){Bo.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",r=>{this.levels=r.levels,this.parent=r}),this.once("unpipe",r=>{r===this.parent&&(this.parent=null,this.close&&this.close())})};Mp.inherits(Rt,Bo);Rt.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let i=this.level||this.parent&&this.parent.level;if(!i||this.levels[i]>=this.levels[e[Go]]){if(e&&!this.format)return this.log(e,n);let a,s;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(o){a=o}if(a||!s){if(n(),a)throw a;return}return this.log(s,n)}return this._writableState.sync=!1,n(null)};Rt.prototype._writev=function(e,r){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,r):r(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,a;try{a=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(s){i=s}if(i||!a){if(e[n].callback(),i)throw r(null),i}else this.log(a,e[n].callback)}return r(null)};Rt.prototype._accept=function(e){let r=e.chunk;if(this.silent)return!1;let n=this.level||this.parent&&this.parent.level;return!!((r.exception===!0||!n||this.levels[n]>=this.levels[r[Go]])&&(this.handleExceptions||r.exception!==!0))};Rt.prototype._nop=function(){}});var mi=c((H1,Uo)=>{"use strict";var Rp=require("util"),{LEVEL:gi}=W(),Ho=pi(),Tt=Uo.exports=function(e={}){if(Ho.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function r(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError))};Rp.inherits(Tt,Ho);Tt.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[gi]])&&this.transport.log(e[gi],e.message,e,this._nop),n(null)};Tt.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[gi],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};Tt.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
27
|
-
`))};Tt.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var st=c((U1,vi)=>{"use strict";vi.exports=pi();vi.exports.LegacyTransportStream=mi()});var Vo=c((Y1,Yo)=>{"use strict";var Tp=require("os"),{LEVEL:zo,MESSAGE:ot}=W(),qp=st();Yo.exports=class extends qp{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:Tp.EOL,this.setMaxListeners(30)}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[zo]]){console._stderr?console._stderr.write(`${e[ot]}${this.eol}`):console.error(e[ot]),r&&r();return}else if(this.consoleWarnLevels[e[zo]]){console._stderr?console._stderr.write(`${e[ot]}${this.eol}`):console.warn(e[ot]),r&&r();return}console._stdout?console._stdout.write(`${e[ot]}${this.eol}`):console.log(e[ot]),r&&r()}_stringArrayToSet(e,r){if(!e)return{};if(r=r||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(r);return e.reduce((n,i)=>{if(typeof i!="string")throw new Error(r);return n[i]=!0,n},{})}}});var Tr=c((Rr,Ko)=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.default=Ap;function Ap(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}Ko.exports=Rr.default});var Zo=c((qr,Jo)=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};Jo.exports=qr.default});var eu=c(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.fallback=Qo;Ae.wrap=Xo;var Pp=Ae.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Cp=Ae.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Lp=Ae.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function Qo(t){setTimeout(t,0)}function Xo(t){return(e,...r)=>t(()=>e(...r))}var qt;Pp?qt=queueMicrotask:Cp?qt=setImmediate:Lp?qt=process.nextTick:qt=Qo;Ae.default=Xo(qt)});var au=c((Ar,iu)=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.default=kp;var jp=Zo(),Np=nu(jp),$p=eu(),Fp=nu($p),Dp=We();function nu(t){return t&&t.__esModule?t:{default:t}}function kp(t){return(0,Dp.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return tu(n,r)}:(0,Np.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return tu(n,r);r(null,n)})}function tu(t,e){return t.then(r=>{ru(e,null,r)},r=>{ru(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function ru(t,e,r){try{t(e,r)}catch(n){(0,Fp.default)(i=>{throw i},n)}}iu.exports=Ar.default});var We=c(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.isAsyncIterable=Ee.isAsyncGenerator=Ee.isAsync=void 0;var Ip=au(),Bp=Gp(Ip);function Gp(t){return t&&t.__esModule?t:{default:t}}function su(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Wp(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Hp(t){return typeof t[Symbol.asyncIterator]=="function"}function Up(t){if(typeof t!="function")throw new Error("expected a function");return su(t)?(0,Bp.default)(t):t}Ee.default=Up;Ee.isAsync=su;Ee.isAsyncGenerator=Wp;Ee.isAsyncIterable=Hp});var ut=c((Pr,ou)=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.default=zp;function zp(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((i,a)=>{n[e-1]=(s,...o)=>{if(s)return a(s);i(o.length>1?o:o[0])},t.apply(this,n)})}return r}ou.exports=Pr.default});var lu=c((Cr,uu)=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});var Yp=Tr(),Vp=yi(Yp),Kp=We(),Jp=yi(Kp),Zp=ut(),Qp=yi(Zp);function yi(t){return t&&t.__esModule?t:{default:t}}Cr.default=(0,Qp.default)((t,e,r)=>{var n=(0,Vp.default)(e)?[]:{};t(e,(i,a,s)=>{(0,Jp.default)(i)((o,...u)=>{u.length<2&&([u]=u),n[a]=u,s(o)})},i=>r(i,n))},3);uu.exports=Cr.default});var bi=c((Lr,fu)=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.default=Xp;function Xp(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}fu.exports=Lr.default});var hu=c((jr,cu)=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};cu.exports=jr.default});var gu=c((Nr,pu)=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.default=og;var eg=Tr(),tg=du(eg),rg=hu(),ng=du(rg);function du(t){return t&&t.__esModule?t:{default:t}}function ig(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function ag(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function sg(t){var e=t?Object.keys(t):[],r=-1,n=e.length;return function i(){var a=e[++r];return a==="__proto__"?i():r<n?{value:t[a],key:a}:null}}function og(t){if((0,tg.default)(t))return ig(t);var e=(0,ng.default)(t);return e?ag(e):sg(t)}pu.exports=Nr.default});var wi=c(($r,mu)=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.default=ug;function ug(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}mu.exports=$r.default});var Dr=c((Fr,vu)=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});var lg={};Fr.default=lg;vu.exports=Fr.default});var bu=c((kr,yu)=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.default=dg;var fg=Dr(),cg=hg(fg);function hg(t){return t&&t.__esModule?t:{default:t}}function dg(t,e,r,n){let i=!1,a=!1,s=!1,o=0,u=0;function l(){o>=e||s||i||(s=!0,t.next().then(({value:g,done:v})=>{if(!(a||i)){if(s=!1,v){i=!0,o<=0&&n(null);return}o++,r(g,u,h),u++,l()}}).catch(d))}function h(g,v){if(o-=1,!a){if(g)return d(g);if(g===!1){i=!0,a=!0;return}if(v===cg.default||i&&o<=0)return i=!0,n(null);l()}}function d(g){a||(s=!1,i=!0,n(g))}l()}yu.exports=kr.default});var Su=c((Ir,Eu)=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});var pg=bi(),gg=At(pg),mg=gu(),vg=At(mg),yg=wi(),bg=At(yg),wu=We(),wg=bu(),_u=At(wg),_g=Dr(),Eg=At(_g);function At(t){return t&&t.__esModule?t:{default:t}}Ir.default=t=>(e,r,n)=>{if(n=(0,gg.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,wu.isAsyncGenerator)(e))return(0,_u.default)(e,t,r,n);if((0,wu.isAsyncIterable)(e))return(0,_u.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,vg.default)(e),a=!1,s=!1,o=0,u=!1;function l(d,g){if(!s)if(o-=1,d)a=!0,n(d);else if(d===!1)a=!0,s=!0;else{if(g===Eg.default||a&&o<=0)return a=!0,n(null);u||h()}}function h(){for(u=!0;o<t&&!a;){var d=i();if(d===null){a=!0,o<=0&&n(null);return}o+=1,r(d.value,d.key,(0,bg.default)(l))}u=!1}h()};Eu.exports=Ir.default});var Ei=c((Br,xu)=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});var Sg=Su(),xg=_i(Sg),Og=We(),Mg=_i(Og),Rg=ut(),Tg=_i(Rg);function _i(t){return t&&t.__esModule?t:{default:t}}function qg(t,e,r,n){return(0,xg.default)(e)(t,(0,Mg.default)(r),n)}Br.default=(0,Tg.default)(qg,4);xu.exports=Br.default});var Ru=c((Gr,Mu)=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});var Ag=Ei(),Pg=Ou(Ag),Cg=ut(),Lg=Ou(Cg);function Ou(t){return t&&t.__esModule?t:{default:t}}function jg(t,e,r){return(0,Pg.default)(t,1,e,r)}Gr.default=(0,Lg.default)(jg,3);Mu.exports=Gr.default});var Au=c((Wr,qu)=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.default=kg;var Ng=lu(),$g=Tu(Ng),Fg=Ru(),Dg=Tu(Fg);function Tu(t){return t&&t.__esModule?t:{default:t}}function kg(t,e){return(0,$g.default)(Dg.default,t,e)}qu.exports=Wr.default});var Si=c((J1,Cu)=>{"use strict";Cu.exports=Se;var Hr=Oe().codes,Ig=Hr.ERR_METHOD_NOT_IMPLEMENTED,Bg=Hr.ERR_MULTIPLE_CALLBACK,Gg=Hr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Wg=Hr.ERR_TRANSFORM_WITH_LENGTH_0,Ur=Ge();tt()(Se,Ur);function Hg(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Bg);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Se(t){if(!(this instanceof Se))return new Se(t);Ur.call(this,t),this._transformState={afterTransform:Hg.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Ug)}function Ug(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Pu(t,e,r)}):Pu(this,null,null)}Se.prototype.push=function(t,e){return this._transformState.needTransform=!1,Ur.prototype.push.call(this,t,e)};Se.prototype._transform=function(t,e,r){r(new Ig("_transform()"))};Se.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Se.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Se.prototype._destroy=function(t,e){Ur.prototype._destroy.call(this,t,function(r){e(r)})};function Pu(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Wg;if(t._transformState.transforming)throw new Gg;return t.push(null)}});var Nu=c((Z1,ju)=>{"use strict";ju.exports=Pt;var Lu=Si();tt()(Pt,Lu);function Pt(t){if(!(this instanceof Pt))return new Pt(t);Lu.call(this,t)}Pt.prototype._transform=function(t,e,r){r(null,t)}});var Iu=c((Q1,ku)=>{"use strict";var xi;function zg(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Du=Oe().codes,Yg=Du.ERR_MISSING_ARGS,Vg=Du.ERR_STREAM_DESTROYED;function $u(t){if(t)throw t}function Kg(t){return t.setHeader&&typeof t.abort=="function"}function Jg(t,e,r,n){n=zg(n);var i=!1;t.on("close",function(){i=!0}),xi===void 0&&(xi=mr()),xi(t,{readable:e,writable:r},function(s){if(s)return n(s);i=!0,n()});var a=!1;return function(s){if(!i&&!a){if(a=!0,Kg(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new Vg("pipe"))}}}function Fu(t){t()}function Zg(t,e){return t.pipe(e)}function Qg(t){return!t.length||typeof t[t.length-1]!="function"?$u:t.pop()}function Xg(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Qg(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Yg("streams");var i,a=e.map(function(s,o){var u=o<e.length-1,l=o>0;return Jg(s,u,l,function(h){i||(i=h),h&&a.forEach(Fu),!u&&(a.forEach(Fu),n(i))})});return e.reduce(Zg)}ku.exports=Xg});var He=c((ue,Lt)=>{var Ct=require("stream");process.env.READABLE_STREAM==="disable"&&Ct?(Lt.exports=Ct.Readable,Object.assign(Lt.exports,Ct),Lt.exports.Stream=Ct):(ue=Lt.exports=li(),ue.Stream=Ct||ue,ue.Readable=ue,ue.Writable=xr(),ue.Duplex=Ge(),ue.Transform=Si(),ue.PassThrough=Nu(),ue.finished=mr(),ue.pipeline=Iu())});var Pi=c((X1,Gu)=>{var lt=[],jt=[],Oi=function(){};function Ri(t){return~lt.indexOf(t)?!1:(lt.push(t),!0)}function Ti(t){Oi=t}function em(t){for(var e=[],r=0;r<lt.length;r++){if(lt[r].async){e.push(lt[r]);continue}if(lt[r](t))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(s){return s(t)})).then(function(s){i(s.some(Boolean))})}):!1}function qi(t){return~jt.indexOf(t)?!1:(jt.push(t),!0)}function Mi(){Oi.apply(Oi,arguments)}function Bu(t){for(var e=0;e<jt.length;e++)t=jt[e].apply(jt[e],arguments);return t}function Ai(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function tm(t){return t.enabled=!1,t.modify=qi,t.set=Ti,t.use=Ri,Ai(function(){return!1},t)}function rm(t){function e(){var r=Array.prototype.slice.call(arguments,0);return Mi.call(Mi,t,Bu(r,t)),!0}return t.enabled=!0,t.modify=qi,t.set=Ti,t.use=Ri,Ai(e,t)}Gu.exports=function(e){return e.introduce=Ai,e.enabled=em,e.process=Bu,e.modify=qi,e.write=Mi,e.nope=tm,e.yep=rm,e.set=Ti,e.use=Ri,e}});var Hu=c((ey,Wu)=>{var nm=Pi(),im=nm(function t(e,r){return r=r||{},r.namespace=e,r.prod=!0,r.dev=!1,r.force||t.force?t.yep(r):t.nope(r)});Wu.exports=im});var zu=c((ty,Uu)=>{"use strict";Uu.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Vu=c((ry,Yu)=>{Yu.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var Zu=c((ny,Ju)=>{"use strict";var am=Vu(),sm=Array.prototype.concat,om=Array.prototype.slice,Ku=Ju.exports=function(e){for(var r=[],n=0,i=e.length;n<i;n++){var a=e[n];am(a)?r=sm.call(r,om.call(a)):r.push(a)}return r};Ku.wrap=function(t){return function(){return t(Ku(arguments))}}});var tl=c((iy,el)=>{var Nt=zu(),$t=Zu(),Qu=Object.hasOwnProperty,Xu=Object.create(null);for(zr in Nt)Qu.call(Nt,zr)&&(Xu[Nt[zr]]=zr);var zr,ne=el.exports={to:{},get:{}};ne.get=function(t){var e=t.substring(0,3).toLowerCase(),r,n;switch(e){case"hsl":r=ne.get.hsl(t),n="hsl";break;case"hwb":r=ne.get.hwb(t),n="hwb";break;default:r=ne.get.rgb(t),n="rgb";break}return r?{model:n,value:r}:null};ne.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,s=[0,0,0,1],o,u,l;if(o=t.match(r)){for(l=o[2],o=o[1],u=0;u<3;u++){var h=u*2;s[u]=parseInt(o.slice(h,h+2),16)}l&&(s[3]=parseInt(l,16)/255)}else if(o=t.match(e)){for(o=o[1],l=o[3],u=0;u<3;u++)s[u]=parseInt(o[u]+o[u],16);l&&(s[3]=parseInt(l+l,16)/255)}else if(o=t.match(n)){for(u=0;u<3;u++)s[u]=parseInt(o[u+1],0);o[4]&&(o[5]?s[3]=parseFloat(o[4])*.01:s[3]=parseFloat(o[4]))}else if(o=t.match(i)){for(u=0;u<3;u++)s[u]=Math.round(parseFloat(o[u+1])*2.55);o[4]&&(o[5]?s[3]=parseFloat(o[4])*.01:s[3]=parseFloat(o[4]))}else return(o=t.match(a))?o[1]==="transparent"?[0,0,0,0]:Qu.call(Nt,o[1])?(s=Nt[o[1]],s[3]=1,s):null:null;for(u=0;u<3;u++)s[u]=Pe(s[u],0,255);return s[3]=Pe(s[3],0,1),s};ne.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,a=Pe(parseFloat(r[2]),0,100),s=Pe(parseFloat(r[3]),0,100),o=Pe(isNaN(n)?1:n,0,1);return[i,a,s,o]}return null};ne.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,a=Pe(parseFloat(r[2]),0,100),s=Pe(parseFloat(r[3]),0,100),o=Pe(isNaN(n)?1:n,0,1);return[i,a,s,o]}return null};ne.to.hex=function(){var t=$t(arguments);return"#"+Yr(t[0])+Yr(t[1])+Yr(t[2])+(t[3]<1?Yr(Math.round(t[3]*255)):"")};ne.to.rgb=function(){var t=$t(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};ne.to.rgb.percent=function(){var t=$t(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"};ne.to.hsl=function(){var t=$t(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};ne.to.hwb=function(){var t=$t(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ne.to.keyword=function(t){return Xu[t.slice(0,3)]};function Pe(t,e,r){return Math.min(Math.max(e,t),r)}function Yr(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var nl=c((ay,rl)=>{"use strict";rl.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Ci=c((sy,ol)=>{var Ue=nl(),sl={};for(Vr in Ue)Ue.hasOwnProperty(Vr)&&(sl[Ue[Vr]]=Vr);var Vr,x=ol.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(X in x)if(x.hasOwnProperty(X)){if(!("channels"in x[X]))throw new Error("missing channels property: "+X);if(!("labels"in x[X]))throw new Error("missing channel labels property: "+X);if(x[X].labels.length!==x[X].channels)throw new Error("channel and label counts mismatch: "+X);il=x[X].channels,al=x[X].labels,delete x[X].channels,delete x[X].labels,Object.defineProperty(x[X],"channels",{value:il}),Object.defineProperty(x[X],"labels",{value:al})}var il,al,X;x.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),s=a-i,o,u,l;return a===i?o=0:e===a?o=(r-n)/s:r===a?o=2+(n-e)/s:n===a&&(o=4+(e-r)/s),o=Math.min(o*60,360),o<0&&(o+=360),l=(i+a)/2,a===i?u=0:l<=.5?u=s/(a+i):u=s/(2-a-i),[o,u*100,l*100]};x.rgb.hsv=function(t){var e,r,n,i,a,s=t[0]/255,o=t[1]/255,u=t[2]/255,l=Math.max(s,o,u),h=l-Math.min(s,o,u),d=function(g){return(l-g)/6/h+1/2};return h===0?i=a=0:(a=h/l,e=d(s),r=d(o),n=d(u),s===l?i=n-r:o===l?i=1/3+e-n:u===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,l*100]};x.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=x.rgb.hsl(t)[0],a=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,a*100,n*100]};x.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,a,s,o;return o=Math.min(1-e,1-r,1-n),i=(1-e-o)/(1-o)||0,a=(1-r-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,[i*100,a*100,s*100,o*100]};function um(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}x.rgb.keyword=function(t){var e=sl[t];if(e)return e;var r=1/0,n;for(var i in Ue)if(Ue.hasOwnProperty(i)){var a=Ue[i],s=um(t,a);s<r&&(r=s,n=i)}return n};x.keyword.rgb=function(t){return Ue[t]};x.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,a=e*.2126+r*.7152+n*.0722,s=e*.0193+r*.1192+n*.9505;return[i*100,a*100,s*100]};x.rgb.lab=function(t){var e=x.rgb.xyz(t),r=e[0],n=e[1],i=e[2],a,s,o;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*n-16,s=500*(r-n),o=200*(n-i),[a,s,o]};x.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,a,s,o,u;if(r===0)return u=n*255,[u,u,u];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,o=[0,0,0];for(var l=0;l<3;l++)s=e+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?u=i+(a-i)*6*s:2*s<1?u=a:3*s<2?u=i+(a-i)*(2/3-s)*6:u=i,o[l]=u*255;return o};x.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,a=Math.max(n,.01),s,o;return n*=2,r*=n<=1?n:2-n,i*=a<=1?a:2-a,o=(n+r)/2,s=n===0?2*i/(a+i):2*r/(n+r),[e,s*100,o*100]};x.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,a=e-Math.floor(e),s=255*n*(1-r),o=255*n*(1-r*a),u=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,u,s];case 1:return[o,n,s];case 2:return[s,n,u];case 3:return[s,o,n];case 4:return[u,s,n];case 5:return[n,s,o]}};x.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),a,s,o;return o=(2-r)*n,a=(2-r)*i,s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};x.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,a,s,o,u;i>1&&(r/=i,n/=i),a=Math.floor(6*e),s=1-n,o=6*e-a,a&1&&(o=1-o),u=r+o*(s-r);var l,h,d;switch(a){default:case 6:case 0:l=s,h=u,d=r;break;case 1:l=u,h=s,d=r;break;case 2:l=r,h=s,d=u;break;case 3:l=r,h=u,d=s;break;case 4:l=u,h=r,d=s;break;case 5:l=s,h=r,d=u;break}return[l*255,h*255,d*255]};x.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,a,s,o;return a=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),[a*255,s*255,o*255]};x.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,a,s;return i=e*3.2406+r*-1.5372+n*-.4986,a=e*-.9689+r*1.8758+n*.0415,s=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};x.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,a,s;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,a=500*(e-r),s=200*(r-n),[i,a,s]};x.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,a,s;a=(e+16)/116,i=r/500+a,s=a-n/200;var o=Math.pow(a,3),u=Math.pow(i,3),l=Math.pow(s,3);return a=o>.008856?o:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};x.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,a,s;return i=Math.atan2(n,r),a=i*360/2/Math.PI,a<0&&(a+=360),s=Math.sqrt(r*r+n*n),[e,s,a]};x.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,a,s;return s=n/360*2*Math.PI,i=r*Math.cos(s),a=r*Math.sin(s),[e,i,a]};x.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:x.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var a=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(a+=60),a};x.hsv.ansi16=function(t){return x.rgb.ansi16(x.hsv.rgb(t),t[2])};x.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};x.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,a=(e>>2&1)*r*255;return[n,i,a]};x.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,a=r%6/5*255;return[n,i,a]};x.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var n=parseInt(r,16),i=n>>16&255,a=n>>8&255,s=n&255;return[i,a,s]};x.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),a=Math.min(Math.min(e,r),n),s=i-a,o,u;return s<1?o=a/(1-s):o=0,s<=0?u=0:i===e?u=(r-n)/s%6:i===r?u=2+(n-e)/s:u=4+(e-r)/s+4,u/=6,u%=1,[u*360,s*100,o*100]};x.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};x.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};x.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],a=e%1*6,s=a%1,o=1-s,u=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};x.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};x.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};x.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};x.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],i*100,a*100]};x.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};x.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};x.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};x.gray.hsl=x.gray.hsv=function(t){return[0,0,t[0]]};x.gray.hwb=function(t){return[0,100,t[0]]};x.gray.cmyk=function(t){return[0,0,0,t[0]]};x.gray.lab=function(t){return[t[0],0,0]};x.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};x.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var ll=c((oy,ul)=>{var Kr=Ci();function lm(){for(var t={},e=Object.keys(Kr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function fm(t){var e=lm(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Kr[n]),a=i.length,s=0;s<a;s++){var o=i[s],u=e[o];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(o))}return e}function cm(t,e){return function(r){return e(t(r))}}function hm(t,e){for(var r=[e[t].parent,t],n=Kr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=cm(Kr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}ul.exports=function(t){for(var e=fm(t),r={},n=Object.keys(e),i=n.length,a=0;a<i;a++){var s=n[a],o=e[s];o.parent!==null&&(r[s]=hm(s,e))}return r}});var cl=c((uy,fl)=>{var Li=Ci(),dm=ll(),ft={},pm=Object.keys(Li);function gm(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function mm(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,a=0;a<i;a++)n[a]=Math.round(n[a]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}pm.forEach(function(t){ft[t]={},Object.defineProperty(ft[t],"channels",{value:Li[t].channels}),Object.defineProperty(ft[t],"labels",{value:Li[t].labels});var e=dm(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];ft[t][n]=mm(i),ft[t][n].raw=gm(i)})});fl.exports=ft});var pl=c((ly,dl)=>{"use strict";var Ft=tl(),ie=cl(),$i=[].slice,hl=["keyword","gray","hex"],ji={};Object.keys(ie).forEach(function(t){ji[$i.call(ie[t].labels).sort().join("")]=t});var Jr={};function J(t,e){if(!(this instanceof J))return new J(t,e);if(e&&e in hl&&(e=null),e&&!(e in ie))throw new Error("Unknown model: "+e);var r,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof J)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var i=Ft.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=ie[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(t.length){this.model=e||"rgb",n=ie[this.model].channels;var a=$i.call(t,0,n);this.color=Ni(a,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var s=Object.keys(t);"alpha"in t&&(s.splice(s.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var o=s.sort().join("");if(!(o in ji))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=ji[o];var u=ie[this.model].labels,l=[];for(r=0;r<u.length;r++)l.push(t[u[r]]);this.color=Ni(l)}if(Jr[this.model])for(n=ie[this.model].channels,r=0;r<n;r++){var h=Jr[this.model][r];h&&(this.color[r]=h(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}J.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in Ft.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var r=e.valpha===1?e.color:e.color.concat(this.valpha);return Ft.to[e.model](r)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),r=e.valpha===1?e.color:e.color.concat(this.valpha);return Ft.to.rgb.percent(r)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=ie[this.model].channels,r=ie[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new J(this.color.map(ym(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new J(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:I("rgb",0,z(255)),green:I("rgb",1,z(255)),blue:I("rgb",2,z(255)),hue:I(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:I("hsl",1,z(100)),lightness:I("hsl",2,z(100)),saturationv:I("hsv",1,z(100)),value:I("hsv",2,z(100)),chroma:I("hcg",1,z(100)),gray:I("hcg",2,z(100)),white:I("hwb",1,z(100)),wblack:I("hwb",2,z(100)),cyan:I("cmyk",0,z(100)),magenta:I("cmyk",1,z(100)),yellow:I("cmyk",2,z(100)),black:I("cmyk",3,z(100)),x:I("xyz",0,z(100)),y:I("xyz",1,z(100)),z:I("xyz",2,z(100)),l:I("lab",0,z(100)),a:I("lab",1),b:I("lab",2),keyword:function(t){return arguments.length?new J(t):ie[this.model].keyword(this.color)},hex:function(t){return arguments.length?new J(t):Ft.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return J.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),n=this.rgb(),i=e===void 0?.5:e,a=2*i-1,s=r.alpha()-n.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,u=1-o;return J.rgb(o*r.red()+u*n.red(),o*r.green()+u*n.green(),o*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};Object.keys(ie).forEach(function(t){if(hl.indexOf(t)===-1){var e=ie[t].channels;J.prototype[t]=function(){if(this.model===t)return new J(this);if(arguments.length)return new J(arguments,t);var r=typeof arguments[e]=="number"?e:this.valpha;return new J(bm(ie[this.model][t].raw(this.color)).concat(r),t)},J[t]=function(r){return typeof r=="number"&&(r=Ni($i.call(arguments),e)),new J(r,t)}}});function vm(t,e){return Number(t.toFixed(e))}function ym(t){return function(e){return vm(e,t)}}function I(t,e,r){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(Jr[n]||(Jr[n]=[]))[e]=r}),t=t[0],function(n){var i;return arguments.length?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function z(t){return function(e){return Math.max(0,Math.min(t,e))}}function bm(t){return Array.isArray(t)?t:[t]}function Ni(t,e){for(var r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}dl.exports=J});var ml=c((fy,gl)=>{"use strict";gl.exports=function(e){for(var r=0,n=0;r<e.length;n=e.charCodeAt(r++)+((n<<5)-n));var i=Math.floor(Math.abs(Math.sin(n)*1e4%1*16777216)).toString(16);return"#"+Array(6-i.length+1).join("0")+i}});var wl=c((cy,bl)=>{"use strict";var vl=pl(),yl=ml();bl.exports=function(e,r){var n=e.split(r||":"),i=yl(n[0]);if(!n.length)return i;for(var a=0,s=n.length-1;a<s;a++)i=vl(i).mix(vl(yl(n[a+1]))).saturate(1).hex();return i}});var El=c((hy,_l)=>{"use strict";function de(t,e){if(e)return new de(t).style(e);if(!(this instanceof de))return new de(t);this.text=t}de.prototype.prefix="\x1B[";de.prototype.suffix="m";de.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var r=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return[parseInt(r,16),parseInt(n,16),parseInt(i,16)]};de.prototype.rgb=function(e,r,n){var i=e/255*5,a=r/255*5,s=n/255*5;return this.ansi(i,a,s)};de.prototype.ansi=function(e,r,n){var i=Math.round(e),a=Math.round(r),s=Math.round(n);return 16+i*36+a*6+s};de.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};de.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};_l.exports=de});var xl=c((dy,Sl)=>{var wm=wl(),_m=El();Sl.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?_m(n+":",wm(n)):n+":";return e[0]=i+" "+e[0],e}});var Ml=c((py,Ol)=>{"use strict";Ol.exports=function(e,r){if(!r)return!1;for(var n=r.split(/[\s,]+/),i=0;i<n.length;i++){if(r=n[i].replace("*",".*?"),r.charAt(0)==="-"){if(new RegExp("^"+r.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+r+"$").test(e))return!0}return!1}});var Tl=c((gy,Rl)=>{var Em=Ml();Rl.exports=function(e){return function(n){try{return Em(n,e())}catch{}return!1}}});var Al=c((my,ql)=>{var Sm=Tl();ql.exports=Sm(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Cl=c((vy,Pl)=>{Pl.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var jl=c((yy,Ll)=>{var xm=Pi(),Om=require("tty").isatty(1),Zr=xm(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:Om,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});Zr.modify(xl());Zr.use(Al());Zr.set(Cl());Ll.exports=Zr});var Dt=c((by,Fi)=>{process.env.NODE_ENV==="production"?Fi.exports=Hu():Fi.exports=jl()});var $l=c((wy,Nl)=>{"use strict";var Di=require("fs"),{StringDecoder:Mm}=require("string_decoder"),{Stream:Rm}=He();function Tm(){}Nl.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new Mm("utf8"),i=new Rm,a="",s=0,o=0;return t.start===-1&&delete t.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},Di.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):i.emit("error",u),i.destroy();return}(function h(){if(i.destroyed){Di.close(l,Tm);return}return Di.read(l,r,0,r.length,s,(d,g)=>{if(d){e?e(d):i.emit("error",d),i.destroy();return}if(!g)return a&&((t.start==null||o>t.start)&&(e?e(null,a):i.emit("line",a)),o++,a=""),setTimeout(h,1e3);let v=n.write(r.slice(0,g));e||i.emit("data",v),v=(a+v).split(/\n+/);let f=v.length-1,m=0;for(;m<f;m++)(t.start==null||o>t.start)&&(e?e(null,v[m]):i.emit("line",v[m])),o++;return a=v[f],s+=g,h()})})()}),e?i.destroy:i}});var Il=c((Ey,kl)=>{"use strict";var te=require("fs"),V=require("path"),Fl=Au(),qm=require("zlib"),{MESSAGE:Am}=W(),{Stream:Pm,PassThrough:Dl}=He(),Cm=st(),pe=Dt()("winston:file"),Lm=require("os"),jm=$l();kl.exports=class extends Cm{constructor(e={}){super(e),this.name=e.name||"file";function r(n,...i){i.slice(1).forEach(a=>{if(e[a])throw new Error(`Cannot set ${a} and ${n} together`)})}if(this._stream=new Dl,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)r("filename or dirname","stream"),this._basename=this.filename=e.filename?V.basename(e.filename):"winston.log",this.dirname=e.dirname||V.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),r("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=V.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:Lm.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,r=()=>{}){if(this.silent)return r(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,r)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,r)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,r)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,r)})});return}}let n=`${e[Am]}${this.eol}`,i=Buffer.byteLength(n);function a(){if(this._size+=i,this._pendingSize-=i,pe("logged %s %s",this._size,n),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let s=this._stream.write(n,a.bind(this));return s?r():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,r()})),pe("written",s,this._drain),this.finishIfEnding(),s}query(e,r){typeof e=="function"&&(r=e,e={}),e=d(e);let n=V.join(this.dirname,this.filename),i="",a=[],s=0,o=te.createReadStream(n,{encoding:"utf8"});o.on("error",g=>{if(o.readable&&o.destroy(),!!r)return g.code!=="ENOENT"?r(g):r(null,a)}),o.on("data",g=>{g=(i+g).split(/\n+/);let v=g.length-1,f=0;for(;f<v;f++)(!e.start||s>=e.start)&&u(g[f]),s++;i=g[v]}),o.on("close",()=>{i&&u(i,!0),e.order==="desc"&&(a=a.reverse()),r&&r(null,a)});function u(g,v){try{let f=JSON.parse(g);h(f)&&l(f)}catch(f){v||o.emit("error",f)}}function l(g){if(e.rows&&a.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(g=e.fields.reduce((v,f)=>(v[f]=g[f],v),{})),e.order==="desc"&&a.length>=e.rows&&a.shift(),a.push(g)}function h(g){if(!g||typeof g!="object")return;let v=new Date(g.timestamp);if(!(e.from&&v<e.from||e.until&&v>e.until||e.level&&e.level!==g.level))return!0}function d(g){return g=g||{},g.rows=g.rows||g.limit||10,g.start=g.start||0,g.until=g.until||new Date,typeof g.until!="object"&&(g.until=new Date(g.until)),g.from=g.from||g.until-24*60*60*1e3,typeof g.from!="object"&&(g.from=new Date(g.from)),g.order=g.order||"desc",g}}stream(e={}){let r=V.join(this.dirname,this.filename),n=new Pm,i={file:r,start:e.start};return n.destroy=jm(i,(a,s)=>{if(a)return n.emit("error",a);try{n.emit("data",s),s=JSON.parse(s),n.emit("log",s)}catch(o){n.emit("error",o)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,r)=>{if(e)return this.emit("error",e);pe("stat done: %s { size: %s }",this.filename,r),this._size=r,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let r=this._getFile(),n=V.join(this.dirname,r);te.stat(n,(i,a)=>{if(i&&i.code==="ENOENT")return pe("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return pe(`err ${i.code} ${n}`),e(i);if(!a||this._needsNewFile(a.size))return this._incFile(()=>this.stat(e));this.filename=r,e(null,a.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let r=V.join(this.dirname,this.filename);pe("create stream start",r,this.options);let n=te.createWriteStream(r,this.options).on("error",i=>pe(i)).on("close",()=>pe("close",n.path,n.bytesWritten)).on("open",()=>{pe("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new Dl,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return pe("create stream ok",r),n}_incFile(e){pe("_incFile",this.filename);let r=V.extname(this._basename),n=V.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(a){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(V.join(this.dirname,`${n}${s}${r}`),V.join(this.dirname,`${n}${s}${r}.gz`),a)}.bind(this)),i.push(function(a){this.tailable?this._checkMaxFilesTailable(r,n,a):(this._created+=1,this._checkMaxFilesIncrementing(r,n,a))}.bind(this)),Fl(i,e)}_getFile(){let e=V.extname(this._basename),r=V.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${r}${n}${e}`:`${r}${e}`}_checkMaxFilesIncrementing(e,r,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,a=i!==0?i:"",s=this.zippedArchive?".gz":"",o=`${r}${a}${e}${s}`,u=V.join(this.dirname,o);te.unlink(u,n)}_checkMaxFilesTailable(e,r,n){let i=[];if(!this.maxFiles)return;let a=this.zippedArchive?".gz":"";for(let s=this.maxFiles-1;s>1;s--)i.push(function(o,u){let l=`${r}${o-1}${e}${a}`,h=V.join(this.dirname,l);te.exists(h,d=>{if(!d)return u(null);l=`${r}${o}${e}${a}`,te.rename(h,V.join(this.dirname,l),u)})}.bind(this,s));Fl(i,()=>{te.rename(V.join(this.dirname,`${r}${e}${a}`),V.join(this.dirname,`${r}1${e}${a}`),n)})}_compressFile(e,r,n){te.access(e,te.F_OK,i=>{if(i)return n();var a=qm.createGzip(),s=te.createReadStream(e),o=te.createWriteStream(r);o.on("finish",()=>{te.unlink(e,n)}),s.pipe(a).pipe(o)})}_createLogDirIfNotExist(e){te.existsSync(e)||te.mkdirSync(e,{recursive:!0})}}});var Gl=c((xy,Bl)=>{"use strict";var Nm=require("http"),$m=require("https"),{Stream:Fm}=He(),Dm=st(),km=bt();Bl.exports=class extends Dm{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,r){this._request(e,null,null,(n,i)=>{i&&i.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),r&&setImmediate(r)}query(e,r){typeof e=="function"&&(r=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let i=e.params.path||null;delete e.params.path,this._request(e,n,i,(a,s,o)=>{if(s&&s.statusCode!==200&&(a=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),a)return r(a);if(typeof o=="string")try{o=JSON.parse(o)}catch(u){return r(u)}r(null,o)})}stream(e={}){let r=new Fm;e={method:"stream",params:e};let n=e.params.path||null;delete e.params.path;let i=e.params.auth||null;delete e.params.auth;let a="",s=this._request(e,i,n);return r.destroy=()=>s.destroy(),s.on("data",o=>{o=(a+o).split(/\n+/);let u=o.length-1,l=0;for(;l<u;l++)try{r.emit("log",JSON.parse(o[l]))}catch(h){r.emit("error",h)}a=o[u]}),s.on("error",o=>r.emit("error",o)),r}_request(e,r,n,i){e=e||{},r=r||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,r,n):this._doRequest(e,i,r,n)}_doBatch(e,r,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let a=this;this.batchCallback=r,this.batchTimeoutID=setTimeout(function(){a.batchTimeoutID=-1,a._doBatchRequest(a.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,r,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,r,n)}_doRequest(e,r,n,i){let a=Object.assign({},this.headers);n&&n.bearer&&(a.Authorization=`Bearer ${n.bearer}`);let s=(this.ssl?$m:Nm).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:a,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});s.on("error",r),s.on("response",o=>o.on("end",()=>r(null,o)).resume()),s.end(Buffer.from(km(e,this.options.replacer),"utf8"))}}});var ki=c((Oy,Wl)=>{"use strict";var be=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";be.writable=t=>be(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";be.readable=t=>be(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";be.duplex=t=>be.writable(t)&&be.readable(t);be.transform=t=>be.duplex(t)&&typeof t._transform=="function";Wl.exports=be});var Ul=c((Ry,Hl)=>{"use strict";var Im=ki(),{MESSAGE:Bm}=W(),Gm=require("os"),Wm=st();Hl.exports=class extends Wm{constructor(e={}){if(super(e),!e.stream||!Im(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:Gm.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[Bm]}${this.eol}`),r&&r()}}});var zl=c(kt=>{"use strict";Object.defineProperty(kt,"Console",{configurable:!0,enumerable:!0,get(){return Vo()}});Object.defineProperty(kt,"File",{configurable:!0,enumerable:!0,get(){return Il()}});Object.defineProperty(kt,"Http",{configurable:!0,enumerable:!0,get(){return Gl()}});Object.defineProperty(kt,"Stream",{configurable:!0,enumerable:!0,get(){return Ul()}})});var Xr=c(It=>{"use strict";var Qr=kn(),{configs:Ii}=W();It.cli=Qr.levels(Ii.cli);It.npm=Qr.levels(Ii.npm);It.syslog=Qr.levels(Ii.syslog);It.addColors=Qr.levels});var Vl=c((en,Yl)=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});var Hm=Tr(),Um=ze(Hm),zm=Dr(),Ym=ze(zm),Vm=Ei(),Km=ze(Vm),Jm=bi(),Zm=ze(Jm),Qm=wi(),Xm=ze(Qm),e0=We(),t0=ze(e0),r0=ut(),n0=ze(r0);function ze(t){return t&&t.__esModule?t:{default:t}}function i0(t,e,r){r=(0,Zm.default)(r);var n=0,i=0,{length:a}=t,s=!1;a===0&&r(null);function o(u,l){u===!1&&(s=!0),s!==!0&&(u?r(u):(++i===a||l===Ym.default)&&r(null))}for(;n<a;n++)e(t[n],n,(0,Xm.default)(o))}function a0(t,e,r){return(0,Km.default)(t,1/0,e,r)}function s0(t,e,r){var n=(0,Um.default)(t)?i0:a0;return n(t,(0,t0.default)(e),r)}en.default=(0,n0.default)(s0,3);Yl.exports=en.default});var Jl=c((tn,Kl)=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.default=o0;function o0(t){return(e,r,n)=>t(e,n)}Kl.exports=tn.default});var an=c((nn,Zl)=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});var u0=Vl(),l0=rn(u0),f0=Jl(),c0=rn(f0),h0=We(),d0=rn(h0),p0=ut(),g0=rn(p0);function rn(t){return t&&t.__esModule?t:{default:t}}function m0(t,e,r){return(0,l0.default)(t,(0,c0.default)((0,d0.default)(e)),r)}nn.default=(0,g0.default)(m0,3);Zl.exports=nn.default});var Xl=c((Ay,Ql)=>{"use strict";var v0=Object.prototype.toString;Ql.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var r=e.toString(),n=v0.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var Bi=c((Py,ef)=>{"use strict";var y0=Xl();ef.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=y0(e),i}});var Gi=c(Gt=>{Gt.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(a,s){return s},Error.captureStackTrace(r,t||Gt.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Gt.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
|
|
28
|
-
`).slice(1);return r.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var
|
|
29
|
-
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:
|
|
30
|
-
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:
|
|
31
|
-
`));
|
|
32
|
-
`))}_onEvent(e,r){function n(i){e==="error"&&!this.transports.includes(r)&&this.add(r),this.emit(e,i,r)}r["__winston"+e]||(r["__winston"+e]=n.bind(this),r.on(e,r["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Vi(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(on.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});vf.exports=on});var Ki=c((Wy,yf)=>{"use strict";var{LEVEL:D0}=W(),k0=Xr(),I0=sn(),B0=Dt()("winston:create-logger");function G0(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}yf.exports=function(t={}){t.levels=t.levels||k0.npm.levels;class e extends I0{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(B0('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...i){let a=this||r;if(i.length===1){let[s]=i,o=s&&s.message&&s||{message:s};return o.level=o[D0]=n,a._addDefaultMeta(o),a.write(o),this||r}return i.length===0?(a.log(n,""),a):a.log(n,...i)},e.prototype[G0(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var wf=c((Uy,bf)=>{"use strict";var W0=Ki();bf.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,r){if(!this.loggers.has(e)){r=Object.assign({},r||this.options);let n=r.transports||this.options.transports;n?r.transports=Array.isArray(n)?n.slice():[n]:r.transports=[];let i=W0(r);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,r){return this.add(e,r)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((r,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var Ef=c(N=>{"use strict";var _f=kn(),{warn:Wt}=In();N.version=Us().version;N.transports=zl();N.config=Xr();N.addColors=_f.levels;N.format=_f.format;N.createLogger=Ki();N.Logger=sn();N.ExceptionHandler=Hi();N.RejectionHandler=zi();N.Container=wf();N.Transport=st();N.loggers=new N.Container;var _e=N.createLogger();Object.keys(N.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>N[t]=(...e)=>_e[t](...e));Object.defineProperty(N,"level",{get(){return _e.level},set(t){_e.level=t}});Object.defineProperty(N,"exceptions",{get(){return _e.exceptions}});Object.defineProperty(N,"rejections",{get(){return _e.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(N,t,{get(){return _e[t]},set(e){_e[t]=e}})});Object.defineProperty(N,"default",{get(){return{exceptionHandlers:_e.exceptionHandlers,rejectionHandlers:_e.rejectionHandlers,transports:_e.transports}}});Wt.deprecated(N,"setLevels");Wt.forFunctions(N,"useFormat",["cli"]);Wt.forProperties(N,"useFormat",["padLevels","stripColors"]);Wt.forFunctions(N,"deprecated",["addRewriter","addFilter","clone","extend"]);Wt.forProperties(N,"deprecated",["emitErrs","levelLength"])});var Rf=c((Ht,Mf)=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.default=void 0;var z0={printWidth:100,tabWidth:2,semi:!0,singleQuote:!0,trailingComma:"es5",bracketSpacing:!0,bracketSameLine:!1,arrowParens:"avoid",plugins:["@trivago/prettier-plugin-sort-imports","prettier-plugin-sh","prettier-plugin-pkg","prettier-plugin-toml","prettier-plugin-nginx"],overrides:[{files:["*.toml.template"],options:{parser:"toml"}},{files:["*.nginxconf","nginx*.conf","nginx*.conf.template"],options:{parser:"nginx"}},{files:[".env",".env.*"],options:{parser:"sh"}}],importOrder:["(^react(.*)|^next(.*))$","<THIRD_PARTY_MODULES>","^[./]"],importOrderSeparation:!0,importOrderSortSpecifiers:!0,importOrderParserPlugins:["typescript","jsx","decorators-legacy"]},Xy=Ht.default=z0;Mf.exports=Ht.default});var qf=c((ub,Tf)=>{Tf.exports=function(t,e){for(var r=[],n=0;n<t.length;n++){var i=e(t[n],n);Z0(i)?r.push.apply(r,i):r.push(i)}return r};var Z0=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var jf=c((lb,Lf)=>{"use strict";Lf.exports=Pf;function Pf(t,e,r){t instanceof RegExp&&(t=Af(t,r)),e instanceof RegExp&&(e=Af(e,r));var n=Cf(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}function Af(t,e){var r=e.match(t);return r?r[0]:null}Pf.range=Cf;function Cf(t,e,r){var n,i,a,s,o,u=r.indexOf(t),l=r.indexOf(e,u+1),h=u;if(u>=0&&l>0){if(t===e)return[u,l];for(n=[],a=r.length;h>=0&&!o;)h==u?(n.push(h),u=r.indexOf(t,h+1)):n.length==1?o=[n.pop(),l]:(i=n.pop(),i<a&&(a=i,s=l),l=r.indexOf(e,h+1)),h=u<l&&u>=0?u:l;n.length&&(o=[a,s])}return o}});var Gf=c((fb,Bf)=>{var Q0=qf(),Nf=jf();Bf.exports=tv;var $f="\0SLASH"+Math.random()+"\0",Ff="\0OPEN"+Math.random()+"\0",Xi="\0CLOSE"+Math.random()+"\0",Df="\0COMMA"+Math.random()+"\0",kf="\0PERIOD"+Math.random()+"\0";function Qi(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function X0(t){return t.split("\\\\").join($f).split("\\{").join(Ff).split("\\}").join(Xi).split("\\,").join(Df).split("\\.").join(kf)}function ev(t){return t.split($f).join("\\").split(Ff).join("{").split(Xi).join("}").split(Df).join(",").split(kf).join(".")}function If(t){if(!t)return[""];var e=[],r=Nf("{","}",t);if(!r)return t.split(",");var n=r.pre,i=r.body,a=r.post,s=n.split(",");s[s.length-1]+="{"+i+"}";var o=If(a);return a.length&&(s[s.length-1]+=o.shift(),s.push.apply(s,o)),e.push.apply(e,s),e}function tv(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),ht(X0(t),!0).map(ev)):[]}function rv(t){return"{"+t+"}"}function nv(t){return/^-?0\d/.test(t)}function iv(t,e){return t<=e}function av(t,e){return t>=e}function ht(t,e){var r=[],n=Nf("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),s=i||a,o=n.body.indexOf(",")>=0;if(!s&&!o)return n.post.match(/,.*\}/)?(t=n.pre+"{"+n.body+Xi+n.post,ht(t)):[t];var u;if(s)u=n.body.split(/\.\./);else if(u=If(n.body),u.length===1&&(u=ht(u[0],!1).map(rv),u.length===1)){var h=n.post.length?ht(n.post,!1):[""];return h.map(function(B){return n.pre+u[0]+B})}var l=n.pre,h=n.post.length?ht(n.post,!1):[""],d;if(s){var g=Qi(u[0]),v=Qi(u[1]),f=Math.max(u[0].length,u[1].length),m=u.length==3?Math.abs(Qi(u[2])):1,E=iv,y=v<g;y&&(m*=-1,E=av);var _=u.some(nv);d=[];for(var b=g;E(b,v);b+=m){var w;if(a)w=String.fromCharCode(b),w==="\\"&&(w="");else if(w=String(b),_){var A=f-w.length;if(A>0){var L=new Array(A+1).join("0");b<0?w="-"+L+w.slice(1):w=L+w}}d.push(w)}}else d=Q0(u,function(D){return ht(D,!1)});for(var R=0;R<d.length;R++)for(var P=0;P<h.length;P++){var M=l+d[R]+h[P];(!e||s||M)&&r.push(M)}return r}});var ra=c((cb,Yf)=>{Yf.exports=ae;ae.Minimatch=H;var Ut=function(){try{return require("path")}catch{}}()||{sep:"/"};ae.sep=Ut.sep;var Ye=ae.GLOBSTAR=H.GLOBSTAR={},sv=Gf(),Wf={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ea="[^/]",ta=ea+"*?",ov="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",uv="(?:(?!(?:\\/|^)\\.).)*?",Hf=lv("().*{}+?[]^$\\!");function lv(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var Uf=/\/+/;ae.filter=fv;function fv(t,e){return e=e||{},function(r,n,i){return ae(r,t,e)}}function Ce(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(n){r[n]=t[n]}),Object.keys(e).forEach(function(n){r[n]=e[n]}),r}ae.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return ae;var e=ae,r=function(i,a,s){return e(i,a,Ce(t,s))};return r.Minimatch=function(i,a){return new e.Minimatch(i,Ce(t,a))},r.Minimatch.defaults=function(i){return e.defaults(Ce(t,i)).Minimatch},r.filter=function(i,a){return e.filter(i,Ce(t,a))},r.defaults=function(i){return e.defaults(Ce(t,i))},r.makeRe=function(i,a){return e.makeRe(i,Ce(t,a))},r.braceExpand=function(i,a){return e.braceExpand(i,Ce(t,a))},r.match=function(n,i,a){return e.match(n,i,Ce(t,a))},r};H.defaults=function(t){return ae.defaults(t).Minimatch};function ae(t,e,r){return fn(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new H(e,r).match(t)}function H(t,e){if(!(this instanceof H))return new H(t,e);fn(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&Ut.sep!=="/"&&(t=t.split(Ut.sep).join("/")),this.options=e,this.maxGlobstarRecursion=e.maxGlobstarRecursion!==void 0?e.maxGlobstarRecursion:200,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}H.prototype.debug=function(){};H.prototype.make=cv;function cv(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(Uf)}),this.debug(this.pattern,r),r=r.map(function(n,i,a){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}H.prototype.parseNegate=hv;function hv(){var t=this.pattern,e=!1,r=this.options,n=0;if(!r.nonegate){for(var i=0,a=t.length;i<a&&t.charAt(i)==="!";i++)e=!e,n++;n&&(this.pattern=t.substr(n)),this.negate=e}}ae.braceExpand=function(t,e){return zf(t,e)};H.prototype.braceExpand=zf;function zf(t,e){return e||(this instanceof H?e=this.options:e={}),t=typeof t>"u"?this.pattern:t,fn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:sv(t)}var dv=1024*64,fn=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>dv)throw new TypeError("pattern is too long")};H.prototype.parse=pv;var ln={};function pv(t,e){fn(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return Ye;if(t==="")return"";var n="",i=!!r.nocase,a=!1,s=[],o=[],u,l=!1,h=-1,d=-1,g=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=this;function f(){if(u){switch(u){case"*":n+=ta,i=!0;break;case"?":n+=ea,i=!0;break;default:n+="\\"+u;break}v.debug("clearStateChar %j %j",u,n),u=!1}}for(var m=0,E=t.length,y;m<E&&(y=t.charAt(m));m++){if(this.debug("%s %s %s %j",t,m,n,y),a&&Hf[y]){n+="\\"+y,a=!1;continue}switch(y){case"/":return!1;case"\\":f(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,m,n,y),l){this.debug(" in class"),y==="!"&&m===d+1&&(y="^"),n+=y;continue}if(y==="*"&&u==="*")continue;v.debug("call clearStateChar %j",u),f(),u=y,r.noext&&f();continue;case"(":if(l){n+="(";continue}if(!u){n+="\\(";continue}s.push({type:u,start:m-1,reStart:n.length,open:Wf[u].open,close:Wf[u].close}),n+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,n),u=!1;continue;case")":if(l||!s.length){n+="\\)";continue}f(),i=!0;var _=s.pop();n+=_.close,_.type==="!"&&o.push(_),_.reEnd=n.length;continue;case"|":if(l||!s.length||a){n+="\\|",a=!1;continue}f(),n+="|";continue;case"[":if(f(),l){n+="\\"+y;continue}l=!0,d=m,h=n.length,n+=y;continue;case"]":if(m===d+1||!l){n+="\\"+y,a=!1;continue}var b=t.substring(d+1,m);try{RegExp("["+b+"]")}catch{var w=this.parse(b,ln);n=n.substr(0,h)+"\\["+w[0]+"\\]",i=i||w[1],l=!1;continue}i=!0,l=!1,n+=y;continue;default:f(),a?a=!1:Hf[y]&&!(y==="^"&&l)&&(n+="\\"),n+=y}}for(l&&(b=t.substr(d+1),w=this.parse(b,ln),n=n.substr(0,h)+"\\["+w[0],i=i||w[1]),_=s.pop();_;_=s.pop()){var A=n.slice(_.reStart+_.open.length);this.debug("setting tail",n,_),A=A.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(O,re,le){return le||(le="\\"),re+re+le+"|"}),this.debug(`tail=%j
|
|
33
|
-
%s`,A,A,_,n);var L=_.type==="*"?ta:_.type==="?"?ea:"\\"+_.type;i=!0,n=n.slice(0,_.reStart)+L+"\\("+A}f(),a&&(n+="\\\\");var R=!1;switch(n.charAt(0)){case"[":case".":case"(":R=!0}for(var P=o.length-1;P>-1;P--){var M=o[P],D=n.slice(0,M.reStart),B=n.slice(M.reStart,M.reEnd-8),G=n.slice(M.reEnd-8,M.reEnd),U=n.slice(M.reEnd);G+=U;var Z=D.split("(").length-1,me=U;for(m=0;m<Z;m++)me=me.replace(/\)[+*?]?/,"");U=me;var p="";U===""&&e!==ln&&(p="$");var S=D+B+U+p+G;n=S}if(n!==""&&i&&(n="(?=.)"+n),R&&(n=g+n),e===ln)return[n,i];if(!i)return mv(t);var j=r.nocase?"i":"";try{var Y=new RegExp("^"+n+"$",j)}catch{return new RegExp("$.")}return Y._glob=t,Y._src=n,Y}ae.makeRe=function(t,e){return new H(t,e||{}).makeRe()};H.prototype.makeRe=gv;function gv(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?ta:e.dot?ov:uv,n=e.nocase?"i":"",i=t.map(function(a){return a.map(function(s){return s===Ye?r:typeof s=="string"?vv(s):s._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}ae.match=function(t,e,r){r=r||{};var n=new H(e,r);return t=t.filter(function(i){return n.match(i)}),n.options.nonull&&!t.length&&t.push(e),t};H.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;Ut.sep!=="/"&&(e=e.split(Ut.sep).join("/")),e=e.split(Uf),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var a,s;for(s=e.length-1;s>=0&&(a=e[s],!a);s--);for(s=0;s<i.length;s++){var o=i[s],u=e;n.matchBase&&o.length===1&&(u=[a]);var l=this.matchOne(u,o,r);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};H.prototype.matchOne=function(t,e,r){return e.indexOf(Ye)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};H.prototype._matchGlobstar=function(t,e,r,n,i){var a,s=-1;for(a=i;a<e.length;a++)if(e[a]===Ye){s=a;break}var o=-1;for(a=e.length-1;a>=0;a--)if(e[a]===Ye){o=a;break}var u=e.slice(i,s),l=r?e.slice(s+1):e.slice(s+1,o),h=r?[]:e.slice(o+1);if(u.length){var d=t.slice(n,n+u.length);if(!this._matchOne(d,u,r,0,0))return!1;n+=u.length}var g=0;if(h.length){if(h.length+n>t.length)return!1;var v=t.length-h.length;if(this._matchOne(t,h,r,v,0))g=h.length;else{if(t[t.length-1]!==""||n+h.length===t.length||(v--,!this._matchOne(t,h,r,v,0)))return!1;g=h.length+1}}if(!l.length){var f=!!g;for(a=n;a<t.length-g;a++){var m=String(t[a]);if(f=!0,m==="."||m===".."||!this.options.dot&&m.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],y=E[0],_=0,b=[0],w=0;w<l.length;w++){var A=l[w];A===Ye?(b.push(_),y=[[],0],E.push(y)):(y[0].push(A),_++)}for(var L=E.length-1,R=t.length-g,P=0;P<E.length;P++)E[P][1]=R-(b[L--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!g)};H.prototype._matchGlobStarBodySections=function(t,e,r,n,i,a,s){var o=e[n];if(!o){for(var u=r;u<t.length;u++){s=!0;var l=t[u];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1}return s}for(var h=o[0],d=o[1];r<=d;){var g=this._matchOne(t.slice(0,r+h.length),h,i,r,0);if(g&&a<this.maxGlobstarRecursion){var v=this._matchGlobStarBodySections(t,e,r+h.length,n+1,i,a+1,s);if(v!==!1)return v}var l=t[r];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1;r++}return i||null};H.prototype._matchOne=function(t,e,r,n,i){var a,s,o,u;for(a=n,s=i,o=t.length,u=e.length;a<o&&s<u;a++,s++){this.debug("matchOne loop");var l=e[s],h=t[a];if(this.debug(e,l,h),l===!1||l===Ye)return!1;var d;if(typeof l=="string"?(d=h===l,this.debug("string match",l,h,d)):(d=h.match(l),this.debug("pattern match",l,h,d)),!d)return!1}if(a===o&&s===u)return!0;if(a===o)return r;if(s===u)return a===o-1&&t[a]==="";throw new Error("wtf?")};function mv(t){return t.replace(/\\(.)/g,"$1")}function vv(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Kf=c((hb,Vf)=>{"use strict";var yv=ra();Vf.exports=function(){function t(e){this.matchers=e.map(function(r){return typeof r=="string"?new yv.Minimatch(r):r})}return t.prototype.match=function(e){for(var r=0;r<this.matchers.length;r++)if(this.matchers[r].match(e))return!0;return!1},t.prototype.mayContain=function(e){for(var r=e.split(/\/|\\/g).filter(Boolean),n=0;n<this.matchers.length;n++)for(var i=this.matchers[n],a=0;a<i.set.length;a++)if(i.matchOne(r,i.set[a],!0))return!0;return!1},t}()});var Qf=c((db,Zf)=>{"use strict";var Jf=require("path");Zf.exports=function(e){return Jf.sep!=="/"?e.split(Jf.sep).join("/"):e}});var aa=c((pb,nc)=>{"use strict";var tc=require("fs"),Xf=Kf(),bv=Qf(),wv=require("path"),_v=ra();function zt(t,e){let r=rc(e),n;return r.includeBasePath?n=function(i){return i.basePath.split(wv.sep).join("/").replace(/\/+$/,"")+"/"+i.relativePath}:n=function(i){return i.relativePath},ia(t,r,null,[]).map(n)}function Ev(t,e=tc){try{return e.statSync(t)}catch(r){if(r!==null&&typeof r=="object"&&(r.code==="ENOENT"||r.code==="ENOTDIR"||r.code==="EPERM"))return;throw r}}(function(t){function e(n,i){let a=rc(i);return ia(bv(n),a,null,[])}t.entries=e;class r{constructor(i,a,s,o,u){this.relativePath=i,this.basePath=a,this.mode=s,this.size=o,this.mtime=u}get fullPath(){return`${this.basePath}/${this.relativePath}`}isDirectory(){return(this.mode&61440)===16384}}t.Entry=r})(zt||(zt={}));function na(t){return typeof t<"u"}function rc(t){let e={};return Array.isArray(t)?e.globs=t:t&&(e=t),e}function ec(t,e){return t?.map(r=>typeof r=="string"?new _v.Minimatch(r,e):r)}function Sv(t){return t==null?"":t.slice(-1)!=="/"?t+"/":t}function xv(t,e){let r=t.relativePath,n=e.relativePath;return r===n?0:r<n?-1:1}function ia(t,e,r,n){var i;let a=(i=e.fs)!==null&&i!==void 0?i:tc,s=Sv(r),o=a.realpathSync(t+"/"+s);if(n.indexOf(o)>=0)return[];n.push(o);try{let u=e.globOptions,l=na(u)?ec(e.ignore,u):e.ignore,h=na(u)?ec(e.globs,u):e.globs,d,g,v=[];if(l&&(g=new Xf(l)),h&&(d=new Xf(h)),d&&!d.mayContain(s))return v;let E=a.readdirSync(t+"/"+s).map(y=>{let _=s+y;if(g&&g.match(_))return;let b=t+"/"+_,w=Ev(b,a);return w&&w.isDirectory()?new zt.Entry(_+"/",t,w.mode,w.size,w.mtime.getTime()):new zt.Entry(_,t,w&&w.mode||0,w&&w.size||0,w&&w.mtime.getTime()||0)}).filter(na).sort(xv);for(let y=0;y<E.length;++y){let _=E[y];_.isDirectory()?(e.directories!==!1&&(!d||d.match(_.relativePath))&&v.push(_),v=v.concat(ia(t,e,_.relativePath,n))):(!d||d.match(_.relativePath))&&v.push(_)}return v}finally{n.pop()}}nc.exports=zt});var ha=(t=0)=>e=>`\x1B[${e+t}m`,da=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,pa=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,$={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Pv=Object.keys($.modifier),gc=Object.keys($.color),mc=Object.keys($.bgColor),Cv=[...gc,...mc];function vc(){let t=new Map;for(let[e,r]of Object.entries($)){for(let[n,i]of Object.entries(r))$[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=$[n],t.set(i[0],i[1]);Object.defineProperty($,e,{value:r,enumerable:!1})}return Object.defineProperty($,"codes",{value:t,enumerable:!1}),$.color.close="\x1B[39m",$.bgColor.close="\x1B[49m",$.color.ansi=ha(),$.color.ansi256=da(),$.color.ansi16m=pa(),$.bgColor.ansi=ha(10),$.bgColor.ansi256=da(10),$.bgColor.ansi16m=pa(10),Object.defineProperties($,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(a=>a+a).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>$.rgbToAnsi256(...$.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let o=e%36;r=Math.floor(e/36)/5,n=Math.floor(o/6)/5,i=o%6/5}let a=Math.max(r,n,i)*2;if(a===0)return 30;let s=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return a===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>$.ansi256ToAnsi($.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>$.ansi256ToAnsi($.hexToAnsi256(e)),enumerable:!1}}),$}var yc=vc(),ce=yc;var Qt=Le(require("node:process"),1),ma=Le(require("node:os"),1),hn=Le(require("node:tty"),1);function se(t,e=globalThis.Deno?globalThis.Deno.args:Qt.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:F}=Qt.default,Zt;se("no-color")||se("no-colors")||se("color=false")||se("color=never")?Zt=0:(se("color")||se("colors")||se("color=true")||se("color=always"))&&(Zt=1);function bc(){if("FORCE_COLOR"in F)return F.FORCE_COLOR==="true"?1:F.FORCE_COLOR==="false"?0:F.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(F.FORCE_COLOR,10),3)}function wc(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function _c(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=bc();n!==void 0&&(Zt=n);let i=r?Zt:n;if(i===0)return 0;if(r){if(se("color=16m")||se("color=full")||se("color=truecolor"))return 3;if(se("color=256"))return 2}if("TF_BUILD"in F&&"AGENT_NAME"in F)return 1;if(t&&!e&&i===void 0)return 0;let a=i||0;if(F.TERM==="dumb")return a;if(Qt.default.platform==="win32"){let s=ma.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in F)return"GITHUB_ACTIONS"in F||"GITEA_ACTIONS"in F?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in F)||F.CI_NAME==="codeship"?1:a;if("TEAMCITY_VERSION"in F)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(F.TEAMCITY_VERSION)?1:0;if(F.COLORTERM==="truecolor"||F.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in F){let s=Number.parseInt((F.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(F.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(F.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(F.TERM)||"COLORTERM"in F?1:a}function ga(t,e={}){let r=_c(t,{streamIsTTY:t&&t.isTTY,...e});return wc(r)}var Ec={stdout:ga({isTTY:hn.default.isatty(1)}),stderr:ga({isTTY:hn.default.isatty(2)})},va=Ec;function ya(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,a=0,s="";do s+=t.slice(a,n)+e+r,a=n+i,n=t.indexOf(e,a);while(n!==-1);return s+=t.slice(a),s}function ba(t,e,r,n){let i=0,a="";do{let s=t[n-1]==="\r";a+=t.slice(i,s?n-1:n)+e+(s?`\r
|
|
5
|
+
`),Error.captureStackTrace(this,t)}};Xi.exports=t=>{if(t.length>2)throw new tn(t);function e(n={}){this.options=n}e.prototype.transform=t;function r(n){return new e(n)}return r.Format=e,r}});var ns=f((B0,rs)=>{var ts={};rs.exports=ts;var es={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(es).forEach(function(t){var e=es[t],r=ts[t]=[];r.open="\x1B["+e[0]+"m",r.close="\x1B["+e[1]+"m"})});var ss=f((H0,is)=>{"use strict";is.exports=function(t,e){e=e||process.argv||[];var r=e.indexOf("--"),n=/^-{1,2}/.test(t)?"":"--",i=e.indexOf(n+t);return i!==-1&&(r===-1?!0:i<r)}});var as=f((W0,os)=>{"use strict";var tc=require("os"),ae=ss(),J=process.env,Ye=void 0;ae("no-color")||ae("no-colors")||ae("color=false")?Ye=!1:(ae("color")||ae("colors")||ae("color=true")||ae("color=always"))&&(Ye=!0);"FORCE_COLOR"in J&&(Ye=J.FORCE_COLOR.length===0||parseInt(J.FORCE_COLOR,10)!==0);function rc(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function nc(t){if(Ye===!1)return 0;if(ae("color=16m")||ae("color=full")||ae("color=truecolor"))return 3;if(ae("color=256"))return 2;if(t&&!t.isTTY&&Ye!==!0)return 0;var e=Ye?1:0;if(process.platform==="win32"){var r=tc.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 J)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in J})||J.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in J)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(J.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in J){var n=parseInt((J.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(J.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(J.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(J.TERM)||"COLORTERM"in J?1:(J.TERM==="dumb",e)}function rn(t){var e=nc(t);return rc(e)}os.exports={supportsColor:rn,stdout:rn(process.stdout),stderr:rn(process.stderr)}});var ls=f((G0,us)=>{us.exports=function(e,r){var n="";e=e||"Run the trap, drop the bass",e=e.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 e.forEach(function(s){s=s.toLowerCase();var o=i[s]||[" "],a=Math.floor(Math.random()*o.length);typeof i[s]<"u"?n+=i[s][a]:n+=s}),n}});var fs=f((U0,cs)=>{cs.exports=function(e,r){e=e||" 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(u){var l=Math.floor(Math.random()*u);return l}function o(u){var l=!1;return i.filter(function(d){l=d===u}),l}function a(u,l){var d="",g,p;l=l||{},l.up=typeof l.up<"u"?l.up:!0,l.mid=typeof l.mid<"u"?l.mid:!0,l.down=typeof l.down<"u"?l.down:!0,l.size=typeof l.size<"u"?l.size:"maxi",u=u.split("");for(p in u)if(!o(p)){switch(d=d+u[p],g={up:0,down:0,mid:0},l.size){case"mini":g.up=s(8),g.mid=s(2),g.down=s(8);break;case"maxi":g.up=s(16)+3,g.mid=s(4)+1,g.down=s(64)+3;break;default:g.up=s(8)+1,g.mid=s(6)/2,g.down=s(8)+1;break}var v=["up","mid","down"];for(var c in v)for(var b=v[c],w=0;w<=g[b];w++)l[b]&&(d=d+n[b][s(n[b].length)])}return d}return a(e,r)}});var ds=f((Y0,hs)=>{hs.exports=function(t){return function(e,r,n){if(e===" ")return e;switch(r%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var gs=f((z0,ps)=>{ps.exports=function(t){return function(e,r,n){return r%2===0?e:t.inverse(e)}}});var bs=f((V0,ms)=>{ms.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(r,n,i){return r===" "?r:t[e[n++%e.length]](r)}}});var _s=f((K0,ys)=>{ys.exports=function(t){var e=["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:t[e[Math.round(Math.random()*(e.length-2))]](r)}}});var Ms=f((Z0,xs)=>{var M={};xs.exports=M;M.themes={};var ic=require("util"),Ae=M.styles=ns(),ws=Object.defineProperties,sc=new RegExp(/[\r\n]+/g);M.supportsColor=as().supportsColor;typeof M.enabled>"u"&&(M.enabled=M.supportsColor()!==!1);M.enable=function(){M.enabled=!0};M.disable=function(){M.enabled=!1};M.stripColors=M.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var J0=M.stylize=function(e,r){if(!M.enabled)return e+"";var n=Ae[r];return!n&&r in M?M[r](e):n.open+e+n.close},oc=/[|\\{}()[\]^$+*?.]/g,ac=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(oc,"\\$&")};function Es(t){var e=function r(){return lc.apply(r,arguments)};return e._styles=t,e.__proto__=uc,e}var Ss=function(){var t={};return Ae.grey=Ae.gray,Object.keys(Ae).forEach(function(e){Ae[e].closeRe=new RegExp(ac(Ae[e].close),"g"),t[e]={get:function(){return Es(this._styles.concat(e))}}}),t}(),uc=ws(function(){},Ss);function lc(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:ic.inspect(o)}).join(" ");if(!M.enabled||!e)return e;for(var r=e.indexOf(`
|
|
6
|
+
`)!=-1,n=this._styles,i=n.length;i--;){var s=Ae[n[i]];e=s.open+e.replace(s.closeRe,s.open)+s.close,r&&(e=e.replace(sc,function(o){return s.close+o+s.open}))}return e}M.setTheme=function(t){if(typeof t=="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 e in t)(function(r){M[r]=function(n){if(typeof t[r]=="object"){var i=n;for(var s in t[r])i=M[t[r][s]](i);return i}return M[t[r]](n)}})(e)};function cc(){var t={};return Object.keys(Ss).forEach(function(e){t[e]={get:function(){return Es([e])}}}),t}var fc=function(e,r){var n=r.split("");return n=n.map(e),n.join("")};M.trap=ls();M.zalgo=fs();M.maps={};M.maps.america=ds()(M);M.maps.zebra=gs()(M);M.maps.rainbow=bs()(M);M.maps.random=_s()(M);for(vs in M.maps)(function(t){M[t]=function(e){return fc(M.maps[t],e)}})(vs);var vs;ws(M,cc())});var nn=f((Q0,Os)=>{var hc=Ms();Os.exports=hc});var Rs=f(sn=>{"use strict";sn.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};sn.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var Ts=f(on=>{"use strict";on.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};on.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var qs=f(an=>{"use strict";an.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};an.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var As=f(zt=>{"use strict";Object.defineProperty(zt,"cli",{value:Rs()});Object.defineProperty(zt,"npm",{value:Ts()});Object.defineProperty(zt,"syslog",{value:qs()})});var k=f(dt=>{"use strict";Object.defineProperty(dt,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(dt,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(dt,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(dt,"configs",{value:As()})});var Jt=f((im,Kt)=>{"use strict";var cn=nn(),{LEVEL:un,MESSAGE:ln}=k();cn.enabled=!0;var Ns=/\s+/,Vt=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let r=Object.keys(e).reduce((n,i)=>(n[i]=Ns.test(e[i])?e[i].split(Ns):e[i],n),{});return t.allColors=Object.assign({},t.allColors||{},r),t.allColors}addColors(e){return t.addColors(e)}colorize(e,r,n){if(typeof n>"u"&&(n=r),!Array.isArray(t.allColors[e]))return cn[t.allColors[e]](n);for(let i=0,s=t.allColors[e].length;i<s;i++)n=cn[t.allColors[e][i]](n);return n}transform(e,r){return r.all&&typeof e[ln]=="string"&&(e[ln]=this.colorize(e[un],e.level,e[ln])),(r.level||r.all||!r.message)&&(e.level=this.colorize(e[un],e.level)),(r.all||r.message)&&(e.message=this.colorize(e[un],e.level,e.message)),e}};Kt.exports=t=>new Vt(t);Kt.exports.Colorizer=Kt.exports.Format=Vt});var js=f((sm,Ls)=>{"use strict";var{Colorizer:dc}=Jt();Ls.exports=t=>(dc.addColors(t.colors||t),t)});var Ps=f((om,Cs)=>{"use strict";var pc=Q();Cs.exports=pc(t=>(t.message=` ${t.message}`,t))});var Fs=f((am,Ds)=>{"use strict";var gc=Q(),{LEVEL:Is,MESSAGE:fn}=k();Ds.exports=gc((t,{stack:e,cause:r})=>{if(t instanceof Error){let i=Object.assign({},t,{level:t.level,[Is]:t[Is]||t.level,message:t.message,[fn]:t[fn]||t.message});return e&&(i.stack=t.stack),r&&(i.cause=t.cause),i}if(!(t.message instanceof Error))return t;let n=t.message;return Object.assign(t,n),t.message=n.message,t[fn]=n.message,e&&(t.stack=n.stack),r&&(t.cause=n.cause),t})});var dn=f((um,Qt)=>{"use strict";var{configs:mc,LEVEL:$s,MESSAGE:hn}=k(),Zt=class t{constructor(e={levels:mc.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let r=Object.keys(e).map(n=>n.length);return Math.max(...r)}static paddingForLevel(e,r,n){let i=n+1-e.length,s=Math.floor(i/r.length);return`${r}${r.repeat(s)}`.slice(0,i)}static paddingForLevels(e,r=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((i,s)=>(i[s]=t.paddingForLevel(s,r,n),i),{})}transform(e,r){return e.message=`${this.paddings[e[$s]]}${e.message}`,e[hn]&&(e[hn]=`${this.paddings[e[$s]]}${e[hn]}`),e}};Qt.exports=t=>new Zt(t);Qt.exports.Padder=Qt.exports.Format=Zt});var ks=f((lm,pn)=>{"use strict";var{Colorizer:bc}=Jt(),{Padder:yc}=dn(),{configs:_c,MESSAGE:vc}=k(),Xt=class{constructor(e={}){e.levels||(e.levels=_c.cli.levels),this.colorizer=new bc(e),this.padder=new yc(e),this.options=e}transform(e,r){return this.colorizer.transform(this.padder.transform(e,r),r),e[vc]=`${e.level}:${e.message}`,e}};pn.exports=t=>new Xt(t);pn.exports.Format=Xt});var Hs=f((cm,gn)=>{"use strict";var wc=Q();function Bs(t){if(t.every(Ec))return e=>{let r=e;for(let n=0;n<t.length;n++)if(r=t[n].transform(r,t[n].options),!r)return!1;return r}}function Ec(t){if(typeof t.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(`
|
|
7
|
+
`));return!0}gn.exports=(...t)=>{let e=wc(Bs(t)),r=e();return r.Format=e.Format,r};gn.exports.cascade=Bs});var gt=f((_n,Us)=>{"use strict";var{hasOwnProperty:pt}=Object.prototype,Le=yn();Le.configure=yn;Le.stringify=Le;Le.default=Le;_n.stringify=Le;_n.configure=yn;Us.exports=Le;var Sc=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function we(t){return t.length<5e3&&!Sc.test(t)?`"${t}"`:JSON.stringify(t)}function mn(t,e){if(t.length>200||e)return t.sort(e);for(let r=1;r<t.length;r++){let n=t[r],i=r;for(;i!==0&&t[i-1]>n;)t[i]=t[i-1],i--;t[i]=n}return t}var xc=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function bn(t){return xc.call(t)!==void 0&&t.length!==0}function Ws(t,e,r){t.length<r&&(r=t.length);let n=e===","?"":" ",i=`"0":${n}${t[0]}`;for(let s=1;s<r;s++)i+=`${e}"${s}":${n}${t[s]}`;return i}function Mc(t){if(pt.call(t,"circularValue")){let e=t.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===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 Oc(t){let e;if(pt.call(t,"deterministic")&&(e=t.deterministic,typeof e!="boolean"&&typeof e!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return e===void 0?!0:e}function Rc(t,e){let r;if(pt.call(t,e)&&(r=t[e],typeof r!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return r===void 0?!0:r}function Gs(t,e){let r;if(pt.call(t,e)){if(r=t[e],typeof r!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${e}" argument must be an integer`);if(r<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return r===void 0?1/0:r}function Ne(t){return t===1?"1 item":`${t} items`}function Tc(t){let e=new Set;for(let r of t)(typeof r=="string"||typeof r=="number")&&e.add(String(r));return e}function qc(t){if(pt.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)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 yn(t){t={...t};let e=qc(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let r=Mc(t),n=Rc(t,"bigint"),i=Oc(t),s=typeof i=="function"?i:void 0,o=Gs(t,"maximumDepth"),a=Gs(t,"maximumBreadth");function u(v,c,b,w,S,R){let _=c[v];switch(typeof _=="object"&&_!==null&&typeof _.toJSON=="function"&&(_=_.toJSON(v)),_=w.call(c,v,_),typeof _){case"string":return we(_);case"object":{if(_===null)return"null";if(b.indexOf(_)!==-1)return r;let O="",P=",",I=R;if(Array.isArray(_)){if(_.length===0)return"[]";if(o<b.length+1)return'"[Array]"';b.push(_),S!==""&&(R+=S,O+=`
|
|
8
|
+
${R}`,P=`,
|
|
9
|
+
${R}`);let z=Math.min(_.length,a),ee=0;for(;ee<z-1;ee++){let He=u(String(ee),_,b,w,S,R);O+=He!==void 0?He:"null",O+=P}let te=u(String(ee),_,b,w,S,R);if(O+=te!==void 0?te:"null",_.length-1>a){let He=_.length-a-1;O+=`${P}"... ${Ne(He)} not stringified"`}return S!==""&&(O+=`
|
|
10
|
+
${I}`),b.pop(),`[${O}]`}let A=Object.keys(_),D=A.length;if(D===0)return"{}";if(o<b.length+1)return'"[Object]"';let T="",Y="";S!==""&&(R+=S,P=`,
|
|
11
|
+
${R}`,T=" ");let K=Math.min(D,a);i&&!bn(_)&&(A=mn(A,s)),b.push(_);for(let z=0;z<K;z++){let ee=A[z],te=u(ee,_,b,w,S,R);te!==void 0&&(O+=`${Y}${we(ee)}:${T}${te}`,Y=P)}if(D>a){let z=D-a;O+=`${Y}"...":${T}"${Ne(z)} not stringified"`,Y=P}return S!==""&&Y.length>1&&(O=`
|
|
12
|
+
${R}${O}
|
|
13
|
+
${I}`),b.pop(),`{${O}}`}case"number":return isFinite(_)?String(_):e?e(_):"null";case"boolean":return _===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(_);default:return e?e(_):void 0}}function l(v,c,b,w,S,R){switch(typeof c=="object"&&c!==null&&typeof c.toJSON=="function"&&(c=c.toJSON(v)),typeof c){case"string":return we(c);case"object":{if(c===null)return"null";if(b.indexOf(c)!==-1)return r;let _=R,O="",P=",";if(Array.isArray(c)){if(c.length===0)return"[]";if(o<b.length+1)return'"[Array]"';b.push(c),S!==""&&(R+=S,O+=`
|
|
14
|
+
${R}`,P=`,
|
|
15
|
+
${R}`);let D=Math.min(c.length,a),T=0;for(;T<D-1;T++){let K=l(String(T),c[T],b,w,S,R);O+=K!==void 0?K:"null",O+=P}let Y=l(String(T),c[T],b,w,S,R);if(O+=Y!==void 0?Y:"null",c.length-1>a){let K=c.length-a-1;O+=`${P}"... ${Ne(K)} not stringified"`}return S!==""&&(O+=`
|
|
16
|
+
${_}`),b.pop(),`[${O}]`}b.push(c);let I="";S!==""&&(R+=S,P=`,
|
|
17
|
+
${R}`,I=" ");let A="";for(let D of w){let T=l(D,c[D],b,w,S,R);T!==void 0&&(O+=`${A}${we(D)}:${I}${T}`,A=P)}return S!==""&&A.length>1&&(O=`
|
|
18
|
+
${R}${O}
|
|
19
|
+
${_}`),b.pop(),`{${O}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function d(v,c,b,w,S){switch(typeof c){case"string":return we(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(v),typeof c!="object")return d(v,c,b,w,S);if(c===null)return"null"}if(b.indexOf(c)!==-1)return r;let R=S;if(Array.isArray(c)){if(c.length===0)return"[]";if(o<b.length+1)return'"[Array]"';b.push(c),S+=w;let T=`
|
|
20
|
+
${S}`,Y=`,
|
|
21
|
+
${S}`,K=Math.min(c.length,a),z=0;for(;z<K-1;z++){let te=d(String(z),c[z],b,w,S);T+=te!==void 0?te:"null",T+=Y}let ee=d(String(z),c[z],b,w,S);if(T+=ee!==void 0?ee:"null",c.length-1>a){let te=c.length-a-1;T+=`${Y}"... ${Ne(te)} not stringified"`}return T+=`
|
|
22
|
+
${R}`,b.pop(),`[${T}]`}let _=Object.keys(c),O=_.length;if(O===0)return"{}";if(o<b.length+1)return'"[Object]"';S+=w;let P=`,
|
|
23
|
+
${S}`,I="",A="",D=Math.min(O,a);bn(c)&&(I+=Ws(c,P,a),_=_.slice(c.length),D-=c.length,A=P),i&&(_=mn(_,s)),b.push(c);for(let T=0;T<D;T++){let Y=_[T],K=d(Y,c[Y],b,w,S);K!==void 0&&(I+=`${A}${we(Y)}: ${K}`,A=P)}if(O>a){let T=O-a;I+=`${A}"...": "${Ne(T)} not stringified"`,A=P}return A!==""&&(I=`
|
|
24
|
+
${S}${I}
|
|
25
|
+
${R}`),b.pop(),`{${I}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function g(v,c,b){switch(typeof c){case"string":return we(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(v),typeof c!="object")return g(v,c,b);if(c===null)return"null"}if(b.indexOf(c)!==-1)return r;let w="",S=c.length!==void 0;if(S&&Array.isArray(c)){if(c.length===0)return"[]";if(o<b.length+1)return'"[Array]"';b.push(c);let I=Math.min(c.length,a),A=0;for(;A<I-1;A++){let T=g(String(A),c[A],b);w+=T!==void 0?T:"null",w+=","}let D=g(String(A),c[A],b);if(w+=D!==void 0?D:"null",c.length-1>a){let T=c.length-a-1;w+=`,"... ${Ne(T)} not stringified"`}return b.pop(),`[${w}]`}let R=Object.keys(c),_=R.length;if(_===0)return"{}";if(o<b.length+1)return'"[Object]"';let O="",P=Math.min(_,a);S&&bn(c)&&(w+=Ws(c,",",a),R=R.slice(c.length),P-=c.length,O=","),i&&(R=mn(R,s)),b.push(c);for(let I=0;I<P;I++){let A=R[I],D=g(A,c[A],b);D!==void 0&&(w+=`${O}${we(A)}:${D}`,O=",")}if(_>a){let I=_-a;w+=`${O}"...":"${Ne(I)} not stringified"`}return b.pop(),`{${w}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function p(v,c,b){if(arguments.length>1){let w="";if(typeof b=="number"?w=" ".repeat(Math.min(b,10)):typeof b=="string"&&(w=b.slice(0,10)),c!=null){if(typeof c=="function")return u("",{"":v},[],c,w,"");if(Array.isArray(c))return l("",v,[],Tc(c),w,"")}if(w.length!==0)return d("",v,[],w,"")}return g("",v,[])}return p}});var vn=f((fm,Ys)=>{"use strict";var Ac=Q(),{MESSAGE:Nc}=k(),Lc=gt();function jc(t,e){return typeof e=="bigint"?e.toString():e}Ys.exports=Ac((t,e)=>{let r=Lc.configure(e);return t[Nc]=r(t,e.replacer||jc,e.space),t})});var Vs=f((hm,zs)=>{"use strict";var Cc=Q();zs.exports=Cc((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var Js=f((dm,Ks)=>{"use strict";var Pc=Q(),{MESSAGE:Ic}=k(),Dc=gt();Ks.exports=Pc(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[Ic]=Dc(e),t})});var Qs=f((pm,Zs)=>{"use strict";var Fc=Q();function $c(t,e,r){let n=e.reduce((s,o)=>(s[o]=t[o],delete t[o],s),{}),i=Object.keys(t).reduce((s,o)=>(s[o]=t[o],delete t[o],s),{});return Object.assign(t,n,{[r]:i}),t}function kc(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}Zs.exports=Fc((t,e={})=>{let r="metadata";e.key&&(r=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?$c(t,n,r):e.fillWith?kc(t,e.fillWith,r):t})});var eo=f((gm,Xs)=>{var ze=1e3,Ve=ze*60,Ke=Ve*60,je=Ke*24,Bc=je*7,Hc=je*365.25;Xs.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Wc(t);if(r==="number"&&isFinite(t))return e.long?Uc(t):Gc(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Wc(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Hc;case"weeks":case"week":case"w":return r*Bc;case"days":case"day":case"d":return r*je;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ke;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ve;case"seconds":case"second":case"secs":case"sec":case"s":return r*ze;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Gc(t){var e=Math.abs(t);return e>=je?Math.round(t/je)+"d":e>=Ke?Math.round(t/Ke)+"h":e>=Ve?Math.round(t/Ve)+"m":e>=ze?Math.round(t/ze)+"s":t+"ms"}function Uc(t){var e=Math.abs(t);return e>=je?er(t,e,je,"day"):e>=Ke?er(t,e,Ke,"hour"):e>=Ve?er(t,e,Ve,"minute"):e>=ze?er(t,e,ze,"second"):t+" ms"}function er(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var ro=f((mt,to)=>{"use strict";var Yc=Q(),zc=eo();to.exports=Yc(t=>{let e=+new Date;return mt.diff=e-(mt.prevTime||e),mt.prevTime=e,t.ms=`+${zc(mt.diff)}`,t})});var so=f((mm,io)=>{"use strict";var Vc=require("util").inspect,Kc=Q(),{LEVEL:Jc,MESSAGE:no,SPLAT:Zc}=k();io.exports=Kc((t,e={})=>{let r=Object.assign({},t);return delete r[Jc],delete r[no],delete r[Zc],t[no]=Vc(r,!1,e.depth||null,e.colorize),t})});var oo=f((bm,rr)=>{"use strict";var{MESSAGE:Qc}=k(),tr=class{constructor(e){this.template=e}transform(e){return e[Qc]=this.template(e),e}};rr.exports=t=>new tr(t);rr.exports.Printf=rr.exports.Format=tr});var lo=f((ym,uo)=>{"use strict";var Xc=Q(),{MESSAGE:ao}=k(),ef=gt();uo.exports=Xc(t=>{let e=ef(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[ao]=`${t.level}:${r} ${t.message} ${e}`:t[ao]=`${t.level}:${r} ${t.message}`,t})});var ho=f((_m,fo)=>{"use strict";var tf=require("util"),{SPLAT:co}=k(),rf=/%[scdjifoO%]/g,nf=/%%/g,wn=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[co]||e.splat||[],s=n.match(nf),o=s&&s.length||0,u=r.length-o-i.length,l=u<0?i.splice(u,-1*u):[],d=l.length;if(d)for(let g=0;g<d;g++)Object.assign(e,l[g]);return e.message=tf.format(n,...i),e}transform(e){let r=e.message,n=e[co]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(rf);if(!i&&(n||n.length)){let s=n.length>1?n.splice(0):n,o=s.length;if(o)for(let a=0;a<o;a++)Object.assign(e,s[a]);return e}return i?this._splat(e,i):e}};fo.exports=t=>new wn(t)});var go=f((nr,po)=>{(function(t,e){typeof nr=="object"&&typeof po<"u"?e(nr):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(nr,function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r="\\d\\d?",n="\\d\\d",i="\\d{3}",s="\\d{4}",o="[^\\s]+",a=/\[([^]*?)\]/gm;function u(h,y){for(var L=[],Z=0,E=h.length;Z<E;Z++)L.push(h[Z].substr(0,y));return L}var l=function(h){return function(y,L){var Z=L[h].map(function(fe){return fe.toLowerCase()}),E=Z.indexOf(y.toLowerCase());return E>-1?E:null}};function d(h){for(var y=[],L=1;L<arguments.length;L++)y[L-1]=arguments[L];for(var Z=0,E=y;Z<E.length;Z++){var fe=E[Z];for(var qe in fe)h[qe]=fe[qe]}return h}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],v=u(p,3),c=u(g,3),b={dayNamesShort:c,dayNames:g,monthNamesShort:v,monthNames:p,amPm:["am","pm"],DoFn:function(h){return h+["th","st","nd","rd"][h%10>3?0:(h-h%10!==10?1:0)*h%10]}},w=d({},b),S=function(h){return w=d(w,h)},R=function(h){return h.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},_=function(h,y){for(y===void 0&&(y=2),h=String(h);h.length<y;)h="0"+h;return h},O={D:function(h){return String(h.getDate())},DD:function(h){return _(h.getDate())},Do:function(h,y){return y.DoFn(h.getDate())},d:function(h){return String(h.getDay())},dd:function(h){return _(h.getDay())},ddd:function(h,y){return y.dayNamesShort[h.getDay()]},dddd:function(h,y){return y.dayNames[h.getDay()]},M:function(h){return String(h.getMonth()+1)},MM:function(h){return _(h.getMonth()+1)},MMM:function(h,y){return y.monthNamesShort[h.getMonth()]},MMMM:function(h,y){return y.monthNames[h.getMonth()]},YY:function(h){return _(String(h.getFullYear()),4).substr(2)},YYYY:function(h){return _(h.getFullYear(),4)},h:function(h){return String(h.getHours()%12||12)},hh:function(h){return _(h.getHours()%12||12)},H:function(h){return String(h.getHours())},HH:function(h){return _(h.getHours())},m:function(h){return String(h.getMinutes())},mm:function(h){return _(h.getMinutes())},s:function(h){return String(h.getSeconds())},ss:function(h){return _(h.getSeconds())},S:function(h){return String(Math.round(h.getMilliseconds()/100))},SS:function(h){return _(Math.round(h.getMilliseconds()/10),2)},SSS:function(h){return _(h.getMilliseconds(),3)},a:function(h,y){return h.getHours()<12?y.amPm[0]:y.amPm[1]},A:function(h,y){return h.getHours()<12?y.amPm[0].toUpperCase():y.amPm[1].toUpperCase()},ZZ:function(h){var y=h.getTimezoneOffset();return(y>0?"-":"+")+_(Math.floor(Math.abs(y)/60)*100+Math.abs(y)%60,4)},Z:function(h){var y=h.getTimezoneOffset();return(y>0?"-":"+")+_(Math.floor(Math.abs(y)/60),2)+":"+_(Math.abs(y)%60,2)}},P=function(h){return+h-1},I=[null,r],A=[null,o],D=["isPm",o,function(h,y){var L=h.toLowerCase();return L===y.amPm[0]?0:L===y.amPm[1]?1:null}],T=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(h){var y=(h+"").match(/([+-]|\d\d)/gi);if(y){var L=+y[1]*60+parseInt(y[2],10);return y[0]==="+"?L:-L}return 0}],Y={D:["day",r],DD:["day",n],Do:["day",r+o,function(h){return parseInt(h,10)}],M:["month",r,P],MM:["month",n,P],YY:["year",n,function(h){var y=new Date,L=+(""+y.getFullYear()).substr(0,2);return+(""+(+h>68?L-1:L)+h)}],h:["hour",r,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",r],HH:["hour",n],m:["minute",r],mm:["minute",n],s:["second",r],ss:["second",n],YYYY:["year",s],S:["millisecond","\\d",function(h){return+h*100}],SS:["millisecond",n,function(h){return+h*10}],SSS:["millisecond",i],d:I,dd:I,ddd:A,dddd:A,MMM:["month",o,l("monthNamesShort")],MMMM:["month",o,l("monthNames")],a:D,A:D,ZZ:T,Z:T},K={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"},z=function(h){return d(K,h)},ee=function(h,y,L){if(y===void 0&&(y=K.default),L===void 0&&(L={}),typeof h=="number"&&(h=new Date(h)),Object.prototype.toString.call(h)!=="[object Date]"||isNaN(h.getTime()))throw new Error("Invalid Date pass to format");y=K[y]||y;var Z=[];y=y.replace(a,function(fe,qe){return Z.push(qe),"@@@"});var E=d(d({},w),L);return y=y.replace(e,function(fe){return O[fe](h,E)}),y.replace(/@@@/g,function(){return Z.shift()})};function te(h,y,L){if(L===void 0&&(L={}),typeof y!="string")throw new Error("Invalid format in fecha parse");if(y=K[y]||y,h.length>1e3)return null;var Z=new Date,E={year:Z.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},fe=[],qe=[],ut=y.replace(a,function(lt,We){return qe.push(R(We)),"@@@"}),$t={},Pi={};ut=R(ut).replace(e,function(lt){var We=Y[lt],Jr=We[0],Il=We[1],$i=We[3];if($t[Jr])throw new Error("Invalid format. "+Jr+" specified twice in format");return $t[Jr]=!0,$i&&(Pi[$i]=!0),fe.push(We),"("+Il+")"}),Object.keys(Pi).forEach(function(lt){if(!$t[lt])throw new Error("Invalid format. "+lt+" is required in specified format")}),ut=ut.replace(/@@@/g,function(){return qe.shift()});var kt=h.match(new RegExp(ut,"i"));if(!kt)return null;for(var jl=d(d({},w),L),se=1;se<kt.length;se++){var Ii=fe[se-1],Cl=Ii[0],Di=Ii[2],Fi=Di?Di(kt[se],jl):+kt[se];if(Fi==null)return null;E[Cl]=Fi}E.isPm===1&&E.hour!=null&&+E.hour!=12?E.hour=+E.hour+12:E.isPm===0&&+E.hour==12&&(E.hour=0);var Bt;if(E.timezoneOffset==null){Bt=new Date(E.year,E.month,E.day,E.hour,E.minute,E.second,E.millisecond);for(var Ht=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],se=0,Pl=Ht.length;se<Pl;se++)if($t[Ht[se][0]]&&E[Ht[se][0]]!==Bt[Ht[se][1]]())return null}else if(Bt=new Date(Date.UTC(E.year,E.month,E.day,E.hour,E.minute-E.timezoneOffset,E.second,E.millisecond)),E.month>11||E.month<0||E.day>31||E.day<1||E.hour>23||E.hour<0||E.minute>59||E.minute<0||E.second>59||E.second<0)return null;return Bt}var He={format:ee,parse:te,defaultI18n:b,setGlobalDateI18n:S,setGlobalDateMasks:z};t.assign=d,t.default=He,t.format=ee,t.parse=te,t.defaultI18n=b,t.setGlobalDateI18n=S,t.setGlobalDateMasks=z,Object.defineProperty(t,"__esModule",{value:!0})})});var bo=f((vm,mo)=>{"use strict";var sf=go(),of=Q();mo.exports=of((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():sf.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var _o=f((wm,yo)=>{"use strict";var En=nn(),af=Q(),{MESSAGE:Sn}=k();yo.exports=af((t,e)=>(e.level!==!1&&(t.level=En.strip(t.level)),e.message!==!1&&(t.message=En.strip(String(t.message))),e.raw!==!1&&t[Sn]&&(t[Sn]=En.strip(String(t[Sn]))),t))});var Mn=f(xn=>{"use strict";var uf=xn.format=Q();xn.levels=js();function V(t,e){Object.defineProperty(uf,t,{get(){return e()},configurable:!0})}V("align",function(){return Ps()});V("errors",function(){return Fs()});V("cli",function(){return ks()});V("combine",function(){return Hs()});V("colorize",function(){return Jt()});V("json",function(){return vn()});V("label",function(){return Vs()});V("logstash",function(){return Js()});V("metadata",function(){return Qs()});V("ms",function(){return ro()});V("padLevels",function(){return dn()});V("prettyPrint",function(){return so()});V("printf",function(){return oo()});V("simple",function(){return lo()});V("splat",function(){return ho()});V("timestamp",function(){return bo()});V("uncolorize",function(){return _o()})});var On=f(ir=>{"use strict";var{format:vo}=require("util");ir.warn={deprecated(t){return()=>{throw new Error(vo("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([vo("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
26
|
+
`))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=ir.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=ir.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var wo=f((xm,lf)=>{lf.exports={name:"winston",description:"A logger for just about everything.",version:"3.19.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.8","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.7.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.9.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^4.4.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",jest:"^29.7.0",rimraf:"5.0.10",split2:"^4.1.0","std-mocks":"^2.0.0",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:"jest","test:unit":"jest -c test/jest.config.unit.js","test:integration":"jest -c test/jest.config.integration.js","test:typescript":"npx --package typescript tsc --project test",build:"babel lib -d dist",prebuild:"rimraf dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var So=f((Mm,Eo)=>{Eo.exports=require("util").deprecate});var Rn=f((Om,xo)=>{xo.exports=require("stream")});var qn=f((Rm,Oo)=>{"use strict";function cf(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Tn,this,t)):process.nextTick(Tn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(sr,r):(r._writableState.errorEmitted=!0,process.nextTick(Mo,r,s)):process.nextTick(Mo,r,s):e?(process.nextTick(sr,r),e(s)):process.nextTick(sr,r)}),this)}function Mo(t,e){Tn(t,e),sr(t)}function sr(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function ff(){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 Tn(t,e){t.emit("error",e)}function hf(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Oo.exports={destroy:cf,undestroy:ff,errorOrDestroy:hf}});var Ee=f((Tm,qo)=>{"use strict";var To={};function ne(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}class i extends r{constructor(o,a,u){super(n(o,a,u))}}i.prototype.name=r.name,i.prototype.code=t,To[t]=i}function Ro(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function df(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function pf(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function gf(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}ne("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ne("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&df(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(pf(t," argument"))i=`The ${t} ${n} ${Ro(e,"type")}`;else{let s=gf(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${Ro(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ne("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ne("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ne("ERR_STREAM_PREMATURE_CLOSE","Premature close");ne("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ne("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ne("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ne("ERR_STREAM_WRITE_AFTER_END","write after end");ne("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ne("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ne("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");qo.exports.codes=To});var An=f((qm,Ao)=>{"use strict";var mf=Ee().codes.ERR_INVALID_OPT_VALUE;function bf(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function yf(t,e,r,n){var i=bf(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new mf(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Ao.exports={getHighWaterMark:yf}});var No=f((Am,Nn)=>{typeof Object.create=="function"?Nn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Nn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Je=f((Nm,jn)=>{try{if(Ln=require("util"),typeof Ln.inherits!="function")throw"";jn.exports=Ln.inherits}catch{jn.exports=No()}var Ln});var Do=f((Lm,Io)=>{"use strict";function Lo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function jo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Lo(Object(r),!0).forEach(function(n){_f(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _f(t,e,r){return e=Po(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Co(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Po(n.key),n)}}function wf(t,e,r){return e&&Co(t.prototype,e),r&&Co(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Po(t){var e=Ef(t,"string");return typeof e=="symbol"?e:String(e)}function Ef(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Sf=require("buffer"),or=Sf.Buffer,xf=require("util"),Cn=xf.inspect,Mf=Cn&&Cn.custom||"inspect";function Of(t,e,r){or.prototype.copy.call(t,e,r)}Io.exports=function(){function t(){vf(this,t),this.head=null,this.tail=null,this.length=0}return wf(t,[{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 or.alloc(0);for(var n=or.allocUnsafe(r>>>0),i=this.head,s=0;i;)Of(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 o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=or.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:Mf,value:function(r,n){return Cn(this,jo(jo({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var ko=f((Pn,$o)=>{var ar=require("buffer"),he=ar.Buffer;function Fo(t,e){for(var r in t)e[r]=t[r]}he.from&&he.alloc&&he.allocUnsafe&&he.allocUnsafeSlow?$o.exports=ar:(Fo(ar,Pn),Pn.Buffer=Ce);function Ce(t,e,r){return he(t,e,r)}Ce.prototype=Object.create(he.prototype);Fo(he,Ce);Ce.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return he(t,e,r)};Ce.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=he(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Ce.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return he(t)};Ce.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ar.SlowBuffer(t)}});var Fn=f(Ho=>{"use strict";var Dn=ko().Buffer,Bo=Dn.isEncoding||function(t){switch(t=""+t,t&&t.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 Rf(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Tf(t){var e=Rf(t);if(typeof e!="string"&&(Dn.isEncoding===Bo||!Bo(t)))throw new Error("Unknown encoding: "+t);return e||t}Ho.StringDecoder=bt;function bt(t){this.encoding=Tf(t);var e;switch(this.encoding){case"utf16le":this.text=Cf,this.end=Pf,e=4;break;case"utf8":this.fillLast=Nf,e=4;break;case"base64":this.text=If,this.end=Df,e=3;break;default:this.write=Ff,this.end=$f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Dn.allocUnsafe(e)}bt.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};bt.prototype.end=jf;bt.prototype.text=Lf;bt.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function In(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function qf(t,e,r){var n=e.length-1;if(n<r)return 0;var i=In(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=In(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=In(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function Af(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Nf(t){var e=this.lastTotal-this.lastNeed,r=Af(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Lf(t,e){var r=qf(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function jf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Cf(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Pf(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function If(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Df(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Ff(t){return t.toString(this.encoding)}function $f(t){return t&&t.length?this.write(t):""}});var ur=f((Cm,Uo)=>{"use strict";var Wo=Ee().codes.ERR_STREAM_PREMATURE_CLOSE;function kf(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function Bf(){}function Hf(t){return t.setHeader&&typeof t.abort=="function"}function Go(t,e,r){if(typeof e=="function")return Go(t,null,e);e||(e={}),r=kf(r||Bf);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){n=!1,u=!0,i||r.call(t)},d=function(c){r.call(t,c)},g=function(){var c;if(n&&!u)return(!t._readableState||!t._readableState.ended)&&(c=new Wo),r.call(t,c);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(c=new Wo),r.call(t,c)},p=function(){t.req.on("finish",a)};return Hf(t)?(t.on("complete",a),t.on("abort",g),t.req?p():t.on("request",p)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",l),t.on("finish",a),e.error!==!1&&t.on("error",d),t.on("close",g),function(){t.removeListener("complete",a),t.removeListener("abort",g),t.removeListener("request",p),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",l),t.removeListener("error",d),t.removeListener("close",g)}}Uo.exports=Go});var zo=f((Pm,Yo)=>{"use strict";var lr;function Se(t,e,r){return e=Wf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wf(t){var e=Gf(t,"string");return typeof e=="symbol"?e:String(e)}function Gf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Uf=ur(),xe=Symbol("lastResolve"),Pe=Symbol("lastReject"),yt=Symbol("error"),cr=Symbol("ended"),Ie=Symbol("lastPromise"),$n=Symbol("handlePromise"),De=Symbol("stream");function Me(t,e){return{value:t,done:e}}function Yf(t){var e=t[xe];if(e!==null){var r=t[De].read();r!==null&&(t[Ie]=null,t[xe]=null,t[Pe]=null,e(Me(r,!1)))}}function zf(t){process.nextTick(Yf,t)}function Vf(t,e){return function(r,n){t.then(function(){if(e[cr]){r(Me(void 0,!0));return}e[$n](r,n)},n)}}var Kf=Object.getPrototypeOf(function(){}),Jf=Object.setPrototypeOf((lr={get stream(){return this[De]},next:function(){var e=this,r=this[yt];if(r!==null)return Promise.reject(r);if(this[cr])return Promise.resolve(Me(void 0,!0));if(this[De].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[yt]?a(e[yt]):o(Me(void 0,!0))})});var n=this[Ie],i;if(n)i=new Promise(Vf(n,this));else{var s=this[De].read();if(s!==null)return Promise.resolve(Me(s,!1));i=new Promise(this[$n])}return this[Ie]=i,i}},Se(lr,Symbol.asyncIterator,function(){return this}),Se(lr,"return",function(){var e=this;return new Promise(function(r,n){e[De].destroy(null,function(i){if(i){n(i);return}r(Me(void 0,!0))})})}),lr),Kf),Zf=function(e){var r,n=Object.create(Jf,(r={},Se(r,De,{value:e,writable:!0}),Se(r,xe,{value:null,writable:!0}),Se(r,Pe,{value:null,writable:!0}),Se(r,yt,{value:null,writable:!0}),Se(r,cr,{value:e._readableState.endEmitted,writable:!0}),Se(r,$n,{value:function(s,o){var a=n[De].read();a?(n[Ie]=null,n[xe]=null,n[Pe]=null,s(Me(a,!1))):(n[xe]=s,n[Pe]=o)},writable:!0}),r));return n[Ie]=null,Uf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Pe];s!==null&&(n[Ie]=null,n[xe]=null,n[Pe]=null,s(i)),n[yt]=i;return}var o=n[xe];o!==null&&(n[Ie]=null,n[xe]=null,n[Pe]=null,o(Me(void 0,!0))),n[cr]=!0}),e.on("readable",zf.bind(null,n)),n};Yo.exports=Zf});var Zo=f((Im,Jo)=>{"use strict";function Vo(t,e,r,n,i,s,o){try{var a=t[s](o),u=a.value}catch(l){r(l);return}a.done?e(u):Promise.resolve(u).then(n,i)}function Qf(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(u){Vo(s,n,i,o,a,"next",u)}function a(u){Vo(s,n,i,o,a,"throw",u)}o(void 0)})}}function Ko(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Xf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ko(Object(r),!0).forEach(function(n){eh(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ko(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function eh(t,e,r){return e=th(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function th(t){var e=rh(t,"string");return typeof e=="symbol"?e:String(e)}function rh(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var nh=Ee().codes.ERR_INVALID_ARG_TYPE;function ih(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new nh("iterable",["Iterable"],e);var i=new t(Xf({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=Qf(function*(){try{var u=yield n.next(),l=u.value,d=u.done;d?i.push(null):i.push(yield l)?o():s=!1}catch(g){i.destroy(g)}}),a.apply(this,arguments)}return i}Jo.exports=ih});var Kn=f((Fm,aa)=>{"use strict";aa.exports=q;var Ze;q.ReadableState=ta;var Dm=require("events").EventEmitter,ea=function(e,r){return e.listeners(r).length},vt=Rn(),fr=require("buffer").Buffer,sh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function oh(t){return fr.from(t)}function ah(t){return fr.isBuffer(t)||t instanceof sh}var kn=require("util"),x;kn&&kn.debuglog?x=kn.debuglog("stream"):x=function(){};var uh=Do(),zn=qn(),lh=An(),ch=lh.getHighWaterMark,hr=Ee().codes,fh=hr.ERR_INVALID_ARG_TYPE,hh=hr.ERR_STREAM_PUSH_AFTER_EOF,dh=hr.ERR_METHOD_NOT_IMPLEMENTED,ph=hr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Qe,Bn,Hn;Je()(q,vt);var _t=zn.errorOrDestroy,Wn=["error","close","destroy","pause","resume"];function gh(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function ta(t,e,r){Ze=Ze||Fe(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ze),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=ch(this,t,"readableHighWaterMark",r),this.buffer=new uh,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Qe||(Qe=Fn().StringDecoder),this.decoder=new Qe(t.encoding),this.encoding=t.encoding)}function q(t){if(Ze=Ze||Fe(),!(this instanceof q))return new q(t);var e=this instanceof Ze;this._readableState=new ta(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),vt.call(this)}Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});q.prototype.destroy=zn.destroy;q.prototype._undestroy=zn.undestroy;q.prototype._destroy=function(t,e){e(t)};q.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=fr.from(t,e),e=""),n=!0),ra(this,t,e,!1,n)};q.prototype.unshift=function(t){return ra(this,t,null,!0,!1)};function ra(t,e,r,n,i){x("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,yh(t,s);else{var o;if(i||(o=mh(s,e)),o)_t(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==fr.prototype&&(e=oh(e)),n)s.endEmitted?_t(t,new ph):Gn(t,s,e,!0);else if(s.ended)_t(t,new hh);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Gn(t,s,e,!1):Yn(t,s)):Gn(t,s,e,!1)}else n||(s.reading=!1,Yn(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Gn(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&dr(t)),Yn(t,e)}function mh(t,e){var r;return!ah(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new fh("chunk",["string","Buffer","Uint8Array"],e)),r}q.prototype.isPaused=function(){return this._readableState.flowing===!1};q.prototype.setEncoding=function(t){Qe||(Qe=Fn().StringDecoder);var e=new Qe(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Qo=1073741824;function bh(t){return t>=Qo?t=Qo:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Xo(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=bh(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}q.prototype.read=function(t){x("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return x("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Un(this):dr(this),null;if(t=Xo(t,e),t===0&&e.ended)return e.length===0&&Un(this),null;var n=e.needReadable;x("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,x("length less than watermark",n)),e.ended||e.reading?(n=!1,x("reading or ended",n)):n&&(x("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Xo(r,e)));var i;return t>0?i=sa(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Un(this)),i!==null&&this.emit("data",i),i};function yh(t,e){if(x("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?dr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,na(t)))}}function dr(t){var e=t._readableState;x("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(x("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(na,t))}function na(t){var e=t._readableState;x("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Vn(t)}function Yn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(_h,t,e))}function _h(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(x("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}q.prototype._read=function(t){_t(this,new dh("_read()"))};q.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,x("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:b;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(w,S){x("onunpipe"),w===r&&S&&S.hasUnpiped===!1&&(S.hasUnpiped=!0,d())}function a(){x("onend"),t.end()}var u=vh(r);t.on("drain",u);var l=!1;function d(){x("cleanup"),t.removeListener("close",v),t.removeListener("finish",c),t.removeListener("drain",u),t.removeListener("error",p),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",g),l=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}r.on("data",g);function g(w){x("ondata");var S=t.write(w);x("dest.write",S),S===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&oa(n.pipes,t)!==-1)&&!l&&(x("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(w){x("onerror",w),b(),t.removeListener("error",p),ea(t,"error")===0&&_t(t,w)}gh(t,"error",p);function v(){t.removeListener("finish",c),b()}t.once("close",v);function c(){x("onfinish"),t.removeListener("close",v),b()}t.once("finish",c);function b(){x("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(x("pipe resume"),r.resume()),t};function vh(t){return function(){var r=t._readableState;x("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ea(t,"data")&&(r.flowing=!0,Vn(t))}}q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=oa(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};q.prototype.on=function(t,e){var r=vt.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,x("on readable",n.length,n.reading),n.length?dr(this):n.reading||process.nextTick(wh,this)),r};q.prototype.addListener=q.prototype.on;q.prototype.removeListener=function(t,e){var r=vt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(ia,this),r};q.prototype.removeAllListeners=function(t){var e=vt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(ia,this),e};function ia(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function wh(t){x("readable nexttick read 0"),t.read(0)}q.prototype.resume=function(){var t=this._readableState;return t.flowing||(x("resume"),t.flowing=!t.readableListening,Eh(this,t)),t.paused=!1,this};function Eh(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Sh,t,e))}function Sh(t,e){x("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Vn(t),e.flowing&&!e.reading&&t.read(0)}q.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Vn(t){var e=t._readableState;for(x("flow",e.flowing);e.flowing&&t.read()!==null;);}q.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(x("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(x("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(a){return function(){return t[a].apply(t,arguments)}}(i));for(var s=0;s<Wn.length;s++)t.on(Wn[s],this.emit.bind(this,Wn[s]));return this._read=function(o){x("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(q.prototype[Symbol.asyncIterator]=function(){return Bn===void 0&&(Bn=zo()),Bn(this)});Object.defineProperty(q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});q._fromList=sa;Object.defineProperty(q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function sa(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Un(t){var e=t._readableState;x("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(xh,e,t))}function xh(t,e){if(x("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(q.from=function(t,e){return Hn===void 0&&(Hn=Zo()),Hn(q,t,e)});function oa(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Fe=f(($m,la)=>{"use strict";var Mh=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};la.exports=de;var ua=Kn(),Zn=mr();Je()(de,ua);for(Jn=Mh(Zn.prototype),pr=0;pr<Jn.length;pr++)gr=Jn[pr],de.prototype[gr]||(de.prototype[gr]=Zn.prototype[gr]);var Jn,gr,pr;function de(t){if(!(this instanceof de))return new de(t);ua.call(this,t),Zn.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Oh)))}Object.defineProperty(de.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(de.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(de.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Oh(){this._writableState.ended||process.nextTick(Rh,this)}function Rh(t){t.end()}Object.defineProperty(de.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var mr=f((km,ga)=>{"use strict";ga.exports=F;function fa(t){var e=this;this.next=null,this.entry=null,this.finish=function(){ed(e,t)}}var Xe;F.WritableState=Et;var Th={deprecate:So()},ha=Rn(),yr=require("buffer").Buffer,qh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ah(t){return yr.from(t)}function Nh(t){return yr.isBuffer(t)||t instanceof qh}var Xn=qn(),Lh=An(),jh=Lh.getHighWaterMark,Oe=Ee().codes,Ch=Oe.ERR_INVALID_ARG_TYPE,Ph=Oe.ERR_METHOD_NOT_IMPLEMENTED,Ih=Oe.ERR_MULTIPLE_CALLBACK,Dh=Oe.ERR_STREAM_CANNOT_PIPE,Fh=Oe.ERR_STREAM_DESTROYED,$h=Oe.ERR_STREAM_NULL_VALUES,kh=Oe.ERR_STREAM_WRITE_AFTER_END,Bh=Oe.ERR_UNKNOWN_ENCODING,et=Xn.errorOrDestroy;Je()(F,ha);function Hh(){}function Et(t,e,r){Xe=Xe||Fe(),t=t||{},typeof r!="boolean"&&(r=e instanceof Xe),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=jh(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Kh(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new fa(this)}Et.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Et.prototype,"buffer",{get:Th.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var br;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(br=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(e){return br.call(this,e)?!0:this!==F?!1:e&&e._writableState instanceof Et}})):br=function(e){return e instanceof this};function F(t){Xe=Xe||Fe();var e=this instanceof Xe;if(!e&&!br.call(F,this))return new F(t);this._writableState=new Et(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),ha.call(this)}F.prototype.pipe=function(){et(this,new Dh)};function Wh(t,e){var r=new kh;et(t,r),process.nextTick(e,r)}function Gh(t,e,r,n){var i;return r===null?i=new $h:typeof r!="string"&&!e.objectMode&&(i=new Ch("chunk",["string","Buffer"],r)),i?(et(t,i),process.nextTick(n,i),!1):!0}F.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&Nh(t);return s&&!yr.isBuffer(t)&&(t=Ah(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Hh),n.ending?Wh(this,r):(s||Gh(this,n,t,r))&&(n.pendingcb++,i=Yh(this,n,s,t,e,r)),i};F.prototype.cork=function(){this._writableState.corked++};F.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&da(this,t))};F.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Bh(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Uh(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=yr.from(e,r)),e}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Yh(t,e,r,n,i,s){if(!r){var o=Uh(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Qn(t,e,!1,a,n,i,s);return u}function Qn(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Fh("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function zh(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(wt,t,e),t._writableState.errorEmitted=!0,et(t,n)):(i(n),t._writableState.errorEmitted=!0,et(t,n),wt(t,e))}function Vh(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Kh(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Ih;if(Vh(r),e)zh(t,r,n,e,i);else{var s=pa(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&da(t,r),n?process.nextTick(ca,t,r,s,i):ca(t,r,s,i)}}function ca(t,e,r,n){r||Jh(t,e),e.pendingcb--,n(),wt(t,e)}function Jh(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function da(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Qn(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new fa(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback,g=e.objectMode?1:u.length;if(Qn(t,e,!1,g,u,l,d),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}F.prototype._write=function(t,e,r){r(new Ph("_write()"))};F.prototype._writev=null;F.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Xh(this,n,r),this};Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function pa(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Zh(t,e){t._final(function(r){e.pendingcb--,r&&et(t,r),e.prefinished=!0,t.emit("prefinish"),wt(t,e)})}function Qh(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Zh,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function wt(t,e){var r=pa(e);if(r&&(Qh(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function Xh(t,e,r){e.ending=!0,wt(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function ed(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});F.prototype.destroy=Xn.destroy;F.prototype._undestroy=Xn.undestroy;F.prototype._destroy=function(t,e){e(t)}});var ei=f((Bm,ya)=>{"use strict";var td=require("util"),ma=mr(),{LEVEL:ba}=k(),St=ya.exports=function(e={}){ma.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",r=>{this.levels=r.levels,this.parent=r}),this.once("unpipe",r=>{r===this.parent&&(this.parent=null,this.close&&this.close())})};td.inherits(St,ma);St.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let i=this.level||this.parent&&this.parent.level;if(!i||this.levels[i]>=this.levels[e[ba]]){if(e&&!this.format)return this.log(e,n);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(a){s=a}if(s||!o){if(n(),s)throw s;return}return this.log(o,n)}return this._writableState.sync=!1,n(null)};St.prototype._writev=function(e,r){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,r):r(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,s;try{s=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(o){i=o}if(i||!s){if(e[n].callback(),i)throw r(null),i}else this.log(s,e[n].callback)}return r(null)};St.prototype._accept=function(e){let r=e.chunk;if(this.silent)return!1;let n=this.level||this.parent&&this.parent.level;return!!((r.exception===!0||!n||this.levels[n]>=this.levels[r[ba]])&&(this.handleExceptions||r.exception!==!0))};St.prototype._nop=function(){}});var ri=f((Hm,va)=>{"use strict";var rd=require("util"),{LEVEL:ti}=k(),_a=ei(),xt=va.exports=function(e={}){if(_a.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function r(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError))};rd.inherits(xt,_a);xt.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[ti]])&&this.transport.log(e[ti],e.message,e,this._nop),n(null)};xt.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[ti],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};xt.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
27
|
+
`))};xt.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var tt=f((Wm,ni)=>{"use strict";ni.exports=ei();ni.exports.LegacyTransportStream=ri()});var Sa=f((Um,Ea)=>{"use strict";var nd=require("os"),{LEVEL:wa,MESSAGE:rt}=k(),id=tt();Ea.exports=class extends id{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:nd.EOL,this.forceConsole=e.forceConsole||!1,this._consoleLog=console.log.bind(console),this._consoleWarn=console.warn.bind(console),this._consoleError=console.error.bind(console),this.setMaxListeners(30)}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[wa]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[rt]}${this.eol}`):this._consoleError(e[rt]),r&&r();return}else if(this.consoleWarnLevels[e[wa]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[rt]}${this.eol}`):this._consoleWarn(e[rt]),r&&r();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[rt]}${this.eol}`):this._consoleLog(e[rt]),r&&r()}_stringArrayToSet(e,r){if(!e)return{};if(r=r||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(r);return e.reduce((n,i)=>{if(typeof i!="string")throw new Error(r);return n[i]=!0,n},{})}}});var vr=f((_r,xa)=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.default=sd;function sd(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}xa.exports=_r.default});var Oa=f((wr,Ma)=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};Ma.exports=wr.default});var qa=f(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.fallback=Ra;Re.wrap=Ta;var od=Re.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,ad=Re.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,ud=Re.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function Ra(t){setTimeout(t,0)}function Ta(t){return(e,...r)=>t(()=>e(...r))}var Mt;od?Mt=queueMicrotask:ad?Mt=setImmediate:ud?Mt=process.nextTick:Mt=Ra;Re.default=Ta(Mt)});var Ca=f((Er,ja)=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.default=pd;var ld=Oa(),cd=La(ld),fd=qa(),hd=La(fd),dd=$e();function La(t){return t&&t.__esModule?t:{default:t}}function pd(t){return(0,dd.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return Aa(n,r)}:(0,cd.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return Aa(n,r);r(null,n)})}function Aa(t,e){return t.then(r=>{Na(e,null,r)},r=>{Na(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function Na(t,e,r){try{t(e,r)}catch(n){(0,hd.default)(i=>{throw i},n)}}ja.exports=Er.default});var $e=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.isAsyncIterable=ye.isAsyncGenerator=ye.isAsync=void 0;var gd=Ca(),md=bd(gd);function bd(t){return t&&t.__esModule?t:{default:t}}function Pa(t){return t[Symbol.toStringTag]==="AsyncFunction"}function yd(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function _d(t){return typeof t[Symbol.asyncIterator]=="function"}function vd(t){if(typeof t!="function")throw new Error("expected a function");return Pa(t)?(0,md.default)(t):t}ye.default=vd;ye.isAsync=Pa;ye.isAsyncGenerator=yd;ye.isAsyncIterable=_d});var nt=f((Sr,Ia)=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.default=wd;function wd(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((i,s)=>{n[e-1]=(o,...a)=>{if(o)return s(o);i(a.length>1?a:a[0])},t.apply(this,n)})}return r}Ia.exports=Sr.default});var Fa=f((xr,Da)=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});var Ed=vr(),Sd=ii(Ed),xd=$e(),Md=ii(xd),Od=nt(),Rd=ii(Od);function ii(t){return t&&t.__esModule?t:{default:t}}xr.default=(0,Rd.default)((t,e,r)=>{var n=(0,Sd.default)(e)?[]:{};t(e,(i,s,o)=>{(0,Md.default)(i)((a,...u)=>{u.length<2&&([u]=u),n[s]=u,o(a)})},i=>r(i,n))},3);Da.exports=xr.default});var si=f((Mr,$a)=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.default=Td;function Td(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}$a.exports=Mr.default});var Ba=f((Or,ka)=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};ka.exports=Or.default});var Ga=f((Rr,Wa)=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.default=Id;var qd=vr(),Ad=Ha(qd),Nd=Ba(),Ld=Ha(Nd);function Ha(t){return t&&t.__esModule?t:{default:t}}function jd(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Cd(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function Pd(t){var e=t?Object.keys(t):[],r=-1,n=e.length;return function i(){var s=e[++r];return s==="__proto__"?i():r<n?{value:t[s],key:s}:null}}function Id(t){if((0,Ad.default)(t))return jd(t);var e=(0,Ld.default)(t);return e?Cd(e):Pd(t)}Wa.exports=Rr.default});var oi=f((Tr,Ua)=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.default=Dd;function Dd(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}Ua.exports=Tr.default});var Ar=f((qr,Ya)=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});var Fd={};qr.default=Fd;Ya.exports=qr.default});var Va=f((Nr,za)=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.default=Hd;var $d=Ar(),kd=Bd($d);function Bd(t){return t&&t.__esModule?t:{default:t}}function Hd(t,e,r,n){let i=!1,s=!1,o=!1,a=0,u=0;function l(){a>=e||o||i||(o=!0,t.next().then(({value:p,done:v})=>{if(!(s||i)){if(o=!1,v){i=!0,a<=0&&n(null);return}a++,r(p,u,d),u++,l()}}).catch(g))}function d(p,v){if(a-=1,!s){if(p)return g(p);if(p===!1){i=!0,s=!0;return}if(v===kd.default||i&&a<=0)return i=!0,n(null);l()}}function g(p){s||(o=!1,i=!0,n(p))}l()}za.exports=Nr.default});var Qa=f((Lr,Za)=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});var Wd=si(),Gd=Ot(Wd),Ud=Ga(),Yd=Ot(Ud),zd=oi(),Vd=Ot(zd),Ka=$e(),Kd=Va(),Ja=Ot(Kd),Jd=Ar(),Zd=Ot(Jd);function Ot(t){return t&&t.__esModule?t:{default:t}}Lr.default=t=>(e,r,n)=>{if(n=(0,Gd.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,Ka.isAsyncGenerator)(e))return(0,Ja.default)(e,t,r,n);if((0,Ka.isAsyncIterable)(e))return(0,Ja.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,Yd.default)(e),s=!1,o=!1,a=0,u=!1;function l(g,p){if(!o)if(a-=1,g)s=!0,n(g);else if(g===!1)s=!0,o=!0;else{if(p===Zd.default||s&&a<=0)return s=!0,n(null);u||d()}}function d(){for(u=!0;a<t&&!s;){var g=i();if(g===null){s=!0,a<=0&&n(null);return}a+=1,r(g.value,g.key,(0,Vd.default)(l))}u=!1}d()};Za.exports=Lr.default});var ui=f((jr,Xa)=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});var Qd=Qa(),Xd=ai(Qd),ep=$e(),tp=ai(ep),rp=nt(),np=ai(rp);function ai(t){return t&&t.__esModule?t:{default:t}}function ip(t,e,r,n){return(0,Xd.default)(e)(t,(0,tp.default)(r),n)}jr.default=(0,np.default)(ip,4);Xa.exports=jr.default});var ru=f((Cr,tu)=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});var sp=ui(),op=eu(sp),ap=nt(),up=eu(ap);function eu(t){return t&&t.__esModule?t:{default:t}}function lp(t,e,r){return(0,op.default)(t,1,e,r)}Cr.default=(0,up.default)(lp,3);tu.exports=Cr.default});var su=f((Pr,iu)=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.default=pp;var cp=Fa(),fp=nu(cp),hp=ru(),dp=nu(hp);function nu(t){return t&&t.__esModule?t:{default:t}}function pp(t,e){return(0,fp.default)(dp.default,t,e)}iu.exports=Pr.default});var li=f((Vm,au)=>{"use strict";au.exports=_e;var Ir=Ee().codes,gp=Ir.ERR_METHOD_NOT_IMPLEMENTED,mp=Ir.ERR_MULTIPLE_CALLBACK,bp=Ir.ERR_TRANSFORM_ALREADY_TRANSFORMING,yp=Ir.ERR_TRANSFORM_WITH_LENGTH_0,Dr=Fe();Je()(_e,Dr);function _p(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new mp);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function _e(t){if(!(this instanceof _e))return new _e(t);Dr.call(this,t),this._transformState={afterTransform:_p.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",vp)}function vp(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){ou(t,e,r)}):ou(this,null,null)}_e.prototype.push=function(t,e){return this._transformState.needTransform=!1,Dr.prototype.push.call(this,t,e)};_e.prototype._transform=function(t,e,r){r(new gp("_transform()"))};_e.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};_e.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};_e.prototype._destroy=function(t,e){Dr.prototype._destroy.call(this,t,function(r){e(r)})};function ou(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new yp;if(t._transformState.transforming)throw new bp;return t.push(null)}});var cu=f((Km,lu)=>{"use strict";lu.exports=Rt;var uu=li();Je()(Rt,uu);function Rt(t){if(!(this instanceof Rt))return new Rt(t);uu.call(this,t)}Rt.prototype._transform=function(t,e,r){r(null,t)}});var gu=f((Jm,pu)=>{"use strict";var ci;function wp(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var du=Ee().codes,Ep=du.ERR_MISSING_ARGS,Sp=du.ERR_STREAM_DESTROYED;function fu(t){if(t)throw t}function xp(t){return t.setHeader&&typeof t.abort=="function"}function Mp(t,e,r,n){n=wp(n);var i=!1;t.on("close",function(){i=!0}),ci===void 0&&(ci=ur()),ci(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,xp(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new Sp("pipe"))}}}function hu(t){t()}function Op(t,e){return t.pipe(e)}function Rp(t){return!t.length||typeof t[t.length-1]!="function"?fu:t.pop()}function Tp(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Rp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Ep("streams");var i,s=e.map(function(o,a){var u=a<e.length-1,l=a>0;return Mp(o,u,l,function(d){i||(i=d),d&&s.forEach(hu),!u&&(s.forEach(hu),n(i))})});return e.reduce(Op)}pu.exports=Tp});var ke=f((ie,qt)=>{var Tt=require("stream");process.env.READABLE_STREAM==="disable"&&Tt?(qt.exports=Tt.Readable,Object.assign(qt.exports,Tt),qt.exports.Stream=Tt):(ie=qt.exports=Kn(),ie.Stream=Tt||ie,ie.Readable=ie,ie.Writable=mr(),ie.Duplex=Fe(),ie.Transform=li(),ie.PassThrough=cu(),ie.finished=ur(),ie.pipeline=gu())});var bi=f((Zm,bu)=>{var it=[],At=[],fi=function(){};function di(t){return~it.indexOf(t)?!1:(it.push(t),!0)}function pi(t){fi=t}function qp(t){for(var e=[],r=0;r<it.length;r++){if(it[r].async){e.push(it[r]);continue}if(it[r](t))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(o){return o(t)})).then(function(o){i(o.some(Boolean))})}):!1}function gi(t){return~At.indexOf(t)?!1:(At.push(t),!0)}function hi(){fi.apply(fi,arguments)}function mu(t){for(var e=0;e<At.length;e++)t=At[e].apply(At[e],arguments);return t}function mi(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function Ap(t){return t.enabled=!1,t.modify=gi,t.set=pi,t.use=di,mi(function(){return!1},t)}function Np(t){function e(){var r=Array.prototype.slice.call(arguments,0);return hi.call(hi,t,mu(r,t)),!0}return t.enabled=!0,t.modify=gi,t.set=pi,t.use=di,mi(e,t)}bu.exports=function(e){return e.introduce=mi,e.enabled=qp,e.process=mu,e.modify=gi,e.write=hi,e.nope=Ap,e.yep=Np,e.set=pi,e.use=di,e}});var _u=f((Qm,yu)=>{var Lp=bi(),jp=Lp(function t(e,r){return r=r||{},r.namespace=e,r.prod=!0,r.dev=!1,r.force||t.force?t.yep(r):t.nope(r)});yu.exports=jp});var Mu=f((Xm,xu)=>{"use strict";var pe={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},wu=Object.create(null);for(let t in pe)Object.hasOwn(pe,t)&&(wu[pe[t]]=t);var W={to:{},get:{}};W.get=function(t){let e=t.slice(0,3).toLowerCase(),r,n;switch(e){case"hsl":{r=W.get.hsl(t),n="hsl";break}case"hwb":{r=W.get.hwb(t),n="hwb";break}default:{r=W.get.rgb(t),n="rgb";break}}return r?{model:n,value:r}:null};W.get.rgb=function(t){if(!t)return null;let e=/^#([a-f\d]{3,4})$/i,r=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],a,u,l;if(a=t.match(r)){for(l=a[2],a=a[1],u=0;u<3;u++){let d=u*2;o[u]=Number.parseInt(a.slice(d,d+2),16)}l&&(o[3]=Number.parseInt(l,16)/255)}else if(a=t.match(e)){for(a=a[1],l=a[3],u=0;u<3;u++)o[u]=Number.parseInt(a[u]+a[u],16);l&&(o[3]=Number.parseInt(l+l,16)/255)}else if(a=t.match(n)){for(u=0;u<3;u++)o[u]=Number.parseInt(a[u+1],10);a[4]&&(o[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=t.match(i)){for(u=0;u<3;u++)o[u]=Math.round(Number.parseFloat(a[u+1])*2.55);a[4]&&(o[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=t.match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(pe,a[1])?(o=pe[a[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=Te(o[u],0,255);return o[3]=Te(o[3],0,1),o};W.get.hsl=function(t){if(!t)return null;let e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){let n=Number.parseFloat(r[4]),i=(Number.parseFloat(r[1])%360+360)%360,s=Te(Number.parseFloat(r[2]),0,100),o=Te(Number.parseFloat(r[3]),0,100),a=Te(Number.isNaN(n)?1:n,0,1);return[i,s,o,a]}return null};W.get.hwb=function(t){if(!t)return null;let e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){let n=Number.parseFloat(r[4]),i=(Number.parseFloat(r[1])%360+360)%360,s=Te(Number.parseFloat(r[2]),0,100),o=Te(Number.parseFloat(r[3]),0,100),a=Te(Number.isNaN(n)?1:n,0,1);return[i,s,o,a]}return null};W.to.hex=function(...t){return"#"+Fr(t[0])+Fr(t[1])+Fr(t[2])+(t[3]<1?Fr(Math.round(t[3]*255)):"")};W.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};W.to.rgb.percent=function(...t){let e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"};W.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};W.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};W.to.keyword=function(...t){return wu[t.slice(0,3)]};function Te(t,e,r){return Math.min(Math.max(e,t),r)}function Fr(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var Eu={};for(let t of Object.keys(pe))Eu[pe[t]]=t;var m={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ve=(6/29)**3;function st(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function ot(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(m)){if(!("channels"in m[t]))throw new Error("missing channels property: "+t);if(!("labels"in m[t]))throw new Error("missing channel labels property: "+t);if(m[t].labels.length!==m[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=m[t];delete m[t].channels,delete m[t].labels,Object.defineProperty(m[t],"channels",{value:e}),Object.defineProperty(m[t],"labels",{value:r})}m.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;switch(s){case i:{a=0;break}case e:{a=(r-n)/o;break}case r:{a=2+(n-e)/o;break}case n:{a=4+(e-r)/o;break}}a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+s)/2;return s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};m.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(o,a,u),d=l-Math.min(o,a,u),g=function(p){return(l-p)/6/d+1/2};if(d===0)i=0,s=0;else{switch(s=d/l,e=g(o),r=g(a),n=g(u),l){case o:{i=n-r;break}case a:{i=1/3+e-n;break}case u:{i=2/3+r-e;break}}i<0?i+=1:i>1&&(i-=1)}return[i*360,s*100,l*100]};m.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=m.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};m.rgb.oklab=function(t){let e=ot(t[0]/255),r=ot(t[1]/255),n=ot(t[2]/255),i=Math.cbrt(.4122214708*e+.5363325363*r+.0514459929*n),s=Math.cbrt(.2119034982*e+.6806995451*r+.1073969566*n),o=Math.cbrt(.0883024619*e+.2817188376*r+.6299787005*n),a=.2104542553*i+.793617785*s-.0040720468*o,u=1.9779984951*i-2.428592205*s+.4505937099*o,l=.0259040371*i+.7827717662*s-.808675766*o;return[a*100,u*100,l*100]};m.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function Cp(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}m.rgb.keyword=function(t){let e=Eu[t];if(e)return e;let r=Number.POSITIVE_INFINITY,n;for(let i of Object.keys(pe)){let s=pe[i],o=Cp(t,s);o<r&&(r=o,n=i)}return n};m.keyword.rgb=function(t){return pe[t]};m.rgb.xyz=function(t){let e=ot(t[0]/255),r=ot(t[1]/255),n=ot(t[2]/255),i=e*.4124564+r*.3575761+n*.1804375,s=e*.2126729+r*.7151522+n*.072175,o=e*.0193339+r*.119192+n*.9503041;return[i*100,s*100,o*100]};m.rgb.lab=function(t){let e=m.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>ve?r**(1/3):7.787*r+16/116,n=n>ve?n**(1/3):7.787*n+16/116,i=i>ve?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};m.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s;if(r===0)return s=n*255,[s,s,s];let o=n<.5?n*(1+r):n+r-n*r,a=2*n-o,u=[0,0,0];for(let l=0;l<3;l++)i=e+1/3*-(l-1),i<0&&i++,i>1&&i--,6*i<1?s=a+(o-a)*6*i:2*i<1?s=o:3*i<2?s=a+(o-a)*(2/3-i)*6:s=a,u[l]=s*255;return u};m.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};m.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};m.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};m.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let u=r+s*(a-r),l,d,g;switch(o){default:case 6:case 0:{l=a,d=u,g=r;break}case 1:{l=u,d=a,g=r;break}case 2:{l=r,d=a,g=u;break}case 3:{l=r,d=u,g=a;break}case 4:{l=u,d=r,g=a;break}case 5:{l=a,d=r,g=u;break}}return[l*255,d*255,g*255]};m.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};m.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2404542+r*-1.5371385+n*-.4985314,s=e*-.969266+r*1.8760108+n*.041556,o=e*.0556434+r*-.2040259+n*1.0572252,i=st(i),s=st(s),o=st(o),[i*255,s*255,o*255]};m.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>ve?e**(1/3):7.787*e+16/116,r=r>ve?r**(1/3):7.787*r+16/116,n=n>ve?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};m.xyz.oklab=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=Math.cbrt(.8189330101*e+.3618667424*r-.1288597137*n),s=Math.cbrt(.0329845436*e+.9293118715*r+.0361456387*n),o=Math.cbrt(.0482003018*e+.2643662691*r+.633851707*n),a=.2104542553*i+.793617785*s-.0040720468*o,u=1.9779984951*i-2.428592205*s+.4505937099*o,l=.0259040371*i+.7827717662*s-.808675766*o;return[a*100,u*100,l*100]};m.oklab.oklch=function(t){return m.lab.lch(t)};m.oklab.xyz=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=(.999999998*e+.396337792*r+.215803758*n)**3,s=(1.000000008*e-.105561342*r-.063854175*n)**3,o=(1.000000055*e-.089484182*r-1.291485538*n)**3,a=1.227013851*i-.55779998*s+.281256149*o,u=-.040580178*i+1.11225687*s-.071676679*o,l=-.076381285*i-.421481978*s+1.58616322*o;return[a*100,u*100,l*100]};m.oklab.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=(e+.3963377774*r+.2158037573*n)**3,s=(e-.1055613458*r-.0638541728*n)**3,o=(e-.0894841775*r-1.291485548*n)**3,a=st(4.0767416621*i-3.3077115913*s+.2309699292*o),u=st(-1.2684380046*i+2.6097574011*s-.3413193965*o),l=st(-.0041960863*i-.7034186147*s+1.707614701*o);return[a*255,u*255,l*255]};m.oklch.oklab=function(t){return m.lch.lab(t)};m.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,l=o**3;return s=a>ve?a:(s-16/116)/7.787,i=u>ve?u:(i-16/116)/7.787,o=l>ve?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};m.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};m.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};m.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?m.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};m.hsv.ansi16=function(t){return m.rgb.ansi16(m.hsv.rgb(t),t[2])};m.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e>>4===r>>4&&r>>4===n>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};m.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(Math.trunc(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};m.ansi256.rgb=function(t){if(t=t[0],t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};m.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(r.length)+r};m.hex.rgb=function(t){let e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=[...r].map(a=>a+a).join(""));let n=Number.parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};m.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u=o<1?s/(1-o):0;return o<=0?a=0:i===e?a=(r-n)/o%6:i===r?a=2+(n-e)/o:a=4+(e-r)/o,a/=6,a%=1,[a*360,o*100,u*100]};m.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};m.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};m.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:{i[0]=1,i[1]=o,i[2]=0;break}case 1:{i[0]=a,i[1]=1,i[2]=0;break}case 2:{i[0]=0,i[1]=1,i[2]=o;break}case 3:{i[0]=0,i[1]=a,i[2]=1;break}case 4:{i[0]=o,i[1]=0,i[2]=1;break}default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};m.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};m.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};m.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};m.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};m.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};m.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};m.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};m.gray.hsl=function(t){return[0,0,t[0]]};m.gray.hsv=m.gray.hsl;m.gray.hwb=function(t){return[0,100,t[0]]};m.gray.cmyk=function(t){return[0,0,0,t[0]]};m.gray.lab=function(t){return[t[0],0,0]};m.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(n.length)+n};m.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function Pp(){let t={},e=Object.keys(m);for(let{length:r}=e,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Ip(t){let e=Pp(),r=[t];for(e[t].distance=0;r.length>0;){let n=r.pop(),i=Object.keys(m[n]);for(let{length:s}=i,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function Dp(t,e){return function(r){return e(t(r))}}function Fp(t,e){let r=[e[t].parent,t],n=m[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Dp(m[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}function $p(t){let e=Ip(t),r={},n=Object.keys(e);for(let{length:i}=n,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Fp(o,e))}return r}var G={},kp=Object.keys(m);function Bp(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Hp(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let{length:s}=i,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}for(let t of kp){G[t]={},Object.defineProperty(G[t],"channels",{value:m[t].channels}),Object.defineProperty(G[t],"labels",{value:m[t].labels});let e=$p(t),r=Object.keys(e);for(let n of r){let i=e[n];G[t][n]=Hp(i),G[t][n].raw=Bp(i)}}var Su=["keyword","gray","hex"],yi={};for(let t of Object.keys(G))yi[[...G[t].labels].sort().join("")]=t;var _i={};function H(t,e){if(!(this instanceof H))return new H(t,e);if(e&&e in Su&&(e=null),e&&!(e in G))throw new Error("Unknown model: "+e);let r,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof H)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let i=W.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=G[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(t.length>0){this.model=e||"rgb",n=G[this.model].channels;let i=Array.prototype.slice.call(t,0,n);this.color=vi(i,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let i=Object.keys(t);"alpha"in t&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let s=i.sort().join("");if(!(s in yi))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=yi[s];let{labels:o}=G[this.model],a=[];for(r=0;r<o.length;r++)a.push(t[o[r]]);this.color=vi(a)}if(_i[this.model])for(n=G[this.model].channels,r=0;r<n;r++){let i=_i[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}H.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in W.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);let r=e.valpha===1?e.color:[...e.color,this.valpha];return W.to[e.model](...r)},percentString(t){let e=this.rgb().round(typeof t=="number"?t:1),r=e.valpha===1?e.color:[...e.color,this.valpha];return W.to.rgb.percent(...r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:e}=G[this.model],{labels:r}=G[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new H([...this.color.map(Gp(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new H([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:$("rgb",0,B(255)),green:$("rgb",1,B(255)),blue:$("rgb",2,B(255)),hue:$(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:$("hsl",1,B(100)),lightness:$("hsl",2,B(100)),saturationv:$("hsv",1,B(100)),value:$("hsv",2,B(100)),chroma:$("hcg",1,B(100)),gray:$("hcg",2,B(100)),white:$("hwb",1,B(100)),wblack:$("hwb",2,B(100)),cyan:$("cmyk",0,B(100)),magenta:$("cmyk",1,B(100)),yellow:$("cmyk",2,B(100)),black:$("cmyk",3,B(100)),x:$("xyz",0,B(95.047)),y:$("xyz",1,B(100)),z:$("xyz",2,B(108.833)),l:$("lab",0,B(100)),a:$("lab",1),b:$("lab",2),keyword(t){return t!==void 0?new H(t):G[this.model].keyword(this.color)},hex(t){return t!==void 0?new H(t):W.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new H(t);let e=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),W.to.hex(...e)+r},rgbNumber(){let t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){let t=this.rgb().color,e=[];for(let[r,n]of t.entries()){let i=n/255;e[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){let e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level(t){let e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){let t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){let e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){let e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){let e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){let e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){let e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){let e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){let t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return H.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let r=t.rgb(),n=this.rgb(),i=e===void 0?.5:e,s=2*i-1,o=r.alpha()-n.alpha(),a=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-a;return H.rgb(a*r.red()+u*n.red(),a*r.green()+u*n.green(),a*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(let t of Object.keys(G)){if(Su.includes(t))continue;let{channels:e}=G[t];H.prototype[t]=function(...r){return this.model===t?new H(this):r.length>0?new H(r,t):new H([...Up(G[this.model][t].raw(this.color)),this.valpha],t)},H[t]=function(...r){let n=r[0];return typeof n=="number"&&(n=vi(r,e)),new H(n,t)}}function Wp(t,e){return Number(t.toFixed(e))}function Gp(t){return function(e){return Wp(e,t)}}function $(t,e,r){t=Array.isArray(t)?t:[t];for(let n of t)(_i[n]||=[])[e]=r;return t=t[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function B(t){return function(e){return Math.max(0,Math.min(t,e))}}function Up(t){return Array.isArray(t)?t:[t]}function vi(t,e){for(let r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}function Yp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var zp=function(e){for(var r=0,n=0;r<e.length;n=e.charCodeAt(r++)+((n<<5)-n));var i=Math.floor(Math.abs(Math.sin(n)*1e4%1*16777216)).toString(16);return"#"+Array(6-i.length+1).join("0")+i},vu=Yp(zp);function Vp(t,e){let r=t.split(e||":"),n=vu(r[0]);if(!r.length)return n;for(let i=0,s=r.length-1;i<s;i++)n=H(n).mix(H(vu(r[i+1]))).saturate(1).hex();return n}xu.exports=Vp});var Ru=f((eb,Ou)=>{"use strict";function ue(t,e){if(e)return new ue(t).style(e);if(!(this instanceof ue))return new ue(t);this.text=t}ue.prototype.prefix="\x1B[";ue.prototype.suffix="m";ue.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var r=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return[parseInt(r,16),parseInt(n,16),parseInt(i,16)]};ue.prototype.rgb=function(e,r,n){var i=e/255*5,s=r/255*5,o=n/255*5;return this.ansi(i,s,o)};ue.prototype.ansi=function(e,r,n){var i=Math.round(e),s=Math.round(r),o=Math.round(n);return 16+i*36+s*6+o};ue.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ue.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};Ou.exports=ue});var qu=f((tb,Tu)=>{var Kp=Mu(),Jp=Ru();Tu.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?Jp(n+":",Kp(n)):n+":";return e[0]=i+" "+e[0],e}});var Nu=f((rb,Au)=>{"use strict";Au.exports=function(e,r){if(!r)return!1;for(var n=r.split(/[\s,]+/),i=0;i<n.length;i++){if(r=n[i].replace("*",".*?"),r.charAt(0)==="-"){if(new RegExp("^"+r.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+r+"$").test(e))return!0}return!1}});var ju=f((nb,Lu)=>{var Zp=Nu();Lu.exports=function(e){return function(n){try{return Zp(n,e())}catch{}return!1}}});var Pu=f((ib,Cu)=>{var Qp=ju();Cu.exports=Qp(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Du=f((sb,Iu)=>{Iu.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var $u=f((ob,Fu)=>{var Xp=bi(),eg=require("tty").isatty(1),$r=Xp(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:eg,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});$r.modify(qu());$r.use(Pu());$r.set(Du());Fu.exports=$r});var Nt=f((ab,wi)=>{process.env.NODE_ENV==="production"?wi.exports=_u():wi.exports=$u()});var Bu=f((ub,ku)=>{"use strict";var Ei=require("fs"),{StringDecoder:tg}=require("string_decoder"),{Stream:rg}=ke();function ng(){}ku.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new tg("utf8"),i=new rg,s="",o=0,a=0;return t.start===-1&&delete t.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},Ei.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):i.emit("error",u),i.destroy();return}(function d(){if(i.destroyed){Ei.close(l,ng);return}return Ei.read(l,r,0,r.length,o,(g,p)=>{if(g){e?e(g):i.emit("error",g),i.destroy();return}if(!p)return s&&((t.start==null||a>t.start)&&(e?e(null,s):i.emit("line",s)),a++,s=""),setTimeout(d,1e3);let v=n.write(r.slice(0,p));e||i.emit("data",v),v=(s+v).split(/\n+/);let c=v.length-1,b=0;for(;b<c;b++)(t.start==null||a>t.start)&&(e?e(null,v[b]):i.emit("line",v[b])),a++;return s=v[c],o+=p,d()})})()}),e?i.destroy:i}});var Uu=f((cb,Gu)=>{"use strict";var X=require("fs"),U=require("path"),Hu=su(),ig=require("zlib"),{MESSAGE:sg}=k(),{Stream:og,PassThrough:Wu}=ke(),ag=tt(),le=Nt()("winston:file"),ug=require("os"),lg=Bu();Gu.exports=class extends ag{constructor(e={}){super(e),this.name=e.name||"file";function r(n,...i){i.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${n} together`)})}if(this._stream=new Wu,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)r("filename or dirname","stream"),this._basename=this.filename=e.filename?U.basename(e.filename):"winston.log",this.dirname=e.dirname||U.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),r("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=U.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:ug.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}_final(e){if(this._opening){this.once("open",()=>this._final(e));return}if(this._stream.end(),!this._dest||this._dest.writableFinished)return e();this._dest.once("finish",e),this._dest.once("error",e)}log(e,r=()=>{}){if(this.silent)return r(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,r)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,r)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,r)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,r)})});return}}let n=`${e[sg]}${this.eol}`,i=Buffer.byteLength(n);function s(){if(this._size+=i,this._pendingSize-=i,le("logged %s %s",this._size,n),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(n,s.bind(this));return o?r():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,r()})),le("written",o,this._drain),this.finishIfEnding(),o}query(e,r){typeof e=="function"&&(r=e,e={}),e=g(e);let n=U.join(this.dirname,this.filename),i="",s=[],o=0,a=X.createReadStream(n,{encoding:"utf8"});a.on("error",p=>{if(a.readable&&a.destroy(),!!r)return p.code!=="ENOENT"?r(p):r(null,s)}),a.on("data",p=>{p=(i+p).split(/\n+/);let v=p.length-1,c=0;for(;c<v;c++)(!e.start||o>=e.start)&&u(p[c]),o++;i=p[v]}),a.on("close",()=>{i&&u(i,!0),e.order==="desc"&&(s=s.reverse()),r&&r(null,s)});function u(p,v){try{let c=JSON.parse(p);d(c)&&l(c)}catch(c){v||a.emit("error",c)}}function l(p){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){a.readable&&a.destroy();return}e.fields&&(p=e.fields.reduce((v,c)=>(v[c]=p[c],v),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(p)}function d(p){if(!p||typeof p!="object")return;let v=new Date(p.timestamp);if(!(e.from&&v<e.from||e.until&&v>e.until||e.level&&e.level!==p.level))return!0}function g(p){return p=p||{},p.rows=p.rows||p.limit||10,p.start=p.start||0,p.until=p.until||new Date,typeof p.until!="object"&&(p.until=new Date(p.until)),p.from=p.from||p.until-24*60*60*1e3,typeof p.from!="object"&&(p.from=new Date(p.from)),p.order=p.order||"desc",p}}stream(e={}){let r=U.join(this.dirname,this.filename),n=new og,i={file:r,start:e.start};return n.destroy=lg(i,(s,o)=>{if(s)return n.emit("error",s);try{n.emit("data",o),o=JSON.parse(o),n.emit("log",o)}catch(a){n.emit("error",a)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,r)=>{if(e)return this.emit("error",e);le("stat done: %s { size: %s }",this.filename,r),this._size=r,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let r=this._getFile(),n=U.join(this.dirname,r);X.stat(n,(i,s)=>{if(i&&i.code==="ENOENT")return le("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return le(`err ${i.code} ${n}`),e(i);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=r,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let r=U.join(this.dirname,this.filename);le("create stream start",r,this.options);let n=X.createWriteStream(r,this.options).on("error",i=>le(i)).on("close",()=>le("close",n.path,n.bytesWritten)).on("open",()=>{le("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new Wu,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return le("create stream ok",r),n}_incFile(e){le("_incFile",this.filename);let r=U.extname(this._basename),n=U.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(U.join(this.dirname,`${n}${o}${r}`),U.join(this.dirname,`${n}${o}${r}.gz`),s)}.bind(this)),i.push(function(s){this.tailable?this._checkMaxFilesTailable(r,n,s):(this._created+=1,this._checkMaxFilesIncrementing(r,n,s))}.bind(this)),Hu(i,e)}_getFile(){let e=U.extname(this._basename),r=U.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${r}${n}${e}`:`${r}${e}`}_checkMaxFilesIncrementing(e,r,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,s=i!==0?i:"",o=this.zippedArchive?".gz":"",a=`${r}${s}${e}${o}`,u=U.join(this.dirname,a);X.unlink(u,n)}_checkMaxFilesTailable(e,r,n){let i=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)i.push(function(a,u){let l=`${r}${a-1}${e}${s}`,d=U.join(this.dirname,l);X.exists(d,g=>{if(!g)return u(null);l=`${r}${a}${e}${s}`,X.rename(d,U.join(this.dirname,l),u)})}.bind(this,o));Hu(i,()=>{X.rename(U.join(this.dirname,`${r}${e}${s}`),U.join(this.dirname,`${r}1${e}${s}`),n)})}_compressFile(e,r,n){X.access(e,X.F_OK,i=>{if(i)return n();var s=ig.createGzip(),o=X.createReadStream(e),a=X.createWriteStream(r);a.on("finish",()=>{X.unlink(e,n)}),o.pipe(s).pipe(a)})}_createLogDirIfNotExist(e){X.existsSync(e)||X.mkdirSync(e,{recursive:!0})}}});var zu=f((hb,Yu)=>{"use strict";var cg=require("http"),fg=require("https"),{Stream:hg}=ke(),dg=tt(),{configure:pg}=gt();Yu.exports=class extends dg{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,r){this._request(e,null,null,(n,i)=>{i&&i.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),r&&setImmediate(r)}query(e,r){typeof e=="function"&&(r=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let i=e.params.path||null;delete e.params.path,this._request(e,n,i,(s,o,a)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return r(s);if(typeof a=="string")try{a=JSON.parse(a)}catch(u){return r(u)}r(null,a)})}stream(e={}){let r=new hg;e={method:"stream",params:e};let n=e.params.path||null;delete e.params.path;let i=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,i,n);return r.destroy=()=>o.destroy(),o.on("data",a=>{a=(s+a).split(/\n+/);let u=a.length-1,l=0;for(;l<u;l++)try{r.emit("log",JSON.parse(a[l]))}catch(d){r.emit("error",d)}s=a[u]}),o.on("error",a=>r.emit("error",a)),r}_request(e,r,n,i){e=e||{},r=r||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,r,n):this._doRequest(e,i,r,n)}_doBatch(e,r,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=r,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,r,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,r,n)}_doRequest(e,r,n,i){let s=Object.assign({},this.headers);n&&n.bearer&&(s.Authorization=`Bearer ${n.bearer}`);let o=(this.ssl?fg:cg).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:s,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});o.on("error",r),o.on("response",u=>u.on("end",()=>r(null,u)).resume());let a=pg({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}});var Si=f((db,Vu)=>{"use strict";var ge=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";ge.writable=t=>ge(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";ge.readable=t=>ge(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";ge.duplex=t=>ge.writable(t)&&ge.readable(t);ge.transform=t=>ge.duplex(t)&&typeof t._transform=="function";Vu.exports=ge});var Ju=f((gb,Ku)=>{"use strict";var gg=Si(),{MESSAGE:mg}=k(),bg=require("os"),yg=tt();Ku.exports=class extends yg{constructor(e={}){if(super(e),!e.stream||!gg(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:bg.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[mg]}${this.eol}`),r&&r()}}});var Zu=f(Lt=>{"use strict";Object.defineProperty(Lt,"Console",{configurable:!0,enumerable:!0,get(){return Sa()}});Object.defineProperty(Lt,"File",{configurable:!0,enumerable:!0,get(){return Uu()}});Object.defineProperty(Lt,"Http",{configurable:!0,enumerable:!0,get(){return zu()}});Object.defineProperty(Lt,"Stream",{configurable:!0,enumerable:!0,get(){return Ju()}})});var Br=f(jt=>{"use strict";var kr=Mn(),{configs:xi}=k();jt.cli=kr.levels(xi.cli);jt.npm=kr.levels(xi.npm);jt.syslog=kr.levels(xi.syslog);jt.addColors=kr.levels});var Xu=f((Hr,Qu)=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});var _g=vr(),vg=Be(_g),wg=Ar(),Eg=Be(wg),Sg=ui(),xg=Be(Sg),Mg=si(),Og=Be(Mg),Rg=oi(),Tg=Be(Rg),qg=$e(),Ag=Be(qg),Ng=nt(),Lg=Be(Ng);function Be(t){return t&&t.__esModule?t:{default:t}}function jg(t,e,r){r=(0,Og.default)(r);var n=0,i=0,{length:s}=t,o=!1;s===0&&r(null);function a(u,l){u===!1&&(o=!0),o!==!0&&(u?r(u):(++i===s||l===Eg.default)&&r(null))}for(;n<s;n++)e(t[n],n,(0,Tg.default)(a))}function Cg(t,e,r){return(0,xg.default)(t,1/0,e,r)}function Pg(t,e,r){var n=(0,vg.default)(t)?jg:Cg;return n(t,(0,Ag.default)(e),r)}Hr.default=(0,Lg.default)(Pg,3);Qu.exports=Hr.default});var tl=f((Wr,el)=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.default=Ig;function Ig(t){return(e,r,n)=>t(e,n)}el.exports=Wr.default});var Yr=f((Ur,rl)=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});var Dg=Xu(),Fg=Gr(Dg),$g=tl(),kg=Gr($g),Bg=$e(),Hg=Gr(Bg),Wg=nt(),Gg=Gr(Wg);function Gr(t){return t&&t.__esModule?t:{default:t}}function Ug(t,e,r){return(0,Fg.default)(t,(0,kg.default)((0,Hg.default)(e)),r)}Ur.default=(0,Gg.default)(Ug,3);rl.exports=Ur.default});var il=f((yb,nl)=>{"use strict";var Yg=Object.prototype.toString;nl.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var r=e.toString(),n=Yg.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var Mi=f((_b,sl)=>{"use strict";var zg=il();sl.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=zg(e),i}});var Oi=f(Pt=>{Pt.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(r,t||Pt.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Pt.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
|
|
28
|
+
`).slice(1);return r.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var s=null,o=null,a=null,u=null,l=null,d=i[5]==="native";if(i[1]){a=i[1];var g=a.lastIndexOf(".");if(a[g-1]=="."&&g--,g>0){s=a.substr(0,g),o=a.substr(g+1);var p=s.indexOf(".Module");p>0&&(a=a.substr(p+1),s=s.substr(0,p))}u=null}o&&(u=s,l=o),o==="<anonymous>"&&(l=null,a=null);var v={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:a,typeName:u,methodName:l,columnNumber:parseInt(i[4],10)||null,native:d};return e._createParsedCallSite(v)}}).filter(function(n){return!!n})};function Ct(t){for(var e in t)this[e]=t[e]}var Vg=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],Kg=["topLevel","eval","native","constructor"];Vg.forEach(function(t){Ct.prototype[t]=null,Ct.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Kg.forEach(function(t){Ct.prototype[t]=!1,Ct.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Pt._createParsedCallSite=function(t){return new Ct(t)}});var al=f((Eb,ol)=>{"use strict";var{Writable:Jg}=ke();ol.exports=class extends Jg{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,r,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var Ti=f((xb,cl)=>{"use strict";var ul=require("os"),Zg=Yr(),Ri=Nt()("winston:exception"),Qg=Mi(),ll=Oi(),Xg=al();cl.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
|
29
|
+
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:ul.loadavg(),uptime:ul.uptime()}}getTrace(e){return(e?ll.parse(e):ll.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let r=new Xg(e);this.handlers.set(e,r),this.logger.pipe(r)}}_uncaughtException(e){let r=this.getAllInfo(e),n=this._getExceptionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1);function o(){Ri("doExit",i),Ri("process._exiting",process._exiting),i&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);Zg(n,(a,u)=>{let l=Qg(u),d=a.transport||a;function g(p){return()=>{Ri(p),l()}}d._ending=!0,d.once("finish",g("finished")),d.once("error",g("error"))},()=>i&&o()),this.logger.log(r),i&&(s=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var hl=f((Ob,fl)=>{"use strict";var{Writable:e0}=ke();fl.exports=class extends e0{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,r,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var Ai=f((Tb,gl)=>{"use strict";var dl=require("os"),t0=Yr(),qi=Nt()("winston:rejection"),r0=Mi(),pl=Oi(),n0=hl();gl.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
|
30
|
+
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:dl.loadavg(),uptime:dl.uptime()}}getTrace(e){return(e?pl.parse(e):pl.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let r=new n0(e);this.handlers.set(e,r),this.logger.pipe(r)}}_unhandledRejection(e){let r=this.getAllInfo(e),n=this._getRejectionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1);function o(){qi("doExit",i),qi("process._exiting",process._exiting),i&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);t0(n,(a,u)=>{let l=r0(u),d=a.transport||a;function g(p){return()=>{qi(p),l()}}d._ending=!0,d.once("finish",g("finished")),d.once("error",g("error"))},()=>i&&o()),this.logger.log(r),i&&(s=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var bl=f((qb,ml)=>{"use strict";var Ni=class{constructor(e){let r=zr();if(typeof e!="object"||Array.isArray(e)||!(e instanceof r))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let r=typeof e[e.length-1]=="object"?e.pop():{};return r.level=r.level||"info",r.durationMs=Date.now()-this.start,this.logger.write(r)}};ml.exports=Ni});var zr=f((Ab,wl)=>{"use strict";var{Stream:i0,Transform:s0}=ke(),yl=Yr(),{LEVEL:me,SPLAT:_l}=k(),vl=Si(),o0=Ti(),a0=Ai(),u0=ri(),l0=bl(),{warn:c0}=On(),f0=Br(),h0=/%[scdjifoO%]/g,Vr=class extends s0{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let r=this;return Object.create(r,{write:{value:function(n){let i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message,i.cause=n.cause),r.write(i)}}})}configure({silent:e,format:r,defaultMeta:n,levels:i,level:s="info",exitOnError:o=!0,transports:a,colors:u,emitErrs:l,formatters:d,padLevels:g,rewriters:p,stripColors:v,exceptionHandlers:c,rejectionHandlers:b}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=r||this.format||vn()(),this.defaultMeta=n||null,this.levels=i||this.levels||f0.npm.levels,this.level=s,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new o0(this),this.rejections=new a0(this),this.profilers={},this.exitOnError=o,a&&(a=Array.isArray(a)?a:[a],a.forEach(w=>this.add(w))),u||l||d||g||p||v)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
31
|
+
`));c&&this.exceptions.handle(c),b&&this.rejections.handle(b)}getHighestLogLevel(){let e=It(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((r,n)=>{let i=It(this.levels,n.level);return i!==null&&i>r?i:r},e)}isLevelEnabled(e){let r=It(this.levels,e);if(r===null)return!1;let n=It(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=r:this.transports.findIndex(s=>{let o=It(this.levels,s.level);return o===null&&(o=n),o>=r})!==-1}log(e,r,...n){if(arguments.length===1)return e[me]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return r&&typeof r=="object"?(r[me]=r.level=e,this._addDefaultMeta(r),this.write(r),this):(r={[me]:e,level:e,message:r},this._addDefaultMeta(r),this.write(r),this);let[i]=n;if(typeof i=="object"&&i!==null&&!(r&&r.match&&r.match(h0))){let o=Object.assign({},this.defaultMeta,i,{[me]:e,[_l]:n,level:e,message:r});return i.message&&(o.message=`${o.message} ${i.message}`),i.stack&&(o.stack=i.stack),i.cause&&(o.cause=i.cause),this.write(o),this}return this.write(Object.assign({},this.defaultMeta,{[me]:e,[_l]:n,level:e,message:r})),this}_transform(e,r,n){if(this.silent)return n();e[me]||(e[me]=e.level),!this.levels[e[me]]&&this.levels[e[me]]!==0&&console.error("[winston] Unknown logger level: %s",e[me]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,n()}}_final(e){let r=this.transports.slice();yl(r,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let r=!vl(e)||e.log.length>2?new u0({transport:e}):e;if(!r._writableState||!r._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",r),this._onEvent("warn",r),this.pipe(r),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let r=e;return(!vl(e)||e.log.length>2)&&(r=this.transports.filter(n=>n.transport===e)[0]),r&&this.unpipe(r),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){c0.deprecated("setLevels")}query(e,r){typeof e=="function"&&(r=e,e={}),e=e||{};let n={},i=Object.assign({},e.query||{});function s(a,u){e.query&&typeof a.formatQuery=="function"&&(e.query=a.formatQuery(i)),a.query(e,(l,d)=>{if(l)return u(l);typeof a.formatResults=="function"&&(d=a.formatResults(d,e.format)),u(null,d)})}function o(a,u){s(a,(l,d)=>{u&&(d=l||d,d&&(n[a.name]=d),u()),u=null})}yl(this.transports.filter(a=>!!a.query),o,()=>r(null,n))}stream(e={}){let r=new i0,n=[];return r._streams=n,r.destroy=()=>{let i=n.length;for(;i--;)n[i].destroy()},this.transports.filter(i=>!!i.stream).forEach(i=>{let s=i.stream(e);s&&(n.push(s),s.on("log",o=>{o.transport=o.transport||[],o.transport.push(i.name),r.emit("log",o)}),s.on("error",o=>{o.transport=o.transport||[],o.transport.push(i.name),r.emit("error",o)}))}),r}startTimer(){return new l0(this)}profile(e,...r){let n=Date.now();if(this.profilers[e]){let i=this.profilers[e];delete this.profilers[e],typeof r[r.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),r.pop());let s=typeof r[r.length-1]=="object"?r.pop():{};return s.level=s.level||"info",s.durationMs=n-i,s.message=s.message||e,this.write(s)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
32
|
+
`))}_onEvent(e,r){function n(i){e==="error"&&!this.transports.includes(r)&&this.add(r),this.emit(e,i,r)}r["__winston"+e]||(r["__winston"+e]=n.bind(this),r.on(e,r["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function It(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(Vr.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});wl.exports=Vr});var Li=f((Nb,El)=>{"use strict";var{LEVEL:d0}=k(),p0=Br(),g0=zr(),m0=Nt()("winston:create-logger");function b0(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}El.exports=function(t={}){t.levels=t.levels||p0.npm.levels;class e extends g0{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(m0('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...i){let s=this||r;if(i.length===1){let[o]=i,a=o&&o.message&&o||{message:o};return a.level=a[d0]=n,s._addDefaultMeta(a),s.write(a),this||r}return i.length===0?(s.log(n,""),s):s.log(n,...i)},e.prototype[b0(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var xl=f((jb,Sl)=>{"use strict";var y0=Li();Sl.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,r){if(!this.loggers.has(e)){r=Object.assign({},r||this.options);let n=r.transports||this.options.transports;n?r.transports=Array.isArray(n)?n.slice():[n]:r.transports=[];let i=y0(r);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,r){return this.add(e,r)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((r,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var Ol=f(N=>{"use strict";var Ml=Mn(),{warn:Dt}=On();N.version=wo().version;N.transports=Zu();N.config=Br();N.addColors=Ml.levels;N.format=Ml.format;N.createLogger=Li();N.Logger=zr();N.ExceptionHandler=Ti();N.RejectionHandler=Ai();N.Container=xl();N.Transport=tt();N.loggers=new N.Container;var be=N.createLogger();Object.keys(N.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>N[t]=(...e)=>be[t](...e));Object.defineProperty(N,"level",{get(){return be.level},set(t){be.level=t}});Object.defineProperty(N,"exceptions",{get(){return be.exceptions}});Object.defineProperty(N,"rejections",{get(){return be.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(N,t,{get(){return be[t]},set(e){be[t]=e}})});Object.defineProperty(N,"default",{get(){return{exceptionHandlers:be.exceptionHandlers,rejectionHandlers:be.rejectionHandlers,transports:be.transports}}});Dt.deprecated(N,"setLevels");Dt.forFunctions(N,"useFormat",["cli"]);Dt.forProperties(N,"useFormat",["padLevels","stripColors"]);Dt.forFunctions(N,"deprecated",["addRewriter","addFilter","clone","extend"]);Dt.forProperties(N,"deprecated",["emitErrs","levelLength"])});var Nl=f((Ft,Al)=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.default=void 0;var w0={printWidth:100,tabWidth:2,semi:!0,singleQuote:!0,trailingComma:"es5",bracketSpacing:!0,bracketSameLine:!1,arrowParens:"avoid",plugins:["@trivago/prettier-plugin-sort-imports","prettier-plugin-sh","prettier-plugin-pkg","prettier-plugin-toml","prettier-plugin-nginx"],overrides:[{files:["*.toml.template"],options:{parser:"toml"}},{files:["*.nginxconf","nginx*.conf","nginx*.conf.template"],options:{parser:"nginx"}},{files:[".env",".env.*"],options:{parser:"sh"}}],importOrder:["(^react(.*)|^next(.*))$","<THIRD_PARTY_MODULES>","^[./]"],importOrderSeparation:!0,importOrderSortSpecifiers:!0,importOrderParserPlugins:["typescript","jsx","decorators-legacy"]},Bb=Ft.default=w0;Al.exports=Ft.default});var Bi=(t=0)=>e=>`\x1B[${e+t}m`,Hi=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Wi=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,j={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},q0=Object.keys(j.modifier),Wl=Object.keys(j.color),Gl=Object.keys(j.bgColor),A0=[...Wl,...Gl];function Ul(){let t=new Map;for(let[e,r]of Object.entries(j)){for(let[n,i]of Object.entries(r))j[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=j[n],t.set(i[0],i[1]);Object.defineProperty(j,e,{value:r,enumerable:!1})}return Object.defineProperty(j,"codes",{value:t,enumerable:!1}),j.color.close="\x1B[39m",j.bgColor.close="\x1B[49m",j.color.ansi=Bi(),j.color.ansi256=Hi(),j.color.ansi16m=Wi(),j.bgColor.ansi=Bi(10),j.bgColor.ansi256=Hi(10),j.bgColor.ansi16m=Wi(10),Object.defineProperties(j,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>j.rgbToAnsi256(...j.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>j.ansi256ToAnsi(j.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>j.ansi256ToAnsi(j.hexToAnsi256(e)),enumerable:!1}}),j}var Yl=Ul(),oe=Yl;var Gt=ct(require("node:process"),1),Ui=ct(require("node:os"),1),Zr=ct(require("node:tty"),1);function re(t,e=globalThis.Deno?globalThis.Deno.args:Gt.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:C}=Gt.default,Wt;re("no-color")||re("no-colors")||re("color=false")||re("color=never")?Wt=0:(re("color")||re("colors")||re("color=true")||re("color=always"))&&(Wt=1);function zl(){if("FORCE_COLOR"in C)return C.FORCE_COLOR==="true"?1:C.FORCE_COLOR==="false"?0:C.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(C.FORCE_COLOR,10),3)}function Vl(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Kl(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=zl();n!==void 0&&(Wt=n);let i=r?Wt:n;if(i===0)return 0;if(r){if(re("color=16m")||re("color=full")||re("color=truecolor"))return 3;if(re("color=256"))return 2}if("TF_BUILD"in C&&"AGENT_NAME"in C)return 1;if(t&&!e&&i===void 0)return 0;let s=i||0;if(C.TERM==="dumb")return s;if(Gt.default.platform==="win32"){let o=Ui.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in C)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in C)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in C)||C.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in C)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0;if(C.COLORTERM==="truecolor"||C.TERM==="xterm-kitty"||C.TERM==="xterm-ghostty"||C.TERM==="wezterm")return 3;if("TERM_PROGRAM"in C){let o=Number.parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(C.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)||"COLORTERM"in C?1:s}function Gi(t,e={}){let r=Kl(t,{streamIsTTY:t&&t.isTTY,...e});return Vl(r)}var Jl={stdout:Gi({isTTY:Zr.default.isatty(1)}),stderr:Gi({isTTY:Zr.default.isatty(2)})},Yi=Jl;function zi(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.slice(s,n)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.slice(s),o}function Vi(t,e,r,n){let i=0,s="";do{let o=t[n-1]==="\r";s+=t.slice(i,o?n-1:n)+e+(o?`\r
|
|
34
33
|
`:`
|
|
35
34
|
`)+r,i=n+1,n=t.indexOf(`
|
|
36
|
-
`,i)}while(n!==-1);return
|
|
37
|
-
`);return
|
|
35
|
+
`,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:Ki,stderr:Ji}=Yi,Qr=Symbol("GENERATOR"),Ge=Symbol("STYLER"),ft=Symbol("IS_EMPTY"),Zi=["ansi","ansi","ansi256","ansi16m"],Ue=Object.create(null),Zl=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Ki?Ki.level:0;t.level=e.level===void 0?r:e.level},Ut=class{constructor(e){return Qi(e)}},Qi=t=>{let e=(...r)=>r.join(" ");return Zl(e,t),Object.setPrototypeOf(e,ht.prototype),e};function ht(t){return Qi(t)}Object.setPrototypeOf(ht.prototype,Function.prototype);for(let[t,e]of Object.entries(oe))Ue[t]={get(){let r=Yt(this,en(e.open,e.close,this[Ge]),this[ft]);return Object.defineProperty(this,t,{value:r}),r}};Ue.visible={get(){let t=Yt(this,this[Ge],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Xr=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?oe[r].ansi16m(...n):e==="ansi256"?oe[r].ansi256(oe.rgbToAnsi256(...n)):oe[r].ansi(oe.rgbToAnsi(...n)):t==="hex"?Xr("rgb",e,r,...oe.hexToRgb(...n)):oe[r][t](...n),Ql=["rgb","hex","ansi256"];for(let t of Ql){Ue[t]={get(){let{level:r}=this;return function(...n){let i=en(Xr(t,Zi[r],"color",...n),oe.color.close,this[Ge]);return Yt(this,i,this[ft])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Ue[e]={get(){let{level:r}=this;return function(...n){let i=en(Xr(t,Zi[r],"bgColor",...n),oe.bgColor.close,this[Ge]);return Yt(this,i,this[ft])}}}}var Xl=Object.defineProperties(()=>{},{...Ue,level:{enumerable:!0,get(){return this[Qr].level},set(t){this[Qr].level=t}}}),en=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Yt=(t,e,r)=>{let n=(...i)=>ec(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Xl),n[Qr]=t,n[Ge]=e,n[ft]=r,n},ec=(t,e)=>{if(t.level<=0||!e)return t[ft]?"":e;let r=t[Ge];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=zi(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
36
|
+
`);return s!==-1&&(e=Vi(e,i,n,s)),n+e+i};Object.defineProperties(ht.prototype,Ue);var D0=ht(),F0=ht({level:Ji?Ji.level:0});var ce=ct(Ol(),1);var Rl=["error","warn","info","debug"],Kr={solidWhiteTerminal:"#ffffff",thunderbirdRedTerminal:"#d21313",funGreenTerminal:"#00801f",flushOrangeTerminal:"#ff8600"},Tl={error:Kr.thunderbirdRedTerminal,warn:Kr.flushOrangeTerminal,info:Kr.funGreenTerminal,debug:Kr.solidWhiteTerminal};var _0=2,v0=new Ut({level:_0}),ql="YYYY-MM-DD HH:mm:ss",ji=class{constructor(e){let r={},n={};for(let[u,l]of Rl.entries())n[l]={level:u,color:e?e[l]:Tl[l]},r[l]=u;let i=(u,l)=>v0.hex(n[u].color)(l),s=ce.default.format.combine(ce.default.format.errors({stack:!0}),ce.default.format.timestamp({format:ql}),ce.default.format.printf(u=>{var l;return i(u.level,`${u.timestamp} ${u.level}: ${u.message} ${(l=u.stack)!==null&&l!==void 0?l:""}`)})),o=ce.default.format.combine(ce.default.format.errors({stack:!0}),ce.default.format.timestamp({format:ql}),ce.default.format.printf(u=>{var l;return i(u.level,`${u.timestamp} ${u.level}: ${u.message} ${(l=u.stack)!==null&&l!==void 0?l:""}`)})),a=[new ce.default.transports.Console];this.instance=ce.default.createLogger({level:process.env.LOG_LEVEL||"info",levels:r,format:process.env.NODE_ENV==="production"?o:s,transports:a})}},at=new ji().instance;var E0=ct(Nl(),1);var S0=require("prettier");var x0={"":!0,true:!0,yes:!0,false:!1,no:!1};function Ci(t){let e={};for(let r of t){let n=r.replaceAll(/=[^=]*/g,"");if(!n.startsWith("--"))continue;let i=r.replaceAll(/^--[^=]*=?/g,""),s=x0[i];s===void 0?e[n]=i:e[n]=s}return e}var Ll=require("child_process");function O0(){at.info(`Usage:
|
|
38
37
|
./runShellScript.js [--help] <--script> [--arguments]
|
|
39
38
|
Where:
|
|
40
39
|
help - show usage information and exit
|
|
41
40
|
script - shell script to run
|
|
42
41
|
arguments - arguments to pass to the script
|
|
43
42
|
Description:
|
|
44
|
-
Runs a selected shell script from the package.`)}function
|
|
43
|
+
Runs a selected shell script from the package.`)}function R0(t){t["--help"]&&(O0(),process.exit(0));let e=t["--script"],r=t["--arguments"]??"";e||(at.error("No script was provided. Run with '--help' for more information."),process.exit(1)),(0,Ll.execSync)(`${__dirname}/../${e}/${e}.sh ${r}`,{stdio:"inherit"})}R0(Ci(process.argv));
|
|
45
44
|
/*! Bundled license information:
|
|
46
45
|
|
|
47
46
|
safe-buffer/index.js:
|