@rife/logger 0.0.5-beta.9 → 0.0.6-beta.3

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.
@@ -0,0 +1,2856 @@
1
+ var __webpack_modules__ = {
2
+ "../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js": function(module1) {
3
+ "use strict";
4
+ if ('undefined' != typeof SharedArrayBuffer && 'undefined' != typeof Atomics) {
5
+ const nil = new Int32Array(new SharedArrayBuffer(4));
6
+ function sleep(ms) {
7
+ const valid = ms > 0 && ms < 1 / 0;
8
+ if (false === valid) {
9
+ if ('number' != typeof ms && 'bigint' != typeof ms) throw TypeError('sleep: ms must be a number');
10
+ throw RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity');
11
+ }
12
+ Atomics.wait(nil, 0, 0, Number(ms));
13
+ }
14
+ module1.exports = sleep;
15
+ } else {
16
+ function sleep1(ms) {
17
+ const valid = ms > 0 && ms < 1 / 0;
18
+ if (false === valid) {
19
+ if ('number' != typeof ms && 'bigint' != typeof ms) throw TypeError('sleep: ms must be a number');
20
+ throw RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity');
21
+ }
22
+ const target = Date.now() + Number(ms);
23
+ while(target > Date.now());
24
+ }
25
+ module1.exports = sleep1;
26
+ }
27
+ },
28
+ "../../node_modules/.pnpm/dateformat@4.6.3/node_modules/dateformat/lib/dateformat.js": function(module1, exports) {
29
+ "use strict";
30
+ function _typeof(obj) {
31
+ _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
32
+ return typeof obj;
33
+ } : function(obj) {
34
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
35
+ };
36
+ return _typeof(obj);
37
+ }
38
+ (function(global1) {
39
+ var _arguments = arguments;
40
+ var dateFormat = function() {
41
+ var token = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g;
42
+ var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;
43
+ var timezoneClip = /[^-+\dA-Z]/g;
44
+ return function(date, mask, utc, gmt) {
45
+ if (1 === _arguments.length && "string" === kindOf(date) && !/\d/.test(date)) {
46
+ mask = date;
47
+ date = void 0;
48
+ }
49
+ date = date || 0 === date ? date : new Date;
50
+ if (!(date instanceof Date)) date = new Date(date);
51
+ if (isNaN(date)) throw TypeError("Invalid date");
52
+ mask = String(dateFormat.masks[mask] || mask || dateFormat.masks["default"]);
53
+ var maskSlice = mask.slice(0, 4);
54
+ if ("UTC:" === maskSlice || "GMT:" === maskSlice) {
55
+ mask = mask.slice(4);
56
+ utc = true;
57
+ if ("GMT:" === maskSlice) gmt = true;
58
+ }
59
+ var _ = function() {
60
+ return utc ? "getUTC" : "get";
61
+ };
62
+ var _d = function() {
63
+ return date[_() + "Date"]();
64
+ };
65
+ var D = function() {
66
+ return date[_() + "Day"]();
67
+ };
68
+ var _m = function() {
69
+ return date[_() + "Month"]();
70
+ };
71
+ var y = function() {
72
+ return date[_() + "FullYear"]();
73
+ };
74
+ var _H = function() {
75
+ return date[_() + "Hours"]();
76
+ };
77
+ var _M = function() {
78
+ return date[_() + "Minutes"]();
79
+ };
80
+ var _s = function() {
81
+ return date[_() + "Seconds"]();
82
+ };
83
+ var _L = function() {
84
+ return date[_() + "Milliseconds"]();
85
+ };
86
+ var _o = function() {
87
+ return utc ? 0 : date.getTimezoneOffset();
88
+ };
89
+ var _W = function() {
90
+ return getWeek(date);
91
+ };
92
+ var _N = function() {
93
+ return getDayOfWeek(date);
94
+ };
95
+ var flags = {
96
+ d: function() {
97
+ return _d();
98
+ },
99
+ dd: function() {
100
+ return pad(_d());
101
+ },
102
+ ddd: function() {
103
+ return dateFormat.i18n.dayNames[D()];
104
+ },
105
+ DDD: function() {
106
+ return getDayName({
107
+ y: y(),
108
+ m: _m(),
109
+ d: _d(),
110
+ _: _(),
111
+ dayName: dateFormat.i18n.dayNames[D()],
112
+ short: true
113
+ });
114
+ },
115
+ dddd: function() {
116
+ return dateFormat.i18n.dayNames[D() + 7];
117
+ },
118
+ DDDD: function() {
119
+ return getDayName({
120
+ y: y(),
121
+ m: _m(),
122
+ d: _d(),
123
+ _: _(),
124
+ dayName: dateFormat.i18n.dayNames[D() + 7]
125
+ });
126
+ },
127
+ m: function() {
128
+ return _m() + 1;
129
+ },
130
+ mm: function() {
131
+ return pad(_m() + 1);
132
+ },
133
+ mmm: function() {
134
+ return dateFormat.i18n.monthNames[_m()];
135
+ },
136
+ mmmm: function() {
137
+ return dateFormat.i18n.monthNames[_m() + 12];
138
+ },
139
+ yy: function() {
140
+ return String(y()).slice(2);
141
+ },
142
+ yyyy: function() {
143
+ return pad(y(), 4);
144
+ },
145
+ h: function() {
146
+ return _H() % 12 || 12;
147
+ },
148
+ hh: function() {
149
+ return pad(_H() % 12 || 12);
150
+ },
151
+ H: function() {
152
+ return _H();
153
+ },
154
+ HH: function() {
155
+ return pad(_H());
156
+ },
157
+ M: function() {
158
+ return _M();
159
+ },
160
+ MM: function() {
161
+ return pad(_M());
162
+ },
163
+ s: function() {
164
+ return _s();
165
+ },
166
+ ss: function() {
167
+ return pad(_s());
168
+ },
169
+ l: function() {
170
+ return pad(_L(), 3);
171
+ },
172
+ L: function() {
173
+ return pad(Math.floor(_L() / 10));
174
+ },
175
+ t: function() {
176
+ return _H() < 12 ? dateFormat.i18n.timeNames[0] : dateFormat.i18n.timeNames[1];
177
+ },
178
+ tt: function() {
179
+ return _H() < 12 ? dateFormat.i18n.timeNames[2] : dateFormat.i18n.timeNames[3];
180
+ },
181
+ T: function() {
182
+ return _H() < 12 ? dateFormat.i18n.timeNames[4] : dateFormat.i18n.timeNames[5];
183
+ },
184
+ TT: function() {
185
+ return _H() < 12 ? dateFormat.i18n.timeNames[6] : dateFormat.i18n.timeNames[7];
186
+ },
187
+ Z: function() {
188
+ return gmt ? "GMT" : utc ? "UTC" : (String(date).match(timezone) || [
189
+ ""
190
+ ]).pop().replace(timezoneClip, "").replace(/GMT\+0000/g, "UTC");
191
+ },
192
+ o: function() {
193
+ return (_o() > 0 ? "-" : "+") + pad(100 * Math.floor(Math.abs(_o()) / 60) + Math.abs(_o()) % 60, 4);
194
+ },
195
+ p: function() {
196
+ return (_o() > 0 ? "-" : "+") + pad(Math.floor(Math.abs(_o()) / 60), 2) + ":" + pad(Math.floor(Math.abs(_o()) % 60), 2);
197
+ },
198
+ S: function() {
199
+ return [
200
+ "th",
201
+ "st",
202
+ "nd",
203
+ "rd"
204
+ ][_d() % 10 > 3 ? 0 : (_d() % 100 - _d() % 10 != 10) * _d() % 10];
205
+ },
206
+ W: function() {
207
+ return _W();
208
+ },
209
+ WW: function() {
210
+ return pad(_W());
211
+ },
212
+ N: function() {
213
+ return _N();
214
+ }
215
+ };
216
+ return mask.replace(token, function(match) {
217
+ if (match in flags) return flags[match]();
218
+ return match.slice(1, match.length - 1);
219
+ });
220
+ };
221
+ }();
222
+ dateFormat.masks = {
223
+ default: "ddd mmm dd yyyy HH:MM:ss",
224
+ shortDate: "m/d/yy",
225
+ paddedShortDate: "mm/dd/yyyy",
226
+ mediumDate: "mmm d, yyyy",
227
+ longDate: "mmmm d, yyyy",
228
+ fullDate: "dddd, mmmm d, yyyy",
229
+ shortTime: "h:MM TT",
230
+ mediumTime: "h:MM:ss TT",
231
+ longTime: "h:MM:ss TT Z",
232
+ isoDate: "yyyy-mm-dd",
233
+ isoTime: "HH:MM:ss",
234
+ isoDateTime: "yyyy-mm-dd'T'HH:MM:sso",
235
+ isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",
236
+ expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z"
237
+ };
238
+ dateFormat.i18n = {
239
+ dayNames: [
240
+ "Sun",
241
+ "Mon",
242
+ "Tue",
243
+ "Wed",
244
+ "Thu",
245
+ "Fri",
246
+ "Sat",
247
+ "Sunday",
248
+ "Monday",
249
+ "Tuesday",
250
+ "Wednesday",
251
+ "Thursday",
252
+ "Friday",
253
+ "Saturday"
254
+ ],
255
+ monthNames: [
256
+ "Jan",
257
+ "Feb",
258
+ "Mar",
259
+ "Apr",
260
+ "May",
261
+ "Jun",
262
+ "Jul",
263
+ "Aug",
264
+ "Sep",
265
+ "Oct",
266
+ "Nov",
267
+ "Dec",
268
+ "January",
269
+ "February",
270
+ "March",
271
+ "April",
272
+ "May",
273
+ "June",
274
+ "July",
275
+ "August",
276
+ "September",
277
+ "October",
278
+ "November",
279
+ "December"
280
+ ],
281
+ timeNames: [
282
+ "a",
283
+ "p",
284
+ "am",
285
+ "pm",
286
+ "A",
287
+ "P",
288
+ "AM",
289
+ "PM"
290
+ ]
291
+ };
292
+ var pad = function(val, len) {
293
+ val = String(val);
294
+ len = len || 2;
295
+ while(val.length < len)val = "0" + val;
296
+ return val;
297
+ };
298
+ var getDayName = function(_ref) {
299
+ var y = _ref.y, m = _ref.m, d = _ref.d, _ = _ref._, dayName = _ref.dayName, _ref$short = _ref["short"], _short = void 0 === _ref$short ? false : _ref$short;
300
+ var today = new Date;
301
+ var yesterday = new Date;
302
+ yesterday.setDate(yesterday[_ + "Date"]() - 1);
303
+ var tomorrow = new Date;
304
+ tomorrow.setDate(tomorrow[_ + "Date"]() + 1);
305
+ var today_d = function() {
306
+ return today[_ + "Date"]();
307
+ };
308
+ var today_m = function() {
309
+ return today[_ + "Month"]();
310
+ };
311
+ var today_y = function() {
312
+ return today[_ + "FullYear"]();
313
+ };
314
+ var yesterday_d = function() {
315
+ return yesterday[_ + "Date"]();
316
+ };
317
+ var yesterday_m = function() {
318
+ return yesterday[_ + "Month"]();
319
+ };
320
+ var yesterday_y = function() {
321
+ return yesterday[_ + "FullYear"]();
322
+ };
323
+ var tomorrow_d = function() {
324
+ return tomorrow[_ + "Date"]();
325
+ };
326
+ var tomorrow_m = function() {
327
+ return tomorrow[_ + "Month"]();
328
+ };
329
+ var tomorrow_y = function() {
330
+ return tomorrow[_ + "FullYear"]();
331
+ };
332
+ if (today_y() === y && today_m() === m && today_d() === d) return _short ? "Tdy" : "Today";
333
+ if (yesterday_y() === y && yesterday_m() === m && yesterday_d() === d) return _short ? "Ysd" : "Yesterday";
334
+ if (tomorrow_y() === y && tomorrow_m() === m && tomorrow_d() === d) return _short ? "Tmw" : "Tomorrow";
335
+ return dayName;
336
+ };
337
+ var getWeek = function(date) {
338
+ var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate());
339
+ targetThursday.setDate(targetThursday.getDate() - (targetThursday.getDay() + 6) % 7 + 3);
340
+ var firstThursday = new Date(targetThursday.getFullYear(), 0, 4);
341
+ firstThursday.setDate(firstThursday.getDate() - (firstThursday.getDay() + 6) % 7 + 3);
342
+ var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset();
343
+ targetThursday.setHours(targetThursday.getHours() - ds);
344
+ var weekDiff = (targetThursday - firstThursday) / (864e5 * 7);
345
+ return 1 + Math.floor(weekDiff);
346
+ };
347
+ var getDayOfWeek = function(date) {
348
+ var dow = date.getDay();
349
+ if (0 === dow) dow = 7;
350
+ return dow;
351
+ };
352
+ var kindOf = function(val) {
353
+ if (null === val) return "null";
354
+ if (void 0 === val) return "undefined";
355
+ if ("object" !== _typeof(val)) return _typeof(val);
356
+ if (Array.isArray(val)) return "array";
357
+ return ({}).toString.call(val).slice(8, -1).toLowerCase();
358
+ };
359
+ if ("function" == typeof define && define.amd) define(function() {
360
+ return dateFormat;
361
+ });
362
+ else if ("object" === _typeof(exports)) module1.exports = dateFormat;
363
+ else global1.dateFormat = dateFormat;
364
+ })(void 0);
365
+ },
366
+ "../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
367
+ var once = __webpack_require__("../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js");
368
+ var noop = function() {};
369
+ var isRequest = function(stream) {
370
+ return stream.setHeader && 'function' == typeof stream.abort;
371
+ };
372
+ var isChildProcess = function(stream) {
373
+ return stream.stdio && Array.isArray(stream.stdio) && 3 === stream.stdio.length;
374
+ };
375
+ var eos = function(stream, opts, callback) {
376
+ if ('function' == typeof opts) return eos(stream, null, opts);
377
+ if (!opts) opts = {};
378
+ callback = once(callback || noop);
379
+ var ws = stream._writableState;
380
+ var rs = stream._readableState;
381
+ var readable = opts.readable || false !== opts.readable && stream.readable;
382
+ var writable = opts.writable || false !== opts.writable && stream.writable;
383
+ var cancelled = false;
384
+ var onlegacyfinish = function() {
385
+ if (!stream.writable) onfinish();
386
+ };
387
+ var onfinish = function() {
388
+ writable = false;
389
+ if (!readable) callback.call(stream);
390
+ };
391
+ var onend = function() {
392
+ readable = false;
393
+ if (!writable) callback.call(stream);
394
+ };
395
+ var onexit = function(exitCode) {
396
+ callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
397
+ };
398
+ var onerror = function(err) {
399
+ callback.call(stream, err);
400
+ };
401
+ var onclose = function() {
402
+ process.nextTick(onclosenexttick);
403
+ };
404
+ var onclosenexttick = function() {
405
+ if (cancelled) return;
406
+ if (readable && !(rs && rs.ended && !rs.destroyed)) return callback.call(stream, new Error('premature close'));
407
+ if (writable && !(ws && ws.ended && !ws.destroyed)) return callback.call(stream, new Error('premature close'));
408
+ };
409
+ var onrequest = function() {
410
+ stream.req.on('finish', onfinish);
411
+ };
412
+ if (isRequest(stream)) {
413
+ stream.on('complete', onfinish);
414
+ stream.on('abort', onclose);
415
+ if (stream.req) onrequest();
416
+ else stream.on('request', onrequest);
417
+ } else if (writable && !ws) {
418
+ stream.on('end', onlegacyfinish);
419
+ stream.on('close', onlegacyfinish);
420
+ }
421
+ if (isChildProcess(stream)) stream.on('exit', onexit);
422
+ stream.on('end', onend);
423
+ stream.on('finish', onfinish);
424
+ if (false !== opts.error) stream.on('error', onerror);
425
+ stream.on('close', onclose);
426
+ return function() {
427
+ cancelled = true;
428
+ stream.removeListener('complete', onfinish);
429
+ stream.removeListener('abort', onclose);
430
+ stream.removeListener('request', onrequest);
431
+ if (stream.req) stream.req.removeListener('finish', onfinish);
432
+ stream.removeListener('end', onlegacyfinish);
433
+ stream.removeListener('close', onlegacyfinish);
434
+ stream.removeListener('finish', onfinish);
435
+ stream.removeListener('exit', onexit);
436
+ stream.removeListener('end', onend);
437
+ stream.removeListener('error', onerror);
438
+ stream.removeListener('close', onclose);
439
+ };
440
+ };
441
+ module1.exports = eos;
442
+ },
443
+ "../../node_modules/.pnpm/fast-safe-stringify@2.1.1/node_modules/fast-safe-stringify/index.js": function(module1) {
444
+ module1.exports = stringify;
445
+ stringify.default = stringify;
446
+ stringify.stable = deterministicStringify;
447
+ stringify.stableStringify = deterministicStringify;
448
+ var LIMIT_REPLACE_NODE = '[...]';
449
+ var CIRCULAR_REPLACE_NODE = '[Circular]';
450
+ var arr = [];
451
+ var replacerStack = [];
452
+ function defaultOptions() {
453
+ return {
454
+ depthLimit: Number.MAX_SAFE_INTEGER,
455
+ edgesLimit: Number.MAX_SAFE_INTEGER
456
+ };
457
+ }
458
+ function stringify(obj, replacer, spacer, options) {
459
+ if (void 0 === options) options = defaultOptions();
460
+ decirc(obj, '', 0, [], void 0, 0, options);
461
+ var res;
462
+ try {
463
+ res = 0 === replacerStack.length ? JSON.stringify(obj, replacer, spacer) : JSON.stringify(obj, replaceGetterValues(replacer), spacer);
464
+ } catch (_) {
465
+ return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]');
466
+ } finally{
467
+ while(0 !== arr.length){
468
+ var part = arr.pop();
469
+ if (4 === part.length) Object.defineProperty(part[0], part[1], part[3]);
470
+ else part[0][part[1]] = part[2];
471
+ }
472
+ }
473
+ return res;
474
+ }
475
+ function setReplace(replace, val, k, parent) {
476
+ var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k);
477
+ if (void 0 !== propertyDescriptor.get) if (propertyDescriptor.configurable) {
478
+ Object.defineProperty(parent, k, {
479
+ value: replace
480
+ });
481
+ arr.push([
482
+ parent,
483
+ k,
484
+ val,
485
+ propertyDescriptor
486
+ ]);
487
+ } else replacerStack.push([
488
+ val,
489
+ k,
490
+ replace
491
+ ]);
492
+ else {
493
+ parent[k] = replace;
494
+ arr.push([
495
+ parent,
496
+ k,
497
+ val
498
+ ]);
499
+ }
500
+ }
501
+ function decirc(val, k, edgeIndex, stack, parent, depth, options) {
502
+ depth += 1;
503
+ var i;
504
+ if ('object' == typeof val && null !== val) {
505
+ for(i = 0; i < stack.length; i++)if (stack[i] === val) return void setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
506
+ if (void 0 !== options.depthLimit && depth > options.depthLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
507
+ if (void 0 !== options.edgesLimit && edgeIndex + 1 > options.edgesLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
508
+ stack.push(val);
509
+ if (Array.isArray(val)) for(i = 0; i < val.length; i++)decirc(val[i], i, i, stack, val, depth, options);
510
+ else {
511
+ var keys = Object.keys(val);
512
+ for(i = 0; i < keys.length; i++){
513
+ var key = keys[i];
514
+ decirc(val[key], key, i, stack, val, depth, options);
515
+ }
516
+ }
517
+ stack.pop();
518
+ }
519
+ }
520
+ function compareFunction(a, b) {
521
+ if (a < b) return -1;
522
+ if (a > b) return 1;
523
+ return 0;
524
+ }
525
+ function deterministicStringify(obj, replacer, spacer, options) {
526
+ if (void 0 === options) options = defaultOptions();
527
+ var tmp = deterministicDecirc(obj, '', 0, [], void 0, 0, options) || obj;
528
+ var res;
529
+ try {
530
+ res = 0 === replacerStack.length ? JSON.stringify(tmp, replacer, spacer) : JSON.stringify(tmp, replaceGetterValues(replacer), spacer);
531
+ } catch (_) {
532
+ return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]');
533
+ } finally{
534
+ while(0 !== arr.length){
535
+ var part = arr.pop();
536
+ if (4 === part.length) Object.defineProperty(part[0], part[1], part[3]);
537
+ else part[0][part[1]] = part[2];
538
+ }
539
+ }
540
+ return res;
541
+ }
542
+ function deterministicDecirc(val, k, edgeIndex, stack, parent, depth, options) {
543
+ depth += 1;
544
+ var i;
545
+ if ('object' == typeof val && null !== val) {
546
+ for(i = 0; i < stack.length; i++)if (stack[i] === val) return void setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
547
+ try {
548
+ if ('function' == typeof val.toJSON) return;
549
+ } catch (_) {
550
+ return;
551
+ }
552
+ if (void 0 !== options.depthLimit && depth > options.depthLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
553
+ if (void 0 !== options.edgesLimit && edgeIndex + 1 > options.edgesLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
554
+ stack.push(val);
555
+ if (Array.isArray(val)) for(i = 0; i < val.length; i++)deterministicDecirc(val[i], i, i, stack, val, depth, options);
556
+ else {
557
+ var tmp = {};
558
+ var keys = Object.keys(val).sort(compareFunction);
559
+ for(i = 0; i < keys.length; i++){
560
+ var key = keys[i];
561
+ deterministicDecirc(val[key], key, i, stack, val, depth, options);
562
+ tmp[key] = val[key];
563
+ }
564
+ if (void 0 === parent) return tmp;
565
+ arr.push([
566
+ parent,
567
+ k,
568
+ val
569
+ ]);
570
+ parent[k] = tmp;
571
+ }
572
+ stack.pop();
573
+ }
574
+ }
575
+ function replaceGetterValues(replacer) {
576
+ replacer = void 0 !== replacer ? replacer : function(k, v) {
577
+ return v;
578
+ };
579
+ return function(key, val) {
580
+ if (replacerStack.length > 0) for(var i = 0; i < replacerStack.length; i++){
581
+ var part = replacerStack[i];
582
+ if (part[1] === key && part[0] === val) {
583
+ val = part[2];
584
+ replacerStack.splice(i, 1);
585
+ break;
586
+ }
587
+ }
588
+ return replacer.call(this, key, val);
589
+ };
590
+ }
591
+ },
592
+ "../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js": function(module1) {
593
+ "use strict";
594
+ const refs = {
595
+ exit: [],
596
+ beforeExit: []
597
+ };
598
+ const functions = {
599
+ exit: onExit,
600
+ beforeExit: onBeforeExit
601
+ };
602
+ let registry;
603
+ function ensureRegistry() {
604
+ if (void 0 === registry) registry = new FinalizationRegistry(clear);
605
+ }
606
+ function install(event) {
607
+ if (refs[event].length > 0) return;
608
+ process.on(event, functions[event]);
609
+ }
610
+ function uninstall(event) {
611
+ if (refs[event].length > 0) return;
612
+ process.removeListener(event, functions[event]);
613
+ if (0 === refs.exit.length && 0 === refs.beforeExit.length) registry = void 0;
614
+ }
615
+ function onExit() {
616
+ callRefs('exit');
617
+ }
618
+ function onBeforeExit() {
619
+ callRefs('beforeExit');
620
+ }
621
+ function callRefs(event) {
622
+ for (const ref of refs[event]){
623
+ const obj = ref.deref();
624
+ const fn = ref.fn;
625
+ if (void 0 !== obj) fn(obj, event);
626
+ }
627
+ refs[event] = [];
628
+ }
629
+ function clear(ref) {
630
+ for (const event of [
631
+ 'exit',
632
+ 'beforeExit'
633
+ ]){
634
+ const index = refs[event].indexOf(ref);
635
+ refs[event].splice(index, index + 1);
636
+ uninstall(event);
637
+ }
638
+ }
639
+ function _register(event, obj, fn) {
640
+ if (void 0 === obj) throw new Error('the object can\'t be undefined');
641
+ install(event);
642
+ const ref = new WeakRef(obj);
643
+ ref.fn = fn;
644
+ ensureRegistry();
645
+ registry.register(obj, ref);
646
+ refs[event].push(ref);
647
+ }
648
+ function register(obj, fn) {
649
+ _register('exit', obj, fn);
650
+ }
651
+ function registerBeforeExit(obj, fn) {
652
+ _register('beforeExit', obj, fn);
653
+ }
654
+ function unregister(obj) {
655
+ if (void 0 === registry) return;
656
+ registry.unregister(obj);
657
+ for (const event of [
658
+ 'exit',
659
+ 'beforeExit'
660
+ ]){
661
+ refs[event] = refs[event].filter((ref)=>{
662
+ const _obj = ref.deref();
663
+ return _obj && _obj !== obj;
664
+ });
665
+ uninstall(event);
666
+ }
667
+ }
668
+ module1.exports = {
669
+ register,
670
+ registerBeforeExit,
671
+ unregister
672
+ };
673
+ },
674
+ "../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js": function(module1, __unused_webpack_exports, __webpack_require__) {
675
+ var wrappy = __webpack_require__("../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js");
676
+ module1.exports = wrappy(once);
677
+ module1.exports.strict = wrappy(onceStrict);
678
+ once.proto = once(function() {
679
+ Object.defineProperty(Function.prototype, 'once', {
680
+ value: function() {
681
+ return once(this);
682
+ },
683
+ configurable: true
684
+ });
685
+ Object.defineProperty(Function.prototype, 'onceStrict', {
686
+ value: function() {
687
+ return onceStrict(this);
688
+ },
689
+ configurable: true
690
+ });
691
+ });
692
+ function once(fn) {
693
+ var f = function() {
694
+ if (f.called) return f.value;
695
+ f.called = true;
696
+ return f.value = fn.apply(this, arguments);
697
+ };
698
+ f.called = false;
699
+ return f;
700
+ }
701
+ function onceStrict(fn) {
702
+ var f = function() {
703
+ if (f.called) throw new Error(f.onceError);
704
+ f.called = true;
705
+ return f.value = fn.apply(this, arguments);
706
+ };
707
+ var name = fn.name || 'Function wrapped with `once`';
708
+ f.onceError = name + " shouldn't be called more than once";
709
+ f.called = false;
710
+ return f;
711
+ }
712
+ },
713
+ "../../node_modules/.pnpm/pino-abstract-transport@2.0.0/node_modules/pino-abstract-transport/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
714
+ "use strict";
715
+ const metadata = Symbol.for('pino.metadata');
716
+ const split = __webpack_require__("../../node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js");
717
+ const { Duplex } = __webpack_require__("stream");
718
+ const { parentPort, workerData } = __webpack_require__("worker_threads");
719
+ function createDeferred() {
720
+ let resolve;
721
+ let reject;
722
+ const promise = new Promise((_resolve, _reject)=>{
723
+ resolve = _resolve;
724
+ reject = _reject;
725
+ });
726
+ promise.resolve = resolve;
727
+ promise.reject = reject;
728
+ return promise;
729
+ }
730
+ module1.exports = function(fn, opts = {}) {
731
+ const waitForConfig = true === opts.expectPinoConfig && workerData?.workerData?.pinoWillSendConfig === true;
732
+ const parseLines = 'lines' === opts.parse;
733
+ const parseLine = 'function' == typeof opts.parseLine ? opts.parseLine : JSON.parse;
734
+ const close = opts.close || defaultClose;
735
+ const stream = split(function(line) {
736
+ let value;
737
+ try {
738
+ value = parseLine(line);
739
+ } catch (error) {
740
+ this.emit('unknown', line, error);
741
+ return;
742
+ }
743
+ if (null === value) return void this.emit('unknown', line, 'Null value ignored');
744
+ if ('object' != typeof value) value = {
745
+ data: value,
746
+ time: Date.now()
747
+ };
748
+ if (stream[metadata]) {
749
+ stream.lastTime = value.time;
750
+ stream.lastLevel = value.level;
751
+ stream.lastObj = value;
752
+ }
753
+ if (parseLines) return line;
754
+ return value;
755
+ }, {
756
+ autoDestroy: true
757
+ });
758
+ stream._destroy = function(err, cb) {
759
+ const promise = close(err, cb);
760
+ if (promise && 'function' == typeof promise.then) promise.then(cb, cb);
761
+ };
762
+ if (true === opts.expectPinoConfig && workerData?.workerData?.pinoWillSendConfig !== true) setImmediate(()=>{
763
+ stream.emit('error', new Error('This transport is not compatible with the current version of pino. Please upgrade pino to the latest version.'));
764
+ });
765
+ if (false !== opts.metadata) {
766
+ stream[metadata] = true;
767
+ stream.lastTime = 0;
768
+ stream.lastLevel = 0;
769
+ stream.lastObj = null;
770
+ }
771
+ if (waitForConfig) {
772
+ let pinoConfig = {};
773
+ const configReceived = createDeferred();
774
+ parentPort.on('message', function handleMessage(message) {
775
+ if ('PINO_CONFIG' === message.code) {
776
+ pinoConfig = message.config;
777
+ configReceived.resolve();
778
+ parentPort.off('message', handleMessage);
779
+ }
780
+ });
781
+ Object.defineProperties(stream, {
782
+ levels: {
783
+ get () {
784
+ return pinoConfig.levels;
785
+ }
786
+ },
787
+ messageKey: {
788
+ get () {
789
+ return pinoConfig.messageKey;
790
+ }
791
+ },
792
+ errorKey: {
793
+ get () {
794
+ return pinoConfig.errorKey;
795
+ }
796
+ }
797
+ });
798
+ return configReceived.then(finish);
799
+ }
800
+ return finish();
801
+ function finish() {
802
+ let res = fn(stream);
803
+ if (res && 'function' == typeof res.catch) {
804
+ res.catch((err)=>{
805
+ stream.destroy(err);
806
+ });
807
+ res = null;
808
+ } else if (opts.enablePipelining && res) return Duplex.from({
809
+ writable: stream,
810
+ readable: res
811
+ });
812
+ return stream;
813
+ }
814
+ };
815
+ function defaultClose(err, cb) {
816
+ process.nextTick(cb, err);
817
+ }
818
+ },
819
+ "../../node_modules/.pnpm/pump@3.0.2/node_modules/pump/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
820
+ var once = __webpack_require__("../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js");
821
+ var eos = __webpack_require__("../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js");
822
+ var fs;
823
+ try {
824
+ fs = __webpack_require__("fs");
825
+ } catch (e) {}
826
+ var noop = function() {};
827
+ var ancient = /^v?\.0/.test(process.version);
828
+ var isFn = function(fn) {
829
+ return 'function' == typeof fn;
830
+ };
831
+ var isFS = function(stream) {
832
+ if (!ancient) return false;
833
+ if (!fs) return false;
834
+ return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close);
835
+ };
836
+ var isRequest = function(stream) {
837
+ return stream.setHeader && isFn(stream.abort);
838
+ };
839
+ var destroyer = function(stream, reading, writing, callback) {
840
+ callback = once(callback);
841
+ var closed = false;
842
+ stream.on('close', function() {
843
+ closed = true;
844
+ });
845
+ eos(stream, {
846
+ readable: reading,
847
+ writable: writing
848
+ }, function(err) {
849
+ if (err) return callback(err);
850
+ closed = true;
851
+ callback();
852
+ });
853
+ var destroyed = false;
854
+ return function(err) {
855
+ if (closed) return;
856
+ if (destroyed) return;
857
+ destroyed = true;
858
+ if (isFS(stream)) return stream.close(noop);
859
+ if (isRequest(stream)) return stream.abort();
860
+ if (isFn(stream.destroy)) return stream.destroy();
861
+ callback(err || new Error('stream was destroyed'));
862
+ };
863
+ };
864
+ var call = function(fn) {
865
+ fn();
866
+ };
867
+ var pipe = function(from, to) {
868
+ return from.pipe(to);
869
+ };
870
+ var pump = function() {
871
+ var streams = Array.prototype.slice.call(arguments);
872
+ var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop;
873
+ if (Array.isArray(streams[0])) streams = streams[0];
874
+ if (streams.length < 2) throw new Error('pump requires two streams per minimum');
875
+ var error;
876
+ var destroys = streams.map(function(stream, i) {
877
+ var reading = i < streams.length - 1;
878
+ var writing = i > 0;
879
+ return destroyer(stream, reading, writing, function(err) {
880
+ if (!error) error = err;
881
+ if (err) destroys.forEach(call);
882
+ if (reading) return;
883
+ destroys.forEach(call);
884
+ callback(error);
885
+ });
886
+ });
887
+ return streams.reduce(pipe);
888
+ };
889
+ module1.exports = pump;
890
+ },
891
+ "../../node_modules/.pnpm/secure-json-parse@2.7.0/node_modules/secure-json-parse/index.js": function(module1) {
892
+ "use strict";
893
+ const hasBuffer = 'undefined' != typeof Buffer;
894
+ const suspectProtoRx = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/;
895
+ const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
896
+ function _parse(text, reviver, options) {
897
+ if (null == options) {
898
+ if (null !== reviver && 'object' == typeof reviver) {
899
+ options = reviver;
900
+ reviver = void 0;
901
+ }
902
+ }
903
+ if (hasBuffer && Buffer.isBuffer(text)) text = text.toString();
904
+ if (text && 0xFEFF === text.charCodeAt(0)) text = text.slice(1);
905
+ const obj = JSON.parse(text, reviver);
906
+ if (null === obj || 'object' != typeof obj) return obj;
907
+ const protoAction = options && options.protoAction || 'error';
908
+ const constructorAction = options && options.constructorAction || 'error';
909
+ if ('ignore' === protoAction && 'ignore' === constructorAction) return obj;
910
+ if ('ignore' !== protoAction && 'ignore' !== constructorAction) {
911
+ if (false === suspectProtoRx.test(text) && false === suspectConstructorRx.test(text)) return obj;
912
+ } else if ('ignore' !== protoAction && 'ignore' === constructorAction) {
913
+ if (false === suspectProtoRx.test(text)) return obj;
914
+ } else if (false === suspectConstructorRx.test(text)) return obj;
915
+ return filter(obj, {
916
+ protoAction,
917
+ constructorAction,
918
+ safe: options && options.safe
919
+ });
920
+ }
921
+ function filter(obj, { protoAction = 'error', constructorAction = 'error', safe } = {}) {
922
+ let next = [
923
+ obj
924
+ ];
925
+ while(next.length){
926
+ const nodes = next;
927
+ next = [];
928
+ for (const node of nodes){
929
+ if ('ignore' !== protoAction && Object.prototype.hasOwnProperty.call(node, '__proto__')) {
930
+ if (true === safe) return null;
931
+ if ('error' === protoAction) throw new SyntaxError('Object contains forbidden prototype property');
932
+ delete node.__proto__;
933
+ }
934
+ if ('ignore' !== constructorAction && Object.prototype.hasOwnProperty.call(node, 'constructor') && Object.prototype.hasOwnProperty.call(node.constructor, 'prototype')) {
935
+ if (true === safe) return null;
936
+ if ('error' === constructorAction) throw new SyntaxError('Object contains forbidden prototype property');
937
+ delete node.constructor;
938
+ }
939
+ for(const key in node){
940
+ const value = node[key];
941
+ if (value && 'object' == typeof value) next.push(value);
942
+ }
943
+ }
944
+ }
945
+ return obj;
946
+ }
947
+ function parse(text, reviver, options) {
948
+ const stackTraceLimit = Error.stackTraceLimit;
949
+ Error.stackTraceLimit = 0;
950
+ try {
951
+ return _parse(text, reviver, options);
952
+ } finally{
953
+ Error.stackTraceLimit = stackTraceLimit;
954
+ }
955
+ }
956
+ function safeParse(text, reviver) {
957
+ const stackTraceLimit = Error.stackTraceLimit;
958
+ Error.stackTraceLimit = 0;
959
+ try {
960
+ return _parse(text, reviver, {
961
+ safe: true
962
+ });
963
+ } catch (_e) {
964
+ return null;
965
+ } finally{
966
+ Error.stackTraceLimit = stackTraceLimit;
967
+ }
968
+ }
969
+ module1.exports = parse;
970
+ module1.exports["default"] = parse;
971
+ module1.exports.parse = parse;
972
+ module1.exports.safeParse = safeParse;
973
+ module1.exports.scan = filter;
974
+ },
975
+ "../../node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
976
+ "use strict";
977
+ const { Transform } = __webpack_require__("stream");
978
+ const { StringDecoder } = __webpack_require__("string_decoder");
979
+ const kLast = Symbol('last');
980
+ const kDecoder = Symbol('decoder');
981
+ function transform(chunk, enc, cb) {
982
+ let list;
983
+ if (this.overflow) {
984
+ const buf = this[kDecoder].write(chunk);
985
+ list = buf.split(this.matcher);
986
+ if (1 === list.length) return cb();
987
+ list.shift();
988
+ this.overflow = false;
989
+ } else {
990
+ this[kLast] += this[kDecoder].write(chunk);
991
+ list = this[kLast].split(this.matcher);
992
+ }
993
+ this[kLast] = list.pop();
994
+ for(let i = 0; i < list.length; i++)try {
995
+ push(this, this.mapper(list[i]));
996
+ } catch (error) {
997
+ return cb(error);
998
+ }
999
+ this.overflow = this[kLast].length > this.maxLength;
1000
+ if (this.overflow && !this.skipOverflow) return void cb(new Error('maximum buffer reached'));
1001
+ cb();
1002
+ }
1003
+ function flush(cb) {
1004
+ this[kLast] += this[kDecoder].end();
1005
+ if (this[kLast]) try {
1006
+ push(this, this.mapper(this[kLast]));
1007
+ } catch (error) {
1008
+ return cb(error);
1009
+ }
1010
+ cb();
1011
+ }
1012
+ function push(self, val) {
1013
+ if (void 0 !== val) self.push(val);
1014
+ }
1015
+ function noop(incoming) {
1016
+ return incoming;
1017
+ }
1018
+ function split(matcher, mapper, options) {
1019
+ matcher = matcher || /\r?\n/;
1020
+ mapper = mapper || noop;
1021
+ options = options || {};
1022
+ switch(arguments.length){
1023
+ case 1:
1024
+ if ('function' == typeof matcher) {
1025
+ mapper = matcher;
1026
+ matcher = /\r?\n/;
1027
+ } else if ('object' == typeof matcher && !(matcher instanceof RegExp) && !matcher[Symbol.split]) {
1028
+ options = matcher;
1029
+ matcher = /\r?\n/;
1030
+ }
1031
+ break;
1032
+ case 2:
1033
+ if ('function' == typeof matcher) {
1034
+ options = mapper;
1035
+ mapper = matcher;
1036
+ matcher = /\r?\n/;
1037
+ } else if ('object' == typeof mapper) {
1038
+ options = mapper;
1039
+ mapper = noop;
1040
+ }
1041
+ }
1042
+ options = Object.assign({}, options);
1043
+ options.autoDestroy = true;
1044
+ options.transform = transform;
1045
+ options.flush = flush;
1046
+ options.readableObjectMode = true;
1047
+ const stream = new Transform(options);
1048
+ stream[kLast] = '';
1049
+ stream[kDecoder] = new StringDecoder('utf8');
1050
+ stream.matcher = matcher;
1051
+ stream.mapper = mapper;
1052
+ stream.maxLength = options.maxLength;
1053
+ stream.skipOverflow = options.skipOverflow || false;
1054
+ stream.overflow = false;
1055
+ stream._destroy = function(err, cb) {
1056
+ this._writableState.errorEmitted = false;
1057
+ cb(err);
1058
+ };
1059
+ return stream;
1060
+ }
1061
+ module1.exports = split;
1062
+ },
1063
+ "../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js": function(module1) {
1064
+ module1.exports = wrappy;
1065
+ function wrappy(fn, cb) {
1066
+ if (fn && cb) return wrappy(fn)(cb);
1067
+ if ('function' != typeof fn) throw new TypeError('need wrapper function');
1068
+ Object.keys(fn).forEach(function(k) {
1069
+ wrapper[k] = fn[k];
1070
+ });
1071
+ return wrapper;
1072
+ function wrapper() {
1073
+ var args = new Array(arguments.length);
1074
+ for(var i = 0; i < args.length; i++)args[i] = arguments[i];
1075
+ var ret = fn.apply(this, args);
1076
+ var cb = args[args.length - 1];
1077
+ if ('function' == typeof ret && ret !== cb) Object.keys(cb).forEach(function(k) {
1078
+ ret[k] = cb[k];
1079
+ });
1080
+ return ret;
1081
+ }
1082
+ }
1083
+ },
1084
+ assert: function(module1) {
1085
+ "use strict";
1086
+ module1.exports = require("assert");
1087
+ },
1088
+ events: function(module1) {
1089
+ "use strict";
1090
+ module1.exports = require("events");
1091
+ },
1092
+ fs: function(module1) {
1093
+ "use strict";
1094
+ module1.exports = require("fs");
1095
+ },
1096
+ path: function(module1) {
1097
+ "use strict";
1098
+ module1.exports = require("path");
1099
+ },
1100
+ stream: function(module1) {
1101
+ "use strict";
1102
+ module1.exports = require("stream");
1103
+ },
1104
+ string_decoder: function(module1) {
1105
+ "use strict";
1106
+ module1.exports = require("string_decoder");
1107
+ },
1108
+ tty: function(module1) {
1109
+ "use strict";
1110
+ module1.exports = require("tty");
1111
+ },
1112
+ util: function(module1) {
1113
+ "use strict";
1114
+ module1.exports = require("util");
1115
+ },
1116
+ worker_threads: function(module1) {
1117
+ "use strict";
1118
+ module1.exports = require("worker_threads");
1119
+ },
1120
+ "../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.cjs": function(__unused_webpack_module, exports, __webpack_require__) {
1121
+ "use strict";
1122
+ Object.defineProperty(exports, "__esModule", {
1123
+ value: true
1124
+ });
1125
+ var tty = __webpack_require__("tty");
1126
+ function _interopNamespace(e) {
1127
+ if (e && e.__esModule) return e;
1128
+ var n = Object.create(null);
1129
+ if (e) Object.keys(e).forEach(function(k) {
1130
+ if ('default' !== k) {
1131
+ var d = Object.getOwnPropertyDescriptor(e, k);
1132
+ Object.defineProperty(n, k, d.get ? d : {
1133
+ enumerable: true,
1134
+ get: function() {
1135
+ return e[k];
1136
+ }
1137
+ });
1138
+ }
1139
+ });
1140
+ n["default"] = e;
1141
+ return Object.freeze(n);
1142
+ }
1143
+ var tty__namespace = /*#__PURE__*/ _interopNamespace(tty);
1144
+ const { env = {}, argv = [], platform = "" } = "undefined" == typeof process ? {} : process;
1145
+ const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
1146
+ const isForced = "FORCE_COLOR" in env || argv.includes("--color");
1147
+ const isWindows = "win32" === platform;
1148
+ const isDumbTerminal = "dumb" === env.TERM;
1149
+ const isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal;
1150
+ const isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
1151
+ const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
1152
+ const replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close))=>head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
1153
+ const clearBleed = (index, string, open, close, replace)=>index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
1154
+ const filterEmpty = (open, close, replace = open, at = open.length + 1)=>(string)=>string || !("" === string || void 0 === string) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
1155
+ const init = (open, close, replace)=>filterEmpty(`\x1b[${open}m`, `\x1b[${close}m`, replace);
1156
+ const colors = {
1157
+ reset: init(0, 0),
1158
+ bold: init(1, 22, "\x1b[22m\x1b[1m"),
1159
+ dim: init(2, 22, "\x1b[22m\x1b[2m"),
1160
+ italic: init(3, 23),
1161
+ underline: init(4, 24),
1162
+ inverse: init(7, 27),
1163
+ hidden: init(8, 28),
1164
+ strikethrough: init(9, 29),
1165
+ black: init(30, 39),
1166
+ red: init(31, 39),
1167
+ green: init(32, 39),
1168
+ yellow: init(33, 39),
1169
+ blue: init(34, 39),
1170
+ magenta: init(35, 39),
1171
+ cyan: init(36, 39),
1172
+ white: init(37, 39),
1173
+ gray: init(90, 39),
1174
+ bgBlack: init(40, 49),
1175
+ bgRed: init(41, 49),
1176
+ bgGreen: init(42, 49),
1177
+ bgYellow: init(43, 49),
1178
+ bgBlue: init(44, 49),
1179
+ bgMagenta: init(45, 49),
1180
+ bgCyan: init(46, 49),
1181
+ bgWhite: init(47, 49),
1182
+ blackBright: init(90, 39),
1183
+ redBright: init(91, 39),
1184
+ greenBright: init(92, 39),
1185
+ yellowBright: init(93, 39),
1186
+ blueBright: init(94, 39),
1187
+ magentaBright: init(95, 39),
1188
+ cyanBright: init(96, 39),
1189
+ whiteBright: init(97, 39),
1190
+ bgBlackBright: init(100, 49),
1191
+ bgRedBright: init(101, 49),
1192
+ bgGreenBright: init(102, 49),
1193
+ bgYellowBright: init(103, 49),
1194
+ bgBlueBright: init(104, 49),
1195
+ bgMagentaBright: init(105, 49),
1196
+ bgCyanBright: init(106, 49),
1197
+ bgWhiteBright: init(107, 49)
1198
+ };
1199
+ const createColors = ({ useColor = isColorSupported } = {})=>useColor ? colors : Object.keys(colors).reduce((colors, key)=>({
1200
+ ...colors,
1201
+ [key]: String
1202
+ }), {});
1203
+ const { reset, bold, dim, italic, underline, inverse, hidden, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, blackBright, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlackBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = createColors();
1204
+ exports.bgBlack = bgBlack;
1205
+ exports.bgBlackBright = bgBlackBright;
1206
+ exports.bgBlue = bgBlue;
1207
+ exports.bgBlueBright = bgBlueBright;
1208
+ exports.bgCyan = bgCyan;
1209
+ exports.bgCyanBright = bgCyanBright;
1210
+ exports.bgGreen = bgGreen;
1211
+ exports.bgGreenBright = bgGreenBright;
1212
+ exports.bgMagenta = bgMagenta;
1213
+ exports.bgMagentaBright = bgMagentaBright;
1214
+ exports.bgRed = bgRed;
1215
+ exports.bgRedBright = bgRedBright;
1216
+ exports.bgWhite = bgWhite;
1217
+ exports.bgWhiteBright = bgWhiteBright;
1218
+ exports.bgYellow = bgYellow;
1219
+ exports.bgYellowBright = bgYellowBright;
1220
+ exports.black = black;
1221
+ exports.blackBright = blackBright;
1222
+ exports.blue = blue;
1223
+ exports.blueBright = blueBright;
1224
+ exports.bold = bold;
1225
+ exports.createColors = createColors;
1226
+ exports.cyan = cyan;
1227
+ exports.cyanBright = cyanBright;
1228
+ exports.dim = dim;
1229
+ exports.gray = gray;
1230
+ exports.green = green;
1231
+ exports.greenBright = greenBright;
1232
+ exports.hidden = hidden;
1233
+ exports.inverse = inverse;
1234
+ exports.isColorSupported = isColorSupported;
1235
+ exports.italic = italic;
1236
+ exports.magenta = magenta;
1237
+ exports.magentaBright = magentaBright;
1238
+ exports.red = red;
1239
+ exports.redBright = redBright;
1240
+ exports.reset = reset;
1241
+ exports.strikethrough = strikethrough;
1242
+ exports.underline = underline;
1243
+ exports.white = white;
1244
+ exports.whiteBright = whiteBright;
1245
+ exports.yellow = yellow;
1246
+ exports.yellowBright = yellowBright;
1247
+ },
1248
+ "../../node_modules/.pnpm/fast-copy@3.0.2/node_modules/fast-copy/dist/cjs/index.cjs": function(__unused_webpack_module, exports) {
1249
+ "use strict";
1250
+ Object.defineProperty(exports, "__esModule", {
1251
+ value: true
1252
+ });
1253
+ var toStringFunction = Function.prototype.toString;
1254
+ var create = Object.create;
1255
+ var toStringObject = Object.prototype.toString;
1256
+ var LegacyCache = function() {
1257
+ function LegacyCache() {
1258
+ this._keys = [];
1259
+ this._values = [];
1260
+ }
1261
+ LegacyCache.prototype.has = function(key) {
1262
+ return !!~this._keys.indexOf(key);
1263
+ };
1264
+ LegacyCache.prototype.get = function(key) {
1265
+ return this._values[this._keys.indexOf(key)];
1266
+ };
1267
+ LegacyCache.prototype.set = function(key, value) {
1268
+ this._keys.push(key);
1269
+ this._values.push(value);
1270
+ };
1271
+ return LegacyCache;
1272
+ }();
1273
+ function createCacheLegacy() {
1274
+ return new LegacyCache();
1275
+ }
1276
+ function createCacheModern() {
1277
+ return new WeakMap();
1278
+ }
1279
+ var createCache = 'undefined' != typeof WeakMap ? createCacheModern : createCacheLegacy;
1280
+ function getCleanClone(prototype) {
1281
+ if (!prototype) return create(null);
1282
+ var Constructor = prototype.constructor;
1283
+ if (Constructor === Object) return prototype === Object.prototype ? {} : create(prototype);
1284
+ if (Constructor && ~toStringFunction.call(Constructor).indexOf('[native code]')) try {
1285
+ return new Constructor();
1286
+ } catch (_a) {}
1287
+ return create(prototype);
1288
+ }
1289
+ function getRegExpFlagsLegacy(regExp) {
1290
+ var flags = '';
1291
+ if (regExp.global) flags += 'g';
1292
+ if (regExp.ignoreCase) flags += 'i';
1293
+ if (regExp.multiline) flags += 'm';
1294
+ if (regExp.unicode) flags += 'u';
1295
+ if (regExp.sticky) flags += 'y';
1296
+ return flags;
1297
+ }
1298
+ function getRegExpFlagsModern(regExp) {
1299
+ return regExp.flags;
1300
+ }
1301
+ var getRegExpFlags = 'g' === /test/g.flags ? getRegExpFlagsModern : getRegExpFlagsLegacy;
1302
+ function getTagLegacy(value) {
1303
+ var type = toStringObject.call(value);
1304
+ return type.substring(8, type.length - 1);
1305
+ }
1306
+ function getTagModern(value) {
1307
+ return value[Symbol.toStringTag] || getTagLegacy(value);
1308
+ }
1309
+ var getTag = 'undefined' != typeof Symbol ? getTagModern : getTagLegacy;
1310
+ var defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols;
1311
+ var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;
1312
+ var SUPPORTS_SYMBOL = 'function' == typeof getOwnPropertySymbols;
1313
+ function getStrictPropertiesModern(object) {
1314
+ return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
1315
+ }
1316
+ var getStrictProperties = SUPPORTS_SYMBOL ? getStrictPropertiesModern : getOwnPropertyNames;
1317
+ function copyOwnPropertiesStrict(value, clone, state) {
1318
+ var properties = getStrictProperties(value);
1319
+ for(var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index){
1320
+ property = properties[index];
1321
+ if ('callee' !== property && 'caller' !== property) {
1322
+ descriptor = getOwnPropertyDescriptor(value, property);
1323
+ if (!descriptor) {
1324
+ clone[property] = state.copier(value[property], state);
1325
+ continue;
1326
+ }
1327
+ if (!descriptor.get && !descriptor.set) descriptor.value = state.copier(descriptor.value, state);
1328
+ try {
1329
+ defineProperty(clone, property, descriptor);
1330
+ } catch (error) {
1331
+ clone[property] = descriptor.value;
1332
+ }
1333
+ }
1334
+ }
1335
+ return clone;
1336
+ }
1337
+ function copyArrayLoose(array, state) {
1338
+ var clone = new state.Constructor();
1339
+ state.cache.set(array, clone);
1340
+ for(var index = 0, length_2 = array.length; index < length_2; ++index)clone[index] = state.copier(array[index], state);
1341
+ return clone;
1342
+ }
1343
+ function copyArrayStrict(array, state) {
1344
+ var clone = new state.Constructor();
1345
+ state.cache.set(array, clone);
1346
+ return copyOwnPropertiesStrict(array, clone, state);
1347
+ }
1348
+ function copyArrayBuffer(arrayBuffer, _state) {
1349
+ return arrayBuffer.slice(0);
1350
+ }
1351
+ function copyBlob(blob, _state) {
1352
+ return blob.slice(0, blob.size, blob.type);
1353
+ }
1354
+ function copyDataView(dataView, state) {
1355
+ return new state.Constructor(copyArrayBuffer(dataView.buffer));
1356
+ }
1357
+ function copyDate(date, state) {
1358
+ return new state.Constructor(date.getTime());
1359
+ }
1360
+ function copyMapLoose(map, state) {
1361
+ var clone = new state.Constructor();
1362
+ state.cache.set(map, clone);
1363
+ map.forEach(function(value, key) {
1364
+ clone.set(key, state.copier(value, state));
1365
+ });
1366
+ return clone;
1367
+ }
1368
+ function copyMapStrict(map, state) {
1369
+ return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);
1370
+ }
1371
+ function copyObjectLooseLegacy(object, state) {
1372
+ var clone = getCleanClone(state.prototype);
1373
+ state.cache.set(object, clone);
1374
+ for(var key in object)if (hasOwnProperty.call(object, key)) clone[key] = state.copier(object[key], state);
1375
+ return clone;
1376
+ }
1377
+ function copyObjectLooseModern(object, state) {
1378
+ var clone = getCleanClone(state.prototype);
1379
+ state.cache.set(object, clone);
1380
+ for(var key in object)if (hasOwnProperty.call(object, key)) clone[key] = state.copier(object[key], state);
1381
+ var symbols = getOwnPropertySymbols(object);
1382
+ for(var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index){
1383
+ symbol = symbols[index];
1384
+ if (propertyIsEnumerable.call(object, symbol)) clone[symbol] = state.copier(object[symbol], state);
1385
+ }
1386
+ return clone;
1387
+ }
1388
+ var copyObjectLoose = SUPPORTS_SYMBOL ? copyObjectLooseModern : copyObjectLooseLegacy;
1389
+ function copyObjectStrict(object, state) {
1390
+ var clone = getCleanClone(state.prototype);
1391
+ state.cache.set(object, clone);
1392
+ return copyOwnPropertiesStrict(object, clone, state);
1393
+ }
1394
+ function copyPrimitiveWrapper(primitiveObject, state) {
1395
+ return new state.Constructor(primitiveObject.valueOf());
1396
+ }
1397
+ function copyRegExp(regExp, state) {
1398
+ var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp));
1399
+ clone.lastIndex = regExp.lastIndex;
1400
+ return clone;
1401
+ }
1402
+ function copySelf(value, _state) {
1403
+ return value;
1404
+ }
1405
+ function copySetLoose(set, state) {
1406
+ var clone = new state.Constructor();
1407
+ state.cache.set(set, clone);
1408
+ set.forEach(function(value) {
1409
+ clone.add(state.copier(value, state));
1410
+ });
1411
+ return clone;
1412
+ }
1413
+ function copySetStrict(set, state) {
1414
+ return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);
1415
+ }
1416
+ var isArray = Array.isArray;
1417
+ var assign = Object.assign;
1418
+ var getPrototypeOf = Object.getPrototypeOf || function(obj) {
1419
+ return obj.__proto__;
1420
+ };
1421
+ var DEFAULT_LOOSE_OPTIONS = {
1422
+ array: copyArrayLoose,
1423
+ arrayBuffer: copyArrayBuffer,
1424
+ blob: copyBlob,
1425
+ dataView: copyDataView,
1426
+ date: copyDate,
1427
+ error: copySelf,
1428
+ map: copyMapLoose,
1429
+ object: copyObjectLoose,
1430
+ regExp: copyRegExp,
1431
+ set: copySetLoose
1432
+ };
1433
+ var DEFAULT_STRICT_OPTIONS = assign({}, DEFAULT_LOOSE_OPTIONS, {
1434
+ array: copyArrayStrict,
1435
+ map: copyMapStrict,
1436
+ object: copyObjectStrict,
1437
+ set: copySetStrict
1438
+ });
1439
+ function getTagSpecificCopiers(options) {
1440
+ return {
1441
+ Arguments: options.object,
1442
+ Array: options.array,
1443
+ ArrayBuffer: options.arrayBuffer,
1444
+ Blob: options.blob,
1445
+ Boolean: copyPrimitiveWrapper,
1446
+ DataView: options.dataView,
1447
+ Date: options.date,
1448
+ Error: options.error,
1449
+ Float32Array: options.arrayBuffer,
1450
+ Float64Array: options.arrayBuffer,
1451
+ Int8Array: options.arrayBuffer,
1452
+ Int16Array: options.arrayBuffer,
1453
+ Int32Array: options.arrayBuffer,
1454
+ Map: options.map,
1455
+ Number: copyPrimitiveWrapper,
1456
+ Object: options.object,
1457
+ Promise: copySelf,
1458
+ RegExp: options.regExp,
1459
+ Set: options.set,
1460
+ String: copyPrimitiveWrapper,
1461
+ WeakMap: copySelf,
1462
+ WeakSet: copySelf,
1463
+ Uint8Array: options.arrayBuffer,
1464
+ Uint8ClampedArray: options.arrayBuffer,
1465
+ Uint16Array: options.arrayBuffer,
1466
+ Uint32Array: options.arrayBuffer,
1467
+ Uint64Array: options.arrayBuffer
1468
+ };
1469
+ }
1470
+ function createCopier(options) {
1471
+ var normalizedOptions = assign({}, DEFAULT_LOOSE_OPTIONS, options);
1472
+ var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions);
1473
+ var array = tagSpecificCopiers.Array, object = tagSpecificCopiers.Object;
1474
+ function copier(value, state) {
1475
+ state.prototype = state.Constructor = void 0;
1476
+ if (!value || 'object' != typeof value) return value;
1477
+ if (state.cache.has(value)) return state.cache.get(value);
1478
+ state.prototype = getPrototypeOf(value);
1479
+ state.Constructor = state.prototype && state.prototype.constructor;
1480
+ if (!state.Constructor || state.Constructor === Object) return object(value, state);
1481
+ if (isArray(value)) return array(value, state);
1482
+ var tagSpecificCopier = tagSpecificCopiers[getTag(value)];
1483
+ if (tagSpecificCopier) return tagSpecificCopier(value, state);
1484
+ return 'function' == typeof value.then ? value : object(value, state);
1485
+ }
1486
+ return function(value) {
1487
+ return copier(value, {
1488
+ Constructor: void 0,
1489
+ cache: createCache(),
1490
+ copier: copier,
1491
+ prototype: void 0
1492
+ });
1493
+ };
1494
+ }
1495
+ function createStrictCopier(options) {
1496
+ return createCopier(assign({}, DEFAULT_STRICT_OPTIONS, options));
1497
+ }
1498
+ var copyStrict = createStrictCopier({});
1499
+ var index = createCopier({});
1500
+ exports.copyStrict = copyStrict;
1501
+ exports.createCopier = createCopier;
1502
+ exports.createStrictCopier = createStrictCopier;
1503
+ exports["default"] = index;
1504
+ },
1505
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/colors.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1506
+ "use strict";
1507
+ const nocolor = (input)=>input;
1508
+ const plain = {
1509
+ default: nocolor,
1510
+ 60: nocolor,
1511
+ 50: nocolor,
1512
+ 40: nocolor,
1513
+ 30: nocolor,
1514
+ 20: nocolor,
1515
+ 10: nocolor,
1516
+ message: nocolor,
1517
+ greyMessage: nocolor
1518
+ };
1519
+ const { createColors } = __webpack_require__("../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.cjs");
1520
+ const getLevelLabelData = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/get-level-label-data.js");
1521
+ const availableColors = createColors({
1522
+ useColor: true
1523
+ });
1524
+ const { white, bgRed, red, yellow, green, blue, gray, cyan } = availableColors;
1525
+ const colored = {
1526
+ default: white,
1527
+ 60: bgRed,
1528
+ 50: red,
1529
+ 40: yellow,
1530
+ 30: green,
1531
+ 20: blue,
1532
+ 10: gray,
1533
+ message: cyan,
1534
+ greyMessage: gray
1535
+ };
1536
+ function resolveCustomColoredColorizer(customColors) {
1537
+ return customColors.reduce(function(agg, [level, color]) {
1538
+ agg[level] = 'function' == typeof availableColors[color] ? availableColors[color] : white;
1539
+ return agg;
1540
+ }, {
1541
+ default: white,
1542
+ message: cyan,
1543
+ greyMessage: gray
1544
+ });
1545
+ }
1546
+ function colorizeLevel(useOnlyCustomProps) {
1547
+ return function(level, colorizer, { customLevels, customLevelNames } = {}) {
1548
+ const [levelStr, levelNum] = getLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames)(level);
1549
+ return Object.prototype.hasOwnProperty.call(colorizer, levelNum) ? colorizer[levelNum](levelStr) : colorizer.default(levelStr);
1550
+ };
1551
+ }
1552
+ function plainColorizer(useOnlyCustomProps) {
1553
+ const newPlainColorizer = colorizeLevel(useOnlyCustomProps);
1554
+ const customColoredColorizer = function(level, opts) {
1555
+ return newPlainColorizer(level, plain, opts);
1556
+ };
1557
+ customColoredColorizer.message = plain.message;
1558
+ customColoredColorizer.greyMessage = plain.greyMessage;
1559
+ customColoredColorizer.colors = createColors({
1560
+ useColor: false
1561
+ });
1562
+ return customColoredColorizer;
1563
+ }
1564
+ function coloredColorizer(useOnlyCustomProps) {
1565
+ const newColoredColorizer = colorizeLevel(useOnlyCustomProps);
1566
+ const customColoredColorizer = function(level, opts) {
1567
+ return newColoredColorizer(level, colored, opts);
1568
+ };
1569
+ customColoredColorizer.message = colored.message;
1570
+ customColoredColorizer.greyMessage = colored.greyMessage;
1571
+ customColoredColorizer.colors = availableColors;
1572
+ return customColoredColorizer;
1573
+ }
1574
+ function customColoredColorizerFactory(customColors, useOnlyCustomProps) {
1575
+ const onlyCustomColored = resolveCustomColoredColorizer(customColors);
1576
+ const customColored = useOnlyCustomProps ? onlyCustomColored : Object.assign({}, colored, onlyCustomColored);
1577
+ const colorizeLevelCustom = colorizeLevel(useOnlyCustomProps);
1578
+ const customColoredColorizer = function(level, opts) {
1579
+ return colorizeLevelCustom(level, customColored, opts);
1580
+ };
1581
+ customColoredColorizer.colors = availableColors;
1582
+ customColoredColorizer.message = customColoredColorizer.message || customColored.message;
1583
+ customColoredColorizer.greyMessage = customColoredColorizer.greyMessage || customColored.greyMessage;
1584
+ return customColoredColorizer;
1585
+ }
1586
+ module1.exports = function(useColors = false, customColors, useOnlyCustomProps) {
1587
+ if (useColors && void 0 !== customColors) return customColoredColorizerFactory(customColors, useOnlyCustomProps);
1588
+ if (useColors) return coloredColorizer(useOnlyCustomProps);
1589
+ return plainColorizer(useOnlyCustomProps);
1590
+ };
1591
+ },
1592
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/constants.js": function(module1) {
1593
+ "use strict";
1594
+ module1.exports = {
1595
+ DATE_FORMAT: 'yyyy-mm-dd HH:MM:ss.l o',
1596
+ DATE_FORMAT_SIMPLE: 'HH:MM:ss.l',
1597
+ ERROR_LIKE_KEYS: [
1598
+ 'err',
1599
+ 'error'
1600
+ ],
1601
+ MESSAGE_KEY: 'msg',
1602
+ LEVEL_KEY: 'level',
1603
+ LEVEL_LABEL: 'levelLabel',
1604
+ TIMESTAMP_KEY: 'time',
1605
+ LEVELS: {
1606
+ default: 'USERLVL',
1607
+ 60: 'FATAL',
1608
+ 50: 'ERROR',
1609
+ 40: 'WARN',
1610
+ 30: 'INFO',
1611
+ 20: 'DEBUG',
1612
+ 10: 'TRACE'
1613
+ },
1614
+ LEVEL_NAMES: {
1615
+ fatal: 60,
1616
+ error: 50,
1617
+ warn: 40,
1618
+ info: 30,
1619
+ debug: 20,
1620
+ trace: 10
1621
+ },
1622
+ LOGGER_KEYS: [
1623
+ 'pid',
1624
+ 'hostname',
1625
+ 'name',
1626
+ 'level',
1627
+ 'time',
1628
+ 'timestamp',
1629
+ 'caller'
1630
+ ]
1631
+ };
1632
+ },
1633
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/pretty.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1634
+ "use strict";
1635
+ module1.exports = pretty;
1636
+ const sjs = __webpack_require__("../../node_modules/.pnpm/secure-json-parse@2.7.0/node_modules/secure-json-parse/index.js");
1637
+ const isObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/is-object.js");
1638
+ const prettifyErrorLog = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-error-log.js");
1639
+ const prettifyLevel = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-level.js");
1640
+ const prettifyMessage = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-message.js");
1641
+ const prettifyMetadata = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-metadata.js");
1642
+ const prettifyObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-object.js");
1643
+ const prettifyTime = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-time.js");
1644
+ const filterLog = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/filter-log.js");
1645
+ const { LEVELS, LEVEL_KEY, LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/constants.js");
1646
+ const jsonParser = (input)=>{
1647
+ try {
1648
+ return {
1649
+ value: sjs.parse(input, {
1650
+ protoAction: 'remove'
1651
+ })
1652
+ };
1653
+ } catch (err) {
1654
+ return {
1655
+ err
1656
+ };
1657
+ }
1658
+ };
1659
+ function pretty(inputData) {
1660
+ let log;
1661
+ if (isObject(inputData)) log = inputData;
1662
+ else {
1663
+ const parsed = jsonParser(inputData);
1664
+ if (parsed.err || !isObject(parsed.value)) return inputData + this.EOL;
1665
+ log = parsed.value;
1666
+ }
1667
+ if (this.minimumLevel) {
1668
+ let condition;
1669
+ condition = this.useOnlyCustomProps ? this.customLevels : void 0 !== this.customLevelNames[this.minimumLevel];
1670
+ let minimum;
1671
+ minimum = condition ? this.customLevelNames[this.minimumLevel] : LEVEL_NAMES[this.minimumLevel];
1672
+ if (!minimum) minimum = 'string' == typeof this.minimumLevel ? LEVEL_NAMES[this.minimumLevel] : LEVEL_NAMES[LEVELS[this.minimumLevel].toLowerCase()];
1673
+ const level = log[void 0 === this.levelKey ? LEVEL_KEY : this.levelKey];
1674
+ if (level < minimum) return;
1675
+ }
1676
+ const prettifiedMessage = prettifyMessage({
1677
+ log,
1678
+ context: this.context
1679
+ });
1680
+ if (this.ignoreKeys || this.includeKeys) log = filterLog({
1681
+ log,
1682
+ context: this.context
1683
+ });
1684
+ const prettifiedLevel = prettifyLevel({
1685
+ log,
1686
+ context: {
1687
+ ...this.context,
1688
+ ...this.context.customProperties
1689
+ }
1690
+ });
1691
+ const prettifiedMetadata = prettifyMetadata({
1692
+ log,
1693
+ context: this.context
1694
+ });
1695
+ const prettifiedTime = prettifyTime({
1696
+ log,
1697
+ context: this.context
1698
+ });
1699
+ let line = '';
1700
+ if (this.levelFirst && prettifiedLevel) line = `${prettifiedLevel}`;
1701
+ if (prettifiedTime && '' === line) line = `${prettifiedTime}`;
1702
+ else if (prettifiedTime) line = `${line} ${prettifiedTime}`;
1703
+ if (!this.levelFirst && prettifiedLevel) line = line.length > 0 ? `${line} ${prettifiedLevel}` : prettifiedLevel;
1704
+ if (prettifiedMetadata) line = line.length > 0 ? `${line} ${prettifiedMetadata}:` : prettifiedMetadata;
1705
+ if (false === line.endsWith(':') && '' !== line) line += ':';
1706
+ if (void 0 !== prettifiedMessage) line = line.length > 0 ? `${line} ${prettifiedMessage}` : prettifiedMessage;
1707
+ if (line.length > 0 && !this.singleLine) line += this.EOL;
1708
+ if ('Error' === log.type && 'string' == typeof log.stack) {
1709
+ const prettifiedErrorLog = prettifyErrorLog({
1710
+ log,
1711
+ context: this.context
1712
+ });
1713
+ if (this.singleLine) line += this.EOL;
1714
+ line += prettifiedErrorLog;
1715
+ } else if (false === this.hideObject) {
1716
+ const skipKeys = [
1717
+ this.messageKey,
1718
+ this.levelKey,
1719
+ this.timestampKey
1720
+ ].map((key)=>key.replaceAll(/\\/g, '')).filter((key)=>'string' == typeof log[key] || 'number' == typeof log[key] || 'boolean' == typeof log[key]);
1721
+ const prettifiedObject = prettifyObject({
1722
+ log,
1723
+ skipKeys,
1724
+ context: this.context
1725
+ });
1726
+ if (this.singleLine && !/^\s$/.test(prettifiedObject)) line += ' ';
1727
+ line += prettifiedObject;
1728
+ }
1729
+ return line;
1730
+ }
1731
+ },
1732
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1733
+ "use strict";
1734
+ module1.exports = buildSafeSonicBoom;
1735
+ const { isMainThread } = __webpack_require__("worker_threads");
1736
+ const SonicBoom = __webpack_require__("../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js");
1737
+ const noop = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/noop.js");
1738
+ function buildSafeSonicBoom(opts) {
1739
+ const stream = new SonicBoom(opts);
1740
+ stream.on('error', filterBrokenPipe);
1741
+ if (!process.env.NODE_V8_COVERAGE && !opts.sync && isMainThread) setupOnExit(stream);
1742
+ return stream;
1743
+ function filterBrokenPipe(err) {
1744
+ if ('EPIPE' === err.code) {
1745
+ stream.write = noop;
1746
+ stream.end = noop;
1747
+ stream.flushSync = noop;
1748
+ stream.destroy = noop;
1749
+ return;
1750
+ }
1751
+ stream.removeListener('error', filterBrokenPipe);
1752
+ }
1753
+ }
1754
+ function setupOnExit(stream) {
1755
+ if (global.WeakRef && global.WeakMap && global.FinalizationRegistry) {
1756
+ const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
1757
+ onExit.register(stream, autoEnd);
1758
+ stream.on('close', function() {
1759
+ onExit.unregister(stream);
1760
+ });
1761
+ }
1762
+ }
1763
+ function autoEnd(stream, eventName) {
1764
+ if (stream.destroyed) return;
1765
+ if ('beforeExit' === eventName) {
1766
+ stream.flush();
1767
+ stream.on('drain', function() {
1768
+ stream.end();
1769
+ });
1770
+ } else stream.flushSync();
1771
+ }
1772
+ },
1773
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/create-date.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1774
+ "use strict";
1775
+ module1.exports = createDate;
1776
+ const isValidDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/is-valid-date.js");
1777
+ function createDate(epoch) {
1778
+ let date = new Date(epoch);
1779
+ if (isValidDate(date)) return date;
1780
+ date = new Date(+epoch);
1781
+ return date;
1782
+ }
1783
+ },
1784
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/delete-log-property.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1785
+ "use strict";
1786
+ module1.exports = deleteLogProperty;
1787
+ const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/get-property-value.js");
1788
+ const splitPropertyKey = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/split-property-key.js");
1789
+ function deleteLogProperty(log, property) {
1790
+ const props = splitPropertyKey(property);
1791
+ const propToDelete = props.pop();
1792
+ log = getPropertyValue(log, props);
1793
+ if (null !== log && 'object' == typeof log && Object.prototype.hasOwnProperty.call(log, propToDelete)) delete log[propToDelete];
1794
+ }
1795
+ },
1796
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/filter-log.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1797
+ "use strict";
1798
+ module1.exports = filterLog;
1799
+ const { createCopier } = __webpack_require__("../../node_modules/.pnpm/fast-copy@3.0.2/node_modules/fast-copy/dist/cjs/index.cjs");
1800
+ const fastCopy = createCopier({});
1801
+ const deleteLogProperty = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/delete-log-property.js");
1802
+ function filterLog({ log, context }) {
1803
+ const { ignoreKeys, includeKeys } = context;
1804
+ const logCopy = fastCopy(log);
1805
+ if (includeKeys) {
1806
+ const logIncluded = {};
1807
+ includeKeys.forEach((key)=>{
1808
+ logIncluded[key] = logCopy[key];
1809
+ });
1810
+ return logIncluded;
1811
+ }
1812
+ ignoreKeys.forEach((ignoreKey)=>{
1813
+ deleteLogProperty(logCopy, ignoreKey);
1814
+ });
1815
+ return logCopy;
1816
+ }
1817
+ },
1818
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/format-time.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1819
+ "use strict";
1820
+ module1.exports = formatTime;
1821
+ const { DATE_FORMAT, DATE_FORMAT_SIMPLE } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/constants.js");
1822
+ const dateformat = __webpack_require__("../../node_modules/.pnpm/dateformat@4.6.3/node_modules/dateformat/lib/dateformat.js");
1823
+ const createDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/create-date.js");
1824
+ const isValidDate = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/is-valid-date.js");
1825
+ function formatTime(epoch, translateTime = false) {
1826
+ if (false === translateTime) return epoch;
1827
+ const instant = createDate(epoch);
1828
+ if (!isValidDate(instant)) return epoch;
1829
+ if (true === translateTime) return dateformat(instant, DATE_FORMAT_SIMPLE);
1830
+ const upperFormat = translateTime.toUpperCase();
1831
+ if ('SYS:STANDARD' === upperFormat) return dateformat(instant, DATE_FORMAT);
1832
+ const prefix = upperFormat.substr(0, 4);
1833
+ if ('SYS:' === prefix || 'UTC:' === prefix) {
1834
+ if ('UTC:' === prefix) return dateformat(instant, translateTime);
1835
+ return dateformat(instant, translateTime.slice(4));
1836
+ }
1837
+ return dateformat(instant, `UTC:${translateTime}`);
1838
+ }
1839
+ },
1840
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/get-level-label-data.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1841
+ "use strict";
1842
+ module1.exports = getLevelLabelData;
1843
+ const { LEVELS, LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/constants.js");
1844
+ function getLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames) {
1845
+ const levels = useOnlyCustomProps ? customLevels || LEVELS : Object.assign({}, LEVELS, customLevels);
1846
+ const levelNames = useOnlyCustomProps ? customLevelNames || LEVEL_NAMES : Object.assign({}, LEVEL_NAMES, customLevelNames);
1847
+ return function(level) {
1848
+ let levelNum = 'default';
1849
+ levelNum = Number.isInteger(+level) ? Object.prototype.hasOwnProperty.call(levels, level) ? level : levelNum : Object.prototype.hasOwnProperty.call(levelNames, level.toLowerCase()) ? levelNames[level.toLowerCase()] : levelNum;
1850
+ return [
1851
+ levels[levelNum],
1852
+ levelNum
1853
+ ];
1854
+ };
1855
+ }
1856
+ },
1857
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/get-property-value.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1858
+ "use strict";
1859
+ module1.exports = getPropertyValue;
1860
+ const splitPropertyKey = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/split-property-key.js");
1861
+ function getPropertyValue(obj, property) {
1862
+ const props = Array.isArray(property) ? property : splitPropertyKey(property);
1863
+ for (const prop of props){
1864
+ if (!Object.prototype.hasOwnProperty.call(obj, prop)) return;
1865
+ obj = obj[prop];
1866
+ }
1867
+ return obj;
1868
+ }
1869
+ },
1870
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js": function(module1) {
1871
+ "use strict";
1872
+ module1.exports = handleCustomLevelsNamesOpts;
1873
+ function handleCustomLevelsNamesOpts(cLevels) {
1874
+ if (!cLevels) return {};
1875
+ if ('string' == typeof cLevels) return cLevels.split(',').reduce((agg, value, idx)=>{
1876
+ const [levelName, levelNum = idx] = value.split(':');
1877
+ agg[levelName.toLowerCase()] = levelNum;
1878
+ return agg;
1879
+ }, {});
1880
+ if ('[object Object]' === Object.prototype.toString.call(cLevels)) return Object.keys(cLevels).reduce((agg, levelName)=>{
1881
+ agg[levelName.toLowerCase()] = cLevels[levelName];
1882
+ return agg;
1883
+ }, {});
1884
+ return {};
1885
+ }
1886
+ },
1887
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js": function(module1) {
1888
+ "use strict";
1889
+ module1.exports = handleCustomLevelsOpts;
1890
+ function handleCustomLevelsOpts(cLevels) {
1891
+ if (!cLevels) return {};
1892
+ if ('string' == typeof cLevels) return cLevels.split(',').reduce((agg, value, idx)=>{
1893
+ const [levelName, levelNum = idx] = value.split(':');
1894
+ agg[levelNum] = levelName.toUpperCase();
1895
+ return agg;
1896
+ }, {
1897
+ default: 'USERLVL'
1898
+ });
1899
+ if ('[object Object]' === Object.prototype.toString.call(cLevels)) return Object.keys(cLevels).reduce((agg, levelName)=>{
1900
+ agg[cLevels[levelName]] = levelName.toUpperCase();
1901
+ return agg;
1902
+ }, {
1903
+ default: 'USERLVL'
1904
+ });
1905
+ return {};
1906
+ }
1907
+ },
1908
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1909
+ "use strict";
1910
+ module1.exports = {
1911
+ buildSafeSonicBoom: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.js"),
1912
+ createDate: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/create-date.js"),
1913
+ deleteLogProperty: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/delete-log-property.js"),
1914
+ filterLog: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/filter-log.js"),
1915
+ formatTime: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/format-time.js"),
1916
+ getPropertyValue: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/get-property-value.js"),
1917
+ handleCustomLevelsNamesOpts: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js"),
1918
+ handleCustomLevelsOpts: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js"),
1919
+ interpretConditionals: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/interpret-conditionals.js"),
1920
+ isObject: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/is-object.js"),
1921
+ isValidDate: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/is-valid-date.js"),
1922
+ joinLinesWithIndentation: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js"),
1923
+ noop: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/noop.js"),
1924
+ parseFactoryOptions: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/parse-factory-options.js"),
1925
+ prettifyErrorLog: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-error-log.js"),
1926
+ prettifyError: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-error.js"),
1927
+ prettifyLevel: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-level.js"),
1928
+ prettifyMessage: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-message.js"),
1929
+ prettifyMetadata: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-metadata.js"),
1930
+ prettifyObject: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-object.js"),
1931
+ prettifyTime: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-time.js"),
1932
+ splitPropertyKey: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/split-property-key.js"),
1933
+ getLevelLabelData: __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/get-level-label-data.js")
1934
+ };
1935
+ },
1936
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/interpret-conditionals.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1937
+ "use strict";
1938
+ module1.exports = interpretConditionals;
1939
+ const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/get-property-value.js");
1940
+ function interpretConditionals(messageFormat, log) {
1941
+ messageFormat = messageFormat.replace(/{if (.*?)}(.*?){end}/g, replacer);
1942
+ messageFormat = messageFormat.replace(/{if (.*?)}/g, '');
1943
+ messageFormat = messageFormat.replace(/{end}/g, '');
1944
+ return messageFormat.replace(/\s+/g, ' ').trim();
1945
+ function replacer(_, key, value) {
1946
+ const propertyValue = getPropertyValue(log, key);
1947
+ if (propertyValue && value.includes(key)) return value.replace(new RegExp('{' + key + '}', 'g'), propertyValue);
1948
+ return '';
1949
+ }
1950
+ }
1951
+ },
1952
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/is-object.js": function(module1) {
1953
+ "use strict";
1954
+ module1.exports = isObject;
1955
+ function isObject(input) {
1956
+ return '[object Object]' === Object.prototype.toString.apply(input);
1957
+ }
1958
+ },
1959
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/is-valid-date.js": function(module1) {
1960
+ "use strict";
1961
+ module1.exports = isValidDate;
1962
+ function isValidDate(date) {
1963
+ return date instanceof Date && !Number.isNaN(date.getTime());
1964
+ }
1965
+ },
1966
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js": function(module1) {
1967
+ "use strict";
1968
+ module1.exports = joinLinesWithIndentation;
1969
+ function joinLinesWithIndentation({ input, ident = ' ', eol = '\n' }) {
1970
+ const lines = input.split(/\r?\n/);
1971
+ for(let i = 1; i < lines.length; i += 1)lines[i] = ident + lines[i];
1972
+ return lines.join(eol);
1973
+ }
1974
+ },
1975
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/noop.js": function(module1) {
1976
+ "use strict";
1977
+ module1.exports = function() {};
1978
+ },
1979
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/parse-factory-options.js": function(module1, __unused_webpack_exports, __webpack_require__) {
1980
+ "use strict";
1981
+ module1.exports = parseFactoryOptions;
1982
+ const { LEVEL_NAMES } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/constants.js");
1983
+ const colors = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/colors.js");
1984
+ const handleCustomLevelsOpts = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.js");
1985
+ const handleCustomLevelsNamesOpts = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.js");
1986
+ const handleLevelLabelData = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/get-level-label-data.js");
1987
+ function parseFactoryOptions(options) {
1988
+ const EOL = options.crlf ? '\r\n' : '\n';
1989
+ const IDENT = ' ';
1990
+ const { customPrettifiers, errorLikeObjectKeys, hideObject, levelFirst, levelKey, levelLabel, messageFormat, messageKey, minimumLevel, singleLine, timestampKey, translateTime } = options;
1991
+ const errorProps = options.errorProps.split(',');
1992
+ const useOnlyCustomProps = 'boolean' == typeof options.useOnlyCustomProps ? options.useOnlyCustomProps : 'true' === options.useOnlyCustomProps;
1993
+ const customLevels = handleCustomLevelsOpts(options.customLevels);
1994
+ const customLevelNames = handleCustomLevelsNamesOpts(options.customLevels);
1995
+ const getLevelLabelData = handleLevelLabelData(useOnlyCustomProps, customLevels, customLevelNames);
1996
+ let customColors;
1997
+ if (options.customColors) if ('string' == typeof options.customColors) customColors = options.customColors.split(',').reduce((agg, value)=>{
1998
+ const [level, color] = value.split(':');
1999
+ const condition = useOnlyCustomProps ? options.customLevels : void 0 !== customLevelNames[level];
2000
+ const levelNum = condition ? customLevelNames[level] : LEVEL_NAMES[level];
2001
+ const colorIdx = void 0 !== levelNum ? levelNum : level;
2002
+ agg.push([
2003
+ colorIdx,
2004
+ color
2005
+ ]);
2006
+ return agg;
2007
+ }, []);
2008
+ else if ('object' == typeof options.customColors) customColors = Object.keys(options.customColors).reduce((agg, value)=>{
2009
+ const [level, color] = [
2010
+ value,
2011
+ options.customColors[value]
2012
+ ];
2013
+ const condition = useOnlyCustomProps ? options.customLevels : void 0 !== customLevelNames[level];
2014
+ const levelNum = condition ? customLevelNames[level] : LEVEL_NAMES[level];
2015
+ const colorIdx = void 0 !== levelNum ? levelNum : level;
2016
+ agg.push([
2017
+ colorIdx,
2018
+ color
2019
+ ]);
2020
+ return agg;
2021
+ }, []);
2022
+ else throw new Error('options.customColors must be of type string or object.');
2023
+ const customProperties = {
2024
+ customLevels,
2025
+ customLevelNames
2026
+ };
2027
+ if (true === useOnlyCustomProps && !options.customLevels) {
2028
+ customProperties.customLevels = void 0;
2029
+ customProperties.customLevelNames = void 0;
2030
+ }
2031
+ const includeKeys = void 0 !== options.include ? new Set(options.include.split(',')) : void 0;
2032
+ const ignoreKeys = !includeKeys && options.ignore ? new Set(options.ignore.split(',')) : void 0;
2033
+ const colorizer = colors(options.colorize, customColors, useOnlyCustomProps);
2034
+ const objectColorizer = options.colorizeObjects ? colorizer : colors(false, [], false);
2035
+ return {
2036
+ EOL,
2037
+ IDENT,
2038
+ colorizer,
2039
+ customColors,
2040
+ customLevelNames,
2041
+ customLevels,
2042
+ customPrettifiers,
2043
+ customProperties,
2044
+ errorLikeObjectKeys,
2045
+ errorProps,
2046
+ getLevelLabelData,
2047
+ hideObject,
2048
+ ignoreKeys,
2049
+ includeKeys,
2050
+ levelFirst,
2051
+ levelKey,
2052
+ levelLabel,
2053
+ messageFormat,
2054
+ messageKey,
2055
+ minimumLevel,
2056
+ objectColorizer,
2057
+ singleLine,
2058
+ timestampKey,
2059
+ translateTime,
2060
+ useOnlyCustomProps
2061
+ };
2062
+ }
2063
+ },
2064
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-error-log.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2065
+ "use strict";
2066
+ module1.exports = prettifyErrorLog;
2067
+ const { LOGGER_KEYS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/constants.js");
2068
+ const isObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/is-object.js");
2069
+ const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js");
2070
+ const prettifyObject = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-object.js");
2071
+ function prettifyErrorLog({ log, context }) {
2072
+ const { EOL: eol, IDENT: ident, errorProps: errorProperties, messageKey } = context;
2073
+ const stack = log.stack;
2074
+ const joinedLines = joinLinesWithIndentation({
2075
+ input: stack,
2076
+ ident,
2077
+ eol
2078
+ });
2079
+ let result = `${ident}${joinedLines}${eol}`;
2080
+ if (errorProperties.length > 0) {
2081
+ const excludeProperties = LOGGER_KEYS.concat(messageKey, 'type', 'stack');
2082
+ let propertiesToPrint;
2083
+ propertiesToPrint = '*' === errorProperties[0] ? Object.keys(log).filter((k)=>false === excludeProperties.includes(k)) : errorProperties.filter((k)=>false === excludeProperties.includes(k));
2084
+ for(let i = 0; i < propertiesToPrint.length; i += 1){
2085
+ const key = propertiesToPrint[i];
2086
+ if (key in log !== false) {
2087
+ if (isObject(log[key])) {
2088
+ const prettifiedObject = prettifyObject({
2089
+ log: log[key],
2090
+ excludeLoggerKeys: false,
2091
+ context: {
2092
+ ...context,
2093
+ IDENT: ident + ident
2094
+ }
2095
+ });
2096
+ result = `${result}${ident}${key}: {${eol}${prettifiedObject}${ident}}${eol}`;
2097
+ continue;
2098
+ }
2099
+ result = `${result}${ident}${key}: ${log[key]}${eol}`;
2100
+ }
2101
+ }
2102
+ }
2103
+ return result;
2104
+ }
2105
+ },
2106
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-error.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2107
+ "use strict";
2108
+ module1.exports = prettifyError;
2109
+ const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js");
2110
+ function prettifyError({ keyName, lines, eol, ident }) {
2111
+ let result = '';
2112
+ const joinedLines = joinLinesWithIndentation({
2113
+ input: lines,
2114
+ ident,
2115
+ eol
2116
+ });
2117
+ const splitLines = `${ident}${keyName}: ${joinedLines}${eol}`.split(eol);
2118
+ for(let j = 0; j < splitLines.length; j += 1){
2119
+ if (0 !== j) result += eol;
2120
+ const line = splitLines[j];
2121
+ if (/^\s*"stack"/.test(line)) {
2122
+ const matches = /^(\s*"stack":)\s*(".*"),?$/.exec(line);
2123
+ if (matches && 3 === matches.length) {
2124
+ const indentSize = /^\s*/.exec(line)[0].length + 4;
2125
+ const indentation = ' '.repeat(indentSize);
2126
+ const stackMessage = matches[2];
2127
+ result += matches[1] + eol + indentation + JSON.parse(stackMessage).replace(/\n/g, eol + indentation);
2128
+ } else result += line;
2129
+ } else result += line;
2130
+ }
2131
+ return result;
2132
+ }
2133
+ },
2134
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-level.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2135
+ "use strict";
2136
+ module1.exports = prettifyLevel;
2137
+ const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/get-property-value.js");
2138
+ function prettifyLevel({ log, context }) {
2139
+ const { colorizer, customLevels, customLevelNames, levelKey, getLevelLabelData } = context;
2140
+ const prettifier = context.customPrettifiers?.level;
2141
+ const output = getPropertyValue(log, levelKey);
2142
+ if (void 0 === output) return;
2143
+ const labelColorized = colorizer(output, {
2144
+ customLevels,
2145
+ customLevelNames
2146
+ });
2147
+ if (prettifier) {
2148
+ const [label] = getLevelLabelData(output);
2149
+ return prettifier(output, levelKey, log, {
2150
+ label,
2151
+ labelColorized,
2152
+ colors: colorizer.colors
2153
+ });
2154
+ }
2155
+ return labelColorized;
2156
+ }
2157
+ },
2158
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-message.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2159
+ "use strict";
2160
+ module1.exports = prettifyMessage;
2161
+ const { LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/constants.js");
2162
+ const getPropertyValue = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/get-property-value.js");
2163
+ const interpretConditionals = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/interpret-conditionals.js");
2164
+ function prettifyMessage({ log, context }) {
2165
+ const { colorizer, customLevels, levelKey, levelLabel, messageFormat, messageKey, useOnlyCustomProps } = context;
2166
+ if (messageFormat && 'string' == typeof messageFormat) {
2167
+ const parsedMessageFormat = interpretConditionals(messageFormat, log);
2168
+ const message = String(parsedMessageFormat).replace(/{([^{}]+)}/g, function(match, p1) {
2169
+ let level;
2170
+ if (p1 === levelLabel && void 0 !== (level = getPropertyValue(log, levelKey))) {
2171
+ const condition = useOnlyCustomProps ? void 0 === customLevels : void 0 === customLevels[level];
2172
+ return condition ? LEVELS[level] : customLevels[level];
2173
+ }
2174
+ return getPropertyValue(log, p1) || '';
2175
+ });
2176
+ return colorizer.message(message);
2177
+ }
2178
+ if (messageFormat && 'function' == typeof messageFormat) {
2179
+ const msg = messageFormat(log, messageKey, levelLabel, {
2180
+ colors: colorizer.colors
2181
+ });
2182
+ return colorizer.message(msg);
2183
+ }
2184
+ if (messageKey in log === false) return;
2185
+ if ('string' != typeof log[messageKey] && 'number' != typeof log[messageKey] && 'boolean' != typeof log[messageKey]) return;
2186
+ return colorizer.message(log[messageKey]);
2187
+ }
2188
+ },
2189
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-metadata.js": function(module1) {
2190
+ "use strict";
2191
+ module1.exports = prettifyMetadata;
2192
+ function prettifyMetadata({ log, context }) {
2193
+ const { customPrettifiers: prettifiers, colorizer } = context;
2194
+ let line = '';
2195
+ if (log.name || log.pid || log.hostname) {
2196
+ line += '(';
2197
+ if (log.name) line += prettifiers.name ? prettifiers.name(log.name, 'name', log, {
2198
+ colors: colorizer.colors
2199
+ }) : log.name;
2200
+ if (log.pid) {
2201
+ const prettyPid = prettifiers.pid ? prettifiers.pid(log.pid, 'pid', log, {
2202
+ colors: colorizer.colors
2203
+ }) : log.pid;
2204
+ if (log.name && log.pid) line += '/' + prettyPid;
2205
+ else line += prettyPid;
2206
+ }
2207
+ if (log.hostname) {
2208
+ const prettyHostname = prettifiers.hostname ? prettifiers.hostname(log.hostname, 'hostname', log, {
2209
+ colors: colorizer.colors
2210
+ }) : log.hostname;
2211
+ line += `${'(' === line ? 'on' : ' on'} ${prettyHostname}`;
2212
+ }
2213
+ line += ')';
2214
+ }
2215
+ if (log.caller) {
2216
+ const prettyCaller = prettifiers.caller ? prettifiers.caller(log.caller, 'caller', log, {
2217
+ colors: colorizer.colors
2218
+ }) : log.caller;
2219
+ line += `${'' === line ? '' : ' '}<${prettyCaller}>`;
2220
+ }
2221
+ if ('' === line) return;
2222
+ return line;
2223
+ }
2224
+ },
2225
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-object.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2226
+ "use strict";
2227
+ module1.exports = prettifyObject;
2228
+ const { LOGGER_KEYS } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/constants.js");
2229
+ const stringifySafe = __webpack_require__("../../node_modules/.pnpm/fast-safe-stringify@2.1.1/node_modules/fast-safe-stringify/index.js");
2230
+ const joinLinesWithIndentation = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.js");
2231
+ const prettifyError = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-error.js");
2232
+ function prettifyObject({ log, excludeLoggerKeys = true, skipKeys = [], context }) {
2233
+ const { EOL: eol, IDENT: ident, customPrettifiers, errorLikeObjectKeys: errorLikeKeys, objectColorizer, singleLine, colorizer } = context;
2234
+ const keysToIgnore = [].concat(skipKeys);
2235
+ if (true === excludeLoggerKeys) Array.prototype.push.apply(keysToIgnore, LOGGER_KEYS);
2236
+ let result = '';
2237
+ const { plain, errors } = Object.entries(log).reduce(({ plain, errors }, [k, v])=>{
2238
+ if (false === keysToIgnore.includes(k)) {
2239
+ const pretty = 'function' == typeof customPrettifiers[k] ? customPrettifiers[k](v, k, log, {
2240
+ colors: colorizer.colors
2241
+ }) : v;
2242
+ if (errorLikeKeys.includes(k)) errors[k] = pretty;
2243
+ else plain[k] = pretty;
2244
+ }
2245
+ return {
2246
+ plain,
2247
+ errors
2248
+ };
2249
+ }, {
2250
+ plain: {},
2251
+ errors: {}
2252
+ });
2253
+ if (singleLine) {
2254
+ if (Object.keys(plain).length > 0) result += objectColorizer.greyMessage(stringifySafe(plain));
2255
+ result += eol;
2256
+ result = result.replace(/\\\\/gi, '\\');
2257
+ } else Object.entries(plain).forEach(([keyName, keyValue])=>{
2258
+ let lines = 'function' == typeof customPrettifiers[keyName] ? keyValue : stringifySafe(keyValue, null, 2);
2259
+ if (void 0 === lines) return;
2260
+ lines = lines.replace(/\\\\/gi, '\\');
2261
+ const joinedLines = joinLinesWithIndentation({
2262
+ input: lines,
2263
+ ident,
2264
+ eol
2265
+ });
2266
+ result += `${ident}${keyName}:${joinedLines.startsWith(eol) ? '' : ' '}${joinedLines}${eol}`;
2267
+ });
2268
+ Object.entries(errors).forEach(([keyName, keyValue])=>{
2269
+ const lines = 'function' == typeof customPrettifiers[keyName] ? keyValue : stringifySafe(keyValue, null, 2);
2270
+ if (void 0 === lines) return;
2271
+ result += prettifyError({
2272
+ keyName,
2273
+ lines,
2274
+ eol,
2275
+ ident
2276
+ });
2277
+ });
2278
+ return result;
2279
+ }
2280
+ },
2281
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/prettify-time.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2282
+ "use strict";
2283
+ module1.exports = prettifyTime;
2284
+ const formatTime = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/format-time.js");
2285
+ function prettifyTime({ log, context }) {
2286
+ const { timestampKey, translateTime: translateFormat } = context;
2287
+ const prettifier = context.customPrettifiers?.time;
2288
+ let time = null;
2289
+ if (timestampKey in log) time = log[timestampKey];
2290
+ else if ('timestamp' in log) time = log.timestamp;
2291
+ if (null === time) return;
2292
+ const output = translateFormat ? formatTime(time, translateFormat) : time;
2293
+ return prettifier ? prettifier(output) : `[${output}]`;
2294
+ }
2295
+ },
2296
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/split-property-key.js": function(module1) {
2297
+ "use strict";
2298
+ module1.exports = splitPropertyKey;
2299
+ function splitPropertyKey(key) {
2300
+ const result = [];
2301
+ let backslash = false;
2302
+ let segment = '';
2303
+ for(let i = 0; i < key.length; i++){
2304
+ const c = key.charAt(i);
2305
+ if ('\\' === c) {
2306
+ backslash = true;
2307
+ continue;
2308
+ }
2309
+ if (backslash) {
2310
+ backslash = false;
2311
+ segment += c;
2312
+ continue;
2313
+ }
2314
+ if ('.' === c) {
2315
+ result.push(segment);
2316
+ segment = '';
2317
+ continue;
2318
+ }
2319
+ segment += c;
2320
+ }
2321
+ if (segment.length) result.push(segment);
2322
+ return result;
2323
+ }
2324
+ },
2325
+ "../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2326
+ "use strict";
2327
+ const fs = __webpack_require__("fs");
2328
+ const EventEmitter = __webpack_require__("events");
2329
+ const inherits = __webpack_require__("util").inherits;
2330
+ const path = __webpack_require__("path");
2331
+ const sleep = __webpack_require__("../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js");
2332
+ const assert = __webpack_require__("assert");
2333
+ const BUSY_WRITE_TIMEOUT = 100;
2334
+ const kEmptyBuffer = Buffer.allocUnsafe(0);
2335
+ const MAX_WRITE = 16384;
2336
+ const kContentModeBuffer = 'buffer';
2337
+ const kContentModeUtf8 = 'utf8';
2338
+ const [major, minor] = (process.versions.node || '0.0').split('.').map(Number);
2339
+ const kCopyBuffer = major >= 22 && minor >= 7;
2340
+ function openFile(file, sonic) {
2341
+ sonic._opening = true;
2342
+ sonic._writing = true;
2343
+ sonic._asyncDrainScheduled = false;
2344
+ function fileOpened(err, fd) {
2345
+ if (err) {
2346
+ sonic._reopening = false;
2347
+ sonic._writing = false;
2348
+ sonic._opening = false;
2349
+ if (sonic.sync) process.nextTick(()=>{
2350
+ if (sonic.listenerCount('error') > 0) sonic.emit('error', err);
2351
+ });
2352
+ else sonic.emit('error', err);
2353
+ return;
2354
+ }
2355
+ const reopening = sonic._reopening;
2356
+ sonic.fd = fd;
2357
+ sonic.file = file;
2358
+ sonic._reopening = false;
2359
+ sonic._opening = false;
2360
+ sonic._writing = false;
2361
+ if (sonic.sync) process.nextTick(()=>sonic.emit('ready'));
2362
+ else sonic.emit('ready');
2363
+ if (sonic.destroyed) return;
2364
+ if (!sonic._writing && sonic._len > sonic.minLength || sonic._flushPending) sonic._actualWrite();
2365
+ else if (reopening) process.nextTick(()=>sonic.emit('drain'));
2366
+ }
2367
+ const flags = sonic.append ? 'a' : 'w';
2368
+ const mode = sonic.mode;
2369
+ if (sonic.sync) try {
2370
+ if (sonic.mkdir) fs.mkdirSync(path.dirname(file), {
2371
+ recursive: true
2372
+ });
2373
+ const fd = fs.openSync(file, flags, mode);
2374
+ fileOpened(null, fd);
2375
+ } catch (err) {
2376
+ fileOpened(err);
2377
+ throw err;
2378
+ }
2379
+ else if (sonic.mkdir) fs.mkdir(path.dirname(file), {
2380
+ recursive: true
2381
+ }, (err)=>{
2382
+ if (err) return fileOpened(err);
2383
+ fs.open(file, flags, mode, fileOpened);
2384
+ });
2385
+ else fs.open(file, flags, mode, fileOpened);
2386
+ }
2387
+ function SonicBoom(opts) {
2388
+ if (!(this instanceof SonicBoom)) return new SonicBoom(opts);
2389
+ let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir, retryEAGAIN, fsync, contentMode, mode } = opts || {};
2390
+ fd = fd || dest;
2391
+ this._len = 0;
2392
+ this.fd = -1;
2393
+ this._bufs = [];
2394
+ this._lens = [];
2395
+ this._writing = false;
2396
+ this._ending = false;
2397
+ this._reopening = false;
2398
+ this._asyncDrainScheduled = false;
2399
+ this._flushPending = false;
2400
+ this._hwm = Math.max(minLength || 0, 16387);
2401
+ this.file = null;
2402
+ this.destroyed = false;
2403
+ this.minLength = minLength || 0;
2404
+ this.maxLength = maxLength || 0;
2405
+ this.maxWrite = maxWrite || MAX_WRITE;
2406
+ this._periodicFlush = periodicFlush || 0;
2407
+ this._periodicFlushTimer = void 0;
2408
+ this.sync = sync || false;
2409
+ this.writable = true;
2410
+ this._fsync = fsync || false;
2411
+ this.append = append || false;
2412
+ this.mode = mode;
2413
+ this.retryEAGAIN = retryEAGAIN || (()=>true);
2414
+ this.mkdir = mkdir || false;
2415
+ let fsWriteSync;
2416
+ let fsWrite;
2417
+ if (contentMode === kContentModeBuffer) {
2418
+ this._writingBuf = kEmptyBuffer;
2419
+ this.write = writeBuffer;
2420
+ this.flush = flushBuffer;
2421
+ this.flushSync = flushBufferSync;
2422
+ this._actualWrite = actualWriteBuffer;
2423
+ fsWriteSync = ()=>fs.writeSync(this.fd, this._writingBuf);
2424
+ fsWrite = ()=>fs.write(this.fd, this._writingBuf, this.release);
2425
+ } else if (void 0 === contentMode || contentMode === kContentModeUtf8) {
2426
+ this._writingBuf = '';
2427
+ this.write = write;
2428
+ this.flush = flush;
2429
+ this.flushSync = flushSync;
2430
+ this._actualWrite = actualWrite;
2431
+ fsWriteSync = ()=>fs.writeSync(this.fd, this._writingBuf, 'utf8');
2432
+ fsWrite = ()=>fs.write(this.fd, this._writingBuf, 'utf8', this.release);
2433
+ } else throw new Error(`SonicBoom supports "${kContentModeUtf8}" and "${kContentModeBuffer}", but passed ${contentMode}`);
2434
+ if ('number' == typeof fd) {
2435
+ this.fd = fd;
2436
+ process.nextTick(()=>this.emit('ready'));
2437
+ } else if ('string' == typeof fd) openFile(fd, this);
2438
+ else throw new Error("SonicBoom supports only file descriptors and files");
2439
+ if (this.minLength >= this.maxWrite) throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);
2440
+ this.release = (err, n)=>{
2441
+ if (err) {
2442
+ if (('EAGAIN' === err.code || 'EBUSY' === err.code) && this.retryEAGAIN(err, this._writingBuf.length, this._len - this._writingBuf.length)) if (this.sync) try {
2443
+ sleep(BUSY_WRITE_TIMEOUT);
2444
+ this.release(void 0, 0);
2445
+ } catch (err) {
2446
+ this.release(err);
2447
+ }
2448
+ else setTimeout(fsWrite, BUSY_WRITE_TIMEOUT);
2449
+ else {
2450
+ this._writing = false;
2451
+ this.emit('error', err);
2452
+ }
2453
+ return;
2454
+ }
2455
+ this.emit('write', n);
2456
+ const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len, n);
2457
+ this._len = releasedBufObj.len;
2458
+ this._writingBuf = releasedBufObj.writingBuf;
2459
+ if (this._writingBuf.length) {
2460
+ if (!this.sync) return void fsWrite();
2461
+ try {
2462
+ do {
2463
+ const n = fsWriteSync();
2464
+ const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len, n);
2465
+ this._len = releasedBufObj.len;
2466
+ this._writingBuf = releasedBufObj.writingBuf;
2467
+ }while (this._writingBuf.length);
2468
+ } catch (err) {
2469
+ this.release(err);
2470
+ return;
2471
+ }
2472
+ }
2473
+ if (this._fsync) fs.fsyncSync(this.fd);
2474
+ const len = this._len;
2475
+ if (this._reopening) {
2476
+ this._writing = false;
2477
+ this._reopening = false;
2478
+ this.reopen();
2479
+ } else if (len > this.minLength) this._actualWrite();
2480
+ else if (this._ending) if (len > 0) this._actualWrite();
2481
+ else {
2482
+ this._writing = false;
2483
+ actualClose(this);
2484
+ }
2485
+ else {
2486
+ this._writing = false;
2487
+ if (this.sync) {
2488
+ if (!this._asyncDrainScheduled) {
2489
+ this._asyncDrainScheduled = true;
2490
+ process.nextTick(emitDrain, this);
2491
+ }
2492
+ } else this.emit('drain');
2493
+ }
2494
+ };
2495
+ this.on('newListener', function(name) {
2496
+ if ('drain' === name) this._asyncDrainScheduled = false;
2497
+ });
2498
+ if (0 !== this._periodicFlush) {
2499
+ this._periodicFlushTimer = setInterval(()=>this.flush(null), this._periodicFlush);
2500
+ this._periodicFlushTimer.unref();
2501
+ }
2502
+ }
2503
+ function releaseWritingBuf(writingBuf, len, n) {
2504
+ if ('string' == typeof writingBuf && Buffer.byteLength(writingBuf) !== n) n = Buffer.from(writingBuf).subarray(0, n).toString().length;
2505
+ len = Math.max(len - n, 0);
2506
+ writingBuf = writingBuf.slice(n);
2507
+ return {
2508
+ writingBuf,
2509
+ len
2510
+ };
2511
+ }
2512
+ function emitDrain(sonic) {
2513
+ const hasListeners = sonic.listenerCount('drain') > 0;
2514
+ if (!hasListeners) return;
2515
+ sonic._asyncDrainScheduled = false;
2516
+ sonic.emit('drain');
2517
+ }
2518
+ inherits(SonicBoom, EventEmitter);
2519
+ function mergeBuf(bufs, len) {
2520
+ if (0 === bufs.length) return kEmptyBuffer;
2521
+ if (1 === bufs.length) return bufs[0];
2522
+ return Buffer.concat(bufs, len);
2523
+ }
2524
+ function write(data) {
2525
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2526
+ const len = this._len + data.length;
2527
+ const bufs = this._bufs;
2528
+ if (this.maxLength && len > this.maxLength) {
2529
+ this.emit('drop', data);
2530
+ return this._len < this._hwm;
2531
+ }
2532
+ if (0 === bufs.length || bufs[bufs.length - 1].length + data.length > this.maxWrite) bufs.push('' + data);
2533
+ else bufs[bufs.length - 1] += data;
2534
+ this._len = len;
2535
+ if (!this._writing && this._len >= this.minLength) this._actualWrite();
2536
+ return this._len < this._hwm;
2537
+ }
2538
+ function writeBuffer(data) {
2539
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2540
+ const len = this._len + data.length;
2541
+ const bufs = this._bufs;
2542
+ const lens = this._lens;
2543
+ if (this.maxLength && len > this.maxLength) {
2544
+ this.emit('drop', data);
2545
+ return this._len < this._hwm;
2546
+ }
2547
+ if (0 === bufs.length || lens[lens.length - 1] + data.length > this.maxWrite) {
2548
+ bufs.push([
2549
+ data
2550
+ ]);
2551
+ lens.push(data.length);
2552
+ } else {
2553
+ bufs[bufs.length - 1].push(data);
2554
+ lens[lens.length - 1] += data.length;
2555
+ }
2556
+ this._len = len;
2557
+ if (!this._writing && this._len >= this.minLength) this._actualWrite();
2558
+ return this._len < this._hwm;
2559
+ }
2560
+ function callFlushCallbackOnDrain(cb) {
2561
+ this._flushPending = true;
2562
+ const onDrain = ()=>{
2563
+ if (this._fsync) {
2564
+ this._flushPending = false;
2565
+ cb();
2566
+ } else try {
2567
+ fs.fsync(this.fd, (err)=>{
2568
+ this._flushPending = false;
2569
+ cb(err);
2570
+ });
2571
+ } catch (err) {
2572
+ cb(err);
2573
+ }
2574
+ this.off('error', onError);
2575
+ };
2576
+ const onError = (err)=>{
2577
+ this._flushPending = false;
2578
+ cb(err);
2579
+ this.off('drain', onDrain);
2580
+ };
2581
+ this.once('drain', onDrain);
2582
+ this.once('error', onError);
2583
+ }
2584
+ function flush(cb) {
2585
+ if (null != cb && 'function' != typeof cb) throw new Error('flush cb must be a function');
2586
+ if (this.destroyed) {
2587
+ const error = new Error('SonicBoom destroyed');
2588
+ if (cb) return void cb(error);
2589
+ throw error;
2590
+ }
2591
+ if (this.minLength <= 0) return void cb?.();
2592
+ if (cb) callFlushCallbackOnDrain.call(this, cb);
2593
+ if (this._writing) return;
2594
+ if (0 === this._bufs.length) this._bufs.push('');
2595
+ this._actualWrite();
2596
+ }
2597
+ function flushBuffer(cb) {
2598
+ if (null != cb && 'function' != typeof cb) throw new Error('flush cb must be a function');
2599
+ if (this.destroyed) {
2600
+ const error = new Error('SonicBoom destroyed');
2601
+ if (cb) return void cb(error);
2602
+ throw error;
2603
+ }
2604
+ if (this.minLength <= 0) return void cb?.();
2605
+ if (cb) callFlushCallbackOnDrain.call(this, cb);
2606
+ if (this._writing) return;
2607
+ if (0 === this._bufs.length) {
2608
+ this._bufs.push([]);
2609
+ this._lens.push(0);
2610
+ }
2611
+ this._actualWrite();
2612
+ }
2613
+ SonicBoom.prototype.reopen = function(file) {
2614
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2615
+ if (this._opening) return void this.once('ready', ()=>{
2616
+ this.reopen(file);
2617
+ });
2618
+ if (this._ending) return;
2619
+ if (!this.file) throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");
2620
+ if (file) this.file = file;
2621
+ this._reopening = true;
2622
+ if (this._writing) return;
2623
+ const fd = this.fd;
2624
+ this.once('ready', ()=>{
2625
+ if (fd !== this.fd) fs.close(fd, (err)=>{
2626
+ if (err) return this.emit('error', err);
2627
+ });
2628
+ });
2629
+ openFile(this.file, this);
2630
+ };
2631
+ SonicBoom.prototype.end = function() {
2632
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2633
+ if (this._opening) return void this.once('ready', ()=>{
2634
+ this.end();
2635
+ });
2636
+ if (this._ending) return;
2637
+ this._ending = true;
2638
+ if (this._writing) return;
2639
+ if (this._len > 0 && this.fd >= 0) this._actualWrite();
2640
+ else actualClose(this);
2641
+ };
2642
+ function flushSync() {
2643
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2644
+ if (this.fd < 0) throw new Error('sonic boom is not ready yet');
2645
+ if (!this._writing && this._writingBuf.length > 0) {
2646
+ this._bufs.unshift(this._writingBuf);
2647
+ this._writingBuf = '';
2648
+ }
2649
+ let buf = '';
2650
+ while(this._bufs.length || buf){
2651
+ if (buf.length <= 0) buf = this._bufs[0];
2652
+ try {
2653
+ const n = fs.writeSync(this.fd, buf, 'utf8');
2654
+ const releasedBufObj = releaseWritingBuf(buf, this._len, n);
2655
+ buf = releasedBufObj.writingBuf;
2656
+ this._len = releasedBufObj.len;
2657
+ if (buf.length <= 0) this._bufs.shift();
2658
+ } catch (err) {
2659
+ const shouldRetry = 'EAGAIN' === err.code || 'EBUSY' === err.code;
2660
+ if (shouldRetry && !this.retryEAGAIN(err, buf.length, this._len - buf.length)) throw err;
2661
+ sleep(BUSY_WRITE_TIMEOUT);
2662
+ }
2663
+ }
2664
+ try {
2665
+ fs.fsyncSync(this.fd);
2666
+ } catch {}
2667
+ }
2668
+ function flushBufferSync() {
2669
+ if (this.destroyed) throw new Error('SonicBoom destroyed');
2670
+ if (this.fd < 0) throw new Error('sonic boom is not ready yet');
2671
+ if (!this._writing && this._writingBuf.length > 0) {
2672
+ this._bufs.unshift([
2673
+ this._writingBuf
2674
+ ]);
2675
+ this._writingBuf = kEmptyBuffer;
2676
+ }
2677
+ let buf = kEmptyBuffer;
2678
+ while(this._bufs.length || buf.length){
2679
+ if (buf.length <= 0) buf = mergeBuf(this._bufs[0], this._lens[0]);
2680
+ try {
2681
+ const n = fs.writeSync(this.fd, buf);
2682
+ buf = buf.subarray(n);
2683
+ this._len = Math.max(this._len - n, 0);
2684
+ if (buf.length <= 0) {
2685
+ this._bufs.shift();
2686
+ this._lens.shift();
2687
+ }
2688
+ } catch (err) {
2689
+ const shouldRetry = 'EAGAIN' === err.code || 'EBUSY' === err.code;
2690
+ if (shouldRetry && !this.retryEAGAIN(err, buf.length, this._len - buf.length)) throw err;
2691
+ sleep(BUSY_WRITE_TIMEOUT);
2692
+ }
2693
+ }
2694
+ }
2695
+ SonicBoom.prototype.destroy = function() {
2696
+ if (this.destroyed) return;
2697
+ actualClose(this);
2698
+ };
2699
+ function actualWrite() {
2700
+ const release = this.release;
2701
+ this._writing = true;
2702
+ this._writingBuf = this._writingBuf || this._bufs.shift() || '';
2703
+ if (this.sync) try {
2704
+ const written = fs.writeSync(this.fd, this._writingBuf, 'utf8');
2705
+ release(null, written);
2706
+ } catch (err) {
2707
+ release(err);
2708
+ }
2709
+ else fs.write(this.fd, this._writingBuf, 'utf8', release);
2710
+ }
2711
+ function actualWriteBuffer() {
2712
+ const release = this.release;
2713
+ this._writing = true;
2714
+ this._writingBuf = this._writingBuf.length ? this._writingBuf : mergeBuf(this._bufs.shift(), this._lens.shift());
2715
+ if (this.sync) try {
2716
+ const written = fs.writeSync(this.fd, this._writingBuf);
2717
+ release(null, written);
2718
+ } catch (err) {
2719
+ release(err);
2720
+ }
2721
+ else {
2722
+ if (kCopyBuffer) this._writingBuf = Buffer.from(this._writingBuf);
2723
+ fs.write(this.fd, this._writingBuf, release);
2724
+ }
2725
+ }
2726
+ function actualClose(sonic) {
2727
+ if (-1 === sonic.fd) return void sonic.once('ready', actualClose.bind(null, sonic));
2728
+ if (void 0 !== sonic._periodicFlushTimer) clearInterval(sonic._periodicFlushTimer);
2729
+ sonic.destroyed = true;
2730
+ sonic._bufs = [];
2731
+ sonic._lens = [];
2732
+ assert('number' == typeof sonic.fd, `sonic.fd must be a number, got ${typeof sonic.fd}`);
2733
+ try {
2734
+ fs.fsync(sonic.fd, closeWrapped);
2735
+ } catch {}
2736
+ function closeWrapped() {
2737
+ if (1 !== sonic.fd && 2 !== sonic.fd) fs.close(sonic.fd, done);
2738
+ else done();
2739
+ }
2740
+ function done(err) {
2741
+ if (err) return void sonic.emit('error', err);
2742
+ if (sonic._ending && !sonic._writing) sonic.emit('finish');
2743
+ sonic.emit('close');
2744
+ }
2745
+ }
2746
+ SonicBoom.SonicBoom = SonicBoom;
2747
+ SonicBoom.default = SonicBoom;
2748
+ module1.exports = SonicBoom;
2749
+ },
2750
+ "../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
2751
+ "use strict";
2752
+ const { isColorSupported } = __webpack_require__("../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.cjs");
2753
+ const pump = __webpack_require__("../../node_modules/.pnpm/pump@3.0.2/node_modules/pump/index.js");
2754
+ const { Transform } = __webpack_require__("stream");
2755
+ const abstractTransport = __webpack_require__("../../node_modules/.pnpm/pino-abstract-transport@2.0.0/node_modules/pino-abstract-transport/index.js");
2756
+ const colors = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/colors.js");
2757
+ const { ERROR_LIKE_KEYS, LEVEL_KEY, LEVEL_LABEL, MESSAGE_KEY, TIMESTAMP_KEY } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/constants.js");
2758
+ const { buildSafeSonicBoom, parseFactoryOptions } = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/utils/index.js");
2759
+ const pretty = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/lib/pretty.js");
2760
+ const defaultOptions = {
2761
+ colorize: isColorSupported,
2762
+ colorizeObjects: true,
2763
+ crlf: false,
2764
+ customColors: null,
2765
+ customLevels: null,
2766
+ customPrettifiers: {},
2767
+ errorLikeObjectKeys: ERROR_LIKE_KEYS,
2768
+ errorProps: '',
2769
+ hideObject: false,
2770
+ ignore: 'hostname',
2771
+ include: void 0,
2772
+ levelFirst: false,
2773
+ levelKey: LEVEL_KEY,
2774
+ levelLabel: LEVEL_LABEL,
2775
+ messageFormat: null,
2776
+ messageKey: MESSAGE_KEY,
2777
+ minimumLevel: void 0,
2778
+ outputStream: process.stdout,
2779
+ singleLine: false,
2780
+ timestampKey: TIMESTAMP_KEY,
2781
+ translateTime: true,
2782
+ useOnlyCustomProps: true
2783
+ };
2784
+ function prettyFactory(options) {
2785
+ const context = parseFactoryOptions(Object.assign({}, defaultOptions, options));
2786
+ return pretty.bind({
2787
+ ...context,
2788
+ context
2789
+ });
2790
+ }
2791
+ function build(opts = {}) {
2792
+ let pretty = prettyFactory(opts);
2793
+ let destination;
2794
+ return abstractTransport(function(source) {
2795
+ source.on('message', function pinoConfigListener(message) {
2796
+ if (!message || 'PINO_CONFIG' !== message.code) return;
2797
+ Object.assign(opts, {
2798
+ messageKey: message.config.messageKey,
2799
+ errorLikeObjectKeys: Array.from(new Set([
2800
+ ...opts.errorLikeObjectKeys || ERROR_LIKE_KEYS,
2801
+ message.config.errorKey
2802
+ ])),
2803
+ customLevels: message.config.levels.values
2804
+ });
2805
+ pretty = prettyFactory(opts);
2806
+ source.off('message', pinoConfigListener);
2807
+ });
2808
+ const stream = new Transform({
2809
+ objectMode: true,
2810
+ autoDestroy: true,
2811
+ transform (chunk, enc, cb) {
2812
+ const line = pretty(chunk);
2813
+ cb(null, line);
2814
+ }
2815
+ });
2816
+ destination = 'object' == typeof opts.destination && 'function' == typeof opts.destination.write ? opts.destination : buildSafeSonicBoom({
2817
+ dest: opts.destination || 1,
2818
+ append: opts.append,
2819
+ mkdir: opts.mkdir,
2820
+ sync: opts.sync
2821
+ });
2822
+ source.on('unknown', function(line) {
2823
+ destination.write(line + '\n');
2824
+ });
2825
+ pump(source, stream, destination);
2826
+ return stream;
2827
+ }, {
2828
+ parse: 'lines',
2829
+ close (err, cb) {
2830
+ destination.on('close', ()=>{
2831
+ cb(err);
2832
+ });
2833
+ }
2834
+ });
2835
+ }
2836
+ module1.exports = build;
2837
+ module1.exports.build = build;
2838
+ module1.exports.PinoPretty = build;
2839
+ module1.exports.prettyFactory = prettyFactory;
2840
+ module1.exports.colorizerFactory = colors;
2841
+ module1.exports.isColorSupported = isColorSupported;
2842
+ module1.exports["default"] = build;
2843
+ }
2844
+ };
2845
+ var __webpack_module_cache__ = {};
2846
+ function __webpack_require__(moduleId) {
2847
+ var cachedModule = __webpack_module_cache__[moduleId];
2848
+ if (void 0 !== cachedModule) return cachedModule.exports;
2849
+ var module1 = __webpack_module_cache__[moduleId] = {
2850
+ exports: {}
2851
+ };
2852
+ __webpack_modules__[moduleId](module1, module1.exports, __webpack_require__);
2853
+ return module1.exports;
2854
+ }
2855
+ var __webpack_exports__ = __webpack_require__("../../node_modules/.pnpm/pino-pretty@13.0.0/node_modules/pino-pretty/index.js");
2856
+ module.exports = __webpack_exports__;