@mcp-com-ai/shared-utils 1.0.1-beta.260912

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/dist/logger.js ADDED
@@ -0,0 +1,50 @@
1
+ // @bun
2
+ var AY=Object.create;var{getPrototypeOf:IY,defineProperty:CQ,getOwnPropertyNames:MY}=Object;var PY=Object.prototype.hasOwnProperty;function _Y(X){return this[X]}var RY,CY,EQ=(X,Q,J)=>{var H=X!=null&&typeof X==="object";if(H){var K=Q?RY??=new WeakMap:CY??=new WeakMap,Y=K.get(X);if(Y)return Y}J=X!=null?AY(IY(X)):{};let B=Q||!X||!X.__esModule?CQ(J,"default",{value:X,enumerable:!0}):J;for(let U of MY(X))if(!PY.call(B,U))CQ(B,U,{get:_Y.bind(X,U),enumerable:!0});if(H)K.set(X,B);return B};var _=(X,Q)=>()=>(Q||X((Q={exports:{}}).exports,Q),Q.exports);var h=import.meta.require;var T0=_((hz,vQ)=>{class g6 extends Error{constructor(X){super(`Format functions must be synchronous taking a two arguments: (info, opts)
3
+ Found: ${X.toString().split(`
4
+ `)[0]}
5
+ `);Error.captureStackTrace(this,g6)}}vQ.exports=(X)=>{if(X.length>2)throw new g6(X);function Q(H={}){this.options=H}Q.prototype.transform=X;function J(H){return new Q(H)}return J.Format=Q,J}});var hQ=_((gz,bQ)=>{var kQ={};bQ.exports=kQ;var yQ={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(yQ).forEach(function(X){var Q=yQ[X],J=kQ[X]=[];J.open="\x1B["+Q[0]+"m",J.close="\x1B["+Q[1]+"m"})});var uQ=_((uz,gQ)=>{gQ.exports=function(X,Q){Q=Q||process.argv||[];var J=Q.indexOf("--"),H=/^-{1,2}/.test(X)?"":"--",K=Q.indexOf(H+X);return K!==-1&&(J===-1?!0:K<J)}});var dQ=_((fz,fQ)=>{var bY=h("os"),u0=uQ(),E0=process.env,G1=void 0;if(u0("no-color")||u0("no-colors")||u0("color=false"))G1=!1;else if(u0("color")||u0("colors")||u0("color=true")||u0("color=always"))G1=!0;if("FORCE_COLOR"in E0)G1=E0.FORCE_COLOR.length===0||parseInt(E0.FORCE_COLOR,10)!==0;function hY(X){if(X===0)return!1;return{level:X,hasBasic:!0,has256:X>=2,has16m:X>=3}}function gY(X){if(G1===!1)return 0;if(u0("color=16m")||u0("color=full")||u0("color=truecolor"))return 3;if(u0("color=256"))return 2;if(X&&!X.isTTY&&G1!==!0)return 0;var Q=G1?1:0;if(process.platform==="win32"){var J=bY.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(J[0])>=10&&Number(J[2])>=10586)return Number(J[2])>=14931?3:2;return 1}if("CI"in E0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(K){return K in E0})||E0.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in E0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(E0.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in E0){var H=parseInt((E0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(E0.TERM_PROGRAM){case"iTerm.app":return H>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(E0.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(E0.TERM))return 1;if("COLORTERM"in E0)return 1;if(E0.TERM==="dumb")return Q;return Q}function u6(X){var Q=gY(X);return hY(Q)}fQ.exports={supportsColor:u6,stdout:u6(process.stdout),stderr:u6(process.stderr)}});var pQ=_((dz,mQ)=>{mQ.exports=function(Q,J){var H="";Q=Q||"Run the trap, drop the bass",Q=Q.split("");var K={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 Q.forEach(function(Y){Y=Y.toLowerCase();var B=K[Y]||[" "],U=Math.floor(Math.random()*B.length);if(typeof K[Y]<"u")H+=K[Y][U];else H+=Y}),H}});var lQ=_((mz,cQ)=>{cQ.exports=function(Q,J){Q=Q||" he is here ";var H={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"]},K=[].concat(H.up,H.down,H.mid);function Y(N){var z=Math.floor(Math.random()*N);return z}function B(N){var z=!1;return K.filter(function(R){z=R===N}),z}function U(N,z){var R="",M,P;z=z||{},z.up=typeof z.up<"u"?z.up:!0,z.mid=typeof z.mid<"u"?z.mid:!0,z.down=typeof z.down<"u"?z.down:!0,z.size=typeof z.size<"u"?z.size:"maxi",N=N.split("");for(P in N){if(B(P))continue;switch(R=R+N[P],M={up:0,down:0,mid:0},z.size){case"mini":M.up=Y(8),M.mid=Y(2),M.down=Y(8);break;case"maxi":M.up=Y(16)+3,M.mid=Y(4)+1,M.down=Y(64)+3;break;default:M.up=Y(8)+1,M.mid=Y(6)/2,M.down=Y(8)+1;break}var L=["up","mid","down"];for(var A in L){var D=L[A];for(var v=0;v<=M[D];v++)if(z[D])R=R+H[D][Y(H[D].length)]}}return R}return U(Q,J)}});var iQ=_((pz,nQ)=>{nQ.exports=function(X){return function(Q,J,H){if(Q===" ")return Q;switch(J%3){case 0:return X.red(Q);case 1:return X.white(Q);case 2:return X.blue(Q)}}}});var rQ=_((cz,sQ)=>{sQ.exports=function(X){return function(Q,J,H){return J%2===0?Q:X.inverse(Q)}}});var oQ=_((lz,aQ)=>{aQ.exports=function(X){var Q=["red","yellow","green","blue","magenta"];return function(J,H,K){if(J===" ")return J;else return X[Q[H++%Q.length]](J)}}});var eQ=_((nz,tQ)=>{tQ.exports=function(X){var Q=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(J,H,K){return J===" "?J:X[Q[Math.round(Math.random()*(Q.length-2))]](J)}}});var H7=_((sz,Z7)=>{var l={};Z7.exports=l;l.themes={};var uY=h("util"),S8=l.styles=hQ(),X7=Object.defineProperties,fY=new RegExp(/[\r\n]+/g);l.supportsColor=dQ().supportsColor;if(typeof l.enabled>"u")l.enabled=l.supportsColor()!==!1;l.enable=function(){l.enabled=!0};l.disable=function(){l.enabled=!1};l.stripColors=l.strip=function(X){return(""+X).replace(/\x1B\[\d+m/g,"")};var iz=l.stylize=function(Q,J){if(!l.enabled)return Q+"";var H=S8[J];if(!H&&J in l)return l[J](Q);return H.open+Q+H.close},dY=/[|\\{}()[\]^$+*?.]/g,mY=function(X){if(typeof X!=="string")throw TypeError("Expected a string");return X.replace(dY,"\\$&")};function Q7(X){var Q=function J(){return cY.apply(J,arguments)};return Q._styles=X,Q.__proto__=pY,Q}var J7=function(){var X={};return S8.grey=S8.gray,Object.keys(S8).forEach(function(Q){S8[Q].closeRe=new RegExp(mY(S8[Q].close),"g"),X[Q]={get:function(){return Q7(this._styles.concat(Q))}}}),X}(),pY=X7(function(){},J7);function cY(){var X=Array.prototype.slice.call(arguments),Q=X.map(function(B){if(B!=null&&B.constructor===String)return B;else return uY.inspect(B)}).join(" ");if(!l.enabled||!Q)return Q;var J=Q.indexOf(`
6
+ `)!=-1,H=this._styles,K=H.length;while(K--){var Y=S8[H[K]];if(Q=Y.open+Q.replace(Y.closeRe,Y.open)+Y.close,J)Q=Q.replace(fY,function(B){return Y.close+B+Y.open})}return Q}l.setTheme=function(X){if(typeof X==="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 Q in X)(function(J){l[J]=function(H){if(typeof X[J]==="object"){var K=H;for(var Y in X[J])K=l[X[J][Y]](K);return K}return l[X[J]](H)}})(Q)};function lY(){var X={};return Object.keys(J7).forEach(function(Q){X[Q]={get:function(){return Q7([Q])}}}),X}var nY=function(Q,J){var H=J.split("");return H=H.map(Q),H.join("")};l.trap=pQ();l.zalgo=lQ();l.maps={};l.maps.america=iQ()(l);l.maps.zebra=rQ()(l);l.maps.rainbow=oQ()(l);l.maps.random=eQ()(l);for(f6 in l.maps)(function(X){l[X]=function(Q){return nY(l.maps[X],Q)}})(f6);var f6;X7(l,lY())});var d6=_((rz,G7)=>{var iY=H7();G7.exports=iY});var K7=_((sY)=>{sY.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};sY.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var q7=_((oY)=>{oY.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};oY.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var Y7=_((XV)=>{XV.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};XV.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var V7=_((v4)=>{Object.defineProperty(v4,"cli",{value:K7()});Object.defineProperty(v4,"npm",{value:q7()});Object.defineProperty(v4,"syslog",{value:Y7()})});var K0=_((b1)=>{Object.defineProperty(b1,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(b1,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(b1,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(b1,"configs",{value:V7()})});var k4=_((QA,y4)=>{var c6=d6(),{LEVEL:m6,MESSAGE:p6}=K0();c6.enabled=!0;var B7=/\s+/;class f0{constructor(X={}){if(X.colors)this.addColors(X.colors);this.options=X}static addColors(X){let Q=Object.keys(X).reduce((J,H)=>{return J[H]=B7.test(X[H])?X[H].split(B7):X[H],J},{});return f0.allColors=Object.assign({},f0.allColors||{},Q),f0.allColors}addColors(X){return f0.addColors(X)}colorize(X,Q,J){if(typeof J>"u")J=Q;if(!Array.isArray(f0.allColors[X]))return c6[f0.allColors[X]](J);for(let H=0,K=f0.allColors[X].length;H<K;H++)J=c6[f0.allColors[X][H]](J);return J}transform(X,Q){if(Q.all&&typeof X[p6]==="string")X[p6]=this.colorize(X[m6],X.level,X[p6]);if(Q.level||Q.all||!Q.message)X.level=this.colorize(X[m6],X.level);if(Q.all||Q.message)X.message=this.colorize(X[m6],X.level,X.message);return X}}y4.exports=(X)=>new f0(X);y4.exports.Colorizer=y4.exports.Format=f0});var W7=_((JA,U7)=>{var{Colorizer:ZV}=k4();U7.exports=(X)=>{return ZV.addColors(X.colors||X),X}});var $7=_((ZA,N7)=>{var HV=T0();N7.exports=HV((X)=>{return X.message=` ${X.message}`,X})});var I7=_((HA,A7)=>{var GV=T0(),{LEVEL:z7,MESSAGE:l6}=K0();A7.exports=GV((X,{stack:Q,cause:J})=>{if(X instanceof Error){let K=Object.assign({},X,{level:X.level,[z7]:X[z7]||X.level,message:X.message,[l6]:X[l6]||X.message});if(Q)K.stack=X.stack;if(J)K.cause=X.cause;return K}if(!(X.message instanceof Error))return X;let H=X.message;if(Object.assign(X,H),X.message=H.message,X[l6]=H.message,Q)X.stack=H.stack;if(J)X.cause=H.cause;return X})});var i6=_((GA,b4)=>{var{configs:KV,LEVEL:M7,MESSAGE:n6}=K0();class K1{constructor(X={levels:KV.npm.levels}){this.paddings=K1.paddingForLevels(X.levels,X.filler),this.options=X}static getLongestLevel(X){let Q=Object.keys(X).map((J)=>J.length);return Math.max(...Q)}static paddingForLevel(X,Q,J){let H=J+1-X.length,K=Math.floor(H/Q.length);return`${Q}${Q.repeat(K)}`.slice(0,H)}static paddingForLevels(X,Q=" "){let J=K1.getLongestLevel(X);return Object.keys(X).reduce((H,K)=>{return H[K]=K1.paddingForLevel(K,Q,J),H},{})}transform(X,Q){if(X.message=`${this.paddings[X[M7]]}${X.message}`,X[n6])X[n6]=`${this.paddings[X[M7]]}${X[n6]}`;return X}}b4.exports=(X)=>new K1(X);b4.exports.Padder=b4.exports.Format=K1});var P7=_((KA,r6)=>{var{Colorizer:qV}=k4(),{Padder:YV}=i6(),{configs:VV,MESSAGE:BV}=K0();class s6{constructor(X={}){if(!X.levels)X.levels=VV.cli.levels;this.colorizer=new qV(X),this.padder=new YV(X),this.options=X}transform(X,Q){return this.colorizer.transform(this.padder.transform(X,Q),Q),X[BV]=`${X.level}:${X.message}`,X}}r6.exports=(X)=>new s6(X);r6.exports.Format=s6});var R7=_((qA,a6)=>{var UV=T0();function _7(X){if(!X.every(WV))return;return(Q)=>{let J=Q;for(let H=0;H<X.length;H++)if(J=X[H].transform(J,X[H].options),!J)return!1;return J}}function WV(X){if(typeof X.transform!=="function")throw Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
7
+ `));return!0}a6.exports=(...X)=>{let Q=UV(_7(X)),J=Q();return J.Format=Q.Format,J};a6.exports.cascade=_7});var g1=_((YA,D7)=>{var{hasOwnProperty:h1}=Object.prototype,x8=e6();x8.configure=e6;x8.stringify=x8;x8.default=x8;YA.stringify=x8;YA.configure=e6;D7.exports=x8;var NV=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function A8(X){if(X.length<5000&&!NV.test(X))return`"${X}"`;return JSON.stringify(X)}function o6(X,Q){if(X.length>200||Q)return X.sort(Q);for(let J=1;J<X.length;J++){let H=X[J],K=J;while(K!==0&&X[K-1]>H)X[K]=X[K-1],K--;X[K]=H}return X}var $V=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function t6(X){return $V.call(X)!==void 0&&X.length!==0}function C7(X,Q,J){if(X.length<J)J=X.length;let H=Q===","?"":" ",K=`"0":${H}${X[0]}`;for(let Y=1;Y<J;Y++)K+=`${Q}"${Y}":${H}${X[Y]}`;return K}function zV(X){if(h1.call(X,"circularValue")){let Q=X.circularValue;if(typeof Q==="string")return`"${Q}"`;if(Q==null)return Q;if(Q===Error||Q===TypeError)return{toString(){throw TypeError("Converting circular structure to JSON")}};throw TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function AV(X){let Q;if(h1.call(X,"deterministic")){if(Q=X.deterministic,typeof Q!=="boolean"&&typeof Q!=="function")throw TypeError('The "deterministic" argument must be of type boolean or comparator function')}return Q===void 0?!0:Q}function IV(X,Q){let J;if(h1.call(X,Q)){if(J=X[Q],typeof J!=="boolean")throw TypeError(`The "${Q}" argument must be of type boolean`)}return J===void 0?!0:J}function E7(X,Q){let J;if(h1.call(X,Q)){if(J=X[Q],typeof J!=="number")throw TypeError(`The "${Q}" argument must be of type number`);if(!Number.isInteger(J))throw TypeError(`The "${Q}" argument must be an integer`);if(J<1)throw RangeError(`The "${Q}" argument must be >= 1`)}return J===void 0?1/0:J}function w8(X){if(X===1)return"1 item";return`${X} items`}function MV(X){let Q=new Set;for(let J of X)if(typeof J==="string"||typeof J==="number")Q.add(String(J));return Q}function PV(X){if(h1.call(X,"strict")){let Q=X.strict;if(typeof Q!=="boolean")throw TypeError('The "strict" argument must be of type boolean');if(Q)return(J)=>{let H=`Object can not safely be stringified. Received type ${typeof J}`;if(typeof J!=="function")H+=` (${J.toString()})`;throw Error(H)}}}function e6(X){X={...X};let Q=PV(X);if(Q){if(X.bigint===void 0)X.bigint=!1;if(!("circularValue"in X))X.circularValue=Error}let J=zV(X),H=IV(X,"bigint"),K=AV(X),Y=typeof K==="function"?K:void 0,B=E7(X,"maximumDepth"),U=E7(X,"maximumBreadth");function N(L,A,D,v,y,d){let O=A[L];if(typeof O==="object"&&O!==null&&typeof O.toJSON==="function")O=O.toJSON(L);switch(O=v.call(A,L,O),typeof O){case"string":return A8(O);case"object":{if(O===null)return"null";if(D.indexOf(O)!==-1)return J;let w="",i=",",b=d;if(Array.isArray(O)){if(O.length===0)return"[]";if(B<D.length+1)return'"[Array]"';if(D.push(O),y!=="")d+=y,w+=`
8
+ ${d}`,i=`,
9
+ ${d}`;let V0=Math.min(O.length,U),I0=0;for(;I0<V0-1;I0++){let p0=N(String(I0),O,D,v,y,d);w+=p0!==void 0?p0:"null",w+=i}let M0=N(String(I0),O,D,v,y,d);if(w+=M0!==void 0?M0:"null",O.length-1>U){let p0=O.length-U-1;w+=`${i}"... ${w8(p0)} not stringified"`}if(y!=="")w+=`
10
+ ${b}`;return D.pop(),`[${w}]`}let m=Object.keys(O),f=m.length;if(f===0)return"{}";if(B<D.length+1)return'"[Object]"';let g="",q0="";if(y!=="")d+=y,i=`,
11
+ ${d}`,g=" ";let e=Math.min(f,U);if(K&&!t6(O))m=o6(m,Y);D.push(O);for(let V0=0;V0<e;V0++){let I0=m[V0],M0=N(I0,O,D,v,y,d);if(M0!==void 0)w+=`${q0}${A8(I0)}:${g}${M0}`,q0=i}if(f>U){let V0=f-U;w+=`${q0}"...":${g}"${w8(V0)} not stringified"`,q0=i}if(y!==""&&q0.length>1)w=`
12
+ ${d}${w}
13
+ ${b}`;return D.pop(),`{${w}}`}case"number":return isFinite(O)?String(O):Q?Q(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(H)return String(O);default:return Q?Q(O):void 0}}function z(L,A,D,v,y,d){if(typeof A==="object"&&A!==null&&typeof A.toJSON==="function")A=A.toJSON(L);switch(typeof A){case"string":return A8(A);case"object":{if(A===null)return"null";if(D.indexOf(A)!==-1)return J;let O=d,w="",i=",";if(Array.isArray(A)){if(A.length===0)return"[]";if(B<D.length+1)return'"[Array]"';if(D.push(A),y!=="")d+=y,w+=`
14
+ ${d}`,i=`,
15
+ ${d}`;let f=Math.min(A.length,U),g=0;for(;g<f-1;g++){let e=z(String(g),A[g],D,v,y,d);w+=e!==void 0?e:"null",w+=i}let q0=z(String(g),A[g],D,v,y,d);if(w+=q0!==void 0?q0:"null",A.length-1>U){let e=A.length-U-1;w+=`${i}"... ${w8(e)} not stringified"`}if(y!=="")w+=`
16
+ ${O}`;return D.pop(),`[${w}]`}D.push(A);let b="";if(y!=="")d+=y,i=`,
17
+ ${d}`,b=" ";let m="";for(let f of v){let g=z(f,A[f],D,v,y,d);if(g!==void 0)w+=`${m}${A8(f)}:${b}${g}`,m=i}if(y!==""&&m.length>1)w=`
18
+ ${d}${w}
19
+ ${O}`;return D.pop(),`{${w}}`}case"number":return isFinite(A)?String(A):Q?Q(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(H)return String(A);default:return Q?Q(A):void 0}}function R(L,A,D,v,y){switch(typeof A){case"string":return A8(A);case"object":{if(A===null)return"null";if(typeof A.toJSON==="function"){if(A=A.toJSON(L),typeof A!=="object")return R(L,A,D,v,y);if(A===null)return"null"}if(D.indexOf(A)!==-1)return J;let d=y;if(Array.isArray(A)){if(A.length===0)return"[]";if(B<D.length+1)return'"[Array]"';D.push(A),y+=v;let g=`
20
+ ${y}`,q0=`,
21
+ ${y}`,e=Math.min(A.length,U),V0=0;for(;V0<e-1;V0++){let M0=R(String(V0),A[V0],D,v,y);g+=M0!==void 0?M0:"null",g+=q0}let I0=R(String(V0),A[V0],D,v,y);if(g+=I0!==void 0?I0:"null",A.length-1>U){let M0=A.length-U-1;g+=`${q0}"... ${w8(M0)} not stringified"`}return g+=`
22
+ ${d}`,D.pop(),`[${g}]`}let O=Object.keys(A),w=O.length;if(w===0)return"{}";if(B<D.length+1)return'"[Object]"';y+=v;let i=`,
23
+ ${y}`,b="",m="",f=Math.min(w,U);if(t6(A))b+=C7(A,i,U),O=O.slice(A.length),f-=A.length,m=i;if(K)O=o6(O,Y);D.push(A);for(let g=0;g<f;g++){let q0=O[g],e=R(q0,A[q0],D,v,y);if(e!==void 0)b+=`${m}${A8(q0)}: ${e}`,m=i}if(w>U){let g=w-U;b+=`${m}"...": "${w8(g)} not stringified"`,m=i}if(m!=="")b=`
24
+ ${y}${b}
25
+ ${d}`;return D.pop(),`{${b}}`}case"number":return isFinite(A)?String(A):Q?Q(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(H)return String(A);default:return Q?Q(A):void 0}}function M(L,A,D){switch(typeof A){case"string":return A8(A);case"object":{if(A===null)return"null";if(typeof A.toJSON==="function"){if(A=A.toJSON(L),typeof A!=="object")return M(L,A,D);if(A===null)return"null"}if(D.indexOf(A)!==-1)return J;let v="",y=A.length!==void 0;if(y&&Array.isArray(A)){if(A.length===0)return"[]";if(B<D.length+1)return'"[Array]"';D.push(A);let b=Math.min(A.length,U),m=0;for(;m<b-1;m++){let g=M(String(m),A[m],D);v+=g!==void 0?g:"null",v+=","}let f=M(String(m),A[m],D);if(v+=f!==void 0?f:"null",A.length-1>U){let g=A.length-U-1;v+=`,"... ${w8(g)} not stringified"`}return D.pop(),`[${v}]`}let d=Object.keys(A),O=d.length;if(O===0)return"{}";if(B<D.length+1)return'"[Object]"';let w="",i=Math.min(O,U);if(y&&t6(A))v+=C7(A,",",U),d=d.slice(A.length),i-=A.length,w=",";if(K)d=o6(d,Y);D.push(A);for(let b=0;b<i;b++){let m=d[b],f=M(m,A[m],D);if(f!==void 0)v+=`${w}${A8(m)}:${f}`,w=","}if(O>U){let b=O-U;v+=`${w}"...":"${w8(b)} not stringified"`}return D.pop(),`{${v}}`}case"number":return isFinite(A)?String(A):Q?Q(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(H)return String(A);default:return Q?Q(A):void 0}}function P(L,A,D){if(arguments.length>1){let v="";if(typeof D==="number")v=" ".repeat(Math.min(D,10));else if(typeof D==="string")v=D.slice(0,10);if(A!=null){if(typeof A==="function")return N("",{"":L},[],A,v,"");if(Array.isArray(A))return z("",L,[],MV(A),v,"")}if(v.length!==0)return R("",L,[],v,"")}return M("",L,[])}return P}});var X5=_((VA,L7)=>{var CV=T0(),{MESSAGE:EV}=K0(),DV=g1();function LV(X,Q){if(typeof Q==="bigint")return Q.toString();return Q}L7.exports=CV((X,Q)=>{let J=DV.configure(Q);return X[EV]=J(X,Q.replacer||LV,Q.space),X})});var T7=_((BA,O7)=>{var OV=T0();O7.exports=OV((X,Q)=>{if(Q.message)return X.message=`[${Q.label}] ${X.message}`,X;return X.label=Q.label,X})});var j7=_((UA,F7)=>{var TV=T0(),{MESSAGE:FV}=K0(),jV=g1();F7.exports=TV((X)=>{let Q={};if(X.message)Q["@message"]=X.message,delete X.message;if(X.timestamp)Q["@timestamp"]=X.timestamp,delete X.timestamp;return Q["@fields"]=X,X[FV]=jV(Q),X})});var w7=_((WA,S7)=>{var SV=T0();function wV(X,Q,J){let H=Q.reduce((Y,B)=>{return Y[B]=X[B],delete X[B],Y},{}),K=Object.keys(X).reduce((Y,B)=>{return Y[B]=X[B],delete X[B],Y},{});return Object.assign(X,H,{[J]:K}),X}function xV(X,Q,J){return X[J]=Q.reduce((H,K)=>{return H[K]=X[K],delete X[K],H},{}),X}S7.exports=SV((X,Q={})=>{let J="metadata";if(Q.key)J=Q.key;let H=[];if(!Q.fillExcept&&!Q.fillWith)H.push("level"),H.push("message");if(Q.fillExcept)H=Q.fillExcept;if(H.length>0)return wV(X,H,J);if(Q.fillWith)return xV(X,Q.fillWith,J);return X})});var v7=_((NA,x7)=>{var q1=1000,Y1=q1*60,V1=Y1*60,v8=V1*24,vV=v8*7,yV=v8*365.25;x7.exports=function(X,Q){Q=Q||{};var J=typeof X;if(J==="string"&&X.length>0)return kV(X);else if(J==="number"&&isFinite(X))return Q.long?hV(X):bV(X);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(X))};function kV(X){if(X=String(X),X.length>100)return;var Q=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(X);if(!Q)return;var J=parseFloat(Q[1]),H=(Q[2]||"ms").toLowerCase();switch(H){case"years":case"year":case"yrs":case"yr":case"y":return J*yV;case"weeks":case"week":case"w":return J*vV;case"days":case"day":case"d":return J*v8;case"hours":case"hour":case"hrs":case"hr":case"h":return J*V1;case"minutes":case"minute":case"mins":case"min":case"m":return J*Y1;case"seconds":case"second":case"secs":case"sec":case"s":return J*q1;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return J;default:return}}function bV(X){var Q=Math.abs(X);if(Q>=v8)return Math.round(X/v8)+"d";if(Q>=V1)return Math.round(X/V1)+"h";if(Q>=Y1)return Math.round(X/Y1)+"m";if(Q>=q1)return Math.round(X/q1)+"s";return X+"ms"}function hV(X){var Q=Math.abs(X);if(Q>=v8)return h4(X,Q,v8,"day");if(Q>=V1)return h4(X,Q,V1,"hour");if(Q>=Y1)return h4(X,Q,Y1,"minute");if(Q>=q1)return h4(X,Q,q1,"second");return X+" ms"}function h4(X,Q,J,H){var K=Q>=J*1.5;return Math.round(X/J)+" "+H+(K?"s":"")}});var k7=_((u1,y7)=>{var gV=T0(),uV=v7();y7.exports=gV((X)=>{let Q=+new Date;return u1.diff=Q-(u1.prevTime||Q),u1.prevTime=Q,X.ms=`+${uV(u1.diff)}`,X})});var g7=_(($A,h7)=>{var fV=h("util").inspect,dV=T0(),{LEVEL:mV,MESSAGE:b7,SPLAT:pV}=K0();h7.exports=dV((X,Q={})=>{let J=Object.assign({},X);return delete J[mV],delete J[b7],delete J[pV],X[b7]=fV(J,!1,Q.depth||null,Q.colorize),X})});var u7=_((zA,g4)=>{var{MESSAGE:cV}=K0();class Q5{constructor(X){this.template=X}transform(X){return X[cV]=this.template(X),X}}g4.exports=(X)=>new Q5(X);g4.exports.Printf=g4.exports.Format=Q5});var m7=_((AA,d7)=>{var lV=T0(),{MESSAGE:f7}=K0(),nV=g1();d7.exports=lV((X)=>{let Q=nV(Object.assign({},X,{level:void 0,message:void 0,splat:void 0})),J=X.padding&&X.padding[X.level]||"";if(Q!=="{}")X[f7]=`${X.level}:${J} ${X.message} ${Q}`;else X[f7]=`${X.level}:${J} ${X.message}`;return X})});var n7=_((IA,l7)=>{var iV=h("util"),{SPLAT:p7}=K0(),sV=/%[scdjifoO%]/g,rV=/%%/g;class c7{constructor(X){this.options=X}_splat(X,Q){let J=X.message,H=X[p7]||X.splat||[],K=J.match(rV),Y=K&&K.length||0,U=Q.length-Y-H.length,N=U<0?H.splice(U,-1*U):[],z=N.length;if(z)for(let R=0;R<z;R++)Object.assign(X,N[R]);return X.message=iV.format(J,...H),X}transform(X){let Q=X.message,J=X[p7]||X.splat;if(!J||!J.length)return X;let H=Q&&Q.match&&Q.match(sV);if(!H&&(J||J.length)){let K=J.length>1?J.splice(0):J,Y=K.length;if(Y)for(let B=0;B<Y;B++)Object.assign(X,K[B]);return X}if(H)return this._splat(X,H);return X}}l7.exports=(X)=>new c7(X)});var s7=_((u4,i7)=>{(function(X,Q){typeof u4==="object"&&typeof i7<"u"?Q(u4):typeof define==="function"&&define.amd?define(["exports"],Q):Q(X.fecha={})})(u4,function(X){var Q=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,J="\\d\\d?",H="\\d\\d",K="\\d{3}",Y="\\d{4}",B="[^\\s]+",U=/\[([^]*?)\]/gm;function N(C,S){var c=[];for(var $0=0,k=C.length;$0<k;$0++)c.push(C[$0].substr(0,S));return c}var z=function(C){return function(S,c){var $0=c[C].map(function(D0){return D0.toLowerCase()}),k=$0.indexOf(S.toLowerCase());if(k>-1)return k;return null}};function R(C){var S=[];for(var c=1;c<arguments.length;c++)S[c-1]=arguments[c];for(var $0=0,k=S;$0<k.length;$0++){var D0=k[$0];for(var L0 in D0)C[L0]=D0[L0]}return C}var M=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],P=["January","February","March","April","May","June","July","August","September","October","November","December"],L=N(P,3),A=N(M,3),D={dayNamesShort:A,dayNames:M,monthNamesShort:L,monthNames:P,amPm:["am","pm"],DoFn:function(C){return C+["th","st","nd","rd"][C%10>3?0:(C-C%10!==10?1:0)*C%10]}},v=R({},D),y=function(C){return v=R(v,C)},d=function(C){return C.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},O=function(C,S){if(S===void 0)S=2;C=String(C);while(C.length<S)C="0"+C;return C},w={D:function(C){return String(C.getDate())},DD:function(C){return O(C.getDate())},Do:function(C,S){return S.DoFn(C.getDate())},d:function(C){return String(C.getDay())},dd:function(C){return O(C.getDay())},ddd:function(C,S){return S.dayNamesShort[C.getDay()]},dddd:function(C,S){return S.dayNames[C.getDay()]},M:function(C){return String(C.getMonth()+1)},MM:function(C){return O(C.getMonth()+1)},MMM:function(C,S){return S.monthNamesShort[C.getMonth()]},MMMM:function(C,S){return S.monthNames[C.getMonth()]},YY:function(C){return O(String(C.getFullYear()),4).substr(2)},YYYY:function(C){return O(C.getFullYear(),4)},h:function(C){return String(C.getHours()%12||12)},hh:function(C){return O(C.getHours()%12||12)},H:function(C){return String(C.getHours())},HH:function(C){return O(C.getHours())},m:function(C){return String(C.getMinutes())},mm:function(C){return O(C.getMinutes())},s:function(C){return String(C.getSeconds())},ss:function(C){return O(C.getSeconds())},S:function(C){return String(Math.round(C.getMilliseconds()/100))},SS:function(C){return O(Math.round(C.getMilliseconds()/10),2)},SSS:function(C){return O(C.getMilliseconds(),3)},a:function(C,S){return C.getHours()<12?S.amPm[0]:S.amPm[1]},A:function(C,S){return C.getHours()<12?S.amPm[0].toUpperCase():S.amPm[1].toUpperCase()},ZZ:function(C){var S=C.getTimezoneOffset();return(S>0?"-":"+")+O(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4)},Z:function(C){var S=C.getTimezoneOffset();return(S>0?"-":"+")+O(Math.floor(Math.abs(S)/60),2)+":"+O(Math.abs(S)%60,2)}},i=function(C){return+C-1},b=[null,J],m=[null,B],f=["isPm",B,function(C,S){var c=C.toLowerCase();if(c===S.amPm[0])return 0;else if(c===S.amPm[1])return 1;return null}],g=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(C){var S=(C+"").match(/([+-]|\d\d)/gi);if(S){var c=+S[1]*60+parseInt(S[2],10);return S[0]==="+"?c:-c}return 0}],q0={D:["day",J],DD:["day",H],Do:["day",J+B,function(C){return parseInt(C,10)}],M:["month",J,i],MM:["month",H,i],YY:["year",H,function(C){var S=new Date,c=+(""+S.getFullYear()).substr(0,2);return+(""+(+C>68?c-1:c)+C)}],h:["hour",J,void 0,"isPm"],hh:["hour",H,void 0,"isPm"],H:["hour",J],HH:["hour",H],m:["minute",J],mm:["minute",H],s:["second",J],ss:["second",H],YYYY:["year",Y],S:["millisecond","\\d",function(C){return+C*100}],SS:["millisecond",H,function(C){return+C*10}],SSS:["millisecond",K],d:b,dd:b,ddd:m,dddd:m,MMM:["month",B,z("monthNamesShort")],MMMM:["month",B,z("monthNames")],a:f,A:f,ZZ:g,Z:g},e={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"},V0=function(C){return R(e,C)},I0=function(C,S,c){if(S===void 0)S=e.default;if(c===void 0)c={};if(typeof C==="number")C=new Date(C);if(Object.prototype.toString.call(C)!=="[object Date]"||isNaN(C.getTime()))throw Error("Invalid Date pass to format");S=e[S]||S;var $0=[];S=S.replace(U,function(D0,L0){return $0.push(L0),"@@@"});var k=R(R({},v),c);return S=S.replace(Q,function(D0){return w[D0](C,k)}),S.replace(/@@@/g,function(){return $0.shift()})};function M0(C,S,c){if(c===void 0)c={};if(typeof S!=="string")throw Error("Invalid format in fecha parse");if(S=e[S]||S,C.length>1000)return null;var $0=new Date,k={year:$0.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},D0=[],L0=[],x=S.replace(U,function(D8,W8){return L0.push(d(W8)),"@@@"}),l8={},B4={};x=d(x).replace(Q,function(D8){var W8=q0[D8],s8=W8[0],O0=W8[1],r8=W8[3];if(l8[s8])throw Error("Invalid format. "+s8+" specified twice in format");if(l8[s8]=!0,r8)B4[r8]=!0;return D0.push(W8),"("+O0+")"}),Object.keys(B4).forEach(function(D8){if(!l8[D8])throw Error("Invalid format. "+D8+" is required in specified format")}),x=x.replace(/@@@/g,function(){return L0.shift()});var e0=C.match(new RegExp(x,"i"));if(!e0)return null;var U4=R(R({},v),c);for(var j0=1;j0<e0.length;j0++){var W4=D0[j0-1],U6=W4[0],N4=W4[2],$4=N4?N4(e0[j0],U4):+e0[j0];if($4==null)return null;k[U6]=$4}if(k.isPm===1&&k.hour!=null&&+k.hour!==12)k.hour=+k.hour+12;else if(k.isPm===0&&+k.hour===12)k.hour=0;var n8;if(k.timezoneOffset==null){n8=new Date(k.year,k.month,k.day,k.hour,k.minute,k.second,k.millisecond);var i8=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]];for(var j0=0,W6=i8.length;j0<W6;j0++)if(l8[i8[j0][0]]&&k[i8[j0][0]]!==n8[i8[j0][1]]())return null}else if(n8=new Date(Date.UTC(k.year,k.month,k.day,k.hour,k.minute-k.timezoneOffset,k.second,k.millisecond)),k.month>11||k.month<0||k.day>31||k.day<1||k.hour>23||k.hour<0||k.minute>59||k.minute<0||k.second>59||k.second<0)return null;return n8}var p0={format:I0,parse:M0,defaultI18n:D,setGlobalDateI18n:y,setGlobalDateMasks:V0};X.assign=R,X.default=p0,X.format=I0,X.parse=M0,X.defaultI18n=D,X.setGlobalDateI18n=y,X.setGlobalDateMasks=V0,Object.defineProperty(X,"__esModule",{value:!0})})});var a7=_((MA,r7)=>{var aV=s7(),oV=T0();r7.exports=oV((X,Q={})=>{if(Q.format)X.timestamp=typeof Q.format==="function"?Q.format():aV.format(new Date,Q.format);if(!X.timestamp)X.timestamp=new Date().toISOString();if(Q.alias)X[Q.alias]=X.timestamp;return X})});var t7=_((PA,o7)=>{var J5=d6(),tV=T0(),{MESSAGE:Z5}=K0();o7.exports=tV((X,Q)=>{if(Q.level!==!1)X.level=J5.strip(X.level);if(Q.message!==!1)X.message=J5.strip(String(X.message));if(Q.raw!==!1&&X[Z5])X[Z5]=J5.strip(String(X[Z5]));return X})});var H5=_((XB)=>{var eV=XB.format=T0();XB.levels=W7();function P0(X,Q){Object.defineProperty(eV,X,{get(){return Q()},configurable:!0})}P0("align",function(){return $7()});P0("errors",function(){return I7()});P0("cli",function(){return P7()});P0("combine",function(){return R7()});P0("colorize",function(){return k4()});P0("json",function(){return X5()});P0("label",function(){return T7()});P0("logstash",function(){return j7()});P0("metadata",function(){return w7()});P0("ms",function(){return k7()});P0("padLevels",function(){return i6()});P0("prettyPrint",function(){return g7()});P0("printf",function(){return u7()});P0("simple",function(){return m7()});P0("splat",function(){return n7()});P0("timestamp",function(){return a7()});P0("uncolorize",function(){return t7()})});var K5=_((JB)=>{var{format:e7}=h("util");JB.warn={deprecated(X){return()=>{throw Error(e7("{ %s } was removed in winston@3.0.0.",X))}},useFormat(X){return()=>{throw Error([e7("{ %s } was removed in winston@3.0.0.",X),"Use a custom winston.format = winston.format(function) instead."].join(`
26
+ `))}},forFunctions(X,Q,J){J.forEach((H)=>{X[H]=JB.warn[Q](H)})},forProperties(X,Q,J){J.forEach((H)=>{let K=JB.warn[Q](H);Object.defineProperty(X,H,{get:K,set:K})})}}});var XJ=_((EA,ZB)=>{ZB.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 JJ=_((DA,QJ)=>{QJ.exports=h("util").deprecate});var Y5=_((LA,HJ)=>{function HB(X,Q){var J=this,H=this._readableState&&this._readableState.destroyed,K=this._writableState&&this._writableState.destroyed;if(H||K){if(Q)Q(X);else if(X){if(!this._writableState)process.nextTick(q5,this,X);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(q5,this,X)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(X||null,function(Y){if(!Q&&Y)if(!J._writableState)process.nextTick(ZJ,J,Y);else if(!J._writableState.errorEmitted)J._writableState.errorEmitted=!0,process.nextTick(ZJ,J,Y);else process.nextTick(f4,J);else if(Q)process.nextTick(f4,J),Q(Y);else process.nextTick(f4,J)}),this}function ZJ(X,Q){q5(X,Q),f4(X)}function f4(X){if(X._writableState&&!X._writableState.emitClose)return;if(X._readableState&&!X._readableState.emitClose)return;X.emit("close")}function GB(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(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 q5(X,Q){X.emit("error",Q)}function KB(X,Q){var{_readableState:J,_writableState:H}=X;if(J&&J.autoDestroy||H&&H.autoDestroy)X.destroy(Q);else X.emit("error",Q)}HJ.exports={destroy:HB,undestroy:GB,errorOrDestroy:KB}});var I8=_((BB,qJ)=>{var KJ={};function x0(X,Q,J){if(!J)J=Error;function H(Y,B,U){if(typeof Q==="string")return Q;else return Q(Y,B,U)}class K extends J{constructor(Y,B,U){super(H(Y,B,U))}}K.prototype.name=J.name,K.prototype.code=X,KJ[X]=K}function GJ(X,Q){if(Array.isArray(X)){let J=X.length;if(X=X.map((H)=>String(H)),J>2)return`one of ${Q} ${X.slice(0,J-1).join(", ")}, or `+X[J-1];else if(J===2)return`one of ${Q} ${X[0]} or ${X[1]}`;else return`of ${Q} ${X[0]}`}else return`of ${Q} ${String(X)}`}function qB(X,Q,J){return X.substr(!J||J<0?0:+J,Q.length)===Q}function YB(X,Q,J){if(J===void 0||J>X.length)J=X.length;return X.substring(J-Q.length,J)===Q}function VB(X,Q,J){if(typeof J!=="number")J=0;if(J+Q.length>X.length)return!1;else return X.indexOf(Q,J)!==-1}x0("ERR_INVALID_OPT_VALUE",function(X,Q){return'The value "'+Q+'" is invalid for option "'+X+'"'},TypeError);x0("ERR_INVALID_ARG_TYPE",function(X,Q,J){let H;if(typeof Q==="string"&&qB(Q,"not "))H="must not be",Q=Q.replace(/^not /,"");else H="must be";let K;if(YB(X," argument"))K=`The ${X} ${H} ${GJ(Q,"type")}`;else{let Y=VB(X,".")?"property":"argument";K=`The "${X}" ${Y} ${H} ${GJ(Q,"type")}`}return K+=`. Received type ${typeof J}`,K},TypeError);x0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");x0("ERR_METHOD_NOT_IMPLEMENTED",function(X){return"The "+X+" method is not implemented"});x0("ERR_STREAM_PREMATURE_CLOSE","Premature close");x0("ERR_STREAM_DESTROYED",function(X){return"Cannot call "+X+" after a stream was destroyed"});x0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");x0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");x0("ERR_STREAM_WRITE_AFTER_END","write after end");x0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);x0("ERR_UNKNOWN_ENCODING",function(X){return"Unknown encoding: "+X},TypeError);x0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");BB.codes=KJ});var V5=_((OA,YJ)=>{var WB=I8().codes.ERR_INVALID_OPT_VALUE;function NB(X,Q,J){return X.highWaterMark!=null?X.highWaterMark:Q?X[J]:null}function $B(X,Q,J,H){var K=NB(Q,H,J);if(K!=null){if(!(isFinite(K)&&Math.floor(K)===K)||K<0){var Y=H?J:"highWaterMark";throw new WB(Y,K)}return Math.floor(K)}return X.objectMode?16:16384}YJ.exports={getHighWaterMark:$B}});var VJ=_((TA,B5)=>{if(typeof Object.create==="function")B5.exports=function(Q,J){if(J)Q.super_=J,Q.prototype=Object.create(J.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}})};else B5.exports=function(Q,J){if(J){Q.super_=J;var H=function(){};H.prototype=J.prototype,Q.prototype=new H,Q.prototype.constructor=Q}}});var B1=_((FA,U5)=>{try{if(d4=h("util"),typeof d4.inherits!=="function")throw"";U5.exports=d4.inherits}catch(X){U5.exports=VJ()}var d4});var zJ=_((jA,$J)=>{function BJ(X,Q){var J=Object.keys(X);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(X);Q&&(H=H.filter(function(K){return Object.getOwnPropertyDescriptor(X,K).enumerable})),J.push.apply(J,H)}return J}function UJ(X){for(var Q=1;Q<arguments.length;Q++){var J=arguments[Q]!=null?arguments[Q]:{};Q%2?BJ(Object(J),!0).forEach(function(H){zB(X,H,J[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(J)):BJ(Object(J)).forEach(function(H){Object.defineProperty(X,H,Object.getOwnPropertyDescriptor(J,H))})}return X}function zB(X,Q,J){if(Q=NJ(Q),Q in X)Object.defineProperty(X,Q,{value:J,enumerable:!0,configurable:!0,writable:!0});else X[Q]=J;return X}function AB(X,Q){if(!(X instanceof Q))throw TypeError("Cannot call a class as a function")}function WJ(X,Q){for(var J=0;J<Q.length;J++){var H=Q[J];if(H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H)H.writable=!0;Object.defineProperty(X,NJ(H.key),H)}}function IB(X,Q,J){if(Q)WJ(X.prototype,Q);if(J)WJ(X,J);return Object.defineProperty(X,"prototype",{writable:!1}),X}function NJ(X){var Q=MB(X,"string");return typeof Q==="symbol"?Q:String(Q)}function MB(X,Q){if(typeof X!=="object"||X===null)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var H=J.call(X,Q||"default");if(typeof H!=="object")return H;throw TypeError("@@toPrimitive must return a primitive value.")}return(Q==="string"?String:Number)(X)}var PB=h("buffer"),m4=PB.Buffer,_B=h("util"),W5=_B.inspect,RB=W5&&W5.custom||"inspect";function CB(X,Q,J){m4.prototype.copy.call(X,Q,J)}$J.exports=function(){function X(){AB(this,X),this.head=null,this.tail=null,this.length=0}return IB(X,[{key:"push",value:function(J){var H={data:J,next:null};if(this.length>0)this.tail.next=H;else this.head=H;this.tail=H,++this.length}},{key:"unshift",value:function(J){var H={data:J,next:this.head};if(this.length===0)this.tail=H;this.head=H,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var J=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,J}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(J){if(this.length===0)return"";var H=this.head,K=""+H.data;while(H=H.next)K+=J+H.data;return K}},{key:"concat",value:function(J){if(this.length===0)return m4.alloc(0);var H=m4.allocUnsafe(J>>>0),K=this.head,Y=0;while(K)CB(K.data,H,Y),Y+=K.data.length,K=K.next;return H}},{key:"consume",value:function(J,H){var K;if(J<this.head.data.length)K=this.head.data.slice(0,J),this.head.data=this.head.data.slice(J);else if(J===this.head.data.length)K=this.shift();else K=H?this._getString(J):this._getBuffer(J);return K}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(J){var H=this.head,K=1,Y=H.data;J-=Y.length;while(H=H.next){var B=H.data,U=J>B.length?B.length:J;if(U===B.length)Y+=B;else Y+=B.slice(0,J);if(J-=U,J===0){if(U===B.length)if(++K,H.next)this.head=H.next;else this.head=this.tail=null;else this.head=H,H.data=B.slice(U);break}++K}return this.length-=K,Y}},{key:"_getBuffer",value:function(J){var H=m4.allocUnsafe(J),K=this.head,Y=1;K.data.copy(H),J-=K.data.length;while(K=K.next){var B=K.data,U=J>B.length?B.length:J;if(B.copy(H,H.length-J,0,U),J-=U,J===0){if(U===B.length)if(++Y,K.next)this.head=K.next;else this.head=this.tail=null;else this.head=K,K.data=B.slice(U);break}++Y}return this.length-=Y,H}},{key:RB,value:function(J,H){return W5(this,UJ(UJ({},H),{},{depth:0,customInspect:!1}))}}]),X}()});var MJ=_((N5,IJ)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var p4=h("buffer"),n0=p4.Buffer;function AJ(X,Q){for(var J in X)Q[J]=X[J]}if(n0.from&&n0.alloc&&n0.allocUnsafe&&n0.allocUnsafeSlow)IJ.exports=p4;else AJ(p4,N5),N5.Buffer=y8;function y8(X,Q,J){return n0(X,Q,J)}y8.prototype=Object.create(n0.prototype);AJ(n0,y8);y8.from=function(X,Q,J){if(typeof X==="number")throw TypeError("Argument must not be a number");return n0(X,Q,J)};y8.alloc=function(X,Q,J){if(typeof X!=="number")throw TypeError("Argument must be a number");var H=n0(X);if(Q!==void 0)if(typeof J==="string")H.fill(Q,J);else H.fill(Q);else H.fill(0);return H};y8.allocUnsafe=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return n0(X)};y8.allocUnsafeSlow=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return p4.SlowBuffer(X)}});var A5=_((bB)=>{var z5=MJ().Buffer,PJ=z5.isEncoding||function(X){switch(X=""+X,X&&X.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 EB(X){if(!X)return"utf8";var Q;while(!0)switch(X){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 X;default:if(Q)return;X=(""+X).toLowerCase(),Q=!0}}function DB(X){var Q=EB(X);if(typeof Q!=="string"&&(z5.isEncoding===PJ||!PJ(X)))throw Error("Unknown encoding: "+X);return Q||X}bB.StringDecoder=f1;function f1(X){this.encoding=DB(X);var Q;switch(this.encoding){case"utf16le":this.text=SB,this.end=wB,Q=4;break;case"utf8":this.fillLast=TB,Q=4;break;case"base64":this.text=xB,this.end=vB,Q=3;break;default:this.write=yB,this.end=kB;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=z5.allocUnsafe(Q)}f1.prototype.write=function(X){if(X.length===0)return"";var Q,J;if(this.lastNeed){if(Q=this.fillLast(X),Q===void 0)return"";J=this.lastNeed,this.lastNeed=0}else J=0;if(J<X.length)return Q?Q+this.text(X,J):this.text(X,J);return Q||""};f1.prototype.end=jB;f1.prototype.text=FB;f1.prototype.fillLast=function(X){if(this.lastNeed<=X.length)return X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,this.lastTotal-this.lastNeed,0,X.length),this.lastNeed-=X.length};function $5(X){if(X<=127)return 0;else if(X>>5===6)return 2;else if(X>>4===14)return 3;else if(X>>3===30)return 4;return X>>6===2?-1:-2}function LB(X,Q,J){var H=Q.length-1;if(H<J)return 0;var K=$5(Q[H]);if(K>=0){if(K>0)X.lastNeed=K-1;return K}if(--H<J||K===-2)return 0;if(K=$5(Q[H]),K>=0){if(K>0)X.lastNeed=K-2;return K}if(--H<J||K===-2)return 0;if(K=$5(Q[H]),K>=0){if(K>0)if(K===2)K=0;else X.lastNeed=K-3;return K}return 0}function OB(X,Q,J){if((Q[0]&192)!==128)return X.lastNeed=0,"\uFFFD";if(X.lastNeed>1&&Q.length>1){if((Q[1]&192)!==128)return X.lastNeed=1,"\uFFFD";if(X.lastNeed>2&&Q.length>2){if((Q[2]&192)!==128)return X.lastNeed=2,"\uFFFD"}}}function TB(X){var Q=this.lastTotal-this.lastNeed,J=OB(this,X,Q);if(J!==void 0)return J;if(this.lastNeed<=X.length)return X.copy(this.lastChar,Q,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);X.copy(this.lastChar,Q,0,X.length),this.lastNeed-=X.length}function FB(X,Q){var J=LB(this,X,Q);if(!this.lastNeed)return X.toString("utf8",Q);this.lastTotal=J;var H=X.length-(J-this.lastNeed);return X.copy(this.lastChar,0,H),X.toString("utf8",Q,H)}function jB(X){var Q=X&&X.length?this.write(X):"";if(this.lastNeed)return Q+"\uFFFD";return Q}function SB(X,Q){if((X.length-Q)%2===0){var J=X.toString("utf16le",Q);if(J){var H=J.charCodeAt(J.length-1);if(H>=55296&&H<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1],J.slice(0,-1)}return J}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=X[X.length-1],X.toString("utf16le",Q,X.length-1)}function wB(X){var Q=X&&X.length?this.write(X):"";if(this.lastNeed){var J=this.lastTotal-this.lastNeed;return Q+this.lastChar.toString("utf16le",0,J)}return Q}function xB(X,Q){var J=(X.length-Q)%3;if(J===0)return X.toString("base64",Q);if(this.lastNeed=3-J,this.lastTotal=3,J===1)this.lastChar[0]=X[X.length-1];else this.lastChar[0]=X[X.length-2],this.lastChar[1]=X[X.length-1];return X.toString("base64",Q,X.length-J)}function vB(X){var Q=X&&X.length?this.write(X):"";if(this.lastNeed)return Q+this.lastChar.toString("base64",0,3-this.lastNeed);return Q}function yB(X){return X.toString(this.encoding)}function kB(X){return X&&X.length?this.write(X):""}});var c4=_((wA,CJ)=>{var _J=I8().codes.ERR_STREAM_PREMATURE_CLOSE;function gB(X){var Q=!1;return function(){if(Q)return;Q=!0;for(var J=arguments.length,H=Array(J),K=0;K<J;K++)H[K]=arguments[K];X.apply(this,H)}}function uB(){}function fB(X){return X.setHeader&&typeof X.abort==="function"}function RJ(X,Q,J){if(typeof Q==="function")return RJ(X,null,Q);if(!Q)Q={};J=gB(J||uB);var H=Q.readable||Q.readable!==!1&&X.readable,K=Q.writable||Q.writable!==!1&&X.writable,Y=function(){if(!X.writable)U()},B=X._writableState&&X._writableState.finished,U=function(){if(K=!1,B=!0,!H)J.call(X)},N=X._readableState&&X._readableState.endEmitted,z=function(){if(H=!1,N=!0,!K)J.call(X)},R=function(A){J.call(X,A)},M=function(){var A;if(H&&!N){if(!X._readableState||!X._readableState.ended)A=new _J;return J.call(X,A)}if(K&&!B){if(!X._writableState||!X._writableState.ended)A=new _J;return J.call(X,A)}},P=function(){X.req.on("finish",U)};if(fB(X))if(X.on("complete",U),X.on("abort",M),X.req)P();else X.on("request",P);else if(K&&!X._writableState)X.on("end",Y),X.on("close",Y);if(X.on("end",z),X.on("finish",U),Q.error!==!1)X.on("error",R);return X.on("close",M),function(){if(X.removeListener("complete",U),X.removeListener("abort",M),X.removeListener("request",P),X.req)X.req.removeListener("finish",U);X.removeListener("end",Y),X.removeListener("close",Y),X.removeListener("finish",U),X.removeListener("end",z),X.removeListener("error",R),X.removeListener("close",M)}}CJ.exports=RJ});var DJ=_((xA,EJ)=>{var l4;function M8(X,Q,J){if(Q=dB(Q),Q in X)Object.defineProperty(X,Q,{value:J,enumerable:!0,configurable:!0,writable:!0});else X[Q]=J;return X}function dB(X){var Q=mB(X,"string");return typeof Q==="symbol"?Q:String(Q)}function mB(X,Q){if(typeof X!=="object"||X===null)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var H=J.call(X,Q||"default");if(typeof H!=="object")return H;throw TypeError("@@toPrimitive must return a primitive value.")}return(Q==="string"?String:Number)(X)}var pB=c4(),P8=Symbol("lastResolve"),k8=Symbol("lastReject"),d1=Symbol("error"),n4=Symbol("ended"),b8=Symbol("lastPromise"),I5=Symbol("handlePromise"),h8=Symbol("stream");function _8(X,Q){return{value:X,done:Q}}function cB(X){var Q=X[P8];if(Q!==null){var J=X[h8].read();if(J!==null)X[b8]=null,X[P8]=null,X[k8]=null,Q(_8(J,!1))}}function lB(X){process.nextTick(cB,X)}function nB(X,Q){return function(J,H){X.then(function(){if(Q[n4]){J(_8(void 0,!0));return}Q[I5](J,H)},H)}}var iB=Object.getPrototypeOf(function(){}),sB=Object.setPrototypeOf((l4={get stream(){return this[h8]},next:function(){var Q=this,J=this[d1];if(J!==null)return Promise.reject(J);if(this[n4])return Promise.resolve(_8(void 0,!0));if(this[h8].destroyed)return new Promise(function(B,U){process.nextTick(function(){if(Q[d1])U(Q[d1]);else B(_8(void 0,!0))})});var H=this[b8],K;if(H)K=new Promise(nB(H,this));else{var Y=this[h8].read();if(Y!==null)return Promise.resolve(_8(Y,!1));K=new Promise(this[I5])}return this[b8]=K,K}},M8(l4,Symbol.asyncIterator,function(){return this}),M8(l4,"return",function(){var Q=this;return new Promise(function(J,H){Q[h8].destroy(null,function(K){if(K){H(K);return}J(_8(void 0,!0))})})}),l4),iB),rB=function(Q){var J,H=Object.create(sB,(J={},M8(J,h8,{value:Q,writable:!0}),M8(J,P8,{value:null,writable:!0}),M8(J,k8,{value:null,writable:!0}),M8(J,d1,{value:null,writable:!0}),M8(J,n4,{value:Q._readableState.endEmitted,writable:!0}),M8(J,I5,{value:function(Y,B){var U=H[h8].read();if(U)H[b8]=null,H[P8]=null,H[k8]=null,Y(_8(U,!1));else H[P8]=Y,H[k8]=B},writable:!0}),J));return H[b8]=null,pB(Q,function(K){if(K&&K.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Y=H[k8];if(Y!==null)H[b8]=null,H[P8]=null,H[k8]=null,Y(K);H[d1]=K;return}var B=H[P8];if(B!==null)H[b8]=null,H[P8]=null,H[k8]=null,B(_8(void 0,!0));H[n4]=!0}),Q.on("readable",lB.bind(null,H)),H};EJ.exports=rB});var FJ=_((vA,TJ)=>{function LJ(X,Q,J,H,K,Y,B){try{var U=X[Y](B),N=U.value}catch(z){J(z);return}if(U.done)Q(N);else Promise.resolve(N).then(H,K)}function aB(X){return function(){var Q=this,J=arguments;return new Promise(function(H,K){var Y=X.apply(Q,J);function B(N){LJ(Y,H,K,B,U,"next",N)}function U(N){LJ(Y,H,K,B,U,"throw",N)}B(void 0)})}}function OJ(X,Q){var J=Object.keys(X);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(X);Q&&(H=H.filter(function(K){return Object.getOwnPropertyDescriptor(X,K).enumerable})),J.push.apply(J,H)}return J}function oB(X){for(var Q=1;Q<arguments.length;Q++){var J=arguments[Q]!=null?arguments[Q]:{};Q%2?OJ(Object(J),!0).forEach(function(H){tB(X,H,J[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(J)):OJ(Object(J)).forEach(function(H){Object.defineProperty(X,H,Object.getOwnPropertyDescriptor(J,H))})}return X}function tB(X,Q,J){if(Q=eB(Q),Q in X)Object.defineProperty(X,Q,{value:J,enumerable:!0,configurable:!0,writable:!0});else X[Q]=J;return X}function eB(X){var Q=XU(X,"string");return typeof Q==="symbol"?Q:String(Q)}function XU(X,Q){if(typeof X!=="object"||X===null)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var H=J.call(X,Q||"default");if(typeof H!=="object")return H;throw TypeError("@@toPrimitive must return a primitive value.")}return(Q==="string"?String:Number)(X)}var QU=I8().codes.ERR_INVALID_ARG_TYPE;function JU(X,Q,J){var H;if(Q&&typeof Q.next==="function")H=Q;else if(Q&&Q[Symbol.asyncIterator])H=Q[Symbol.asyncIterator]();else if(Q&&Q[Symbol.iterator])H=Q[Symbol.iterator]();else throw new QU("iterable",["Iterable"],Q);var K=new X(oB({objectMode:!0},J)),Y=!1;K._read=function(){if(!Y)Y=!0,B()};function B(){return U.apply(this,arguments)}function U(){return U=aB(function*(){try{var N=yield H.next(),z=N.value,R=N.done;if(R)K.push(null);else if(K.push(yield z))B();else Y=!1}catch(M){K.destroy(M)}}),U.apply(this,arguments)}return K}TJ.exports=JU});var T5=_((kA,gJ)=>{gJ.exports=a;var U1;a.ReadableState=xJ;var yA=h("events").EventEmitter,wJ=function(Q,J){return Q.listeners(J).length},p1=h("stream"),i4=h("buffer").Buffer,ZU=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function HU(X){return i4.from(X)}function GU(X){return i4.isBuffer(X)||X instanceof ZU}var M5=h("util"),p;if(M5&&M5.debuglog)p=M5.debuglog("stream");else p=function(){};var KU=zJ(),L5=Y5(),qU=V5(),YU=qU.getHighWaterMark,s4=I8().codes,VU=s4.ERR_INVALID_ARG_TYPE,BU=s4.ERR_STREAM_PUSH_AFTER_EOF,UU=s4.ERR_METHOD_NOT_IMPLEMENTED,WU=s4.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,W1,P5,_5;B1()(a,p1);var m1=L5.errorOrDestroy,R5=["error","close","destroy","pause","resume"];function NU(X,Q,J){if(typeof X.prependListener==="function")return X.prependListener(Q,J);if(!X._events||!X._events[Q])X.on(Q,J);else if(Array.isArray(X._events[Q]))X._events[Q].unshift(J);else X._events[Q]=[J,X._events[Q]]}function xJ(X,Q,J){if(U1=U1||g8(),X=X||{},typeof J!=="boolean")J=Q instanceof U1;if(this.objectMode=!!X.objectMode,J)this.objectMode=this.objectMode||!!X.readableObjectMode;if(this.highWaterMark=YU(this,X,"readableHighWaterMark",J),this.buffer=new KU,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=X.emitClose!==!1,this.autoDestroy=!!X.autoDestroy,this.destroyed=!1,this.defaultEncoding=X.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,X.encoding){if(!W1)W1=A5().StringDecoder;this.decoder=new W1(X.encoding),this.encoding=X.encoding}}function a(X){if(U1=U1||g8(),!(this instanceof a))return new a(X);var Q=this instanceof U1;if(this._readableState=new xJ(X,this,Q),this.readable=!0,X){if(typeof X.read==="function")this._read=X.read;if(typeof X.destroy==="function")this._destroy=X.destroy}p1.call(this)}Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(Q){if(!this._readableState)return;this._readableState.destroyed=Q}});a.prototype.destroy=L5.destroy;a.prototype._undestroy=L5.undestroy;a.prototype._destroy=function(X,Q){Q(X)};a.prototype.push=function(X,Q){var J=this._readableState,H;if(!J.objectMode){if(typeof X==="string"){if(Q=Q||J.defaultEncoding,Q!==J.encoding)X=i4.from(X,Q),Q="";H=!0}}else H=!0;return vJ(this,X,Q,!1,H)};a.prototype.unshift=function(X){return vJ(this,X,null,!0,!1)};function vJ(X,Q,J,H,K){p("readableAddChunk",Q);var Y=X._readableState;if(Q===null)Y.reading=!1,AU(X,Y);else{var B;if(!K)B=$U(Y,Q);if(B)m1(X,B);else if(Y.objectMode||Q&&Q.length>0){if(typeof Q!=="string"&&!Y.objectMode&&Object.getPrototypeOf(Q)!==i4.prototype)Q=HU(Q);if(H)if(Y.endEmitted)m1(X,new WU);else C5(X,Y,Q,!0);else if(Y.ended)m1(X,new BU);else if(Y.destroyed)return!1;else if(Y.reading=!1,Y.decoder&&!J)if(Q=Y.decoder.write(Q),Y.objectMode||Q.length!==0)C5(X,Y,Q,!1);else D5(X,Y);else C5(X,Y,Q,!1)}else if(!H)Y.reading=!1,D5(X,Y)}return!Y.ended&&(Y.length<Y.highWaterMark||Y.length===0)}function C5(X,Q,J,H){if(Q.flowing&&Q.length===0&&!Q.sync)Q.awaitDrain=0,X.emit("data",J);else{if(Q.length+=Q.objectMode?1:J.length,H)Q.buffer.unshift(J);else Q.buffer.push(J);if(Q.needReadable)r4(X)}D5(X,Q)}function $U(X,Q){var J;if(!GU(Q)&&typeof Q!=="string"&&Q!==void 0&&!X.objectMode)J=new VU("chunk",["string","Buffer","Uint8Array"],Q);return J}a.prototype.isPaused=function(){return this._readableState.flowing===!1};a.prototype.setEncoding=function(X){if(!W1)W1=A5().StringDecoder;var Q=new W1(X);this._readableState.decoder=Q,this._readableState.encoding=this._readableState.decoder.encoding;var J=this._readableState.buffer.head,H="";while(J!==null)H+=Q.write(J.data),J=J.next;if(this._readableState.buffer.clear(),H!=="")this._readableState.buffer.push(H);return this._readableState.length=H.length,this};var jJ=1073741824;function zU(X){if(X>=jJ)X=jJ;else X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++;return X}function SJ(X,Q){if(X<=0||Q.length===0&&Q.ended)return 0;if(Q.objectMode)return 1;if(X!==X)if(Q.flowing&&Q.length)return Q.buffer.head.data.length;else return Q.length;if(X>Q.highWaterMark)Q.highWaterMark=zU(X);if(X<=Q.length)return X;if(!Q.ended)return Q.needReadable=!0,0;return Q.length}a.prototype.read=function(X){p("read",X),X=parseInt(X,10);var Q=this._readableState,J=X;if(X!==0)Q.emittedReadable=!1;if(X===0&&Q.needReadable&&((Q.highWaterMark!==0?Q.length>=Q.highWaterMark:Q.length>0)||Q.ended)){if(p("read: emitReadable",Q.length,Q.ended),Q.length===0&&Q.ended)E5(this);else r4(this);return null}if(X=SJ(X,Q),X===0&&Q.ended){if(Q.length===0)E5(this);return null}var H=Q.needReadable;if(p("need readable",H),Q.length===0||Q.length-X<Q.highWaterMark)H=!0,p("length less than watermark",H);if(Q.ended||Q.reading)H=!1,p("reading or ended",H);else if(H){if(p("do read"),Q.reading=!0,Q.sync=!0,Q.length===0)Q.needReadable=!0;if(this._read(Q.highWaterMark),Q.sync=!1,!Q.reading)X=SJ(J,Q)}var K;if(X>0)K=bJ(X,Q);else K=null;if(K===null)Q.needReadable=Q.length<=Q.highWaterMark,X=0;else Q.length-=X,Q.awaitDrain=0;if(Q.length===0){if(!Q.ended)Q.needReadable=!0;if(J!==X&&Q.ended)E5(this)}if(K!==null)this.emit("data",K);return K};function AU(X,Q){if(p("onEofChunk"),Q.ended)return;if(Q.decoder){var J=Q.decoder.end();if(J&&J.length)Q.buffer.push(J),Q.length+=Q.objectMode?1:J.length}if(Q.ended=!0,Q.sync)r4(X);else if(Q.needReadable=!1,!Q.emittedReadable)Q.emittedReadable=!0,yJ(X)}function r4(X){var Q=X._readableState;if(p("emitReadable",Q.needReadable,Q.emittedReadable),Q.needReadable=!1,!Q.emittedReadable)p("emitReadable",Q.flowing),Q.emittedReadable=!0,process.nextTick(yJ,X)}function yJ(X){var Q=X._readableState;if(p("emitReadable_",Q.destroyed,Q.length,Q.ended),!Q.destroyed&&(Q.length||Q.ended))X.emit("readable"),Q.emittedReadable=!1;Q.needReadable=!Q.flowing&&!Q.ended&&Q.length<=Q.highWaterMark,O5(X)}function D5(X,Q){if(!Q.readingMore)Q.readingMore=!0,process.nextTick(IU,X,Q)}function IU(X,Q){while(!Q.reading&&!Q.ended&&(Q.length<Q.highWaterMark||Q.flowing&&Q.length===0)){var J=Q.length;if(p("maybeReadMore read 0"),X.read(0),J===Q.length)break}Q.readingMore=!1}a.prototype._read=function(X){m1(this,new UU("_read()"))};a.prototype.pipe=function(X,Q){var J=this,H=this._readableState;switch(H.pipesCount){case 0:H.pipes=X;break;case 1:H.pipes=[H.pipes,X];break;default:H.pipes.push(X);break}H.pipesCount+=1,p("pipe count=%d opts=%j",H.pipesCount,Q);var K=(!Q||Q.end!==!1)&&X!==process.stdout&&X!==process.stderr,Y=K?U:D;if(H.endEmitted)process.nextTick(Y);else J.once("end",Y);X.on("unpipe",B);function B(v,y){if(p("onunpipe"),v===J){if(y&&y.hasUnpiped===!1)y.hasUnpiped=!0,R()}}function U(){p("onend"),X.end()}var N=MU(J);X.on("drain",N);var z=!1;function R(){if(p("cleanup"),X.removeListener("close",L),X.removeListener("finish",A),X.removeListener("drain",N),X.removeListener("error",P),X.removeListener("unpipe",B),J.removeListener("end",U),J.removeListener("end",D),J.removeListener("data",M),z=!0,H.awaitDrain&&(!X._writableState||X._writableState.needDrain))N()}J.on("data",M);function M(v){p("ondata");var y=X.write(v);if(p("dest.write",y),y===!1){if((H.pipesCount===1&&H.pipes===X||H.pipesCount>1&&hJ(H.pipes,X)!==-1)&&!z)p("false write response, pause",H.awaitDrain),H.awaitDrain++;J.pause()}}function P(v){if(p("onerror",v),D(),X.removeListener("error",P),wJ(X,"error")===0)m1(X,v)}NU(X,"error",P);function L(){X.removeListener("finish",A),D()}X.once("close",L);function A(){p("onfinish"),X.removeListener("close",L),D()}X.once("finish",A);function D(){p("unpipe"),J.unpipe(X)}if(X.emit("pipe",J),!H.flowing)p("pipe resume"),J.resume();return X};function MU(X){return function(){var J=X._readableState;if(p("pipeOnDrain",J.awaitDrain),J.awaitDrain)J.awaitDrain--;if(J.awaitDrain===0&&wJ(X,"data"))J.flowing=!0,O5(X)}}a.prototype.unpipe=function(X){var Q=this._readableState,J={hasUnpiped:!1};if(Q.pipesCount===0)return this;if(Q.pipesCount===1){if(X&&X!==Q.pipes)return this;if(!X)X=Q.pipes;if(Q.pipes=null,Q.pipesCount=0,Q.flowing=!1,X)X.emit("unpipe",this,J);return this}if(!X){var{pipes:H,pipesCount:K}=Q;Q.pipes=null,Q.pipesCount=0,Q.flowing=!1;for(var Y=0;Y<K;Y++)H[Y].emit("unpipe",this,{hasUnpiped:!1});return this}var B=hJ(Q.pipes,X);if(B===-1)return this;if(Q.pipes.splice(B,1),Q.pipesCount-=1,Q.pipesCount===1)Q.pipes=Q.pipes[0];return X.emit("unpipe",this,J),this};a.prototype.on=function(X,Q){var J=p1.prototype.on.call(this,X,Q),H=this._readableState;if(X==="data"){if(H.readableListening=this.listenerCount("readable")>0,H.flowing!==!1)this.resume()}else if(X==="readable"){if(!H.endEmitted&&!H.readableListening){if(H.readableListening=H.needReadable=!0,H.flowing=!1,H.emittedReadable=!1,p("on readable",H.length,H.reading),H.length)r4(this);else if(!H.reading)process.nextTick(PU,this)}}return J};a.prototype.addListener=a.prototype.on;a.prototype.removeListener=function(X,Q){var J=p1.prototype.removeListener.call(this,X,Q);if(X==="readable")process.nextTick(kJ,this);return J};a.prototype.removeAllListeners=function(X){var Q=p1.prototype.removeAllListeners.apply(this,arguments);if(X==="readable"||X===void 0)process.nextTick(kJ,this);return Q};function kJ(X){var Q=X._readableState;if(Q.readableListening=X.listenerCount("readable")>0,Q.resumeScheduled&&!Q.paused)Q.flowing=!0;else if(X.listenerCount("data")>0)X.resume()}function PU(X){p("readable nexttick read 0"),X.read(0)}a.prototype.resume=function(){var X=this._readableState;if(!X.flowing)p("resume"),X.flowing=!X.readableListening,_U(this,X);return X.paused=!1,this};function _U(X,Q){if(!Q.resumeScheduled)Q.resumeScheduled=!0,process.nextTick(RU,X,Q)}function RU(X,Q){if(p("resume",Q.reading),!Q.reading)X.read(0);if(Q.resumeScheduled=!1,X.emit("resume"),O5(X),Q.flowing&&!Q.reading)X.read(0)}a.prototype.pause=function(){if(p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)p("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function O5(X){var Q=X._readableState;p("flow",Q.flowing);while(Q.flowing&&X.read()!==null);}a.prototype.wrap=function(X){var Q=this,J=this._readableState,H=!1;X.on("end",function(){if(p("wrapped end"),J.decoder&&!J.ended){var B=J.decoder.end();if(B&&B.length)Q.push(B)}Q.push(null)}),X.on("data",function(B){if(p("wrapped data"),J.decoder)B=J.decoder.write(B);if(J.objectMode&&(B===null||B===void 0))return;else if(!J.objectMode&&(!B||!B.length))return;var U=Q.push(B);if(!U)H=!0,X.pause()});for(var K in X)if(this[K]===void 0&&typeof X[K]==="function")this[K]=function(U){return function(){return X[U].apply(X,arguments)}}(K);for(var Y=0;Y<R5.length;Y++)X.on(R5[Y],this.emit.bind(this,R5[Y]));return this._read=function(B){if(p("wrapped _read",B),H)H=!1,X.resume()},this};if(typeof Symbol==="function")a.prototype[Symbol.asyncIterator]=function(){if(P5===void 0)P5=DJ();return P5(this)};Object.defineProperty(a.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(a.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(a.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Q){if(this._readableState)this._readableState.flowing=Q}});a._fromList=bJ;Object.defineProperty(a.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function bJ(X,Q){if(Q.length===0)return null;var J;if(Q.objectMode)J=Q.buffer.shift();else if(!X||X>=Q.length){if(Q.decoder)J=Q.buffer.join("");else if(Q.buffer.length===1)J=Q.buffer.first();else J=Q.buffer.concat(Q.length);Q.buffer.clear()}else J=Q.buffer.consume(X,Q.decoder);return J}function E5(X){var Q=X._readableState;if(p("endReadable",Q.endEmitted),!Q.endEmitted)Q.ended=!0,process.nextTick(CU,Q,X)}function CU(X,Q){if(p("endReadableNT",X.endEmitted,X.length),!X.endEmitted&&X.length===0){if(X.endEmitted=!0,Q.readable=!1,Q.emit("end"),X.autoDestroy){var J=Q._writableState;if(!J||J.autoDestroy&&J.finished)Q.destroy()}}}if(typeof Symbol==="function")a.from=function(X,Q){if(_5===void 0)_5=FJ();return _5(a,X,Q)};function hJ(X,Q){for(var J=0,H=X.length;J<H;J++)if(X[J]===Q)return J;return-1}});var g8=_((bA,fJ)=>{var EU=Object.keys||function(X){var Q=[];for(var J in X)Q.push(J);return Q};fJ.exports=i0;var uJ=T5(),F5=o4();B1()(i0,uJ);{a4=EU(F5.prototype);for(c1=0;c1<a4.length;c1++)if(l1=a4[c1],!i0.prototype[l1])i0.prototype[l1]=F5.prototype[l1]}var a4,l1,c1;function i0(X){if(!(this instanceof i0))return new i0(X);if(uJ.call(this,X),F5.call(this,X),this.allowHalfOpen=!0,X){if(X.readable===!1)this.readable=!1;if(X.writable===!1)this.writable=!1;if(X.allowHalfOpen===!1)this.allowHalfOpen=!1,this.once("end",DU)}}Object.defineProperty(i0.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(i0.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(i0.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function DU(){if(this._writableState.ended)return;process.nextTick(LU,this)}function LU(X){X.end()}Object.defineProperty(i0.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(Q){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=Q,this._writableState.destroyed=Q}})});var o4=_((hA,nJ)=>{nJ.exports=Z0;function mJ(X){var Q=this;this.next=null,this.entry=null,this.finish=function(){tU(Q,X)}}var N1;Z0.WritableState=i1;var OU={deprecate:JJ()},pJ=h("stream"),e4=h("buffer").Buffer,TU=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function FU(X){return e4.from(X)}function jU(X){return e4.isBuffer(X)||X instanceof TU}var S5=Y5(),SU=V5(),wU=SU.getHighWaterMark,R8=I8().codes,xU=R8.ERR_INVALID_ARG_TYPE,vU=R8.ERR_METHOD_NOT_IMPLEMENTED,yU=R8.ERR_MULTIPLE_CALLBACK,kU=R8.ERR_STREAM_CANNOT_PIPE,bU=R8.ERR_STREAM_DESTROYED,hU=R8.ERR_STREAM_NULL_VALUES,gU=R8.ERR_STREAM_WRITE_AFTER_END,uU=R8.ERR_UNKNOWN_ENCODING,$1=S5.errorOrDestroy;B1()(Z0,pJ);function fU(){}function i1(X,Q,J){if(N1=N1||g8(),X=X||{},typeof J!=="boolean")J=Q instanceof N1;if(this.objectMode=!!X.objectMode,J)this.objectMode=this.objectMode||!!X.writableObjectMode;this.highWaterMark=wU(this,X,"writableHighWaterMark",J),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var H=X.decodeStrings===!1;this.decodeStrings=!H,this.defaultEncoding=X.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K){iU(Q,K)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=X.emitClose!==!1,this.autoDestroy=!!X.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new mJ(this)}i1.prototype.getBuffer=function(){var Q=this.bufferedRequest,J=[];while(Q)J.push(Q),Q=Q.next;return J};(function(){try{Object.defineProperty(i1.prototype,"buffer",{get:OU.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(X){}})();var t4;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")t4=Function.prototype[Symbol.hasInstance],Object.defineProperty(Z0,Symbol.hasInstance,{value:function(Q){if(t4.call(this,Q))return!0;if(this!==Z0)return!1;return Q&&Q._writableState instanceof i1}});else t4=function(Q){return Q instanceof this};function Z0(X){N1=N1||g8();var Q=this instanceof N1;if(!Q&&!t4.call(Z0,this))return new Z0(X);if(this._writableState=new i1(X,this,Q),this.writable=!0,X){if(typeof X.write==="function")this._write=X.write;if(typeof X.writev==="function")this._writev=X.writev;if(typeof X.destroy==="function")this._destroy=X.destroy;if(typeof X.final==="function")this._final=X.final}pJ.call(this)}Z0.prototype.pipe=function(){$1(this,new kU)};function dU(X,Q){var J=new gU;$1(X,J),process.nextTick(Q,J)}function mU(X,Q,J,H){var K;if(J===null)K=new hU;else if(typeof J!=="string"&&!Q.objectMode)K=new xU("chunk",["string","Buffer"],J);if(K)return $1(X,K),process.nextTick(H,K),!1;return!0}Z0.prototype.write=function(X,Q,J){var H=this._writableState,K=!1,Y=!H.objectMode&&jU(X);if(Y&&!e4.isBuffer(X))X=FU(X);if(typeof Q==="function")J=Q,Q=null;if(Y)Q="buffer";else if(!Q)Q=H.defaultEncoding;if(typeof J!=="function")J=fU;if(H.ending)dU(this,J);else if(Y||mU(this,H,X,J))H.pendingcb++,K=cU(this,H,Y,X,Q,J);return K};Z0.prototype.cork=function(){this._writableState.corked++};Z0.prototype.uncork=function(){var X=this._writableState;if(X.corked){if(X.corked--,!X.writing&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest)cJ(this,X)}};Z0.prototype.setDefaultEncoding=function(Q){if(typeof Q==="string")Q=Q.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new uU(Q);return this._writableState.defaultEncoding=Q,this};Object.defineProperty(Z0.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function pU(X,Q,J){if(!X.objectMode&&X.decodeStrings!==!1&&typeof Q==="string")Q=e4.from(Q,J);return Q}Object.defineProperty(Z0.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function cU(X,Q,J,H,K,Y){if(!J){var B=pU(Q,H,K);if(H!==B)J=!0,K="buffer",H=B}var U=Q.objectMode?1:H.length;Q.length+=U;var N=Q.length<Q.highWaterMark;if(!N)Q.needDrain=!0;if(Q.writing||Q.corked){var z=Q.lastBufferedRequest;if(Q.lastBufferedRequest={chunk:H,encoding:K,isBuf:J,callback:Y,next:null},z)z.next=Q.lastBufferedRequest;else Q.bufferedRequest=Q.lastBufferedRequest;Q.bufferedRequestCount+=1}else j5(X,Q,!1,U,H,K,Y);return N}function j5(X,Q,J,H,K,Y,B){if(Q.writelen=H,Q.writecb=B,Q.writing=!0,Q.sync=!0,Q.destroyed)Q.onwrite(new bU("write"));else if(J)X._writev(K,Q.onwrite);else X._write(K,Y,Q.onwrite);Q.sync=!1}function lU(X,Q,J,H,K){if(--Q.pendingcb,J)process.nextTick(K,H),process.nextTick(n1,X,Q),X._writableState.errorEmitted=!0,$1(X,H);else K(H),X._writableState.errorEmitted=!0,$1(X,H),n1(X,Q)}function nU(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0}function iU(X,Q){var J=X._writableState,H=J.sync,K=J.writecb;if(typeof K!=="function")throw new yU;if(nU(J),Q)lU(X,J,H,Q,K);else{var Y=lJ(J)||X.destroyed;if(!Y&&!J.corked&&!J.bufferProcessing&&J.bufferedRequest)cJ(X,J);if(H)process.nextTick(dJ,X,J,Y,K);else dJ(X,J,Y,K)}}function dJ(X,Q,J,H){if(!J)sU(X,Q);Q.pendingcb--,H(),n1(X,Q)}function sU(X,Q){if(Q.length===0&&Q.needDrain)Q.needDrain=!1,X.emit("drain")}function cJ(X,Q){Q.bufferProcessing=!0;var J=Q.bufferedRequest;if(X._writev&&J&&J.next){var H=Q.bufferedRequestCount,K=Array(H),Y=Q.corkedRequestsFree;Y.entry=J;var B=0,U=!0;while(J){if(K[B]=J,!J.isBuf)U=!1;J=J.next,B+=1}if(K.allBuffers=U,j5(X,Q,!0,Q.length,K,"",Y.finish),Q.pendingcb++,Q.lastBufferedRequest=null,Y.next)Q.corkedRequestsFree=Y.next,Y.next=null;else Q.corkedRequestsFree=new mJ(Q);Q.bufferedRequestCount=0}else{while(J){var{chunk:N,encoding:z,callback:R}=J,M=Q.objectMode?1:N.length;if(j5(X,Q,!1,M,N,z,R),J=J.next,Q.bufferedRequestCount--,Q.writing)break}if(J===null)Q.lastBufferedRequest=null}Q.bufferedRequest=J,Q.bufferProcessing=!1}Z0.prototype._write=function(X,Q,J){J(new vU("_write()"))};Z0.prototype._writev=null;Z0.prototype.end=function(X,Q,J){var H=this._writableState;if(typeof X==="function")J=X,X=null,Q=null;else if(typeof Q==="function")J=Q,Q=null;if(X!==null&&X!==void 0)this.write(X,Q);if(H.corked)H.corked=1,this.uncork();if(!H.ending)oU(this,H,J);return this};Object.defineProperty(Z0.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function lJ(X){return X.ending&&X.length===0&&X.bufferedRequest===null&&!X.finished&&!X.writing}function rU(X,Q){X._final(function(J){if(Q.pendingcb--,J)$1(X,J);Q.prefinished=!0,X.emit("prefinish"),n1(X,Q)})}function aU(X,Q){if(!Q.prefinished&&!Q.finalCalled)if(typeof X._final==="function"&&!Q.destroyed)Q.pendingcb++,Q.finalCalled=!0,process.nextTick(rU,X,Q);else Q.prefinished=!0,X.emit("prefinish")}function n1(X,Q){var J=lJ(Q);if(J){if(aU(X,Q),Q.pendingcb===0){if(Q.finished=!0,X.emit("finish"),Q.autoDestroy){var H=X._readableState;if(!H||H.autoDestroy&&H.endEmitted)X.destroy()}}}return J}function oU(X,Q,J){if(Q.ending=!0,n1(X,Q),J)if(Q.finished)process.nextTick(J);else X.once("finish",J);Q.ended=!0,X.writable=!1}function tU(X,Q,J){var H=X.entry;X.entry=null;while(H){var K=H.callback;Q.pendingcb--,K(J),H=H.next}Q.corkedRequestsFree.next=X}Object.defineProperty(Z0.prototype,"destroyed",{enumerable:!1,get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(Q){if(!this._writableState)return;this._writableState.destroyed=Q}});Z0.prototype.destroy=S5.destroy;Z0.prototype._undestroy=S5.undestroy;Z0.prototype._destroy=function(X,Q){Q(X)}});var w5=_((gA,rJ)=>{var eU=h("util"),iJ=o4(),{LEVEL:sJ}=K0(),s1=rJ.exports=function(Q={}){if(iJ.call(this,{objectMode:!0,highWaterMark:Q.highWaterMark}),this.format=Q.format,this.level=Q.level,this.handleExceptions=Q.handleExceptions,this.handleRejections=Q.handleRejections,this.silent=Q.silent,Q.log)this.log=Q.log;if(Q.logv)this.logv=Q.logv;if(Q.close)this.close=Q.close;this.once("pipe",(J)=>{this.levels=J.levels,this.parent=J}),this.once("unpipe",(J)=>{if(J===this.parent){if(this.parent=null,this.close)this.close()}})};eU.inherits(s1,iJ);s1.prototype._write=function(Q,J,H){if(this.silent||Q.exception===!0&&!this.handleExceptions)return H(null);let K=this.level||this.parent&&this.parent.level;if(!K||this.levels[K]>=this.levels[Q[sJ]]){if(Q&&!this.format)return this.log(Q,H);let Y,B;try{B=this.format.transform(Object.assign({},Q),this.format.options)}catch(U){Y=U}if(Y||!B){if(H(),Y)throw Y;return}return this.log(B,H)}return this._writableState.sync=!1,H(null)};s1.prototype._writev=function(Q,J){if(this.logv){let H=Q.filter(this._accept,this);if(!H.length)return J(null);return this.logv(H,J)}for(let H=0;H<Q.length;H++){if(!this._accept(Q[H]))continue;if(Q[H].chunk&&!this.format){this.log(Q[H].chunk,Q[H].callback);continue}let K,Y;try{Y=this.format.transform(Object.assign({},Q[H].chunk),this.format.options)}catch(B){K=B}if(K||!Y){if(Q[H].callback(),K)throw J(null),K}else this.log(Y,Q[H].callback)}return J(null)};s1.prototype._accept=function(Q){let J=Q.chunk;if(this.silent)return!1;let H=this.level||this.parent&&this.parent.level;if(J.exception===!0||!H||this.levels[H]>=this.levels[J[sJ]]){if(this.handleExceptions||J.exception!==!0)return!0}return!1};s1.prototype._nop=function(){return}});var v5=_((uA,oJ)=>{var XW=h("util"),{LEVEL:x5}=K0(),aJ=w5(),r1=oJ.exports=function(Q={}){if(aJ.call(this,Q),!Q.transport||typeof Q.transport.log!=="function")throw Error("Invalid transport, must be an object with a log method.");this.transport=Q.transport,this.level=this.level||Q.transport.level,this.handleExceptions=this.handleExceptions||Q.transport.handleExceptions,this._deprecated();function J(H){this.emit("error",H,this.transport)}if(!this.transport.__winstonError)this.transport.__winstonError=J.bind(this),this.transport.on("error",this.transport.__winstonError)};XW.inherits(r1,aJ);r1.prototype._write=function(Q,J,H){if(this.silent||Q.exception===!0&&!this.handleExceptions)return H(null);if(!this.level||this.levels[this.level]>=this.levels[Q[x5]])this.transport.log(Q[x5],Q.message,Q,this._nop);H(null)};r1.prototype._writev=function(Q,J){for(let H=0;H<Q.length;H++)if(this._accept(Q[H]))this.transport.log(Q[H].chunk[x5],Q[H].chunk.message,Q[H].chunk,this._nop),Q[H].callback();return J(null)};r1.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
+ `))};r1.prototype.close=function(){if(this.transport.close)this.transport.close();if(this.transport.__winstonError)this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null}});var u8=_((fA,y5)=>{y5.exports=w5();y5.exports.LegacyTransportStream=v5()});var XZ=_((dA,eJ)=>{var QW=h("os"),{LEVEL:tJ,MESSAGE:z1}=K0(),JW=u8();eJ.exports=class extends JW{constructor(Q={}){super(Q);this.name=Q.name||"console",this.stderrLevels=this._stringArrayToSet(Q.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(Q.consoleWarnLevels),this.eol=typeof Q.eol==="string"?Q.eol:QW.EOL,this.forceConsole=Q.forceConsole||!1,this._consoleLog=console.log.bind(console),this._consoleWarn=console.warn.bind(console),this._consoleError=console.error.bind(console),this.setMaxListeners(30)}log(Q,J){if(setImmediate(()=>this.emit("logged",Q)),this.stderrLevels[Q[tJ]]){if(console._stderr&&!this.forceConsole)console._stderr.write(`${Q[z1]}${this.eol}`);else this._consoleError(Q[z1]);if(J)J();return}else if(this.consoleWarnLevels[Q[tJ]]){if(console._stderr&&!this.forceConsole)console._stderr.write(`${Q[z1]}${this.eol}`);else this._consoleWarn(Q[z1]);if(J)J();return}if(console._stdout&&!this.forceConsole)console._stdout.write(`${Q[z1]}${this.eol}`);else this._consoleLog(Q[z1]);if(J)J()}_stringArrayToSet(Q,J){if(!Q)return{};if(J=J||"Cannot make set from type other than Array of string elements",!Array.isArray(Q))throw Error(J);return Q.reduce((H,K)=>{if(typeof K!=="string")throw Error(J);return H[K]=!0,H},{})}}});var X6=_((k5,QZ)=>{Object.defineProperty(k5,"__esModule",{value:!0});k5.default=ZW;function ZW(X){return X&&typeof X.length==="number"&&X.length>=0&&X.length%1===0}QZ.exports=k5.default});var ZZ=_((b5,JZ)=>{Object.defineProperty(b5,"__esModule",{value:!0});b5.default=function(X){return function(...Q){var J=Q.pop();return X.call(this,Q,J)}};JZ.exports=b5.default});var qZ=_((KZ)=>{Object.defineProperty(KZ,"__esModule",{value:!0});KZ.fallback=HZ;KZ.wrap=GZ;var KW=KZ.hasQueueMicrotask=typeof queueMicrotask==="function"&&queueMicrotask,qW=KZ.hasSetImmediate=typeof setImmediate==="function"&&setImmediate,YW=KZ.hasNextTick=typeof process==="object"&&typeof process.nextTick==="function";function HZ(X){setTimeout(X,0)}function GZ(X){return(Q,...J)=>X(()=>Q(...J))}var a1;if(KW)a1=queueMicrotask;else if(qW)a1=setImmediate;else if(YW)a1=process.nextTick;else a1=HZ;KZ.default=GZ(a1)});var WZ=_((h5,UZ)=>{Object.defineProperty(h5,"__esModule",{value:!0});h5.default=IW;var WW=ZZ(),NW=BZ(WW),$W=qZ(),zW=BZ($W),AW=f8();function BZ(X){return X&&X.__esModule?X:{default:X}}function IW(X){if((0,AW.isAsync)(X))return function(...Q){let J=Q.pop(),H=X.apply(this,Q);return YZ(H,J)};return(0,NW.default)(function(Q,J){var H;try{H=X.apply(this,Q)}catch(K){return J(K)}if(H&&typeof H.then==="function")return YZ(H,J);else J(null,H)})}function YZ(X,Q){return X.then((J)=>{VZ(Q,null,J)},(J)=>{VZ(Q,J&&(J instanceof Error||J.message)?J:Error(J))})}function VZ(X,Q,J){try{X(Q,J)}catch(H){(0,zW.default)((K)=>{throw K},H)}}UZ.exports=h5.default});var f8=_(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.isAsyncIterable=$Z.isAsyncGenerator=$Z.isAsync=void 0;var PW=WZ(),_W=RW(PW);function RW(X){return X&&X.__esModule?X:{default:X}}function NZ(X){return X[Symbol.toStringTag]==="AsyncFunction"}function CW(X){return X[Symbol.toStringTag]==="AsyncGenerator"}function EW(X){return typeof X[Symbol.asyncIterator]==="function"}function DW(X){if(typeof X!=="function")throw Error("expected a function");return NZ(X)?(0,_W.default)(X):X}$Z.default=DW;$Z.isAsync=NZ;$Z.isAsyncGenerator=CW;$Z.isAsyncIterable=EW});var A1=_((g5,AZ)=>{Object.defineProperty(g5,"__esModule",{value:!0});g5.default=FW;function FW(X,Q){if(!Q)Q=X.length;if(!Q)throw Error("arity is undefined");function J(...H){if(typeof H[Q-1]==="function")return X.apply(this,H);return new Promise((K,Y)=>{H[Q-1]=(B,...U)=>{if(B)return Y(B);K(U.length>1?U:U[0])},X.apply(this,H)})}return J}AZ.exports=g5.default});var MZ=_((f5,IZ)=>{Object.defineProperty(f5,"__esModule",{value:!0});var SW=X6(),wW=u5(SW),xW=f8(),vW=u5(xW),yW=A1(),kW=u5(yW);function u5(X){return X&&X.__esModule?X:{default:X}}f5.default=(0,kW.default)((X,Q,J)=>{var H=(0,wW.default)(Q)?[]:{};X(Q,(K,Y,B)=>{(0,vW.default)(K)((U,...N)=>{if(N.length<2)[N]=N;H[Y]=N,B(U)})},(K)=>J(K,H))},3);IZ.exports=f5.default});var m5=_((d5,PZ)=>{Object.defineProperty(d5,"__esModule",{value:!0});d5.default=hW;function hW(X){function Q(...J){if(X===null)return;var H=X;X=null,H.apply(this,J)}return Object.assign(Q,X),Q}PZ.exports=d5.default});var RZ=_((p5,_Z)=>{Object.defineProperty(p5,"__esModule",{value:!0});p5.default=function(X){return X[Symbol.iterator]&&X[Symbol.iterator]()};_Z.exports=p5.default});var DZ=_((c5,EZ)=>{Object.defineProperty(c5,"__esModule",{value:!0});c5.default=iW;var fW=X6(),dW=CZ(fW),mW=RZ(),pW=CZ(mW);function CZ(X){return X&&X.__esModule?X:{default:X}}function cW(X){var Q=-1,J=X.length;return function(){return++Q<J?{value:X[Q],key:Q}:null}}function lW(X){var Q=-1;return function(){var H=X.next();if(H.done)return null;return Q++,{value:H.value,key:Q}}}function nW(X){var Q=X?Object.keys(X):[],J=-1,H=Q.length;return function K(){var Y=Q[++J];if(Y==="__proto__")return K();return J<H?{value:X[Y],key:Y}:null}}function iW(X){if((0,dW.default)(X))return cW(X);var Q=(0,pW.default)(X);return Q?lW(Q):nW(X)}EZ.exports=c5.default});var n5=_((l5,LZ)=>{Object.defineProperty(l5,"__esModule",{value:!0});l5.default=rW;function rW(X){return function(...Q){if(X===null)throw Error("Callback was already called.");var J=X;X=null,J.apply(this,Q)}}LZ.exports=l5.default});var Q6=_((i5,OZ)=>{Object.defineProperty(i5,"__esModule",{value:!0});var oW={};i5.default=oW;OZ.exports=i5.default});var FZ=_((s5,TZ)=>{Object.defineProperty(s5,"__esModule",{value:!0});s5.default=JN;var eW=Q6(),XN=QN(eW);function QN(X){return X&&X.__esModule?X:{default:X}}function JN(X,Q,J,H){let K=!1,Y=!1,B=!1,U=0,N=0;function z(){if(U>=Q||B||K)return;B=!0,X.next().then(({value:P,done:L})=>{if(Y||K)return;if(B=!1,L){if(K=!0,U<=0)H(null);return}U++,J(P,N,R),N++,z()}).catch(M)}function R(P,L){if(U-=1,Y)return;if(P)return M(P);if(P===!1){K=!0,Y=!0;return}if(L===XN.default||K&&U<=0)return K=!0,H(null);z()}function M(P){if(Y)return;B=!1,K=!0,H(P)}z()}TZ.exports=s5.default});var xZ=_((r5,wZ)=>{Object.defineProperty(r5,"__esModule",{value:!0});var HN=m5(),GN=o1(HN),KN=DZ(),qN=o1(KN),YN=n5(),VN=o1(YN),jZ=f8(),BN=FZ(),SZ=o1(BN),UN=Q6(),WN=o1(UN);function o1(X){return X&&X.__esModule?X:{default:X}}r5.default=(X)=>{return(Q,J,H)=>{if(H=(0,GN.default)(H),X<=0)throw RangeError("concurrency limit cannot be less than 1");if(!Q)return H(null);if((0,jZ.isAsyncGenerator)(Q))return(0,SZ.default)(Q,X,J,H);if((0,jZ.isAsyncIterable)(Q))return(0,SZ.default)(Q[Symbol.asyncIterator](),X,J,H);var K=(0,qN.default)(Q),Y=!1,B=!1,U=0,N=!1;function z(M,P){if(B)return;if(U-=1,M)Y=!0,H(M);else if(M===!1)Y=!0,B=!0;else if(P===WN.default||Y&&U<=0)return Y=!0,H(null);else if(!N)R()}function R(){N=!0;while(U<X&&!Y){var M=K();if(M===null){if(Y=!0,U<=0)H(null);return}U+=1,J(M.value,M.key,(0,VN.default)(z))}N=!1}R()}};wZ.exports=r5.default});var t5=_((o5,vZ)=>{Object.defineProperty(o5,"__esModule",{value:!0});var $N=xZ(),zN=a5($N),AN=f8(),IN=a5(AN),MN=A1(),PN=a5(MN);function a5(X){return X&&X.__esModule?X:{default:X}}function _N(X,Q,J,H){return(0,zN.default)(Q)(X,(0,IN.default)(J),H)}o5.default=(0,PN.default)(_N,4);vZ.exports=o5.default});var bZ=_((e5,kZ)=>{Object.defineProperty(e5,"__esModule",{value:!0});var CN=t5(),EN=yZ(CN),DN=A1(),LN=yZ(DN);function yZ(X){return X&&X.__esModule?X:{default:X}}function ON(X,Q,J){return(0,EN.default)(X,1,Q,J)}e5.default=(0,LN.default)(ON,3);kZ.exports=e5.default});var uZ=_((XX,gZ)=>{Object.defineProperty(XX,"__esModule",{value:!0});XX.default=xN;var FN=MZ(),jN=hZ(FN),SN=bZ(),wN=hZ(SN);function hZ(X){return X&&X.__esModule?X:{default:X}}function xN(X,Q){return(0,jN.default)(wN.default,X,Q)}gZ.exports=XX.default});var QX=_((iA,dZ)=>{dZ.exports=V8;var J6=I8().codes,yN=J6.ERR_METHOD_NOT_IMPLEMENTED,kN=J6.ERR_MULTIPLE_CALLBACK,bN=J6.ERR_TRANSFORM_ALREADY_TRANSFORMING,hN=J6.ERR_TRANSFORM_WITH_LENGTH_0,Z6=g8();B1()(V8,Z6);function gN(X,Q){var J=this._transformState;J.transforming=!1;var H=J.writecb;if(H===null)return this.emit("error",new kN);if(J.writechunk=null,J.writecb=null,Q!=null)this.push(Q);H(X);var K=this._readableState;if(K.reading=!1,K.needReadable||K.length<K.highWaterMark)this._read(K.highWaterMark)}function V8(X){if(!(this instanceof V8))return new V8(X);if(Z6.call(this,X),this._transformState={afterTransform:gN.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,X){if(typeof X.transform==="function")this._transform=X.transform;if(typeof X.flush==="function")this._flush=X.flush}this.on("prefinish",uN)}function uN(){var X=this;if(typeof this._flush==="function"&&!this._readableState.destroyed)this._flush(function(Q,J){fZ(X,Q,J)});else fZ(this,null,null)}V8.prototype.push=function(X,Q){return this._transformState.needTransform=!1,Z6.prototype.push.call(this,X,Q)};V8.prototype._transform=function(X,Q,J){J(new yN("_transform()"))};V8.prototype._write=function(X,Q,J){var H=this._transformState;if(H.writecb=J,H.writechunk=X,H.writeencoding=Q,!H.transforming){var K=this._readableState;if(H.needTransform||K.needReadable||K.length<K.highWaterMark)this._read(K.highWaterMark)}};V8.prototype._read=function(X){var Q=this._transformState;if(Q.writechunk!==null&&!Q.transforming)Q.transforming=!0,this._transform(Q.writechunk,Q.writeencoding,Q.afterTransform);else Q.needTransform=!0};V8.prototype._destroy=function(X,Q){Z6.prototype._destroy.call(this,X,function(J){Q(J)})};function fZ(X,Q,J){if(Q)return X.emit("error",Q);if(J!=null)X.push(J);if(X._writableState.length)throw new hN;if(X._transformState.transforming)throw new bN;return X.push(null)}});var cZ=_((sA,pZ)=>{pZ.exports=t1;var mZ=QX();B1()(t1,mZ);function t1(X){if(!(this instanceof t1))return new t1(X);mZ.call(this,X)}t1.prototype._transform=function(X,Q,J){J(null,X)}});var rZ=_((rA,sZ)=>{var JX;function fN(X){var Q=!1;return function(){if(Q)return;Q=!0,X.apply(void 0,arguments)}}var iZ=I8().codes,dN=iZ.ERR_MISSING_ARGS,mN=iZ.ERR_STREAM_DESTROYED;function lZ(X){if(X)throw X}function pN(X){return X.setHeader&&typeof X.abort==="function"}function cN(X,Q,J,H){H=fN(H);var K=!1;if(X.on("close",function(){K=!0}),JX===void 0)JX=c4();JX(X,{readable:Q,writable:J},function(B){if(B)return H(B);K=!0,H()});var Y=!1;return function(B){if(K)return;if(Y)return;if(Y=!0,pN(X))return X.abort();if(typeof X.destroy==="function")return X.destroy();H(B||new mN("pipe"))}}function nZ(X){X()}function lN(X,Q){return X.pipe(Q)}function nN(X){if(!X.length)return lZ;if(typeof X[X.length-1]!=="function")return lZ;return X.pop()}function iN(){for(var X=arguments.length,Q=Array(X),J=0;J<X;J++)Q[J]=arguments[J];var H=nN(Q);if(Array.isArray(Q[0]))Q=Q[0];if(Q.length<2)throw new dN("streams");var K,Y=Q.map(function(B,U){var N=U<Q.length-1,z=U>0;return cN(B,N,z,function(R){if(!K)K=R;if(R)Y.forEach(nZ);if(N)return;Y.forEach(nZ),H(K)})});return Q.reduce(lN)}sZ.exports=iN});var d8=_((v0,X4)=>{var e1=h("stream");if(process.env.READABLE_STREAM==="disable"&&e1)X4.exports=e1.Readable,Object.assign(X4.exports,e1),X4.exports.Stream=e1;else v0=X4.exports=T5(),v0.Stream=e1||v0,v0.Readable=v0,v0.Writable=o4(),v0.Duplex=g8(),v0.Transform=QX(),v0.PassThrough=cZ(),v0.finished=c4(),v0.pipeline=rZ()});var tZ=_((aA,oZ)=>{var I1=[],Q4=[],ZX=function(){};function GX(X){if(~I1.indexOf(X))return!1;return I1.push(X),!0}function KX(X){ZX=X}function sN(X){var Q=[];for(var J=0;J<I1.length;J++){if(I1[J].async){Q.push(I1[J]);continue}if(I1[J](X))return!0}if(!Q.length)return!1;return new Promise(function(K){Promise.all(Q.map(function(B){return B(X)})).then(function(B){K(B.some(Boolean))})})}function qX(X){if(~Q4.indexOf(X))return!1;return Q4.push(X),!0}function HX(){ZX.apply(ZX,arguments)}function aZ(X){for(var Q=0;Q<Q4.length;Q++)X=Q4[Q].apply(Q4[Q],arguments);return X}function YX(X,Q){var J=Object.prototype.hasOwnProperty;for(var H in Q)if(J.call(Q,H))X[H]=Q[H];return X}function rN(X){return X.enabled=!1,X.modify=qX,X.set=KX,X.use=GX,YX(function(){return!1},X)}function aN(X){function Q(){var J=Array.prototype.slice.call(arguments,0);return HX.call(HX,X,aZ(J,X)),!0}return X.enabled=!0,X.modify=qX,X.set=KX,X.use=GX,YX(Q,X)}oZ.exports=function(Q){return Q.introduce=YX,Q.enabled=sN,Q.process=aZ,Q.modify=qX,Q.write=HX,Q.nope=rN,Q.yep=aN,Q.set=KX,Q.use=GX,Q}});var HH=_((oA,ZH)=>{var s0={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]},XH=Object.create(null);for(let X in s0)if(Object.hasOwn(s0,X))XH[s0[X]]=X;var N0={to:{},get:{}};N0.get=function(X){let Q=X.slice(0,3).toLowerCase(),J,H;switch(Q){case"hsl":{J=N0.get.hsl(X),H="hsl";break}case"hwb":{J=N0.get.hwb(X),H="hwb";break}default:{J=N0.get.rgb(X),H="rgb";break}}if(!J)return null;return{model:H,value:J}};N0.get.rgb=function(X){if(!X)return null;let Q=/^#([a-f\d]{3,4})$/i,J=/^#([a-f\d]{6})([a-f\d]{2})?$/i,H=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,K=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,Y=/^(\w+)$/,B=[0,0,0,1],U,N,z;if(U=X.match(J)){z=U[2],U=U[1];for(N=0;N<3;N++){let R=N*2;B[N]=Number.parseInt(U.slice(R,R+2),16)}if(z)B[3]=Number.parseInt(z,16)/255}else if(U=X.match(Q)){U=U[1],z=U[3];for(N=0;N<3;N++)B[N]=Number.parseInt(U[N]+U[N],16);if(z)B[3]=Number.parseInt(z+z,16)/255}else if(U=X.match(H)){for(N=0;N<3;N++)B[N]=Number.parseInt(U[N+1],10);if(U[4])B[3]=U[5]?Number.parseFloat(U[4])*0.01:Number.parseFloat(U[4])}else if(U=X.match(K)){for(N=0;N<3;N++)B[N]=Math.round(Number.parseFloat(U[N+1])*2.55);if(U[4])B[3]=U[5]?Number.parseFloat(U[4])*0.01:Number.parseFloat(U[4])}else if(U=X.match(Y)){if(U[1]==="transparent")return[0,0,0,0];if(!Object.hasOwn(s0,U[1]))return null;return B=s0[U[1]],B[3]=1,B}else return null;for(N=0;N<3;N++)B[N]=C8(B[N],0,255);return B[3]=C8(B[3],0,1),B};N0.get.hsl=function(X){if(!X)return null;let Q=/^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*)?\)$/,J=X.match(Q);if(J){let H=Number.parseFloat(J[4]),K=(Number.parseFloat(J[1])%360+360)%360,Y=C8(Number.parseFloat(J[2]),0,100),B=C8(Number.parseFloat(J[3]),0,100),U=C8(Number.isNaN(H)?1:H,0,1);return[K,Y,B,U]}return null};N0.get.hwb=function(X){if(!X)return null;let Q=/^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*)?\)$/,J=X.match(Q);if(J){let H=Number.parseFloat(J[4]),K=(Number.parseFloat(J[1])%360+360)%360,Y=C8(Number.parseFloat(J[2]),0,100),B=C8(Number.parseFloat(J[3]),0,100),U=C8(Number.isNaN(H)?1:H,0,1);return[K,Y,B,U]}return null};N0.to.hex=function(...X){return"#"+H6(X[0])+H6(X[1])+H6(X[2])+(X[3]<1?H6(Math.round(X[3]*255)):"")};N0.to.rgb=function(...X){return X.length<4||X[3]===1?"rgb("+Math.round(X[0])+", "+Math.round(X[1])+", "+Math.round(X[2])+")":"rgba("+Math.round(X[0])+", "+Math.round(X[1])+", "+Math.round(X[2])+", "+X[3]+")"};N0.to.rgb.percent=function(...X){let Q=Math.round(X[0]/255*100),J=Math.round(X[1]/255*100),H=Math.round(X[2]/255*100);return X.length<4||X[3]===1?"rgb("+Q+"%, "+J+"%, "+H+"%)":"rgba("+Q+"%, "+J+"%, "+H+"%, "+X[3]+")"};N0.to.hsl=function(...X){return X.length<4||X[3]===1?"hsl("+X[0]+", "+X[1]+"%, "+X[2]+"%)":"hsla("+X[0]+", "+X[1]+"%, "+X[2]+"%, "+X[3]+")"};N0.to.hwb=function(...X){let Q="";if(X.length>=4&&X[3]!==1)Q=", "+X[3];return"hwb("+X[0]+", "+X[1]+"%, "+X[2]+"%"+Q+")"};N0.to.keyword=function(...X){return XH[X.slice(0,3)]};function C8(X,Q,J){return Math.min(Math.max(Q,X),J)}function H6(X){let Q=Math.round(X).toString(16).toUpperCase();return Q.length<2?"0"+Q:Q}var QH={};for(let X of Object.keys(s0))QH[s0[X]]=X;var T={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"]}},B8=0.008856451679035631;function M1(X){let Q=X>0.0031308?1.055*X**0.4166666666666667-0.055:X*12.92;return Math.min(Math.max(0,Q),1)}function P1(X){return X>0.04045?((X+0.055)/1.055)**2.4:X/12.92}for(let X of Object.keys(T)){if(!("channels"in T[X]))throw Error("missing channels property: "+X);if(!("labels"in T[X]))throw Error("missing channel labels property: "+X);if(T[X].labels.length!==T[X].channels)throw Error("channel and label counts mismatch: "+X);let{channels:Q,labels:J}=T[X];delete T[X].channels,delete T[X].labels,Object.defineProperty(T[X],"channels",{value:Q}),Object.defineProperty(T[X],"labels",{value:J})}T.rgb.hsl=function(X){let Q=X[0]/255,J=X[1]/255,H=X[2]/255,K=Math.min(Q,J,H),Y=Math.max(Q,J,H),B=Y-K,U,N;switch(Y){case K:{U=0;break}case Q:{U=(J-H)/B;break}case J:{U=2+(H-Q)/B;break}case H:{U=4+(Q-J)/B;break}}if(U=Math.min(U*60,360),U<0)U+=360;let z=(K+Y)/2;if(Y===K)N=0;else if(z<=0.5)N=B/(Y+K);else N=B/(2-Y-K);return[U,N*100,z*100]};T.rgb.hsv=function(X){let Q,J,H,K,Y,B=X[0]/255,U=X[1]/255,N=X[2]/255,z=Math.max(B,U,N),R=z-Math.min(B,U,N),M=function(P){return(z-P)/6/R+0.5};if(R===0)K=0,Y=0;else{switch(Y=R/z,Q=M(B),J=M(U),H=M(N),z){case B:{K=H-J;break}case U:{K=0.3333333333333333+Q-H;break}case N:{K=0.6666666666666666+J-Q;break}}if(K<0)K+=1;else if(K>1)K-=1}return[K*360,Y*100,z*100]};T.rgb.hwb=function(X){let Q=X[0],J=X[1],H=X[2],K=T.rgb.hsl(X)[0],Y=0.00392156862745098*Math.min(Q,Math.min(J,H));return H=1-0.00392156862745098*Math.max(Q,Math.max(J,H)),[K,Y*100,H*100]};T.rgb.oklab=function(X){let Q=P1(X[0]/255),J=P1(X[1]/255),H=P1(X[2]/255),K=Math.cbrt(0.4122214708*Q+0.5363325363*J+0.0514459929*H),Y=Math.cbrt(0.2119034982*Q+0.6806995451*J+0.1073969566*H),B=Math.cbrt(0.0883024619*Q+0.2817188376*J+0.6299787005*H),U=0.2104542553*K+0.793617785*Y-0.0040720468*B,N=1.9779984951*K-2.428592205*Y+0.4505937099*B,z=0.0259040371*K+0.7827717662*Y-0.808675766*B;return[U*100,N*100,z*100]};T.rgb.cmyk=function(X){let Q=X[0]/255,J=X[1]/255,H=X[2]/255,K=Math.min(1-Q,1-J,1-H),Y=(1-Q-K)/(1-K)||0,B=(1-J-K)/(1-K)||0,U=(1-H-K)/(1-K)||0;return[Y*100,B*100,U*100,K*100]};function oN(X,Q){return(X[0]-Q[0])**2+(X[1]-Q[1])**2+(X[2]-Q[2])**2}T.rgb.keyword=function(X){let Q=QH[X];if(Q)return Q;let J=Number.POSITIVE_INFINITY,H;for(let K of Object.keys(s0)){let Y=s0[K],B=oN(X,Y);if(B<J)J=B,H=K}return H};T.keyword.rgb=function(X){return s0[X]};T.rgb.xyz=function(X){let Q=P1(X[0]/255),J=P1(X[1]/255),H=P1(X[2]/255),K=Q*0.4124564+J*0.3575761+H*0.1804375,Y=Q*0.2126729+J*0.7151522+H*0.072175,B=Q*0.0193339+J*0.119192+H*0.9503041;return[K*100,Y*100,B*100]};T.rgb.lab=function(X){let Q=T.rgb.xyz(X),J=Q[0],H=Q[1],K=Q[2];J/=95.047,H/=100,K/=108.883,J=J>B8?J**0.3333333333333333:7.787*J+0.13793103448275862,H=H>B8?H**0.3333333333333333:7.787*H+0.13793103448275862,K=K>B8?K**0.3333333333333333:7.787*K+0.13793103448275862;let Y=116*H-16,B=500*(J-H),U=200*(H-K);return[Y,B,U]};T.hsl.rgb=function(X){let Q=X[0]/360,J=X[1]/100,H=X[2]/100,K,Y;if(J===0)return Y=H*255,[Y,Y,Y];let B=H<0.5?H*(1+J):H+J-H*J,U=2*H-B,N=[0,0,0];for(let z=0;z<3;z++){if(K=Q+0.3333333333333333*-(z-1),K<0)K++;if(K>1)K--;if(6*K<1)Y=U+(B-U)*6*K;else if(2*K<1)Y=B;else if(3*K<2)Y=U+(B-U)*(0.6666666666666666-K)*6;else Y=U;N[z]=Y*255}return N};T.hsl.hsv=function(X){let Q=X[0],J=X[1]/100,H=X[2]/100,K=J,Y=Math.max(H,0.01);H*=2,J*=H<=1?H:2-H,K*=Y<=1?Y:2-Y;let B=(H+J)/2,U=H===0?2*K/(Y+K):2*J/(H+J);return[Q,U*100,B*100]};T.hsv.rgb=function(X){let Q=X[0]/60,J=X[1]/100,H=X[2]/100,K=Math.floor(Q)%6,Y=Q-Math.floor(Q),B=255*H*(1-J),U=255*H*(1-J*Y),N=255*H*(1-J*(1-Y));switch(H*=255,K){case 0:return[H,N,B];case 1:return[U,H,B];case 2:return[B,H,N];case 3:return[B,U,H];case 4:return[N,B,H];case 5:return[H,B,U]}};T.hsv.hsl=function(X){let Q=X[0],J=X[1]/100,H=X[2]/100,K=Math.max(H,0.01),Y,B;B=(2-J)*H;let U=(2-J)*K;return Y=J*K,Y/=U<=1?U:2-U,Y=Y||0,B/=2,[Q,Y*100,B*100]};T.hwb.rgb=function(X){let Q=X[0]/360,J=X[1]/100,H=X[2]/100,K=J+H,Y;if(K>1)J/=K,H/=K;let B=Math.floor(6*Q),U=1-H;if(Y=6*Q-B,(B&1)!==0)Y=1-Y;let N=J+Y*(U-J),z,R,M;switch(B){default:case 6:case 0:{z=U,R=N,M=J;break}case 1:{z=N,R=U,M=J;break}case 2:{z=J,R=U,M=N;break}case 3:{z=J,R=N,M=U;break}case 4:{z=N,R=J,M=U;break}case 5:{z=U,R=J,M=N;break}}return[z*255,R*255,M*255]};T.cmyk.rgb=function(X){let Q=X[0]/100,J=X[1]/100,H=X[2]/100,K=X[3]/100,Y=1-Math.min(1,Q*(1-K)+K),B=1-Math.min(1,J*(1-K)+K),U=1-Math.min(1,H*(1-K)+K);return[Y*255,B*255,U*255]};T.xyz.rgb=function(X){let Q=X[0]/100,J=X[1]/100,H=X[2]/100,K,Y,B;return K=Q*3.2404542+J*-1.5371385+H*-0.4985314,Y=Q*-0.969266+J*1.8760108+H*0.041556,B=Q*0.0556434+J*-0.2040259+H*1.0572252,K=M1(K),Y=M1(Y),B=M1(B),[K*255,Y*255,B*255]};T.xyz.lab=function(X){let Q=X[0],J=X[1],H=X[2];Q/=95.047,J/=100,H/=108.883,Q=Q>B8?Q**0.3333333333333333:7.787*Q+0.13793103448275862,J=J>B8?J**0.3333333333333333:7.787*J+0.13793103448275862,H=H>B8?H**0.3333333333333333:7.787*H+0.13793103448275862;let K=116*J-16,Y=500*(Q-J),B=200*(J-H);return[K,Y,B]};T.xyz.oklab=function(X){let Q=X[0]/100,J=X[1]/100,H=X[2]/100,K=Math.cbrt(0.8189330101*Q+0.3618667424*J-0.1288597137*H),Y=Math.cbrt(0.0329845436*Q+0.9293118715*J+0.0361456387*H),B=Math.cbrt(0.0482003018*Q+0.2643662691*J+0.633851707*H),U=0.2104542553*K+0.793617785*Y-0.0040720468*B,N=1.9779984951*K-2.428592205*Y+0.4505937099*B,z=0.0259040371*K+0.7827717662*Y-0.808675766*B;return[U*100,N*100,z*100]};T.oklab.oklch=function(X){return T.lab.lch(X)};T.oklab.xyz=function(X){let Q=X[0]/100,J=X[1]/100,H=X[2]/100,K=(0.999999998*Q+0.396337792*J+0.215803758*H)**3,Y=(1.000000008*Q-0.105561342*J-0.063854175*H)**3,B=(1.000000055*Q-0.089484182*J-1.291485538*H)**3,U=1.227013851*K-0.55779998*Y+0.281256149*B,N=-0.040580178*K+1.11225687*Y-0.071676679*B,z=-0.076381285*K-0.421481978*Y+1.58616322*B;return[U*100,N*100,z*100]};T.oklab.rgb=function(X){let Q=X[0]/100,J=X[1]/100,H=X[2]/100,K=(Q+0.3963377774*J+0.2158037573*H)**3,Y=(Q-0.1055613458*J-0.0638541728*H)**3,B=(Q-0.0894841775*J-1.291485548*H)**3,U=M1(4.0767416621*K-3.3077115913*Y+0.2309699292*B),N=M1(-1.2684380046*K+2.6097574011*Y-0.3413193965*B),z=M1(-0.0041960863*K-0.7034186147*Y+1.707614701*B);return[U*255,N*255,z*255]};T.oklch.oklab=function(X){return T.lch.lab(X)};T.lab.xyz=function(X){let Q=X[0],J=X[1],H=X[2],K,Y,B;Y=(Q+16)/116,K=J/500+Y,B=Y-H/200;let U=Y**3,N=K**3,z=B**3;return Y=U>B8?U:(Y-0.13793103448275862)/7.787,K=N>B8?N:(K-0.13793103448275862)/7.787,B=z>B8?z:(B-0.13793103448275862)/7.787,K*=95.047,Y*=100,B*=108.883,[K,Y,B]};T.lab.lch=function(X){let Q=X[0],J=X[1],H=X[2],K;if(K=Math.atan2(H,J)*360/2/Math.PI,K<0)K+=360;let B=Math.sqrt(J*J+H*H);return[Q,B,K]};T.lch.lab=function(X){let Q=X[0],J=X[1],K=X[2]/360*2*Math.PI,Y=J*Math.cos(K),B=J*Math.sin(K);return[Q,Y,B]};T.rgb.ansi16=function(X,Q=null){let[J,H,K]=X,Y=Q===null?T.rgb.hsv(X)[2]:Q;if(Y=Math.round(Y/50),Y===0)return 30;let B=30+(Math.round(K/255)<<2|Math.round(H/255)<<1|Math.round(J/255));if(Y===2)B+=60;return B};T.hsv.ansi16=function(X){return T.rgb.ansi16(T.hsv.rgb(X),X[2])};T.rgb.ansi256=function(X){let Q=X[0],J=X[1],H=X[2];if(Q>>4===J>>4&&J>>4===H>>4){if(Q<8)return 16;if(Q>248)return 231;return Math.round((Q-8)/247*24)+232}return 16+36*Math.round(Q/255*5)+6*Math.round(J/255*5)+Math.round(H/255*5)};T.ansi16.rgb=function(X){X=X[0];let Q=X%10;if(Q===0||Q===7){if(X>50)Q+=3.5;return Q=Q/10.5*255,[Q,Q,Q]}let J=(Math.trunc(X>50)+1)*0.5,H=(Q&1)*J*255,K=(Q>>1&1)*J*255,Y=(Q>>2&1)*J*255;return[H,K,Y]};T.ansi256.rgb=function(X){if(X=X[0],X>=232){let Y=(X-232)*10+8;return[Y,Y,Y]}X-=16;let Q,J=Math.floor(X/36)/5*255,H=Math.floor((Q=X%36)/6)/5*255,K=Q%6/5*255;return[J,H,K]};T.rgb.hex=function(X){let J=(((Math.round(X[0])&255)<<16)+((Math.round(X[1])&255)<<8)+(Math.round(X[2])&255)).toString(16).toUpperCase();return"000000".slice(J.length)+J};T.hex.rgb=function(X){let Q=X.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!Q)return[0,0,0];let J=Q[0];if(Q[0].length===3)J=[...J].map((U)=>U+U).join("");let H=Number.parseInt(J,16),K=H>>16&255,Y=H>>8&255,B=H&255;return[K,Y,B]};T.rgb.hcg=function(X){let Q=X[0]/255,J=X[1]/255,H=X[2]/255,K=Math.max(Math.max(Q,J),H),Y=Math.min(Math.min(Q,J),H),B=K-Y,U,N=B<1?Y/(1-B):0;if(B<=0)U=0;else if(K===Q)U=(J-H)/B%6;else if(K===J)U=2+(H-Q)/B;else U=4+(Q-J)/B;return U/=6,U%=1,[U*360,B*100,N*100]};T.hsl.hcg=function(X){let Q=X[1]/100,J=X[2]/100,H=J<0.5?2*Q*J:2*Q*(1-J),K=0;if(H<1)K=(J-0.5*H)/(1-H);return[X[0],H*100,K*100]};T.hsv.hcg=function(X){let Q=X[1]/100,J=X[2]/100,H=Q*J,K=0;if(H<1)K=(J-H)/(1-H);return[X[0],H*100,K*100]};T.hcg.rgb=function(X){let Q=X[0]/360,J=X[1]/100,H=X[2]/100;if(J===0)return[H*255,H*255,H*255];let K=[0,0,0],Y=Q%1*6,B=Y%1,U=1-B,N=0;switch(Math.floor(Y)){case 0:{K[0]=1,K[1]=B,K[2]=0;break}case 1:{K[0]=U,K[1]=1,K[2]=0;break}case 2:{K[0]=0,K[1]=1,K[2]=B;break}case 3:{K[0]=0,K[1]=U,K[2]=1;break}case 4:{K[0]=B,K[1]=0,K[2]=1;break}default:K[0]=1,K[1]=0,K[2]=U}return N=(1-J)*H,[(J*K[0]+N)*255,(J*K[1]+N)*255,(J*K[2]+N)*255]};T.hcg.hsv=function(X){let Q=X[1]/100,J=X[2]/100,H=Q+J*(1-Q),K=0;if(H>0)K=Q/H;return[X[0],K*100,H*100]};T.hcg.hsl=function(X){let Q=X[1]/100,H=X[2]/100*(1-Q)+0.5*Q,K=0;if(H>0&&H<0.5)K=Q/(2*H);else if(H>=0.5&&H<1)K=Q/(2*(1-H));return[X[0],K*100,H*100]};T.hcg.hwb=function(X){let Q=X[1]/100,J=X[2]/100,H=Q+J*(1-Q);return[X[0],(H-Q)*100,(1-H)*100]};T.hwb.hcg=function(X){let Q=X[1]/100,H=1-X[2]/100,K=H-Q,Y=0;if(K<1)Y=(H-K)/(1-K);return[X[0],K*100,Y*100]};T.apple.rgb=function(X){return[X[0]/65535*255,X[1]/65535*255,X[2]/65535*255]};T.rgb.apple=function(X){return[X[0]/255*65535,X[1]/255*65535,X[2]/255*65535]};T.gray.rgb=function(X){return[X[0]/100*255,X[0]/100*255,X[0]/100*255]};T.gray.hsl=function(X){return[0,0,X[0]]};T.gray.hsv=T.gray.hsl;T.gray.hwb=function(X){return[0,100,X[0]]};T.gray.cmyk=function(X){return[0,0,0,X[0]]};T.gray.lab=function(X){return[X[0],0,0]};T.gray.hex=function(X){let Q=Math.round(X[0]/100*255)&255,H=((Q<<16)+(Q<<8)+Q).toString(16).toUpperCase();return"000000".slice(H.length)+H};T.rgb.gray=function(X){return[(X[0]+X[1]+X[2])/3/255*100]};function tN(){let X={},Q=Object.keys(T);for(let{length:J}=Q,H=0;H<J;H++)X[Q[H]]={distance:-1,parent:null};return X}function eN(X){let Q=tN(),J=[X];Q[X].distance=0;while(J.length>0){let H=J.pop(),K=Object.keys(T[H]);for(let{length:Y}=K,B=0;B<Y;B++){let U=K[B],N=Q[U];if(N.distance===-1)N.distance=Q[H].distance+1,N.parent=H,J.unshift(U)}}return Q}function X3(X,Q){return function(J){return Q(X(J))}}function Q3(X,Q){let J=[Q[X].parent,X],H=T[Q[X].parent][X],K=Q[X].parent;while(Q[K].parent)J.unshift(Q[K].parent),H=X3(T[Q[K].parent][K],H),K=Q[K].parent;return H.conversion=J,H}function J3(X){let Q=eN(X),J={},H=Object.keys(Q);for(let{length:K}=H,Y=0;Y<K;Y++){let B=H[Y];if(Q[B].parent===null)continue;J[B]=Q3(B,Q)}return J}var z0={},Z3=Object.keys(T);function H3(X){let Q=function(...J){let H=J[0];if(H===void 0||H===null)return H;if(H.length>1)J=H;return X(J)};if("conversion"in X)Q.conversion=X.conversion;return Q}function G3(X){let Q=function(...J){let H=J[0];if(H===void 0||H===null)return H;if(H.length>1)J=H;let K=X(J);if(typeof K==="object")for(let{length:Y}=K,B=0;B<Y;B++)K[B]=Math.round(K[B]);return K};if("conversion"in X)Q.conversion=X.conversion;return Q}for(let X of Z3){z0[X]={},Object.defineProperty(z0[X],"channels",{value:T[X].channels}),Object.defineProperty(z0[X],"labels",{value:T[X].labels});let Q=J3(X),J=Object.keys(Q);for(let H of J){let K=Q[H];z0[X][H]=G3(K),z0[X][H].raw=H3(K)}}var JH=["keyword","gray","hex"],VX={};for(let X of Object.keys(z0))VX[[...z0[X].labels].sort().join("")]=X;var BX={};function W0(X,Q){if(!(this instanceof W0))return new W0(X,Q);if(Q&&Q in JH)Q=null;if(Q&&!(Q in z0))throw Error("Unknown model: "+Q);let J,H;if(X==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(X instanceof W0)this.model=X.model,this.color=[...X.color],this.valpha=X.valpha;else if(typeof X==="string"){let K=N0.get(X);if(K===null)throw Error("Unable to parse color from string: "+X);this.model=K.model,H=z0[this.model].channels,this.color=K.value.slice(0,H),this.valpha=typeof K.value[H]==="number"?K.value[H]:1}else if(X.length>0){this.model=Q||"rgb",H=z0[this.model].channels;let K=Array.prototype.slice.call(X,0,H);this.color=UX(K,H),this.valpha=typeof X[H]==="number"?X[H]:1}else if(typeof X==="number")this.model="rgb",this.color=[X>>16&255,X>>8&255,X&255],this.valpha=1;else{this.valpha=1;let K=Object.keys(X);if("alpha"in X)K.splice(K.indexOf("alpha"),1),this.valpha=typeof X.alpha==="number"?X.alpha:0;let Y=K.sort().join("");if(!(Y in VX))throw Error("Unable to parse color from object: "+JSON.stringify(X));this.model=VX[Y];let{labels:B}=z0[this.model],U=[];for(J=0;J<B.length;J++)U.push(X[B[J]]);this.color=UX(U)}if(BX[this.model]){H=z0[this.model].channels;for(J=0;J<H;J++){let K=BX[this.model][J];if(K)this.color[J]=K(this.color[J])}}if(this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze)Object.freeze(this)}W0.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(X){let Q=this.model in N0.to?this:this.rgb();Q=Q.round(typeof X==="number"?X:1);let J=Q.valpha===1?Q.color:[...Q.color,this.valpha];return N0.to[Q.model](...J)},percentString(X){let Q=this.rgb().round(typeof X==="number"?X:1),J=Q.valpha===1?Q.color:[...Q.color,this.valpha];return N0.to.rgb.percent(...J)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let X={},{channels:Q}=z0[this.model],{labels:J}=z0[this.model];for(let H=0;H<Q;H++)X[J[H]]=this.color[H];if(this.valpha!==1)X.alpha=this.valpha;return X},unitArray(){let X=this.rgb().color;if(X[0]/=255,X[1]/=255,X[2]/=255,this.valpha!==1)X.push(this.valpha);return X},unitObject(){let X=this.rgb().object();if(X.r/=255,X.g/=255,X.b/=255,this.valpha!==1)X.alpha=this.valpha;return X},round(X){return X=Math.max(X||0,0),new W0([...this.color.map(q3(X)),this.valpha],this.model)},alpha(X){if(X!==void 0)return new W0([...this.color,Math.max(0,Math.min(1,X))],this.model);return this.valpha},red:H0("rgb",0,U0(255)),green:H0("rgb",1,U0(255)),blue:H0("rgb",2,U0(255)),hue:H0(["hsl","hsv","hsl","hwb","hcg"],0,(X)=>(X%360+360)%360),saturationl:H0("hsl",1,U0(100)),lightness:H0("hsl",2,U0(100)),saturationv:H0("hsv",1,U0(100)),value:H0("hsv",2,U0(100)),chroma:H0("hcg",1,U0(100)),gray:H0("hcg",2,U0(100)),white:H0("hwb",1,U0(100)),wblack:H0("hwb",2,U0(100)),cyan:H0("cmyk",0,U0(100)),magenta:H0("cmyk",1,U0(100)),yellow:H0("cmyk",2,U0(100)),black:H0("cmyk",3,U0(100)),x:H0("xyz",0,U0(95.047)),y:H0("xyz",1,U0(100)),z:H0("xyz",2,U0(108.833)),l:H0("lab",0,U0(100)),a:H0("lab",1),b:H0("lab",2),keyword(X){if(X!==void 0)return new W0(X);return z0[this.model].keyword(this.color)},hex(X){if(X!==void 0)return new W0(X);return N0.to.hex(...this.rgb().round().color)},hexa(X){if(X!==void 0)return new W0(X);let Q=this.rgb().round().color,J=Math.round(this.valpha*255).toString(16).toUpperCase();if(J.length===1)J="0"+J;return N0.to.hex(...Q)+J},rgbNumber(){let X=this.rgb().color;return(X[0]&255)<<16|(X[1]&255)<<8|X[2]&255},luminosity(){let X=this.rgb().color,Q=[];for(let[J,H]of X.entries()){let K=H/255;Q[J]=K<=0.04045?K/12.92:((K+0.055)/1.055)**2.4}return 0.2126*Q[0]+0.7152*Q[1]+0.0722*Q[2]},contrast(X){let Q=this.luminosity(),J=X.luminosity();if(Q>J)return(Q+0.05)/(J+0.05);return(J+0.05)/(Q+0.05)},level(X){let Q=this.contrast(X);if(Q>=7)return"AAA";return Q>=4.5?"AA":""},isDark(){let X=this.rgb().color;return(X[0]*2126+X[1]*7152+X[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let X=this.rgb();for(let Q=0;Q<3;Q++)X.color[Q]=255-X.color[Q];return X},lighten(X){let Q=this.hsl();return Q.color[2]+=Q.color[2]*X,Q},darken(X){let Q=this.hsl();return Q.color[2]-=Q.color[2]*X,Q},saturate(X){let Q=this.hsl();return Q.color[1]+=Q.color[1]*X,Q},desaturate(X){let Q=this.hsl();return Q.color[1]-=Q.color[1]*X,Q},whiten(X){let Q=this.hwb();return Q.color[1]+=Q.color[1]*X,Q},blacken(X){let Q=this.hwb();return Q.color[2]+=Q.color[2]*X,Q},grayscale(){let X=this.rgb().color,Q=X[0]*0.3+X[1]*0.59+X[2]*0.11;return W0.rgb(Q,Q,Q)},fade(X){return this.alpha(this.valpha-this.valpha*X)},opaquer(X){return this.alpha(this.valpha+this.valpha*X)},rotate(X){let Q=this.hsl(),J=Q.color[0];return J=(J+X)%360,J=J<0?360+J:J,Q.color[0]=J,Q},mix(X,Q){if(!X||!X.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof X);let J=X.rgb(),H=this.rgb(),K=Q===void 0?0.5:Q,Y=2*K-1,B=J.alpha()-H.alpha(),U=((Y*B===-1?Y:(Y+B)/(1+Y*B))+1)/2,N=1-U;return W0.rgb(U*J.red()+N*H.red(),U*J.green()+N*H.green(),U*J.blue()+N*H.blue(),J.alpha()*K+H.alpha()*(1-K))}};for(let X of Object.keys(z0)){if(JH.includes(X))continue;let{channels:Q}=z0[X];W0.prototype[X]=function(...J){if(this.model===X)return new W0(this);if(J.length>0)return new W0(J,X);return new W0([...Y3(z0[this.model][X].raw(this.color)),this.valpha],X)},W0[X]=function(...J){let H=J[0];if(typeof H==="number")H=UX(J,Q);return new W0(H,X)}}function K3(X,Q){return Number(X.toFixed(Q))}function q3(X){return function(Q){return K3(Q,X)}}function H0(X,Q,J){X=Array.isArray(X)?X:[X];for(let H of X)(BX[H]||=[])[Q]=J;return X=X[0],function(H){let K;if(H!==void 0){if(J)H=J(H);return K=this[X](),K.color[Q]=H,K}if(K=this[X]().color[Q],J)K=J(K);return K}}function U0(X){return function(Q){return Math.max(0,Math.min(X,Q))}}function Y3(X){return Array.isArray(X)?X:[X]}function UX(X,Q){for(let J=0;J<Q;J++)if(typeof X[J]!=="number")X[J]=0;return X}function V3(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}var B3=function(Q){for(var J=0,H=0;J<Q.length;H=Q.charCodeAt(J++)+((H<<5)-H));var K=Math.floor(Math.abs(Math.sin(H)*1e4%1*16777216)).toString(16);return"#"+Array(6-K.length+1).join("0")+K},eZ=V3(B3);function U3(X,Q){let J=X.split(Q||":"),H=eZ(J[0]);if(!J.length)return H;for(let K=0,Y=J.length-1;K<Y;K++)H=W0(H).mix(W0(eZ(J[K+1]))).saturate(1).hex();return H}ZH.exports=U3});var KH=_((tA,GH)=>{function d0(X,Q){if(Q)return new d0(X).style(Q);if(!(this instanceof d0))return new d0(X);this.text=X}d0.prototype.prefix="\x1B[";d0.prototype.suffix="m";d0.prototype.hex=function(Q){if(Q=Q[0]==="#"?Q.substring(1):Q,Q.length===3)Q=Q.split(""),Q[5]=Q[2],Q[4]=Q[2],Q[3]=Q[1],Q[2]=Q[1],Q[1]=Q[0],Q=Q.join("");var J=Q.substring(0,2),H=Q.substring(2,4),K=Q.substring(4,6);return[parseInt(J,16),parseInt(H,16),parseInt(K,16)]};d0.prototype.rgb=function(Q,J,H){var K=Q/255*5,Y=J/255*5,B=H/255*5;return this.ansi(K,Y,B)};d0.prototype.ansi=function(Q,J,H){var K=Math.round(Q),Y=Math.round(J),B=Math.round(H);return 16+K*36+Y*6+B};d0.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};d0.prototype.style=function(Q){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(Q))+this.suffix+this.text+this.reset()};GH.exports=d0});var YH=_((eA,qH)=>{var W3=HH(),N3=KH();qH.exports=function(Q,J){var H=J.namespace,K=J.colors!==!1?N3(H+":",W3(H)):H+":";return Q[0]=K+" "+Q[0],Q}});var BH=_((X2,VH)=>{VH.exports=function(Q,J){if(!J)return!1;var H=J.split(/[\s,]+/),K=0;for(;K<H.length;K++){if(J=H[K].replace("*",".*?"),J.charAt(0)==="-"){if(new RegExp("^"+J.substr(1)+"$").test(Q))return!1;continue}if(new RegExp("^"+J+"$").test(Q))return!0}return!1}});var WH=_((Q2,UH)=>{var $3=BH();UH.exports=function(Q){return function(H){try{return $3(H,Q())}catch(K){}return!1}}});var $H=_((J2,NH)=>{var z3=WH();NH.exports=z3(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var AH=_((Z2,zH)=>{zH.exports=function(X,Q){try{Function.prototype.apply.call(console.log,console,Q)}catch(J){}}});var J4=_((H2,IH)=>{var A3=tZ(),I3=h("tty").isatty(1),G6=A3(function X(Q,J){if(J=J||{},J.colors="colors"in J?J.colors:I3,J.namespace=Q,J.prod=!1,J.dev=!0,!X.enabled(Q)&&!(J.force||X.force))return X.nope(J);return X.yep(J)});G6.modify(YH());G6.use($H());G6.set(AH());IH.exports=G6});var PH=_((G2,MH)=>{var WX=h("fs"),{StringDecoder:M3}=h("string_decoder"),{Stream:P3}=d8();function _3(){}MH.exports=(X,Q)=>{let J=Buffer.alloc(65536),H=new M3("utf8"),K=new P3,Y="",B=0,U=0;if(X.start===-1)delete X.start;if(K.readable=!0,K.destroy=()=>{K.destroyed=!0,K.emit("end"),K.emit("close")},WX.open(X.file,"a+","0644",(N,z)=>{if(N){if(!Q)K.emit("error",N);else Q(N);K.destroy();return}(function R(){if(K.destroyed){WX.close(z,_3);return}return WX.read(z,J,0,J.length,B,(M,P)=>{if(M){if(!Q)K.emit("error",M);else Q(M);K.destroy();return}if(!P){if(Y){if(X.start==null||U>X.start)if(!Q)K.emit("line",Y);else Q(null,Y);U++,Y=""}return setTimeout(R,1000)}let L=H.write(J.slice(0,P));if(!Q)K.emit("data",L);L=(Y+L).split(/\n+/);let A=L.length-1,D=0;for(;D<A;D++){if(X.start==null||U>X.start)if(!Q)K.emit("line",L[D]);else Q(null,L[D]);U++}return Y=L[A],B+=P,R()})})()}),!Q)return K;return K.destroy}});var EH=_((K2,CH)=>{var F0=h("fs"),A0=h("path"),_H=uZ(),R3=h("zlib"),{MESSAGE:C3}=K0(),{Stream:E3,PassThrough:RH}=d8(),D3=u8(),m0=J4()("winston:file"),L3=h("os"),O3=PH();CH.exports=class extends D3{constructor(Q={}){super(Q);this.name=Q.name||"file";function J(H,...K){K.slice(1).forEach((Y)=>{if(Q[Y])throw Error(`Cannot set ${Y} and ${H} together`)})}if(this._stream=new RH,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),Q.filename||Q.dirname)J("filename or dirname","stream"),this._basename=this.filename=Q.filename?A0.basename(Q.filename):"winston.log",this.dirname=Q.dirname||A0.dirname(Q.filename),this.options=Q.options||{flags:"a"};else if(Q.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),J("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(Q.stream)),this.dirname=A0.dirname(this._dest.path);else throw Error("Cannot log to file without filename or stream.");if(this.maxsize=Q.maxsize||null,this.rotationFormat=Q.rotationFormat||!1,this.zippedArchive=Q.zippedArchive||!1,this.maxFiles=Q.maxFiles||null,this.eol=typeof Q.eol==="string"?Q.eol:L3.EOL,this.tailable=Q.tailable||!1,this.lazy=Q.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);if(!this.lazy)this.open()}finishIfEnding(){if(this._ending)if(this._opening)this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())});else this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}_final(Q){if(this._opening){this.once("open",()=>this._final(Q));return}if(this._stream.end(),!this._dest)return Q();if(this._dest.writableFinished)return Q();this._dest.once("finish",Q),this._dest.once("error",Q)}log(Q,J=()=>{}){if(this.silent)return J(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(Q,J)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(Q,J)});return}if(this.lazy){if(!this._fileExist){if(!this._opening)this.open();this.once("open",()=>{this._fileExist=!0,this.log(Q,J);return});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{if(!this._opening)this.open();this.once("open",()=>{this.log(Q,J);return});return});return}}let H=`${Q[C3]}${this.eol}`,K=Buffer.byteLength(H);function Y(){if(this._size+=K,this._pendingSize-=K,m0("logged %s %s",this._size,H),this.emit("logged",Q),this._rotate)return;if(this._opening)return;if(!this._needsNewFile())return;if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}if(this._pendingSize+=K,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize))this.rotatedWhileOpening=!0;let B=this._stream.write(H,Y.bind(this));if(!B)this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,J()});else J();return m0("written",B,this._drain),this.finishIfEnding(),B}query(Q,J){if(typeof Q==="function")J=Q,Q={};Q=M(Q);let H=A0.join(this.dirname,this.filename),K="",Y=[],B=0,U=F0.createReadStream(H,{encoding:"utf8"});U.on("error",(P)=>{if(U.readable)U.destroy();if(!J)return;return P.code!=="ENOENT"?J(P):J(null,Y)}),U.on("data",(P)=>{P=(K+P).split(/\n+/);let L=P.length-1,A=0;for(;A<L;A++){if(!Q.start||B>=Q.start)N(P[A]);B++}K=P[L]}),U.on("close",()=>{if(K)N(K,!0);if(Q.order==="desc")Y=Y.reverse();if(J)J(null,Y)});function N(P,L){try{let A=JSON.parse(P);if(R(A))z(A)}catch(A){if(!L)U.emit("error",A)}}function z(P){if(Q.rows&&Y.length>=Q.rows&&Q.order!=="desc"){if(U.readable)U.destroy();return}if(Q.fields)P=Q.fields.reduce((L,A)=>{return L[A]=P[A],L},{});if(Q.order==="desc"){if(Y.length>=Q.rows)Y.shift()}Y.push(P)}function R(P){if(!P)return;if(typeof P!=="object")return;let L=new Date(P.timestamp);if(Q.from&&L<Q.from||Q.until&&L>Q.until||Q.level&&Q.level!==P.level)return;return!0}function M(P){if(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);if(P.from=P.from||P.until-86400000,typeof P.from!=="object")P.from=new Date(P.from);return P.order=P.order||"desc",P}}stream(Q={}){let J=A0.join(this.dirname,this.filename),H=new E3,K={file:J,start:Q.start};return H.destroy=O3(K,(Y,B)=>{if(Y)return H.emit("error",Y);try{H.emit("data",B),B=JSON.parse(B),H.emit("log",B)}catch(U){H.emit("error",U)}}),H}open(){if(!this.filename)return;if(this._opening)return;this._opening=!0,this.stat((Q,J)=>{if(Q)return this.emit("error",Q);m0("stat done: %s { size: %s }",this.filename,J),this._size=J,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{if(!this._stream.emit("rotate"))this._rotate=!1})})}stat(Q){let J=this._getFile(),H=A0.join(this.dirname,J);F0.stat(H,(K,Y)=>{if(K&&K.code==="ENOENT")return m0("ENOENT\xA0ok",H),this.filename=J,Q(null,0);if(K)return m0(`err ${K.code} ${H}`),Q(K);if(!Y||this._needsNewFile(Y.size))return this._incFile(()=>this.stat(Q));this.filename=J,Q(null,Y.size)})}close(Q){if(!this._stream)return;this._stream.end(()=>{if(Q)Q();this.emit("flush"),this.emit("closed")})}_needsNewFile(Q){return Q=Q||this._size,this.maxsize&&Q>=this.maxsize}_onError(Q){this.emit("error",Q)}_setupStream(Q){return Q.on("error",this._onError),Q}_cleanupStream(Q){return Q.removeListener("error",this._onError),Q.destroy(),Q}_rotateFile(){this._incFile(()=>this.open())}_endStream(Q=()=>{}){if(this._dest)this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),Q()});else Q()}_createStream(Q){let J=A0.join(this.dirname,this.filename);m0("create stream start",J,this.options);let H=F0.createWriteStream(J,this.options).on("error",(K)=>m0(K)).on("close",()=>m0("close",H.path,H.bytesWritten)).on("open",()=>{if(m0("file open ok",J),this.emit("open",J),Q.pipe(H),this.rotatedWhileOpening)this._stream=new RH,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(H),Q.end()});return m0("create stream ok",J),H}_incFile(Q){m0("_incFile",this.filename);let J=A0.extname(this._basename),H=A0.basename(this._basename,J),K=[];if(this.zippedArchive)K.push(function(Y){let B=this._created>0&&!this.tailable?this._created:"";this._compressFile(A0.join(this.dirname,`${H}${B}${J}`),A0.join(this.dirname,`${H}${B}${J}.gz`),Y)}.bind(this));K.push(function(Y){if(!this.tailable)this._created+=1,this._checkMaxFilesIncrementing(J,H,Y);else this._checkMaxFilesTailable(J,H,Y)}.bind(this)),_H(K,Q)}_getFile(){let Q=A0.extname(this._basename),J=A0.basename(this._basename,Q),H=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${J}${H}${Q}`:`${J}${Q}`}_checkMaxFilesIncrementing(Q,J,H){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(H);let K=this._created-this.maxFiles,Y=K!==0?K:"",B=this.zippedArchive?".gz":"",U=`${J}${Y}${Q}${B}`,N=A0.join(this.dirname,U);F0.unlink(N,H)}_checkMaxFilesTailable(Q,J,H){let K=[];if(!this.maxFiles)return;let Y=this.zippedArchive?".gz":"";for(let B=this.maxFiles-1;B>1;B--)K.push(function(U,N){let z=`${J}${U-1}${Q}${Y}`,R=A0.join(this.dirname,z);F0.exists(R,(M)=>{if(!M)return N(null);z=`${J}${U}${Q}${Y}`,F0.rename(R,A0.join(this.dirname,z),N)})}.bind(this,B));_H(K,()=>{F0.rename(A0.join(this.dirname,`${J}${Q}${Y}`),A0.join(this.dirname,`${J}1${Q}${Y}`),H)})}_compressFile(Q,J,H){F0.access(Q,F0.F_OK,(K)=>{if(K)return H();var Y=R3.createGzip(),B=F0.createReadStream(Q),U=F0.createWriteStream(J);U.on("finish",()=>{F0.unlink(Q,H)}),B.pipe(Y).pipe(U)})}_createLogDirIfNotExist(Q){if(!F0.existsSync(Q))F0.mkdirSync(Q,{recursive:!0})}}});var LH=_((q2,DH)=>{var T3=h("http"),F3=h("https"),{Stream:j3}=d8(),S3=u8(),{configure:w3}=g1();DH.exports=class extends S3{constructor(Q={}){super(Q);if(this.options=Q,this.name=Q.name||"http",this.ssl=!!Q.ssl,this.host=Q.host||"localhost",this.port=Q.port,this.auth=Q.auth,this.path=Q.path||"",this.maximumDepth=Q.maximumDepth,this.agent=Q.agent,this.headers=Q.headers||{},this.headers["content-type"]="application/json",this.batch=Q.batch||!1,this.batchInterval=Q.batchInterval||5000,this.batchCount=Q.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},!this.port)this.port=this.ssl?443:80}log(Q,J){if(this._request(Q,null,null,(H,K)=>{if(K&&K.statusCode!==200)H=Error(`Invalid HTTP Status Code: ${K.statusCode}`);if(H)this.emit("warn",H);else this.emit("logged",Q)}),J)setImmediate(J)}query(Q,J){if(typeof Q==="function")J=Q,Q={};Q={method:"query",params:this.normalizeQuery(Q)};let H=Q.params.auth||null;delete Q.params.auth;let K=Q.params.path||null;delete Q.params.path,this._request(Q,H,K,(Y,B,U)=>{if(B&&B.statusCode!==200)Y=Error(`Invalid HTTP Status Code: ${B.statusCode}`);if(Y)return J(Y);if(typeof U==="string")try{U=JSON.parse(U)}catch(N){return J(N)}J(null,U)})}stream(Q={}){let J=new j3;Q={method:"stream",params:Q};let H=Q.params.path||null;delete Q.params.path;let K=Q.params.auth||null;delete Q.params.auth;let Y="",B=this._request(Q,K,H);return J.destroy=()=>B.destroy(),B.on("data",(U)=>{U=(Y+U).split(/\n+/);let N=U.length-1,z=0;for(;z<N;z++)try{J.emit("log",JSON.parse(U[z]))}catch(R){J.emit("error",R)}Y=U[N]}),B.on("error",(U)=>J.emit("error",U)),J}_request(Q,J,H,K){if(Q=Q||{},J=J||this.auth,H=H||this.path||"",this.batch)this._doBatch(Q,K,J,H);else this._doRequest(Q,K,J,H)}_doBatch(Q,J,H,K){if(this.batchOptions.push(Q),this.batchOptions.length===1){let Y=this;this.batchCallback=J,this.batchTimeoutID=setTimeout(function(){Y.batchTimeoutID=-1,Y._doBatchRequest(Y.batchCallback,H,K)},this.batchInterval)}if(this.batchOptions.length===this.batchCount)this._doBatchRequest(this.batchCallback,H,K)}_doBatchRequest(Q,J,H){if(this.batchTimeoutID>0)clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1;let K=this.batchOptions.slice();this.batchOptions=[],this._doRequest(K,Q,J,H)}_doRequest(Q,J,H,K){let Y=Object.assign({},this.headers);if(H&&H.bearer)Y.Authorization=`Bearer ${H.bearer}`;let B=(this.ssl?F3:T3).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${K.replace(/^\//,"")}`,headers:Y,auth:H&&H.username&&H.password?`${H.username}:${H.password}`:"",agent:this.agent});B.on("error",J),B.on("response",(N)=>N.on("end",()=>J(null,N)).resume());let U=w3({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});B.end(Buffer.from(U(Q,this.options.replacer),"utf8"))}}});var NX=_((Y2,OH)=>{var r0=(X)=>X!==null&&typeof X==="object"&&typeof X.pipe==="function";r0.writable=(X)=>r0(X)&&X.writable!==!1&&typeof X._write==="function"&&typeof X._writableState==="object";r0.readable=(X)=>r0(X)&&X.readable!==!1&&typeof X._read==="function"&&typeof X._readableState==="object";r0.duplex=(X)=>r0.writable(X)&&r0.readable(X);r0.transform=(X)=>r0.duplex(X)&&typeof X._transform==="function";OH.exports=r0});var FH=_((V2,TH)=>{var x3=NX(),{MESSAGE:v3}=K0(),y3=h("os"),k3=u8();TH.exports=class extends k3{constructor(Q={}){super(Q);if(!Q.stream||!x3(Q.stream))throw Error("options.stream is required.");this._stream=Q.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=Q.stream._writableState.objectMode,this.eol=typeof Q.eol==="string"?Q.eol:y3.EOL}log(Q,J){if(setImmediate(()=>this.emit("logged",Q)),this.isObjectMode){if(this._stream.write(Q),J)J();return}if(this._stream.write(`${Q[v3]}${this.eol}`),J)J();return}}});var jH=_((Z4)=>{Object.defineProperty(Z4,"Console",{configurable:!0,enumerable:!0,get(){return XZ()}});Object.defineProperty(Z4,"File",{configurable:!0,enumerable:!0,get(){return EH()}});Object.defineProperty(Z4,"Http",{configurable:!0,enumerable:!0,get(){return LH()}});Object.defineProperty(Z4,"Stream",{configurable:!0,enumerable:!0,get(){return FH()}})});var q6=_((b3)=>{var K6=H5(),{configs:$X}=K0();b3.cli=K6.levels($X.cli);b3.npm=K6.levels($X.npm);b3.syslog=K6.levels($X.syslog);b3.addColors=K6.levels});var wH=_((zX,SH)=>{Object.defineProperty(zX,"__esModule",{value:!0});var d3=X6(),m3=m8(d3),p3=Q6(),c3=m8(p3),l3=t5(),n3=m8(l3),i3=m5(),s3=m8(i3),r3=n5(),a3=m8(r3),o3=f8(),t3=m8(o3),e3=A1(),X$=m8(e3);function m8(X){return X&&X.__esModule?X:{default:X}}function Q$(X,Q,J){J=(0,s3.default)(J);var H=0,K=0,{length:Y}=X,B=!1;if(Y===0)J(null);function U(N,z){if(N===!1)B=!0;if(B===!0)return;if(N)J(N);else if(++K===Y||z===c3.default)J(null)}for(;H<Y;H++)Q(X[H],H,(0,a3.default)(U))}function J$(X,Q,J){return(0,n3.default)(X,1/0,Q,J)}function Z$(X,Q,J){var H=(0,m3.default)(X)?Q$:J$;return H(X,(0,t3.default)(Q),J)}zX.default=(0,X$.default)(Z$,3);SH.exports=zX.default});var vH=_((AX,xH)=>{Object.defineProperty(AX,"__esModule",{value:!0});AX.default=G$;function G$(X){return(Q,J,H)=>X(Q,H)}xH.exports=AX.default});var V6=_((IX,yH)=>{Object.defineProperty(IX,"__esModule",{value:!0});var q$=wH(),Y$=Y6(q$),V$=vH(),B$=Y6(V$),U$=f8(),W$=Y6(U$),N$=A1(),$$=Y6(N$);function Y6(X){return X&&X.__esModule?X:{default:X}}function z$(X,Q,J){return(0,Y$.default)(X,(0,B$.default)((0,W$.default)(Q)),J)}IX.default=(0,$$.default)(z$,3);yH.exports=IX.default});var bH=_((W2,kH)=>{var I$=Object.prototype.toString;kH.exports=function(Q){if(typeof Q.displayName==="string"&&Q.constructor.name)return Q.displayName;else if(typeof Q.name==="string"&&Q.name)return Q.name;if(typeof Q==="object"&&Q.constructor&&typeof Q.constructor.name==="string")return Q.constructor.name;var J=Q.toString(),H=I$.call(Q).slice(8,-1);if(H==="Function")J=J.substring(J.indexOf("(")+1,J.indexOf(")"));else J=H;return J||"anonymous"}});var MX=_((N2,hH)=>{var M$=bH();hH.exports=function(Q){var J=0,H;function K(){if(J)return H;return J=1,H=Q.apply(this,arguments),Q=null,H}return K.displayName=M$(Q),K}});var PX=_((R$)=>{R$.get=function(X){var Q=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var J={},H=Error.prepareStackTrace;Error.prepareStackTrace=function(Y,B){return B},Error.captureStackTrace(J,X||R$.get);var K=J.stack;return Error.prepareStackTrace=H,Error.stackTraceLimit=Q,K};R$.parse=function(X){if(!X.stack)return[];var Q=this,J=X.stack.split(`
28
+ `).slice(1);return J.map(function(H){if(H.match(/^\s*[-]{4,}$/))return Q._createParsedCallSite({fileName:H,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var K=H.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(!K)return;var Y=null,B=null,U=null,N=null,z=null,R=K[5]==="native";if(K[1]){U=K[1];var M=U.lastIndexOf(".");if(U[M-1]==".")M--;if(M>0){Y=U.substr(0,M),B=U.substr(M+1);var P=Y.indexOf(".Module");if(P>0)U=U.substr(P+1),Y=Y.substr(0,P)}N=null}if(B)N=Y,z=B;if(B==="<anonymous>")z=null,U=null;var L={fileName:K[2]||null,lineNumber:parseInt(K[3],10)||null,functionName:U,typeName:N,methodName:z,columnNumber:parseInt(K[4],10)||null,native:R};return Q._createParsedCallSite(L)}).filter(function(H){return!!H})};function H4(X){for(var Q in X)this[Q]=X[Q]}var P$=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],_$=["topLevel","eval","native","constructor"];P$.forEach(function(X){H4.prototype[X]=null,H4.prototype["get"+X[0].toUpperCase()+X.substr(1)]=function(){return this[X]}});_$.forEach(function(X){H4.prototype[X]=!1,H4.prototype["is"+X[0].toUpperCase()+X.substr(1)]=function(){return this[X]}});R$._createParsedCallSite=function(X){return new H4(X)}});var fH=_((z2,uH)=>{var{Writable:D$}=d8();uH.exports=class extends D${constructor(Q){super({objectMode:!0});if(!Q)throw Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=Q}_write(Q,J,H){if(Q.exception)return this.transport.log(Q,H);return H(),!0}}});var RX=_((A2,pH)=>{var dH=h("os"),L$=V6(),_X=J4()("winston:exception"),O$=MX(),mH=PX(),T$=fH();pH.exports=class{constructor(Q){if(!Q)throw Error("Logger is required to handle exceptions");this.logger=Q,this.handlers=new Map}handle(...Q){if(Q.forEach((J)=>{if(Array.isArray(J))return J.forEach((H)=>this._addHandler(H));this._addHandler(J)}),!this.catcher)this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher)}unhandle(){if(this.catcher)process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((Q)=>this.logger.unpipe(Q))}getAllInfo(Q){let J=null;if(Q)J=typeof Q==="string"?Q:Q.message;return{error:Q,level:"error",message:[`uncaughtException: ${J||"(no error message)"}`,Q&&Q.stack||" No stack trace"].join(`
29
+ `),stack:Q&&Q.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(Q)}}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:dH.loadavg(),uptime:dH.uptime()}}getTrace(Q){return(Q?mH.parse(Q):mH.get()).map((H)=>{return{column:H.getColumnNumber(),file:H.getFileName(),function:H.getFunctionName(),line:H.getLineNumber(),method:H.getMethodName(),native:H.isNative()}})}_addHandler(Q){if(!this.handlers.has(Q)){Q.handleExceptions=!0;let J=new T$(Q);this.handlers.set(Q,J),this.logger.pipe(J)}}_uncaughtException(Q){let J=this.getAllInfo(Q),H=this._getExceptionHandlers(),K=typeof this.logger.exitOnError==="function"?this.logger.exitOnError(Q):this.logger.exitOnError,Y;if(!H.length&&K)console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),K=!1;function B(){if(_X("doExit",K),_X("process._exiting",process._exiting),K&&!process._exiting){if(Y)clearTimeout(Y);process.exit(1)}}if(!H||H.length===0)return process.nextTick(B);if(L$(H,(U,N)=>{let z=O$(N),R=U.transport||U;function M(P){return()=>{_X(P),z()}}R._ending=!0,R.once("finish",M("finished")),R.once("error",M("error"))},()=>K&&B()),this.logger.log(J),K)Y=setTimeout(B,3000)}_getExceptionHandlers(){return this.logger.transports.filter((Q)=>{return(Q.transport||Q).handleExceptions})}}});var lH=_((I2,cH)=>{var{Writable:F$}=d8();cH.exports=class extends F${constructor(Q){super({objectMode:!0});if(!Q)throw Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=Q}_write(Q,J,H){if(Q.rejection)return this.transport.log(Q,H);return H(),!0}}});var EX=_((M2,sH)=>{var nH=h("os"),j$=V6(),CX=J4()("winston:rejection"),S$=MX(),iH=PX(),w$=lH();sH.exports=class{constructor(Q){if(!Q)throw Error("Logger is required to handle rejections");this.logger=Q,this.handlers=new Map}handle(...Q){if(Q.forEach((J)=>{if(Array.isArray(J))return J.forEach((H)=>this._addHandler(H));this._addHandler(J)}),!this.catcher)this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher)}unhandle(){if(this.catcher)process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((Q)=>this.logger.unpipe(Q))}getAllInfo(Q){let J=null;if(Q)J=typeof Q==="string"?Q:Q.message;return{error:Q,level:"error",message:[`unhandledRejection: ${J||"(no error message)"}`,Q&&Q.stack||" No stack trace"].join(`
30
+ `),stack:Q&&Q.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(Q)}}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:nH.loadavg(),uptime:nH.uptime()}}getTrace(Q){return(Q?iH.parse(Q):iH.get()).map((H)=>{return{column:H.getColumnNumber(),file:H.getFileName(),function:H.getFunctionName(),line:H.getLineNumber(),method:H.getMethodName(),native:H.isNative()}})}_addHandler(Q){if(!this.handlers.has(Q)){Q.handleRejections=!0;let J=new w$(Q);this.handlers.set(Q,J),this.logger.pipe(J)}}_unhandledRejection(Q){let J=this.getAllInfo(Q),H=this._getRejectionHandlers(),K=typeof this.logger.exitOnError==="function"?this.logger.exitOnError(Q):this.logger.exitOnError,Y;if(!H.length&&K)console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),K=!1;function B(){if(CX("doExit",K),CX("process._exiting",process._exiting),K&&!process._exiting){if(Y)clearTimeout(Y);process.exit(1)}}if(!H||H.length===0)return process.nextTick(B);if(j$(H,(U,N)=>{let z=S$(N),R=U.transport||U;function M(P){return()=>{CX(P),z()}}R._ending=!0,R.once("finish",M("finished")),R.once("error",M("error"))},()=>K&&B()),this.logger.log(J),K)Y=setTimeout(B,3000)}_getRejectionHandlers(){return this.logger.transports.filter((Q)=>{return(Q.transport||Q).handleRejections})}}});var oH=_((P2,aH)=>{class rH{constructor(X){let Q=B6();if(typeof X!=="object"||Array.isArray(X)||!(X instanceof Q))throw Error("Logger is required for profiling");else this.logger=X,this.start=Date.now()}done(...X){if(typeof X[X.length-1]==="function")console.warn("Callback function no longer supported as of winston@3.0.0"),X.pop();let Q=typeof X[X.length-1]==="object"?X.pop():{};return Q.level=Q.level||"info",Q.durationMs=Date.now()-this.start,this.logger.write(Q)}}aH.exports=rH});var B6=_((_2,QG)=>{var{Stream:x$,Transform:v$}=d8(),tH=V6(),{LEVEL:a0,SPLAT:eH}=K0(),XG=NX(),y$=RX(),k$=EX(),b$=v5(),h$=oH(),{warn:g$}=K5(),u$=q6(),f$=/%[scdjifoO%]/g;class DX extends v${constructor(X){super({objectMode:!0});this.configure(X)}child(X){let Q=this;return Object.create(Q,{write:{value:function(J){let H=Object.assign({},X,J);if(J instanceof Error)H.stack=J.stack,H.message=J.message,H.cause=J.cause;Q.write(H)}}})}configure({silent:X,format:Q,defaultMeta:J,levels:H,level:K="info",exitOnError:Y=!0,transports:B,colors:U,emitErrs:N,formatters:z,padLevels:R,rewriters:M,stripColors:P,exceptionHandlers:L,rejectionHandlers:A}={}){if(this.transports.length)this.clear();if(this.silent=X,this.format=Q||this.format||X5()(),this.defaultMeta=J||null,this.levels=H||this.levels||u$.npm.levels,this.level=K,this.exceptions)this.exceptions.unhandle();if(this.rejections)this.rejections.unhandle();if(this.exceptions=new y$(this),this.rejections=new k$(this),this.profilers={},this.exitOnError=Y,B)B=Array.isArray(B)?B:[B],B.forEach((D)=>this.add(D));if(U||N||z||R||M||P)throw 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
+ `));if(L)this.exceptions.handle(L);if(A)this.rejections.handle(A)}getHighestLogLevel(){let X=G4(this.levels,this.level);if(!this.transports||this.transports.length===0)return X;return this.transports.reduce((Q,J)=>{let H=G4(this.levels,J.level);return H!==null&&H>Q?H:Q},X)}isLevelEnabled(X){let Q=G4(this.levels,X);if(Q===null)return!1;let J=G4(this.levels,this.level);if(J===null)return!1;if(!this.transports||this.transports.length===0)return J>=Q;return this.transports.findIndex((K)=>{let Y=G4(this.levels,K.level);if(Y===null)Y=J;return Y>=Q})!==-1}log(X,Q,...J){if(arguments.length===1)return X[a0]=X.level,this._addDefaultMeta(X),this.write(X),this;if(arguments.length===2){if(Q&&typeof Q==="object")return Q[a0]=Q.level=X,this._addDefaultMeta(Q),this.write(Q),this;return Q={[a0]:X,level:X,message:Q},this._addDefaultMeta(Q),this.write(Q),this}let[H]=J;if(typeof H==="object"&&H!==null){if(!(Q&&Q.match&&Q.match(f$))){let Y=Object.assign({},this.defaultMeta,H,{[a0]:X,[eH]:J,level:X,message:Q});if(H.message)Y.message=`${Y.message} ${H.message}`;if(H.stack)Y.stack=H.stack;if(H.cause)Y.cause=H.cause;return this.write(Y),this}}return this.write(Object.assign({},this.defaultMeta,{[a0]:X,[eH]:J,level:X,message:Q})),this}_transform(X,Q,J){if(this.silent)return J();if(!X[a0])X[a0]=X.level;if(!this.levels[X[a0]]&&this.levels[X[a0]]!==0)console.error("[winston] Unknown logger level: %s",X[a0]);if(!this._readableState.pipes)console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",X);try{this.push(this.format.transform(X,this.format.options))}finally{this._writableState.sync=!1,J()}}_final(X){let Q=this.transports.slice();tH(Q,(J,H)=>{if(!J||J.finished)return setImmediate(H);J.once("finish",H),J.end()},X)}add(X){let Q=!XG(X)||X.log.length>2?new b$({transport:X}):X;if(!Q._writableState||!Q._writableState.objectMode)throw Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");if(this._onEvent("error",Q),this._onEvent("warn",Q),this.pipe(Q),X.handleExceptions)this.exceptions.handle();if(X.handleRejections)this.rejections.handle();return this}remove(X){if(!X)return this;let Q=X;if(!XG(X)||X.log.length>2)Q=this.transports.filter((J)=>J.transport===X)[0];if(Q)this.unpipe(Q);return this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){g$.deprecated("setLevels")}query(X,Q){if(typeof X==="function")Q=X,X={};X=X||{};let J={},H=Object.assign({},X.query||{});function K(B,U){if(X.query&&typeof B.formatQuery==="function")X.query=B.formatQuery(H);B.query(X,(N,z)=>{if(N)return U(N);if(typeof B.formatResults==="function")z=B.formatResults(z,X.format);U(null,z)})}function Y(B,U){K(B,(N,z)=>{if(U){if(z=N||z,z)J[B.name]=z;U()}U=null})}tH(this.transports.filter((B)=>!!B.query),Y,()=>Q(null,J))}stream(X={}){let Q=new x$,J=[];return Q._streams=J,Q.destroy=()=>{let H=J.length;while(H--)J[H].destroy()},this.transports.filter((H)=>!!H.stream).forEach((H)=>{let K=H.stream(X);if(!K)return;J.push(K),K.on("log",(Y)=>{Y.transport=Y.transport||[],Y.transport.push(H.name),Q.emit("log",Y)}),K.on("error",(Y)=>{Y.transport=Y.transport||[],Y.transport.push(H.name),Q.emit("error",Y)})}),Q}startTimer(){return new h$(this)}profile(X,...Q){let J=Date.now();if(this.profilers[X]){let H=this.profilers[X];if(delete this.profilers[X],typeof Q[Q.length-2]==="function")console.warn("Callback function no longer supported as of winston@3.0.0"),Q.pop();let K=typeof Q[Q.length-1]==="object"?Q.pop():{};return K.level=K.level||"info",K.durationMs=J-H,K.message=K.message||X,this.write(K)}return this.profilers[X]=J,this}handleExceptions(...X){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...X)}unhandleExceptions(...X){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...X)}cli(){throw 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(X,Q){function J(H){if(X==="error"&&!this.transports.includes(Q))this.add(Q);this.emit(X,H,Q)}if(!Q["__winston"+X])Q["__winston"+X]=J.bind(this),Q.on(X,Q["__winston"+X])}_addDefaultMeta(X){if(this.defaultMeta)Object.assign(X,this.defaultMeta)}}function G4(X,Q){let J=X[Q];if(!J&&J!==0)return null;return J}Object.defineProperty(DX.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:X}=this._readableState;return!Array.isArray(X)?[X].filter(Boolean):X}});QG.exports=DX});var LX=_((R2,JG)=>{var{LEVEL:d$}=K0(),m$=q6(),p$=B6(),c$=J4()("winston:create-logger");function l$(X){return"is"+X.charAt(0).toUpperCase()+X.slice(1)+"Enabled"}JG.exports=function(X={}){X.levels=X.levels||m$.npm.levels;class Q extends p${constructor(H){super(H)}}let J=new Q(X);return Object.keys(X.levels).forEach(function(H){if(c$('Define prototype method for "%s"',H),H==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}Q.prototype[H]=function(...K){let Y=this||J;if(K.length===1){let[B]=K,U=B&&B.message&&B||{message:B};return U.level=U[d$]=H,Y._addDefaultMeta(U),Y.write(U),this||J}if(K.length===0)return Y.log(H,""),Y;return Y.log(H,...K)},Q.prototype[l$(H)]=function(){return(this||J).isLevelEnabled(H)}}),J}});var HG=_((C2,ZG)=>{var n$=LX();ZG.exports=class{constructor(Q={}){this.loggers=new Map,this.options=Q}add(Q,J){if(!this.loggers.has(Q)){J=Object.assign({},J||this.options);let H=J.transports||this.options.transports;if(H)J.transports=Array.isArray(H)?H.slice():[H];else J.transports=[];let K=n$(J);K.on("close",()=>this._delete(Q)),this.loggers.set(Q,K)}return this.loggers.get(Q)}get(Q,J){return this.add(Q,J)}has(Q){return!!this.loggers.has(Q)}close(Q){if(Q)return this._removeLogger(Q);this.loggers.forEach((J,H)=>this._removeLogger(H))}_removeLogger(Q){if(!this.loggers.has(Q))return;this.loggers.get(Q).close(),this._delete(Q)}_delete(Q){this.loggers.delete(Q)}}});var OX=_((y0)=>{var GG=H5(),{warn:K4}=K5();y0.version=XJ().version;y0.transports=jH();y0.config=q6();y0.addColors=GG.levels;y0.format=GG.format;y0.createLogger=LX();y0.Logger=B6();y0.ExceptionHandler=RX();y0.RejectionHandler=EX();y0.Container=HG();y0.Transport=u8();y0.loggers=new y0.Container;var o0=y0.createLogger();Object.keys(y0.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach((X)=>y0[X]=(...Q)=>o0[X](...Q));Object.defineProperty(y0,"level",{get(){return o0.level},set(X){o0.level=X}});Object.defineProperty(y0,"exceptions",{get(){return o0.exceptions}});Object.defineProperty(y0,"rejections",{get(){return o0.rejections}});["exitOnError"].forEach((X)=>{Object.defineProperty(y0,X,{get(){return o0[X]},set(Q){o0[X]=Q}})});Object.defineProperty(y0,"default",{get(){return{exceptionHandlers:o0.exceptionHandlers,rejectionHandlers:o0.rejectionHandlers,transports:o0.transports}}});K4.deprecated(y0,"setLevels");K4.forFunctions(y0,"useFormat",["cli"]);K4.forProperties(y0,"useFormat",["padLevels","stripColors"]);K4.forFunctions(y0,"deprecated",["addRewriter","addFilter","clone","extend"]);K4.forProperties(y0,"deprecated",["emitErrs","levelLength"])});var $G=_((p8,NG)=>{var TX=h("crypto");p8=NG.exports=q4;function q4(X,Q){return Q=UG(X,Q),Jz(X,Q)}p8.sha1=function(X){return q4(X)};p8.keys=function(X){return q4(X,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})};p8.MD5=function(X){return q4(X,{algorithm:"md5",encoding:"hex"})};p8.keysMD5=function(X){return q4(X,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var _1=TX.getHashes?TX.getHashes().slice():["sha1","md5"];_1.push("passthrough");var VG=["buffer","hex","binary","base64"];function UG(X,Q){Q=Q||{};var J={};if(J.algorithm=Q.algorithm||"sha1",J.encoding=Q.encoding||"hex",J.excludeValues=Q.excludeValues?!0:!1,J.algorithm=J.algorithm.toLowerCase(),J.encoding=J.encoding.toLowerCase(),J.ignoreUnknown=Q.ignoreUnknown!==!0?!1:!0,J.respectType=Q.respectType===!1?!1:!0,J.respectFunctionNames=Q.respectFunctionNames===!1?!1:!0,J.respectFunctionProperties=Q.respectFunctionProperties===!1?!1:!0,J.unorderedArrays=Q.unorderedArrays!==!0?!1:!0,J.unorderedSets=Q.unorderedSets===!1?!1:!0,J.unorderedObjects=Q.unorderedObjects===!1?!1:!0,J.replacer=Q.replacer||void 0,J.excludeKeys=Q.excludeKeys||void 0,typeof X>"u")throw Error("Object argument required.");for(var H=0;H<_1.length;++H)if(_1[H].toLowerCase()===J.algorithm.toLowerCase())J.algorithm=_1[H];if(_1.indexOf(J.algorithm)===-1)throw Error('Algorithm "'+J.algorithm+'" not supported. supported values: '+_1.join(", "));if(VG.indexOf(J.encoding)===-1&&J.algorithm!=="passthrough")throw Error('Encoding "'+J.encoding+'" not supported. supported values: '+VG.join(", "));return J}function BG(X){if(typeof X!=="function")return!1;var Q=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;return Q.exec(Function.prototype.toString.call(X))!=null}function Jz(X,Q){var J;if(Q.algorithm!=="passthrough")J=TX.createHash(Q.algorithm);else J=new WG;if(typeof J.write>"u")J.write=J.update,J.end=J.update;var H=FX(Q,J);if(H.dispatch(X),!J.update)J.end("");if(J.digest)return J.digest(Q.encoding==="buffer"?void 0:Q.encoding);var K=J.read();if(Q.encoding==="buffer")return K;return K.toString(Q.encoding)}p8.writeToStream=function(X,Q,J){if(typeof J>"u")J=Q,Q={};return Q=UG(X,Q),FX(Q,J).dispatch(X)};function FX(X,Q,J){J=J||[];var H=function(K){if(Q.update)return Q.update(K,"utf8");else return Q.write(K,"utf8")};return{dispatch:function(K){if(X.replacer)K=X.replacer(K);var Y=typeof K;if(K===null)Y="null";return this["_"+Y](K)},_object:function(K){var Y=/\[object (.*)\]/i,B=Object.prototype.toString.call(K),U=Y.exec(B);if(!U)U="unknown:["+B+"]";else U=U[1];U=U.toLowerCase();var N=null;if((N=J.indexOf(K))>=0)return this.dispatch("[CIRCULAR:"+N+"]");else J.push(K);if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(K))return H("buffer:"),H(K);if(U!=="object"&&U!=="function"&&U!=="asyncfunction")if(this["_"+U])this["_"+U](K);else if(X.ignoreUnknown)return H("["+U+"]");else throw Error('Unknown object type "'+U+'"');else{var z=Object.keys(K);if(X.unorderedObjects)z=z.sort();if(X.respectType!==!1&&!BG(K))z.splice(0,0,"prototype","__proto__","constructor");if(X.excludeKeys)z=z.filter(function(M){return!X.excludeKeys(M)});H("object:"+z.length+":");var R=this;return z.forEach(function(M){if(R.dispatch(M),H(":"),!X.excludeValues)R.dispatch(K[M]);H(",")})}},_array:function(K,Y){Y=typeof Y<"u"?Y:X.unorderedArrays!==!1;var B=this;if(H("array:"+K.length+":"),!Y||K.length<=1)return K.forEach(function(z){return B.dispatch(z)});var U=[],N=K.map(function(z){var R=new WG,M=J.slice(),P=FX(X,R,M);return P.dispatch(z),U=U.concat(M.slice(J.length)),R.read().toString()});return J=J.concat(U),N.sort(),this._array(N,!1)},_date:function(K){return H("date:"+K.toJSON())},_symbol:function(K){return H("symbol:"+K.toString())},_error:function(K){return H("error:"+K.toString())},_boolean:function(K){return H("bool:"+K.toString())},_string:function(K){H("string:"+K.length+":"),H(K.toString())},_function:function(K){if(H("fn:"),BG(K))this.dispatch("[native]");else this.dispatch(K.toString());if(X.respectFunctionNames!==!1)this.dispatch("function-name:"+String(K.name));if(X.respectFunctionProperties)this._object(K)},_number:function(K){return H("number:"+K.toString())},_xml:function(K){return H("xml:"+K.toString())},_null:function(){return H("Null")},_undefined:function(){return H("Undefined")},_regexp:function(K){return H("regex:"+K.toString())},_uint8array:function(K){return H("uint8array:"),this.dispatch(Array.prototype.slice.call(K))},_uint8clampedarray:function(K){return H("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(K))},_int8array:function(K){return H("int8array:"),this.dispatch(Array.prototype.slice.call(K))},_uint16array:function(K){return H("uint16array:"),this.dispatch(Array.prototype.slice.call(K))},_int16array:function(K){return H("int16array:"),this.dispatch(Array.prototype.slice.call(K))},_uint32array:function(K){return H("uint32array:"),this.dispatch(Array.prototype.slice.call(K))},_int32array:function(K){return H("int32array:"),this.dispatch(Array.prototype.slice.call(K))},_float32array:function(K){return H("float32array:"),this.dispatch(Array.prototype.slice.call(K))},_float64array:function(K){return H("float64array:"),this.dispatch(Array.prototype.slice.call(K))},_arraybuffer:function(K){return H("arraybuffer:"),this.dispatch(new Uint8Array(K))},_url:function(K){return H("url:"+K.toString(),"utf8")},_map:function(K){H("map:");var Y=Array.from(K);return this._array(Y,X.unorderedSets!==!1)},_set:function(K){H("set:");var Y=Array.from(K);return this._array(Y,X.unorderedSets!==!1)},_file:function(K){return H("file:"),this.dispatch([K.name,K.size,K.type,K.lastModfied])},_blob:function(){if(X.ignoreUnknown)return H("[blob]");throw Error(`Hashing Blob objects is currently not supported
33
+ (see https://github.com/puleos/object-hash/issues/26)
34
+ Use "options.replacer" or "options.ignoreUnknown"
35
+ `)},_domwindow:function(){return H("domwindow")},_bigint:function(K){return H("bigint:"+K.toString())},_process:function(){return H("process")},_timer:function(){return H("timer")},_pipe:function(){return H("pipe")},_tcp:function(){return H("tcp")},_udp:function(){return H("udp")},_tty:function(){return H("tty")},_statwatcher:function(){return H("statwatcher")},_securecontext:function(){return H("securecontext")},_connection:function(){return H("connection")},_zlib:function(){return H("zlib")},_context:function(){return H("context")},_nodescript:function(){return H("nodescript")},_httpparser:function(){return H("httpparser")},_dataview:function(){return H("dataview")},_signal:function(){return H("signal")},_fsevent:function(){return H("fsevent")},_tlswrap:function(){return H("tlswrap")}}}function WG(){return{buf:"",write:function(X){this.buf+=X},end:function(X){this.buf+=X},read:function(){return this.buf}}}});var zG=_((jX,R1)=>{//! moment.js
36
+ //! version : 2.30.1
37
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
38
+ //! license : MIT
39
+ //! momentjs.com
40
+ (function(X,Q){typeof jX==="object"&&typeof R1<"u"?R1.exports=Q():typeof define==="function"&&define.amd?define(Q):X.moment=Q()})(jX,function(){var X;function Q(){return X.apply(null,arguments)}function J(Z){X=Z}function H(Z){return Z instanceof Array||Object.prototype.toString.call(Z)==="[object Array]"}function K(Z){return Z!=null&&Object.prototype.toString.call(Z)==="[object Object]"}function Y(Z,G){return Object.prototype.hasOwnProperty.call(Z,G)}function B(Z){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Z).length===0;else{var G;for(G in Z)if(Y(Z,G))return!1;return!0}}function U(Z){return Z===void 0}function N(Z){return typeof Z==="number"||Object.prototype.toString.call(Z)==="[object Number]"}function z(Z){return Z instanceof Date||Object.prototype.toString.call(Z)==="[object Date]"}function R(Z,G){var q=[],V,W=Z.length;for(V=0;V<W;++V)q.push(G(Z[V],V));return q}function M(Z,G){for(var q in G)if(Y(G,q))Z[q]=G[q];if(Y(G,"toString"))Z.toString=G.toString;if(Y(G,"valueOf"))Z.valueOf=G.valueOf;return Z}function P(Z,G,q,V){return eX(Z,G,q,V,!0).utc()}function L(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function A(Z){if(Z._pf==null)Z._pf=L();return Z._pf}var D;if(Array.prototype.some)D=Array.prototype.some;else D=function(Z){var G=Object(this),q=G.length>>>0,V;for(V=0;V<q;V++)if(V in G&&Z.call(this,G[V],V,G))return!0;return!1};function v(Z){var G=null,q=!1,V=Z._d&&!isNaN(Z._d.getTime());if(V){if(G=A(Z),q=D.call(G.parsedDateParts,function(W){return W!=null}),V=G.overflow<0&&!G.empty&&!G.invalidEra&&!G.invalidMonth&&!G.invalidWeekday&&!G.weekdayMismatch&&!G.nullInput&&!G.invalidFormat&&!G.userInvalidated&&(!G.meridiem||G.meridiem&&q),Z._strict)V=V&&G.charsLeftOver===0&&G.unusedTokens.length===0&&G.bigHour===void 0}if(Object.isFrozen==null||!Object.isFrozen(Z))Z._isValid=V;else return V;return Z._isValid}function y(Z){var G=P(NaN);if(Z!=null)M(A(G),Z);else A(G).userInvalidated=!0;return G}var d=Q.momentProperties=[],O=!1;function w(Z,G){var q,V,W,$=d.length;if(!U(G._isAMomentObject))Z._isAMomentObject=G._isAMomentObject;if(!U(G._i))Z._i=G._i;if(!U(G._f))Z._f=G._f;if(!U(G._l))Z._l=G._l;if(!U(G._strict))Z._strict=G._strict;if(!U(G._tzm))Z._tzm=G._tzm;if(!U(G._isUTC))Z._isUTC=G._isUTC;if(!U(G._offset))Z._offset=G._offset;if(!U(G._pf))Z._pf=A(G);if(!U(G._locale))Z._locale=G._locale;if($>0){for(q=0;q<$;q++)if(V=d[q],W=G[V],!U(W))Z[V]=W}return Z}function i(Z){if(w(this,Z),this._d=new Date(Z._d!=null?Z._d.getTime():NaN),!this.isValid())this._d=new Date(NaN);if(O===!1)O=!0,Q.updateOffset(this),O=!1}function b(Z){return Z instanceof i||Z!=null&&Z._isAMomentObject!=null}function m(Z){if(Q.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn)console.warn("Deprecation warning: "+Z)}function f(Z,G){var q=!0;return M(function(){if(Q.deprecationHandler!=null)Q.deprecationHandler(null,Z);if(q){var V=[],W,$,I,F=arguments.length;for($=0;$<F;$++){if(W="",typeof arguments[$]==="object"){W+=`
41
+ [`+$+"] ";for(I in arguments[0])if(Y(arguments[0],I))W+=I+": "+arguments[0][I]+", ";W=W.slice(0,-2)}else W=arguments[$];V.push(W)}m(Z+`
42
+ Arguments: `+Array.prototype.slice.call(V).join("")+`
43
+ `+Error().stack),q=!1}return G.apply(this,arguments)},G)}var g={};function q0(Z,G){if(Q.deprecationHandler!=null)Q.deprecationHandler(Z,G);if(!g[Z])m(G),g[Z]=!0}Q.suppressDeprecationWarnings=!1,Q.deprecationHandler=null;function e(Z){return typeof Function<"u"&&Z instanceof Function||Object.prototype.toString.call(Z)==="[object Function]"}function V0(Z){var G,q;for(q in Z)if(Y(Z,q))if(G=Z[q],e(G))this[q]=G;else this["_"+q]=G;this._config=Z,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function I0(Z,G){var q=M({},Z),V;for(V in G)if(Y(G,V))if(K(Z[V])&&K(G[V]))q[V]={},M(q[V],Z[V]),M(q[V],G[V]);else if(G[V]!=null)q[V]=G[V];else delete q[V];for(V in Z)if(Y(Z,V)&&!Y(G,V)&&K(Z[V]))q[V]=M({},q[V]);return q}function M0(Z){if(Z!=null)this.set(Z)}var p0;if(Object.keys)p0=Object.keys;else p0=function(Z){var G,q=[];for(G in Z)if(Y(Z,G))q.push(G);return q};var C={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function S(Z,G,q){var V=this._calendar[Z]||this._calendar.sameElse;return e(V)?V.call(G,q):V}function c(Z,G,q){var V=""+Math.abs(Z),W=G-V.length,$=Z>=0;return($?q?"+":"":"-")+Math.pow(10,Math.max(0,W)).toString().substr(1)+V}var $0=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D0={},L0={};function x(Z,G,q,V){var W=V;if(typeof V==="string")W=function(){return this[V]()};if(Z)L0[Z]=W;if(G)L0[G[0]]=function(){return c(W.apply(this,arguments),G[1],G[2])};if(q)L0[q]=function(){return this.localeData().ordinal(W.apply(this,arguments),Z)}}function l8(Z){if(Z.match(/\[[\s\S]/))return Z.replace(/^\[|\]$/g,"");return Z.replace(/\\/g,"")}function B4(Z){var G=Z.match($0),q,V;for(q=0,V=G.length;q<V;q++)if(L0[G[q]])G[q]=L0[G[q]];else G[q]=l8(G[q]);return function(W){var $="",I;for(I=0;I<V;I++)$+=e(G[I])?G[I].call(W,Z):G[I];return $}}function e0(Z,G){if(!Z.isValid())return Z.localeData().invalidDate();return G=U4(G,Z.localeData()),D0[G]=D0[G]||B4(G),D0[G](Z)}function U4(Z,G){var q=5;function V(W){return G.longDateFormat(W)||W}k.lastIndex=0;while(q>=0&&k.test(Z))Z=Z.replace(k,V),k.lastIndex=0,q-=1;return Z}var j0={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W4(Z){var G=this._longDateFormat[Z],q=this._longDateFormat[Z.toUpperCase()];if(G||!q)return G;return this._longDateFormat[Z]=q.match($0).map(function(V){if(V==="MMMM"||V==="MM"||V==="DD"||V==="dddd")return V.slice(1);return V}).join(""),this._longDateFormat[Z]}var U6="Invalid date";function N4(){return this._invalidDate}var $4="%d",n8=/\d{1,2}/;function i8(Z){return this._ordinal.replace("%d",Z)}var W6={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function D8(Z,G,q,V){var W=this._relativeTime[q];return e(W)?W(Z,G,q,V):W.replace(/%d/i,Z)}function W8(Z,G){var q=this._relativeTime[Z>0?"future":"past"];return e(q)?q(G):q.replace(/%s/i,G)}var s8={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function O0(Z){return typeof Z==="string"?s8[Z]||s8[Z.toLowerCase()]:void 0}function r8(Z){var G={},q,V;for(V in Z)if(Y(Z,V)){if(q=O0(V),q)G[q]=Z[V]}return G}var vG={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function yG(Z){var G=[],q;for(q in Z)if(Y(Z,q))G.push({unit:q,priority:vG[q]});return G.sort(function(V,W){return V.priority-W.priority}),G}var vX=/\d/,S0=/\d\d/,yX=/\d{3}/,N6=/\d{4}/,z4=/[+-]?\d{6}/,X0=/\d\d?/,kX=/\d\d\d\d?/,bX=/\d\d\d\d\d\d?/,A4=/\d{1,3}/,$6=/\d{1,4}/,I4=/[+-]?\d{1,6}/,a8=/\d+/,M4=/[+-]?\d+/,kG=/Z|[+-]\d\d:?\d\d/gi,P4=/Z|[+-]\d\d(?::?\d\d)?/gi,bG=/[+-]?\d+(\.\d{1,3})?/,L1=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,o8=/^[1-9]\d?/,z6=/^([1-9]\d|\d)/,_4;_4={};function j(Z,G,q){_4[Z]=e(G)?G:function(V,W){return V&&q?q:G}}function hG(Z,G){if(!Y(_4,Z))return new RegExp(gG(Z));return _4[Z](G._strict,G._locale)}function gG(Z){return X8(Z.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(G,q,V,W,$){return q||V||W||$}))}function X8(Z){return Z.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function w0(Z){if(Z<0)return Math.ceil(Z)||0;else return Math.floor(Z)}function n(Z){var G=+Z,q=0;if(G!==0&&isFinite(G))q=w0(G);return q}var A6={};function t(Z,G){var q,V=G,W;if(typeof Z==="string")Z=[Z];if(N(G))V=function($,I){I[G]=n($)};W=Z.length;for(q=0;q<W;q++)A6[Z[q]]=V}function O1(Z,G){t(Z,function(q,V,W,$){W._w=W._w||{},G(q,W._w,W,$)})}function uG(Z,G,q){if(G!=null&&Y(A6,Z))A6[Z](G,q._a,q,Z)}function R4(Z){return Z%4===0&&Z%100!==0||Z%400===0}var _0=0,Q8=1,c0=2,B0=3,k0=4,J8=5,L8=6,fG=7,dG=8;x("Y",0,0,function(){var Z=this.year();return Z<=9999?c(Z,4):"+"+Z}),x(0,["YY",2],0,function(){return this.year()%100}),x(0,["YYYY",4],0,"year"),x(0,["YYYYY",5],0,"year"),x(0,["YYYYYY",6,!0],0,"year"),j("Y",M4),j("YY",X0,S0),j("YYYY",$6,N6),j("YYYYY",I4,z4),j("YYYYYY",I4,z4),t(["YYYYY","YYYYYY"],_0),t("YYYY",function(Z,G){G[_0]=Z.length===2?Q.parseTwoDigitYear(Z):n(Z)}),t("YY",function(Z,G){G[_0]=Q.parseTwoDigitYear(Z)}),t("Y",function(Z,G){G[_0]=parseInt(Z,10)});function T1(Z){return R4(Z)?366:365}Q.parseTwoDigitYear=function(Z){return n(Z)+(n(Z)>68?1900:2000)};var hX=t8("FullYear",!0);function mG(){return R4(this.year())}function t8(Z,G){return function(q){if(q!=null)return gX(this,Z,q),Q.updateOffset(this,G),this;else return F1(this,Z)}}function F1(Z,G){if(!Z.isValid())return NaN;var{_d:q,_isUTC:V}=Z;switch(G){case"Milliseconds":return V?q.getUTCMilliseconds():q.getMilliseconds();case"Seconds":return V?q.getUTCSeconds():q.getSeconds();case"Minutes":return V?q.getUTCMinutes():q.getMinutes();case"Hours":return V?q.getUTCHours():q.getHours();case"Date":return V?q.getUTCDate():q.getDate();case"Day":return V?q.getUTCDay():q.getDay();case"Month":return V?q.getUTCMonth():q.getMonth();case"FullYear":return V?q.getUTCFullYear():q.getFullYear();default:return NaN}}function gX(Z,G,q){var V,W,$,I,F;if(!Z.isValid()||isNaN(q))return;switch(V=Z._d,W=Z._isUTC,G){case"Milliseconds":return void(W?V.setUTCMilliseconds(q):V.setMilliseconds(q));case"Seconds":return void(W?V.setUTCSeconds(q):V.setSeconds(q));case"Minutes":return void(W?V.setUTCMinutes(q):V.setMinutes(q));case"Hours":return void(W?V.setUTCHours(q):V.setHours(q));case"Date":return void(W?V.setUTCDate(q):V.setDate(q));case"FullYear":break;default:return}$=q,I=Z.month(),F=Z.date(),F=F===29&&I===1&&!R4($)?28:F,W?V.setUTCFullYear($,I,F):V.setFullYear($,I,F)}function pG(Z){if(Z=O0(Z),e(this[Z]))return this[Z]();return this}function cG(Z,G){if(typeof Z==="object"){Z=r8(Z);var q=yG(Z),V,W=q.length;for(V=0;V<W;V++)this[q[V].unit](Z[q[V].unit])}else if(Z=O0(Z),e(this[Z]))return this[Z](G);return this}function lG(Z,G){return(Z%G+G)%G}var G0;if(Array.prototype.indexOf)G0=Array.prototype.indexOf;else G0=function(Z){var G;for(G=0;G<this.length;++G)if(this[G]===Z)return G;return-1};function I6(Z,G){if(isNaN(Z)||isNaN(G))return NaN;var q=lG(G,12);return Z+=(G-q)/12,q===1?R4(Z)?29:28:31-q%7%2}x("M",["MM",2],"Mo",function(){return this.month()+1}),x("MMM",0,0,function(Z){return this.localeData().monthsShort(this,Z)}),x("MMMM",0,0,function(Z){return this.localeData().months(this,Z)}),j("M",X0,o8),j("MM",X0,S0),j("MMM",function(Z,G){return G.monthsShortRegex(Z)}),j("MMMM",function(Z,G){return G.monthsRegex(Z)}),t(["M","MM"],function(Z,G){G[Q8]=n(Z)-1}),t(["MMM","MMMM"],function(Z,G,q,V){var W=q._locale.monthsParse(Z,V,q._strict);if(W!=null)G[Q8]=W;else A(q).invalidMonth=Z});var nG="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),uX="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fX=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,iG=L1,sG=L1;function rG(Z,G){if(!Z)return H(this._months)?this._months:this._months.standalone;return H(this._months)?this._months[Z.month()]:this._months[(this._months.isFormat||fX).test(G)?"format":"standalone"][Z.month()]}function aG(Z,G){if(!Z)return H(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;return H(this._monthsShort)?this._monthsShort[Z.month()]:this._monthsShort[fX.test(G)?"format":"standalone"][Z.month()]}function oG(Z,G,q){var V,W,$,I=Z.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];for(V=0;V<12;++V)$=P([2000,V]),this._shortMonthsParse[V]=this.monthsShort($,"").toLocaleLowerCase(),this._longMonthsParse[V]=this.months($,"").toLocaleLowerCase()}if(q)if(G==="MMM")return W=G0.call(this._shortMonthsParse,I),W!==-1?W:null;else return W=G0.call(this._longMonthsParse,I),W!==-1?W:null;else if(G==="MMM"){if(W=G0.call(this._shortMonthsParse,I),W!==-1)return W;return W=G0.call(this._longMonthsParse,I),W!==-1?W:null}else{if(W=G0.call(this._longMonthsParse,I),W!==-1)return W;return W=G0.call(this._shortMonthsParse,I),W!==-1?W:null}}function tG(Z,G,q){var V,W,$;if(this._monthsParseExact)return oG.call(this,Z,G,q);if(!this._monthsParse)this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];for(V=0;V<12;V++){if(W=P([2000,V]),q&&!this._longMonthsParse[V])this._longMonthsParse[V]=new RegExp("^"+this.months(W,"").replace(".","")+"$","i"),this._shortMonthsParse[V]=new RegExp("^"+this.monthsShort(W,"").replace(".","")+"$","i");if(!q&&!this._monthsParse[V])$="^"+this.months(W,"")+"|^"+this.monthsShort(W,""),this._monthsParse[V]=new RegExp($.replace(".",""),"i");if(q&&G==="MMMM"&&this._longMonthsParse[V].test(Z))return V;else if(q&&G==="MMM"&&this._shortMonthsParse[V].test(Z))return V;else if(!q&&this._monthsParse[V].test(Z))return V}}function dX(Z,G){if(!Z.isValid())return Z;if(typeof G==="string"){if(/^\d+$/.test(G))G=n(G);else if(G=Z.localeData().monthsParse(G),!N(G))return Z}var q=G,V=Z.date();return V=V<29?V:Math.min(V,I6(Z.year(),q)),Z._isUTC?Z._d.setUTCMonth(q,V):Z._d.setMonth(q,V),Z}function mX(Z){if(Z!=null)return dX(this,Z),Q.updateOffset(this,!0),this;else return F1(this,"Month")}function eG(){return I6(this.year(),this.month())}function X9(Z){if(this._monthsParseExact){if(!Y(this,"_monthsRegex"))pX.call(this);if(Z)return this._monthsShortStrictRegex;else return this._monthsShortRegex}else{if(!Y(this,"_monthsShortRegex"))this._monthsShortRegex=iG;return this._monthsShortStrictRegex&&Z?this._monthsShortStrictRegex:this._monthsShortRegex}}function Q9(Z){if(this._monthsParseExact){if(!Y(this,"_monthsRegex"))pX.call(this);if(Z)return this._monthsStrictRegex;else return this._monthsRegex}else{if(!Y(this,"_monthsRegex"))this._monthsRegex=sG;return this._monthsStrictRegex&&Z?this._monthsStrictRegex:this._monthsRegex}}function pX(){function Z(u,s){return s.length-u.length}var G=[],q=[],V=[],W,$,I,F;for(W=0;W<12;W++)$=P([2000,W]),I=X8(this.monthsShort($,"")),F=X8(this.months($,"")),G.push(I),q.push(F),V.push(F),V.push(I);G.sort(Z),q.sort(Z),V.sort(Z),this._monthsRegex=new RegExp("^("+V.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+G.join("|")+")","i")}function J9(Z,G,q,V,W,$,I){var F;if(Z<100&&Z>=0){if(F=new Date(Z+400,G,q,V,W,$,I),isFinite(F.getFullYear()))F.setFullYear(Z)}else F=new Date(Z,G,q,V,W,$,I);return F}function j1(Z){var G,q;if(Z<100&&Z>=0){if(q=Array.prototype.slice.call(arguments),q[0]=Z+400,G=new Date(Date.UTC.apply(null,q)),isFinite(G.getUTCFullYear()))G.setUTCFullYear(Z)}else G=new Date(Date.UTC.apply(null,arguments));return G}function C4(Z,G,q){var V=7+G-q,W=(7+j1(Z,0,V).getUTCDay()-G)%7;return-W+V-1}function cX(Z,G,q,V,W){var $=(7+q-V)%7,I=C4(Z,V,W),F=1+7*(G-1)+$+I,u,s;if(F<=0)u=Z-1,s=T1(u)+F;else if(F>T1(Z))u=Z+1,s=F-T1(Z);else u=Z,s=F;return{year:u,dayOfYear:s}}function S1(Z,G,q){var V=C4(Z.year(),G,q),W=Math.floor((Z.dayOfYear()-V-1)/7)+1,$,I;if(W<1)I=Z.year()-1,$=W+Z8(I,G,q);else if(W>Z8(Z.year(),G,q))$=W-Z8(Z.year(),G,q),I=Z.year()+1;else I=Z.year(),$=W;return{week:$,year:I}}function Z8(Z,G,q){var V=C4(Z,G,q),W=C4(Z+1,G,q);return(T1(Z)-V+W)/7}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),j("w",X0,o8),j("ww",X0,S0),j("W",X0,o8),j("WW",X0,S0),O1(["w","ww","W","WW"],function(Z,G,q,V){G[V.substr(0,1)]=n(Z)});function Z9(Z){return S1(Z,this._week.dow,this._week.doy).week}var H9={dow:0,doy:6};function G9(){return this._week.dow}function K9(){return this._week.doy}function q9(Z){var G=this.localeData().week(this);return Z==null?G:this.add((Z-G)*7,"d")}function Y9(Z){var G=S1(this,1,4).week;return Z==null?G:this.add((Z-G)*7,"d")}x("d",0,"do","day"),x("dd",0,0,function(Z){return this.localeData().weekdaysMin(this,Z)}),x("ddd",0,0,function(Z){return this.localeData().weekdaysShort(this,Z)}),x("dddd",0,0,function(Z){return this.localeData().weekdays(this,Z)}),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),j("d",X0),j("e",X0),j("E",X0),j("dd",function(Z,G){return G.weekdaysMinRegex(Z)}),j("ddd",function(Z,G){return G.weekdaysShortRegex(Z)}),j("dddd",function(Z,G){return G.weekdaysRegex(Z)}),O1(["dd","ddd","dddd"],function(Z,G,q,V){var W=q._locale.weekdaysParse(Z,V,q._strict);if(W!=null)G.d=W;else A(q).invalidWeekday=Z}),O1(["d","e","E"],function(Z,G,q,V){G[V]=n(Z)});function V9(Z,G){if(typeof Z!=="string")return Z;if(!isNaN(Z))return parseInt(Z,10);if(Z=G.weekdaysParse(Z),typeof Z==="number")return Z;return null}function B9(Z,G){if(typeof Z==="string")return G.weekdaysParse(Z)%7||7;return isNaN(Z)?null:Z}function M6(Z,G){return Z.slice(G,7).concat(Z.slice(0,G))}var U9="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),lX="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),W9="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),N9=L1,$9=L1,z9=L1;function A9(Z,G){var q=H(this._weekdays)?this._weekdays:this._weekdays[Z&&Z!==!0&&this._weekdays.isFormat.test(G)?"format":"standalone"];return Z===!0?M6(q,this._week.dow):Z?q[Z.day()]:q}function I9(Z){return Z===!0?M6(this._weekdaysShort,this._week.dow):Z?this._weekdaysShort[Z.day()]:this._weekdaysShort}function M9(Z){return Z===!0?M6(this._weekdaysMin,this._week.dow):Z?this._weekdaysMin[Z.day()]:this._weekdaysMin}function P9(Z,G,q){var V,W,$,I=Z.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];for(V=0;V<7;++V)$=P([2000,1]).day(V),this._minWeekdaysParse[V]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[V]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[V]=this.weekdays($,"").toLocaleLowerCase()}if(q)if(G==="dddd")return W=G0.call(this._weekdaysParse,I),W!==-1?W:null;else if(G==="ddd")return W=G0.call(this._shortWeekdaysParse,I),W!==-1?W:null;else return W=G0.call(this._minWeekdaysParse,I),W!==-1?W:null;else if(G==="dddd"){if(W=G0.call(this._weekdaysParse,I),W!==-1)return W;if(W=G0.call(this._shortWeekdaysParse,I),W!==-1)return W;return W=G0.call(this._minWeekdaysParse,I),W!==-1?W:null}else if(G==="ddd"){if(W=G0.call(this._shortWeekdaysParse,I),W!==-1)return W;if(W=G0.call(this._weekdaysParse,I),W!==-1)return W;return W=G0.call(this._minWeekdaysParse,I),W!==-1?W:null}else{if(W=G0.call(this._minWeekdaysParse,I),W!==-1)return W;if(W=G0.call(this._weekdaysParse,I),W!==-1)return W;return W=G0.call(this._shortWeekdaysParse,I),W!==-1?W:null}}function _9(Z,G,q){var V,W,$;if(this._weekdaysParseExact)return P9.call(this,Z,G,q);if(!this._weekdaysParse)this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[];for(V=0;V<7;V++){if(W=P([2000,1]).day(V),q&&!this._fullWeekdaysParse[V])this._fullWeekdaysParse[V]=new RegExp("^"+this.weekdays(W,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[V]=new RegExp("^"+this.weekdaysShort(W,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[V]=new RegExp("^"+this.weekdaysMin(W,"").replace(".","\\.?")+"$","i");if(!this._weekdaysParse[V])$="^"+this.weekdays(W,"")+"|^"+this.weekdaysShort(W,"")+"|^"+this.weekdaysMin(W,""),this._weekdaysParse[V]=new RegExp($.replace(".",""),"i");if(q&&G==="dddd"&&this._fullWeekdaysParse[V].test(Z))return V;else if(q&&G==="ddd"&&this._shortWeekdaysParse[V].test(Z))return V;else if(q&&G==="dd"&&this._minWeekdaysParse[V].test(Z))return V;else if(!q&&this._weekdaysParse[V].test(Z))return V}}function R9(Z){if(!this.isValid())return Z!=null?this:NaN;var G=F1(this,"Day");if(Z!=null)return Z=V9(Z,this.localeData()),this.add(Z-G,"d");else return G}function C9(Z){if(!this.isValid())return Z!=null?this:NaN;var G=(this.day()+7-this.localeData()._week.dow)%7;return Z==null?G:this.add(Z-G,"d")}function E9(Z){if(!this.isValid())return Z!=null?this:NaN;if(Z!=null){var G=B9(Z,this.localeData());return this.day(this.day()%7?G:G-7)}else return this.day()||7}function D9(Z){if(this._weekdaysParseExact){if(!Y(this,"_weekdaysRegex"))P6.call(this);if(Z)return this._weekdaysStrictRegex;else return this._weekdaysRegex}else{if(!Y(this,"_weekdaysRegex"))this._weekdaysRegex=N9;return this._weekdaysStrictRegex&&Z?this._weekdaysStrictRegex:this._weekdaysRegex}}function L9(Z){if(this._weekdaysParseExact){if(!Y(this,"_weekdaysRegex"))P6.call(this);if(Z)return this._weekdaysShortStrictRegex;else return this._weekdaysShortRegex}else{if(!Y(this,"_weekdaysShortRegex"))this._weekdaysShortRegex=$9;return this._weekdaysShortStrictRegex&&Z?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function O9(Z){if(this._weekdaysParseExact){if(!Y(this,"_weekdaysRegex"))P6.call(this);if(Z)return this._weekdaysMinStrictRegex;else return this._weekdaysMinRegex}else{if(!Y(this,"_weekdaysMinRegex"))this._weekdaysMinRegex=z9;return this._weekdaysMinStrictRegex&&Z?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function P6(){function Z(C0,Y8){return Y8.length-C0.length}var G=[],q=[],V=[],W=[],$,I,F,u,s;for($=0;$<7;$++)I=P([2000,1]).day($),F=X8(this.weekdaysMin(I,"")),u=X8(this.weekdaysShort(I,"")),s=X8(this.weekdays(I,"")),G.push(F),q.push(u),V.push(s),W.push(F),W.push(u),W.push(s);G.sort(Z),q.sort(Z),V.sort(Z),W.sort(Z),this._weekdaysRegex=new RegExp("^("+W.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+V.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+G.join("|")+")","i")}function _6(){return this.hours()%12||12}function T9(){return this.hours()||24}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,_6),x("k",["kk",2],0,T9),x("hmm",0,0,function(){return""+_6.apply(this)+c(this.minutes(),2)}),x("hmmss",0,0,function(){return""+_6.apply(this)+c(this.minutes(),2)+c(this.seconds(),2)}),x("Hmm",0,0,function(){return""+this.hours()+c(this.minutes(),2)}),x("Hmmss",0,0,function(){return""+this.hours()+c(this.minutes(),2)+c(this.seconds(),2)});function nX(Z,G){x(Z,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),G)})}nX("a",!0),nX("A",!1);function iX(Z,G){return G._meridiemParse}j("a",iX),j("A",iX),j("H",X0,z6),j("h",X0,o8),j("k",X0,o8),j("HH",X0,S0),j("hh",X0,S0),j("kk",X0,S0),j("hmm",kX),j("hmmss",bX),j("Hmm",kX),j("Hmmss",bX),t(["H","HH"],B0),t(["k","kk"],function(Z,G,q){var V=n(Z);G[B0]=V===24?0:V}),t(["a","A"],function(Z,G,q){q._isPm=q._locale.isPM(Z),q._meridiem=Z}),t(["h","hh"],function(Z,G,q){G[B0]=n(Z),A(q).bigHour=!0}),t("hmm",function(Z,G,q){var V=Z.length-2;G[B0]=n(Z.substr(0,V)),G[k0]=n(Z.substr(V)),A(q).bigHour=!0}),t("hmmss",function(Z,G,q){var V=Z.length-4,W=Z.length-2;G[B0]=n(Z.substr(0,V)),G[k0]=n(Z.substr(V,2)),G[J8]=n(Z.substr(W)),A(q).bigHour=!0}),t("Hmm",function(Z,G,q){var V=Z.length-2;G[B0]=n(Z.substr(0,V)),G[k0]=n(Z.substr(V))}),t("Hmmss",function(Z,G,q){var V=Z.length-4,W=Z.length-2;G[B0]=n(Z.substr(0,V)),G[k0]=n(Z.substr(V,2)),G[J8]=n(Z.substr(W))});function F9(Z){return(Z+"").toLowerCase().charAt(0)==="p"}var j9=/[ap]\.?m?\.?/i,S9=t8("Hours",!0);function w9(Z,G,q){if(Z>11)return q?"pm":"PM";else return q?"am":"AM"}var sX={calendar:C,longDateFormat:j0,invalidDate:U6,ordinal:$4,dayOfMonthOrdinalParse:n8,relativeTime:W6,months:nG,monthsShort:uX,week:H9,weekdays:U9,weekdaysMin:W9,weekdaysShort:lX,meridiemParse:j9},J0={},w1={},x1;function x9(Z,G){var q,V=Math.min(Z.length,G.length);for(q=0;q<V;q+=1)if(Z[q]!==G[q])return q;return V}function rX(Z){return Z?Z.toLowerCase().replace("_","-"):Z}function v9(Z){var G=0,q,V,W,$;while(G<Z.length){$=rX(Z[G]).split("-"),q=$.length,V=rX(Z[G+1]),V=V?V.split("-"):null;while(q>0){if(W=E4($.slice(0,q).join("-")),W)return W;if(V&&V.length>=q&&x9($,V)>=q-1)break;q--}G++}return x1}function y9(Z){return!!(Z&&Z.match("^[^/\\\\]*$"))}function E4(Z){var G=null,q;if(J0[Z]===void 0&&typeof R1<"u"&&R1&&R1.exports&&y9(Z))try{G=x1._abbr,q=h,q("./locale/"+Z),N8(G)}catch(V){J0[Z]=null}return J0[Z]}function N8(Z,G){var q;if(Z){if(U(G))q=H8(Z);else q=R6(Z,G);if(q)x1=q;else if(typeof console<"u"&&console.warn)console.warn("Locale "+Z+" not found. Did you forget to load it?")}return x1._abbr}function R6(Z,G){if(G!==null){var q,V=sX;if(G.abbr=Z,J0[Z]!=null)q0("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),V=J0[Z]._config;else if(G.parentLocale!=null)if(J0[G.parentLocale]!=null)V=J0[G.parentLocale]._config;else if(q=E4(G.parentLocale),q!=null)V=q._config;else{if(!w1[G.parentLocale])w1[G.parentLocale]=[];return w1[G.parentLocale].push({name:Z,config:G}),null}if(J0[Z]=new M0(I0(V,G)),w1[Z])w1[Z].forEach(function(W){R6(W.name,W.config)});return N8(Z),J0[Z]}else return delete J0[Z],null}function k9(Z,G){if(G!=null){var q,V,W=sX;if(J0[Z]!=null&&J0[Z].parentLocale!=null)J0[Z].set(I0(J0[Z]._config,G));else{if(V=E4(Z),V!=null)W=V._config;if(G=I0(W,G),V==null)G.abbr=Z;q=new M0(G),q.parentLocale=J0[Z],J0[Z]=q}N8(Z)}else if(J0[Z]!=null){if(J0[Z].parentLocale!=null){if(J0[Z]=J0[Z].parentLocale,Z===N8())N8(Z)}else if(J0[Z]!=null)delete J0[Z]}return J0[Z]}function H8(Z){var G;if(Z&&Z._locale&&Z._locale._abbr)Z=Z._locale._abbr;if(!Z)return x1;if(!H(Z)){if(G=E4(Z),G)return G;Z=[Z]}return v9(Z)}function b9(){return p0(J0)}function C6(Z){var G,q=Z._a;if(q&&A(Z).overflow===-2){if(G=q[Q8]<0||q[Q8]>11?Q8:q[c0]<1||q[c0]>I6(q[_0],q[Q8])?c0:q[B0]<0||q[B0]>24||q[B0]===24&&(q[k0]!==0||q[J8]!==0||q[L8]!==0)?B0:q[k0]<0||q[k0]>59?k0:q[J8]<0||q[J8]>59?J8:q[L8]<0||q[L8]>999?L8:-1,A(Z)._overflowDayOfYear&&(G<_0||G>c0))G=c0;if(A(Z)._overflowWeeks&&G===-1)G=fG;if(A(Z)._overflowWeekday&&G===-1)G=dG;A(Z).overflow=G}return Z}var h9=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,g9=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,u9=/Z|[+-]\d\d(?::?\d\d)?/,D4=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],E6=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],f9=/^\/?Date\((-?\d+)/i,d9=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,m9={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function aX(Z){var G,q,V=Z._i,W=h9.exec(V)||g9.exec(V),$,I,F,u,s=D4.length,C0=E6.length;if(W){A(Z).iso=!0;for(G=0,q=s;G<q;G++)if(D4[G][1].exec(W[1])){I=D4[G][0],$=D4[G][2]!==!1;break}if(I==null){Z._isValid=!1;return}if(W[3]){for(G=0,q=C0;G<q;G++)if(E6[G][1].exec(W[3])){F=(W[2]||" ")+E6[G][0];break}if(F==null){Z._isValid=!1;return}}if(!$&&F!=null){Z._isValid=!1;return}if(W[4])if(u9.exec(W[4]))u="Z";else{Z._isValid=!1;return}Z._f=I+(F||"")+(u||""),L6(Z)}else Z._isValid=!1}function p9(Z,G,q,V,W,$){var I=[c9(Z),uX.indexOf(G),parseInt(q,10),parseInt(V,10),parseInt(W,10)];if($)I.push(parseInt($,10));return I}function c9(Z){var G=parseInt(Z,10);if(G<=49)return 2000+G;else if(G<=999)return 1900+G;return G}function l9(Z){return Z.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function n9(Z,G,q){if(Z){var V=lX.indexOf(Z),W=new Date(G[0],G[1],G[2]).getDay();if(V!==W)return A(q).weekdayMismatch=!0,q._isValid=!1,!1}return!0}function i9(Z,G,q){if(Z)return m9[Z];else if(G)return 0;else{var V=parseInt(q,10),W=V%100,$=(V-W)/100;return $*60+W}}function oX(Z){var G=d9.exec(l9(Z._i)),q;if(G){if(q=p9(G[4],G[3],G[2],G[5],G[6],G[7]),!n9(G[1],q,Z))return;Z._a=q,Z._tzm=i9(G[8],G[9],G[10]),Z._d=j1.apply(null,Z._a),Z._d.setUTCMinutes(Z._d.getUTCMinutes()-Z._tzm),A(Z).rfc2822=!0}else Z._isValid=!1}function s9(Z){var G=f9.exec(Z._i);if(G!==null){Z._d=new Date(+G[1]);return}if(aX(Z),Z._isValid===!1)delete Z._isValid;else return;if(oX(Z),Z._isValid===!1)delete Z._isValid;else return;if(Z._strict)Z._isValid=!1;else Q.createFromInputFallback(Z)}Q.createFromInputFallback=f("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(Z){Z._d=new Date(Z._i+(Z._useUTC?" UTC":""))});function e8(Z,G,q){if(Z!=null)return Z;if(G!=null)return G;return q}function r9(Z){var G=new Date(Q.now());if(Z._useUTC)return[G.getUTCFullYear(),G.getUTCMonth(),G.getUTCDate()];return[G.getFullYear(),G.getMonth(),G.getDate()]}function D6(Z){var G,q,V=[],W,$,I;if(Z._d)return;if(W=r9(Z),Z._w&&Z._a[c0]==null&&Z._a[Q8]==null)a9(Z);if(Z._dayOfYear!=null){if(I=e8(Z._a[_0],W[_0]),Z._dayOfYear>T1(I)||Z._dayOfYear===0)A(Z)._overflowDayOfYear=!0;q=j1(I,0,Z._dayOfYear),Z._a[Q8]=q.getUTCMonth(),Z._a[c0]=q.getUTCDate()}for(G=0;G<3&&Z._a[G]==null;++G)Z._a[G]=V[G]=W[G];for(;G<7;G++)Z._a[G]=V[G]=Z._a[G]==null?G===2?1:0:Z._a[G];if(Z._a[B0]===24&&Z._a[k0]===0&&Z._a[J8]===0&&Z._a[L8]===0)Z._nextDay=!0,Z._a[B0]=0;if(Z._d=(Z._useUTC?j1:J9).apply(null,V),$=Z._useUTC?Z._d.getUTCDay():Z._d.getDay(),Z._tzm!=null)Z._d.setUTCMinutes(Z._d.getUTCMinutes()-Z._tzm);if(Z._nextDay)Z._a[B0]=24;if(Z._w&&typeof Z._w.d<"u"&&Z._w.d!==$)A(Z).weekdayMismatch=!0}function a9(Z){var G,q,V,W,$,I,F,u,s;if(G=Z._w,G.GG!=null||G.W!=null||G.E!=null){if($=1,I=4,q=e8(G.GG,Z._a[_0],S1(Q0(),1,4).year),V=e8(G.W,1),W=e8(G.E,1),W<1||W>7)u=!0}else if($=Z._locale._week.dow,I=Z._locale._week.doy,s=S1(Q0(),$,I),q=e8(G.gg,Z._a[_0],s.year),V=e8(G.w,s.week),G.d!=null){if(W=G.d,W<0||W>6)u=!0}else if(G.e!=null){if(W=G.e+$,G.e<0||G.e>6)u=!0}else W=$;if(V<1||V>Z8(q,$,I))A(Z)._overflowWeeks=!0;else if(u!=null)A(Z)._overflowWeekday=!0;else F=cX(q,V,W,$,I),Z._a[_0]=F.year,Z._dayOfYear=F.dayOfYear}Q.ISO_8601=function(){},Q.RFC_2822=function(){};function L6(Z){if(Z._f===Q.ISO_8601){aX(Z);return}if(Z._f===Q.RFC_2822){oX(Z);return}Z._a=[],A(Z).empty=!0;var G=""+Z._i,q,V,W,$,I,F=G.length,u=0,s,C0;W=U4(Z._f,Z._locale).match($0)||[],C0=W.length;for(q=0;q<C0;q++){if($=W[q],V=(G.match(hG($,Z))||[])[0],V){if(I=G.substr(0,G.indexOf(V)),I.length>0)A(Z).unusedInput.push(I);G=G.slice(G.indexOf(V)+V.length),u+=V.length}if(L0[$]){if(V)A(Z).empty=!1;else A(Z).unusedTokens.push($);uG($,V,Z)}else if(Z._strict&&!V)A(Z).unusedTokens.push($)}if(A(Z).charsLeftOver=F-u,G.length>0)A(Z).unusedInput.push(G);if(Z._a[B0]<=12&&A(Z).bigHour===!0&&Z._a[B0]>0)A(Z).bigHour=void 0;if(A(Z).parsedDateParts=Z._a.slice(0),A(Z).meridiem=Z._meridiem,Z._a[B0]=o9(Z._locale,Z._a[B0],Z._meridiem),s=A(Z).era,s!==null)Z._a[_0]=Z._locale.erasConvertYear(s,Z._a[_0]);D6(Z),C6(Z)}function o9(Z,G,q){var V;if(q==null)return G;if(Z.meridiemHour!=null)return Z.meridiemHour(G,q);else if(Z.isPM!=null){if(V=Z.isPM(q),V&&G<12)G+=12;if(!V&&G===12)G=0;return G}else return G}function t9(Z){var G,q,V,W,$,I,F=!1,u=Z._f.length;if(u===0){A(Z).invalidFormat=!0,Z._d=new Date(NaN);return}for(W=0;W<u;W++){if($=0,I=!1,G=w({},Z),Z._useUTC!=null)G._useUTC=Z._useUTC;if(G._f=Z._f[W],L6(G),v(G))I=!0;if($+=A(G).charsLeftOver,$+=A(G).unusedTokens.length*10,A(G).score=$,!F){if(V==null||$<V||I){if(V=$,q=G,I)F=!0}}else if($<V)V=$,q=G}M(Z,q||G)}function e9(Z){if(Z._d)return;var G=r8(Z._i),q=G.day===void 0?G.date:G.day;Z._a=R([G.year,G.month,q,G.hour,G.minute,G.second,G.millisecond],function(V){return V&&parseInt(V,10)}),D6(Z)}function XK(Z){var G=new i(C6(tX(Z)));if(G._nextDay)G.add(1,"d"),G._nextDay=void 0;return G}function tX(Z){var{_i:G,_f:q}=Z;if(Z._locale=Z._locale||H8(Z._l),G===null||q===void 0&&G==="")return y({nullInput:!0});if(typeof G==="string")Z._i=G=Z._locale.preparse(G);if(b(G))return new i(C6(G));else if(z(G))Z._d=G;else if(H(q))t9(Z);else if(q)L6(Z);else QK(Z);if(!v(Z))Z._d=null;return Z}function QK(Z){var G=Z._i;if(U(G))Z._d=new Date(Q.now());else if(z(G))Z._d=new Date(G.valueOf());else if(typeof G==="string")s9(Z);else if(H(G))Z._a=R(G.slice(0),function(q){return parseInt(q,10)}),D6(Z);else if(K(G))e9(Z);else if(N(G))Z._d=new Date(G);else Q.createFromInputFallback(Z)}function eX(Z,G,q,V,W){var $={};if(G===!0||G===!1)V=G,G=void 0;if(q===!0||q===!1)V=q,q=void 0;if(K(Z)&&B(Z)||H(Z)&&Z.length===0)Z=void 0;return $._isAMomentObject=!0,$._useUTC=$._isUTC=W,$._l=q,$._i=Z,$._f=G,$._strict=V,XK($)}function Q0(Z,G,q,V){return eX(Z,G,q,V,!1)}var JK=f("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var Z=Q0.apply(null,arguments);if(this.isValid()&&Z.isValid())return Z<this?this:Z;else return y()}),ZK=f("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var Z=Q0.apply(null,arguments);if(this.isValid()&&Z.isValid())return Z>this?this:Z;else return y()});function XQ(Z,G){var q,V;if(G.length===1&&H(G[0]))G=G[0];if(!G.length)return Q0();q=G[0];for(V=1;V<G.length;++V)if(!G[V].isValid()||G[V][Z](q))q=G[V];return q}function HK(){var Z=[].slice.call(arguments,0);return XQ("isBefore",Z)}function GK(){var Z=[].slice.call(arguments,0);return XQ("isAfter",Z)}var KK=function(){return Date.now?Date.now():+new Date},v1=["year","quarter","month","week","day","hour","minute","second","millisecond"];function qK(Z){var G,q=!1,V,W=v1.length;for(G in Z)if(Y(Z,G)&&!(G0.call(v1,G)!==-1&&(Z[G]==null||!isNaN(Z[G]))))return!1;for(V=0;V<W;++V)if(Z[v1[V]]){if(q)return!1;if(parseFloat(Z[v1[V]])!==n(Z[v1[V]]))q=!0}return!0}function YK(){return this._isValid}function VK(){return b0(NaN)}function L4(Z){var G=r8(Z),q=G.year||0,V=G.quarter||0,W=G.month||0,$=G.week||G.isoWeek||0,I=G.day||0,F=G.hour||0,u=G.minute||0,s=G.second||0,C0=G.millisecond||0;this._isValid=qK(G),this._milliseconds=+C0+s*1000+u*60000+F*1000*60*60,this._days=+I+$*7,this._months=+W+V*3+q*12,this._data={},this._locale=H8(),this._bubble()}function O4(Z){return Z instanceof L4}function O6(Z){if(Z<0)return Math.round(-1*Z)*-1;else return Math.round(Z)}function BK(Z,G,q){var V=Math.min(Z.length,G.length),W=Math.abs(Z.length-G.length),$=0,I;for(I=0;I<V;I++)if(q&&Z[I]!==G[I]||!q&&n(Z[I])!==n(G[I]))$++;return $+W}function QQ(Z,G){x(Z,0,0,function(){var q=this.utcOffset(),V="+";if(q<0)q=-q,V="-";return V+c(~~(q/60),2)+G+c(~~q%60,2)})}QQ("Z",":"),QQ("ZZ",""),j("Z",P4),j("ZZ",P4),t(["Z","ZZ"],function(Z,G,q){q._useUTC=!0,q._tzm=T6(P4,Z)});var UK=/([\+\-]|\d\d)/gi;function T6(Z,G){var q=(G||"").match(Z),V,W,$;if(q===null)return null;return V=q[q.length-1]||[],W=(V+"").match(UK)||["-",0,0],$=+(W[1]*60)+n(W[2]),$===0?0:W[0]==="+"?$:-$}function F6(Z,G){var q,V;if(G._isUTC)return q=G.clone(),V=(b(Z)||z(Z)?Z.valueOf():Q0(Z).valueOf())-q.valueOf(),q._d.setTime(q._d.valueOf()+V),Q.updateOffset(q,!1),q;else return Q0(Z).local()}function j6(Z){return-Math.round(Z._d.getTimezoneOffset())}Q.updateOffset=function(){};function WK(Z,G,q){var V=this._offset||0,W;if(!this.isValid())return Z!=null?this:NaN;if(Z!=null){if(typeof Z==="string"){if(Z=T6(P4,Z),Z===null)return this}else if(Math.abs(Z)<16&&!q)Z=Z*60;if(!this._isUTC&&G)W=j6(this);if(this._offset=Z,this._isUTC=!0,W!=null)this.add(W,"m");if(V!==Z){if(!G||this._changeInProgress)GQ(this,b0(Z-V,"m"),1,!1);else if(!this._changeInProgress)this._changeInProgress=!0,Q.updateOffset(this,!0),this._changeInProgress=null}return this}else return this._isUTC?V:j6(this)}function NK(Z,G){if(Z!=null){if(typeof Z!=="string")Z=-Z;return this.utcOffset(Z,G),this}else return-this.utcOffset()}function $K(Z){return this.utcOffset(0,Z)}function zK(Z){if(this._isUTC){if(this.utcOffset(0,Z),this._isUTC=!1,Z)this.subtract(j6(this),"m")}return this}function AK(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i==="string"){var Z=T6(kG,this._i);if(Z!=null)this.utcOffset(Z);else this.utcOffset(0,!0)}return this}function IK(Z){if(!this.isValid())return!1;return Z=Z?Q0(Z).utcOffset():0,(this.utcOffset()-Z)%60===0}function MK(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function PK(){if(!U(this._isDSTShifted))return this._isDSTShifted;var Z={},G;if(w(Z,this),Z=tX(Z),Z._a)G=Z._isUTC?P(Z._a):Q0(Z._a),this._isDSTShifted=this.isValid()&&BK(Z._a,G.toArray())>0;else this._isDSTShifted=!1;return this._isDSTShifted}function _K(){return this.isValid()?!this._isUTC:!1}function RK(){return this.isValid()?this._isUTC:!1}function JQ(){return this.isValid()?this._isUTC&&this._offset===0:!1}var CK=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,EK=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function b0(Z,G){var q=Z,V=null,W,$,I;if(O4(Z))q={ms:Z._milliseconds,d:Z._days,M:Z._months};else if(N(Z)||!isNaN(+Z))if(q={},G)q[G]=+Z;else q.milliseconds=+Z;else if(V=CK.exec(Z))W=V[1]==="-"?-1:1,q={y:0,d:n(V[c0])*W,h:n(V[B0])*W,m:n(V[k0])*W,s:n(V[J8])*W,ms:n(O6(V[L8]*1000))*W};else if(V=EK.exec(Z))W=V[1]==="-"?-1:1,q={y:O8(V[2],W),M:O8(V[3],W),w:O8(V[4],W),d:O8(V[5],W),h:O8(V[6],W),m:O8(V[7],W),s:O8(V[8],W)};else if(q==null)q={};else if(typeof q==="object"&&(("from"in q)||("to"in q)))I=DK(Q0(q.from),Q0(q.to)),q={},q.ms=I.milliseconds,q.M=I.months;if($=new L4(q),O4(Z)&&Y(Z,"_locale"))$._locale=Z._locale;if(O4(Z)&&Y(Z,"_isValid"))$._isValid=Z._isValid;return $}b0.fn=L4.prototype,b0.invalid=VK;function O8(Z,G){var q=Z&&parseFloat(Z.replace(",","."));return(isNaN(q)?0:q)*G}function ZQ(Z,G){var q={};if(q.months=G.month()-Z.month()+(G.year()-Z.year())*12,Z.clone().add(q.months,"M").isAfter(G))--q.months;return q.milliseconds=+G-+Z.clone().add(q.months,"M"),q}function DK(Z,G){var q;if(!(Z.isValid()&&G.isValid()))return{milliseconds:0,months:0};if(G=F6(G,Z),Z.isBefore(G))q=ZQ(Z,G);else q=ZQ(G,Z),q.milliseconds=-q.milliseconds,q.months=-q.months;return q}function HQ(Z,G){return function(q,V){var W,$;if(V!==null&&!isNaN(+V))q0(G,"moment()."+G+"(period, number) is deprecated. Please use moment()."+G+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=q,q=V,V=$;return W=b0(q,V),GQ(this,W,Z),this}}function GQ(Z,G,q,V){var W=G._milliseconds,$=O6(G._days),I=O6(G._months);if(!Z.isValid())return;if(V=V==null?!0:V,I)dX(Z,F1(Z,"Month")+I*q);if($)gX(Z,"Date",F1(Z,"Date")+$*q);if(W)Z._d.setTime(Z._d.valueOf()+W*q);if(V)Q.updateOffset(Z,$||I)}var LK=HQ(1,"add"),OK=HQ(-1,"subtract");function KQ(Z){return typeof Z==="string"||Z instanceof String}function TK(Z){return b(Z)||z(Z)||KQ(Z)||N(Z)||jK(Z)||FK(Z)||Z===null||Z===void 0}function FK(Z){var G=K(Z)&&!B(Z),q=!1,V=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],W,$,I=V.length;for(W=0;W<I;W+=1)$=V[W],q=q||Y(Z,$);return G&&q}function jK(Z){var G=H(Z),q=!1;if(G)q=Z.filter(function(V){return!N(V)&&KQ(Z)}).length===0;return G&&q}function SK(Z){var G=K(Z)&&!B(Z),q=!1,V=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],W,$;for(W=0;W<V.length;W+=1)$=V[W],q=q||Y(Z,$);return G&&q}function wK(Z,G){var q=Z.diff(G,"days",!0);return q<-6?"sameElse":q<-1?"lastWeek":q<0?"lastDay":q<1?"sameDay":q<2?"nextDay":q<7?"nextWeek":"sameElse"}function xK(Z,G){if(arguments.length===1){if(!arguments[0])Z=void 0,G=void 0;else if(TK(arguments[0]))Z=arguments[0],G=void 0;else if(SK(arguments[0]))G=arguments[0],Z=void 0}var q=Z||Q0(),V=F6(q,this).startOf("day"),W=Q.calendarFormat(this,V)||"sameElse",$=G&&(e(G[W])?G[W].call(this,q):G[W]);return this.format($||this.localeData().calendar(W,this,Q0(q)))}function vK(){return new i(this)}function yK(Z,G){var q=b(Z)?Z:Q0(Z);if(!(this.isValid()&&q.isValid()))return!1;if(G=O0(G)||"millisecond",G==="millisecond")return this.valueOf()>q.valueOf();else return q.valueOf()<this.clone().startOf(G).valueOf()}function kK(Z,G){var q=b(Z)?Z:Q0(Z);if(!(this.isValid()&&q.isValid()))return!1;if(G=O0(G)||"millisecond",G==="millisecond")return this.valueOf()<q.valueOf();else return this.clone().endOf(G).valueOf()<q.valueOf()}function bK(Z,G,q,V){var W=b(Z)?Z:Q0(Z),$=b(G)?G:Q0(G);if(!(this.isValid()&&W.isValid()&&$.isValid()))return!1;return V=V||"()",(V[0]==="("?this.isAfter(W,q):!this.isBefore(W,q))&&(V[1]===")"?this.isBefore($,q):!this.isAfter($,q))}function hK(Z,G){var q=b(Z)?Z:Q0(Z),V;if(!(this.isValid()&&q.isValid()))return!1;if(G=O0(G)||"millisecond",G==="millisecond")return this.valueOf()===q.valueOf();else return V=q.valueOf(),this.clone().startOf(G).valueOf()<=V&&V<=this.clone().endOf(G).valueOf()}function gK(Z,G){return this.isSame(Z,G)||this.isAfter(Z,G)}function uK(Z,G){return this.isSame(Z,G)||this.isBefore(Z,G)}function fK(Z,G,q){var V,W,$;if(!this.isValid())return NaN;if(V=F6(Z,this),!V.isValid())return NaN;switch(W=(V.utcOffset()-this.utcOffset())*60000,G=O0(G),G){case"year":$=T4(this,V)/12;break;case"month":$=T4(this,V);break;case"quarter":$=T4(this,V)/3;break;case"second":$=(this-V)/1000;break;case"minute":$=(this-V)/60000;break;case"hour":$=(this-V)/3600000;break;case"day":$=(this-V-W)/86400000;break;case"week":$=(this-V-W)/604800000;break;default:$=this-V}return q?$:w0($)}function T4(Z,G){if(Z.date()<G.date())return-T4(G,Z);var q=(G.year()-Z.year())*12+(G.month()-Z.month()),V=Z.clone().add(q,"months"),W,$;if(G-V<0)W=Z.clone().add(q-1,"months"),$=(G-V)/(V-W);else W=Z.clone().add(q+1,"months"),$=(G-V)/(W-V);return-(q+$)||0}Q.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Q.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function dK(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mK(Z){if(!this.isValid())return null;var G=Z!==!0,q=G?this.clone().utc():this;if(q.year()<0||q.year()>9999)return e0(q,G?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(e(Date.prototype.toISOString))if(G)return this.toDate().toISOString();else return new Date(this.valueOf()+this.utcOffset()*60*1000).toISOString().replace("Z",e0(q,"Z"));return e0(q,G?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pK(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var Z="moment",G="",q,V,W,$;if(!this.isLocal())Z=this.utcOffset()===0?"moment.utc":"moment.parseZone",G="Z";return q="["+Z+'("]',V=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",W="-MM-DD[T]HH:mm:ss.SSS",$=G+'[")]',this.format(q+V+W+$)}function cK(Z){if(!Z)Z=this.isUtc()?Q.defaultFormatUtc:Q.defaultFormat;var G=e0(this,Z);return this.localeData().postformat(G)}function lK(Z,G){if(this.isValid()&&(b(Z)&&Z.isValid()||Q0(Z).isValid()))return b0({to:this,from:Z}).locale(this.locale()).humanize(!G);else return this.localeData().invalidDate()}function nK(Z){return this.from(Q0(),Z)}function iK(Z,G){if(this.isValid()&&(b(Z)&&Z.isValid()||Q0(Z).isValid()))return b0({from:this,to:Z}).locale(this.locale()).humanize(!G);else return this.localeData().invalidDate()}function sK(Z){return this.to(Q0(),Z)}function qQ(Z){var G;if(Z===void 0)return this._locale._abbr;else{if(G=H8(Z),G!=null)this._locale=G;return this}}var YQ=f("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(Z){if(Z===void 0)return this.localeData();else return this.locale(Z)});function VQ(){return this._locale}var F4=1000,X1=60*F4,j4=60*X1,BQ=3506328*j4;function Q1(Z,G){return(Z%G+G)%G}function UQ(Z,G,q){if(Z<100&&Z>=0)return new Date(Z+400,G,q)-BQ;else return new Date(Z,G,q).valueOf()}function WQ(Z,G,q){if(Z<100&&Z>=0)return Date.UTC(Z+400,G,q)-BQ;else return Date.UTC(Z,G,q)}function rK(Z){var G,q;if(Z=O0(Z),Z===void 0||Z==="millisecond"||!this.isValid())return this;switch(q=this._isUTC?WQ:UQ,Z){case"year":G=q(this.year(),0,1);break;case"quarter":G=q(this.year(),this.month()-this.month()%3,1);break;case"month":G=q(this.year(),this.month(),1);break;case"week":G=q(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":G=q(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":G=q(this.year(),this.month(),this.date());break;case"hour":G=this._d.valueOf(),G-=Q1(G+(this._isUTC?0:this.utcOffset()*X1),j4);break;case"minute":G=this._d.valueOf(),G-=Q1(G,X1);break;case"second":G=this._d.valueOf(),G-=Q1(G,F4);break}return this._d.setTime(G),Q.updateOffset(this,!0),this}function aK(Z){var G,q;if(Z=O0(Z),Z===void 0||Z==="millisecond"||!this.isValid())return this;switch(q=this._isUTC?WQ:UQ,Z){case"year":G=q(this.year()+1,0,1)-1;break;case"quarter":G=q(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":G=q(this.year(),this.month()+1,1)-1;break;case"week":G=q(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":G=q(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":G=q(this.year(),this.month(),this.date()+1)-1;break;case"hour":G=this._d.valueOf(),G+=j4-Q1(G+(this._isUTC?0:this.utcOffset()*X1),j4)-1;break;case"minute":G=this._d.valueOf(),G+=X1-Q1(G,X1)-1;break;case"second":G=this._d.valueOf(),G+=F4-Q1(G,F4)-1;break}return this._d.setTime(G),Q.updateOffset(this,!0),this}function oK(){return this._d.valueOf()-(this._offset||0)*60000}function tK(){return Math.floor(this.valueOf()/1000)}function eK(){return new Date(this.valueOf())}function Xq(){var Z=this;return[Z.year(),Z.month(),Z.date(),Z.hour(),Z.minute(),Z.second(),Z.millisecond()]}function Qq(){var Z=this;return{years:Z.year(),months:Z.month(),date:Z.date(),hours:Z.hours(),minutes:Z.minutes(),seconds:Z.seconds(),milliseconds:Z.milliseconds()}}function Jq(){return this.isValid()?this.toISOString():null}function Zq(){return v(this)}function Hq(){return M({},A(this))}function Gq(){return A(this).overflow}function Kq(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}x("N",0,0,"eraAbbr"),x("NN",0,0,"eraAbbr"),x("NNN",0,0,"eraAbbr"),x("NNNN",0,0,"eraName"),x("NNNNN",0,0,"eraNarrow"),x("y",["y",1],"yo","eraYear"),x("y",["yy",2],0,"eraYear"),x("y",["yyy",3],0,"eraYear"),x("y",["yyyy",4],0,"eraYear"),j("N",S6),j("NN",S6),j("NNN",S6),j("NNNN",Iq),j("NNNNN",Mq),t(["N","NN","NNN","NNNN","NNNNN"],function(Z,G,q,V){var W=q._locale.erasParse(Z,V,q._strict);if(W)A(q).era=W;else A(q).invalidEra=Z}),j("y",a8),j("yy",a8),j("yyy",a8),j("yyyy",a8),j("yo",Pq),t(["y","yy","yyy","yyyy"],_0),t(["yo"],function(Z,G,q,V){var W;if(q._locale._eraYearOrdinalRegex)W=Z.match(q._locale._eraYearOrdinalRegex);if(q._locale.eraYearOrdinalParse)G[_0]=q._locale.eraYearOrdinalParse(Z,W);else G[_0]=parseInt(Z,10)});function qq(Z,G){var q,V,W,$=this._eras||H8("en")._eras;for(q=0,V=$.length;q<V;++q){switch(typeof $[q].since){case"string":W=Q($[q].since).startOf("day"),$[q].since=W.valueOf();break}switch(typeof $[q].until){case"undefined":$[q].until=1/0;break;case"string":W=Q($[q].until).startOf("day").valueOf(),$[q].until=W.valueOf();break}}return $}function Yq(Z,G,q){var V,W,$=this.eras(),I,F,u;Z=Z.toUpperCase();for(V=0,W=$.length;V<W;++V)if(I=$[V].name.toUpperCase(),F=$[V].abbr.toUpperCase(),u=$[V].narrow.toUpperCase(),q)switch(G){case"N":case"NN":case"NNN":if(F===Z)return $[V];break;case"NNNN":if(I===Z)return $[V];break;case"NNNNN":if(u===Z)return $[V];break}else if([I,F,u].indexOf(Z)>=0)return $[V]}function Vq(Z,G){var q=Z.since<=Z.until?1:-1;if(G===void 0)return Q(Z.since).year();else return Q(Z.since).year()+(G-Z.offset)*q}function Bq(){var Z,G,q,V=this.localeData().eras();for(Z=0,G=V.length;Z<G;++Z){if(q=this.clone().startOf("day").valueOf(),V[Z].since<=q&&q<=V[Z].until)return V[Z].name;if(V[Z].until<=q&&q<=V[Z].since)return V[Z].name}return""}function Uq(){var Z,G,q,V=this.localeData().eras();for(Z=0,G=V.length;Z<G;++Z){if(q=this.clone().startOf("day").valueOf(),V[Z].since<=q&&q<=V[Z].until)return V[Z].narrow;if(V[Z].until<=q&&q<=V[Z].since)return V[Z].narrow}return""}function Wq(){var Z,G,q,V=this.localeData().eras();for(Z=0,G=V.length;Z<G;++Z){if(q=this.clone().startOf("day").valueOf(),V[Z].since<=q&&q<=V[Z].until)return V[Z].abbr;if(V[Z].until<=q&&q<=V[Z].since)return V[Z].abbr}return""}function Nq(){var Z,G,q,V,W=this.localeData().eras();for(Z=0,G=W.length;Z<G;++Z)if(q=W[Z].since<=W[Z].until?1:-1,V=this.clone().startOf("day").valueOf(),W[Z].since<=V&&V<=W[Z].until||W[Z].until<=V&&V<=W[Z].since)return(this.year()-Q(W[Z].since).year())*q+W[Z].offset;return this.year()}function $q(Z){if(!Y(this,"_erasNameRegex"))w6.call(this);return Z?this._erasNameRegex:this._erasRegex}function zq(Z){if(!Y(this,"_erasAbbrRegex"))w6.call(this);return Z?this._erasAbbrRegex:this._erasRegex}function Aq(Z){if(!Y(this,"_erasNarrowRegex"))w6.call(this);return Z?this._erasNarrowRegex:this._erasRegex}function S6(Z,G){return G.erasAbbrRegex(Z)}function Iq(Z,G){return G.erasNameRegex(Z)}function Mq(Z,G){return G.erasNarrowRegex(Z)}function Pq(Z,G){return G._eraYearOrdinalRegex||a8}function w6(){var Z=[],G=[],q=[],V=[],W,$,I,F,u,s=this.eras();for(W=0,$=s.length;W<$;++W)I=X8(s[W].name),F=X8(s[W].abbr),u=X8(s[W].narrow),G.push(I),Z.push(F),q.push(u),V.push(I),V.push(F),V.push(u);this._erasRegex=new RegExp("^("+V.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+G.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+Z.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+q.join("|")+")","i")}x(0,["gg",2],0,function(){return this.weekYear()%100}),x(0,["GG",2],0,function(){return this.isoWeekYear()%100});function S4(Z,G){x(0,[Z,Z.length],0,G)}S4("gggg","weekYear"),S4("ggggg","weekYear"),S4("GGGG","isoWeekYear"),S4("GGGGG","isoWeekYear"),j("G",M4),j("g",M4),j("GG",X0,S0),j("gg",X0,S0),j("GGGG",$6,N6),j("gggg",$6,N6),j("GGGGG",I4,z4),j("ggggg",I4,z4),O1(["gggg","ggggg","GGGG","GGGGG"],function(Z,G,q,V){G[V.substr(0,2)]=n(Z)}),O1(["gg","GG"],function(Z,G,q,V){G[V]=Q.parseTwoDigitYear(Z)});function _q(Z){return NQ.call(this,Z,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Rq(Z){return NQ.call(this,Z,this.isoWeek(),this.isoWeekday(),1,4)}function Cq(){return Z8(this.year(),1,4)}function Eq(){return Z8(this.isoWeekYear(),1,4)}function Dq(){var Z=this.localeData()._week;return Z8(this.year(),Z.dow,Z.doy)}function Lq(){var Z=this.localeData()._week;return Z8(this.weekYear(),Z.dow,Z.doy)}function NQ(Z,G,q,V,W){var $;if(Z==null)return S1(this,V,W).year;else{if($=Z8(Z,V,W),G>$)G=$;return Oq.call(this,Z,G,q,V,W)}}function Oq(Z,G,q,V,W){var $=cX(Z,G,q,V,W),I=j1($.year,0,$.dayOfYear);return this.year(I.getUTCFullYear()),this.month(I.getUTCMonth()),this.date(I.getUTCDate()),this}x("Q",0,"Qo","quarter"),j("Q",vX),t("Q",function(Z,G){G[Q8]=(n(Z)-1)*3});function Tq(Z){return Z==null?Math.ceil((this.month()+1)/3):this.month((Z-1)*3+this.month()%3)}x("D",["DD",2],"Do","date"),j("D",X0,o8),j("DD",X0,S0),j("Do",function(Z,G){return Z?G._dayOfMonthOrdinalParse||G._ordinalParse:G._dayOfMonthOrdinalParseLenient}),t(["D","DD"],c0),t("Do",function(Z,G){G[c0]=n(Z.match(X0)[0])});var $Q=t8("Date",!0);x("DDD",["DDDD",3],"DDDo","dayOfYear"),j("DDD",A4),j("DDDD",yX),t(["DDD","DDDD"],function(Z,G,q){q._dayOfYear=n(Z)});function Fq(Z){var G=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/86400000)+1;return Z==null?G:this.add(Z-G,"d")}x("m",["mm",2],0,"minute"),j("m",X0,z6),j("mm",X0,S0),t(["m","mm"],k0);var jq=t8("Minutes",!1);x("s",["ss",2],0,"second"),j("s",X0,z6),j("ss",X0,S0),t(["s","ss"],J8);var Sq=t8("Seconds",!1);x("S",0,0,function(){return~~(this.millisecond()/100)}),x(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),x(0,["SSS",3],0,"millisecond"),x(0,["SSSS",4],0,function(){return this.millisecond()*10}),x(0,["SSSSS",5],0,function(){return this.millisecond()*100}),x(0,["SSSSSS",6],0,function(){return this.millisecond()*1000}),x(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),x(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),x(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),j("S",A4,vX),j("SS",A4,S0),j("SSS",A4,yX);var $8,zQ;for($8="SSSS";$8.length<=9;$8+="S")j($8,a8);function wq(Z,G){G[L8]=n(("0."+Z)*1000)}for($8="S";$8.length<=9;$8+="S")t($8,wq);zQ=t8("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");function xq(){return this._isUTC?"UTC":""}function vq(){return this._isUTC?"Coordinated Universal Time":""}var E=i.prototype;if(E.add=LK,E.calendar=xK,E.clone=vK,E.diff=fK,E.endOf=aK,E.format=cK,E.from=lK,E.fromNow=nK,E.to=iK,E.toNow=sK,E.get=pG,E.invalidAt=Gq,E.isAfter=yK,E.isBefore=kK,E.isBetween=bK,E.isSame=hK,E.isSameOrAfter=gK,E.isSameOrBefore=uK,E.isValid=Zq,E.lang=YQ,E.locale=qQ,E.localeData=VQ,E.max=ZK,E.min=JK,E.parsingFlags=Hq,E.set=cG,E.startOf=rK,E.subtract=OK,E.toArray=Xq,E.toObject=Qq,E.toDate=eK,E.toISOString=mK,E.inspect=pK,typeof Symbol<"u"&&Symbol.for!=null)E[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"};E.toJSON=Jq,E.toString=dK,E.unix=tK,E.valueOf=oK,E.creationData=Kq,E.eraName=Bq,E.eraNarrow=Uq,E.eraAbbr=Wq,E.eraYear=Nq,E.year=hX,E.isLeapYear=mG,E.weekYear=_q,E.isoWeekYear=Rq,E.quarter=E.quarters=Tq,E.month=mX,E.daysInMonth=eG,E.week=E.weeks=q9,E.isoWeek=E.isoWeeks=Y9,E.weeksInYear=Dq,E.weeksInWeekYear=Lq,E.isoWeeksInYear=Cq,E.isoWeeksInISOWeekYear=Eq,E.date=$Q,E.day=E.days=R9,E.weekday=C9,E.isoWeekday=E9,E.dayOfYear=Fq,E.hour=E.hours=S9,E.minute=E.minutes=jq,E.second=E.seconds=Sq,E.millisecond=E.milliseconds=zQ,E.utcOffset=WK,E.utc=$K,E.local=zK,E.parseZone=AK,E.hasAlignedHourOffset=IK,E.isDST=MK,E.isLocal=_K,E.isUtcOffset=RK,E.isUtc=JQ,E.isUTC=JQ,E.zoneAbbr=xq,E.zoneName=vq,E.dates=f("dates accessor is deprecated. Use date instead.",$Q),E.months=f("months accessor is deprecated. Use month instead",mX),E.years=f("years accessor is deprecated. Use year instead",hX),E.zone=f("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",NK),E.isDSTShifted=f("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",PK);function yq(Z){return Q0(Z*1000)}function kq(){return Q0.apply(null,arguments).parseZone()}function AQ(Z){return Z}var o=M0.prototype;o.calendar=S,o.longDateFormat=W4,o.invalidDate=N4,o.ordinal=i8,o.preparse=AQ,o.postformat=AQ,o.relativeTime=D8,o.pastFuture=W8,o.set=V0,o.eras=qq,o.erasParse=Yq,o.erasConvertYear=Vq,o.erasAbbrRegex=zq,o.erasNameRegex=$q,o.erasNarrowRegex=Aq,o.months=rG,o.monthsShort=aG,o.monthsParse=tG,o.monthsRegex=Q9,o.monthsShortRegex=X9,o.week=Z9,o.firstDayOfYear=K9,o.firstDayOfWeek=G9,o.weekdays=A9,o.weekdaysMin=M9,o.weekdaysShort=I9,o.weekdaysParse=_9,o.weekdaysRegex=D9,o.weekdaysShortRegex=L9,o.weekdaysMinRegex=O9,o.isPM=F9,o.meridiem=w9;function w4(Z,G,q,V){var W=H8(),$=P().set(V,G);return W[q]($,Z)}function IQ(Z,G,q){if(N(Z))G=Z,Z=void 0;if(Z=Z||"",G!=null)return w4(Z,G,q,"month");var V,W=[];for(V=0;V<12;V++)W[V]=w4(Z,V,q,"month");return W}function x6(Z,G,q,V){if(typeof Z==="boolean"){if(N(G))q=G,G=void 0;G=G||""}else{if(G=Z,q=G,Z=!1,N(G))q=G,G=void 0;G=G||""}var W=H8(),$=Z?W._week.dow:0,I,F=[];if(q!=null)return w4(G,(q+$)%7,V,"day");for(I=0;I<7;I++)F[I]=w4(G,(I+$)%7,V,"day");return F}function bq(Z,G){return IQ(Z,G,"months")}function hq(Z,G){return IQ(Z,G,"monthsShort")}function gq(Z,G,q){return x6(Z,G,q,"weekdays")}function uq(Z,G,q){return x6(Z,G,q,"weekdaysShort")}function fq(Z,G,q){return x6(Z,G,q,"weekdaysMin")}N8("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(Z){var G=Z%10,q=n(Z%100/10)===1?"th":G===1?"st":G===2?"nd":G===3?"rd":"th";return Z+q}}),Q.lang=f("moment.lang is deprecated. Use moment.locale instead.",N8),Q.langData=f("moment.langData is deprecated. Use moment.localeData instead.",H8);var G8=Math.abs;function dq(){var Z=this._data;return this._milliseconds=G8(this._milliseconds),this._days=G8(this._days),this._months=G8(this._months),Z.milliseconds=G8(Z.milliseconds),Z.seconds=G8(Z.seconds),Z.minutes=G8(Z.minutes),Z.hours=G8(Z.hours),Z.months=G8(Z.months),Z.years=G8(Z.years),this}function MQ(Z,G,q,V){var W=b0(G,q);return Z._milliseconds+=V*W._milliseconds,Z._days+=V*W._days,Z._months+=V*W._months,Z._bubble()}function mq(Z,G){return MQ(this,Z,G,1)}function pq(Z,G){return MQ(this,Z,G,-1)}function PQ(Z){if(Z<0)return Math.floor(Z);else return Math.ceil(Z)}function cq(){var Z=this._milliseconds,G=this._days,q=this._months,V=this._data,W,$,I,F,u;if(!(Z>=0&&G>=0&&q>=0||Z<=0&&G<=0&&q<=0))Z+=PQ(v6(q)+G)*86400000,G=0,q=0;return V.milliseconds=Z%1000,W=w0(Z/1000),V.seconds=W%60,$=w0(W/60),V.minutes=$%60,I=w0($/60),V.hours=I%24,G+=w0(I/24),u=w0(_Q(G)),q+=u,G-=PQ(v6(u)),F=w0(q/12),q%=12,V.days=G,V.months=q,V.years=F,this}function _Q(Z){return Z*4800/146097}function v6(Z){return Z*146097/4800}function lq(Z){if(!this.isValid())return NaN;var G,q,V=this._milliseconds;if(Z=O0(Z),Z==="month"||Z==="quarter"||Z==="year")switch(G=this._days+V/86400000,q=this._months+_Q(G),Z){case"month":return q;case"quarter":return q/3;case"year":return q/12}else switch(G=this._days+Math.round(v6(this._months)),Z){case"week":return G/7+V/604800000;case"day":return G+V/86400000;case"hour":return G*24+V/3600000;case"minute":return G*1440+V/60000;case"second":return G*86400+V/1000;case"millisecond":return Math.floor(G*86400000)+V;default:throw Error("Unknown unit "+Z)}}function K8(Z){return function(){return this.as(Z)}}var RQ=K8("ms"),nq=K8("s"),iq=K8("m"),sq=K8("h"),rq=K8("d"),aq=K8("w"),oq=K8("M"),tq=K8("Q"),eq=K8("y"),XY=RQ;function QY(){return b0(this)}function JY(Z){return Z=O0(Z),this.isValid()?this[Z+"s"]():NaN}function T8(Z){return function(){return this.isValid()?this._data[Z]:NaN}}var ZY=T8("milliseconds"),HY=T8("seconds"),GY=T8("minutes"),KY=T8("hours"),qY=T8("days"),YY=T8("months"),VY=T8("years");function BY(){return w0(this.days()/7)}var q8=Math.round,J1={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function UY(Z,G,q,V,W){return W.relativeTime(G||1,!!q,Z,V)}function WY(Z,G,q,V){var W=b0(Z).abs(),$=q8(W.as("s")),I=q8(W.as("m")),F=q8(W.as("h")),u=q8(W.as("d")),s=q8(W.as("M")),C0=q8(W.as("w")),Y8=q8(W.as("y")),z8=$<=q.ss&&["s",$]||$<q.s&&["ss",$]||I<=1&&["m"]||I<q.m&&["mm",I]||F<=1&&["h"]||F<q.h&&["hh",F]||u<=1&&["d"]||u<q.d&&["dd",u];if(q.w!=null)z8=z8||C0<=1&&["w"]||C0<q.w&&["ww",C0];return z8=z8||s<=1&&["M"]||s<q.M&&["MM",s]||Y8<=1&&["y"]||["yy",Y8],z8[2]=G,z8[3]=+Z>0,z8[4]=V,UY.apply(null,z8)}function NY(Z){if(Z===void 0)return q8;if(typeof Z==="function")return q8=Z,!0;return!1}function $Y(Z,G){if(J1[Z]===void 0)return!1;if(G===void 0)return J1[Z];if(J1[Z]=G,Z==="s")J1.ss=G-1;return!0}function zY(Z,G){if(!this.isValid())return this.localeData().invalidDate();var q=!1,V=J1,W,$;if(typeof Z==="object")G=Z,Z=!1;if(typeof Z==="boolean")q=Z;if(typeof G==="object"){if(V=Object.assign({},J1,G),G.s!=null&&G.ss==null)V.ss=G.s-1}if(W=this.localeData(),$=WY(this,!q,V,W),q)$=W.pastFuture(+this,$);return W.postformat($)}var y6=Math.abs;function Z1(Z){return(Z>0)-(Z<0)||+Z}function x4(){if(!this.isValid())return this.localeData().invalidDate();var Z=y6(this._milliseconds)/1000,G=y6(this._days),q=y6(this._months),V,W,$,I,F=this.asSeconds(),u,s,C0,Y8;if(!F)return"P0D";return V=w0(Z/60),W=w0(V/60),Z%=60,V%=60,$=w0(q/12),q%=12,I=Z?Z.toFixed(3).replace(/\.?0+$/,""):"",u=F<0?"-":"",s=Z1(this._months)!==Z1(F)?"-":"",C0=Z1(this._days)!==Z1(F)?"-":"",Y8=Z1(this._milliseconds)!==Z1(F)?"-":"",u+"P"+($?s+$+"Y":"")+(q?s+q+"M":"")+(G?C0+G+"D":"")+(W||V||Z?"T":"")+(W?Y8+W+"H":"")+(V?Y8+V+"M":"")+(Z?Y8+I+"S":"")}var r=L4.prototype;r.isValid=YK,r.abs=dq,r.add=mq,r.subtract=pq,r.as=lq,r.asMilliseconds=RQ,r.asSeconds=nq,r.asMinutes=iq,r.asHours=sq,r.asDays=rq,r.asWeeks=aq,r.asMonths=oq,r.asQuarters=tq,r.asYears=eq,r.valueOf=XY,r._bubble=cq,r.clone=QY,r.get=JY,r.milliseconds=ZY,r.seconds=HY,r.minutes=GY,r.hours=KY,r.days=qY,r.weeks=BY,r.months=YY,r.years=VY,r.humanize=zY,r.toISOString=x4,r.toString=x4,r.toJSON=x4,r.locale=qQ,r.localeData=VQ,r.toIsoString=f("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",x4),r.lang=YQ,x("X",0,0,"unix"),x("x",0,0,"valueOf"),j("x",M4),j("X",bG),t("X",function(Z,G,q){q._d=new Date(parseFloat(Z)*1000)}),t("x",function(Z,G,q){q._d=new Date(n(Z))});//! moment.js
44
+ return Q.version="2.30.1",J(Q0),Q.fn=E,Q.min=HK,Q.max=GK,Q.now=KK,Q.utc=P,Q.unix=yq,Q.months=bq,Q.isDate=z,Q.locale=N8,Q.invalid=y,Q.duration=b0,Q.isMoment=b,Q.weekdays=gq,Q.parseZone=kq,Q.localeData=H8,Q.isDuration=O4,Q.monthsShort=hq,Q.weekdaysMin=fq,Q.defineLocale=R6,Q.updateLocale=k9,Q.locales=b9,Q.weekdaysShort=uq,Q.normalizeUnits=O0,Q.relativeTimeRounding=NY,Q.relativeTimeThreshold=$Y,Q.calendarFormat=wK,Q.prototype=E,Q.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},Q})});var RG=_((L2,_G)=>{/*!
45
+ * FileStreamRotator
46
+ * Copyright(c) 2012-2017 Holiday Extras.
47
+ * Copyright(c) 2017 Roger C.
48
+ * MIT Licensed
49
+ */var Y0=h("fs"),E8=h("path"),c8=zG(),IG=h("crypto"),Zz=h("events"),t0={};_G.exports=t0;var MG=["daily","test","m","h","custom"],PG="YYYYMMDDHHmm",Hz=function(X,Q){if(typeof Q=="number"){switch(X){case"m":if(Q<0||Q>60)return!1;break;case"h":if(Q<0||Q>24)return!1;break}return{type:X,digit:Q}}},Gz=function(X){switch(X){case"custom":case"daily":return{type:X,digit:void 0};case"test":return{type:X,digit:0}}return!1};t0.getFrequency=function(X){var Q=X.toLowerCase().match(/^(\d+)([mh])$/);if(Q)return Hz(Q[2],parseInt(Q[1]));var J=Gz(X);if(J)return J;return!1};t0.parseFileSize=function(X){if(X&&typeof X=="string"){var Q=X.toLowerCase().match(/^((?:0\.)?\d+)([kmg])$/);if(Q)switch(Q[2]){case"k":return Q[1]*1024;case"m":return Q[1]*1024*1024;case"g":return Q[1]*1024*1024*1024}}return null};t0.getDate=function(X,Q,J){Q=Q||PG;let H=J?c8.utc():c8().local();if(X&&MG.indexOf(X.type)!==-1)switch(X.type){case"m":var K=Math.floor(H.minutes()/X.digit)*X.digit;return H.minutes(K).format(Q);case"h":var Y=Math.floor(H.hour()/X.digit)*X.digit;return H.hour(Y).format(Q);case"daily":case"custom":case"test":return H.format(Q)}return H.format(Q)};t0.setAuditLog=function(X,Q,J){var H=null;if(X){var K=X.toString().substr(-1),Y=X.toString().match(/^(\d+)/);if(Number(Y[1])>0){var B=E8.dirname(J.replace(/%DATE%.+/,"_filename"));try{if(Q){var U=E8.resolve(Q);H=JSON.parse(Y0.readFileSync(U,{encoding:"utf-8"}))}else{var U=E8.resolve(B+"/.audit.json");H=JSON.parse(Y0.readFileSync(U,{encoding:"utf-8"}))}}catch(N){if(N.code!=="ENOENT")return null;H={keep:{days:!1,amount:Number(Y[1])},auditLog:Q||B+"/.audit.json",files:[]}}H.keep={days:K==="d",amount:Number(Y[1])}}}return H};t0.writeAuditLog=function(X,Q){try{wX(X.auditLog),Y0.writeFileSync(X.auditLog,JSON.stringify(X,null,4))}catch(J){if(Q)console.error(new Date,"[FileStreamRotator] Failed to store log audit at:",X.auditLog,"Error:",J)}};function AG(X,Q){if(X.hash===IG.createHash(X.hashType).update(X.name+"LOG_FILE"+X.date).digest("hex"))try{if(Y0.existsSync(X.name))Y0.unlinkSync(X.name)}catch(J){if(Q)console.error(new Date,"[FileStreamRotator] Could not remove old log file: ",X.name)}}function Kz(X,Q,J){let H=Q||"current.log",K=E8.dirname(X),Y=E8.basename(X),B=K+"/"+H;try{if(Y0.lstatSync(B).isSymbolicLink())Y0.unlinkSync(B),Y0.symlinkSync(Y,B)}catch(U){if(U&&U.code=="ENOENT")try{Y0.symlinkSync(Y,B)}catch(N){if(J)console.error(new Date,"[FileStreamRotator] Could not create symlink file: ",B," -> ",Y)}}}function qz(X,Q,J){if(!X)return null;try{let H=Y0.lstatSync(X);return Y0.watch(X,function(K,Y){if(K=="rename")try{let B=Y0.lstatSync(X)}catch(B){J(B,X)}})}catch(H){if(Q)console.log(new Date,"[FileStreamRotator] Could not add watcher for "+X)}}t0.addLogToAudit=function(X,Q,J,H){if(Q&&Q.files){var K=Q.files.findIndex(function(z){return z.name===X});if(K!==-1)return Q;var Y=Date.now();if(Q.files.push({date:Y,name:X,hash:IG.createHash(Q.hashType).update(X+"LOG_FILE"+Y).digest("hex")}),Q.keep.days){var B=c8().subtract(Q.keep.amount,"days").valueOf(),U=Q.files.filter(function(z){if(z.date>B)return!0;return z.hashType=Q.hashType,AG(z,H),J.emit("logRemoved",z),!1});Q.files=U}else{var N=Q.files.splice(-Q.keep.amount);if(Q.files.length>0)Q.files.filter(function(z){return z.hashType=Q.hashType,AG(z,H),J.emit("logRemoved",z),!1});Q.files=N}t0.writeAuditLog(Q,H)}return Q};t0.getStream=function(X){var Q=null,J=null,H=this;if(!X.filename)return console.error(new Date,"[FileStreamRotator] No filename supplied. Defaulting to STDOUT"),process.stdout;if(X.frequency)Q=H.getFrequency(X.frequency);let K=H.setAuditLog(X.max_logs,X.audit_file,X.filename);if(K!=null)K.hashType=X.audit_hash_type!==void 0?X.audit_hash_type:"md5";H.verbose=X.verbose!==void 0?X.verbose:!0;var Y=null,B=0,U=0;if(X.size)Y=t0.parseFileSize(X.size);var N=X.date_format||PG;if(Q&&Q.type=="daily"){if(!X.date_format)N="YYYY-MM-DD";if(c8().format(N)!=c8().endOf("day").format(N)||c8().format(N)==c8().add(1,"day").format(N)){if(H.verbose)console.log(new Date,"[FileStreamRotator] Changing type to custom as date format changes more often than once a day or not every day");Q.type="custom"}}if(Q)J=X.frequency?H.getDate(Q,N,X.utc):"";X.create_symlink=X.create_symlink||!1,X.extension=X.extension||"";var z=X.filename,R=null,M=z+(J?"."+J:"");if(z.match(/%DATE%/))M=z.replace(/%DATE%/g,J?J:H.getDate(null,N,X.utc));if(Y){var P=null,L=M,A=null;if(K&&K.files&&K.files instanceof Array&&K.files.length>0){var D=K.files[K.files.length-1].name;if(D.match(L)){var v=D.match(L+"\\.(\\d+)");if(v)L=D,B=v[1]}}if(B==0&&L==M)L+=X.extension;while(A=Y0.existsSync(L))P=L,B++,L=M+"."+B+X.extension;if(P){var y=Y0.statSync(P);if(y.size<Y)L=P,B--,U=y.size}M=L}else M+=X.extension;if(H.verbose)console.log(new Date,"[FileStreamRotator] Logging to: ",M);wX(M);var d=X.file_options||{flags:"a"},O=Y0.createWriteStream(M,d);if(J&&Q&&MG.indexOf(Q.type)>-1||Y>0){if(H.verbose)console.log(new Date,"[FileStreamRotator] Rotating file: ",Q?Q.type:"",Y?"size: "+Y:"");var w=new Zz;w.auditLog=K,w.end=function(){O.end.apply(O,arguments)},SX(O,w),w.on("close",function(){if(i)i.close()}),w.on("new",function(b){if(w.auditLog=H.addLogToAudit(b,w.auditLog,w,H.verbose),X.create_symlink)Kz(b,X.symlink_name,H.verbose);if(X.watch_log)w.emit("addWatcher",b)});var i;return w.on("addWatcher",function(b){if(i)i.close();if(!X.watch_log)return;i=qz(b,H.verbose,function(m,f){w.emit("createLog",f)})}),w.on("createLog",function(b){try{let m=Y0.lstatSync(b)}catch(m){if(O&&O.end=="function")O.end();O=Y0.createWriteStream(b,d),w.emit("new",b),SX(O,w)}}),w.write=function(b,m){var f=Q?this.getDate(Q,N,X.utc):J;if(f!=J||Y&&U>Y){var g=z+(J&&Q?"."+f:"");if(z.match(/%DATE%/)&&J)g=z.replace(/%DATE%/g,f);if(Y&&U>Y)B++,g+="."+B+X.extension;else B=0,g+=X.extension;if(U=0,H.verbose)console.log(new Date,h("util").format("[FileStreamRotator] Changing logs from %s to %s",M,g));if(J=f,R=M,M=g,X.end_stream===!0)O.end();else O.destroy();wX(M),O=Y0.createWriteStream(g,d),w.emit("new",g),w.emit("rotate",R,g),SX(O,w)}O.write(b,m),U+=Buffer.byteLength(b,m)}.bind(this),process.nextTick(function(){w.emit("new",M)}),w.emit("new",M),w}else{if(H.verbose)console.log(new Date,"[FileStreamRotator] File won't be rotated: ",X.frequency,X.size);return process.nextTick(function(){O.emit("new",M)}),O}};var wX=function(X){var Q=E8.dirname(X);Q.split(E8.sep).reduce(function(J,H){if(J+=H+E8.sep,!Y0.existsSync(J))try{Y0.mkdirSync(J)}catch(K){if(K.code!=="EEXIST")throw K}return J},"")},SX=function(Q,J){Q.on("close",function(){J.emit("close")}),Q.on("finish",function(){J.emit("finish")}),Q.on("error",function(H){J.emit("error",H)}),Q.on("open",function(H){J.emit("open",H)})}});var OG=_((O2,LG)=>{var U8=h("fs"),Yz=h("os"),C1=h("path"),Vz=h("util"),CG=h("zlib"),Bz=$G(),Uz=K0().MESSAGE,EG=h("stream").PassThrough,DG=u8(),Wz={json:!1,colorize:!1,eol:Yz.EOL,logstash:null,prettyPrint:!1,label:null,stringify:!1,depth:null,showLevel:!0,timestamp:()=>{return new Date().toISOString()}},E1=function(X){X=X||{},DG.call(this,X);function Q(Y){Array.prototype.slice.call(arguments,1).forEach((B)=>{if(X[B])throw Error("Cannot set "+B+" and "+Y+" together")})}function J(Y){if(Y&&typeof Y==="string"){if(Y.toLowerCase().match(/^((?:0\.)?\d+)([kmg])$/))return Y}else if(Y&&Number.isInteger(Y)){let B=Math.round(Y/1024);return B===0?"1k":B+"k"}return null}function H(Y){return!/["<>|:*?\\/\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f]/g.test(Y)}function K(Y){return!/["<>|\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f]/g.test(Y)}if(this.options=Object.assign({},Wz,X),X.stream)Q("stream","filename","maxsize"),this.logStream=new EG,this.logStream.pipe(X.stream);else{if(this.filename=X.filename?C1.basename(X.filename):"winston.log",this.dirname=X.dirname||C1.dirname(X.filename),!H(this.filename)||!K(this.dirname))throw Error("Your path or filename contain an invalid character.");if(this.logStream=RG().getStream({filename:C1.join(this.dirname,this.filename),frequency:X.frequency?X.frequency:"custom",date_format:X.datePattern?X.datePattern:"YYYY-MM-DD",verbose:!1,size:J(X.maxSize),max_logs:X.maxFiles,end_stream:!0,audit_file:X.auditFile?X.auditFile:C1.join(this.dirname,"."+Bz(X)+"-audit.json"),file_options:X.options?X.options:{flags:"a"},utc:X.utc?X.utc:!1,extension:X.extension?X.extension:"",create_symlink:X.createSymlink?X.createSymlink:!1,symlink_name:X.symlinkName?X.symlinkName:"current.log",watch_log:X.watchLog?X.watchLog:!1,audit_hash_type:X.auditHashType?X.auditHashType:"sha256"}),this.logStream.on("new",(Y)=>{this.emit("new",Y)}),this.logStream.on("rotate",(Y,B)=>{this.emit("rotate",Y,B)}),this.logStream.on("logRemoved",(Y)=>{if(X.zippedArchive){let B=Y.name+".gz";try{U8.unlinkSync(B)}catch(U){if(U.code!=="ENOENT"){U.message=`Error occurred while removing ${B}: ${U.message}`,this.emit("error",U);return}}this.emit("logRemoved",B);return}this.emit("logRemoved",Y.name)}),X.zippedArchive)this.logStream.on("rotate",(Y)=>{try{if(!U8.existsSync(Y))return}catch(z){z.message=`Error occurred while checking existence of ${Y}: ${z.message}`,this.emit("error",z);return}try{if(U8.existsSync(`${Y}.gz`))return}catch(z){z.message=`Error occurred while checking existence of ${Y}.gz: ${z.message}`,this.emit("error",z);return}let B=CG.createGzip(),U=U8.createReadStream(Y);U.on("error",(z)=>{z.message=`Error occurred while reading ${Y}: ${z.message}`,this.emit("error",z)});let N=U8.createWriteStream(Y+".gz");N.on("error",(z)=>{z.message=`Error occurred while writing ${Y}.gz: ${z.message}`,this.emit("error",z)}),U.pipe(B).pipe(N).on("finish",()=>{try{U8.unlinkSync(Y)}catch(z){if(z.code!=="ENOENT"){z.message=`Error occurred while removing ${Y}: ${z.message}`,this.emit("error",z);return}}this.emit("archive",Y+".gz")})});if(X.watchLog)this.logStream.on("addWatcher",(Y)=>{this.emit("addWatcher",Y)})}};LG.exports=E1;Vz.inherits(E1,DG);E1.prototype.name="dailyRotateFile";var Nz=function(){};E1.prototype.log=function(X,Q){Q=Q||Nz,this.logStream.write(X[Uz]+this.options.eol),this.emit("logged",X),Q(null,!0)};E1.prototype.close=function(){if(this.logStream)this.logStream.end(()=>{this.emit("finish")})};E1.prototype.query=function(X,Q){if(typeof X==="function")Q=X,X={};if(!this.options.json)throw Error("query() may not be used without the json option being set to true");if(!this.filename)throw Error("query() may not be used when initializing with a stream");let J=[];if(X=X||{},X.rows=X.rows||X.limit||10,X.start=X.start||0,X.until=X.until||new Date,typeof X.until!=="object")X.until=new Date(X.until);if(X.from=X.from||X.until-86400000,typeof X.from!=="object")X.from=new Date(X.from);X.order=X.order||"desc";let H=(()=>{let Y=new RegExp(this.filename.replace("%DATE%",".*"),"i");return U8.readdirSync(this.dirname).filter((B)=>C1.basename(B).match(Y))})();if(H.length===0&&Q)Q(null,J);let K=(Y)=>{if(!Y)return;let B=C1.join(this.dirname,Y),U="",N;if(Y.endsWith(".gz")){N=new EG;let R=U8.createReadStream(B);R.on("error",(M)=>{M.message=`Error occurred while reading ${B}: ${M.message}`,N.emit("error",M)}),R.pipe(CG.createGunzip()).pipe(N)}else N=U8.createReadStream(B,{encoding:"utf8"});N.on("error",(R)=>{if(N.readable)N.destroy();if(!Q)return;return R.code==="ENOENT"?Q(null,J):Q(R)}),N.on("data",(R)=>{R=(U+R).split(/\n+/);let M=R.length-1;for(let P=0;P<M;P++)z(R[P]);U=R[M]}),N.on("end",()=>{if(U)z(U,!0);if(H.length)K(H.shift());else if(Q){if(J.sort((P,L)=>{let A=new Date(P.timestamp).getTime(),D=new Date(L.timestamp).getTime();return A>D?1:A<D?-1:0}),X.order==="desc")J=J.reverse();let R=X.start||0,M=X.limit||J.length;if(J=J.slice(R,R+M),X.fields)J=J.map((P)=>{let L={};return X.fields.forEach((A)=>{L[A]=P[A]}),L});Q(null,J)}});function z(R,M){try{let P=JSON.parse(R);if(!P||typeof P!=="object")return;let L=new Date(P.timestamp);if(X.from&&L<X.from||X.until&&L>X.until||X.level&&X.level!==P.level)return;J.push(P)}catch(P){if(!M)N.emit("error",P)}}};K(H.shift())}});var jG=_((T2,FG)=>{var $z=OX(),TG=OG();$z.transports.DailyRotateFile=TG;FG.exports=TG});var y1={},k1=k6(),h0=k1.isBunRuntime,DQ=k1.isCloudflareRuntime,EY=k1.isNodeRuntime,l0=k1.hasFileSystemAccess,H1=k1.console,LQ=y1;b6();function g0(X,Q){let J=typeof process<"u"?process.env:void 0,H=J?J[X]:void 0,K=h0?Bun?.env?.[X]:void 0,Y=LQ[X],B=typeof Y==="string"?Y:void 0,U=DQ?B??H??K:H??K??B;return U===void 0||U===""?Q:U}function Ez(X,Q){if(typeof process<"u")process.env[X]=Q;LQ[X]=Q}function Dz(X){globalThis.__hapiRuntimeOverride="cloudflare",OQ(),Object.assign(y1,X)}function Lz(){delete globalThis.__hapiRuntimeOverride,OQ()}async function Oz(X){if(!h0)throw Error(`File system access not available in this runtime: ${X}`);return await Bun.file(X).text()}async function Tz(X){if(!h0)throw Error(`File system access not available in this runtime: ${X}`);return await Bun.file(X).json()}async function Fz(X){return h0?await Bun.file(X).exists():!1}function jz(X){if(!h0)throw Error(`File system access not available in this runtime: ${X}`);return Bun.file(X)}function OQ(){let X=k6();jQ(X),b6()}function TQ(){if(l0)return;if(FQ()!==void 0)return;let X=k6();jQ(X),b6()}function k6(){let X=FQ(),Q=DY(X),J=Q?!1:LY(X),H=OY(X,J);return{isBunRuntime:Q,isCloudflareRuntime:J,isNodeRuntime:H,hasFileSystemAccess:!J&&(Q||H),console:TY()}}function DY(X){if(X==="bun")return!0;if(X==="cloudflare"||X==="node")return!1;return typeof Bun<"u"}function LY(X){if(X==="cloudflare")return!0;if(X==="bun"||X==="node")return!1;let Q=typeof globalThis<"u"?globalThis:void 0,J=Q?.navigator?.userAgent??"",H=typeof J==="string"&&J.includes("Cloudflare-Workers"),K=typeof Q?.__ENVIRONMENT__==="string"&&Q.__ENVIRONMENT__.toLowerCase()==="workerd",Y=typeof Q?.caches?.default<"u";return H||K||Y}function OY(X,Q){if(X==="node")return!0;if(X==="bun"||X==="cloudflare")return!1;if(Q)return!1;let J=typeof process<"u"?process.versions?.node:void 0;return typeof J==="string"&&J.length>0}function FQ(){return typeof globalThis<"u"?globalThis.__hapiRuntimeOverride:void 0}function TY(){let X=()=>{},Q=typeof console<"u"?console:void 0;if(!Q)return{log:X,info:X,warn:X,error:X,debug:X};let J=(K,Y)=>typeof K==="function"?K.bind(Q):Y,H=J(Q.log,X);return{log:H,info:J(Q.info,H),warn:J(Q.warn,H),error:J(Q.error,H),debug:J(Q.debug,H)}}function jQ(X){h0=X.isBunRuntime,DQ=X.isCloudflareRuntime,EY=X.isNodeRuntime,l0=X.hasFileSystemAccess,H1=X.console}function b6(){let X=FY();for(let Q of Object.keys(y1))delete y1[Q];Object.assign(y1,X)}function FY(){if(h0)return{...typeof Bun<"u"?Bun.env:{},...typeof process<"u"?process.env:{}};return(typeof process<"u"?process:void 0)?.env??{}}import F8 from"path";var j8=l0?SQ():wQ(),jY=j8.home,SY=j8.specs,wY=j8.config,xY=j8.src,h6=j8.logs,vY=j8.certs;function vz(){return{...j8}}function yz(){return l0?SQ():wQ()}function SQ(){let X=g0("HAPI_HOME"),Q=X&&X.trim().length>0?X:yY();return xQ(Q)}function wQ(){return xQ("/hapi")}function xQ(X){return{home:X,specs:F8.join(X,"specs"),config:F8.join(X,"config"),src:F8.join(X,"src"),logs:F8.join(X,"logs"),certs:F8.join(X,"certs")}}function yY(){if(h0){let Q=globalThis.Bun?.env??{},J=Q.HOME??Q.USERPROFILE??process.env.HOME??process.env.USERPROFILE??".";return F8.join(J,".hapi")}let X=process.env.HOME??process.env.USERPROFILE??".";return F8.join(X,".hapi")}async function kY(X){if(!l0)return;try{await(await import("fs/promises")).mkdir(X,{recursive:!0})}catch{}}async function kz(){if(!l0)return;await Promise.all([jY,SY,wY,xY,h6,vY].map(kY))}import V4 from"path";import D1 from"fs";var R0=null;TQ();if(l0)try{let X=await Promise.resolve().then(() => EQ(OX(),1));await Promise.resolve().then(() => EQ(jG(),1)),R0=X.default??X}catch{R0=null}var zz=typeof globalThis.it==="function"&&typeof globalThis.describe==="function",xG=h0&&typeof globalThis.Bun<"u"&&Array.isArray(globalThis.Bun.argv)&&globalThis.Bun.argv.includes("test")||zz,SG=()=>{let X=g0("NODE_ENV");return X==="production"||!X||X!=="development"},wG=g0("LOG_DIR"),Az=()=>xG?V4.resolve(process.cwd(),".test-hapi-home/logs"):h6;R0?.addColors({http:"magenta",debug:"grey"});var Iz=R0?.format.colorize(),Mz=R0?R0.format.combine(R0.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),R0.format.printf((X)=>{let{timestamp:Q,level:J,message:H,...K}=X,Y=Object.keys(K).length?`
50
+ ${JSON.stringify(K,null,2)}`:"";return Iz?.colorize(J,`${Q} [${J.toUpperCase()}]: ${H}${Y}`)??`${Q} [${J.toUpperCase()}]: ${H}${Y}`})):void 0,Pz=R0?R0.format.combine(R0.format.timestamp(),R0.format.json()):void 0,_z=(X)=>{let Q=`[${X}]`,J=(H,...K)=>{(H1[H]??H1.log)(Q,...K)};return{log:(H,...K)=>{(H1[typeof H==="string"?H:"log"]??H1.log)(Q,...K)},info:(...H)=>J("info",...H),warn:(...H)=>J("warn",...H),error:(...H)=>J("error",...H),debug:(...H)=>J("debug",...H)}};function Rz(X){let Q=typeof X==="string"?{projectname:X}:X,J=Q.projectname,H=g0("NODE_ENV")==="test"||xG,K=Q.disableFileLogs||H&&g0("HAPI_ENABLE_TEST_FILE_LOGS")!=="true"||g0("HAPI_DISABLE_FILE_LOGS")==="true";if(!R0)return _z(J);let Y=Q.logDir?V4.resolve(Q.logDir):wG?V4.resolve(wG):Az(),B=!K;if(B&&l0)try{D1.mkdirSync(Y,{recursive:!0});try{D1.accessSync(Y,D1.constants.W_OK)}catch{throw Error("No write permission in log dir")}}catch{try{Y=V4.resolve(process.cwd(),".test-hapi-home/logs"),D1.mkdirSync(Y,{recursive:!0}),D1.accessSync(Y,D1.constants.W_OK)}catch{B=!1}}let U=[];if(B)U.push(new R0.transports.DailyRotateFile({filename:V4.join(Y,`${J}-hapi-%DATE%.log`),datePattern:"YYYY-MM-DD",maxSize:"20m",maxFiles:"14d",format:Pz}));if(!SG()||K||!B)U.push(new R0.transports.Console({format:Mz}));return R0.createLogger({level:SG()?g0("HAPI_LOG_LEVEL_PROD")??"info":g0("HAPI_LOG_LEVEL_DEV")??"debug",transports:U})}var xX=null;function Y4(){if(!xX){let X=g0("HAPI_PROJECT_NAME")??"hapi";xX=Rz(X)}return xX}var x2={log:(...X)=>Y4().log(...X),info:(...X)=>Y4().info(...X),warn:(...X)=>Y4().warn(...X),error:(...X)=>Y4().error(...X),debug:(...X)=>Y4().debug(...X)};export{x2 as logger,Rz as createLogger};