@mcp-com-ai/shared-utils 1.0.1-beta.260912 → 1.0.2-beta.260914
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/dist/config.js +126 -126
- package/dist/errors.js +3 -2
- package/dist/home.d.ts +13 -0
- package/dist/home.js +1 -1
- package/dist/index.js +177 -176
- package/dist/logger.js +38 -38
- package/dist/runtime.js +1 -1
- package/dist/secrets.js +1 -1
- package/package.json +56 -56
package/dist/logger.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var
|
|
3
|
-
Found: ${
|
|
2
|
+
var Sp=Object.create;var{getPrototypeOf:xp,defineProperty:Oo,getOwnPropertyNames:Mp}=Object;var ko=Object.prototype.hasOwnProperty;function Ep(e){return this[e]}var Op,kp,Do=(e,t,r)=>{var i=e!=null&&typeof e==="object";if(i){var a=t?Op??=new WeakMap:kp??=new WeakMap,u=a.get(e);if(u)return u}r=e!=null?Sp(xp(e)):{};let f=t||!e||!e.__esModule||!ko.call(e,"default")?Oo(r,"default",{value:e,enumerable:!0}):r;if(e&&typeof e==="object"||typeof e==="function"){for(let c of Mp(e))if(!ko.call(f,c))Oo(f,c,{get:Ep.bind(e,c),enumerable:!0})}if(i)a.set(e,f);return f};var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var j=import.meta.require;var Re=b(function(zS,Co){class Wi extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
3
|
+
Found: ${e.toString().split(`
|
|
4
4
|
`)[0]}
|
|
5
|
-
`);Error.captureStackTrace(this,
|
|
6
|
-
`)!=-1,
|
|
7
|
-
`));return!0}
|
|
8
|
-
${
|
|
9
|
-
${
|
|
10
|
-
${
|
|
11
|
-
${
|
|
12
|
-
${
|
|
13
|
-
${
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${O}`;return
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
${O}`;return
|
|
20
|
-
${
|
|
21
|
-
${
|
|
22
|
-
${
|
|
23
|
-
${
|
|
24
|
-
${
|
|
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
|
|
29
|
-
`),stack:
|
|
30
|
-
`),stack:
|
|
31
|
-
`));if(
|
|
32
|
-
`))}_onEvent(
|
|
5
|
+
`);Error.captureStackTrace(this,Wi)}}Co.exports=(e)=>{if(e.length>2)throw new Wi(e);function t(i={}){this.options=i}t.prototype.transform=e;function r(i){return new t(i)}return r.Format=t,r}});var $o=b(function(GS,Wo){var Io={};Wo.exports=Io;var jo={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(jo).forEach(function(e){var t=jo[e],r=Io[e]=[];r.open="\x1B["+t[0]+"m",r.close="\x1B["+t[1]+"m"})});var Uo=b(function(VS,Ho){Ho.exports=function(e,t){t=t||process.argv||[];var r=t.indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",a=t.indexOf(i+e);return a!==-1&&(r===-1?!0:a<r)}});var Go=b(function(BS,zo){var Up=j("os"),Ie=Uo(),Ee=process.env,ar=void 0;if(Ie("no-color")||Ie("no-colors")||Ie("color=false"))ar=!1;else if(Ie("color")||Ie("colors")||Ie("color=true")||Ie("color=always"))ar=!0;if("FORCE_COLOR"in Ee)ar=Ee.FORCE_COLOR.length===0||parseInt(Ee.FORCE_COLOR,10)!==0;function zp(e){if(e===0)return!1;return{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Gp(e){if(ar===!1)return 0;if(Ie("color=16m")||Ie("color=full")||Ie("color=truecolor"))return 3;if(Ie("color=256"))return 2;if(e&&!e.isTTY&&ar!==!0)return 0;var t=ar?1:0;if(process.platform==="win32"){var r=Up.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586)return Number(r[2])>=14931?3:2;return 1}if("CI"in Ee){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in Ee})||Ee.CI_NAME==="codeship")return 1;return t}if("TEAMCITY_VERSION"in Ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ee.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Ee){var i=parseInt((Ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ee.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(Ee.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ee.TERM))return 1;if("COLORTERM"in Ee)return 1;if(Ee.TERM==="dumb")return t;return t}function $i(e){var t=Gp(e);return zp(t)}zo.exports={supportsColor:$i,stdout:$i(process.stdout),stderr:$i(process.stderr)}});var Bo=b(function(ZS,Vo){Vo.exports=function(t,r){var i="";t=t||"Run the trap, drop the bass",t=t.split("");var a={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return t.forEach(function(u){u=u.toLowerCase();var f=a[u]||[" "],c=Math.floor(Math.random()*f.length);if(typeof a[u]<"u")i+=a[u][c];else i+=u}),i}});var Jo=b(function(JS,Zo){Zo.exports=function(t,r){t=t||" he is here ";var i={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"]},a=[].concat(i.up,i.down,i.mid);function u(d){var g=Math.floor(Math.random()*d);return g}function f(d){var g=!1;return a.filter(function(v){g=v===d}),g}function c(d,g){var v="",_,w;g=g||{},g.up=typeof g.up<"u"?g.up:!0,g.mid=typeof g.mid<"u"?g.mid:!0,g.down=typeof g.down<"u"?g.down:!0,g.size=typeof g.size<"u"?g.size:"maxi",d=d.split("");for(w in d){if(f(w))continue;switch(v=v+d[w],_={up:0,down:0,mid:0},g.size){case"mini":_.up=u(8),_.mid=u(2),_.down=u(8);break;case"maxi":_.up=u(16)+3,_.mid=u(4)+1,_.down=u(64)+3;break;default:_.up=u(8)+1,_.mid=u(6)/2,_.down=u(8)+1;break}var E=["up","mid","down"];for(var p in E){var M=E[p];for(var P=0;P<=_[M];P++)if(g[M])v=v+i[M][u(i[M].length)]}}return v}return c(t,r)}});var Qo=b(function(KS,Ko){Ko.exports=function(e){return function(t,r,i){if(t===" ")return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}});var eu=b(function(QS,Xo){Xo.exports=function(e){return function(t,r,i){return r%2===0?t:e.inverse(t)}}});var ru=b(function(XS,tu){tu.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,i,a){if(r===" ")return r;else return e[t[i++%t.length]](r)}}});var iu=b(function(e2,nu){nu.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,i,a){return r===" "?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}});var lu=b(function(r2,uu){var G={};uu.exports=G;G.themes={};var Vp=j("util"),Nt=G.styles=$o(),su=Object.defineProperties,Bp=new RegExp(/[\r\n]+/g);G.supportsColor=Go().supportsColor;if(typeof G.enabled>"u")G.enabled=G.supportsColor()!==!1;G.enable=function(){G.enabled=!0};G.disable=function(){G.enabled=!1};G.stripColors=G.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};var t2=G.stylize=function(t,r){if(!G.enabled)return t+"";var i=Nt[r];if(!i&&r in G)return G[r](t);return i.open+t+i.close},Zp=/[|\\{}()[\]^$+*?.]/g,Jp=function(e){if(typeof e!=="string")throw TypeError("Expected a string");return e.replace(Zp,"\\$&")};function au(e){var t=function r(){return Qp.apply(r,arguments)};return t._styles=e,t.__proto__=Kp,t}var ou=function(){var e={};return Nt.grey=Nt.gray,Object.keys(Nt).forEach(function(t){Nt[t].closeRe=new RegExp(Jp(Nt[t].close),"g"),e[t]={get:function(){return au(this._styles.concat(t))}}}),e}(),Kp=su(function(){},ou);function Qp(){var e=Array.prototype.slice.call(arguments),t=e.map(function(f){if(f!=null&&f.constructor===String)return f;else return Vp.inspect(f)}).join(" ");if(!G.enabled||!t)return t;var r=t.indexOf(`
|
|
6
|
+
`)!=-1,i=this._styles,a=i.length;while(a--){var u=Nt[i[a]];if(t=u.open+t.replace(u.closeRe,u.open)+u.close,r)t=t.replace(Bp,function(f){return u.close+f+u.open})}return t}G.setTheme=function(e){if(typeof e==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var t in e)(function(r){G[r]=function(i){if(typeof e[r]==="object"){var a=i;for(var u in e[r])a=G[e[r][u]](a);return a}return G[e[r]](i)}})(t)};function Xp(){var e={};return Object.keys(ou).forEach(function(t){e[t]={get:function(){return au([t])}}}),e}var e0=function(t,r){var i=r.split("");return i=i.map(t),i.join("")};G.trap=Bo();G.zalgo=Jo();G.maps={};G.maps.america=Qo()(G);G.maps.zebra=eu()(G);G.maps.rainbow=ru()(G);G.maps.random=iu()(G);for(Hi in G.maps)(function(e){G[e]=function(t){return e0(G.maps[e],t)}})(Hi);var Hi;su(G,Xp())});var Ui=b(function(n2,fu){var t0=lu();fu.exports=t0});var cu=b(function(r0){r0.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};r0.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var hu=b(function(s0){s0.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};s0.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var du=b(function(u0){u0.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};u0.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var mu=b(function(qn){Object.defineProperty(qn,"cli",{value:cu()});Object.defineProperty(qn,"npm",{value:hu()});Object.defineProperty(qn,"syslog",{value:du()})});var oe=b(function(Fr){Object.defineProperty(Fr,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(Fr,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(Fr,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(Fr,"configs",{value:mu()})});var Fn=b(function(l2,Yn){var Vi=Ui(),{LEVEL:zi,MESSAGE:Gi}=oe();Vi.enabled=!0;var gu=/\s+/;class We{constructor(e={}){if(e.colors)this.addColors(e.colors);this.options=e}static addColors(e){let t=Object.keys(e).reduce((r,i)=>(r[i]=gu.test(e[i])?e[i].split(gu):e[i],r),{});return We.allColors=Object.assign({},We.allColors||{},t),We.allColors}addColors(e){return We.addColors(e)}colorize(e,t,r){if(typeof r>"u")r=t;if(!Array.isArray(We.allColors[e]))return Vi[We.allColors[e]](r);for(let i=0,a=We.allColors[e].length;i<a;i++)r=Vi[We.allColors[e][i]](r);return r}transform(e,t){if(t.all&&typeof e[Gi]==="string")e[Gi]=this.colorize(e[zi],e.level,e[Gi]);if(t.level||t.all||!t.message)e.level=this.colorize(e[zi],e.level);if(t.all||t.message)e.message=this.colorize(e[zi],e.level,e.message);return e}}Yn.exports=(e)=>new We(e);Yn.exports.Colorizer=Yn.exports.Format=We});var yu=b(function(f2,pu){var{Colorizer:c0}=Fn();pu.exports=(e)=>(c0.addColors(e.colors||e),e)});var wu=b(function(c2,_u){var h0=Re();_u.exports=h0((e)=>(e.message=` ${e.message}`,e))});var Su=b(function(h2,vu){var d0=Re(),{LEVEL:bu,MESSAGE:Bi}=oe();vu.exports=d0((e,{stack:t,cause:r})=>{if(e instanceof Error){let a=Object.assign({},e,{level:e.level,[bu]:e[bu]||e.level,message:e.message,[Bi]:e[Bi]||e.message});if(t)a.stack=e.stack;if(r)a.cause=e.cause;return a}if(!(e.message instanceof Error))return e;let i=e.message;if(Object.assign(e,i),e.message=i.message,e[Bi]=i.message,t)e.stack=i.stack;if(r)e.cause=i.cause;return e})});var Ji=b(function(d2,Cn){var{configs:m0,LEVEL:xu,MESSAGE:Zi}=oe();class or{constructor(e={levels:m0.npm.levels}){this.paddings=or.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let t=Object.keys(e).map((r)=>r.length);return Math.max(...t)}static paddingForLevel(e,t,r){let i=r+1-e.length,a=Math.floor(i/t.length);return`${t}${t.repeat(a)}`.slice(0,i)}static paddingForLevels(e,t=" "){let r=or.getLongestLevel(e);return Object.keys(e).reduce((i,a)=>(i[a]=or.paddingForLevel(a,t,r),i),{})}transform(e,t){if(e.message=`${this.paddings[e[xu]]}${e.message}`,e[Zi])e[Zi]=`${this.paddings[e[xu]]}${e[Zi]}`;return e}}Cn.exports=(e)=>new or(e);Cn.exports.Padder=Cn.exports.Format=or});var Mu=b(function(m2,Qi){var{Colorizer:g0}=Fn(),{Padder:p0}=Ji(),{configs:y0,MESSAGE:_0}=oe();class Ki{constructor(e={}){if(!e.levels)e.levels=y0.cli.levels;this.colorizer=new g0(e),this.padder=new p0(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[_0]=`${e.level}:${e.message}`,e}}Qi.exports=(e)=>new Ki(e);Qi.exports.Format=Ki});var Ou=b(function(g2,Xi){var w0=Re();function Eu(e){if(!e.every(b0))return;return(t)=>{let r=t;for(let i=0;i<e.length;i++)if(r=e[i].transform(r,e[i].options),!r)return!1;return r}}function b0(e){if(typeof e.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}Xi.exports=(...e)=>{let t=w0(Eu(e)),r=t();return r.Format=t.Format,r};Xi.exports.cascade=Eu});var jr=b(function(p2,Ru){var{hasOwnProperty:Cr}=Object.prototype,Pt=rs();Pt.configure=rs;Pt.stringify=Pt;Pt.default=Pt;p2.stringify=Pt;p2.configure=rs;Ru.exports=Pt;var v0=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function wt(e){if(e.length<5000&&!v0.test(e))return`"${e}"`;return JSON.stringify(e)}function es(e,t){if(e.length>200||t)return e.sort(t);for(let r=1;r<e.length;r++){let i=e[r],a=r;while(a!==0&&e[a-1]>i)e[a]=e[a-1],a--;e[a]=i}return e}var S0=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function ts(e){return S0.call(e)!==void 0&&e.length!==0}function ku(e,t,r){if(e.length<r)r=e.length;let i=t===","?"":" ",a=`"0":${i}${e[0]}`;for(let u=1;u<r;u++)a+=`${t}"${u}":${i}${e[u]}`;return a}function x0(e){if(Cr.call(e,"circularValue")){let t=e.circularValue;if(typeof t==="string")return`"${t}"`;if(t==null)return t;if(t===Error||t===TypeError)return{toString(){throw 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 M0(e){let t;if(Cr.call(e,"deterministic")){if(t=e.deterministic,typeof t!=="boolean"&&typeof t!=="function")throw TypeError('The "deterministic" argument must be of type boolean or comparator function')}return t===void 0?!0:t}function E0(e,t){let r;if(Cr.call(e,t)){if(r=e[t],typeof r!=="boolean")throw TypeError(`The "${t}" argument must be of type boolean`)}return r===void 0?!0:r}function Du(e,t){let r;if(Cr.call(e,t)){if(r=e[t],typeof r!=="number")throw TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw TypeError(`The "${t}" argument must be an integer`);if(r<1)throw RangeError(`The "${t}" argument must be >= 1`)}return r===void 0?1/0:r}function Lt(e){if(e===1)return"1 item";return`${e} items`}function O0(e){let t=new Set;for(let r of e)if(typeof r==="string"||typeof r==="number")t.add(String(r));return t}function k0(e){if(Cr.call(e,"strict")){let t=e.strict;if(typeof t!=="boolean")throw TypeError('The "strict" argument must be of type boolean');if(t)return(r)=>{let i=`Object can not safely be stringified. Received type ${typeof r}`;if(typeof r!=="function")i+=` (${r.toString()})`;throw Error(i)}}}function rs(e){e={...e};let t=k0(e);if(t){if(e.bigint===void 0)e.bigint=!1;if(!("circularValue"in e))e.circularValue=Error}let r=x0(e),i=E0(e,"bigint"),a=M0(e),u=typeof a==="function"?a:void 0,f=Du(e,"maximumDepth"),c=Du(e,"maximumBreadth");function d(E,p,M,P,A,W){let O=p[E];if(typeof O==="object"&&O!==null&&typeof O.toJSON==="function")O=O.toJSON(E);switch(O=P.call(p,E,O),typeof O){case"string":return wt(O);case"object":{if(O===null)return"null";if(M.indexOf(O)!==-1)return r;let N="",B=",",Y=W;if(Array.isArray(O)){if(O.length===0)return"[]";if(f<M.length+1)return'"[Array]"';if(M.push(O),A!=="")W+=A,N+=`
|
|
8
|
+
${W}`,B=`,
|
|
9
|
+
${W}`;let fe=Math.min(O.length,c),_e=0;for(;_e<fe-1;_e++){let Ue=d(String(_e),O,M,P,A,W);N+=Ue!==void 0?Ue:"null",N+=B}let we=d(String(_e),O,M,P,A,W);if(N+=we!==void 0?we:"null",O.length-1>c){let Ue=O.length-c-1;N+=`${B}"... ${Lt(Ue)} not stringified"`}if(A!=="")N+=`
|
|
10
|
+
${Y}`;return M.pop(),`[${N}]`}let H=Object.keys(O),I=H.length;if(I===0)return"{}";if(f<M.length+1)return'"[Object]"';let F="",ue="";if(A!=="")W+=A,B=`,
|
|
11
|
+
${W}`,F=" ";let ee=Math.min(I,c);if(a&&!ts(O))H=es(H,u);M.push(O);for(let fe=0;fe<ee;fe++){let _e=H[fe],we=d(_e,O,M,P,A,W);if(we!==void 0)N+=`${ue}${wt(_e)}:${F}${we}`,ue=B}if(I>c){let fe=I-c;N+=`${ue}"...":${F}"${Lt(fe)} not stringified"`,ue=B}if(A!==""&&ue.length>1)N=`
|
|
12
|
+
${W}${N}
|
|
13
|
+
${Y}`;return M.pop(),`{${N}}`}case"number":return isFinite(O)?String(O):t?t(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(O);default:return t?t(O):void 0}}function g(E,p,M,P,A,W){if(typeof p==="object"&&p!==null&&typeof p.toJSON==="function")p=p.toJSON(E);switch(typeof p){case"string":return wt(p);case"object":{if(p===null)return"null";if(M.indexOf(p)!==-1)return r;let O=W,N="",B=",";if(Array.isArray(p)){if(p.length===0)return"[]";if(f<M.length+1)return'"[Array]"';if(M.push(p),A!=="")W+=A,N+=`
|
|
14
|
+
${W}`,B=`,
|
|
15
|
+
${W}`;let I=Math.min(p.length,c),F=0;for(;F<I-1;F++){let ee=g(String(F),p[F],M,P,A,W);N+=ee!==void 0?ee:"null",N+=B}let ue=g(String(F),p[F],M,P,A,W);if(N+=ue!==void 0?ue:"null",p.length-1>c){let ee=p.length-c-1;N+=`${B}"... ${Lt(ee)} not stringified"`}if(A!=="")N+=`
|
|
16
|
+
${O}`;return M.pop(),`[${N}]`}M.push(p);let Y="";if(A!=="")W+=A,B=`,
|
|
17
|
+
${W}`,Y=" ";let H="";for(let I of P){let F=g(I,p[I],M,P,A,W);if(F!==void 0)N+=`${H}${wt(I)}:${Y}${F}`,H=B}if(A!==""&&H.length>1)N=`
|
|
18
|
+
${W}${N}
|
|
19
|
+
${O}`;return M.pop(),`{${N}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function v(E,p,M,P,A){switch(typeof p){case"string":return wt(p);case"object":{if(p===null)return"null";if(typeof p.toJSON==="function"){if(p=p.toJSON(E),typeof p!=="object")return v(E,p,M,P,A);if(p===null)return"null"}if(M.indexOf(p)!==-1)return r;let W=A;if(Array.isArray(p)){if(p.length===0)return"[]";if(f<M.length+1)return'"[Array]"';M.push(p),A+=P;let F=`
|
|
20
|
+
${A}`,ue=`,
|
|
21
|
+
${A}`,ee=Math.min(p.length,c),fe=0;for(;fe<ee-1;fe++){let we=v(String(fe),p[fe],M,P,A);F+=we!==void 0?we:"null",F+=ue}let _e=v(String(fe),p[fe],M,P,A);if(F+=_e!==void 0?_e:"null",p.length-1>c){let we=p.length-c-1;F+=`${ue}"... ${Lt(we)} not stringified"`}return F+=`
|
|
22
|
+
${W}`,M.pop(),`[${F}]`}let O=Object.keys(p),N=O.length;if(N===0)return"{}";if(f<M.length+1)return'"[Object]"';A+=P;let B=`,
|
|
23
|
+
${A}`,Y="",H="",I=Math.min(N,c);if(ts(p))Y+=ku(p,B,c),O=O.slice(p.length),I-=p.length,H=B;if(a)O=es(O,u);M.push(p);for(let F=0;F<I;F++){let ue=O[F],ee=v(ue,p[ue],M,P,A);if(ee!==void 0)Y+=`${H}${wt(ue)}: ${ee}`,H=B}if(N>c){let F=N-c;Y+=`${H}"...": "${Lt(F)} not stringified"`,H=B}if(H!=="")Y=`
|
|
24
|
+
${A}${Y}
|
|
25
|
+
${W}`;return M.pop(),`{${Y}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function _(E,p,M){switch(typeof p){case"string":return wt(p);case"object":{if(p===null)return"null";if(typeof p.toJSON==="function"){if(p=p.toJSON(E),typeof p!=="object")return _(E,p,M);if(p===null)return"null"}if(M.indexOf(p)!==-1)return r;let P="",A=p.length!==void 0;if(A&&Array.isArray(p)){if(p.length===0)return"[]";if(f<M.length+1)return'"[Array]"';M.push(p);let Y=Math.min(p.length,c),H=0;for(;H<Y-1;H++){let F=_(String(H),p[H],M);P+=F!==void 0?F:"null",P+=","}let I=_(String(H),p[H],M);if(P+=I!==void 0?I:"null",p.length-1>c){let F=p.length-c-1;P+=`,"... ${Lt(F)} not stringified"`}return M.pop(),`[${P}]`}let W=Object.keys(p),O=W.length;if(O===0)return"{}";if(f<M.length+1)return'"[Object]"';let N="",B=Math.min(O,c);if(A&&ts(p))P+=ku(p,",",c),W=W.slice(p.length),B-=p.length,N=",";if(a)W=es(W,u);M.push(p);for(let Y=0;Y<B;Y++){let H=W[Y],I=_(H,p[H],M);if(I!==void 0)P+=`${N}${wt(H)}:${I}`,N=","}if(O>c){let Y=O-c;P+=`${N}"...":"${Lt(Y)} not stringified"`}return M.pop(),`{${P}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return t?t(p):void 0}}function w(E,p,M){if(arguments.length>1){let P="";if(typeof M==="number")P=" ".repeat(Math.min(M,10));else if(typeof M==="string")P=M.slice(0,10);if(p!=null){if(typeof p==="function")return d("",{"":E},[],p,P,"");if(Array.isArray(p))return g("",E,[],O0(p),P,"")}if(P.length!==0)return v("",E,[],P,"")}return _("",E,[])}return w}});var ns=b(function(y2,Tu){var T0=Re(),{MESSAGE:N0}=oe(),L0=jr();function P0(e,t){if(typeof t==="bigint")return t.toString();return t}Tu.exports=T0((e,t)=>{let r=L0.configure(t);return e[N0]=r(e,t.replacer||P0,t.space),e})});var Lu=b(function(_2,Nu){var A0=Re();Nu.exports=A0((e,t)=>{if(t.message)return e.message=`[${t.label}] ${e.message}`,e;return e.label=t.label,e})});var Au=b(function(w2,Pu){var q0=Re(),{MESSAGE:Y0}=oe(),F0=jr();Pu.exports=q0((e)=>{let t={};if(e.message)t["@message"]=e.message,delete e.message;if(e.timestamp)t["@timestamp"]=e.timestamp,delete e.timestamp;return t["@fields"]=e,e[Y0]=F0(t),e})});var Yu=b(function(b2,qu){var C0=Re();function j0(e,t,r){let i=t.reduce((u,f)=>(u[f]=e[f],delete e[f],u),{}),a=Object.keys(e).reduce((u,f)=>(u[f]=e[f],delete e[f],u),{});return Object.assign(e,i,{[r]:a}),e}function I0(e,t,r){return e[r]=t.reduce((i,a)=>(i[a]=e[a],delete e[a],i),{}),e}qu.exports=C0((e,t={})=>{let r="metadata";if(t.key)r=t.key;let i=[];if(!t.fillExcept&&!t.fillWith)i.push("level"),i.push("message");if(t.fillExcept)i=t.fillExcept;if(i.length>0)return j0(e,i,r);if(t.fillWith)return I0(e,t.fillWith,r);return e})});var Cu=b(function(v2,Fu){var ur=1000,lr=ur*60,fr=lr*60,At=fr*24,W0=At*7,$0=At*365.25;Fu.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return H0(e);else if(r==="number"&&isFinite(e))return t.long?z0(e):U0(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function H0(e){if(e=String(e),e.length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*$0;case"weeks":case"week":case"w":return r*W0;case"days":case"day":case"d":return r*At;case"hours":case"hour":case"hrs":case"hr":case"h":return r*fr;case"minutes":case"minute":case"mins":case"min":case"m":return r*lr;case"seconds":case"second":case"secs":case"sec":case"s":return r*ur;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}function U0(e){var t=Math.abs(e);if(t>=At)return Math.round(e/At)+"d";if(t>=fr)return Math.round(e/fr)+"h";if(t>=lr)return Math.round(e/lr)+"m";if(t>=ur)return Math.round(e/ur)+"s";return e+"ms"}function z0(e){var t=Math.abs(e);if(t>=At)return jn(e,t,At,"day");if(t>=fr)return jn(e,t,fr,"hour");if(t>=lr)return jn(e,t,lr,"minute");if(t>=ur)return jn(e,t,ur,"second");return e+" ms"}function jn(e,t,r,i){var a=t>=r*1.5;return Math.round(e/r)+" "+i+(a?"s":"")}});var Iu=b(function(Ir,ju){var G0=Re(),V0=Cu();ju.exports=G0((e)=>{let t=+new Date;return Ir.diff=t-(Ir.prevTime||t),Ir.prevTime=t,e.ms=`+${V0(Ir.diff)}`,e})});var Hu=b(function(S2,$u){var B0=j("util").inspect,Z0=Re(),{LEVEL:J0,MESSAGE:Wu,SPLAT:K0}=oe();$u.exports=Z0((e,t={})=>{let r=Object.assign({},e);return delete r[J0],delete r[Wu],delete r[K0],e[Wu]=B0(r,!1,t.depth||null,t.colorize),e})});var Uu=b(function(x2,In){var{MESSAGE:Q0}=oe();class is{constructor(e){this.template=e}transform(e){return e[Q0]=this.template(e),e}}In.exports=(e)=>new is(e);In.exports.Printf=In.exports.Format=is});var Vu=b(function(M2,Gu){var X0=Re(),{MESSAGE:zu}=oe(),ey=jr();Gu.exports=X0((e)=>{let t=ey(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),r=e.padding&&e.padding[e.level]||"";if(t!=="{}")e[zu]=`${e.level}:${r} ${e.message} ${t}`;else e[zu]=`${e.level}:${r} ${e.message}`;return e})});var Ku=b(function(E2,Ju){var ty=j("util"),{SPLAT:Bu}=oe(),ry=/%[scdjifoO%]/g,ny=/%%/g;class Zu{constructor(e){this.options=e}_splat(e,t){let r=e.message,i=e[Bu]||e.splat||[],a=r.match(ny),u=a&&a.length||0,c=t.length-u-i.length,d=c<0?i.splice(c,-1*c):[],g=d.length;if(g)for(let v=0;v<g;v++)Object.assign(e,d[v]);return e.message=ty.format(r,...i),e}transform(e){let t=e.message,r=e[Bu]||e.splat;if(!r||!r.length)return e;let i=t&&t.match&&t.match(ry);if(!i&&(r||r.length)){let a=r.length>1?r.splice(0):r,u=a.length;if(u)for(let f=0;f<u;f++)Object.assign(e,a[f]);return e}if(i)return this._splat(e,i);return e}}Ju.exports=(e)=>new Zu(e)});var Xu=b(function(Wn,Qu){(function(e,t){typeof Wn==="object"&&typeof Qu<"u"?t(Wn):typeof define==="function"&&define.amd?define(["exports"],t):t(e.fecha={})})(Wn,function(e){var t=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r="\\d\\d?",i="\\d\\d",a="\\d{3}",u="\\d{4}",f="[^\\s]+",c=/\[([^]*?)\]/gm;function d(S,T){var z=[];for(var ge=0,q=S.length;ge<q;ge++)z.push(S[ge].substr(0,T));return z}var g=function(S){return function(T,z){var ge=z[S].map(function(Oe){return Oe.toLowerCase()}),q=ge.indexOf(T.toLowerCase());if(q>-1)return q;return null}};function v(S){var T=[];for(var z=1;z<arguments.length;z++)T[z-1]=arguments[z];for(var ge=0,q=T;ge<q.length;ge++){var Oe=q[ge];for(var ke in Oe)S[ke]=Oe[ke]}return S}var _=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],w=["January","February","March","April","May","June","July","August","September","October","November","December"],E=d(w,3),p=d(_,3),M={dayNamesShort:p,dayNames:_,monthNamesShort:E,monthNames:w,amPm:["am","pm"],DoFn:function(S){return S+["th","st","nd","rd"][S%10>3?0:(S-S%10!==10?1:0)*S%10]}},P=v({},M),A=function(S){return P=v(P,S)},W=function(S){return S.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},O=function(S,T){if(T===void 0)T=2;S=String(S);while(S.length<T)S="0"+S;return S},N={D:function(S){return String(S.getDate())},DD:function(S){return O(S.getDate())},Do:function(S,T){return T.DoFn(S.getDate())},d:function(S){return String(S.getDay())},dd:function(S){return O(S.getDay())},ddd:function(S,T){return T.dayNamesShort[S.getDay()]},dddd:function(S,T){return T.dayNames[S.getDay()]},M:function(S){return String(S.getMonth()+1)},MM:function(S){return O(S.getMonth()+1)},MMM:function(S,T){return T.monthNamesShort[S.getMonth()]},MMMM:function(S,T){return T.monthNames[S.getMonth()]},YY:function(S){return O(String(S.getFullYear()),4).substr(2)},YYYY:function(S){return O(S.getFullYear(),4)},h:function(S){return String(S.getHours()%12||12)},hh:function(S){return O(S.getHours()%12||12)},H:function(S){return String(S.getHours())},HH:function(S){return O(S.getHours())},m:function(S){return String(S.getMinutes())},mm:function(S){return O(S.getMinutes())},s:function(S){return String(S.getSeconds())},ss:function(S){return O(S.getSeconds())},S:function(S){return String(Math.round(S.getMilliseconds()/100))},SS:function(S){return O(Math.round(S.getMilliseconds()/10),2)},SSS:function(S){return O(S.getMilliseconds(),3)},a:function(S,T){return S.getHours()<12?T.amPm[0]:T.amPm[1]},A:function(S,T){return S.getHours()<12?T.amPm[0].toUpperCase():T.amPm[1].toUpperCase()},ZZ:function(S){var T=S.getTimezoneOffset();return(T>0?"-":"+")+O(Math.floor(Math.abs(T)/60)*100+Math.abs(T)%60,4)},Z:function(S){var T=S.getTimezoneOffset();return(T>0?"-":"+")+O(Math.floor(Math.abs(T)/60),2)+":"+O(Math.abs(T)%60,2)}},B=function(S){return+S-1},Y=[null,r],H=[null,f],I=["isPm",f,function(S,T){var z=S.toLowerCase();if(z===T.amPm[0])return 0;else if(z===T.amPm[1])return 1;return null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(S){var T=(S+"").match(/([+-]|\d\d)/gi);if(T){var z=+T[1]*60+parseInt(T[2],10);return T[0]==="+"?z:-z}return 0}],ue={D:["day",r],DD:["day",i],Do:["day",r+f,function(S){return parseInt(S,10)}],M:["month",r,B],MM:["month",i,B],YY:["year",i,function(S){var T=new Date,z=+(""+T.getFullYear()).substr(0,2);return+(""+(+S>68?z-1:z)+S)}],h:["hour",r,void 0,"isPm"],hh:["hour",i,void 0,"isPm"],H:["hour",r],HH:["hour",i],m:["minute",r],mm:["minute",i],s:["second",r],ss:["second",i],YYYY:["year",u],S:["millisecond","\\d",function(S){return+S*100}],SS:["millisecond",i,function(S){return+S*10}],SSS:["millisecond",a],d:Y,dd:Y,ddd:H,dddd:H,MMM:["month",f,g("monthNamesShort")],MMMM:["month",f,g("monthNames")],a:I,A:I,ZZ:F,Z:F},ee={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"},fe=function(S){return v(ee,S)},_e=function(S,T,z){if(T===void 0)T=ee.default;if(z===void 0)z={};if(typeof S==="number")S=new Date(S);if(Object.prototype.toString.call(S)!=="[object Date]"||isNaN(S.getTime()))throw Error("Invalid Date pass to format");T=ee[T]||T;var ge=[];T=T.replace(c,function(Oe,ke){return ge.push(ke),"@@@"});var q=v(v({},P),z);return T=T.replace(t,function(Oe){return N[Oe](S,q)}),T.replace(/@@@/g,function(){return ge.shift()})};function we(S,T,z){if(z===void 0)z={};if(typeof T!=="string")throw Error("Invalid format in fecha parse");if(T=ee[T]||T,S.length>1000)return null;var ge=new Date,q={year:ge.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},Oe=[],ke=[],L=T.replace(c,function(kt,mt){return ke.push(W(mt)),"@@@"}),Gt={},hn={};L=W(L).replace(t,function(kt){var mt=ue[kt],Zt=mt[0],De=mt[1],Jt=mt[3];if(Gt[Zt])throw Error("Invalid format. "+Zt+" specified twice in format");if(Gt[Zt]=!0,Jt)hn[Jt]=!0;return Oe.push(mt),"("+De+")"}),Object.keys(hn).forEach(function(kt){if(!Gt[kt])throw Error("Invalid format. "+kt+" is required in specified format")}),L=L.replace(/@@@/g,function(){return ke.shift()});var tt=S.match(new RegExp(L,"i"));if(!tt)return null;var dn=v(v({},P),z);for(var Ne=1;Ne<tt.length;Ne++){var mn=Oe[Ne-1],di=mn[0],gn=mn[2],pn=gn?gn(tt[Ne],dn):+tt[Ne];if(pn==null)return null;q[di]=pn}if(q.isPm===1&&q.hour!=null&&+q.hour!==12)q.hour=+q.hour+12;else if(q.isPm===0&&+q.hour===12)q.hour=0;var Vt;if(q.timezoneOffset==null){Vt=new Date(q.year,q.month,q.day,q.hour,q.minute,q.second,q.millisecond);var Bt=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]];for(var Ne=0,mi=Bt.length;Ne<mi;Ne++)if(Gt[Bt[Ne][0]]&&q[Bt[Ne][0]]!==Vt[Bt[Ne][1]]())return null}else if(Vt=new Date(Date.UTC(q.year,q.month,q.day,q.hour,q.minute-q.timezoneOffset,q.second,q.millisecond)),q.month>11||q.month<0||q.day>31||q.day<1||q.hour>23||q.hour<0||q.minute>59||q.minute<0||q.second>59||q.second<0)return null;return Vt}var Ue={format:_e,parse:we,defaultI18n:M,setGlobalDateI18n:A,setGlobalDateMasks:fe};e.assign=v,e.default=Ue,e.format=_e,e.parse=we,e.defaultI18n=M,e.setGlobalDateI18n=A,e.setGlobalDateMasks=fe,Object.defineProperty(e,"__esModule",{value:!0})})});var tl=b(function(O2,el){var iy=Xu(),sy=Re();el.exports=sy((e,t={})=>{if(t.format)e.timestamp=typeof t.format==="function"?t.format():iy.format(new Date,t.format);if(!e.timestamp)e.timestamp=new Date().toISOString();if(t.alias)e[t.alias]=e.timestamp;return e})});var nl=b(function(k2,rl){var ss=Ui(),ay=Re(),{MESSAGE:as}=oe();rl.exports=ay((e,t)=>{if(t.level!==!1)e.level=ss.strip(e.level);if(t.message!==!1)e.message=ss.strip(String(e.message));if(t.raw!==!1&&e[as])e[as]=ss.strip(String(e[as]));return e})});var os=b(function(uy){var oy=uy.format=Re();uy.levels=yu();function be(e,t){Object.defineProperty(oy,e,{get(){return t()},configurable:!0})}be("align",function(){return wu()});be("errors",function(){return Su()});be("cli",function(){return Mu()});be("combine",function(){return Ou()});be("colorize",function(){return Fn()});be("json",function(){return ns()});be("label",function(){return Lu()});be("logstash",function(){return Au()});be("metadata",function(){return Yu()});be("ms",function(){return Iu()});be("padLevels",function(){return Ji()});be("prettyPrint",function(){return Hu()});be("printf",function(){return Uu()});be("simple",function(){return Vu()});be("splat",function(){return Ku()});be("timestamp",function(){return tl()});be("uncolorize",function(){return nl()})});var ls=b(function(fy){var{format:il}=j("util");fy.warn={deprecated(e){return()=>{throw Error(il("{ %s } was removed in winston@3.0.0.",e))}},useFormat(e){return()=>{throw Error([il("{ %s } was removed in winston@3.0.0.",e),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
26
|
+
`))}},forFunctions(e,t,r){r.forEach((i)=>{e[i]=fy.warn[t](i)})},forProperties(e,t,r){r.forEach((i)=>{let a=fy.warn[t](i);Object.defineProperty(e,i,{get:a,set:a})})}}});var sl=b(function(N2,cy){cy.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 ol=b(function(L2,al){al.exports=j("util").deprecate});var cs=b(function(P2,ll){function hy(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;if(i||a){if(t)t(e);else if(e){if(!this._writableState)process.nextTick(fs,this,e);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(fs,this,e)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(e||null,function(u){if(!t&&u)if(!r._writableState)process.nextTick(ul,r,u);else if(!r._writableState.errorEmitted)r._writableState.errorEmitted=!0,process.nextTick(ul,r,u);else process.nextTick($n,r);else if(t)process.nextTick($n,r),t(u);else process.nextTick($n,r)}),this}function ul(e,t){fs(e,t),$n(e)}function $n(e){if(e._writableState&&!e._writableState.emitClose)return;if(e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function dy(){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 fs(e,t){e.emit("error",t)}function my(e,t){var{_readableState:r,_writableState:i}=e;if(r&&r.autoDestroy||i&&i.autoDestroy)e.destroy(t);else e.emit("error",t)}ll.exports={destroy:hy,undestroy:dy,errorOrDestroy:my}});var bt=b(function(_y,hl){var cl={};function qe(e,t,r){if(!r)r=Error;function i(u,f,c){if(typeof t==="string")return t;else return t(u,f,c)}class a extends r{constructor(u,f,c){super(i(u,f,c))}}a.prototype.name=r.name,a.prototype.code=e,cl[e]=a}function fl(e,t){if(Array.isArray(e)){let r=e.length;if(e=e.map((i)=>String(i)),r>2)return`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1];else if(r===2)return`one of ${t} ${e[0]} or ${e[1]}`;else return`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function gy(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function py(e,t,r){if(r===void 0||r>e.length)r=e.length;return e.substring(r-t.length,r)===t}function yy(e,t,r){if(typeof r!=="number")r=0;if(r+t.length>e.length)return!1;else return e.indexOf(t,r)!==-1}qe("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);qe("ERR_INVALID_ARG_TYPE",function(e,t,r){let i;if(typeof t==="string"&&gy(t,"not "))i="must not be",t=t.replace(/^not /,"");else i="must be";let a;if(py(e," argument"))a=`The ${e} ${i} ${fl(t,"type")}`;else{let u=yy(e,".")?"property":"argument";a=`The "${e}" ${u} ${i} ${fl(t,"type")}`}return a+=`. Received type ${typeof r}`,a},TypeError);qe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");qe("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});qe("ERR_STREAM_PREMATURE_CLOSE","Premature close");qe("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});qe("ERR_MULTIPLE_CALLBACK","Callback called multiple times");qe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");qe("ERR_STREAM_WRITE_AFTER_END","write after end");qe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);qe("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);qe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");_y.codes=cl});var hs=b(function(A2,dl){var by=bt().codes.ERR_INVALID_OPT_VALUE;function vy(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Sy(e,t,r,i){var a=vy(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var u=i?r:"highWaterMark";throw new by(u,a)}return Math.floor(a)}return e.objectMode?16:16384}dl.exports={getHighWaterMark:Sy}});var ml=b(function(q2,ds){if(typeof Object.create==="function")ds.exports=function(t,r){if(r)t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};else ds.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var cr=b(function(Y2,ms){try{if(Hn=j("util"),typeof Hn.inherits!=="function")throw"";ms.exports=Hn.inherits}catch(e){ms.exports=ml()}var Hn});var bl=b(function(F2,wl){function gl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function pl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gl(Object(r),!0).forEach(function(i){xy(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gl(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function xy(e,t,r){if(t=_l(t),t in e)Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0});else e[t]=r;return e}function My(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function yl(e,t){for(var r=0;r<t.length;r++){var i=t[r];if(i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i)i.writable=!0;Object.defineProperty(e,_l(i.key),i)}}function Ey(e,t,r){if(t)yl(e.prototype,t);if(r)yl(e,r);return Object.defineProperty(e,"prototype",{writable:!1}),e}function _l(e){var t=Oy(e,"string");return typeof t==="symbol"?t:String(t)}function Oy(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!=="object")return i;throw TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ky=j("buffer"),Un=ky.Buffer,Dy=j("util"),gs=Dy.inspect,Ry=gs&&gs.custom||"inspect";function Ty(e,t,r){Un.prototype.copy.call(e,t,r)}wl.exports=function(){function e(){My(this,e),this.head=null,this.tail=null,this.length=0}return Ey(e,[{key:"push",value:function(r){var i={data:r,next:null};if(this.length>0)this.tail.next=i;else this.head=i;this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};if(this.length===0)this.tail=i;this.head=i,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,r}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";var i=this.head,a=""+i.data;while(i=i.next)a+=r+i.data;return a}},{key:"concat",value:function(r){if(this.length===0)return Un.alloc(0);var i=Un.allocUnsafe(r>>>0),a=this.head,u=0;while(a)Ty(a.data,i,u),u+=a.data.length,a=a.next;return i}},{key:"consume",value:function(r,i){var a;if(r<this.head.data.length)a=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r);else if(r===this.head.data.length)a=this.shift();else a=i?this._getString(r):this._getBuffer(r);return a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,a=1,u=i.data;r-=u.length;while(i=i.next){var f=i.data,c=r>f.length?f.length:r;if(c===f.length)u+=f;else u+=f.slice(0,r);if(r-=c,r===0){if(c===f.length)if(++a,i.next)this.head=i.next;else this.head=this.tail=null;else this.head=i,i.data=f.slice(c);break}++a}return this.length-=a,u}},{key:"_getBuffer",value:function(r){var i=Un.allocUnsafe(r),a=this.head,u=1;a.data.copy(i),r-=a.data.length;while(a=a.next){var f=a.data,c=r>f.length?f.length:r;if(f.copy(i,i.length-r,0,c),r-=c,r===0){if(c===f.length)if(++u,a.next)this.head=a.next;else this.head=this.tail=null;else this.head=a,a.data=f.slice(c);break}++u}return this.length-=u,i}},{key:Ry,value:function(r,i){return gs(this,pl(pl({},i),{},{depth:0,customInspect:!1}))}}]),e}()});var xl=b(function(ps,Sl){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var zn=j("buffer"),Be=zn.Buffer;function vl(e,t){for(var r in e)t[r]=e[r]}if(Be.from&&Be.alloc&&Be.allocUnsafe&&Be.allocUnsafeSlow)Sl.exports=zn;else vl(zn,ps),ps.Buffer=qt;function qt(e,t,r){return Be(e,t,r)}qt.prototype=Object.create(Be.prototype);vl(Be,qt);qt.from=function(e,t,r){if(typeof e==="number")throw TypeError("Argument must not be a number");return Be(e,t,r)};qt.alloc=function(e,t,r){if(typeof e!=="number")throw TypeError("Argument must be a number");var i=Be(e);if(t!==void 0)if(typeof r==="string")i.fill(t,r);else i.fill(t);else i.fill(0);return i};qt.allocUnsafe=function(e){if(typeof e!=="number")throw TypeError("Argument must be a number");return Be(e)};qt.allocUnsafeSlow=function(e){if(typeof e!=="number")throw TypeError("Argument must be a number");return zn.SlowBuffer(e)}});var ws=b(function(Uy){var _s=xl().Buffer,Ml=_s.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Ny(e){if(!e)return"utf8";var t;while(!0)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Ly(e){var t=Ny(e);if(typeof t!=="string"&&(_s.isEncoding===Ml||!Ml(e)))throw Error("Unknown encoding: "+e);return t||e}Uy.StringDecoder=Wr;function Wr(e){this.encoding=Ly(e);var t;switch(this.encoding){case"utf16le":this.text=Cy,this.end=jy,t=4;break;case"utf8":this.fillLast=qy,t=4;break;case"base64":this.text=Iy,this.end=Wy,t=3;break;default:this.write=$y,this.end=Hy;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=_s.allocUnsafe(t)}Wr.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};Wr.prototype.end=Fy;Wr.prototype.text=Yy;Wr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function ys(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function Py(e,t,r){var i=t.length-1;if(i<r)return 0;var a=ys(t[i]);if(a>=0){if(a>0)e.lastNeed=a-1;return a}if(--i<r||a===-2)return 0;if(a=ys(t[i]),a>=0){if(a>0)e.lastNeed=a-2;return a}if(--i<r||a===-2)return 0;if(a=ys(t[i]),a>=0){if(a>0)if(a===2)a=0;else e.lastNeed=a-3;return a}return 0}function Ay(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}}function qy(e){var t=this.lastTotal-this.lastNeed,r=Ay(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Yy(e,t){var r=Py(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function Fy(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"\uFFFD";return t}function Cy(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function jy(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Iy(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);if(this.lastNeed=3-r,this.lastTotal=3,r===1)this.lastChar[0]=e[e.length-1];else this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1];return e.toString("base64",t,e.length-r)}function Wy(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function $y(e){return e.toString(this.encoding)}function Hy(e){return e&&e.length?this.write(e):""}});var Gn=b(function(j2,kl){var El=bt().codes.ERR_STREAM_PREMATURE_CLOSE;function Gy(e){var t=!1;return function(){if(t)return;t=!0;for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}function Vy(){}function By(e){return e.setHeader&&typeof e.abort==="function"}function Ol(e,t,r){if(typeof t==="function")return Ol(e,null,t);if(!t)t={};r=Gy(r||Vy);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,u=function(){if(!e.writable)c()},f=e._writableState&&e._writableState.finished,c=function(){if(a=!1,f=!0,!i)r.call(e)},d=e._readableState&&e._readableState.endEmitted,g=function(){if(i=!1,d=!0,!a)r.call(e)},v=function(p){r.call(e,p)},_=function(){var p;if(i&&!d){if(!e._readableState||!e._readableState.ended)p=new El;return r.call(e,p)}if(a&&!f){if(!e._writableState||!e._writableState.ended)p=new El;return r.call(e,p)}},w=function(){e.req.on("finish",c)};if(By(e))if(e.on("complete",c),e.on("abort",_),e.req)w();else e.on("request",w);else if(a&&!e._writableState)e.on("end",u),e.on("close",u);if(e.on("end",g),e.on("finish",c),t.error!==!1)e.on("error",v);return e.on("close",_),function(){if(e.removeListener("complete",c),e.removeListener("abort",_),e.removeListener("request",w),e.req)e.req.removeListener("finish",c);e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("end",g),e.removeListener("error",v),e.removeListener("close",_)}}kl.exports=Ol});var Rl=b(function(I2,Dl){var Vn;function vt(e,t,r){if(t=Zy(t),t in e)Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0});else e[t]=r;return e}function Zy(e){var t=Jy(e,"string");return typeof t==="symbol"?t:String(t)}function Jy(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!=="object")return i;throw TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ky=Gn(),St=Symbol("lastResolve"),Yt=Symbol("lastReject"),$r=Symbol("error"),Bn=Symbol("ended"),Ft=Symbol("lastPromise"),bs=Symbol("handlePromise"),Ct=Symbol("stream");function xt(e,t){return{value:e,done:t}}function Qy(e){var t=e[St];if(t!==null){var r=e[Ct].read();if(r!==null)e[Ft]=null,e[St]=null,e[Yt]=null,t(xt(r,!1))}}function Xy(e){process.nextTick(Qy,e)}function e_(e,t){return function(r,i){e.then(function(){if(t[Bn]){r(xt(void 0,!0));return}t[bs](r,i)},i)}}var t_=Object.getPrototypeOf(function(){}),r_=Object.setPrototypeOf((Vn={get stream(){return this[Ct]},next:function(){var t=this,r=this[$r];if(r!==null)return Promise.reject(r);if(this[Bn])return Promise.resolve(xt(void 0,!0));if(this[Ct].destroyed)return new Promise(function(f,c){process.nextTick(function(){if(t[$r])c(t[$r]);else f(xt(void 0,!0))})});var i=this[Ft],a;if(i)a=new Promise(e_(i,this));else{var u=this[Ct].read();if(u!==null)return Promise.resolve(xt(u,!1));a=new Promise(this[bs])}return this[Ft]=a,a}},vt(Vn,Symbol.asyncIterator,function(){return this}),vt(Vn,"return",function(){var t=this;return new Promise(function(r,i){t[Ct].destroy(null,function(a){if(a){i(a);return}r(xt(void 0,!0))})})}),Vn),t_),n_=function(t){var r,i=Object.create(r_,(r={},vt(r,Ct,{value:t,writable:!0}),vt(r,St,{value:null,writable:!0}),vt(r,Yt,{value:null,writable:!0}),vt(r,$r,{value:null,writable:!0}),vt(r,Bn,{value:t._readableState.endEmitted,writable:!0}),vt(r,bs,{value:function(u,f){var c=i[Ct].read();if(c)i[Ft]=null,i[St]=null,i[Yt]=null,u(xt(c,!1));else i[St]=u,i[Yt]=f},writable:!0}),r));return i[Ft]=null,Ky(t,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var u=i[Yt];if(u!==null)i[Ft]=null,i[St]=null,i[Yt]=null,u(a);i[$r]=a;return}var f=i[St];if(f!==null)i[Ft]=null,i[St]=null,i[Yt]=null,f(xt(void 0,!0));i[Bn]=!0}),t.on("readable",Xy.bind(null,i)),i};Dl.exports=n_});var Pl=b(function(W2,Ll){function Tl(e,t,r,i,a,u,f){try{var c=e[u](f),d=c.value}catch(g){r(g);return}if(c.done)t(d);else Promise.resolve(d).then(i,a)}function i_(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var u=e.apply(t,r);function f(d){Tl(u,i,a,f,c,"next",d)}function c(d){Tl(u,i,a,f,c,"throw",d)}f(void 0)})}}function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function s_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nl(Object(r),!0).forEach(function(i){a_(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function a_(e,t,r){if(t=o_(t),t in e)Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0});else e[t]=r;return e}function o_(e){var t=u_(e,"string");return typeof t==="symbol"?t:String(t)}function u_(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!=="object")return i;throw TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l_=bt().codes.ERR_INVALID_ARG_TYPE;function f_(e,t,r){var i;if(t&&typeof t.next==="function")i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new l_("iterable",["Iterable"],t);var a=new e(s_({objectMode:!0},r)),u=!1;a._read=function(){if(!u)u=!0,f()};function f(){return c.apply(this,arguments)}function c(){return c=i_(function*(){try{var d=yield i.next(),{value:g,done:v}=d;if(v)a.push(null);else if(a.push(yield g))f();else u=!1}catch(_){a.destroy(_)}}),c.apply(this,arguments)}return a}Ll.exports=f_});var Ts=b(function(H2,Hl){Hl.exports=K;var hr;K.ReadableState=Fl;var $2=j("events").EventEmitter,Yl=function(t,r){return t.listeners(r).length},Ur=j("stream"),Zn=j("buffer").Buffer,c_=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h_(e){return Zn.from(e)}function d_(e){return Zn.isBuffer(e)||e instanceof c_}var vs=j("util"),U;if(vs&&vs.debuglog)U=vs.debuglog("stream");else U=function(){};var m_=bl(),Ds=cs(),g_=hs(),p_=g_.getHighWaterMark,Jn=bt().codes,{ERR_INVALID_ARG_TYPE:y_,ERR_STREAM_PUSH_AFTER_EOF:__,ERR_METHOD_NOT_IMPLEMENTED:w_,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:b_}=Jn,dr,Ss,xs;cr()(K,Ur);var Hr=Ds.errorOrDestroy,Ms=["error","close","destroy","pause","resume"];function v_(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(Array.isArray(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function Fl(e,t,r){if(hr=hr||jt(),e=e||{},typeof r!=="boolean")r=t instanceof hr;if(this.objectMode=!!e.objectMode,r)this.objectMode=this.objectMode||!!e.readableObjectMode;if(this.highWaterMark=p_(this,e,"readableHighWaterMark",r),this.buffer=new m_,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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding){if(!dr)dr=ws().StringDecoder;this.decoder=new dr(e.encoding),this.encoding=e.encoding}}function K(e){if(hr=hr||jt(),!(this instanceof K))return new K(e);var t=this instanceof hr;if(this._readableState=new Fl(e,this,t),this.readable=!0,e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}Ur.call(this)}Object.defineProperty(K.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(t){if(!this._readableState)return;this._readableState.destroyed=t}});K.prototype.destroy=Ds.destroy;K.prototype._undestroy=Ds.undestroy;K.prototype._destroy=function(e,t){t(e)};K.prototype.push=function(e,t){var r=this._readableState,i;if(!r.objectMode){if(typeof e==="string"){if(t=t||r.defaultEncoding,t!==r.encoding)e=Zn.from(e,t),t="";i=!0}}else i=!0;return Cl(this,e,t,!1,i)};K.prototype.unshift=function(e){return Cl(this,e,null,!0,!1)};function Cl(e,t,r,i,a){U("readableAddChunk",t);var u=e._readableState;if(t===null)u.reading=!1,M_(e,u);else{var f;if(!a)f=S_(u,t);if(f)Hr(e,f);else if(u.objectMode||t&&t.length>0){if(typeof t!=="string"&&!u.objectMode&&Object.getPrototypeOf(t)!==Zn.prototype)t=h_(t);if(i)if(u.endEmitted)Hr(e,new b_);else Es(e,u,t,!0);else if(u.ended)Hr(e,new __);else if(u.destroyed)return!1;else if(u.reading=!1,u.decoder&&!r)if(t=u.decoder.write(t),u.objectMode||t.length!==0)Es(e,u,t,!1);else ks(e,u);else Es(e,u,t,!1)}else if(!i)u.reading=!1,ks(e,u)}return!u.ended&&(u.length<u.highWaterMark||u.length===0)}function Es(e,t,r,i){if(t.flowing&&t.length===0&&!t.sync)t.awaitDrain=0,e.emit("data",r);else{if(t.length+=t.objectMode?1:r.length,i)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)Kn(e)}ks(e,t)}function S_(e,t){var r;if(!d_(t)&&typeof t!=="string"&&t!==void 0&&!e.objectMode)r=new y_("chunk",["string","Buffer","Uint8Array"],t);return r}K.prototype.isPaused=function(){return this._readableState.flowing===!1};K.prototype.setEncoding=function(e){if(!dr)dr=ws().StringDecoder;var t=new dr(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head,i="";while(r!==null)i+=t.write(r.data),r=r.next;if(this._readableState.buffer.clear(),i!=="")this._readableState.buffer.push(i);return this._readableState.length=i.length,this};var Al=1073741824;function x_(e){if(e>=Al)e=Al;else e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++;return e}function ql(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;if(e>t.highWaterMark)t.highWaterMark=x_(e);if(e<=t.length)return e;if(!t.ended)return t.needReadable=!0,0;return t.length}K.prototype.read=function(e){U("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0)t.emittedReadable=!1;if(e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended)){if(U("read: emitReadable",t.length,t.ended),t.length===0&&t.ended)Os(this);else Kn(this);return null}if(e=ql(e,t),e===0&&t.ended){if(t.length===0)Os(this);return null}var i=t.needReadable;if(U("need readable",i),t.length===0||t.length-e<t.highWaterMark)i=!0,U("length less than watermark",i);if(t.ended||t.reading)i=!1,U("reading or ended",i);else if(i){if(U("do read"),t.reading=!0,t.sync=!0,t.length===0)t.needReadable=!0;if(this._read(t.highWaterMark),t.sync=!1,!t.reading)e=ql(r,t)}var a;if(e>0)a=Wl(e,t);else a=null;if(a===null)t.needReadable=t.length<=t.highWaterMark,e=0;else t.length-=e,t.awaitDrain=0;if(t.length===0){if(!t.ended)t.needReadable=!0;if(r!==e&&t.ended)Os(this)}if(a!==null)this.emit("data",a);return a};function M_(e,t){if(U("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length)t.buffer.push(r),t.length+=t.objectMode?1:r.length}if(t.ended=!0,t.sync)Kn(e);else if(t.needReadable=!1,!t.emittedReadable)t.emittedReadable=!0,jl(e)}function Kn(e){var t=e._readableState;if(U("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,!t.emittedReadable)U("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(jl,e)}function jl(e){var t=e._readableState;if(U("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended))e.emit("readable"),t.emittedReadable=!1;t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Rs(e)}function ks(e,t){if(!t.readingMore)t.readingMore=!0,process.nextTick(E_,e,t)}function E_(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){var r=t.length;if(U("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}K.prototype._read=function(e){Hr(this,new w_("_read()"))};K.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,U("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,u=a?c:M;if(i.endEmitted)process.nextTick(u);else r.once("end",u);e.on("unpipe",f);function f(P,A){if(U("onunpipe"),P===r){if(A&&A.hasUnpiped===!1)A.hasUnpiped=!0,v()}}function c(){U("onend"),e.end()}var d=O_(r);e.on("drain",d);var g=!1;function v(){if(U("cleanup"),e.removeListener("close",E),e.removeListener("finish",p),e.removeListener("drain",d),e.removeListener("error",w),e.removeListener("unpipe",f),r.removeListener("end",c),r.removeListener("end",M),r.removeListener("data",_),g=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain))d()}r.on("data",_);function _(P){U("ondata");var A=e.write(P);if(U("dest.write",A),A===!1){if((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&$l(i.pipes,e)!==-1)&&!g)U("false write response, pause",i.awaitDrain),i.awaitDrain++;r.pause()}}function w(P){if(U("onerror",P),M(),e.removeListener("error",w),Yl(e,"error")===0)Hr(e,P)}v_(e,"error",w);function E(){e.removeListener("finish",p),M()}e.once("close",E);function p(){U("onfinish"),e.removeListener("close",E),M()}e.once("finish",p);function M(){U("unpipe"),r.unpipe(e)}if(e.emit("pipe",r),!i.flowing)U("pipe resume"),r.resume();return e};function O_(e){return function(){var r=e._readableState;if(U("pipeOnDrain",r.awaitDrain),r.awaitDrain)r.awaitDrain--;if(r.awaitDrain===0&&Yl(e,"data"))r.flowing=!0,Rs(e)}}K.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;if(t.pipes=null,t.pipesCount=0,t.flowing=!1,e)e.emit("unpipe",this,r);return this}if(!e){var{pipes:i,pipesCount:a}=t;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var u=0;u<a;u++)i[u].emit("unpipe",this,{hasUnpiped:!1});return this}var f=$l(t.pipes,e);if(f===-1)return this;if(t.pipes.splice(f,1),t.pipesCount-=1,t.pipesCount===1)t.pipes=t.pipes[0];return e.emit("unpipe",this,r),this};K.prototype.on=function(e,t){var r=Ur.prototype.on.call(this,e,t),i=this._readableState;if(e==="data"){if(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1)this.resume()}else if(e==="readable"){if(!i.endEmitted&&!i.readableListening){if(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,U("on readable",i.length,i.reading),i.length)Kn(this);else if(!i.reading)process.nextTick(k_,this)}}return r};K.prototype.addListener=K.prototype.on;K.prototype.removeListener=function(e,t){var r=Ur.prototype.removeListener.call(this,e,t);if(e==="readable")process.nextTick(Il,this);return r};K.prototype.removeAllListeners=function(e){var t=Ur.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===void 0)process.nextTick(Il,this);return t};function Il(e){var t=e._readableState;if(t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused)t.flowing=!0;else if(e.listenerCount("data")>0)e.resume()}function k_(e){U("readable nexttick read 0"),e.read(0)}K.prototype.resume=function(){var e=this._readableState;if(!e.flowing)U("resume"),e.flowing=!e.readableListening,D_(this,e);return e.paused=!1,this};function D_(e,t){if(!t.resumeScheduled)t.resumeScheduled=!0,process.nextTick(R_,e,t)}function R_(e,t){if(U("resume",t.reading),!t.reading)e.read(0);if(t.resumeScheduled=!1,e.emit("resume"),Rs(e),t.flowing&&!t.reading)e.read(0)}K.prototype.pause=function(){if(U("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)U("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function Rs(e){var t=e._readableState;U("flow",t.flowing);while(t.flowing&&e.read()!==null);}K.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(U("wrapped end"),r.decoder&&!r.ended){var f=r.decoder.end();if(f&&f.length)t.push(f)}t.push(null)}),e.on("data",function(f){if(U("wrapped data"),r.decoder)f=r.decoder.write(f);if(r.objectMode&&(f===null||f===void 0))return;else if(!r.objectMode&&(!f||!f.length))return;var c=t.push(f);if(!c)i=!0,e.pause()});for(var a in e)if(this[a]===void 0&&typeof e[a]==="function")this[a]=function(c){return function(){return e[c].apply(e,arguments)}}(a);for(var u=0;u<Ms.length;u++)e.on(Ms[u],this.emit.bind(this,Ms[u]));return this._read=function(f){if(U("wrapped _read",f),i)i=!1,e.resume()},this};if(typeof Symbol==="function")K.prototype[Symbol.asyncIterator]=function(){if(Ss===void 0)Ss=Rl();return Ss(this)};Object.defineProperty(K.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(K.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(K.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){if(this._readableState)this._readableState.flowing=t}});K._fromList=Wl;Object.defineProperty(K.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Wl(e,t){if(t.length===0)return null;var r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.first();else r=t.buffer.concat(t.length);t.buffer.clear()}else r=t.buffer.consume(e,t.decoder);return r}function Os(e){var t=e._readableState;if(U("endReadable",t.endEmitted),!t.endEmitted)t.ended=!0,process.nextTick(T_,t,e)}function T_(e,t){if(U("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy){var r=t._writableState;if(!r||r.autoDestroy&&r.finished)t.destroy()}}}if(typeof Symbol==="function")K.from=function(e,t){if(xs===void 0)xs=Pl();return xs(K,e,t)};function $l(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var jt=b(function(U2,zl){var N_=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};zl.exports=Ze;var Ul=Ts(),Ns=Xn();cr()(Ze,Ul);{Qn=N_(Ns.prototype);for(zr=0;zr<Qn.length;zr++)if(Gr=Qn[zr],!Ze.prototype[Gr])Ze.prototype[Gr]=Ns.prototype[Gr]}var Qn,Gr,zr;function Ze(e){if(!(this instanceof Ze))return new Ze(e);if(Ul.call(this,e),Ns.call(this,e),this.allowHalfOpen=!0,e){if(e.readable===!1)this.readable=!1;if(e.writable===!1)this.writable=!1;if(e.allowHalfOpen===!1)this.allowHalfOpen=!1,this.once("end",L_)}}Object.defineProperty(Ze.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ze.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ze.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function L_(){if(this._writableState.ended)return;process.nextTick(P_,this)}function P_(e){e.end()}Object.defineProperty(Ze.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(t){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=t,this._writableState.destroyed=t}})});var Xn=b(function(z2,Kl){Kl.exports=ie;function Vl(e){var t=this;this.next=null,this.entry=null,this.finish=function(){a1(t,e)}}var mr;ie.WritableState=Br;var A_={deprecate:ol()},Bl=j("stream"),ti=j("buffer").Buffer,q_=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Y_(e){return ti.from(e)}function F_(e){return ti.isBuffer(e)||e instanceof q_}var Ps=cs(),C_=hs(),j_=C_.getHighWaterMark,Mt=bt().codes,{ERR_INVALID_ARG_TYPE:I_,ERR_METHOD_NOT_IMPLEMENTED:W_,ERR_MULTIPLE_CALLBACK:$_,ERR_STREAM_CANNOT_PIPE:H_,ERR_STREAM_DESTROYED:U_,ERR_STREAM_NULL_VALUES:z_,ERR_STREAM_WRITE_AFTER_END:G_,ERR_UNKNOWN_ENCODING:V_}=Mt,gr=Ps.errorOrDestroy;cr()(ie,Bl);function B_(){}function Br(e,t,r){if(mr=mr||jt(),e=e||{},typeof r!=="boolean")r=t instanceof mr;if(this.objectMode=!!e.objectMode,r)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=j_(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){t1(t,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Vl(this)}Br.prototype.getBuffer=function(){var t=this.bufferedRequest,r=[];while(t)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Br.prototype,"buffer",{get:A_.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var ei;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")ei=Function.prototype[Symbol.hasInstance],Object.defineProperty(ie,Symbol.hasInstance,{value:function(t){if(ei.call(this,t))return!0;if(this!==ie)return!1;return t&&t._writableState instanceof Br}});else ei=function(t){return t instanceof this};function ie(e){mr=mr||jt();var t=this instanceof mr;if(!t&&!ei.call(ie,this))return new ie(e);if(this._writableState=new Br(e,this,t),this.writable=!0,e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}Bl.call(this)}ie.prototype.pipe=function(){gr(this,new H_)};function Z_(e,t){var r=new G_;gr(e,r),process.nextTick(t,r)}function J_(e,t,r,i){var a;if(r===null)a=new z_;else if(typeof r!=="string"&&!t.objectMode)a=new I_("chunk",["string","Buffer"],r);if(a)return gr(e,a),process.nextTick(i,a),!1;return!0}ie.prototype.write=function(e,t,r){var i=this._writableState,a=!1,u=!i.objectMode&&F_(e);if(u&&!ti.isBuffer(e))e=Y_(e);if(typeof t==="function")r=t,t=null;if(u)t="buffer";else if(!t)t=i.defaultEncoding;if(typeof r!=="function")r=B_;if(i.ending)Z_(this,r);else if(u||J_(this,i,e,r))i.pendingcb++,a=Q_(this,i,u,e,t,r);return a};ie.prototype.cork=function(){this._writableState.corked++};ie.prototype.uncork=function(){var e=this._writableState;if(e.corked){if(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)Zl(this,e)}};ie.prototype.setDefaultEncoding=function(t){if(typeof t==="string")t=t.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new V_(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(ie.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K_(e,t,r){if(!e.objectMode&&e.decodeStrings!==!1&&typeof t==="string")t=ti.from(t,r);return t}Object.defineProperty(ie.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Q_(e,t,r,i,a,u){if(!r){var f=K_(t,i,a);if(i!==f)r=!0,a="buffer",i=f}var c=t.objectMode?1:i.length;t.length+=c;var d=t.length<t.highWaterMark;if(!d)t.needDrain=!0;if(t.writing||t.corked){var g=t.lastBufferedRequest;if(t.lastBufferedRequest={chunk:i,encoding:a,isBuf:r,callback:u,next:null},g)g.next=t.lastBufferedRequest;else t.bufferedRequest=t.lastBufferedRequest;t.bufferedRequestCount+=1}else Ls(e,t,!1,c,i,a,u);return d}function Ls(e,t,r,i,a,u,f){if(t.writelen=i,t.writecb=f,t.writing=!0,t.sync=!0,t.destroyed)t.onwrite(new U_("write"));else if(r)e._writev(a,t.onwrite);else e._write(a,u,t.onwrite);t.sync=!1}function X_(e,t,r,i,a){if(--t.pendingcb,r)process.nextTick(a,i),process.nextTick(Vr,e,t),e._writableState.errorEmitted=!0,gr(e,i);else a(i),e._writableState.errorEmitted=!0,gr(e,i),Vr(e,t)}function e1(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function t1(e,t){var r=e._writableState,{sync:i,writecb:a}=r;if(typeof a!=="function")throw new $_;if(e1(r),t)X_(e,r,i,t,a);else{var u=Jl(r)||e.destroyed;if(!u&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest)Zl(e,r);if(i)process.nextTick(Gl,e,r,u,a);else Gl(e,r,u,a)}}function Gl(e,t,r,i){if(!r)r1(e,t);t.pendingcb--,i(),Vr(e,t)}function r1(e,t){if(t.length===0&&t.needDrain)t.needDrain=!1,e.emit("drain")}function Zl(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=Array(i),u=t.corkedRequestsFree;u.entry=r;var f=0,c=!0;while(r){if(a[f]=r,!r.isBuf)c=!1;r=r.next,f+=1}if(a.allBuffers=c,Ls(e,t,!0,t.length,a,"",u.finish),t.pendingcb++,t.lastBufferedRequest=null,u.next)t.corkedRequestsFree=u.next,u.next=null;else t.corkedRequestsFree=new Vl(t);t.bufferedRequestCount=0}else{while(r){var d=r.chunk,g=r.encoding,v=r.callback,_=t.objectMode?1:d.length;if(Ls(e,t,!1,_,d,g,v),r=r.next,t.bufferedRequestCount--,t.writing)break}if(r===null)t.lastBufferedRequest=null}t.bufferedRequest=r,t.bufferProcessing=!1}ie.prototype._write=function(e,t,r){r(new W_("_write()"))};ie.prototype._writev=null;ie.prototype.end=function(e,t,r){var i=this._writableState;if(typeof e==="function")r=e,e=null,t=null;else if(typeof t==="function")r=t,t=null;if(e!==null&&e!==void 0)this.write(e,t);if(i.corked)i.corked=1,this.uncork();if(!i.ending)s1(this,i,r);return this};Object.defineProperty(ie.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Jl(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function n1(e,t){e._final(function(r){if(t.pendingcb--,r)gr(e,r);t.prefinished=!0,e.emit("prefinish"),Vr(e,t)})}function i1(e,t){if(!t.prefinished&&!t.finalCalled)if(typeof e._final==="function"&&!t.destroyed)t.pendingcb++,t.finalCalled=!0,process.nextTick(n1,e,t);else t.prefinished=!0,e.emit("prefinish")}function Vr(e,t){var r=Jl(t);if(r){if(i1(e,t),t.pendingcb===0){if(t.finished=!0,e.emit("finish"),t.autoDestroy){var i=e._readableState;if(!i||i.autoDestroy&&i.endEmitted)e.destroy()}}}return r}function s1(e,t,r){if(t.ending=!0,Vr(e,t),r)if(t.finished)process.nextTick(r);else e.once("finish",r);t.ended=!0,e.writable=!1}function a1(e,t,r){var i=e.entry;e.entry=null;while(i){var a=i.callback;t.pendingcb--,a(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(ie.prototype,"destroyed",{enumerable:!1,get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(t){if(!this._writableState)return;this._writableState.destroyed=t}});ie.prototype.destroy=Ps.destroy;ie.prototype._undestroy=Ps.undestroy;ie.prototype._destroy=function(e,t){t(e)}});var As=b(function(G2,ef){var o1=j("util"),Ql=Xn(),{LEVEL:Xl}=oe(),Zr=ef.exports=function(t={}){if(Ql.call(this,{objectMode:!0,highWaterMark:t.highWaterMark}),this.format=t.format,this.level=t.level,this.handleExceptions=t.handleExceptions,this.handleRejections=t.handleRejections,this.silent=t.silent,t.log)this.log=t.log;if(t.logv)this.logv=t.logv;if(t.close)this.close=t.close;this.once("pipe",(r)=>{this.levels=r.levels,this.parent=r}),this.once("unpipe",(r)=>{if(r===this.parent){if(this.parent=null,this.close)this.close()}})};o1.inherits(Zr,Ql);Zr.prototype._write=function(t,r,i){if(this.silent||t.exception===!0&&!this.handleExceptions)return i(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[t[Xl]]){if(t&&!this.format)return this.log(t,i);let u,f;try{f=this.format.transform(Object.assign({},t),this.format.options)}catch(c){u=c}if(u||!f){if(i(),u)throw u;return}return this.log(f,i)}return this._writableState.sync=!1,i(null)};Zr.prototype._writev=function(t,r){if(this.logv){let i=t.filter(this._accept,this);if(!i.length)return r(null);return this.logv(i,r)}for(let i=0;i<t.length;i++){if(!this._accept(t[i]))continue;if(t[i].chunk&&!this.format){this.log(t[i].chunk,t[i].callback);continue}let a,u;try{u=this.format.transform(Object.assign({},t[i].chunk),this.format.options)}catch(f){a=f}if(a||!u){if(t[i].callback(),a)throw r(null),a}else this.log(u,t[i].callback)}return r(null)};Zr.prototype._accept=function(t){let r=t.chunk;if(this.silent)return!1;let i=this.level||this.parent&&this.parent.level;if(r.exception===!0||!i||this.levels[i]>=this.levels[r[Xl]]){if(this.handleExceptions||r.exception!==!0)return!0}return!1};Zr.prototype._nop=function(){return}});var Ys=b(function(V2,rf){var u1=j("util"),{LEVEL:qs}=oe(),tf=As(),Jr=rf.exports=function(t={}){if(tf.call(this,t),!t.transport||typeof t.transport.log!=="function")throw Error("Invalid transport, must be an object with a log method.");this.transport=t.transport,this.level=this.level||t.transport.level,this.handleExceptions=this.handleExceptions||t.transport.handleExceptions,this._deprecated();function r(i){this.emit("error",i,this.transport)}if(!this.transport.__winstonError)this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError)};u1.inherits(Jr,tf);Jr.prototype._write=function(t,r,i){if(this.silent||t.exception===!0&&!this.handleExceptions)return i(null);if(!this.level||this.levels[this.level]>=this.levels[t[qs]])this.transport.log(t[qs],t.message,t,this._nop);i(null)};Jr.prototype._writev=function(t,r){for(let i=0;i<t.length;i++)if(this._accept(t[i]))this.transport.log(t[i].chunk[qs],t[i].chunk.message,t[i].chunk,this._nop),t[i].callback();return r(null)};Jr.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
|
+
`))};Jr.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 It=b(function(B2,Fs){Fs.exports=As();Fs.exports.LegacyTransportStream=Ys()});var af=b(function(Z2,sf){var l1=j("os"),{LEVEL:nf,MESSAGE:pr}=oe(),f1=It();sf.exports=class extends f1{constructor(t={}){super(t);this.name=t.name||"console",this.stderrLevels=this._stringArrayToSet(t.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(t.consoleWarnLevels),this.eol=typeof t.eol==="string"?t.eol:l1.EOL,this.forceConsole=t.forceConsole||!1,this._consoleLog=console.log.bind(console),this._consoleWarn=console.warn.bind(console),this._consoleError=console.error.bind(console),this.setMaxListeners(30)}log(t,r){if(setImmediate(()=>this.emit("logged",t)),this.stderrLevels[t[nf]]){if(console._stderr&&!this.forceConsole)console._stderr.write(`${t[pr]}${this.eol}`);else this._consoleError(t[pr]);if(r)r();return}else if(this.consoleWarnLevels[t[nf]]){if(console._stderr&&!this.forceConsole)console._stderr.write(`${t[pr]}${this.eol}`);else this._consoleWarn(t[pr]);if(r)r();return}if(console._stdout&&!this.forceConsole)console._stdout.write(`${t[pr]}${this.eol}`);else this._consoleLog(t[pr]);if(r)r()}_stringArrayToSet(t,r){if(!t)return{};if(r=r||"Cannot make set from type other than Array of string elements",!Array.isArray(t))throw Error(r);return t.reduce((i,a)=>{if(typeof a!=="string")throw Error(r);return i[a]=!0,i},{})}}});var ri=b(function(Cs,of){Object.defineProperty(Cs,"__esModule",{value:!0});Cs.default=c1;function c1(e){return e&&typeof e.length==="number"&&e.length>=0&&e.length%1===0}of.exports=Cs.default});var lf=b(function(js,uf){Object.defineProperty(js,"__esModule",{value:!0});js.default=function(e){return function(...t){var r=t.pop();return e.call(this,t,r)}};uf.exports=js.default});var df=b(function(hf){Object.defineProperty(hf,"__esModule",{value:!0});hf.fallback=ff;hf.wrap=cf;var m1=hf.hasQueueMicrotask=typeof queueMicrotask==="function"&&queueMicrotask,g1=hf.hasSetImmediate=typeof setImmediate==="function"&&setImmediate,p1=hf.hasNextTick=typeof process==="object"&&typeof process.nextTick==="function";function ff(e){setTimeout(e,0)}function cf(e){return(t,...r)=>e(()=>t(...r))}var Kr;if(m1)Kr=queueMicrotask;else if(g1)Kr=setImmediate;else if(p1)Kr=process.nextTick;else Kr=ff;hf.default=cf(Kr)});var _f=b(function(Is,yf){Object.defineProperty(Is,"__esModule",{value:!0});Is.default=E1;var b1=lf(),v1=pf(b1),S1=df(),x1=pf(S1),M1=Wt();function pf(e){return e&&e.__esModule?e:{default:e}}function E1(e){if((0,M1.isAsync)(e))return function(...t){let r=t.pop(),i=e.apply(this,t);return mf(i,r)};return(0,v1.default)(function(t,r){var i;try{i=e.apply(this,t)}catch(a){return r(a)}if(i&&typeof i.then==="function")return mf(i,r);else r(null,i)})}function mf(e,t){return e.then((r)=>{gf(t,null,r)},(r)=>{gf(t,r&&(r instanceof Error||r.message)?r:Error(r))})}function gf(e,t,r){try{e(t,r)}catch(i){(0,x1.default)((a)=>{throw a},i)}}yf.exports=Is.default});var Wt=b(function(bf){Object.defineProperty(bf,"__esModule",{value:!0});bf.isAsyncIterable=bf.isAsyncGenerator=bf.isAsync=void 0;var k1=_f(),D1=R1(k1);function R1(e){return e&&e.__esModule?e:{default:e}}function wf(e){return e[Symbol.toStringTag]==="AsyncFunction"}function T1(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function N1(e){return typeof e[Symbol.asyncIterator]==="function"}function L1(e){if(typeof e!=="function")throw Error("expected a function");return wf(e)?(0,D1.default)(e):e}bf.default=L1;bf.isAsync=wf;bf.isAsyncGenerator=T1;bf.isAsyncIterable=N1});var yr=b(function(Ws,Sf){Object.defineProperty(Ws,"__esModule",{value:!0});Ws.default=Y1;function Y1(e,t){if(!t)t=e.length;if(!t)throw Error("arity is undefined");function r(...i){if(typeof i[t-1]==="function")return e.apply(this,i);return new Promise((a,u)=>{i[t-1]=(f,...c)=>{if(f)return u(f);a(c.length>1?c:c[0])},e.apply(this,i)})}return r}Sf.exports=Ws.default});var Mf=b(function(Hs,xf){Object.defineProperty(Hs,"__esModule",{value:!0});var C1=ri(),j1=$s(C1),I1=Wt(),W1=$s(I1),$1=yr(),H1=$s($1);function $s(e){return e&&e.__esModule?e:{default:e}}Hs.default=(0,H1.default)((e,t,r)=>{var i=(0,j1.default)(t)?[]:{};e(t,(a,u,f)=>{(0,W1.default)(a)((c,...d)=>{if(d.length<2)[d]=d;i[u]=d,f(c)})},(a)=>r(a,i))},3);xf.exports=Hs.default});var zs=b(function(Us,Ef){Object.defineProperty(Us,"__esModule",{value:!0});Us.default=z1;function z1(e){function t(...r){if(e===null)return;var i=e;e=null,i.apply(this,r)}return Object.assign(t,e),t}Ef.exports=Us.default});var kf=b(function(Gs,Of){Object.defineProperty(Gs,"__esModule",{value:!0});Gs.default=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()};Of.exports=Gs.default});var Tf=b(function(Vs,Rf){Object.defineProperty(Vs,"__esModule",{value:!0});Vs.default=tw;var B1=ri(),Z1=Df(B1),J1=kf(),K1=Df(J1);function Df(e){return e&&e.__esModule?e:{default:e}}function Q1(e){var t=-1,r=e.length;return function(){return++t<r?{value:e[t],key:t}:null}}function X1(e){var t=-1;return function(){var i=e.next();if(i.done)return null;return t++,{value:i.value,key:t}}}function ew(e){var t=e?Object.keys(e):[],r=-1,i=t.length;return function a(){var u=t[++r];if(u==="__proto__")return a();return r<i?{value:e[u],key:u}:null}}function tw(e){if((0,Z1.default)(e))return Q1(e);var t=(0,K1.default)(e);return t?X1(t):ew(e)}Rf.exports=Vs.default});var Zs=b(function(Bs,Nf){Object.defineProperty(Bs,"__esModule",{value:!0});Bs.default=nw;function nw(e){return function(...t){if(e===null)throw Error("Callback was already called.");var r=e;e=null,r.apply(this,t)}}Nf.exports=Bs.default});var ni=b(function(Js,Lf){Object.defineProperty(Js,"__esModule",{value:!0});var sw={};Js.default=sw;Lf.exports=Js.default});var Af=b(function(Ks,Pf){Object.defineProperty(Ks,"__esModule",{value:!0});Ks.default=fw;var ow=ni(),uw=lw(ow);function lw(e){return e&&e.__esModule?e:{default:e}}function fw(e,t,r,i){let a=!1,u=!1,f=!1,c=0,d=0;function g(){if(c>=t||f||a)return;f=!0,e.next().then(({value:w,done:E})=>{if(u||a)return;if(f=!1,E){if(a=!0,c<=0)i(null);return}c++,r(w,d,v),d++,g()}).catch(_)}function v(w,E){if(c-=1,u)return;if(w)return _(w);if(w===!1){a=!0,u=!0;return}if(E===uw.default||a&&c<=0)return a=!0,i(null);g()}function _(w){if(u)return;f=!1,a=!0,i(w)}g()}Pf.exports=Ks.default});var Cf=b(function(Qs,Ff){Object.defineProperty(Qs,"__esModule",{value:!0});var hw=zs(),dw=Qr(hw),mw=Tf(),gw=Qr(mw),pw=Zs(),yw=Qr(pw),qf=Wt(),_w=Af(),Yf=Qr(_w),ww=ni(),bw=Qr(ww);function Qr(e){return e&&e.__esModule?e:{default:e}}Qs.default=(e)=>(t,r,i)=>{if(i=(0,dw.default)(i),e<=0)throw RangeError("concurrency limit cannot be less than 1");if(!t)return i(null);if((0,qf.isAsyncGenerator)(t))return(0,Yf.default)(t,e,r,i);if((0,qf.isAsyncIterable)(t))return(0,Yf.default)(t[Symbol.asyncIterator](),e,r,i);var a=(0,gw.default)(t),u=!1,f=!1,c=0,d=!1;function g(_,w){if(f)return;if(c-=1,_)u=!0,i(_);else if(_===!1)u=!0,f=!0;else if(w===bw.default||u&&c<=0)return u=!0,i(null);else if(!d)v()}function v(){d=!0;while(c<e&&!u){var _=a();if(_===null){if(u=!0,c<=0)i(null);return}c+=1,r(_.value,_.key,(0,yw.default)(g))}d=!1}v()};Ff.exports=Qs.default});var ta=b(function(ea,jf){Object.defineProperty(ea,"__esModule",{value:!0});var Sw=Cf(),xw=Xs(Sw),Mw=Wt(),Ew=Xs(Mw),Ow=yr(),kw=Xs(Ow);function Xs(e){return e&&e.__esModule?e:{default:e}}function Dw(e,t,r,i){return(0,xw.default)(t)(e,(0,Ew.default)(r),i)}ea.default=(0,kw.default)(Dw,4);jf.exports=ea.default});var $f=b(function(ra,Wf){Object.defineProperty(ra,"__esModule",{value:!0});var Tw=ta(),Nw=If(Tw),Lw=yr(),Pw=If(Lw);function If(e){return e&&e.__esModule?e:{default:e}}function Aw(e,t,r){return(0,Nw.default)(e,1,t,r)}ra.default=(0,Pw.default)(Aw,3);Wf.exports=ra.default});var zf=b(function(na,Uf){Object.defineProperty(na,"__esModule",{value:!0});na.default=Iw;var Yw=Mf(),Fw=Hf(Yw),Cw=$f(),jw=Hf(Cw);function Hf(e){return e&&e.__esModule?e:{default:e}}function Iw(e,t){return(0,Fw.default)(jw.default,e,t)}Uf.exports=na.default});var ia=b(function(tx,Vf){Vf.exports=ct;var ii=bt().codes,{ERR_METHOD_NOT_IMPLEMENTED:$w,ERR_MULTIPLE_CALLBACK:Hw,ERR_TRANSFORM_ALREADY_TRANSFORMING:Uw,ERR_TRANSFORM_WITH_LENGTH_0:zw}=ii,si=jt();cr()(ct,si);function Gw(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new Hw);if(r.writechunk=null,r.writecb=null,t!=null)this.push(t);i(e);var a=this._readableState;if(a.reading=!1,a.needReadable||a.length<a.highWaterMark)this._read(a.highWaterMark)}function ct(e){if(!(this instanceof ct))return new ct(e);if(si.call(this,e),this._transformState={afterTransform:Gw.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",Vw)}function Vw(){var e=this;if(typeof this._flush==="function"&&!this._readableState.destroyed)this._flush(function(t,r){Gf(e,t,r)});else Gf(this,null,null)}ct.prototype.push=function(e,t){return this._transformState.needTransform=!1,si.prototype.push.call(this,e,t)};ct.prototype._transform=function(e,t,r){r(new $w("_transform()"))};ct.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;if(i.needTransform||a.needReadable||a.length<a.highWaterMark)this._read(a.highWaterMark)}};ct.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&!t.transforming)t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform);else t.needTransform=!0};ct.prototype._destroy=function(e,t){si.prototype._destroy.call(this,e,function(r){t(r)})};function Gf(e,t,r){if(t)return e.emit("error",t);if(r!=null)e.push(r);if(e._writableState.length)throw new zw;if(e._transformState.transforming)throw new Uw;return e.push(null)}});var Jf=b(function(rx,Zf){Zf.exports=Xr;var Bf=ia();cr()(Xr,Bf);function Xr(e){if(!(this instanceof Xr))return new Xr(e);Bf.call(this,e)}Xr.prototype._transform=function(e,t,r){r(null,e)}});var tc=b(function(nx,ec){var sa;function Bw(e){var t=!1;return function(){if(t)return;t=!0,e.apply(void 0,arguments)}}var Xf=bt().codes,{ERR_MISSING_ARGS:Zw,ERR_STREAM_DESTROYED:Jw}=Xf;function Kf(e){if(e)throw e}function Kw(e){return e.setHeader&&typeof e.abort==="function"}function Qw(e,t,r,i){i=Bw(i);var a=!1;if(e.on("close",function(){a=!0}),sa===void 0)sa=Gn();sa(e,{readable:t,writable:r},function(f){if(f)return i(f);a=!0,i()});var u=!1;return function(f){if(a)return;if(u)return;if(u=!0,Kw(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();i(f||new Jw("pipe"))}}function Qf(e){e()}function Xw(e,t){return e.pipe(t)}function eb(e){if(!e.length)return Kf;if(typeof e[e.length-1]!=="function")return Kf;return e.pop()}function tb(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=eb(t);if(Array.isArray(t[0]))t=t[0];if(t.length<2)throw new Zw("streams");var a,u=t.map(function(f,c){var d=c<t.length-1,g=c>0;return Qw(f,d,g,function(v){if(!a)a=v;if(v)u.forEach(Qf);if(d)return;u.forEach(Qf),i(a)})});return t.reduce(Xw)}ec.exports=tb});var $t=b(function(Ye,tn){var en=j("stream");if(process.env.READABLE_STREAM==="disable"&&en)tn.exports=en.Readable,Object.assign(tn.exports,en),tn.exports.Stream=en;else Ye=tn.exports=Ts(),Ye.Stream=en||Ye,Ye.Readable=Ye,Ye.Writable=Xn(),Ye.Duplex=jt(),Ye.Transform=ia(),Ye.PassThrough=Jf(),Ye.finished=Gn(),Ye.pipeline=tc()});var ic=b(function(ix,nc){var _r=[],rn=[],aa=function(){};function ua(e){if(~_r.indexOf(e))return!1;return _r.push(e),!0}function la(e){aa=e}function rb(e){var t=[];for(var r=0;r<_r.length;r++){if(_r[r].async){t.push(_r[r]);continue}if(_r[r](e))return!0}if(!t.length)return!1;return new Promise(function(a){Promise.all(t.map(function(f){return f(e)})).then(function(f){a(f.some(Boolean))})})}function fa(e){if(~rn.indexOf(e))return!1;return rn.push(e),!0}function oa(){aa.apply(aa,arguments)}function rc(e){for(var t=0;t<rn.length;t++)e=rn[t].apply(rn[t],arguments);return e}function ca(e,t){var r=Object.prototype.hasOwnProperty;for(var i in t)if(r.call(t,i))e[i]=t[i];return e}function nb(e){return e.enabled=!1,e.modify=fa,e.set=la,e.use=ua,ca(function(){return!1},e)}function ib(e){function t(){var r=Array.prototype.slice.call(arguments,0);return oa.call(oa,e,rc(r,e)),!0}return e.enabled=!0,e.modify=fa,e.set=la,e.use=ua,ca(t,e)}nc.exports=function(t){return t.introduce=ca,t.enabled=rb,t.process=rc,t.modify=fa,t.write=oa,t.nope=nb,t.yep=ib,t.set=la,t.use=ua,t}});var fc=b(function(sx,lc){var Je={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]},ac=Object.create(null);for(let e in Je)if(Object.hasOwn(Je,e))ac[Je[e]]=e;var me={to:{},get:{}};me.get=function(e){let t=e.slice(0,3).toLowerCase(),r,i;switch(t){case"hsl":{r=me.get.hsl(e),i="hsl";break}case"hwb":{r=me.get.hwb(e),i="hwb";break}default:{r=me.get.rgb(e),i="rgb";break}}if(!r)return null;return{model:i,value:r}};me.get.rgb=function(e){if(!e)return null;let t=/^#([a-f\d]{3,4})$/i,r=/^#([a-f\d]{6})([a-f\d]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,u=/^(\w+)$/,f=[0,0,0,1],c,d,g;if(c=e.match(r)){g=c[2],c=c[1];for(d=0;d<3;d++){let v=d*2;f[d]=Number.parseInt(c.slice(v,v+2),16)}if(g)f[3]=Number.parseInt(g,16)/255}else if(c=e.match(t)){c=c[1],g=c[3];for(d=0;d<3;d++)f[d]=Number.parseInt(c[d]+c[d],16);if(g)f[3]=Number.parseInt(g+g,16)/255}else if(c=e.match(i)){for(d=0;d<3;d++)f[d]=Number.parseInt(c[d+1],10);if(c[4])f[3]=c[5]?Number.parseFloat(c[4])*0.01:Number.parseFloat(c[4])}else if(c=e.match(a)){for(d=0;d<3;d++)f[d]=Math.round(Number.parseFloat(c[d+1])*2.55);if(c[4])f[3]=c[5]?Number.parseFloat(c[4])*0.01:Number.parseFloat(c[4])}else if(c=e.match(u)){if(c[1]==="transparent")return[0,0,0,0];if(!Object.hasOwn(Je,c[1]))return null;return f=Je[c[1]],f[3]=1,f}else return null;for(d=0;d<3;d++)f[d]=Et(f[d],0,255);return f[3]=Et(f[3],0,1),f};me.get.hsl=function(e){if(!e)return null;let t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){let i=Number.parseFloat(r[4]),a=(Number.parseFloat(r[1])%360+360)%360,u=Et(Number.parseFloat(r[2]),0,100),f=Et(Number.parseFloat(r[3]),0,100),c=Et(Number.isNaN(i)?1:i,0,1);return[a,u,f,c]}return null};me.get.hwb=function(e){if(!e)return null;let t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){let i=Number.parseFloat(r[4]),a=(Number.parseFloat(r[1])%360+360)%360,u=Et(Number.parseFloat(r[2]),0,100),f=Et(Number.parseFloat(r[3]),0,100),c=Et(Number.isNaN(i)?1:i,0,1);return[a,u,f,c]}return null};me.to.hex=function(...e){return"#"+ai(e[0])+ai(e[1])+ai(e[2])+(e[3]<1?ai(Math.round(e[3]*255)):"")};me.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};me.to.rgb.percent=function(...e){let t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+i+"%)":"rgba("+t+"%, "+r+"%, "+i+"%, "+e[3]+")"};me.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};me.to.hwb=function(...e){let t="";if(e.length>=4&&e[3]!==1)t=", "+e[3];return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};me.to.keyword=function(...e){return ac[e.slice(0,3)]};function Et(e,t,r){return Math.min(Math.max(t,e),r)}function ai(e){let t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var oc={};for(let e of Object.keys(Je))oc[Je[e]]=e;var k={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"]}},ht=0.008856451679035631;function wr(e){let t=e>0.0031308?1.055*e**0.4166666666666667-0.055:e*12.92;return Math.min(Math.max(0,t),1)}function br(e){return e>0.04045?((e+0.055)/1.055)**2.4:e/12.92}for(let e of Object.keys(k)){if(!("channels"in k[e]))throw Error("missing channels property: "+e);if(!("labels"in k[e]))throw Error("missing channel labels property: "+e);if(k[e].labels.length!==k[e].channels)throw Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=k[e];delete k[e].channels,delete k[e].labels,Object.defineProperty(k[e],"channels",{value:t}),Object.defineProperty(k[e],"labels",{value:r})}k.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.min(t,r,i),u=Math.max(t,r,i),f=u-a,c,d;switch(u){case a:{c=0;break}case t:{c=(r-i)/f;break}case r:{c=2+(i-t)/f;break}case i:{c=4+(t-r)/f;break}}if(c=Math.min(c*60,360),c<0)c+=360;let g=(a+u)/2;if(u===a)d=0;else if(g<=0.5)d=f/(u+a);else d=f/(2-u-a);return[c,d*100,g*100]};k.rgb.hsv=function(e){let t,r,i,a,u,f=e[0]/255,c=e[1]/255,d=e[2]/255,g=Math.max(f,c,d),v=g-Math.min(f,c,d),_=function(w){return(g-w)/6/v+0.5};if(v===0)a=0,u=0;else{switch(u=v/g,t=_(f),r=_(c),i=_(d),g){case f:{a=i-r;break}case c:{a=0.3333333333333333+t-i;break}case d:{a=0.6666666666666666+r-t;break}}if(a<0)a+=1;else if(a>1)a-=1}return[a*360,u*100,g*100]};k.rgb.hwb=function(e){let t=e[0],r=e[1],i=e[2],a=k.rgb.hsl(e)[0],u=0.00392156862745098*Math.min(t,Math.min(r,i));return i=1-0.00392156862745098*Math.max(t,Math.max(r,i)),[a,u*100,i*100]};k.rgb.oklab=function(e){let t=br(e[0]/255),r=br(e[1]/255),i=br(e[2]/255),a=Math.cbrt(0.4122214708*t+0.5363325363*r+0.0514459929*i),u=Math.cbrt(0.2119034982*t+0.6806995451*r+0.1073969566*i),f=Math.cbrt(0.0883024619*t+0.2817188376*r+0.6299787005*i),c=0.2104542553*a+0.793617785*u-0.0040720468*f,d=1.9779984951*a-2.428592205*u+0.4505937099*f,g=0.0259040371*a+0.7827717662*u-0.808675766*f;return[c*100,d*100,g*100]};k.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.min(1-t,1-r,1-i),u=(1-t-a)/(1-a)||0,f=(1-r-a)/(1-a)||0,c=(1-i-a)/(1-a)||0;return[u*100,f*100,c*100,a*100]};function sb(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}k.rgb.keyword=function(e){let t=oc[e];if(t)return t;let r=Number.POSITIVE_INFINITY,i;for(let a of Object.keys(Je)){let u=Je[a],f=sb(e,u);if(f<r)r=f,i=a}return i};k.keyword.rgb=function(e){return Je[e]};k.rgb.xyz=function(e){let t=br(e[0]/255),r=br(e[1]/255),i=br(e[2]/255),a=t*0.4124564+r*0.3575761+i*0.1804375,u=t*0.2126729+r*0.7151522+i*0.072175,f=t*0.0193339+r*0.119192+i*0.9503041;return[a*100,u*100,f*100]};k.rgb.lab=function(e){let t=k.rgb.xyz(e),r=t[0],i=t[1],a=t[2];r/=95.047,i/=100,a/=108.883,r=r>ht?r**0.3333333333333333:7.787*r+0.13793103448275862,i=i>ht?i**0.3333333333333333:7.787*i+0.13793103448275862,a=a>ht?a**0.3333333333333333:7.787*a+0.13793103448275862;let u=116*i-16,f=500*(r-i),c=200*(i-a);return[u,f,c]};k.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,a,u;if(r===0)return u=i*255,[u,u,u];let f=i<0.5?i*(1+r):i+r-i*r,c=2*i-f,d=[0,0,0];for(let g=0;g<3;g++){if(a=t+0.3333333333333333*-(g-1),a<0)a++;if(a>1)a--;if(6*a<1)u=c+(f-c)*6*a;else if(2*a<1)u=f;else if(3*a<2)u=c+(f-c)*(0.6666666666666666-a)*6;else u=c;d[g]=u*255}return d};k.hsl.hsv=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,a=r,u=Math.max(i,0.01);i*=2,r*=i<=1?i:2-i,a*=u<=1?u:2-u;let f=(i+r)/2,c=i===0?2*a/(u+a):2*r/(i+r);return[t,c*100,f*100]};k.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,i=e[2]/100,a=Math.floor(t)%6,u=t-Math.floor(t),f=255*i*(1-r),c=255*i*(1-r*u),d=255*i*(1-r*(1-u));switch(i*=255,a){case 0:return[i,d,f];case 1:return[c,i,f];case 2:return[f,i,d];case 3:return[f,c,i];case 4:return[d,f,i];case 5:return[i,f,c]}};k.hsv.hsl=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,a=Math.max(i,0.01),u,f;f=(2-r)*i;let c=(2-r)*a;return u=r*a,u/=c<=1?c:2-c,u=u||0,f/=2,[t,u*100,f*100]};k.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,a=r+i,u;if(a>1)r/=a,i/=a;let f=Math.floor(6*t),c=1-i;if(u=6*t-f,(f&1)!==0)u=1-u;let d=r+u*(c-r),g,v,_;switch(f){default:case 6:case 0:{g=c,v=d,_=r;break}case 1:{g=d,v=c,_=r;break}case 2:{g=r,v=c,_=d;break}case 3:{g=r,v=d,_=c;break}case 4:{g=d,v=r,_=c;break}case 5:{g=c,v=r,_=d;break}}return[g*255,v*255,_*255]};k.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,a=e[3]/100,u=1-Math.min(1,t*(1-a)+a),f=1-Math.min(1,r*(1-a)+a),c=1-Math.min(1,i*(1-a)+a);return[u*255,f*255,c*255]};k.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,a,u,f;return a=t*3.2404542+r*-1.5371385+i*-0.4985314,u=t*-0.969266+r*1.8760108+i*0.041556,f=t*0.0556434+r*-0.2040259+i*1.0572252,a=wr(a),u=wr(u),f=wr(f),[a*255,u*255,f*255]};k.xyz.lab=function(e){let t=e[0],r=e[1],i=e[2];t/=95.047,r/=100,i/=108.883,t=t>ht?t**0.3333333333333333:7.787*t+0.13793103448275862,r=r>ht?r**0.3333333333333333:7.787*r+0.13793103448275862,i=i>ht?i**0.3333333333333333:7.787*i+0.13793103448275862;let a=116*r-16,u=500*(t-r),f=200*(r-i);return[a,u,f]};k.xyz.oklab=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,a=Math.cbrt(0.8189330101*t+0.3618667424*r-0.1288597137*i),u=Math.cbrt(0.0329845436*t+0.9293118715*r+0.0361456387*i),f=Math.cbrt(0.0482003018*t+0.2643662691*r+0.633851707*i),c=0.2104542553*a+0.793617785*u-0.0040720468*f,d=1.9779984951*a-2.428592205*u+0.4505937099*f,g=0.0259040371*a+0.7827717662*u-0.808675766*f;return[c*100,d*100,g*100]};k.oklab.oklch=function(e){return k.lab.lch(e)};k.oklab.xyz=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,a=(0.999999998*t+0.396337792*r+0.215803758*i)**3,u=(1.000000008*t-0.105561342*r-0.063854175*i)**3,f=(1.000000055*t-0.089484182*r-1.291485538*i)**3,c=1.227013851*a-0.55779998*u+0.281256149*f,d=-0.040580178*a+1.11225687*u-0.071676679*f,g=-0.076381285*a-0.421481978*u+1.58616322*f;return[c*100,d*100,g*100]};k.oklab.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,a=(t+0.3963377774*r+0.2158037573*i)**3,u=(t-0.1055613458*r-0.0638541728*i)**3,f=(t-0.0894841775*r-1.291485548*i)**3,c=wr(4.0767416621*a-3.3077115913*u+0.2309699292*f),d=wr(-1.2684380046*a+2.6097574011*u-0.3413193965*f),g=wr(-0.0041960863*a-0.7034186147*u+1.707614701*f);return[c*255,d*255,g*255]};k.oklch.oklab=function(e){return k.lch.lab(e)};k.lab.xyz=function(e){let t=e[0],r=e[1],i=e[2],a,u,f;u=(t+16)/116,a=r/500+u,f=u-i/200;let c=u**3,d=a**3,g=f**3;return u=c>ht?c:(u-0.13793103448275862)/7.787,a=d>ht?d:(a-0.13793103448275862)/7.787,f=g>ht?g:(f-0.13793103448275862)/7.787,a*=95.047,u*=100,f*=108.883,[a,u,f]};k.lab.lch=function(e){let t=e[0],r=e[1],i=e[2],a;if(a=Math.atan2(i,r)*360/2/Math.PI,a<0)a+=360;let f=Math.sqrt(r*r+i*i);return[t,f,a]};k.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,u=r*Math.cos(a),f=r*Math.sin(a);return[t,u,f]};k.rgb.ansi16=function(e,t=null){let[r,i,a]=e,u=t===null?k.rgb.hsv(e)[2]:t;if(u=Math.round(u/50),u===0)return 30;let f=30+(Math.round(a/255)<<2|Math.round(i/255)<<1|Math.round(r/255));if(u===2)f+=60;return f};k.hsv.ansi16=function(e){return k.rgb.ansi16(k.hsv.rgb(e),e[2])};k.rgb.ansi256=function(e){let t=e[0],r=e[1],i=e[2];if(t>>4===r>>4&&r>>4===i>>4){if(t<8)return 16;if(t>248)return 231;return Math.round((t-8)/247*24)+232}return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)};k.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7){if(e>50)t+=3.5;return t=t/10.5*255,[t,t,t]}let r=(Math.trunc(e>50)+1)*0.5,i=(t&1)*r*255,a=(t>>1&1)*r*255,u=(t>>2&1)*r*255;return[i,a,u]};k.ansi256.rgb=function(e){if(e=e[0],e>=232){let u=(e-232)*10+8;return[u,u,u]}e-=16;let t,r=Math.floor(e/36)/5*255,i=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[r,i,a]};k.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(r.length)+r};k.hex.rgb=function(e){let t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let r=t[0];if(t[0].length===3)r=[...r].map((c)=>c+c).join("");let i=Number.parseInt(r,16),a=i>>16&255,u=i>>8&255,f=i&255;return[a,u,f]};k.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.max(Math.max(t,r),i),u=Math.min(Math.min(t,r),i),f=a-u,c,d=f<1?u/(1-f):0;if(f<=0)c=0;else if(a===t)c=(r-i)/f%6;else if(a===r)c=2+(i-t)/f;else c=4+(t-r)/f;return c/=6,c%=1,[c*360,f*100,d*100]};k.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=r<0.5?2*t*r:2*t*(1-r),a=0;if(i<1)a=(r-0.5*i)/(1-i);return[e[0],i*100,a*100]};k.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=t*r,a=0;if(i<1)a=(r-i)/(1-i);return[e[0],i*100,a*100]};k.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100;if(r===0)return[i*255,i*255,i*255];let a=[0,0,0],u=t%1*6,f=u%1,c=1-f,d=0;switch(Math.floor(u)){case 0:{a[0]=1,a[1]=f,a[2]=0;break}case 1:{a[0]=c,a[1]=1,a[2]=0;break}case 2:{a[0]=0,a[1]=1,a[2]=f;break}case 3:{a[0]=0,a[1]=c,a[2]=1;break}case 4:{a[0]=f,a[1]=0,a[2]=1;break}default:a[0]=1,a[1]=0,a[2]=c}return d=(1-r)*i,[(r*a[0]+d)*255,(r*a[1]+d)*255,(r*a[2]+d)*255]};k.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t),a=0;if(i>0)a=t/i;return[e[0],a*100,i*100]};k.hcg.hsl=function(e){let t=e[1]/100,i=e[2]/100*(1-t)+0.5*t,a=0;if(i>0&&i<0.5)a=t/(2*i);else if(i>=0.5&&i<1)a=t/(2*(1-i));return[e[0],a*100,i*100]};k.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t);return[e[0],(i-t)*100,(1-i)*100]};k.hwb.hcg=function(e){let t=e[1]/100,i=1-e[2]/100,a=i-t,u=0;if(a<1)u=(i-a)/(1-a);return[e[0],a*100,u*100]};k.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};k.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};k.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};k.gray.hsl=function(e){return[0,0,e[0]]};k.gray.hsv=k.gray.hsl;k.gray.hwb=function(e){return[0,100,e[0]]};k.gray.cmyk=function(e){return[0,0,0,e[0]]};k.gray.lab=function(e){return[e[0],0,0]};k.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,i=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(i.length)+i};k.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function ab(){let e={},t=Object.keys(k);for(let{length:r}=t,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}function ob(e){let t=ab(),r=[e];t[e].distance=0;while(r.length>0){let i=r.pop(),a=Object.keys(k[i]);for(let{length:u}=a,f=0;f<u;f++){let c=a[f],d=t[c];if(d.distance===-1)d.distance=t[i].distance+1,d.parent=i,r.unshift(c)}}return t}function ub(e,t){return function(r){return t(e(r))}}function lb(e,t){let r=[t[e].parent,e],i=k[t[e].parent][e],a=t[e].parent;while(t[a].parent)r.unshift(t[a].parent),i=ub(k[t[a].parent][a],i),a=t[a].parent;return i.conversion=r,i}function fb(e){let t=ob(e),r={},i=Object.keys(t);for(let{length:a}=i,u=0;u<a;u++){let f=i[u];if(t[f].parent===null)continue;r[f]=lb(f,t)}return r}var pe={},cb=Object.keys(k);function hb(e){let t=function(...r){let i=r[0];if(i===void 0||i===null)return i;if(i.length>1)r=i;return e(r)};if("conversion"in e)t.conversion=e.conversion;return t}function db(e){let t=function(...r){let i=r[0];if(i===void 0||i===null)return i;if(i.length>1)r=i;let a=e(r);if(typeof a==="object")for(let{length:u}=a,f=0;f<u;f++)a[f]=Math.round(a[f]);return a};if("conversion"in e)t.conversion=e.conversion;return t}for(let e of cb){pe[e]={},Object.defineProperty(pe[e],"channels",{value:k[e].channels}),Object.defineProperty(pe[e],"labels",{value:k[e].labels});let t=fb(e),r=Object.keys(t);for(let i of r){let a=t[i];pe[e][i]=db(a),pe[e][i].raw=hb(a)}}var uc=["keyword","gray","hex"],ha={};for(let e of Object.keys(pe))ha[[...pe[e].labels].sort().join("")]=e;var da={};function de(e,t){if(!(this instanceof de))return new de(e,t);if(t&&t in uc)t=null;if(t&&!(t in pe))throw Error("Unknown model: "+t);let r,i;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof de)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e==="string"){let a=me.get(e);if(a===null)throw Error("Unable to parse color from string: "+e);this.model=a.model,i=pe[this.model].channels,this.color=a.value.slice(0,i),this.valpha=typeof a.value[i]==="number"?a.value[i]:1}else if(e.length>0){this.model=t||"rgb",i=pe[this.model].channels;let a=Array.prototype.slice.call(e,0,i);this.color=ma(a,i),this.valpha=typeof e[i]==="number"?e[i]:1}else if(typeof e==="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;let a=Object.keys(e);if("alpha"in e)a.splice(a.indexOf("alpha"),1),this.valpha=typeof e.alpha==="number"?e.alpha:0;let u=a.sort().join("");if(!(u in ha))throw Error("Unable to parse color from object: "+JSON.stringify(e));this.model=ha[u];let{labels:f}=pe[this.model],c=[];for(r=0;r<f.length;r++)c.push(e[f[r]]);this.color=ma(c)}if(da[this.model]){i=pe[this.model].channels;for(r=0;r<i;r++){let a=da[this.model][r];if(a)this.color[r]=a(this.color[r])}}if(this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze)Object.freeze(this)}de.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in me.to?this:this.rgb();t=t.round(typeof e==="number"?e:1);let r=t.valpha===1?t.color:[...t.color,this.valpha];return me.to[t.model](...r)},percentString(e){let t=this.rgb().round(typeof e==="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return me.to.rgb.percent(...r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=pe[this.model],{labels:r}=pe[this.model];for(let i=0;i<t;i++)e[r[i]]=this.color[i];if(this.valpha!==1)e.alpha=this.valpha;return e},unitArray(){let e=this.rgb().color;if(e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1)e.push(this.valpha);return e},unitObject(){let e=this.rgb().object();if(e.r/=255,e.g/=255,e.b/=255,this.valpha!==1)e.alpha=this.valpha;return e},round(e){return e=Math.max(e||0,0),new de([...this.color.map(gb(e)),this.valpha],this.model)},alpha(e){if(e!==void 0)return new de([...this.color,Math.max(0,Math.min(1,e))],this.model);return this.valpha},red:se("rgb",0,he(255)),green:se("rgb",1,he(255)),blue:se("rgb",2,he(255)),hue:se(["hsl","hsv","hsl","hwb","hcg"],0,(e)=>(e%360+360)%360),saturationl:se("hsl",1,he(100)),lightness:se("hsl",2,he(100)),saturationv:se("hsv",1,he(100)),value:se("hsv",2,he(100)),chroma:se("hcg",1,he(100)),gray:se("hcg",2,he(100)),white:se("hwb",1,he(100)),wblack:se("hwb",2,he(100)),cyan:se("cmyk",0,he(100)),magenta:se("cmyk",1,he(100)),yellow:se("cmyk",2,he(100)),black:se("cmyk",3,he(100)),x:se("xyz",0,he(95.047)),y:se("xyz",1,he(100)),z:se("xyz",2,he(108.833)),l:se("lab",0,he(100)),a:se("lab",1),b:se("lab",2),keyword(e){if(e!==void 0)return new de(e);return pe[this.model].keyword(this.color)},hex(e){if(e!==void 0)return new de(e);return me.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new de(e);let t=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();if(r.length===1)r="0"+r;return me.to.hex(...t)+r},rgbNumber(){let e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){let e=this.rgb().color,t=[];for(let[r,i]of e.entries()){let a=i/255;t[r]=a<=0.04045?a/12.92:((a+0.055)/1.055)**2.4}return 0.2126*t[0]+0.7152*t[1]+0.0722*t[2]},contrast(e){let t=this.luminosity(),r=e.luminosity();if(t>r)return(t+0.05)/(r+0.05);return(r+0.05)/(t+0.05)},level(e){let t=this.contrast(e);if(t>=7)return"AAA";return t>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=e[0]*0.3+e[1]*0.59+e[2]*0.11;return de.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let r=e.rgb(),i=this.rgb(),a=t===void 0?0.5:t,u=2*a-1,f=r.alpha()-i.alpha(),c=((u*f===-1?u:(u+f)/(1+u*f))+1)/2,d=1-c;return de.rgb(c*r.red()+d*i.red(),c*r.green()+d*i.green(),c*r.blue()+d*i.blue(),r.alpha()*a+i.alpha()*(1-a))}};for(let e of Object.keys(pe)){if(uc.includes(e))continue;let{channels:t}=pe[e];de.prototype[e]=function(...r){if(this.model===e)return new de(this);if(r.length>0)return new de(r,e);return new de([...pb(pe[this.model][e].raw(this.color)),this.valpha],e)},de[e]=function(...r){let i=r[0];if(typeof i==="number")i=ma(r,t);return new de(i,e)}}function mb(e,t){return Number(e.toFixed(t))}function gb(e){return function(t){return mb(t,e)}}function se(e,t,r){e=Array.isArray(e)?e:[e];for(let i of e)(da[i]||=[])[t]=r;return e=e[0],function(i){let a;if(i!==void 0){if(r)i=r(i);return a=this[e](),a.color[t]=i,a}if(a=this[e]().color[t],r)a=r(a);return a}}function he(e){return function(t){return Math.max(0,Math.min(e,t))}}function pb(e){return Array.isArray(e)?e:[e]}function ma(e,t){for(let r=0;r<t;r++)if(typeof e[r]!=="number")e[r]=0;return e}function yb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _b=function(t){for(var r=0,i=0;r<t.length;i=t.charCodeAt(r++)+((i<<5)-i));var a=Math.floor(Math.abs(Math.sin(i)*1e4%1*16777216)).toString(16);return"#"+Array(6-a.length+1).join("0")+a},sc=yb(_b);function wb(e,t){let r=e.split(t||":"),i=sc(r[0]);if(!r.length)return i;for(let a=0,u=r.length-1;a<u;a++)i=de(i).mix(de(sc(r[a+1]))).saturate(1).hex();return i}lc.exports=wb});var hc=b(function(ax,cc){function $e(e,t){if(t)return new $e(e).style(t);if(!(this instanceof $e))return new $e(e);this.text=e}$e.prototype.prefix="\x1B[";$e.prototype.suffix="m";$e.prototype.hex=function(t){if(t=t[0]==="#"?t.substring(1):t,t.length===3)t=t.split(""),t[5]=t[2],t[4]=t[2],t[3]=t[1],t[2]=t[1],t[1]=t[0],t=t.join("");var r=t.substring(0,2),i=t.substring(2,4),a=t.substring(4,6);return[parseInt(r,16),parseInt(i,16),parseInt(a,16)]};$e.prototype.rgb=function(t,r,i){var a=t/255*5,u=r/255*5,f=i/255*5;return this.ansi(a,u,f)};$e.prototype.ansi=function(t,r,i){var a=Math.round(t),u=Math.round(r),f=Math.round(i);return 16+a*36+u*6+f};$e.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};$e.prototype.style=function(t){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(t))+this.suffix+this.text+this.reset()};cc.exports=$e});var mc=b(function(ox,dc){var bb=fc(),vb=hc();dc.exports=function(t,r){var i=r.namespace,a=r.colors!==!1?vb(i+":",bb(i)):i+":";return t[0]=a+" "+t[0],t}});var pc=b(function(ux,gc){gc.exports=function(t,r){if(!r)return!1;var i=r.split(/[\s,]+/),a=0;for(;a<i.length;a++){if(r=i[a].replace("*",".*?"),r.charAt(0)==="-"){if(new RegExp("^"+r.substr(1)+"$").test(t))return!1;continue}if(new RegExp("^"+r+"$").test(t))return!0}return!1}});var _c=b(function(lx,yc){var Sb=pc();yc.exports=function(t){return function(i){try{return Sb(i,t())}catch(a){}return!1}}});var bc=b(function(fx,wc){var xb=_c();wc.exports=xb(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Sc=b(function(cx,vc){vc.exports=function(e,t){try{Function.prototype.apply.call(console.log,console,t)}catch(r){}}});var nn=b(function(hx,xc){var Mb=ic(),Eb=j("tty").isatty(1),oi=Mb(function e(t,r){if(r=r||{},r.colors="colors"in r?r.colors:Eb,r.namespace=t,r.prod=!1,r.dev=!0,!e.enabled(t)&&!(r.force||e.force))return e.nope(r);return e.yep(r)});oi.modify(mc());oi.use(bc());oi.set(Sc());xc.exports=oi});var Ec=b(function(dx,Mc){var ga=j("fs"),{StringDecoder:Ob}=j("string_decoder"),{Stream:kb}=$t();function Db(){}Mc.exports=(e,t)=>{let r=Buffer.alloc(65536),i=new Ob("utf8"),a=new kb,u="",f=0,c=0;if(e.start===-1)delete e.start;if(a.readable=!0,a.destroy=()=>{a.destroyed=!0,a.emit("end"),a.emit("close")},ga.open(e.file,"a+","0644",(d,g)=>{if(d){if(!t)a.emit("error",d);else t(d);a.destroy();return}(function v(){if(a.destroyed){ga.close(g,Db);return}return ga.read(g,r,0,r.length,f,(_,w)=>{if(_){if(!t)a.emit("error",_);else t(_);a.destroy();return}if(!w){if(u){if(e.start==null||c>e.start)if(!t)a.emit("line",u);else t(null,u);c++,u=""}return setTimeout(v,1000)}let E=i.write(r.slice(0,w));if(!t)a.emit("data",E);E=(u+E).split(/\n+/);let p=E.length-1,M=0;for(;M<p;M++){if(e.start==null||c>e.start)if(!t)a.emit("line",E[M]);else t(null,E[M]);c++}return u=E[p],f+=w,v()})})()}),!t)return a;return a.destroy}});var Rc=b(function(mx,Dc){var Te=j("fs"),ye=j("path"),Oc=zf(),Rb=j("zlib"),{MESSAGE:Tb}=oe(),{Stream:Nb,PassThrough:kc}=$t(),Lb=It(),He=nn()("winston:file"),Pb=j("os"),Ab=Ec();Dc.exports=class extends Lb{constructor(t={}){super(t);this.name=t.name||"file";function r(i,...a){a.slice(1).forEach((u)=>{if(t[u])throw Error(`Cannot set ${u} and ${i} together`)})}if(this._stream=new kc,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),t.filename||t.dirname)r("filename or dirname","stream"),this._basename=this.filename=t.filename?ye.basename(t.filename):"winston.log",this.dirname=t.dirname||ye.dirname(t.filename),this.options=t.options||{flags:"a"};else if(t.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),r("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(t.stream)),this.dirname=ye.dirname(this._dest.path);else throw Error("Cannot log to file without filename or stream.");if(this.maxsize=t.maxsize||null,this.rotationFormat=t.rotationFormat||!1,this.zippedArchive=t.zippedArchive||!1,this.maxFiles=t.maxFiles||null,this.eol=typeof t.eol==="string"?t.eol:Pb.EOL,this.tailable=t.tailable||!1,this.lazy=t.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(t){if(this._opening){this.once("open",()=>this._final(t));return}if(this._stream.end(),!this._dest)return t();if(this._dest.writableFinished)return t();this._dest.once("finish",t),this._dest.once("error",t)}log(t,r=()=>{}){if(this.silent)return r(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(t,r)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(t,r)});return}if(this.lazy){if(!this._fileExist){if(!this._opening)this.open();this.once("open",()=>{this._fileExist=!0,this.log(t,r);return});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{if(!this._opening)this.open();this.once("open",()=>{this.log(t,r);return});return});return}}let i=`${t[Tb]}${this.eol}`,a=Buffer.byteLength(i);function u(){if(this._size+=a,this._pendingSize-=a,He("logged %s %s",this._size,i),this.emit("logged",t),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+=a,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize))this.rotatedWhileOpening=!0;let f=this._stream.write(i,u.bind(this));if(!f)this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,r()});else r();return He("written",f,this._drain),this.finishIfEnding(),f}query(t,r){if(typeof t==="function")r=t,t={};t=_(t);let i=ye.join(this.dirname,this.filename),a="",u=[],f=0,c=Te.createReadStream(i,{encoding:"utf8"});c.on("error",(w)=>{if(c.readable)c.destroy();if(!r)return;return w.code!=="ENOENT"?r(w):r(null,u)}),c.on("data",(w)=>{w=(a+w).split(/\n+/);let E=w.length-1,p=0;for(;p<E;p++){if(!t.start||f>=t.start)d(w[p]);f++}a=w[E]}),c.on("close",()=>{if(a)d(a,!0);if(t.order==="desc")u=u.reverse();if(r)r(null,u)});function d(w,E){try{let p=JSON.parse(w);if(v(p))g(p)}catch(p){if(!E)c.emit("error",p)}}function g(w){if(t.rows&&u.length>=t.rows&&t.order!=="desc"){if(c.readable)c.destroy();return}if(t.fields)w=t.fields.reduce((E,p)=>(E[p]=w[p],E),{});if(t.order==="desc"){if(u.length>=t.rows)u.shift()}u.push(w)}function v(w){if(!w)return;if(typeof w!=="object")return;let E=new Date(w.timestamp);if(t.from&&E<t.from||t.until&&E>t.until||t.level&&t.level!==w.level)return;return!0}function _(w){if(w=w||{},w.rows=w.rows||w.limit||10,w.start=w.start||0,w.until=w.until||new Date,typeof w.until!=="object")w.until=new Date(w.until);if(w.from=w.from||w.until-86400000,typeof w.from!=="object")w.from=new Date(w.from);return w.order=w.order||"desc",w}}stream(t={}){let r=ye.join(this.dirname,this.filename),i=new Nb,a={file:r,start:t.start};return i.destroy=Ab(a,(u,f)=>{if(u)return i.emit("error",u);try{i.emit("data",f),f=JSON.parse(f),i.emit("log",f)}catch(c){i.emit("error",c)}}),i}open(){if(!this.filename)return;if(this._opening)return;this._opening=!0,this.stat((t,r)=>{if(t)return this.emit("error",t);He("stat done: %s { size: %s }",this.filename,r),this._size=r,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{if(!this._stream.emit("rotate"))this._rotate=!1})})}stat(t){let r=this._getFile(),i=ye.join(this.dirname,r);Te.stat(i,(a,u)=>{if(a&&a.code==="ENOENT")return He("ENOENT\xA0ok",i),this.filename=r,t(null,0);if(a)return He(`err ${a.code} ${i}`),t(a);if(!u||this._needsNewFile(u.size))return this._incFile(()=>this.stat(t));this.filename=r,t(null,u.size)})}close(t){if(!this._stream)return;this._stream.end(()=>{if(t)t();this.emit("flush"),this.emit("closed")})}_needsNewFile(t){return t=t||this._size,this.maxsize&&t>=this.maxsize}_onError(t){this.emit("error",t)}_setupStream(t){return t.on("error",this._onError),t}_cleanupStream(t){return t.removeListener("error",this._onError),t.destroy(),t}_rotateFile(){this._incFile(()=>this.open())}_endStream(t=()=>{}){if(this._dest)this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),t()});else t()}_createStream(t){let r=ye.join(this.dirname,this.filename);He("create stream start",r,this.options);let i=Te.createWriteStream(r,this.options).on("error",(a)=>He(a)).on("close",()=>He("close",i.path,i.bytesWritten)).on("open",()=>{if(He("file open ok",r),this.emit("open",r),t.pipe(i),this.rotatedWhileOpening)this._stream=new kc,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),t.end()});return He("create stream ok",r),i}_incFile(t){He("_incFile",this.filename);let r=ye.extname(this._basename),i=ye.basename(this._basename,r),a=[];if(this.zippedArchive)a.push(function(u){let f=this._created>0&&!this.tailable?this._created:"";this._compressFile(ye.join(this.dirname,`${i}${f}${r}`),ye.join(this.dirname,`${i}${f}${r}.gz`),u)}.bind(this));a.push(function(u){if(!this.tailable)this._created+=1,this._checkMaxFilesIncrementing(r,i,u);else this._checkMaxFilesTailable(r,i,u)}.bind(this)),Oc(a,t)}_getFile(){let t=ye.extname(this._basename),r=ye.basename(this._basename,t),i=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${r}${i}${t}`:`${r}${t}`}_checkMaxFilesIncrementing(t,r,i){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(i);let a=this._created-this.maxFiles,u=a!==0?a:"",f=this.zippedArchive?".gz":"",c=`${r}${u}${t}${f}`,d=ye.join(this.dirname,c);Te.unlink(d,i)}_checkMaxFilesTailable(t,r,i){let a=[];if(!this.maxFiles)return;let u=this.zippedArchive?".gz":"";for(let f=this.maxFiles-1;f>1;f--)a.push(function(c,d){let g=`${r}${c-1}${t}${u}`,v=ye.join(this.dirname,g);Te.exists(v,(_)=>{if(!_)return d(null);g=`${r}${c}${t}${u}`,Te.rename(v,ye.join(this.dirname,g),d)})}.bind(this,f));Oc(a,()=>{Te.rename(ye.join(this.dirname,`${r}${t}${u}`),ye.join(this.dirname,`${r}1${t}${u}`),i)})}_compressFile(t,r,i){Te.access(t,Te.F_OK,(a)=>{if(a)return i();var u=Rb.createGzip(),f=Te.createReadStream(t),c=Te.createWriteStream(r);c.on("finish",()=>{Te.unlink(t,i)}),f.pipe(u).pipe(c)})}_createLogDirIfNotExist(t){if(!Te.existsSync(t))Te.mkdirSync(t,{recursive:!0})}}});var Nc=b(function(gx,Tc){var qb=j("http"),Yb=j("https"),{Stream:Fb}=$t(),Cb=It(),{configure:jb}=jr();Tc.exports=class extends Cb{constructor(t={}){super(t);if(this.options=t,this.name=t.name||"http",this.ssl=!!t.ssl,this.host=t.host||"localhost",this.port=t.port,this.auth=t.auth,this.path=t.path||"",this.maximumDepth=t.maximumDepth,this.agent=t.agent,this.headers=t.headers||{},this.headers["content-type"]="application/json",this.batch=t.batch||!1,this.batchInterval=t.batchInterval||5000,this.batchCount=t.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},!this.port)this.port=this.ssl?443:80}log(t,r){if(this._request(t,null,null,(i,a)=>{if(a&&a.statusCode!==200)i=Error(`Invalid HTTP Status Code: ${a.statusCode}`);if(i)this.emit("warn",i);else this.emit("logged",t)}),r)setImmediate(r)}query(t,r){if(typeof t==="function")r=t,t={};t={method:"query",params:this.normalizeQuery(t)};let i=t.params.auth||null;delete t.params.auth;let a=t.params.path||null;delete t.params.path,this._request(t,i,a,(u,f,c)=>{if(f&&f.statusCode!==200)u=Error(`Invalid HTTP Status Code: ${f.statusCode}`);if(u)return r(u);if(typeof c==="string")try{c=JSON.parse(c)}catch(d){return r(d)}r(null,c)})}stream(t={}){let r=new Fb;t={method:"stream",params:t};let i=t.params.path||null;delete t.params.path;let a=t.params.auth||null;delete t.params.auth;let u="",f=this._request(t,a,i);return r.destroy=()=>f.destroy(),f.on("data",(c)=>{c=(u+c).split(/\n+/);let d=c.length-1,g=0;for(;g<d;g++)try{r.emit("log",JSON.parse(c[g]))}catch(v){r.emit("error",v)}u=c[d]}),f.on("error",(c)=>r.emit("error",c)),r}_request(t,r,i,a){if(t=t||{},r=r||this.auth,i=i||this.path||"",this.batch)this._doBatch(t,a,r,i);else this._doRequest(t,a,r,i)}_doBatch(t,r,i,a){if(this.batchOptions.push(t),this.batchOptions.length===1){let u=this;this.batchCallback=r,this.batchTimeoutID=setTimeout(function(){u.batchTimeoutID=-1,u._doBatchRequest(u.batchCallback,i,a)},this.batchInterval)}if(this.batchOptions.length===this.batchCount)this._doBatchRequest(this.batchCallback,i,a)}_doBatchRequest(t,r,i){if(this.batchTimeoutID>0)clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1;let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,t,r,i)}_doRequest(t,r,i,a){let u=Object.assign({},this.headers);if(i&&i.bearer)u.Authorization=`Bearer ${i.bearer}`;let f=(this.ssl?Yb:qb).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:u,auth:i&&i.username&&i.password?`${i.username}:${i.password}`:"",agent:this.agent});f.on("error",r),f.on("response",(d)=>d.on("end",()=>r(null,d)).resume());let c=jb({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});f.end(Buffer.from(c(t,this.options.replacer),"utf8"))}}});var pa=b(function(px,Lc){var Ke=(e)=>e!==null&&typeof e==="object"&&typeof e.pipe==="function";Ke.writable=(e)=>Ke(e)&&e.writable!==!1&&typeof e._write==="function"&&typeof e._writableState==="object";Ke.readable=(e)=>Ke(e)&&e.readable!==!1&&typeof e._read==="function"&&typeof e._readableState==="object";Ke.duplex=(e)=>Ke.writable(e)&&Ke.readable(e);Ke.transform=(e)=>Ke.duplex(e)&&typeof e._transform==="function";Lc.exports=Ke});var Ac=b(function(yx,Pc){var Ib=pa(),{MESSAGE:Wb}=oe(),$b=j("os"),Hb=It();Pc.exports=class extends Hb{constructor(t={}){super(t);if(!t.stream||!Ib(t.stream))throw Error("options.stream is required.");this._stream=t.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=t.stream._writableState.objectMode,this.eol=typeof t.eol==="string"?t.eol:$b.EOL}log(t,r){if(setImmediate(()=>this.emit("logged",t)),this.isObjectMode){if(this._stream.write(t),r)r();return}if(this._stream.write(`${t[Wb]}${this.eol}`),r)r();return}}});var qc=b(function(sn){Object.defineProperty(sn,"Console",{configurable:!0,enumerable:!0,get(){return af()}});Object.defineProperty(sn,"File",{configurable:!0,enumerable:!0,get(){return Rc()}});Object.defineProperty(sn,"Http",{configurable:!0,enumerable:!0,get(){return Nc()}});Object.defineProperty(sn,"Stream",{configurable:!0,enumerable:!0,get(){return Ac()}})});var li=b(function(Ub){var ui=os(),{configs:ya}=oe();Ub.cli=ui.levels(ya.cli);Ub.npm=ui.levels(ya.npm);Ub.syslog=ui.levels(ya.syslog);Ub.addColors=ui.levels});var Fc=b(function(_a,Yc){Object.defineProperty(_a,"__esModule",{value:!0});var Zb=ri(),Jb=Ht(Zb),Kb=ni(),Qb=Ht(Kb),Xb=ta(),ev=Ht(Xb),tv=zs(),rv=Ht(tv),nv=Zs(),iv=Ht(nv),sv=Wt(),av=Ht(sv),ov=yr(),uv=Ht(ov);function Ht(e){return e&&e.__esModule?e:{default:e}}function lv(e,t,r){r=(0,rv.default)(r);var i=0,a=0,{length:u}=e,f=!1;if(u===0)r(null);function c(d,g){if(d===!1)f=!0;if(f===!0)return;if(d)r(d);else if(++a===u||g===Qb.default)r(null)}for(;i<u;i++)t(e[i],i,(0,iv.default)(c))}function fv(e,t,r){return(0,ev.default)(e,1/0,t,r)}function cv(e,t,r){var i=(0,Jb.default)(e)?lv:fv;return i(e,(0,av.default)(t),r)}_a.default=(0,uv.default)(cv,3);Yc.exports=_a.default});var jc=b(function(wa,Cc){Object.defineProperty(wa,"__esModule",{value:!0});wa.default=dv;function dv(e){return(t,r,i)=>e(t,i)}Cc.exports=wa.default});var ci=b(function(ba,Ic){Object.defineProperty(ba,"__esModule",{value:!0});var gv=Fc(),pv=fi(gv),yv=jc(),_v=fi(yv),wv=Wt(),bv=fi(wv),vv=yr(),Sv=fi(vv);function fi(e){return e&&e.__esModule?e:{default:e}}function xv(e,t,r){return(0,pv.default)(e,(0,_v.default)((0,bv.default)(t)),r)}ba.default=(0,Sv.default)(xv,3);Ic.exports=ba.default});var $c=b(function(bx,Wc){var Ev=Object.prototype.toString;Wc.exports=function(t){if(typeof t.displayName==="string"&&t.constructor.name)return t.displayName;else if(typeof t.name==="string"&&t.name)return t.name;if(typeof t==="object"&&t.constructor&&typeof t.constructor.name==="string")return t.constructor.name;var r=t.toString(),i=Ev.call(t).slice(8,-1);if(i==="Function")r=r.substring(r.indexOf("(")+1,r.indexOf(")"));else r=i;return r||"anonymous"}});var va=b(function(vx,Hc){var Ov=$c();Hc.exports=function(t){var r=0,i;function a(){if(r)return i;return r=1,i=t.apply(this,arguments),t=null,i}return a.displayName=Ov(t),a}});var Sa=b(function(Rv){Rv.get=function(e){var t=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(u,f){return f},Error.captureStackTrace(r,e||Rv.get);var a=r.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=t,a};Rv.parse=function(e){if(!e.stack)return[];var t=this,r=e.stack.split(`
|
|
28
|
+
`).slice(1);return r.map(function(i){if(i.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:i,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=i.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(!a)return;var u=null,f=null,c=null,d=null,g=null,v=a[5]==="native";if(a[1]){c=a[1];var _=c.lastIndexOf(".");if(c[_-1]==".")_--;if(_>0){u=c.substr(0,_),f=c.substr(_+1);var w=u.indexOf(".Module");if(w>0)c=c.substr(w+1),u=u.substr(0,w)}d=null}if(f)d=u,g=f;if(f==="<anonymous>")g=null,c=null;var E={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:c,typeName:d,methodName:g,columnNumber:parseInt(a[4],10)||null,native:v};return t._createParsedCallSite(E)}).filter(function(i){return!!i})};function an(e){for(var t in e)this[t]=e[t]}var kv=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],Dv=["topLevel","eval","native","constructor"];kv.forEach(function(e){an.prototype[e]=null,an.prototype["get"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}});Dv.forEach(function(e){an.prototype[e]=!1,an.prototype["is"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}});Rv._createParsedCallSite=function(e){return new an(e)}});var Gc=b(function(xx,zc){var{Writable:Lv}=$t();zc.exports=class extends Lv{constructor(t){super({objectMode:!0});if(!t)throw Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=t}_write(t,r,i){if(t.exception)return this.transport.log(t,i);return i(),!0}}});var Ma=b(function(Mx,Zc){var Vc=j("os"),Pv=ci(),xa=nn()("winston:exception"),Av=va(),Bc=Sa(),qv=Gc();Zc.exports=class{constructor(t){if(!t)throw Error("Logger is required to handle exceptions");this.logger=t,this.handlers=new Map}handle(...t){if(t.forEach((r)=>{if(Array.isArray(r))return r.forEach((i)=>this._addHandler(i));this._addHandler(r)}),!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((t)=>this.logger.unpipe(t))}getAllInfo(t){let r=null;if(t)r=typeof t==="string"?t:t.message;return{error:t,level:"error",message:[`uncaughtException: ${r||"(no error message)"}`,t&&t.stack||" No stack trace"].join(`
|
|
29
|
+
`),stack:t&&t.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(t)}}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:Vc.loadavg(),uptime:Vc.uptime()}}getTrace(t){return(t?Bc.parse(t):Bc.get()).map((i)=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(t){if(!this.handlers.has(t)){t.handleExceptions=!0;let r=new qv(t);this.handlers.set(t,r),this.logger.pipe(r)}}_uncaughtException(t){let r=this.getAllInfo(t),i=this._getExceptionHandlers(),a=typeof this.logger.exitOnError==="function"?this.logger.exitOnError(t):this.logger.exitOnError,u;if(!i.length&&a)console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1;function f(){if(xa("doExit",a),xa("process._exiting",process._exiting),a&&!process._exiting){if(u)clearTimeout(u);process.exit(1)}}if(!i||i.length===0)return process.nextTick(f);if(Pv(i,(c,d)=>{let g=Av(d),v=c.transport||c;function _(w){return()=>{xa(w),g()}}v._ending=!0,v.once("finish",_("finished")),v.once("error",_("error"))},()=>a&&f()),this.logger.log(r),a)u=setTimeout(f,3000)}_getExceptionHandlers(){return this.logger.transports.filter((t)=>(t.transport||t).handleExceptions)}}});var Kc=b(function(Ex,Jc){var{Writable:Yv}=$t();Jc.exports=class extends Yv{constructor(t){super({objectMode:!0});if(!t)throw Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=t}_write(t,r,i){if(t.rejection)return this.transport.log(t,i);return i(),!0}}});var Oa=b(function(Ox,eh){var Qc=j("os"),Fv=ci(),Ea=nn()("winston:rejection"),Cv=va(),Xc=Sa(),jv=Kc();eh.exports=class{constructor(t){if(!t)throw Error("Logger is required to handle rejections");this.logger=t,this.handlers=new Map}handle(...t){if(t.forEach((r)=>{if(Array.isArray(r))return r.forEach((i)=>this._addHandler(i));this._addHandler(r)}),!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((t)=>this.logger.unpipe(t))}getAllInfo(t){let r=null;if(t)r=typeof t==="string"?t:t.message;return{error:t,level:"error",message:[`unhandledRejection: ${r||"(no error message)"}`,t&&t.stack||" No stack trace"].join(`
|
|
30
|
+
`),stack:t&&t.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(t)}}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:Qc.loadavg(),uptime:Qc.uptime()}}getTrace(t){return(t?Xc.parse(t):Xc.get()).map((i)=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(t){if(!this.handlers.has(t)){t.handleRejections=!0;let r=new jv(t);this.handlers.set(t,r),this.logger.pipe(r)}}_unhandledRejection(t){let r=this.getAllInfo(t),i=this._getRejectionHandlers(),a=typeof this.logger.exitOnError==="function"?this.logger.exitOnError(t):this.logger.exitOnError,u;if(!i.length&&a)console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1;function f(){if(Ea("doExit",a),Ea("process._exiting",process._exiting),a&&!process._exiting){if(u)clearTimeout(u);process.exit(1)}}if(!i||i.length===0)return process.nextTick(f);if(Fv(i,(c,d)=>{let g=Cv(d),v=c.transport||c;function _(w){return()=>{Ea(w),g()}}v._ending=!0,v.once("finish",_("finished")),v.once("error",_("error"))},()=>a&&f()),this.logger.log(r),a)u=setTimeout(f,3000)}_getRejectionHandlers(){return this.logger.transports.filter((t)=>(t.transport||t).handleRejections)}}});var nh=b(function(kx,rh){class th{constructor(e){let t=hi();if(typeof e!=="object"||Array.isArray(e)||!(e instanceof t))throw Error("Logger is required for profiling");else this.logger=e,this.start=Date.now()}done(...e){if(typeof e[e.length-1]==="function")console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop();let t=typeof e[e.length-1]==="object"?e.pop():{};return t.level=t.level||"info",t.durationMs=Date.now()-this.start,this.logger.write(t)}}rh.exports=th});var hi=b(function(Dx,oh){var{Stream:Iv,Transform:Wv}=$t(),ih=ci(),{LEVEL:Qe,SPLAT:sh}=oe(),ah=pa(),$v=Ma(),Hv=Oa(),Uv=Ys(),zv=nh(),{warn:Gv}=ls(),Vv=li(),Bv=/%[scdjifoO%]/g;class ka extends Wv{constructor(e){super({objectMode:!0});this.configure(e)}child(e){let t=this;return Object.create(t,{write:{value:function(r){let i=Object.assign({},e,r);if(r instanceof Error)i.stack=r.stack,i.message=r.message,i.cause=r.cause;t.write(i)}}})}configure({silent:e,format:t,defaultMeta:r,levels:i,level:a="info",exitOnError:u=!0,transports:f,colors:c,emitErrs:d,formatters:g,padLevels:v,rewriters:_,stripColors:w,exceptionHandlers:E,rejectionHandlers:p}={}){if(this.transports.length)this.clear();if(this.silent=e,this.format=t||this.format||ns()(),this.defaultMeta=r||null,this.levels=i||this.levels||Vv.npm.levels,this.level=a,this.exceptions)this.exceptions.unhandle();if(this.rejections)this.rejections.unhandle();if(this.exceptions=new $v(this),this.rejections=new Hv(this),this.profilers={},this.exitOnError=u,f)f=Array.isArray(f)?f:[f],f.forEach((M)=>this.add(M));if(c||d||g||v||_||w)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(E)this.exceptions.handle(E);if(p)this.rejections.handle(p)}getHighestLogLevel(){let e=on(this.levels,this.level);if(!this.transports||this.transports.length===0)return e;return this.transports.reduce((t,r)=>{let i=on(this.levels,r.level);return i!==null&&i>t?i:t},e)}isLevelEnabled(e){let t=on(this.levels,e);if(t===null)return!1;let r=on(this.levels,this.level);if(r===null)return!1;if(!this.transports||this.transports.length===0)return r>=t;return this.transports.findIndex((a)=>{let u=on(this.levels,a.level);if(u===null)u=r;return u>=t})!==-1}log(e,t,...r){if(arguments.length===1)return e[Qe]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2){if(t&&typeof t==="object")return t[Qe]=t.level=e,this._addDefaultMeta(t),this.write(t),this;return t={[Qe]:e,level:e,message:t},this._addDefaultMeta(t),this.write(t),this}let[i]=r;if(typeof i==="object"&&i!==null){if(!(t&&t.match&&t.match(Bv))){let u=Object.assign({},this.defaultMeta,i,{[Qe]:e,[sh]:r,level:e,message:t});if(i.message)u.message=`${u.message} ${i.message}`;if(i.stack)u.stack=i.stack;if(i.cause)u.cause=i.cause;return this.write(u),this}}return this.write(Object.assign({},this.defaultMeta,{[Qe]:e,[sh]:r,level:e,message:t})),this}_transform(e,t,r){if(this.silent)return r();if(!e[Qe])e[Qe]=e.level;if(!this.levels[e[Qe]]&&this.levels[e[Qe]]!==0)console.error("[winston] Unknown logger level: %s",e[Qe]);if(!this._readableState.pipes)console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,r()}}_final(e){let t=this.transports.slice();ih(t,(r,i)=>{if(!r||r.finished)return setImmediate(i);r.once("finish",i),r.end()},e)}add(e){let t=!ah(e)||e.log.length>2?new Uv({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");if(this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions)this.exceptions.handle();if(e.handleRejections)this.rejections.handle();return this}remove(e){if(!e)return this;let t=e;if(!ah(e)||e.log.length>2)t=this.transports.filter((r)=>r.transport===e)[0];if(t)this.unpipe(t);return this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){Gv.deprecated("setLevels")}query(e,t){if(typeof e==="function")t=e,e={};e=e||{};let r={},i=Object.assign({},e.query||{});function a(f,c){if(e.query&&typeof f.formatQuery==="function")e.query=f.formatQuery(i);f.query(e,(d,g)=>{if(d)return c(d);if(typeof f.formatResults==="function")g=f.formatResults(g,e.format);c(null,g)})}function u(f,c){a(f,(d,g)=>{if(c){if(g=d||g,g)r[f.name]=g;c()}c=null})}ih(this.transports.filter((f)=>!!f.query),u,()=>t(null,r))}stream(e={}){let t=new Iv,r=[];return t._streams=r,t.destroy=()=>{let i=r.length;while(i--)r[i].destroy()},this.transports.filter((i)=>!!i.stream).forEach((i)=>{let a=i.stream(e);if(!a)return;r.push(a),a.on("log",(u)=>{u.transport=u.transport||[],u.transport.push(i.name),t.emit("log",u)}),a.on("error",(u)=>{u.transport=u.transport||[],u.transport.push(i.name),t.emit("error",u)})}),t}startTimer(){return new zv(this)}profile(e,...t){let r=Date.now();if(this.profilers[e]){let i=this.profilers[e];if(delete this.profilers[e],typeof t[t.length-2]==="function")console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop();let a=typeof t[t.length-1]==="object"?t.pop():{};return a.level=a.level||"info",a.durationMs=r-i,a.message=a.message||e,this.write(a)}return this.profilers[e]=r,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
32
|
+
`))}_onEvent(e,t){function r(i){if(e==="error"&&!this.transports.includes(t))this.add(t);this.emit(e,i,t)}if(!t["__winston"+e])t["__winston"+e]=r.bind(this),t.on(e,t["__winston"+e])}_addDefaultMeta(e){if(this.defaultMeta)Object.assign(e,this.defaultMeta)}}function on(e,t){let r=e[t];if(!r&&r!==0)return null;return r}Object.defineProperty(ka.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:e}=this._readableState;return!Array.isArray(e)?[e].filter(Boolean):e}});oh.exports=ka});var Da=b(function(Rx,uh){var{LEVEL:Zv}=oe(),Jv=li(),Kv=hi(),Qv=nn()("winston:create-logger");function Xv(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}uh.exports=function(e={}){e.levels=e.levels||Jv.npm.levels;class t extends Kv{constructor(i){super(i)}}let r=new t(e);return Object.keys(e.levels).forEach(function(i){if(Qv('Define prototype method for "%s"',i),i==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}t.prototype[i]=function(...a){let u=this||r;if(a.length===1){let[f]=a,c=f&&f.message&&f||{message:f};return c.level=c[Zv]=i,u._addDefaultMeta(c),u.write(c),this||r}if(a.length===0)return u.log(i,""),u;return u.log(i,...a)},t.prototype[Xv(i)]=function(){return(this||r).isLevelEnabled(i)}}),r}});var fh=b(function(Tx,lh){var eS=Da();lh.exports=class{constructor(t={}){this.loggers=new Map,this.options=t}add(t,r){if(!this.loggers.has(t)){r=Object.assign({},r||this.options);let i=r.transports||this.options.transports;if(i)r.transports=Array.isArray(i)?i.slice():[i];else r.transports=[];let a=eS(r);a.on("close",()=>this._delete(t)),this.loggers.set(t,a)}return this.loggers.get(t)}get(t,r){return this.add(t,r)}has(t){return!!this.loggers.has(t)}close(t){if(t)return this._removeLogger(t);this.loggers.forEach((r,i)=>this._removeLogger(i))}_removeLogger(t){if(!this.loggers.has(t))return;this.loggers.get(t).close(),this._delete(t)}_delete(t){this.loggers.delete(t)}}});var Ra=b(function(Pe){var ch=os(),{warn:un}=ls();Pe.version=sl().version;Pe.transports=qc();Pe.config=li();Pe.addColors=ch.levels;Pe.format=ch.format;Pe.createLogger=Da();Pe.Logger=hi();Pe.ExceptionHandler=Ma();Pe.RejectionHandler=Oa();Pe.Container=fh();Pe.Transport=It();Pe.loggers=new Pe.Container;var Xe=Pe.createLogger();Object.keys(Pe.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach((e)=>Pe[e]=(...t)=>Xe[e](...t));Object.defineProperty(Pe,"level",{get(){return Xe.level},set(e){Xe.level=e}});Object.defineProperty(Pe,"exceptions",{get(){return Xe.exceptions}});Object.defineProperty(Pe,"rejections",{get(){return Xe.rejections}});["exitOnError"].forEach((e)=>{Object.defineProperty(Pe,e,{get(){return Xe[e]},set(t){Xe[e]=t}})});Object.defineProperty(Pe,"default",{get(){return{exceptionHandlers:Xe.exceptionHandlers,rejectionHandlers:Xe.rejectionHandlers,transports:Xe.transports}}});un.deprecated(Pe,"setLevels");un.forFunctions(Pe,"useFormat",["cli"]);un.forProperties(Pe,"useFormat",["padLevels","stripColors"]);un.forFunctions(Pe,"deprecated",["addRewriter","addFilter","clone","extend"]);un.forProperties(Pe,"deprecated",["emitErrs","levelLength"])});var bh=b(function(Ut,wh){var Ta=j("crypto");Ut=wh.exports=ln;function ln(e,t){return t=yh(e,t),fS(e,t)}Ut.sha1=function(e){return ln(e)};Ut.keys=function(e){return ln(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})};Ut.MD5=function(e){return ln(e,{algorithm:"md5",encoding:"hex"})};Ut.keysMD5=function(e){return ln(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var vr=Ta.getHashes?Ta.getHashes().slice():["sha1","md5"];vr.push("passthrough");var gh=["buffer","hex","binary","base64"];function yh(e,t){t=t||{};var r={};if(r.algorithm=t.algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=t.excludeValues?!0:!1,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=t.ignoreUnknown!==!0?!1:!0,r.respectType=t.respectType===!1?!1:!0,r.respectFunctionNames=t.respectFunctionNames===!1?!1:!0,r.respectFunctionProperties=t.respectFunctionProperties===!1?!1:!0,r.unorderedArrays=t.unorderedArrays!==!0?!1:!0,r.unorderedSets=t.unorderedSets===!1?!1:!0,r.unorderedObjects=t.unorderedObjects===!1?!1:!0,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,typeof e>"u")throw Error("Object argument required.");for(var i=0;i<vr.length;++i)if(vr[i].toLowerCase()===r.algorithm.toLowerCase())r.algorithm=vr[i];if(vr.indexOf(r.algorithm)===-1)throw Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+vr.join(", "));if(gh.indexOf(r.encoding)===-1&&r.algorithm!=="passthrough")throw Error('Encoding "'+r.encoding+'" not supported. supported values: '+gh.join(", "));return r}function ph(e){if(typeof e!=="function")return!1;var t=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;return t.exec(Function.prototype.toString.call(e))!=null}function fS(e,t){var r;if(t.algorithm!=="passthrough")r=Ta.createHash(t.algorithm);else r=new _h;if(typeof r.write>"u")r.write=r.update,r.end=r.update;var i=Na(t,r);if(i.dispatch(e),!r.update)r.end("");if(r.digest)return r.digest(t.encoding==="buffer"?void 0:t.encoding);var a=r.read();if(t.encoding==="buffer")return a;return a.toString(t.encoding)}Ut.writeToStream=function(e,t,r){if(typeof r>"u")r=t,t={};return t=yh(e,t),Na(t,r).dispatch(e)};function Na(e,t,r){r=r||[];var i=function(a){if(t.update)return t.update(a,"utf8");else return t.write(a,"utf8")};return{dispatch:function(a){if(e.replacer)a=e.replacer(a);var u=typeof a;if(a===null)u="null";return this["_"+u](a)},_object:function(a){var u=/\[object (.*)\]/i,f=Object.prototype.toString.call(a),c=u.exec(f);if(!c)c="unknown:["+f+"]";else c=c[1];c=c.toLowerCase();var d=null;if((d=r.indexOf(a))>=0)return this.dispatch("[CIRCULAR:"+d+"]");else r.push(a);if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(a))return i("buffer:"),i(a);if(c!=="object"&&c!=="function"&&c!=="asyncfunction")if(this["_"+c])this["_"+c](a);else if(e.ignoreUnknown)return i("["+c+"]");else throw Error('Unknown object type "'+c+'"');else{var g=Object.keys(a);if(e.unorderedObjects)g=g.sort();if(e.respectType!==!1&&!ph(a))g.splice(0,0,"prototype","__proto__","constructor");if(e.excludeKeys)g=g.filter(function(_){return!e.excludeKeys(_)});i("object:"+g.length+":");var v=this;return g.forEach(function(_){if(v.dispatch(_),i(":"),!e.excludeValues)v.dispatch(a[_]);i(",")})}},_array:function(a,u){u=typeof u<"u"?u:e.unorderedArrays!==!1;var f=this;if(i("array:"+a.length+":"),!u||a.length<=1)return a.forEach(function(g){return f.dispatch(g)});var c=[],d=a.map(function(g){var v=new _h,_=r.slice(),w=Na(e,v,_);return w.dispatch(g),c=c.concat(_.slice(r.length)),v.read().toString()});return r=r.concat(c),d.sort(),this._array(d,!1)},_date:function(a){return i("date:"+a.toJSON())},_symbol:function(a){return i("symbol:"+a.toString())},_error:function(a){return i("error:"+a.toString())},_boolean:function(a){return i("bool:"+a.toString())},_string:function(a){i("string:"+a.length+":"),i(a.toString())},_function:function(a){if(i("fn:"),ph(a))this.dispatch("[native]");else this.dispatch(a.toString());if(e.respectFunctionNames!==!1)this.dispatch("function-name:"+String(a.name));if(e.respectFunctionProperties)this._object(a)},_number:function(a){return i("number:"+a.toString())},_xml:function(a){return i("xml:"+a.toString())},_null:function(){return i("Null")},_undefined:function(){return i("Undefined")},_regexp:function(a){return i("regex:"+a.toString())},_uint8array:function(a){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint8clampedarray:function(a){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(a))},_int8array:function(a){return i("int8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint16array:function(a){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(a))},_int16array:function(a){return i("int16array:"),this.dispatch(Array.prototype.slice.call(a))},_uint32array:function(a){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(a))},_int32array:function(a){return i("int32array:"),this.dispatch(Array.prototype.slice.call(a))},_float32array:function(a){return i("float32array:"),this.dispatch(Array.prototype.slice.call(a))},_float64array:function(a){return i("float64array:"),this.dispatch(Array.prototype.slice.call(a))},_arraybuffer:function(a){return i("arraybuffer:"),this.dispatch(new Uint8Array(a))},_url:function(a){return i("url:"+a.toString(),"utf8")},_map:function(a){i("map:");var u=Array.from(a);return this._array(u,e.unorderedSets!==!1)},_set:function(a){i("set:");var u=Array.from(a);return this._array(u,e.unorderedSets!==!1)},_file:function(a){return i("file:"),this.dispatch([a.name,a.size,a.type,a.lastModfied])},_blob:function(){if(e.ignoreUnknown)return i("[blob]");throw Error(`Hashing Blob objects is currently not supported
|
|
33
33
|
(see https://github.com/puleos/object-hash/issues/26)
|
|
34
34
|
Use "options.replacer" or "options.ignoreUnknown"
|
|
35
|
-
`)},_domwindow:function(){return
|
|
35
|
+
`)},_domwindow:function(){return i("domwindow")},_bigint:function(a){return i("bigint:"+a.toString())},_process:function(){return i("process")},_timer:function(){return i("timer")},_pipe:function(){return i("pipe")},_tcp:function(){return i("tcp")},_udp:function(){return i("udp")},_tty:function(){return i("tty")},_statwatcher:function(){return i("statwatcher")},_securecontext:function(){return i("securecontext")},_connection:function(){return i("connection")},_zlib:function(){return i("zlib")},_context:function(){return i("context")},_nodescript:function(){return i("nodescript")},_httpparser:function(){return i("httpparser")},_dataview:function(){return i("dataview")},_signal:function(){return i("signal")},_fsevent:function(){return i("fsevent")},_tlswrap:function(){return i("tlswrap")}}}function _h(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}});var vh=b(function(La,Sr){//! moment.js
|
|
36
36
|
//! version : 2.30.1
|
|
37
37
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
38
38
|
//! license : MIT
|
|
39
39
|
//! momentjs.com
|
|
40
|
-
(function(
|
|
41
|
-
[
|
|
42
|
-
Arguments: `+Array.prototype.slice.call(
|
|
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
|
|
40
|
+
(function(e,t){typeof La==="object"&&typeof Sr<"u"?Sr.exports=t():typeof define==="function"&&define.amd?define(t):e.moment=t()})(La,function(){var e;function t(){return e.apply(null,arguments)}function r(n){e=n}function i(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function a(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function u(n,s){return Object.prototype.hasOwnProperty.call(n,s)}function f(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;else{var s;for(s in n)if(u(n,s))return!1;return!0}}function c(n){return n===void 0}function d(n){return typeof n==="number"||Object.prototype.toString.call(n)==="[object Number]"}function g(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function v(n,s){var o=[],l,h=n.length;for(l=0;l<h;++l)o.push(s(n[l],l));return o}function _(n,s){for(var o in s)if(u(s,o))n[o]=s[o];if(u(s,"toString"))n.toString=s.toString;if(u(s,"valueOf"))n.valueOf=s.valueOf;return n}function w(n,s,o,l){return ro(n,s,o,l,!0).utc()}function E(){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 p(n){if(n._pf==null)n._pf=E();return n._pf}var M;if(Array.prototype.some)M=Array.prototype.some;else M=function(n){var s=Object(this),o=s.length>>>0,l;for(l=0;l<o;l++)if(l in s&&n.call(this,s[l],l,s))return!0;return!1};function P(n){var s=null,o=!1,l=n._d&&!isNaN(n._d.getTime());if(l){if(s=p(n),o=M.call(s.parsedDateParts,function(h){return h!=null}),l=s.overflow<0&&!s.empty&&!s.invalidEra&&!s.invalidMonth&&!s.invalidWeekday&&!s.weekdayMismatch&&!s.nullInput&&!s.invalidFormat&&!s.userInvalidated&&(!s.meridiem||s.meridiem&&o),n._strict)l=l&&s.charsLeftOver===0&&s.unusedTokens.length===0&&s.bigHour===void 0}if(Object.isFrozen==null||!Object.isFrozen(n))n._isValid=l;else return l;return n._isValid}function A(n){var s=w(NaN);if(n!=null)_(p(s),n);else p(s).userInvalidated=!0;return s}var W=t.momentProperties=[],O=!1;function N(n,s){var o,l,h,m=W.length;if(!c(s._isAMomentObject))n._isAMomentObject=s._isAMomentObject;if(!c(s._i))n._i=s._i;if(!c(s._f))n._f=s._f;if(!c(s._l))n._l=s._l;if(!c(s._strict))n._strict=s._strict;if(!c(s._tzm))n._tzm=s._tzm;if(!c(s._isUTC))n._isUTC=s._isUTC;if(!c(s._offset))n._offset=s._offset;if(!c(s._pf))n._pf=p(s);if(!c(s._locale))n._locale=s._locale;if(m>0){for(o=0;o<m;o++)if(l=W[o],h=s[l],!c(h))n[l]=h}return n}function B(n){if(N(this,n),this._d=new Date(n._d!=null?n._d.getTime():NaN),!this.isValid())this._d=new Date(NaN);if(O===!1)O=!0,t.updateOffset(this),O=!1}function Y(n){return n instanceof B||n!=null&&n._isAMomentObject!=null}function H(n){if(t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn)console.warn("Deprecation warning: "+n)}function I(n,s){var o=!0;return _(function(){if(t.deprecationHandler!=null)t.deprecationHandler(null,n);if(o){var l=[],h,m,y,D=arguments.length;for(m=0;m<D;m++){if(h="",typeof arguments[m]==="object"){h+=`
|
|
41
|
+
[`+m+"] ";for(y in arguments[0])if(u(arguments[0],y))h+=y+": "+arguments[0][y]+", ";h=h.slice(0,-2)}else h=arguments[m];l.push(h)}H(n+`
|
|
42
|
+
Arguments: `+Array.prototype.slice.call(l).join("")+`
|
|
43
|
+
`+Error().stack),o=!1}return s.apply(this,arguments)},s)}var F={};function ue(n,s){if(t.deprecationHandler!=null)t.deprecationHandler(n,s);if(!F[n])H(s),F[n]=!0}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function ee(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function fe(n){var s,o;for(o in n)if(u(n,o))if(s=n[o],ee(s))this[o]=s;else this["_"+o]=s;this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function _e(n,s){var o=_({},n),l;for(l in s)if(u(s,l))if(a(n[l])&&a(s[l]))o[l]={},_(o[l],n[l]),_(o[l],s[l]);else if(s[l]!=null)o[l]=s[l];else delete o[l];for(l in n)if(u(n,l)&&!u(s,l)&&a(n[l]))o[l]=_({},o[l]);return o}function we(n){if(n!=null)this.set(n)}var Ue;if(Object.keys)Ue=Object.keys;else Ue=function(n){var s,o=[];for(s in n)if(u(n,s))o.push(s);return o};var S={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function T(n,s,o){var l=this._calendar[n]||this._calendar.sameElse;return ee(l)?l.call(s,o):l}function z(n,s,o){var l=""+Math.abs(n),h=s-l.length,m=n>=0;return(m?o?"+":"":"-")+Math.pow(10,Math.max(0,h)).toString().substr(1)+l}var ge=/(\[[^\[]*\])|(\\)?([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,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Oe={},ke={};function L(n,s,o,l){var h=l;if(typeof l==="string")h=function(){return this[l]()};if(n)ke[n]=h;if(s)ke[s[0]]=function(){return z(h.apply(this,arguments),s[1],s[2])};if(o)ke[o]=function(){return this.localeData().ordinal(h.apply(this,arguments),n)}}function Gt(n){if(n.match(/\[[\s\S]/))return n.replace(/^\[|\]$/g,"");return n.replace(/\\/g,"")}function hn(n){var s=n.match(ge),o,l;for(o=0,l=s.length;o<l;o++)if(ke[s[o]])s[o]=ke[s[o]];else s[o]=Gt(s[o]);return function(h){var m="",y;for(y=0;y<l;y++)m+=ee(s[y])?s[y].call(h,n):s[y];return m}}function tt(n,s){if(!n.isValid())return n.localeData().invalidDate();return s=dn(s,n.localeData()),Oe[s]=Oe[s]||hn(s),Oe[s](n)}function dn(n,s){var o=5;function l(h){return s.longDateFormat(h)||h}q.lastIndex=0;while(o>=0&&q.test(n))n=n.replace(q,l),q.lastIndex=0,o-=1;return n}var Ne={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 mn(n){var s=this._longDateFormat[n],o=this._longDateFormat[n.toUpperCase()];if(s||!o)return s;return this._longDateFormat[n]=o.match(ge).map(function(l){if(l==="MMMM"||l==="MM"||l==="DD"||l==="dddd")return l.slice(1);return l}).join(""),this._longDateFormat[n]}var di="Invalid date";function gn(){return this._invalidDate}var pn="%d",Vt=/\d{1,2}/;function Bt(n){return this._ordinal.replace("%d",n)}var mi={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 kt(n,s,o,l){var h=this._relativeTime[o];return ee(h)?h(n,s,o,l):h.replace(/%d/i,n)}function mt(n,s){var o=this._relativeTime[n>0?"future":"past"];return ee(o)?o(s):o.replace(/%s/i,s)}var Zt={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 De(n){return typeof n==="string"?Zt[n]||Zt[n.toLowerCase()]:void 0}function Jt(n){var s={},o,l;for(l in n)if(u(n,l)){if(o=De(l),o)s[o]=n[l]}return s}var jh={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 Ih(n){var s=[],o;for(o in n)if(u(n,o))s.push({unit:o,priority:jh[o]});return s.sort(function(l,h){return l.priority-h.priority}),s}var Ya=/\d/,Le=/\d\d/,Fa=/\d{3}/,gi=/\d{4}/,yn=/[+-]?\d{6}/,te=/\d\d?/,Ca=/\d\d\d\d?/,ja=/\d\d\d\d\d\d?/,_n=/\d{1,3}/,pi=/\d{1,4}/,wn=/[+-]?\d{1,6}/,Kt=/\d+/,bn=/[+-]?\d+/,Wh=/Z|[+-]\d\d:?\d\d/gi,vn=/Z|[+-]\d\d(?::?\d\d)?/gi,$h=/[+-]?\d+(\.\d{1,3})?/,Or=/[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,Qt=/^[1-9]\d?/,yi=/^([1-9]\d|\d)/,Sn;Sn={};function R(n,s,o){Sn[n]=ee(s)?s:function(l,h){return l&&o?o:s}}function Hh(n,s){if(!u(Sn,n))return new RegExp(Uh(n));return Sn[n](s._strict,s._locale)}function Uh(n){return rt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(s,o,l,h,m){return o||l||h||m}))}function rt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ae(n){if(n<0)return Math.ceil(n)||0;else return Math.floor(n)}function V(n){var s=+n,o=0;if(s!==0&&isFinite(s))o=Ae(s);return o}var _i={};function X(n,s){var o,l=s,h;if(typeof n==="string")n=[n];if(d(s))l=function(m,y){y[s]=V(m)};h=n.length;for(o=0;o<h;o++)_i[n[o]]=l}function kr(n,s){X(n,function(o,l,h,m){h._w=h._w||{},s(o,h._w,h,m)})}function zh(n,s,o){if(s!=null&&u(_i,n))_i[n](s,o._a,o,n)}function xn(n){return n%4===0&&n%100!==0||n%400===0}var ve=0,nt=1,ze=2,ce=3,Fe=4,it=5,Dt=6,Gh=7,Vh=8;L("Y",0,0,function(){var n=this.year();return n<=9999?z(n,4):"+"+n}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),R("Y",bn),R("YY",te,Le),R("YYYY",pi,gi),R("YYYYY",wn,yn),R("YYYYYY",wn,yn),X(["YYYYY","YYYYYY"],ve),X("YYYY",function(n,s){s[ve]=n.length===2?t.parseTwoDigitYear(n):V(n)}),X("YY",function(n,s){s[ve]=t.parseTwoDigitYear(n)}),X("Y",function(n,s){s[ve]=parseInt(n,10)});function Dr(n){return xn(n)?366:365}t.parseTwoDigitYear=function(n){return V(n)+(V(n)>68?1900:2000)};var Ia=Xt("FullYear",!0);function Bh(){return xn(this.year())}function Xt(n,s){return function(o){if(o!=null)return Wa(this,n,o),t.updateOffset(this,s),this;else return Rr(this,n)}}function Rr(n,s){if(!n.isValid())return NaN;var{_d:o,_isUTC:l}=n;switch(s){case"Milliseconds":return l?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return l?o.getUTCSeconds():o.getSeconds();case"Minutes":return l?o.getUTCMinutes():o.getMinutes();case"Hours":return l?o.getUTCHours():o.getHours();case"Date":return l?o.getUTCDate():o.getDate();case"Day":return l?o.getUTCDay():o.getDay();case"Month":return l?o.getUTCMonth():o.getMonth();case"FullYear":return l?o.getUTCFullYear():o.getFullYear();default:return NaN}}function Wa(n,s,o){var l,h,m,y,D;if(!n.isValid()||isNaN(o))return;switch(l=n._d,h=n._isUTC,s){case"Milliseconds":return void(h?l.setUTCMilliseconds(o):l.setMilliseconds(o));case"Seconds":return void(h?l.setUTCSeconds(o):l.setSeconds(o));case"Minutes":return void(h?l.setUTCMinutes(o):l.setMinutes(o));case"Hours":return void(h?l.setUTCHours(o):l.setHours(o));case"Date":return void(h?l.setUTCDate(o):l.setDate(o));case"FullYear":break;default:return}m=o,y=n.month(),D=n.date(),D=D===29&&y===1&&!xn(m)?28:D,h?l.setUTCFullYear(m,y,D):l.setFullYear(m,y,D)}function Zh(n){if(n=De(n),ee(this[n]))return this[n]();return this}function Jh(n,s){if(typeof n==="object"){n=Jt(n);var o=Ih(n),l,h=o.length;for(l=0;l<h;l++)this[o[l].unit](n[o[l].unit])}else if(n=De(n),ee(this[n]))return this[n](s);return this}function Kh(n,s){return(n%s+s)%s}var ae;if(Array.prototype.indexOf)ae=Array.prototype.indexOf;else ae=function(n){var s;for(s=0;s<this.length;++s)if(this[s]===n)return s;return-1};function wi(n,s){if(isNaN(n)||isNaN(s))return NaN;var o=Kh(s,12);return n+=(s-o)/12,o===1?xn(n)?29:28:31-o%7%2}L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)}),L("MMMM",0,0,function(n){return this.localeData().months(this,n)}),R("M",te,Qt),R("MM",te,Le),R("MMM",function(n,s){return s.monthsShortRegex(n)}),R("MMMM",function(n,s){return s.monthsRegex(n)}),X(["M","MM"],function(n,s){s[nt]=V(n)-1}),X(["MMM","MMMM"],function(n,s,o,l){var h=o._locale.monthsParse(n,l,o._strict);if(h!=null)s[nt]=h;else p(o).invalidMonth=n});var Qh="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),$a="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ha=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xh=Or,ed=Or;function td(n,s){if(!n)return i(this._months)?this._months:this._months.standalone;return i(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||Ha).test(s)?"format":"standalone"][n.month()]}function rd(n,s){if(!n)return i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;return i(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[Ha.test(s)?"format":"standalone"][n.month()]}function nd(n,s,o){var l,h,m,y=n.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];for(l=0;l<12;++l)m=w([2000,l]),this._shortMonthsParse[l]=this.monthsShort(m,"").toLocaleLowerCase(),this._longMonthsParse[l]=this.months(m,"").toLocaleLowerCase()}if(o)if(s==="MMM")return h=ae.call(this._shortMonthsParse,y),h!==-1?h:null;else return h=ae.call(this._longMonthsParse,y),h!==-1?h:null;else if(s==="MMM"){if(h=ae.call(this._shortMonthsParse,y),h!==-1)return h;return h=ae.call(this._longMonthsParse,y),h!==-1?h:null}else{if(h=ae.call(this._longMonthsParse,y),h!==-1)return h;return h=ae.call(this._shortMonthsParse,y),h!==-1?h:null}}function id(n,s,o){var l,h,m;if(this._monthsParseExact)return nd.call(this,n,s,o);if(!this._monthsParse)this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];for(l=0;l<12;l++){if(h=w([2000,l]),o&&!this._longMonthsParse[l])this._longMonthsParse[l]=new RegExp("^"+this.months(h,"").replace(".","")+"$","i"),this._shortMonthsParse[l]=new RegExp("^"+this.monthsShort(h,"").replace(".","")+"$","i");if(!o&&!this._monthsParse[l])m="^"+this.months(h,"")+"|^"+this.monthsShort(h,""),this._monthsParse[l]=new RegExp(m.replace(".",""),"i");if(o&&s==="MMMM"&&this._longMonthsParse[l].test(n))return l;else if(o&&s==="MMM"&&this._shortMonthsParse[l].test(n))return l;else if(!o&&this._monthsParse[l].test(n))return l}}function Ua(n,s){if(!n.isValid())return n;if(typeof s==="string"){if(/^\d+$/.test(s))s=V(s);else if(s=n.localeData().monthsParse(s),!d(s))return n}var o=s,l=n.date();return l=l<29?l:Math.min(l,wi(n.year(),o)),n._isUTC?n._d.setUTCMonth(o,l):n._d.setMonth(o,l),n}function za(n){if(n!=null)return Ua(this,n),t.updateOffset(this,!0),this;else return Rr(this,"Month")}function sd(){return wi(this.year(),this.month())}function ad(n){if(this._monthsParseExact){if(!u(this,"_monthsRegex"))Ga.call(this);if(n)return this._monthsShortStrictRegex;else return this._monthsShortRegex}else{if(!u(this,"_monthsShortRegex"))this._monthsShortRegex=Xh;return this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex}}function od(n){if(this._monthsParseExact){if(!u(this,"_monthsRegex"))Ga.call(this);if(n)return this._monthsStrictRegex;else return this._monthsRegex}else{if(!u(this,"_monthsRegex"))this._monthsRegex=ed;return this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex}}function Ga(){function n(C,Z){return Z.length-C.length}var s=[],o=[],l=[],h,m,y,D;for(h=0;h<12;h++)m=w([2000,h]),y=rt(this.monthsShort(m,"")),D=rt(this.months(m,"")),s.push(y),o.push(D),l.push(D),l.push(y);s.sort(n),o.sort(n),l.sort(n),this._monthsRegex=new RegExp("^("+l.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function ud(n,s,o,l,h,m,y){var D;if(n<100&&n>=0){if(D=new Date(n+400,s,o,l,h,m,y),isFinite(D.getFullYear()))D.setFullYear(n)}else D=new Date(n,s,o,l,h,m,y);return D}function Tr(n){var s,o;if(n<100&&n>=0){if(o=Array.prototype.slice.call(arguments),o[0]=n+400,s=new Date(Date.UTC.apply(null,o)),isFinite(s.getUTCFullYear()))s.setUTCFullYear(n)}else s=new Date(Date.UTC.apply(null,arguments));return s}function Mn(n,s,o){var l=7+s-o,h=(7+Tr(n,0,l).getUTCDay()-s)%7;return-h+l-1}function Va(n,s,o,l,h){var m=(7+o-l)%7,y=Mn(n,l,h),D=1+7*(s-1)+m+y,C,Z;if(D<=0)C=n-1,Z=Dr(C)+D;else if(D>Dr(n))C=n+1,Z=D-Dr(n);else C=n,Z=D;return{year:C,dayOfYear:Z}}function Nr(n,s,o){var l=Mn(n.year(),s,o),h=Math.floor((n.dayOfYear()-l-1)/7)+1,m,y;if(h<1)y=n.year()-1,m=h+st(y,s,o);else if(h>st(n.year(),s,o))m=h-st(n.year(),s,o),y=n.year()+1;else y=n.year(),m=h;return{week:m,year:y}}function st(n,s,o){var l=Mn(n,s,o),h=Mn(n+1,s,o);return(Dr(n)-l+h)/7}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),R("w",te,Qt),R("ww",te,Le),R("W",te,Qt),R("WW",te,Le),kr(["w","ww","W","WW"],function(n,s,o,l){s[l.substr(0,1)]=V(n)});function ld(n){return Nr(n,this._week.dow,this._week.doy).week}var fd={dow:0,doy:6};function cd(){return this._week.dow}function hd(){return this._week.doy}function dd(n){var s=this.localeData().week(this);return n==null?s:this.add((n-s)*7,"d")}function md(n){var s=Nr(this,1,4).week;return n==null?s:this.add((n-s)*7,"d")}L("d",0,"do","day"),L("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),L("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),L("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),R("d",te),R("e",te),R("E",te),R("dd",function(n,s){return s.weekdaysMinRegex(n)}),R("ddd",function(n,s){return s.weekdaysShortRegex(n)}),R("dddd",function(n,s){return s.weekdaysRegex(n)}),kr(["dd","ddd","dddd"],function(n,s,o,l){var h=o._locale.weekdaysParse(n,l,o._strict);if(h!=null)s.d=h;else p(o).invalidWeekday=n}),kr(["d","e","E"],function(n,s,o,l){s[l]=V(n)});function gd(n,s){if(typeof n!=="string")return n;if(!isNaN(n))return parseInt(n,10);if(n=s.weekdaysParse(n),typeof n==="number")return n;return null}function pd(n,s){if(typeof n==="string")return s.weekdaysParse(n)%7||7;return isNaN(n)?null:n}function bi(n,s){return n.slice(s,7).concat(n.slice(0,s))}var yd="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ba="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_d="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wd=Or,bd=Or,vd=Or;function Sd(n,s){var o=i(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(s)?"format":"standalone"];return n===!0?bi(o,this._week.dow):n?o[n.day()]:o}function xd(n){return n===!0?bi(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Md(n){return n===!0?bi(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Ed(n,s,o){var l,h,m,y=n.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];for(l=0;l<7;++l)m=w([2000,1]).day(l),this._minWeekdaysParse[l]=this.weekdaysMin(m,"").toLocaleLowerCase(),this._shortWeekdaysParse[l]=this.weekdaysShort(m,"").toLocaleLowerCase(),this._weekdaysParse[l]=this.weekdays(m,"").toLocaleLowerCase()}if(o)if(s==="dddd")return h=ae.call(this._weekdaysParse,y),h!==-1?h:null;else if(s==="ddd")return h=ae.call(this._shortWeekdaysParse,y),h!==-1?h:null;else return h=ae.call(this._minWeekdaysParse,y),h!==-1?h:null;else if(s==="dddd"){if(h=ae.call(this._weekdaysParse,y),h!==-1)return h;if(h=ae.call(this._shortWeekdaysParse,y),h!==-1)return h;return h=ae.call(this._minWeekdaysParse,y),h!==-1?h:null}else if(s==="ddd"){if(h=ae.call(this._shortWeekdaysParse,y),h!==-1)return h;if(h=ae.call(this._weekdaysParse,y),h!==-1)return h;return h=ae.call(this._minWeekdaysParse,y),h!==-1?h:null}else{if(h=ae.call(this._minWeekdaysParse,y),h!==-1)return h;if(h=ae.call(this._weekdaysParse,y),h!==-1)return h;return h=ae.call(this._shortWeekdaysParse,y),h!==-1?h:null}}function Od(n,s,o){var l,h,m;if(this._weekdaysParseExact)return Ed.call(this,n,s,o);if(!this._weekdaysParse)this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[];for(l=0;l<7;l++){if(h=w([2000,1]).day(l),o&&!this._fullWeekdaysParse[l])this._fullWeekdaysParse[l]=new RegExp("^"+this.weekdays(h,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[l]=new RegExp("^"+this.weekdaysShort(h,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[l]=new RegExp("^"+this.weekdaysMin(h,"").replace(".","\\.?")+"$","i");if(!this._weekdaysParse[l])m="^"+this.weekdays(h,"")+"|^"+this.weekdaysShort(h,"")+"|^"+this.weekdaysMin(h,""),this._weekdaysParse[l]=new RegExp(m.replace(".",""),"i");if(o&&s==="dddd"&&this._fullWeekdaysParse[l].test(n))return l;else if(o&&s==="ddd"&&this._shortWeekdaysParse[l].test(n))return l;else if(o&&s==="dd"&&this._minWeekdaysParse[l].test(n))return l;else if(!o&&this._weekdaysParse[l].test(n))return l}}function kd(n){if(!this.isValid())return n!=null?this:NaN;var s=Rr(this,"Day");if(n!=null)return n=gd(n,this.localeData()),this.add(n-s,"d");else return s}function Dd(n){if(!this.isValid())return n!=null?this:NaN;var s=(this.day()+7-this.localeData()._week.dow)%7;return n==null?s:this.add(n-s,"d")}function Rd(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var s=pd(n,this.localeData());return this.day(this.day()%7?s:s-7)}else return this.day()||7}function Td(n){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex"))vi.call(this);if(n)return this._weekdaysStrictRegex;else return this._weekdaysRegex}else{if(!u(this,"_weekdaysRegex"))this._weekdaysRegex=wd;return this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex}}function Nd(n){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex"))vi.call(this);if(n)return this._weekdaysShortStrictRegex;else return this._weekdaysShortRegex}else{if(!u(this,"_weekdaysShortRegex"))this._weekdaysShortRegex=bd;return this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function Ld(n){if(this._weekdaysParseExact){if(!u(this,"_weekdaysRegex"))vi.call(this);if(n)return this._weekdaysMinStrictRegex;else return this._weekdaysMinRegex}else{if(!u(this,"_weekdaysMinRegex"))this._weekdaysMinRegex=vd;return this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function vi(){function n(xe,ft){return ft.length-xe.length}var s=[],o=[],l=[],h=[],m,y,D,C,Z;for(m=0;m<7;m++)y=w([2000,1]).day(m),D=rt(this.weekdaysMin(y,"")),C=rt(this.weekdaysShort(y,"")),Z=rt(this.weekdays(y,"")),s.push(D),o.push(C),l.push(Z),h.push(D),h.push(C),h.push(Z);s.sort(n),o.sort(n),l.sort(n),h.sort(n),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Si(){return this.hours()%12||12}function Pd(){return this.hours()||24}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,Si),L("k",["kk",2],0,Pd),L("hmm",0,0,function(){return""+Si.apply(this)+z(this.minutes(),2)}),L("hmmss",0,0,function(){return""+Si.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+z(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)});function Za(n,s){L(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),s)})}Za("a",!0),Za("A",!1);function Ja(n,s){return s._meridiemParse}R("a",Ja),R("A",Ja),R("H",te,yi),R("h",te,Qt),R("k",te,Qt),R("HH",te,Le),R("hh",te,Le),R("kk",te,Le),R("hmm",Ca),R("hmmss",ja),R("Hmm",Ca),R("Hmmss",ja),X(["H","HH"],ce),X(["k","kk"],function(n,s,o){var l=V(n);s[ce]=l===24?0:l}),X(["a","A"],function(n,s,o){o._isPm=o._locale.isPM(n),o._meridiem=n}),X(["h","hh"],function(n,s,o){s[ce]=V(n),p(o).bigHour=!0}),X("hmm",function(n,s,o){var l=n.length-2;s[ce]=V(n.substr(0,l)),s[Fe]=V(n.substr(l)),p(o).bigHour=!0}),X("hmmss",function(n,s,o){var l=n.length-4,h=n.length-2;s[ce]=V(n.substr(0,l)),s[Fe]=V(n.substr(l,2)),s[it]=V(n.substr(h)),p(o).bigHour=!0}),X("Hmm",function(n,s,o){var l=n.length-2;s[ce]=V(n.substr(0,l)),s[Fe]=V(n.substr(l))}),X("Hmmss",function(n,s,o){var l=n.length-4,h=n.length-2;s[ce]=V(n.substr(0,l)),s[Fe]=V(n.substr(l,2)),s[it]=V(n.substr(h))});function Ad(n){return(n+"").toLowerCase().charAt(0)==="p"}var qd=/[ap]\.?m?\.?/i,Yd=Xt("Hours",!0);function Fd(n,s,o){if(n>11)return o?"pm":"PM";else return o?"am":"AM"}var Ka={calendar:S,longDateFormat:Ne,invalidDate:di,ordinal:pn,dayOfMonthOrdinalParse:Vt,relativeTime:mi,months:Qh,monthsShort:$a,week:fd,weekdays:yd,weekdaysMin:_d,weekdaysShort:Ba,meridiemParse:qd},ne={},Lr={},Pr;function Cd(n,s){var o,l=Math.min(n.length,s.length);for(o=0;o<l;o+=1)if(n[o]!==s[o])return o;return l}function Qa(n){return n?n.toLowerCase().replace("_","-"):n}function jd(n){var s=0,o,l,h,m;while(s<n.length){m=Qa(n[s]).split("-"),o=m.length,l=Qa(n[s+1]),l=l?l.split("-"):null;while(o>0){if(h=En(m.slice(0,o).join("-")),h)return h;if(l&&l.length>=o&&Cd(m,l)>=o-1)break;o--}s++}return Pr}function Id(n){return!!(n&&n.match("^[^/\\\\]*$"))}function En(n){var s=null,o;if(ne[n]===void 0&&typeof Sr<"u"&&Sr&&Sr.exports&&Id(n))try{s=Pr._abbr,o=j,o("./locale/"+n),gt(s)}catch(l){ne[n]=null}return ne[n]}function gt(n,s){var o;if(n){if(c(s))o=at(n);else o=xi(n,s);if(o)Pr=o;else if(typeof console<"u"&&console.warn)console.warn("Locale "+n+" not found. Did you forget to load it?")}return Pr._abbr}function xi(n,s){if(s!==null){var o,l=Ka;if(s.abbr=n,ne[n]!=null)ue("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."),l=ne[n]._config;else if(s.parentLocale!=null)if(ne[s.parentLocale]!=null)l=ne[s.parentLocale]._config;else if(o=En(s.parentLocale),o!=null)l=o._config;else{if(!Lr[s.parentLocale])Lr[s.parentLocale]=[];return Lr[s.parentLocale].push({name:n,config:s}),null}if(ne[n]=new we(_e(l,s)),Lr[n])Lr[n].forEach(function(h){xi(h.name,h.config)});return gt(n),ne[n]}else return delete ne[n],null}function Wd(n,s){if(s!=null){var o,l,h=Ka;if(ne[n]!=null&&ne[n].parentLocale!=null)ne[n].set(_e(ne[n]._config,s));else{if(l=En(n),l!=null)h=l._config;if(s=_e(h,s),l==null)s.abbr=n;o=new we(s),o.parentLocale=ne[n],ne[n]=o}gt(n)}else if(ne[n]!=null){if(ne[n].parentLocale!=null){if(ne[n]=ne[n].parentLocale,n===gt())gt(n)}else if(ne[n]!=null)delete ne[n]}return ne[n]}function at(n){var s;if(n&&n._locale&&n._locale._abbr)n=n._locale._abbr;if(!n)return Pr;if(!i(n)){if(s=En(n),s)return s;n=[n]}return jd(n)}function $d(){return Ue(ne)}function Mi(n){var s,o=n._a;if(o&&p(n).overflow===-2){if(s=o[nt]<0||o[nt]>11?nt:o[ze]<1||o[ze]>wi(o[ve],o[nt])?ze:o[ce]<0||o[ce]>24||o[ce]===24&&(o[Fe]!==0||o[it]!==0||o[Dt]!==0)?ce:o[Fe]<0||o[Fe]>59?Fe:o[it]<0||o[it]>59?it:o[Dt]<0||o[Dt]>999?Dt:-1,p(n)._overflowDayOfYear&&(s<ve||s>ze))s=ze;if(p(n)._overflowWeeks&&s===-1)s=Gh;if(p(n)._overflowWeekday&&s===-1)s=Vh;p(n).overflow=s}return n}var Hd=/^\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)?)?$/,Ud=/^\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)?)?$/,zd=/Z|[+-]\d\d(?::?\d\d)?/,On=[["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]],Ei=[["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/]],Gd=/^\/?Date\((-?\d+)/i,Vd=/^(?:(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}))$/,Bd={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Xa(n){var s,o,l=n._i,h=Hd.exec(l)||Ud.exec(l),m,y,D,C,Z=On.length,xe=Ei.length;if(h){p(n).iso=!0;for(s=0,o=Z;s<o;s++)if(On[s][1].exec(h[1])){y=On[s][0],m=On[s][2]!==!1;break}if(y==null){n._isValid=!1;return}if(h[3]){for(s=0,o=xe;s<o;s++)if(Ei[s][1].exec(h[3])){D=(h[2]||" ")+Ei[s][0];break}if(D==null){n._isValid=!1;return}}if(!m&&D!=null){n._isValid=!1;return}if(h[4])if(zd.exec(h[4]))C="Z";else{n._isValid=!1;return}n._f=y+(D||"")+(C||""),ki(n)}else n._isValid=!1}function Zd(n,s,o,l,h,m){var y=[Jd(n),$a.indexOf(s),parseInt(o,10),parseInt(l,10),parseInt(h,10)];if(m)y.push(parseInt(m,10));return y}function Jd(n){var s=parseInt(n,10);if(s<=49)return 2000+s;else if(s<=999)return 1900+s;return s}function Kd(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Qd(n,s,o){if(n){var l=Ba.indexOf(n),h=new Date(s[0],s[1],s[2]).getDay();if(l!==h)return p(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function Xd(n,s,o){if(n)return Bd[n];else if(s)return 0;else{var l=parseInt(o,10),h=l%100,m=(l-h)/100;return m*60+h}}function eo(n){var s=Vd.exec(Kd(n._i)),o;if(s){if(o=Zd(s[4],s[3],s[2],s[5],s[6],s[7]),!Qd(s[1],o,n))return;n._a=o,n._tzm=Xd(s[8],s[9],s[10]),n._d=Tr.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),p(n).rfc2822=!0}else n._isValid=!1}function em(n){var s=Gd.exec(n._i);if(s!==null){n._d=new Date(+s[1]);return}if(Xa(n),n._isValid===!1)delete n._isValid;else return;if(eo(n),n._isValid===!1)delete n._isValid;else return;if(n._strict)n._isValid=!1;else t.createFromInputFallback(n)}t.createFromInputFallback=I("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(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});function er(n,s,o){if(n!=null)return n;if(s!=null)return s;return o}function tm(n){var s=new Date(t.now());if(n._useUTC)return[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()];return[s.getFullYear(),s.getMonth(),s.getDate()]}function Oi(n){var s,o,l=[],h,m,y;if(n._d)return;if(h=tm(n),n._w&&n._a[ze]==null&&n._a[nt]==null)rm(n);if(n._dayOfYear!=null){if(y=er(n._a[ve],h[ve]),n._dayOfYear>Dr(y)||n._dayOfYear===0)p(n)._overflowDayOfYear=!0;o=Tr(y,0,n._dayOfYear),n._a[nt]=o.getUTCMonth(),n._a[ze]=o.getUTCDate()}for(s=0;s<3&&n._a[s]==null;++s)n._a[s]=l[s]=h[s];for(;s<7;s++)n._a[s]=l[s]=n._a[s]==null?s===2?1:0:n._a[s];if(n._a[ce]===24&&n._a[Fe]===0&&n._a[it]===0&&n._a[Dt]===0)n._nextDay=!0,n._a[ce]=0;if(n._d=(n._useUTC?Tr:ud).apply(null,l),m=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null)n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);if(n._nextDay)n._a[ce]=24;if(n._w&&typeof n._w.d<"u"&&n._w.d!==m)p(n).weekdayMismatch=!0}function rm(n){var s,o,l,h,m,y,D,C,Z;if(s=n._w,s.GG!=null||s.W!=null||s.E!=null){if(m=1,y=4,o=er(s.GG,n._a[ve],Nr(re(),1,4).year),l=er(s.W,1),h=er(s.E,1),h<1||h>7)C=!0}else if(m=n._locale._week.dow,y=n._locale._week.doy,Z=Nr(re(),m,y),o=er(s.gg,n._a[ve],Z.year),l=er(s.w,Z.week),s.d!=null){if(h=s.d,h<0||h>6)C=!0}else if(s.e!=null){if(h=s.e+m,s.e<0||s.e>6)C=!0}else h=m;if(l<1||l>st(o,m,y))p(n)._overflowWeeks=!0;else if(C!=null)p(n)._overflowWeekday=!0;else D=Va(o,l,h,m,y),n._a[ve]=D.year,n._dayOfYear=D.dayOfYear}t.ISO_8601=function(){},t.RFC_2822=function(){};function ki(n){if(n._f===t.ISO_8601){Xa(n);return}if(n._f===t.RFC_2822){eo(n);return}n._a=[],p(n).empty=!0;var s=""+n._i,o,l,h,m,y,D=s.length,C=0,Z,xe;h=dn(n._f,n._locale).match(ge)||[],xe=h.length;for(o=0;o<xe;o++){if(m=h[o],l=(s.match(Hh(m,n))||[])[0],l){if(y=s.substr(0,s.indexOf(l)),y.length>0)p(n).unusedInput.push(y);s=s.slice(s.indexOf(l)+l.length),C+=l.length}if(ke[m]){if(l)p(n).empty=!1;else p(n).unusedTokens.push(m);zh(m,l,n)}else if(n._strict&&!l)p(n).unusedTokens.push(m)}if(p(n).charsLeftOver=D-C,s.length>0)p(n).unusedInput.push(s);if(n._a[ce]<=12&&p(n).bigHour===!0&&n._a[ce]>0)p(n).bigHour=void 0;if(p(n).parsedDateParts=n._a.slice(0),p(n).meridiem=n._meridiem,n._a[ce]=nm(n._locale,n._a[ce],n._meridiem),Z=p(n).era,Z!==null)n._a[ve]=n._locale.erasConvertYear(Z,n._a[ve]);Oi(n),Mi(n)}function nm(n,s,o){var l;if(o==null)return s;if(n.meridiemHour!=null)return n.meridiemHour(s,o);else if(n.isPM!=null){if(l=n.isPM(o),l&&s<12)s+=12;if(!l&&s===12)s=0;return s}else return s}function im(n){var s,o,l,h,m,y,D=!1,C=n._f.length;if(C===0){p(n).invalidFormat=!0,n._d=new Date(NaN);return}for(h=0;h<C;h++){if(m=0,y=!1,s=N({},n),n._useUTC!=null)s._useUTC=n._useUTC;if(s._f=n._f[h],ki(s),P(s))y=!0;if(m+=p(s).charsLeftOver,m+=p(s).unusedTokens.length*10,p(s).score=m,!D){if(l==null||m<l||y){if(l=m,o=s,y)D=!0}}else if(m<l)l=m,o=s}_(n,o||s)}function sm(n){if(n._d)return;var s=Jt(n._i),o=s.day===void 0?s.date:s.day;n._a=v([s.year,s.month,o,s.hour,s.minute,s.second,s.millisecond],function(l){return l&&parseInt(l,10)}),Oi(n)}function am(n){var s=new B(Mi(to(n)));if(s._nextDay)s.add(1,"d"),s._nextDay=void 0;return s}function to(n){var{_i:s,_f:o}=n;if(n._locale=n._locale||at(n._l),s===null||o===void 0&&s==="")return A({nullInput:!0});if(typeof s==="string")n._i=s=n._locale.preparse(s);if(Y(s))return new B(Mi(s));else if(g(s))n._d=s;else if(i(o))im(n);else if(o)ki(n);else om(n);if(!P(n))n._d=null;return n}function om(n){var s=n._i;if(c(s))n._d=new Date(t.now());else if(g(s))n._d=new Date(s.valueOf());else if(typeof s==="string")em(n);else if(i(s))n._a=v(s.slice(0),function(o){return parseInt(o,10)}),Oi(n);else if(a(s))sm(n);else if(d(s))n._d=new Date(s);else t.createFromInputFallback(n)}function ro(n,s,o,l,h){var m={};if(s===!0||s===!1)l=s,s=void 0;if(o===!0||o===!1)l=o,o=void 0;if(a(n)&&f(n)||i(n)&&n.length===0)n=void 0;return m._isAMomentObject=!0,m._useUTC=m._isUTC=h,m._l=o,m._i=n,m._f=s,m._strict=l,am(m)}function re(n,s,o,l){return ro(n,s,o,l,!1)}var um=I("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=re.apply(null,arguments);if(this.isValid()&&n.isValid())return n<this?this:n;else return A()}),lm=I("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=re.apply(null,arguments);if(this.isValid()&&n.isValid())return n>this?this:n;else return A()});function no(n,s){var o,l;if(s.length===1&&i(s[0]))s=s[0];if(!s.length)return re();o=s[0];for(l=1;l<s.length;++l)if(!s[l].isValid()||s[l][n](o))o=s[l];return o}function fm(){var n=[].slice.call(arguments,0);return no("isBefore",n)}function cm(){var n=[].slice.call(arguments,0);return no("isAfter",n)}var hm=function(){return Date.now?Date.now():+new Date},Ar=["year","quarter","month","week","day","hour","minute","second","millisecond"];function dm(n){var s,o=!1,l,h=Ar.length;for(s in n)if(u(n,s)&&!(ae.call(Ar,s)!==-1&&(n[s]==null||!isNaN(n[s]))))return!1;for(l=0;l<h;++l)if(n[Ar[l]]){if(o)return!1;if(parseFloat(n[Ar[l]])!==V(n[Ar[l]]))o=!0}return!0}function mm(){return this._isValid}function gm(){return Ce(NaN)}function kn(n){var s=Jt(n),o=s.year||0,l=s.quarter||0,h=s.month||0,m=s.week||s.isoWeek||0,y=s.day||0,D=s.hour||0,C=s.minute||0,Z=s.second||0,xe=s.millisecond||0;this._isValid=dm(s),this._milliseconds=+xe+Z*1000+C*60000+D*1000*60*60,this._days=+y+m*7,this._months=+h+l*3+o*12,this._data={},this._locale=at(),this._bubble()}function Dn(n){return n instanceof kn}function Di(n){if(n<0)return Math.round(-1*n)*-1;else return Math.round(n)}function pm(n,s,o){var l=Math.min(n.length,s.length),h=Math.abs(n.length-s.length),m=0,y;for(y=0;y<l;y++)if(o&&n[y]!==s[y]||!o&&V(n[y])!==V(s[y]))m++;return m+h}function io(n,s){L(n,0,0,function(){var o=this.utcOffset(),l="+";if(o<0)o=-o,l="-";return l+z(~~(o/60),2)+s+z(~~o%60,2)})}io("Z",":"),io("ZZ",""),R("Z",vn),R("ZZ",vn),X(["Z","ZZ"],function(n,s,o){o._useUTC=!0,o._tzm=Ri(vn,n)});var ym=/([\+\-]|\d\d)/gi;function Ri(n,s){var o=(s||"").match(n),l,h,m;if(o===null)return null;return l=o[o.length-1]||[],h=(l+"").match(ym)||["-",0,0],m=+(h[1]*60)+V(h[2]),m===0?0:h[0]==="+"?m:-m}function Ti(n,s){var o,l;if(s._isUTC)return o=s.clone(),l=(Y(n)||g(n)?n.valueOf():re(n).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+l),t.updateOffset(o,!1),o;else return re(n).local()}function Ni(n){return-Math.round(n._d.getTimezoneOffset())}t.updateOffset=function(){};function _m(n,s,o){var l=this._offset||0,h;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n==="string"){if(n=Ri(vn,n),n===null)return this}else if(Math.abs(n)<16&&!o)n=n*60;if(!this._isUTC&&s)h=Ni(this);if(this._offset=n,this._isUTC=!0,h!=null)this.add(h,"m");if(l!==n){if(!s||this._changeInProgress)uo(this,Ce(n-l,"m"),1,!1);else if(!this._changeInProgress)this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null}return this}else return this._isUTC?l:Ni(this)}function wm(n,s){if(n!=null){if(typeof n!=="string")n=-n;return this.utcOffset(n,s),this}else return-this.utcOffset()}function bm(n){return this.utcOffset(0,n)}function vm(n){if(this._isUTC){if(this.utcOffset(0,n),this._isUTC=!1,n)this.subtract(Ni(this),"m")}return this}function Sm(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i==="string"){var n=Ri(Wh,this._i);if(n!=null)this.utcOffset(n);else this.utcOffset(0,!0)}return this}function xm(n){if(!this.isValid())return!1;return n=n?re(n).utcOffset():0,(this.utcOffset()-n)%60===0}function Mm(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Em(){if(!c(this._isDSTShifted))return this._isDSTShifted;var n={},s;if(N(n,this),n=to(n),n._a)s=n._isUTC?w(n._a):re(n._a),this._isDSTShifted=this.isValid()&&pm(n._a,s.toArray())>0;else this._isDSTShifted=!1;return this._isDSTShifted}function Om(){return this.isValid()?!this._isUTC:!1}function km(){return this.isValid()?this._isUTC:!1}function so(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Dm=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rm=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ce(n,s){var o=n,l=null,h,m,y;if(Dn(n))o={ms:n._milliseconds,d:n._days,M:n._months};else if(d(n)||!isNaN(+n))if(o={},s)o[s]=+n;else o.milliseconds=+n;else if(l=Dm.exec(n))h=l[1]==="-"?-1:1,o={y:0,d:V(l[ze])*h,h:V(l[ce])*h,m:V(l[Fe])*h,s:V(l[it])*h,ms:V(Di(l[Dt]*1000))*h};else if(l=Rm.exec(n))h=l[1]==="-"?-1:1,o={y:Rt(l[2],h),M:Rt(l[3],h),w:Rt(l[4],h),d:Rt(l[5],h),h:Rt(l[6],h),m:Rt(l[7],h),s:Rt(l[8],h)};else if(o==null)o={};else if(typeof o==="object"&&(("from"in o)||("to"in o)))y=Tm(re(o.from),re(o.to)),o={},o.ms=y.milliseconds,o.M=y.months;if(m=new kn(o),Dn(n)&&u(n,"_locale"))m._locale=n._locale;if(Dn(n)&&u(n,"_isValid"))m._isValid=n._isValid;return m}Ce.fn=kn.prototype,Ce.invalid=gm;function Rt(n,s){var o=n&&parseFloat(n.replace(",","."));return(isNaN(o)?0:o)*s}function ao(n,s){var o={};if(o.months=s.month()-n.month()+(s.year()-n.year())*12,n.clone().add(o.months,"M").isAfter(s))--o.months;return o.milliseconds=+s-+n.clone().add(o.months,"M"),o}function Tm(n,s){var o;if(!(n.isValid()&&s.isValid()))return{milliseconds:0,months:0};if(s=Ti(s,n),n.isBefore(s))o=ao(n,s);else o=ao(s,n),o.milliseconds=-o.milliseconds,o.months=-o.months;return o}function oo(n,s){return function(o,l){var h,m;if(l!==null&&!isNaN(+l))ue(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),m=o,o=l,l=m;return h=Ce(o,l),uo(this,h,n),this}}function uo(n,s,o,l){var h=s._milliseconds,m=Di(s._days),y=Di(s._months);if(!n.isValid())return;if(l=l==null?!0:l,y)Ua(n,Rr(n,"Month")+y*o);if(m)Wa(n,"Date",Rr(n,"Date")+m*o);if(h)n._d.setTime(n._d.valueOf()+h*o);if(l)t.updateOffset(n,m||y)}var Nm=oo(1,"add"),Lm=oo(-1,"subtract");function lo(n){return typeof n==="string"||n instanceof String}function Pm(n){return Y(n)||g(n)||lo(n)||d(n)||qm(n)||Am(n)||n===null||n===void 0}function Am(n){var s=a(n)&&!f(n),o=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h,m,y=l.length;for(h=0;h<y;h+=1)m=l[h],o=o||u(n,m);return s&&o}function qm(n){var s=i(n),o=!1;if(s)o=n.filter(function(l){return!d(l)&&lo(n)}).length===0;return s&&o}function Ym(n){var s=a(n)&&!f(n),o=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],h,m;for(h=0;h<l.length;h+=1)m=l[h],o=o||u(n,m);return s&&o}function Fm(n,s){var o=n.diff(s,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function Cm(n,s){if(arguments.length===1){if(!arguments[0])n=void 0,s=void 0;else if(Pm(arguments[0]))n=arguments[0],s=void 0;else if(Ym(arguments[0]))s=arguments[0],n=void 0}var o=n||re(),l=Ti(o,this).startOf("day"),h=t.calendarFormat(this,l)||"sameElse",m=s&&(ee(s[h])?s[h].call(this,o):s[h]);return this.format(m||this.localeData().calendar(h,this,re(o)))}function jm(){return new B(this)}function Im(n,s){var o=Y(n)?n:re(n);if(!(this.isValid()&&o.isValid()))return!1;if(s=De(s)||"millisecond",s==="millisecond")return this.valueOf()>o.valueOf();else return o.valueOf()<this.clone().startOf(s).valueOf()}function Wm(n,s){var o=Y(n)?n:re(n);if(!(this.isValid()&&o.isValid()))return!1;if(s=De(s)||"millisecond",s==="millisecond")return this.valueOf()<o.valueOf();else return this.clone().endOf(s).valueOf()<o.valueOf()}function $m(n,s,o,l){var h=Y(n)?n:re(n),m=Y(s)?s:re(s);if(!(this.isValid()&&h.isValid()&&m.isValid()))return!1;return l=l||"()",(l[0]==="("?this.isAfter(h,o):!this.isBefore(h,o))&&(l[1]===")"?this.isBefore(m,o):!this.isAfter(m,o))}function Hm(n,s){var o=Y(n)?n:re(n),l;if(!(this.isValid()&&o.isValid()))return!1;if(s=De(s)||"millisecond",s==="millisecond")return this.valueOf()===o.valueOf();else return l=o.valueOf(),this.clone().startOf(s).valueOf()<=l&&l<=this.clone().endOf(s).valueOf()}function Um(n,s){return this.isSame(n,s)||this.isAfter(n,s)}function zm(n,s){return this.isSame(n,s)||this.isBefore(n,s)}function Gm(n,s,o){var l,h,m;if(!this.isValid())return NaN;if(l=Ti(n,this),!l.isValid())return NaN;switch(h=(l.utcOffset()-this.utcOffset())*60000,s=De(s),s){case"year":m=Rn(this,l)/12;break;case"month":m=Rn(this,l);break;case"quarter":m=Rn(this,l)/3;break;case"second":m=(this-l)/1000;break;case"minute":m=(this-l)/60000;break;case"hour":m=(this-l)/3600000;break;case"day":m=(this-l-h)/86400000;break;case"week":m=(this-l-h)/604800000;break;default:m=this-l}return o?m:Ae(m)}function Rn(n,s){if(n.date()<s.date())return-Rn(s,n);var o=(s.year()-n.year())*12+(s.month()-n.month()),l=n.clone().add(o,"months"),h,m;if(s-l<0)h=n.clone().add(o-1,"months"),m=(s-l)/(l-h);else h=n.clone().add(o+1,"months"),m=(s-l)/(h-l);return-(o+m)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Vm(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Bm(n){if(!this.isValid())return null;var s=n!==!0,o=s?this.clone().utc():this;if(o.year()<0||o.year()>9999)return tt(o,s?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(ee(Date.prototype.toISOString))if(s)return this.toDate().toISOString();else return new Date(this.valueOf()+this.utcOffset()*60*1000).toISOString().replace("Z",tt(o,"Z"));return tt(o,s?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Zm(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",s="",o,l,h,m;if(!this.isLocal())n=this.utcOffset()===0?"moment.utc":"moment.parseZone",s="Z";return o="["+n+'("]',l=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",h="-MM-DD[T]HH:mm:ss.SSS",m=s+'[")]',this.format(o+l+h+m)}function Jm(n){if(!n)n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat;var s=tt(this,n);return this.localeData().postformat(s)}function Km(n,s){if(this.isValid()&&(Y(n)&&n.isValid()||re(n).isValid()))return Ce({to:this,from:n}).locale(this.locale()).humanize(!s);else return this.localeData().invalidDate()}function Qm(n){return this.from(re(),n)}function Xm(n,s){if(this.isValid()&&(Y(n)&&n.isValid()||re(n).isValid()))return Ce({from:this,to:n}).locale(this.locale()).humanize(!s);else return this.localeData().invalidDate()}function eg(n){return this.to(re(),n)}function fo(n){var s;if(n===void 0)return this._locale._abbr;else{if(s=at(n),s!=null)this._locale=s;return this}}var co=I("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){if(n===void 0)return this.localeData();else return this.locale(n)});function ho(){return this._locale}var Tn=1000,tr=60*Tn,Nn=60*tr,mo=3506328*Nn;function rr(n,s){return(n%s+s)%s}function go(n,s,o){if(n<100&&n>=0)return new Date(n+400,s,o)-mo;else return new Date(n,s,o).valueOf()}function po(n,s,o){if(n<100&&n>=0)return Date.UTC(n+400,s,o)-mo;else return Date.UTC(n,s,o)}function tg(n){var s,o;if(n=De(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?po:go,n){case"year":s=o(this.year(),0,1);break;case"quarter":s=o(this.year(),this.month()-this.month()%3,1);break;case"month":s=o(this.year(),this.month(),1);break;case"week":s=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":s=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":s=o(this.year(),this.month(),this.date());break;case"hour":s=this._d.valueOf(),s-=rr(s+(this._isUTC?0:this.utcOffset()*tr),Nn);break;case"minute":s=this._d.valueOf(),s-=rr(s,tr);break;case"second":s=this._d.valueOf(),s-=rr(s,Tn);break}return this._d.setTime(s),t.updateOffset(this,!0),this}function rg(n){var s,o;if(n=De(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?po:go,n){case"year":s=o(this.year()+1,0,1)-1;break;case"quarter":s=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":s=o(this.year(),this.month()+1,1)-1;break;case"week":s=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":s=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":s=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":s=this._d.valueOf(),s+=Nn-rr(s+(this._isUTC?0:this.utcOffset()*tr),Nn)-1;break;case"minute":s=this._d.valueOf(),s+=tr-rr(s,tr)-1;break;case"second":s=this._d.valueOf(),s+=Tn-rr(s,Tn)-1;break}return this._d.setTime(s),t.updateOffset(this,!0),this}function ng(){return this._d.valueOf()-(this._offset||0)*60000}function ig(){return Math.floor(this.valueOf()/1000)}function sg(){return new Date(this.valueOf())}function ag(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function og(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function ug(){return this.isValid()?this.toISOString():null}function lg(){return P(this)}function fg(){return _({},p(this))}function cg(){return p(this).overflow}function hg(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),R("N",Li),R("NN",Li),R("NNN",Li),R("NNNN",xg),R("NNNNN",Mg),X(["N","NN","NNN","NNNN","NNNNN"],function(n,s,o,l){var h=o._locale.erasParse(n,l,o._strict);if(h)p(o).era=h;else p(o).invalidEra=n}),R("y",Kt),R("yy",Kt),R("yyy",Kt),R("yyyy",Kt),R("yo",Eg),X(["y","yy","yyy","yyyy"],ve),X(["yo"],function(n,s,o,l){var h;if(o._locale._eraYearOrdinalRegex)h=n.match(o._locale._eraYearOrdinalRegex);if(o._locale.eraYearOrdinalParse)s[ve]=o._locale.eraYearOrdinalParse(n,h);else s[ve]=parseInt(n,10)});function dg(n,s){var o,l,h,m=this._eras||at("en")._eras;for(o=0,l=m.length;o<l;++o){switch(typeof m[o].since){case"string":h=t(m[o].since).startOf("day"),m[o].since=h.valueOf();break}switch(typeof m[o].until){case"undefined":m[o].until=1/0;break;case"string":h=t(m[o].until).startOf("day").valueOf(),m[o].until=h.valueOf();break}}return m}function mg(n,s,o){var l,h,m=this.eras(),y,D,C;n=n.toUpperCase();for(l=0,h=m.length;l<h;++l)if(y=m[l].name.toUpperCase(),D=m[l].abbr.toUpperCase(),C=m[l].narrow.toUpperCase(),o)switch(s){case"N":case"NN":case"NNN":if(D===n)return m[l];break;case"NNNN":if(y===n)return m[l];break;case"NNNNN":if(C===n)return m[l];break}else if([y,D,C].indexOf(n)>=0)return m[l]}function gg(n,s){var o=n.since<=n.until?1:-1;if(s===void 0)return t(n.since).year();else return t(n.since).year()+(s-n.offset)*o}function pg(){var n,s,o,l=this.localeData().eras();for(n=0,s=l.length;n<s;++n){if(o=this.clone().startOf("day").valueOf(),l[n].since<=o&&o<=l[n].until)return l[n].name;if(l[n].until<=o&&o<=l[n].since)return l[n].name}return""}function yg(){var n,s,o,l=this.localeData().eras();for(n=0,s=l.length;n<s;++n){if(o=this.clone().startOf("day").valueOf(),l[n].since<=o&&o<=l[n].until)return l[n].narrow;if(l[n].until<=o&&o<=l[n].since)return l[n].narrow}return""}function _g(){var n,s,o,l=this.localeData().eras();for(n=0,s=l.length;n<s;++n){if(o=this.clone().startOf("day").valueOf(),l[n].since<=o&&o<=l[n].until)return l[n].abbr;if(l[n].until<=o&&o<=l[n].since)return l[n].abbr}return""}function wg(){var n,s,o,l,h=this.localeData().eras();for(n=0,s=h.length;n<s;++n)if(o=h[n].since<=h[n].until?1:-1,l=this.clone().startOf("day").valueOf(),h[n].since<=l&&l<=h[n].until||h[n].until<=l&&l<=h[n].since)return(this.year()-t(h[n].since).year())*o+h[n].offset;return this.year()}function bg(n){if(!u(this,"_erasNameRegex"))Pi.call(this);return n?this._erasNameRegex:this._erasRegex}function vg(n){if(!u(this,"_erasAbbrRegex"))Pi.call(this);return n?this._erasAbbrRegex:this._erasRegex}function Sg(n){if(!u(this,"_erasNarrowRegex"))Pi.call(this);return n?this._erasNarrowRegex:this._erasRegex}function Li(n,s){return s.erasAbbrRegex(n)}function xg(n,s){return s.erasNameRegex(n)}function Mg(n,s){return s.erasNarrowRegex(n)}function Eg(n,s){return s._eraYearOrdinalRegex||Kt}function Pi(){var n=[],s=[],o=[],l=[],h,m,y,D,C,Z=this.eras();for(h=0,m=Z.length;h<m;++h)y=rt(Z[h].name),D=rt(Z[h].abbr),C=rt(Z[h].narrow),s.push(y),n.push(D),o.push(C),l.push(y),l.push(D),l.push(C);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ln(n,s){L(0,[n,n.length],0,s)}Ln("gggg","weekYear"),Ln("ggggg","weekYear"),Ln("GGGG","isoWeekYear"),Ln("GGGGG","isoWeekYear"),R("G",bn),R("g",bn),R("GG",te,Le),R("gg",te,Le),R("GGGG",pi,gi),R("gggg",pi,gi),R("GGGGG",wn,yn),R("ggggg",wn,yn),kr(["gggg","ggggg","GGGG","GGGGG"],function(n,s,o,l){s[l.substr(0,2)]=V(n)}),kr(["gg","GG"],function(n,s,o,l){s[l]=t.parseTwoDigitYear(n)});function Og(n){return yo.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function kg(n){return yo.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function Dg(){return st(this.year(),1,4)}function Rg(){return st(this.isoWeekYear(),1,4)}function Tg(){var n=this.localeData()._week;return st(this.year(),n.dow,n.doy)}function Ng(){var n=this.localeData()._week;return st(this.weekYear(),n.dow,n.doy)}function yo(n,s,o,l,h){var m;if(n==null)return Nr(this,l,h).year;else{if(m=st(n,l,h),s>m)s=m;return Lg.call(this,n,s,o,l,h)}}function Lg(n,s,o,l,h){var m=Va(n,s,o,l,h),y=Tr(m.year,0,m.dayOfYear);return this.year(y.getUTCFullYear()),this.month(y.getUTCMonth()),this.date(y.getUTCDate()),this}L("Q",0,"Qo","quarter"),R("Q",Ya),X("Q",function(n,s){s[nt]=(V(n)-1)*3});function Pg(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}L("D",["DD",2],"Do","date"),R("D",te,Qt),R("DD",te,Le),R("Do",function(n,s){return n?s._dayOfMonthOrdinalParse||s._ordinalParse:s._dayOfMonthOrdinalParseLenient}),X(["D","DD"],ze),X("Do",function(n,s){s[ze]=V(n.match(te)[0])});var _o=Xt("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),R("DDD",_n),R("DDDD",Fa),X(["DDD","DDDD"],function(n,s,o){o._dayOfYear=V(n)});function Ag(n){var s=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/86400000)+1;return n==null?s:this.add(n-s,"d")}L("m",["mm",2],0,"minute"),R("m",te,yi),R("mm",te,Le),X(["m","mm"],Fe);var qg=Xt("Minutes",!1);L("s",["ss",2],0,"second"),R("s",te,yi),R("ss",te,Le),X(["s","ss"],it);var Yg=Xt("Seconds",!1);L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return this.millisecond()*10}),L(0,["SSSSS",5],0,function(){return this.millisecond()*100}),L(0,["SSSSSS",6],0,function(){return this.millisecond()*1000}),L(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),L(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),L(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),R("S",_n,Ya),R("SS",_n,Le),R("SSS",_n,Fa);var pt,wo;for(pt="SSSS";pt.length<=9;pt+="S")R(pt,Kt);function Fg(n,s){s[Dt]=V(("0."+n)*1000)}for(pt="S";pt.length<=9;pt+="S")X(pt,Fg);wo=Xt("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");function Cg(){return this._isUTC?"UTC":""}function jg(){return this._isUTC?"Coordinated Universal Time":""}var x=B.prototype;if(x.add=Nm,x.calendar=Cm,x.clone=jm,x.diff=Gm,x.endOf=rg,x.format=Jm,x.from=Km,x.fromNow=Qm,x.to=Xm,x.toNow=eg,x.get=Zh,x.invalidAt=cg,x.isAfter=Im,x.isBefore=Wm,x.isBetween=$m,x.isSame=Hm,x.isSameOrAfter=Um,x.isSameOrBefore=zm,x.isValid=lg,x.lang=co,x.locale=fo,x.localeData=ho,x.max=lm,x.min=um,x.parsingFlags=fg,x.set=Jh,x.startOf=tg,x.subtract=Lm,x.toArray=ag,x.toObject=og,x.toDate=sg,x.toISOString=Bm,x.inspect=Zm,typeof Symbol<"u"&&Symbol.for!=null)x[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"};x.toJSON=ug,x.toString=Vm,x.unix=ig,x.valueOf=ng,x.creationData=hg,x.eraName=pg,x.eraNarrow=yg,x.eraAbbr=_g,x.eraYear=wg,x.year=Ia,x.isLeapYear=Bh,x.weekYear=Og,x.isoWeekYear=kg,x.quarter=x.quarters=Pg,x.month=za,x.daysInMonth=sd,x.week=x.weeks=dd,x.isoWeek=x.isoWeeks=md,x.weeksInYear=Tg,x.weeksInWeekYear=Ng,x.isoWeeksInYear=Dg,x.isoWeeksInISOWeekYear=Rg,x.date=_o,x.day=x.days=kd,x.weekday=Dd,x.isoWeekday=Rd,x.dayOfYear=Ag,x.hour=x.hours=Yd,x.minute=x.minutes=qg,x.second=x.seconds=Yg,x.millisecond=x.milliseconds=wo,x.utcOffset=_m,x.utc=bm,x.local=vm,x.parseZone=Sm,x.hasAlignedHourOffset=xm,x.isDST=Mm,x.isLocal=Om,x.isUtcOffset=km,x.isUtc=so,x.isUTC=so,x.zoneAbbr=Cg,x.zoneName=jg,x.dates=I("dates accessor is deprecated. Use date instead.",_o),x.months=I("months accessor is deprecated. Use month instead",za),x.years=I("years accessor is deprecated. Use year instead",Ia),x.zone=I("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wm),x.isDSTShifted=I("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Em);function Ig(n){return re(n*1000)}function Wg(){return re.apply(null,arguments).parseZone()}function bo(n){return n}var Q=we.prototype;Q.calendar=T,Q.longDateFormat=mn,Q.invalidDate=gn,Q.ordinal=Bt,Q.preparse=bo,Q.postformat=bo,Q.relativeTime=kt,Q.pastFuture=mt,Q.set=fe,Q.eras=dg,Q.erasParse=mg,Q.erasConvertYear=gg,Q.erasAbbrRegex=vg,Q.erasNameRegex=bg,Q.erasNarrowRegex=Sg,Q.months=td,Q.monthsShort=rd,Q.monthsParse=id,Q.monthsRegex=od,Q.monthsShortRegex=ad,Q.week=ld,Q.firstDayOfYear=hd,Q.firstDayOfWeek=cd,Q.weekdays=Sd,Q.weekdaysMin=Md,Q.weekdaysShort=xd,Q.weekdaysParse=Od,Q.weekdaysRegex=Td,Q.weekdaysShortRegex=Nd,Q.weekdaysMinRegex=Ld,Q.isPM=Ad,Q.meridiem=Fd;function Pn(n,s,o,l){var h=at(),m=w().set(l,s);return h[o](m,n)}function vo(n,s,o){if(d(n))s=n,n=void 0;if(n=n||"",s!=null)return Pn(n,s,o,"month");var l,h=[];for(l=0;l<12;l++)h[l]=Pn(n,l,o,"month");return h}function Ai(n,s,o,l){if(typeof n==="boolean"){if(d(s))o=s,s=void 0;s=s||""}else{if(s=n,o=s,n=!1,d(s))o=s,s=void 0;s=s||""}var h=at(),m=n?h._week.dow:0,y,D=[];if(o!=null)return Pn(s,(o+m)%7,l,"day");for(y=0;y<7;y++)D[y]=Pn(s,(y+m)%7,l,"day");return D}function $g(n,s){return vo(n,s,"months")}function Hg(n,s){return vo(n,s,"monthsShort")}function Ug(n,s,o){return Ai(n,s,o,"weekdays")}function zg(n,s,o){return Ai(n,s,o,"weekdaysShort")}function Gg(n,s,o){return Ai(n,s,o,"weekdaysMin")}gt("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(n){var s=n%10,o=V(n%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th";return n+o}}),t.lang=I("moment.lang is deprecated. Use moment.locale instead.",gt),t.langData=I("moment.langData is deprecated. Use moment.localeData instead.",at);var ot=Math.abs;function Vg(){var n=this._data;return this._milliseconds=ot(this._milliseconds),this._days=ot(this._days),this._months=ot(this._months),n.milliseconds=ot(n.milliseconds),n.seconds=ot(n.seconds),n.minutes=ot(n.minutes),n.hours=ot(n.hours),n.months=ot(n.months),n.years=ot(n.years),this}function So(n,s,o,l){var h=Ce(s,o);return n._milliseconds+=l*h._milliseconds,n._days+=l*h._days,n._months+=l*h._months,n._bubble()}function Bg(n,s){return So(this,n,s,1)}function Zg(n,s){return So(this,n,s,-1)}function xo(n){if(n<0)return Math.floor(n);else return Math.ceil(n)}function Jg(){var n=this._milliseconds,s=this._days,o=this._months,l=this._data,h,m,y,D,C;if(!(n>=0&&s>=0&&o>=0||n<=0&&s<=0&&o<=0))n+=xo(qi(o)+s)*86400000,s=0,o=0;return l.milliseconds=n%1000,h=Ae(n/1000),l.seconds=h%60,m=Ae(h/60),l.minutes=m%60,y=Ae(m/60),l.hours=y%24,s+=Ae(y/24),C=Ae(Mo(s)),o+=C,s-=xo(qi(C)),D=Ae(o/12),o%=12,l.days=s,l.months=o,l.years=D,this}function Mo(n){return n*4800/146097}function qi(n){return n*146097/4800}function Kg(n){if(!this.isValid())return NaN;var s,o,l=this._milliseconds;if(n=De(n),n==="month"||n==="quarter"||n==="year")switch(s=this._days+l/86400000,o=this._months+Mo(s),n){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(s=this._days+Math.round(qi(this._months)),n){case"week":return s/7+l/604800000;case"day":return s+l/86400000;case"hour":return s*24+l/3600000;case"minute":return s*1440+l/60000;case"second":return s*86400+l/1000;case"millisecond":return Math.floor(s*86400000)+l;default:throw Error("Unknown unit "+n)}}function ut(n){return function(){return this.as(n)}}var Eo=ut("ms"),Qg=ut("s"),Xg=ut("m"),ep=ut("h"),tp=ut("d"),rp=ut("w"),np=ut("M"),ip=ut("Q"),sp=ut("y"),ap=Eo;function op(){return Ce(this)}function up(n){return n=De(n),this.isValid()?this[n+"s"]():NaN}function Tt(n){return function(){return this.isValid()?this._data[n]:NaN}}var lp=Tt("milliseconds"),fp=Tt("seconds"),cp=Tt("minutes"),hp=Tt("hours"),dp=Tt("days"),mp=Tt("months"),gp=Tt("years");function pp(){return Ae(this.days()/7)}var lt=Math.round,nr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function yp(n,s,o,l,h){return h.relativeTime(s||1,!!o,n,l)}function _p(n,s,o,l){var h=Ce(n).abs(),m=lt(h.as("s")),y=lt(h.as("m")),D=lt(h.as("h")),C=lt(h.as("d")),Z=lt(h.as("M")),xe=lt(h.as("w")),ft=lt(h.as("y")),yt=m<=o.ss&&["s",m]||m<o.s&&["ss",m]||y<=1&&["m"]||y<o.m&&["mm",y]||D<=1&&["h"]||D<o.h&&["hh",D]||C<=1&&["d"]||C<o.d&&["dd",C];if(o.w!=null)yt=yt||xe<=1&&["w"]||xe<o.w&&["ww",xe];return yt=yt||Z<=1&&["M"]||Z<o.M&&["MM",Z]||ft<=1&&["y"]||["yy",ft],yt[2]=s,yt[3]=+n>0,yt[4]=l,yp.apply(null,yt)}function wp(n){if(n===void 0)return lt;if(typeof n==="function")return lt=n,!0;return!1}function bp(n,s){if(nr[n]===void 0)return!1;if(s===void 0)return nr[n];if(nr[n]=s,n==="s")nr.ss=s-1;return!0}function vp(n,s){if(!this.isValid())return this.localeData().invalidDate();var o=!1,l=nr,h,m;if(typeof n==="object")s=n,n=!1;if(typeof n==="boolean")o=n;if(typeof s==="object"){if(l=Object.assign({},nr,s),s.s!=null&&s.ss==null)l.ss=s.s-1}if(h=this.localeData(),m=_p(this,!o,l,h),o)m=h.pastFuture(+this,m);return h.postformat(m)}var Yi=Math.abs;function ir(n){return(n>0)-(n<0)||+n}function An(){if(!this.isValid())return this.localeData().invalidDate();var n=Yi(this._milliseconds)/1000,s=Yi(this._days),o=Yi(this._months),l,h,m,y,D=this.asSeconds(),C,Z,xe,ft;if(!D)return"P0D";return l=Ae(n/60),h=Ae(l/60),n%=60,l%=60,m=Ae(o/12),o%=12,y=n?n.toFixed(3).replace(/\.?0+$/,""):"",C=D<0?"-":"",Z=ir(this._months)!==ir(D)?"-":"",xe=ir(this._days)!==ir(D)?"-":"",ft=ir(this._milliseconds)!==ir(D)?"-":"",C+"P"+(m?Z+m+"Y":"")+(o?Z+o+"M":"")+(s?xe+s+"D":"")+(h||l||n?"T":"")+(h?ft+h+"H":"")+(l?ft+l+"M":"")+(n?ft+y+"S":"")}var J=kn.prototype;J.isValid=mm,J.abs=Vg,J.add=Bg,J.subtract=Zg,J.as=Kg,J.asMilliseconds=Eo,J.asSeconds=Qg,J.asMinutes=Xg,J.asHours=ep,J.asDays=tp,J.asWeeks=rp,J.asMonths=np,J.asQuarters=ip,J.asYears=sp,J.valueOf=ap,J._bubble=Jg,J.clone=op,J.get=up,J.milliseconds=lp,J.seconds=fp,J.minutes=cp,J.hours=hp,J.days=dp,J.weeks=pp,J.months=mp,J.years=gp,J.humanize=vp,J.toISOString=An,J.toString=An,J.toJSON=An,J.locale=fo,J.localeData=ho,J.toIsoString=I("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",An),J.lang=co,L("X",0,0,"unix"),L("x",0,0,"valueOf"),R("x",bn),R("X",$h),X("X",function(n,s,o){o._d=new Date(parseFloat(n)*1000)}),X("x",function(n,s,o){o._d=new Date(V(n))});//! moment.js
|
|
44
|
+
return t.version="2.30.1",r(re),t.fn=x,t.min=fm,t.max=cm,t.now=hm,t.utc=w,t.unix=Ig,t.months=$g,t.isDate=g,t.locale=gt,t.invalid=A,t.duration=Ce,t.isMoment=Y,t.weekdays=Ug,t.parseZone=Wg,t.localeData=at,t.isDuration=Dn,t.monthsShort=Hg,t.weekdaysMin=Gg,t.defineLocale=xi,t.updateLocale=Wd,t.locales=$d,t.weekdaysShort=zg,t.normalizeUnits=De,t.relativeTimeRounding=wp,t.relativeTimeThreshold=bp,t.calendarFormat=Fm,t.prototype=x,t.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"},t})});var kh=b(function(Px,Oh){/*!
|
|
45
45
|
* FileStreamRotator
|
|
46
46
|
* Copyright(c) 2012-2017 Holiday Extras.
|
|
47
47
|
* Copyright(c) 2017 Roger C.
|
|
48
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(
|
|
49
|
+
*/var le=j("fs"),Ot=j("path"),zt=vh(),xh=j("crypto"),cS=j("events"),et={};Oh.exports=et;var Mh=["daily","test","m","h","custom"],Eh="YYYYMMDDHHmm",hS=function(e,t){if(typeof t=="number"){switch(e){case"m":if(t<0||t>60)return!1;break;case"h":if(t<0||t>24)return!1;break}return{type:e,digit:t}}},dS=function(e){switch(e){case"custom":case"daily":return{type:e,digit:void 0};case"test":return{type:e,digit:0}}return!1};et.getFrequency=function(e){var t=e.toLowerCase().match(/^(\d+)([mh])$/);if(t)return hS(t[2],parseInt(t[1]));var r=dS(e);if(r)return r;return!1};et.parseFileSize=function(e){if(e&&typeof e=="string"){var t=e.toLowerCase().match(/^((?:0\.)?\d+)([kmg])$/);if(t)switch(t[2]){case"k":return t[1]*1024;case"m":return t[1]*1024*1024;case"g":return t[1]*1024*1024*1024}}return null};et.getDate=function(e,t,r){t=t||Eh;let i=r?zt.utc():zt().local();if(e&&Mh.indexOf(e.type)!==-1)switch(e.type){case"m":var a=Math.floor(i.minutes()/e.digit)*e.digit;return i.minutes(a).format(t);case"h":var u=Math.floor(i.hour()/e.digit)*e.digit;return i.hour(u).format(t);case"daily":case"custom":case"test":return i.format(t)}return i.format(t)};et.setAuditLog=function(e,t,r){var i=null;if(e){var a=e.toString().substr(-1),u=e.toString().match(/^(\d+)/);if(Number(u[1])>0){var f=Ot.dirname(r.replace(/%DATE%.+/,"_filename"));try{if(t){var c=Ot.resolve(t);i=JSON.parse(le.readFileSync(c,{encoding:"utf-8"}))}else{var c=Ot.resolve(f+"/.audit.json");i=JSON.parse(le.readFileSync(c,{encoding:"utf-8"}))}}catch(d){if(d.code!=="ENOENT")return null;i={keep:{days:!1,amount:Number(u[1])},auditLog:t||f+"/.audit.json",files:[]}}i.keep={days:a==="d",amount:Number(u[1])}}}return i};et.writeAuditLog=function(e,t){try{Aa(e.auditLog),le.writeFileSync(e.auditLog,JSON.stringify(e,null,4))}catch(r){if(t)console.error(new Date,"[FileStreamRotator] Failed to store log audit at:",e.auditLog,"Error:",r)}};function Sh(e,t){if(e.hash===xh.createHash(e.hashType).update(e.name+"LOG_FILE"+e.date).digest("hex"))try{if(le.existsSync(e.name))le.unlinkSync(e.name)}catch(r){if(t)console.error(new Date,"[FileStreamRotator] Could not remove old log file: ",e.name)}}function mS(e,t,r){let i=t||"current.log",a=Ot.dirname(e),u=Ot.basename(e),f=a+"/"+i;try{if(le.lstatSync(f).isSymbolicLink())le.unlinkSync(f),le.symlinkSync(u,f)}catch(c){if(c&&c.code=="ENOENT")try{le.symlinkSync(u,f)}catch(d){if(r)console.error(new Date,"[FileStreamRotator] Could not create symlink file: ",f," -> ",u)}}}function gS(e,t,r){if(!e)return null;try{let i=le.lstatSync(e);return le.watch(e,function(a,u){if(a=="rename")try{let f=le.lstatSync(e)}catch(f){r(f,e)}})}catch(i){if(t)console.log(new Date,"[FileStreamRotator] Could not add watcher for "+e)}}et.addLogToAudit=function(e,t,r,i){if(t&&t.files){var a=t.files.findIndex(function(g){return g.name===e});if(a!==-1)return t;var u=Date.now();if(t.files.push({date:u,name:e,hash:xh.createHash(t.hashType).update(e+"LOG_FILE"+u).digest("hex")}),t.keep.days){var f=zt().subtract(t.keep.amount,"days").valueOf(),c=t.files.filter(function(g){if(g.date>f)return!0;return g.hashType=t.hashType,Sh(g,i),r.emit("logRemoved",g),!1});t.files=c}else{var d=t.files.splice(-t.keep.amount);if(t.files.length>0)t.files.filter(function(g){return g.hashType=t.hashType,Sh(g,i),r.emit("logRemoved",g),!1});t.files=d}et.writeAuditLog(t,i)}return t};et.getStream=function(e){var t=null,r=null,i=this;if(!e.filename)return console.error(new Date,"[FileStreamRotator] No filename supplied. Defaulting to STDOUT"),process.stdout;if(e.frequency)t=i.getFrequency(e.frequency);let a=i.setAuditLog(e.max_logs,e.audit_file,e.filename);if(a!=null)a.hashType=e.audit_hash_type!==void 0?e.audit_hash_type:"md5";i.verbose=e.verbose!==void 0?e.verbose:!0;var u=null,f=0,c=0;if(e.size)u=et.parseFileSize(e.size);var d=e.date_format||Eh;if(t&&t.type=="daily"){if(!e.date_format)d="YYYY-MM-DD";if(zt().format(d)!=zt().endOf("day").format(d)||zt().format(d)==zt().add(1,"day").format(d)){if(i.verbose)console.log(new Date,"[FileStreamRotator] Changing type to custom as date format changes more often than once a day or not every day");t.type="custom"}}if(t)r=e.frequency?i.getDate(t,d,e.utc):"";e.create_symlink=e.create_symlink||!1,e.extension=e.extension||"";var g=e.filename,v=null,_=g+(r?"."+r:"");if(g.match(/%DATE%/))_=g.replace(/%DATE%/g,r?r:i.getDate(null,d,e.utc));if(u){var w=null,E=_,p=null;if(a&&a.files&&a.files instanceof Array&&a.files.length>0){var M=a.files[a.files.length-1].name;if(M.match(E)){var P=M.match(E+"\\.(\\d+)");if(P)E=M,f=P[1]}}if(f==0&&E==_)E+=e.extension;while(p=le.existsSync(E))w=E,f++,E=_+"."+f+e.extension;if(w){var A=le.statSync(w);if(A.size<u)E=w,f--,c=A.size}_=E}else _+=e.extension;if(i.verbose)console.log(new Date,"[FileStreamRotator] Logging to: ",_);Aa(_);var W=e.file_options||{flags:"a"},O=le.createWriteStream(_,W);if(r&&t&&Mh.indexOf(t.type)>-1||u>0){if(i.verbose)console.log(new Date,"[FileStreamRotator] Rotating file: ",t?t.type:"",u?"size: "+u:"");var N=new cS;N.auditLog=a,N.end=function(){O.end.apply(O,arguments)},Pa(O,N),N.on("close",function(){if(B)B.close()}),N.on("new",function(Y){if(N.auditLog=i.addLogToAudit(Y,N.auditLog,N,i.verbose),e.create_symlink)mS(Y,e.symlink_name,i.verbose);if(e.watch_log)N.emit("addWatcher",Y)});var B;return N.on("addWatcher",function(Y){if(B)B.close();if(!e.watch_log)return;B=gS(Y,i.verbose,function(H,I){N.emit("createLog",I)})}),N.on("createLog",function(Y){try{let H=le.lstatSync(Y)}catch(H){if(O&&O.end=="function")O.end();O=le.createWriteStream(Y,W),N.emit("new",Y),Pa(O,N)}}),N.write=function(Y,H){var I=t?this.getDate(t,d,e.utc):r;if(I!=r||u&&c>u){var F=g+(r&&t?"."+I:"");if(g.match(/%DATE%/)&&r)F=g.replace(/%DATE%/g,I);if(u&&c>u)f++,F+="."+f+e.extension;else f=0,F+=e.extension;if(c=0,i.verbose)console.log(new Date,j("util").format("[FileStreamRotator] Changing logs from %s to %s",_,F));if(r=I,v=_,_=F,e.end_stream===!0)O.end();else O.destroy();Aa(_),O=le.createWriteStream(F,W),N.emit("new",F),N.emit("rotate",v,F),Pa(O,N)}O.write(Y,H),c+=Buffer.byteLength(Y,H)}.bind(this),process.nextTick(function(){N.emit("new",_)}),N.emit("new",_),N}else{if(i.verbose)console.log(new Date,"[FileStreamRotator] File won't be rotated: ",e.frequency,e.size);return process.nextTick(function(){O.emit("new",_)}),O}};var Aa=function(e){var t=Ot.dirname(e);t.split(Ot.sep).reduce(function(r,i){if(r+=i+Ot.sep,!le.existsSync(r))try{le.mkdirSync(r)}catch(a){if(a.code!=="EEXIST")throw a}return r},"")},Pa=function(t,r){t.on("close",function(){r.emit("close")}),t.on("finish",function(){r.emit("finish")}),t.on("error",function(i){r.emit("error",i)}),t.on("open",function(i){r.emit("open",i)})}});var Lh=b(function(Ax,Nh){var dt=j("fs"),pS=j("os"),xr=j("path"),yS=j("util"),Dh=j("zlib"),_S=bh(),wS=oe().MESSAGE,Rh=j("stream").PassThrough,Th=It(),bS={json:!1,colorize:!1,eol:pS.EOL,logstash:null,prettyPrint:!1,label:null,stringify:!1,depth:null,showLevel:!0,timestamp:()=>new Date().toISOString()},Mr=function(e){e=e||{},Th.call(this,e);function t(u){Array.prototype.slice.call(arguments,1).forEach((f)=>{if(e[f])throw Error("Cannot set "+f+" and "+u+" together")})}function r(u){if(u&&typeof u==="string"){if(u.toLowerCase().match(/^((?:0\.)?\d+)([kmg])$/))return u}else if(u&&Number.isInteger(u)){let f=Math.round(u/1024);return f===0?"1k":f+"k"}return null}function i(u){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(u)}function a(u){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(u)}if(this.options=Object.assign({},bS,e),e.stream)t("stream","filename","maxsize"),this.logStream=new Rh,this.logStream.pipe(e.stream);else{if(this.filename=e.filename?xr.basename(e.filename):"winston.log",this.dirname=e.dirname||xr.dirname(e.filename),!i(this.filename)||!a(this.dirname))throw Error("Your path or filename contain an invalid character.");if(this.logStream=kh().getStream({filename:xr.join(this.dirname,this.filename),frequency:e.frequency?e.frequency:"custom",date_format:e.datePattern?e.datePattern:"YYYY-MM-DD",verbose:!1,size:r(e.maxSize),max_logs:e.maxFiles,end_stream:!0,audit_file:e.auditFile?e.auditFile:xr.join(this.dirname,"."+_S(e)+"-audit.json"),file_options:e.options?e.options:{flags:"a"},utc:e.utc?e.utc:!1,extension:e.extension?e.extension:"",create_symlink:e.createSymlink?e.createSymlink:!1,symlink_name:e.symlinkName?e.symlinkName:"current.log",watch_log:e.watchLog?e.watchLog:!1,audit_hash_type:e.auditHashType?e.auditHashType:"sha256"}),this.logStream.on("new",(u)=>{this.emit("new",u)}),this.logStream.on("rotate",(u,f)=>{this.emit("rotate",u,f)}),this.logStream.on("logRemoved",(u)=>{if(e.zippedArchive){let f=u.name+".gz";try{dt.unlinkSync(f)}catch(c){if(c.code!=="ENOENT"){c.message=`Error occurred while removing ${f}: ${c.message}`,this.emit("error",c);return}}this.emit("logRemoved",f);return}this.emit("logRemoved",u.name)}),e.zippedArchive)this.logStream.on("rotate",(u)=>{try{if(!dt.existsSync(u))return}catch(g){g.message=`Error occurred while checking existence of ${u}: ${g.message}`,this.emit("error",g);return}try{if(dt.existsSync(`${u}.gz`))return}catch(g){g.message=`Error occurred while checking existence of ${u}.gz: ${g.message}`,this.emit("error",g);return}let f=Dh.createGzip(),c=dt.createReadStream(u);c.on("error",(g)=>{g.message=`Error occurred while reading ${u}: ${g.message}`,this.emit("error",g)});let d=dt.createWriteStream(u+".gz");d.on("error",(g)=>{g.message=`Error occurred while writing ${u}.gz: ${g.message}`,this.emit("error",g)}),c.pipe(f).pipe(d).on("finish",()=>{try{dt.unlinkSync(u)}catch(g){if(g.code!=="ENOENT"){g.message=`Error occurred while removing ${u}: ${g.message}`,this.emit("error",g);return}}this.emit("archive",u+".gz")})});if(e.watchLog)this.logStream.on("addWatcher",(u)=>{this.emit("addWatcher",u)})}};Nh.exports=Mr;yS.inherits(Mr,Th);Mr.prototype.name="dailyRotateFile";var vS=function(){};Mr.prototype.log=function(e,t){t=t||vS,this.logStream.write(e[wS]+this.options.eol),this.emit("logged",e),t(null,!0)};Mr.prototype.close=function(){if(this.logStream)this.logStream.end(()=>{this.emit("finish")})};Mr.prototype.query=function(e,t){if(typeof e==="function")t=e,e={};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 r=[];if(e=e||{},e.rows=e.rows||e.limit||10,e.start=e.start||0,e.until=e.until||new Date,typeof e.until!=="object")e.until=new Date(e.until);if(e.from=e.from||e.until-86400000,typeof e.from!=="object")e.from=new Date(e.from);e.order=e.order||"desc";let i=(()=>{let u=new RegExp(this.filename.replace("%DATE%",".*"),"i");return dt.readdirSync(this.dirname).filter((f)=>xr.basename(f).match(u))})();if(i.length===0&&t)t(null,r);let a=(u)=>{if(!u)return;let f=xr.join(this.dirname,u),c="",d;if(u.endsWith(".gz")){d=new Rh;let v=dt.createReadStream(f);v.on("error",(_)=>{_.message=`Error occurred while reading ${f}: ${_.message}`,d.emit("error",_)}),v.pipe(Dh.createGunzip()).pipe(d)}else d=dt.createReadStream(f,{encoding:"utf8"});d.on("error",(v)=>{if(d.readable)d.destroy();if(!t)return;return v.code==="ENOENT"?t(null,r):t(v)}),d.on("data",(v)=>{v=(c+v).split(/\n+/);let _=v.length-1;for(let w=0;w<_;w++)g(v[w]);c=v[_]}),d.on("end",()=>{if(c)g(c,!0);if(i.length)a(i.shift());else if(t){if(r.sort((w,E)=>{let p=new Date(w.timestamp).getTime(),M=new Date(E.timestamp).getTime();return p>M?1:p<M?-1:0}),e.order==="desc")r=r.reverse();let v=e.start||0,_=e.limit||r.length;if(r=r.slice(v,v+_),e.fields)r=r.map((w)=>{let E={};return e.fields.forEach((p)=>{E[p]=w[p]}),E});t(null,r)}});function g(v,_){try{let w=JSON.parse(v);if(!w||typeof w!=="object")return;let E=new Date(w.timestamp);if(e.from&&E<e.from||e.until&&E>e.until||e.level&&e.level!==w.level)return;r.push(w)}catch(w){if(!_)d.emit("error",w)}}};a(i.shift())}});var qh=b(function(qx,Ah){var SS=Ra(),Ph=Lh();SS.transports.DailyRotateFile=Ph;Ah.exports=Ph});import cn from"path";import Er from"fs";import Ve from"path";var qr={},Yr=Fi(),{isBunRuntime:je,isCloudflareRuntime:Ro,isNodeRuntime:Dp,hasFileSystemAccess:Ge,console:sr}=Yr,To=qr;Ci();function Me(e,t){let r=typeof process<"u"?process.env:void 0,i=r?r[e]:void 0,a=je?Bun?.env?.[e]:void 0,u=To[e],f=typeof u==="string"?u:void 0,c=Ro?f??i??a:i??a??f;return c===void 0||c===""?t:c}function NS(e,t){if(typeof process<"u")process.env[e]=t;To[e]=t}function LS(e){globalThis.__hapiRuntimeOverride="cloudflare",No(),Object.assign(qr,e)}function PS(){delete globalThis.__hapiRuntimeOverride,No()}async function AS(e){if(!je)throw Error(`File system access not available in this runtime: ${e}`);return await Bun.file(e).text()}async function qS(e){if(!je)throw Error(`File system access not available in this runtime: ${e}`);return await Bun.file(e).json()}async function YS(e){return je?await Bun.file(e).exists():!1}function FS(e){if(!je)throw Error(`File system access not available in this runtime: ${e}`);return Bun.file(e)}function No(){let e=Fi();Ao(e),Ci()}function Lo(){if(Ge)return;if(Po()!==void 0)return;let e=Fi();Ao(e),Ci()}function Fi(){let e=Po(),t=Rp(e),r=t?!1:Tp(e),i=Np(e,r);return{isBunRuntime:t,isCloudflareRuntime:r,isNodeRuntime:i,hasFileSystemAccess:!r&&(t||i),console:Lp()}}function Rp(e){if(e==="bun")return!0;if(e==="cloudflare"||e==="node")return!1;return typeof Bun<"u"}function Tp(e){if(e==="cloudflare")return!0;if(e==="bun"||e==="node")return!1;let t=typeof globalThis<"u"?globalThis:void 0,r=t?.navigator?.userAgent??"",i=typeof r==="string"&&r.includes("Cloudflare-Workers"),a=typeof t?.__ENVIRONMENT__==="string"&&t.__ENVIRONMENT__.toLowerCase()==="workerd",u=typeof t?.caches?.default<"u";return i||a||u}function Np(e,t){if(e==="node")return!0;if(e==="bun"||e==="cloudflare")return!1;if(t)return!1;let r=typeof process<"u"?process.versions?.node:void 0;return typeof r==="string"&&r.length>0}function Po(){return typeof globalThis<"u"?globalThis.__hapiRuntimeOverride:void 0}function Lp(){let e=()=>{},t=typeof console<"u"?console:void 0;if(!t)return{log:e,info:e,warn:e,error:e,debug:e};let r=(a,u)=>typeof a==="function"?a.bind(t):u,i=r(t.log,e);return{log:i,info:r(t.info,i),warn:r(t.warn,i),error:r(t.error,i),debug:r(t.debug,i)}}function Ao(e){je=e.isBunRuntime,Ro=e.isCloudflareRuntime,Dp=e.isNodeRuntime,Ge=e.hasFileSystemAccess,sr=e.console}function Ci(){let e=Pp();for(let t of Object.keys(qr))delete qr[t];Object.assign(qr,e)}function Pp(){if(je)return{...typeof Bun<"u"?Bun.env:{},...typeof process<"u"?process.env:{}};return(typeof process<"u"?process:void 0)?.env??{}}var _t=Ge?qo():Yo(),{home:Ap,specs:qp,config:Yp,src:Fp,logs:Ii,certs:Cp,plugins:jp}=_t;function WS(){return{..._t}}function $S(){return Ge?qo():Yo()}function qo(){let e=Me("HAPI_HOME"),t=e&&e.trim().length>0?Wp(e):Ip();return Fo(t)}function Yo(){return Fo("/hapi")}function Fo(e){return{home:e,specs:Ve.join(e,"specs"),config:Ve.join(e,"config"),src:Ve.join(e,"src"),logs:Ve.join(e,"logs"),certs:Ve.join(e,"certs"),plugins:Ve.join(e,"plugins")}}function Ip(){return Ve.join(ji(),".hapi")}function Wp(e){let t=e.trim(),r=t==="~"?ji():t.replace(/^~(?=[\\/])/,ji());return Ve.resolve(r)}function ji(){let e=je?globalThis.Bun?.env??{}:{},t=e.HOME??e.USERPROFILE??Me("HOME")??Me("USERPROFILE")??$p(Me("HOMEDRIVE"),Me("HOMEPATH"));return t?Ve.resolve(t):Ve.resolve(".")}function $p(e,t){if(!e||!t)return;return`${e}${t}`}async function Hp(e){if(!Ge)return;try{let t=await import("fs/promises");await t.mkdir(e,{recursive:!0})}catch{}}async function HS(){if(!Ge)return;await Promise.all([Ap,qp,Yp,Fp,Ii,Cp,jp].map(Hp))}var Se=null;Lo();if(Ge)try{let e=await Promise.resolve().then(() => Do(Ra(),1));await Promise.resolve().then(() => Do(qh(),1)),Se=e.default??e}catch{Se=null}var xS=typeof globalThis.it==="function"&&typeof globalThis.describe==="function",Ch=je&&typeof globalThis.Bun<"u"&&Array.isArray(globalThis.Bun.argv)&&globalThis.Bun.argv.includes("test")||xS,Yh=()=>{let e=Me("NODE_ENV");return e==="production"||!e||e!=="development"},Fh=Me("LOG_DIR"),MS=()=>Ch?cn.resolve(process.cwd(),".test-hapi-home/logs"):Ii;Se?.addColors({http:"magenta",debug:"grey"});var ES=Se?.format.colorize(),OS=Se?Se.format.combine(Se.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),Se.format.printf((e)=>{let{timestamp:t,level:r,message:i,...a}=e,u=Object.keys(a).length?`
|
|
50
|
+
${JSON.stringify(a,null,2)}`:"";return ES?.colorize(r,`${t} [${r.toUpperCase()}]: ${i}${u}`)??`${t} [${r.toUpperCase()}]: ${i}${u}`})):void 0,kS=Se?Se.format.combine(Se.format.timestamp(),Se.format.json()):void 0,DS=(e)=>{let t=`[${e}]`,r=(i,...a)=>{(sr[i]??sr.log)(t,...a)};return{log:(i,...a)=>{(sr[typeof i==="string"?i:"log"]??sr.log)(t,...a)},info:(...i)=>r("info",...i),warn:(...i)=>r("warn",...i),error:(...i)=>r("error",...i),debug:(...i)=>r("debug",...i)}};function RS(e){let t=typeof e==="string"?{projectname:e}:e,r=t.projectname,i=Me("NODE_ENV")==="test"||Ch,a=t.disableFileLogs||i&&Me("HAPI_ENABLE_TEST_FILE_LOGS")!=="true"||Me("HAPI_DISABLE_FILE_LOGS")==="true";if(!Se)return DS(r);let u=t.logDir?cn.resolve(t.logDir):Fh?cn.resolve(Fh):MS(),f=!a;if(f&&Ge)try{Er.mkdirSync(u,{recursive:!0});try{Er.accessSync(u,Er.constants.W_OK)}catch{throw Error("No write permission in log dir")}}catch{try{u=cn.resolve(process.cwd(),".test-hapi-home/logs"),Er.mkdirSync(u,{recursive:!0}),Er.accessSync(u,Er.constants.W_OK)}catch{f=!1}}let c=[];if(f)c.push(new Se.transports.DailyRotateFile({filename:cn.join(u,`${r}-hapi-%DATE%.log`),datePattern:"YYYY-MM-DD",maxSize:"20m",maxFiles:"14d",format:kS}));if(!Yh()||a||!f)c.push(new Se.transports.Console({format:OS}));return Se.createLogger({level:Yh()?Me("HAPI_LOG_LEVEL_PROD")??"info":Me("HAPI_LOG_LEVEL_DEV")??"debug",transports:c})}var qa=null;function fn(){if(!qa){let e=Me("HAPI_PROJECT_NAME")??"hapi";qa=RS(e)}return qa}var Ix={log:(...e)=>fn().log(...e),info:(...e)=>fn().info(...e),warn:(...e)=>fn().warn(...e),error:(...e)=>fn().error(...e),debug:(...e)=>fn().debug(...e)};export{RS as createLogger,Ix as logger};
|