lakutata 2.0.22 → 2.0.24

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