@prisma/migrate 6.18.0-dev.12 → 6.18.0-dev.14

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,792 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_OP2BDF75_exports = {};
20
+ __export(chunk_OP2BDF75_exports, {
21
+ require_ms: () => require_ms,
22
+ require_src: () => require_src,
23
+ require_supports_color: () => require_supports_color
24
+ });
25
+ module.exports = __toCommonJS(chunk_OP2BDF75_exports);
26
+ var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
27
+ var require_ms = (0, import_chunk_2ESYSVXG.__commonJS)({
28
+ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
29
+ "use strict";
30
+ var s = 1e3;
31
+ var m = s * 60;
32
+ var h = m * 60;
33
+ var d = h * 24;
34
+ var w = d * 7;
35
+ var y = d * 365.25;
36
+ module2.exports = function(val, options) {
37
+ options = options || {};
38
+ var type = typeof val;
39
+ if (type === "string" && val.length > 0) {
40
+ return parse(val);
41
+ } else if (type === "number" && isFinite(val)) {
42
+ return options.long ? fmtLong(val) : fmtShort(val);
43
+ }
44
+ throw new Error(
45
+ "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
46
+ );
47
+ };
48
+ function parse(str) {
49
+ str = String(str);
50
+ if (str.length > 100) {
51
+ return;
52
+ }
53
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
54
+ str
55
+ );
56
+ if (!match) {
57
+ return;
58
+ }
59
+ var n = parseFloat(match[1]);
60
+ var type = (match[2] || "ms").toLowerCase();
61
+ switch (type) {
62
+ case "years":
63
+ case "year":
64
+ case "yrs":
65
+ case "yr":
66
+ case "y":
67
+ return n * y;
68
+ case "weeks":
69
+ case "week":
70
+ case "w":
71
+ return n * w;
72
+ case "days":
73
+ case "day":
74
+ case "d":
75
+ return n * d;
76
+ case "hours":
77
+ case "hour":
78
+ case "hrs":
79
+ case "hr":
80
+ case "h":
81
+ return n * h;
82
+ case "minutes":
83
+ case "minute":
84
+ case "mins":
85
+ case "min":
86
+ case "m":
87
+ return n * m;
88
+ case "seconds":
89
+ case "second":
90
+ case "secs":
91
+ case "sec":
92
+ case "s":
93
+ return n * s;
94
+ case "milliseconds":
95
+ case "millisecond":
96
+ case "msecs":
97
+ case "msec":
98
+ case "ms":
99
+ return n;
100
+ default:
101
+ return void 0;
102
+ }
103
+ }
104
+ function fmtShort(ms) {
105
+ var msAbs = Math.abs(ms);
106
+ if (msAbs >= d) {
107
+ return Math.round(ms / d) + "d";
108
+ }
109
+ if (msAbs >= h) {
110
+ return Math.round(ms / h) + "h";
111
+ }
112
+ if (msAbs >= m) {
113
+ return Math.round(ms / m) + "m";
114
+ }
115
+ if (msAbs >= s) {
116
+ return Math.round(ms / s) + "s";
117
+ }
118
+ return ms + "ms";
119
+ }
120
+ function fmtLong(ms) {
121
+ var msAbs = Math.abs(ms);
122
+ if (msAbs >= d) {
123
+ return plural(ms, msAbs, d, "day");
124
+ }
125
+ if (msAbs >= h) {
126
+ return plural(ms, msAbs, h, "hour");
127
+ }
128
+ if (msAbs >= m) {
129
+ return plural(ms, msAbs, m, "minute");
130
+ }
131
+ if (msAbs >= s) {
132
+ return plural(ms, msAbs, s, "second");
133
+ }
134
+ return ms + " ms";
135
+ }
136
+ function plural(ms, msAbs, n, name) {
137
+ var isPlural = msAbs >= n * 1.5;
138
+ return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
139
+ }
140
+ }
141
+ });
142
+ var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
143
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js"(exports, module2) {
144
+ "use strict";
145
+ function setup(env) {
146
+ createDebug.debug = createDebug;
147
+ createDebug.default = createDebug;
148
+ createDebug.coerce = coerce;
149
+ createDebug.disable = disable;
150
+ createDebug.enable = enable;
151
+ createDebug.enabled = enabled;
152
+ createDebug.humanize = require_ms();
153
+ createDebug.destroy = destroy;
154
+ Object.keys(env).forEach((key) => {
155
+ createDebug[key] = env[key];
156
+ });
157
+ createDebug.names = [];
158
+ createDebug.skips = [];
159
+ createDebug.formatters = {};
160
+ function selectColor(namespace) {
161
+ let hash = 0;
162
+ for (let i = 0; i < namespace.length; i++) {
163
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
164
+ hash |= 0;
165
+ }
166
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
167
+ }
168
+ createDebug.selectColor = selectColor;
169
+ function createDebug(namespace) {
170
+ let prevTime;
171
+ let enableOverride = null;
172
+ let namespacesCache;
173
+ let enabledCache;
174
+ function debug(...args) {
175
+ if (!debug.enabled) {
176
+ return;
177
+ }
178
+ const self = debug;
179
+ const curr = Number(/* @__PURE__ */ new Date());
180
+ const ms = curr - (prevTime || curr);
181
+ self.diff = ms;
182
+ self.prev = prevTime;
183
+ self.curr = curr;
184
+ prevTime = curr;
185
+ args[0] = createDebug.coerce(args[0]);
186
+ if (typeof args[0] !== "string") {
187
+ args.unshift("%O");
188
+ }
189
+ let index = 0;
190
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
191
+ if (match === "%%") {
192
+ return "%";
193
+ }
194
+ index++;
195
+ const formatter = createDebug.formatters[format];
196
+ if (typeof formatter === "function") {
197
+ const val = args[index];
198
+ match = formatter.call(self, val);
199
+ args.splice(index, 1);
200
+ index--;
201
+ }
202
+ return match;
203
+ });
204
+ createDebug.formatArgs.call(self, args);
205
+ const logFn = self.log || createDebug.log;
206
+ logFn.apply(self, args);
207
+ }
208
+ debug.namespace = namespace;
209
+ debug.useColors = createDebug.useColors();
210
+ debug.color = createDebug.selectColor(namespace);
211
+ debug.extend = extend;
212
+ debug.destroy = createDebug.destroy;
213
+ Object.defineProperty(debug, "enabled", {
214
+ enumerable: true,
215
+ configurable: false,
216
+ get: () => {
217
+ if (enableOverride !== null) {
218
+ return enableOverride;
219
+ }
220
+ if (namespacesCache !== createDebug.namespaces) {
221
+ namespacesCache = createDebug.namespaces;
222
+ enabledCache = createDebug.enabled(namespace);
223
+ }
224
+ return enabledCache;
225
+ },
226
+ set: (v) => {
227
+ enableOverride = v;
228
+ }
229
+ });
230
+ if (typeof createDebug.init === "function") {
231
+ createDebug.init(debug);
232
+ }
233
+ return debug;
234
+ }
235
+ function extend(namespace, delimiter) {
236
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
237
+ newDebug.log = this.log;
238
+ return newDebug;
239
+ }
240
+ function enable(namespaces) {
241
+ createDebug.save(namespaces);
242
+ createDebug.namespaces = namespaces;
243
+ createDebug.names = [];
244
+ createDebug.skips = [];
245
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
246
+ for (const ns of split) {
247
+ if (ns[0] === "-") {
248
+ createDebug.skips.push(ns.slice(1));
249
+ } else {
250
+ createDebug.names.push(ns);
251
+ }
252
+ }
253
+ }
254
+ function matchesTemplate(search, template) {
255
+ let searchIndex = 0;
256
+ let templateIndex = 0;
257
+ let starIndex = -1;
258
+ let matchIndex = 0;
259
+ while (searchIndex < search.length) {
260
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
261
+ if (template[templateIndex] === "*") {
262
+ starIndex = templateIndex;
263
+ matchIndex = searchIndex;
264
+ templateIndex++;
265
+ } else {
266
+ searchIndex++;
267
+ templateIndex++;
268
+ }
269
+ } else if (starIndex !== -1) {
270
+ templateIndex = starIndex + 1;
271
+ matchIndex++;
272
+ searchIndex = matchIndex;
273
+ } else {
274
+ return false;
275
+ }
276
+ }
277
+ while (templateIndex < template.length && template[templateIndex] === "*") {
278
+ templateIndex++;
279
+ }
280
+ return templateIndex === template.length;
281
+ }
282
+ function disable() {
283
+ const namespaces = [
284
+ ...createDebug.names,
285
+ ...createDebug.skips.map((namespace) => "-" + namespace)
286
+ ].join(",");
287
+ createDebug.enable("");
288
+ return namespaces;
289
+ }
290
+ function enabled(name) {
291
+ for (const skip of createDebug.skips) {
292
+ if (matchesTemplate(name, skip)) {
293
+ return false;
294
+ }
295
+ }
296
+ for (const ns of createDebug.names) {
297
+ if (matchesTemplate(name, ns)) {
298
+ return true;
299
+ }
300
+ }
301
+ return false;
302
+ }
303
+ function coerce(val) {
304
+ if (val instanceof Error) {
305
+ return val.stack || val.message;
306
+ }
307
+ return val;
308
+ }
309
+ function destroy() {
310
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
311
+ }
312
+ createDebug.enable(createDebug.load());
313
+ return createDebug;
314
+ }
315
+ module2.exports = setup;
316
+ }
317
+ });
318
+ var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
319
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js"(exports, module2) {
320
+ "use strict";
321
+ exports.formatArgs = formatArgs;
322
+ exports.save = save;
323
+ exports.load = load;
324
+ exports.useColors = useColors;
325
+ exports.storage = localstorage();
326
+ exports.destroy = /* @__PURE__ */ (() => {
327
+ let warned = false;
328
+ return () => {
329
+ if (!warned) {
330
+ warned = true;
331
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
332
+ }
333
+ };
334
+ })();
335
+ exports.colors = [
336
+ "#0000CC",
337
+ "#0000FF",
338
+ "#0033CC",
339
+ "#0033FF",
340
+ "#0066CC",
341
+ "#0066FF",
342
+ "#0099CC",
343
+ "#0099FF",
344
+ "#00CC00",
345
+ "#00CC33",
346
+ "#00CC66",
347
+ "#00CC99",
348
+ "#00CCCC",
349
+ "#00CCFF",
350
+ "#3300CC",
351
+ "#3300FF",
352
+ "#3333CC",
353
+ "#3333FF",
354
+ "#3366CC",
355
+ "#3366FF",
356
+ "#3399CC",
357
+ "#3399FF",
358
+ "#33CC00",
359
+ "#33CC33",
360
+ "#33CC66",
361
+ "#33CC99",
362
+ "#33CCCC",
363
+ "#33CCFF",
364
+ "#6600CC",
365
+ "#6600FF",
366
+ "#6633CC",
367
+ "#6633FF",
368
+ "#66CC00",
369
+ "#66CC33",
370
+ "#9900CC",
371
+ "#9900FF",
372
+ "#9933CC",
373
+ "#9933FF",
374
+ "#99CC00",
375
+ "#99CC33",
376
+ "#CC0000",
377
+ "#CC0033",
378
+ "#CC0066",
379
+ "#CC0099",
380
+ "#CC00CC",
381
+ "#CC00FF",
382
+ "#CC3300",
383
+ "#CC3333",
384
+ "#CC3366",
385
+ "#CC3399",
386
+ "#CC33CC",
387
+ "#CC33FF",
388
+ "#CC6600",
389
+ "#CC6633",
390
+ "#CC9900",
391
+ "#CC9933",
392
+ "#CCCC00",
393
+ "#CCCC33",
394
+ "#FF0000",
395
+ "#FF0033",
396
+ "#FF0066",
397
+ "#FF0099",
398
+ "#FF00CC",
399
+ "#FF00FF",
400
+ "#FF3300",
401
+ "#FF3333",
402
+ "#FF3366",
403
+ "#FF3399",
404
+ "#FF33CC",
405
+ "#FF33FF",
406
+ "#FF6600",
407
+ "#FF6633",
408
+ "#FF9900",
409
+ "#FF9933",
410
+ "#FFCC00",
411
+ "#FFCC33"
412
+ ];
413
+ function useColors() {
414
+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
415
+ return true;
416
+ }
417
+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
418
+ return false;
419
+ }
420
+ let m;
421
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
422
+ typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
423
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
424
+ typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
425
+ typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
426
+ }
427
+ function formatArgs(args) {
428
+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
429
+ if (!this.useColors) {
430
+ return;
431
+ }
432
+ const c = "color: " + this.color;
433
+ args.splice(1, 0, c, "color: inherit");
434
+ let index = 0;
435
+ let lastC = 0;
436
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
437
+ if (match === "%%") {
438
+ return;
439
+ }
440
+ index++;
441
+ if (match === "%c") {
442
+ lastC = index;
443
+ }
444
+ });
445
+ args.splice(lastC, 0, c);
446
+ }
447
+ exports.log = console.debug || console.log || (() => {
448
+ });
449
+ function save(namespaces) {
450
+ try {
451
+ if (namespaces) {
452
+ exports.storage.setItem("debug", namespaces);
453
+ } else {
454
+ exports.storage.removeItem("debug");
455
+ }
456
+ } catch (error) {
457
+ }
458
+ }
459
+ function load() {
460
+ let r;
461
+ try {
462
+ r = exports.storage.getItem("debug");
463
+ } catch (error) {
464
+ }
465
+ if (!r && typeof process !== "undefined" && "env" in process) {
466
+ r = process.env.DEBUG;
467
+ }
468
+ return r;
469
+ }
470
+ function localstorage() {
471
+ try {
472
+ return localStorage;
473
+ } catch (error) {
474
+ }
475
+ }
476
+ module2.exports = require_common()(exports);
477
+ var { formatters } = module2.exports;
478
+ formatters.j = function(v) {
479
+ try {
480
+ return JSON.stringify(v);
481
+ } catch (error) {
482
+ return "[UnexpectedJSONParseError]: " + error.message;
483
+ }
484
+ };
485
+ }
486
+ });
487
+ var require_has_flag = (0, import_chunk_2ESYSVXG.__commonJS)({
488
+ "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
489
+ "use strict";
490
+ module2.exports = (flag, argv = process.argv) => {
491
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
492
+ const position = argv.indexOf(prefix + flag);
493
+ const terminatorPosition = argv.indexOf("--");
494
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
495
+ };
496
+ }
497
+ });
498
+ var require_supports_color = (0, import_chunk_2ESYSVXG.__commonJS)({
499
+ "../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) {
500
+ "use strict";
501
+ var os = (0, import_chunk_2ESYSVXG.__require)("os");
502
+ var tty = (0, import_chunk_2ESYSVXG.__require)("tty");
503
+ var hasFlag = require_has_flag();
504
+ var { env } = process;
505
+ var flagForceColor;
506
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
507
+ flagForceColor = 0;
508
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
509
+ flagForceColor = 1;
510
+ }
511
+ function envForceColor() {
512
+ if ("FORCE_COLOR" in env) {
513
+ if (env.FORCE_COLOR === "true") {
514
+ return 1;
515
+ }
516
+ if (env.FORCE_COLOR === "false") {
517
+ return 0;
518
+ }
519
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
520
+ }
521
+ }
522
+ function translateLevel(level) {
523
+ if (level === 0) {
524
+ return false;
525
+ }
526
+ return {
527
+ level,
528
+ hasBasic: true,
529
+ has256: level >= 2,
530
+ has16m: level >= 3
531
+ };
532
+ }
533
+ function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
534
+ const noFlagForceColor = envForceColor();
535
+ if (noFlagForceColor !== void 0) {
536
+ flagForceColor = noFlagForceColor;
537
+ }
538
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
539
+ if (forceColor === 0) {
540
+ return 0;
541
+ }
542
+ if (sniffFlags) {
543
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
544
+ return 3;
545
+ }
546
+ if (hasFlag("color=256")) {
547
+ return 2;
548
+ }
549
+ }
550
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
551
+ return 0;
552
+ }
553
+ const min = forceColor || 0;
554
+ if (env.TERM === "dumb") {
555
+ return min;
556
+ }
557
+ if (process.platform === "win32") {
558
+ const osRelease = os.release().split(".");
559
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
560
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
561
+ }
562
+ return 1;
563
+ }
564
+ if ("CI" in env) {
565
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
566
+ return 1;
567
+ }
568
+ return min;
569
+ }
570
+ if ("TEAMCITY_VERSION" in env) {
571
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
572
+ }
573
+ if (env.COLORTERM === "truecolor") {
574
+ return 3;
575
+ }
576
+ if ("TERM_PROGRAM" in env) {
577
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
578
+ switch (env.TERM_PROGRAM) {
579
+ case "iTerm.app":
580
+ return version >= 3 ? 3 : 2;
581
+ case "Apple_Terminal":
582
+ return 2;
583
+ }
584
+ }
585
+ if (/-256(color)?$/i.test(env.TERM)) {
586
+ return 2;
587
+ }
588
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
589
+ return 1;
590
+ }
591
+ if ("COLORTERM" in env) {
592
+ return 1;
593
+ }
594
+ return min;
595
+ }
596
+ function getSupportLevel(stream, options = {}) {
597
+ const level = supportsColor(stream, {
598
+ streamIsTTY: stream && stream.isTTY,
599
+ ...options
600
+ });
601
+ return translateLevel(level);
602
+ }
603
+ module2.exports = {
604
+ supportsColor: getSupportLevel,
605
+ stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
606
+ stderr: getSupportLevel({ isTTY: tty.isatty(2) })
607
+ };
608
+ }
609
+ });
610
+ var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
611
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js"(exports, module2) {
612
+ "use strict";
613
+ var tty = (0, import_chunk_2ESYSVXG.__require)("tty");
614
+ var util = (0, import_chunk_2ESYSVXG.__require)("util");
615
+ exports.init = init;
616
+ exports.log = log;
617
+ exports.formatArgs = formatArgs;
618
+ exports.save = save;
619
+ exports.load = load;
620
+ exports.useColors = useColors;
621
+ exports.destroy = util.deprecate(
622
+ () => {
623
+ },
624
+ "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
625
+ );
626
+ exports.colors = [6, 2, 3, 4, 5, 1];
627
+ try {
628
+ const supportsColor = require_supports_color();
629
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
630
+ exports.colors = [
631
+ 20,
632
+ 21,
633
+ 26,
634
+ 27,
635
+ 32,
636
+ 33,
637
+ 38,
638
+ 39,
639
+ 40,
640
+ 41,
641
+ 42,
642
+ 43,
643
+ 44,
644
+ 45,
645
+ 56,
646
+ 57,
647
+ 62,
648
+ 63,
649
+ 68,
650
+ 69,
651
+ 74,
652
+ 75,
653
+ 76,
654
+ 77,
655
+ 78,
656
+ 79,
657
+ 80,
658
+ 81,
659
+ 92,
660
+ 93,
661
+ 98,
662
+ 99,
663
+ 112,
664
+ 113,
665
+ 128,
666
+ 129,
667
+ 134,
668
+ 135,
669
+ 148,
670
+ 149,
671
+ 160,
672
+ 161,
673
+ 162,
674
+ 163,
675
+ 164,
676
+ 165,
677
+ 166,
678
+ 167,
679
+ 168,
680
+ 169,
681
+ 170,
682
+ 171,
683
+ 172,
684
+ 173,
685
+ 178,
686
+ 179,
687
+ 184,
688
+ 185,
689
+ 196,
690
+ 197,
691
+ 198,
692
+ 199,
693
+ 200,
694
+ 201,
695
+ 202,
696
+ 203,
697
+ 204,
698
+ 205,
699
+ 206,
700
+ 207,
701
+ 208,
702
+ 209,
703
+ 214,
704
+ 215,
705
+ 220,
706
+ 221
707
+ ];
708
+ }
709
+ } catch (error) {
710
+ }
711
+ exports.inspectOpts = Object.keys(process.env).filter((key) => {
712
+ return /^debug_/i.test(key);
713
+ }).reduce((obj, key) => {
714
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
715
+ return k.toUpperCase();
716
+ });
717
+ let val = process.env[key];
718
+ if (/^(yes|on|true|enabled)$/i.test(val)) {
719
+ val = true;
720
+ } else if (/^(no|off|false|disabled)$/i.test(val)) {
721
+ val = false;
722
+ } else if (val === "null") {
723
+ val = null;
724
+ } else {
725
+ val = Number(val);
726
+ }
727
+ obj[prop] = val;
728
+ return obj;
729
+ }, {});
730
+ function useColors() {
731
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
732
+ }
733
+ function formatArgs(args) {
734
+ const { namespace: name, useColors: useColors2 } = this;
735
+ if (useColors2) {
736
+ const c = this.color;
737
+ const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
738
+ const prefix = ` ${colorCode};1m${name} \x1B[0m`;
739
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
740
+ args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
741
+ } else {
742
+ args[0] = getDate() + name + " " + args[0];
743
+ }
744
+ }
745
+ function getDate() {
746
+ if (exports.inspectOpts.hideDate) {
747
+ return "";
748
+ }
749
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
750
+ }
751
+ function log(...args) {
752
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
753
+ }
754
+ function save(namespaces) {
755
+ if (namespaces) {
756
+ process.env.DEBUG = namespaces;
757
+ } else {
758
+ delete process.env.DEBUG;
759
+ }
760
+ }
761
+ function load() {
762
+ return process.env.DEBUG;
763
+ }
764
+ function init(debug) {
765
+ debug.inspectOpts = {};
766
+ const keys = Object.keys(exports.inspectOpts);
767
+ for (let i = 0; i < keys.length; i++) {
768
+ debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
769
+ }
770
+ }
771
+ module2.exports = require_common()(exports);
772
+ var { formatters } = module2.exports;
773
+ formatters.o = function(v) {
774
+ this.inspectOpts.colors = this.useColors;
775
+ return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
776
+ };
777
+ formatters.O = function(v) {
778
+ this.inspectOpts.colors = this.useColors;
779
+ return util.inspect(v, this.inspectOpts);
780
+ };
781
+ }
782
+ });
783
+ var require_src = (0, import_chunk_2ESYSVXG.__commonJS)({
784
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js"(exports, module2) {
785
+ "use strict";
786
+ if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
787
+ module2.exports = require_browser();
788
+ } else {
789
+ module2.exports = require_node();
790
+ }
791
+ }
792
+ });