storybook 10.1.0-alpha.10 → 10.1.0-alpha.11

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 (192) hide show
  1. package/dist/_browser-chunks/Color-FTG7SQDA.js +1097 -0
  2. package/dist/_browser-chunks/WithTooltip-LMROHDUP.js +1651 -0
  3. package/dist/_browser-chunks/chunk-2FRVAXCZ.js +7 -0
  4. package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
  5. package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
  6. package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
  7. package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
  8. package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
  9. package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-74YHFU5B.js} +44 -109
  10. package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
  11. package/dist/_browser-chunks/chunk-AIOS4NGK.js +252 -0
  12. package/dist/_browser-chunks/chunk-AS2HQEYC.js +14 -0
  13. package/dist/_browser-chunks/chunk-AXG2BOBL.js +836 -0
  14. package/dist/_browser-chunks/chunk-BE2DAXKJ.js +2966 -0
  15. package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
  16. package/dist/_browser-chunks/chunk-EBHB6RPS.js +61 -0
  17. package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
  18. package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
  19. package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
  20. package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
  21. package/dist/_browser-chunks/{chunk-L2D73C6Z.js → chunk-H6XK3RSC.js} +13 -21
  22. package/dist/_browser-chunks/chunk-IPA5A322.js +71 -0
  23. package/dist/_browser-chunks/chunk-JP7NCOJX.js +37 -0
  24. package/dist/_browser-chunks/chunk-KJHJLCBK.js +11 -0
  25. package/dist/_browser-chunks/{chunk-QMY4G4R2.js → chunk-L4RMQ7D7.js} +17 -64
  26. package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
  27. package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
  28. package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
  29. package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
  30. package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
  31. package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
  32. package/dist/_browser-chunks/chunk-WXP2XJ3O.js +950 -0
  33. package/dist/_browser-chunks/chunk-X3DUQ5RA.js +47 -0
  34. package/dist/_browser-chunks/chunk-XJNX76GA.js +85 -0
  35. package/dist/_browser-chunks/{chunk-F4Q6SGTB.js → chunk-YKE5S47A.js} +177 -399
  36. package/dist/_browser-chunks/{chunk-SN4J4IQ3.js → chunk-ZUWEVLDX.js} +1 -7
  37. package/dist/_browser-chunks/{formatter-OMEEQ6HG.js → formatter-QJ4M4OGQ.js} +4 -9
  38. package/dist/_browser-chunks/{syntaxhighlighter-RJZASWHL.js → syntaxhighlighter-WKBQ5RC7.js} +704 -1848
  39. package/dist/_node-chunks/{builder-manager-HA7CYFCK.js → builder-manager-PMPHOSM2.js} +475 -1013
  40. package/dist/_node-chunks/camelcase-K3IOOFQW.js +18 -0
  41. package/dist/_node-chunks/{chunk-X4XU27M6.js → chunk-32NE3UE3.js} +15 -24
  42. package/dist/_node-chunks/chunk-4GZCFQFG.js +58 -0
  43. package/dist/_node-chunks/chunk-5QK5MSOI.js +943 -0
  44. package/dist/_node-chunks/{chunk-VPR5IBMG.js → chunk-6ZOLETQK.js} +8 -10
  45. package/dist/_node-chunks/chunk-7I22Y76Z.js +1047 -0
  46. package/dist/_node-chunks/chunk-AKTRSR3O.js +72 -0
  47. package/dist/_node-chunks/chunk-BBOP3XCK.js +119 -0
  48. package/dist/_node-chunks/chunk-C2GQVDWI.js +34 -0
  49. package/dist/_node-chunks/{chunk-ZHSCUGNP.js → chunk-GG2WQZSG.js} +3799 -7849
  50. package/dist/_node-chunks/chunk-GQJOWVVR.js +3214 -0
  51. package/dist/_node-chunks/chunk-JCRM2YVK.js +3009 -0
  52. package/dist/_node-chunks/chunk-KK4AT5F3.js +1029 -0
  53. package/dist/_node-chunks/chunk-L7MYXJUM.js +1114 -0
  54. package/dist/_node-chunks/{chunk-F3XOPI6H.js → chunk-LCZO45L7.js} +469 -983
  55. package/dist/_node-chunks/chunk-LR3QITDI.js +209 -0
  56. package/dist/_node-chunks/chunk-LXG4DK35.js +3171 -0
  57. package/dist/_node-chunks/chunk-MJ3WOS6F.js +37 -0
  58. package/dist/_node-chunks/chunk-PHOZWZZO.js +61 -0
  59. package/dist/_node-chunks/chunk-QECOQWRJ.js +936 -0
  60. package/dist/_node-chunks/chunk-QH4V5YDB.js +20 -0
  61. package/dist/_node-chunks/chunk-R6HWGZWD.js +26 -0
  62. package/dist/_node-chunks/chunk-SPQXMU2Q.js +759 -0
  63. package/dist/_node-chunks/chunk-TXZY6V6O.js +1564 -0
  64. package/dist/_node-chunks/chunk-UGDPX5LE.js +756 -0
  65. package/dist/_node-chunks/chunk-UY26MQLT.js +603 -0
  66. package/dist/_node-chunks/chunk-WK3EMYK6.js +61 -0
  67. package/dist/_node-chunks/{chunk-OVXB5GGT.js → chunk-WLHMN7AP.js} +292 -688
  68. package/dist/_node-chunks/chunk-XGVLB4UJ.js +54 -0
  69. package/dist/_node-chunks/{chunk-RMHAL25C.js → chunk-YHRFI6BE.js} +87 -227
  70. package/dist/_node-chunks/chunk-YK4KVMFW.js +18 -0
  71. package/dist/_node-chunks/chunk-ZZALGOA6.js +4523 -0
  72. package/dist/_node-chunks/chunk-ZZPBSYA5.js +301 -0
  73. package/dist/_node-chunks/chunk-ZZSRFAC6.js +45571 -0
  74. package/dist/_node-chunks/dist-4DWOCZUD.js +121 -0
  75. package/dist/_node-chunks/globby-AAARUKEU.js +3452 -0
  76. package/dist/_node-chunks/lib-HEUKGL62.js +366 -0
  77. package/dist/_node-chunks/mdx-N42X6CFJ-DCVRPS6N.js +14329 -0
  78. package/dist/_node-chunks/p-limit-F5ZKJ6WZ.js +116 -0
  79. package/dist/_node-chunks/plugin-7YY7JXCH.js +123 -0
  80. package/dist/_node-chunks/{plugin-6ZPCS4LI.js → plugin-SZP3CW6W.js} +36 -56
  81. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-TGKNDPO6.js +46623 -0
  82. package/dist/_node-chunks/webpack-mock-plugin-LNTZZFBE.js +92 -0
  83. package/dist/actions/decorator.js +21 -42
  84. package/dist/actions/index.js +3 -3
  85. package/dist/babel/index.d.ts +671 -335
  86. package/dist/babel/index.js +11 -11
  87. package/dist/bin/core.js +592 -1546
  88. package/dist/bin/dispatcher.js +26 -37
  89. package/dist/bin/loader.js +23 -34
  90. package/dist/channels/index.js +98 -234
  91. package/dist/cli/index.js +1951 -5308
  92. package/dist/client-logger/index.js +31 -61
  93. package/dist/common/index.js +20 -20
  94. package/dist/components/index.js +4211 -8586
  95. package/dist/core-events/index.js +2 -66
  96. package/dist/core-server/index.js +3054 -7290
  97. package/dist/core-server/presets/common-manager.css +2 -2
  98. package/dist/core-server/presets/common-manager.js +1806 -3427
  99. package/dist/core-server/presets/common-override-preset.js +31 -60
  100. package/dist/core-server/presets/common-preset.js +434 -924
  101. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +15 -19
  102. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +12 -17
  103. package/dist/csf/index.js +534 -1179
  104. package/dist/csf-tools/index.js +9 -9
  105. package/dist/docs-tools/index.js +6 -6
  106. package/dist/highlight/index.js +2 -2
  107. package/dist/instrumenter/index.js +199 -415
  108. package/dist/manager/globals-runtime.js +24150 -47364
  109. package/dist/manager/globals.js +2 -3
  110. package/dist/manager/runtime.js +3961 -8373
  111. package/dist/manager-api/index.js +1231 -2425
  112. package/dist/manager-errors.d.ts +3 -0
  113. package/dist/manager-errors.js +3 -3
  114. package/dist/node-logger/index.js +1253 -2601
  115. package/dist/preview/globals.js +2 -3
  116. package/dist/preview/runtime.js +10364 -21990
  117. package/dist/preview-api/index.d.ts +67 -68
  118. package/dist/preview-api/index.js +13 -13
  119. package/dist/preview-errors.d.ts +3 -0
  120. package/dist/preview-errors.js +4 -4
  121. package/dist/router/index.js +347 -899
  122. package/dist/server-errors.d.ts +3 -0
  123. package/dist/server-errors.js +10 -10
  124. package/dist/telemetry/index.js +24 -24
  125. package/dist/test/index.js +5860 -11645
  126. package/dist/theming/create.js +4 -4
  127. package/dist/theming/index.d.ts +3363 -2597
  128. package/dist/theming/index.js +490 -1086
  129. package/dist/types/index.js +2 -11
  130. package/dist/viewport/index.js +3 -3
  131. package/package.json +5 -5
  132. package/dist/_browser-chunks/Color-FQNEU7YS.js +0 -1695
  133. package/dist/_browser-chunks/WithTooltip-6NHN2GXF.js +0 -2343
  134. package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
  135. package/dist/_browser-chunks/chunk-AW46NMGV.js +0 -1308
  136. package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
  137. package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
  138. package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
  139. package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
  140. package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
  141. package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
  142. package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
  143. package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
  144. package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
  145. package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
  146. package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
  147. package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
  148. package/dist/_browser-chunks/chunk-RW5PKMWM.js +0 -4182
  149. package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
  150. package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
  151. package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
  152. package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
  153. package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
  154. package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
  155. package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
  156. package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
  157. package/dist/_node-chunks/camelcase-QALD4XFE.js +0 -18
  158. package/dist/_node-chunks/chunk-2XY53ALL.js +0 -420
  159. package/dist/_node-chunks/chunk-3CBQMG2A.js +0 -6712
  160. package/dist/_node-chunks/chunk-3WDAPZYQ.js +0 -28
  161. package/dist/_node-chunks/chunk-4ZB555EJ.js +0 -697
  162. package/dist/_node-chunks/chunk-52DXKXY3.js +0 -4272
  163. package/dist/_node-chunks/chunk-5OVB4A6F.js +0 -69
  164. package/dist/_node-chunks/chunk-AGHGNXGH.js +0 -18
  165. package/dist/_node-chunks/chunk-B23X5ZCK.js +0 -1531
  166. package/dist/_node-chunks/chunk-B2DAHWJK.js +0 -220
  167. package/dist/_node-chunks/chunk-CC4PW5MJ.js +0 -34
  168. package/dist/_node-chunks/chunk-D7NIZELR.js +0 -2256
  169. package/dist/_node-chunks/chunk-DO5Q3H4L.js +0 -1250
  170. package/dist/_node-chunks/chunk-ECK7WVFX.js +0 -304
  171. package/dist/_node-chunks/chunk-EUH3NHXA.js +0 -79
  172. package/dist/_node-chunks/chunk-FOQHPHCV.js +0 -1657
  173. package/dist/_node-chunks/chunk-G6EL47NS.js +0 -111
  174. package/dist/_node-chunks/chunk-GFLS4TJB.js +0 -90
  175. package/dist/_node-chunks/chunk-J3XZKWHE.js +0 -1586
  176. package/dist/_node-chunks/chunk-LE63EHJ5.js +0 -1518
  177. package/dist/_node-chunks/chunk-M47XA42S.js +0 -4741
  178. package/dist/_node-chunks/chunk-OOI74AL3.js +0 -61
  179. package/dist/_node-chunks/chunk-PRJHT3GJ.js +0 -61
  180. package/dist/_node-chunks/chunk-Q52PVUSU.js +0 -101
  181. package/dist/_node-chunks/chunk-SDCF5RNN.js +0 -1198
  182. package/dist/_node-chunks/chunk-UJ5SJ23M.js +0 -5029
  183. package/dist/_node-chunks/chunk-UPHK4ETU.js +0 -64658
  184. package/dist/_node-chunks/chunk-V7VURIPB.js +0 -1544
  185. package/dist/_node-chunks/dist-6TXHNR5C.js +0 -175
  186. package/dist/_node-chunks/globby-PBTV6PX6.js +0 -5222
  187. package/dist/_node-chunks/lib-4RTDZVGX.js +0 -518
  188. package/dist/_node-chunks/mdx-N42X6CFJ-COWEH7KR.js +0 -22017
  189. package/dist/_node-chunks/p-limit-PBVZQOFY.js +0 -168
  190. package/dist/_node-chunks/plugin-EOZKYZAG.js +0 -159
  191. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-35HMSMR5.js +0 -69102
  192. package/dist/_node-chunks/webpack-mock-plugin-GT3MA5E2.js +0 -124
@@ -1,137 +1,98 @@
1
- import CJS_COMPAT_NODE_URL_8vqew0zn9si from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_8vqew0zn9si from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_8vqew0zn9si from "node:module";
1
+ import CJS_COMPAT_NODE_URL_843v2rliy1 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_843v2rliy1 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_843v2rliy1 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_8vqew0zn9si.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_8vqew0zn9si.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_8vqew0zn9si.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_843v2rliy1.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_843v2rliy1.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_843v2rliy1.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __commonJS,
14
- __name,
15
14
  __require
16
- } from "./chunk-OOI74AL3.js";
15
+ } from "./chunk-XGVLB4UJ.js";
17
16
 
18
17
  // ../node_modules/ms/index.js
19
18
  var require_ms = __commonJS({
20
19
  "../node_modules/ms/index.js"(exports, module) {
21
- var s = 1e3;
22
- var m = s * 60;
23
- var h = m * 60;
24
- var d = h * 24;
25
- var w = d * 7;
26
- var y = d * 365.25;
20
+ var s = 1e3, m = s * 60, h = m * 60, d = h * 24, w = d * 7, y = d * 365.25;
27
21
  module.exports = function(val, options) {
28
22
  options = options || {};
29
23
  var type = typeof val;
30
- if (type === "string" && val.length > 0) {
24
+ if (type === "string" && val.length > 0)
31
25
  return parse(val);
32
- } else if (type === "number" && isFinite(val)) {
26
+ if (type === "number" && isFinite(val))
33
27
  return options.long ? fmtLong(val) : fmtShort(val);
34
- }
35
28
  throw new Error(
36
29
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
37
30
  );
38
31
  };
39
32
  function parse(str) {
40
- str = String(str);
41
- if (str.length > 100) {
42
- return;
43
- }
44
- 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(
45
- str
46
- );
47
- if (!match) {
48
- return;
49
- }
50
- var n = parseFloat(match[1]);
51
- var type = (match[2] || "ms").toLowerCase();
52
- switch (type) {
53
- case "years":
54
- case "year":
55
- case "yrs":
56
- case "yr":
57
- case "y":
58
- return n * y;
59
- case "weeks":
60
- case "week":
61
- case "w":
62
- return n * w;
63
- case "days":
64
- case "day":
65
- case "d":
66
- return n * d;
67
- case "hours":
68
- case "hour":
69
- case "hrs":
70
- case "hr":
71
- case "h":
72
- return n * h;
73
- case "minutes":
74
- case "minute":
75
- case "mins":
76
- case "min":
77
- case "m":
78
- return n * m;
79
- case "seconds":
80
- case "second":
81
- case "secs":
82
- case "sec":
83
- case "s":
84
- return n * s;
85
- case "milliseconds":
86
- case "millisecond":
87
- case "msecs":
88
- case "msec":
89
- case "ms":
90
- return n;
91
- default:
92
- return void 0;
33
+ if (str = String(str), !(str.length > 100)) {
34
+ 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(
35
+ str
36
+ );
37
+ if (match) {
38
+ var n = parseFloat(match[1]), type = (match[2] || "ms").toLowerCase();
39
+ switch (type) {
40
+ case "years":
41
+ case "year":
42
+ case "yrs":
43
+ case "yr":
44
+ case "y":
45
+ return n * y;
46
+ case "weeks":
47
+ case "week":
48
+ case "w":
49
+ return n * w;
50
+ case "days":
51
+ case "day":
52
+ case "d":
53
+ return n * d;
54
+ case "hours":
55
+ case "hour":
56
+ case "hrs":
57
+ case "hr":
58
+ case "h":
59
+ return n * h;
60
+ case "minutes":
61
+ case "minute":
62
+ case "mins":
63
+ case "min":
64
+ case "m":
65
+ return n * m;
66
+ case "seconds":
67
+ case "second":
68
+ case "secs":
69
+ case "sec":
70
+ case "s":
71
+ return n * s;
72
+ case "milliseconds":
73
+ case "millisecond":
74
+ case "msecs":
75
+ case "msec":
76
+ case "ms":
77
+ return n;
78
+ default:
79
+ return;
80
+ }
81
+ }
93
82
  }
94
83
  }
95
- __name(parse, "parse");
96
84
  function fmtShort(ms) {
97
85
  var msAbs = Math.abs(ms);
98
- if (msAbs >= d) {
99
- return Math.round(ms / d) + "d";
100
- }
101
- if (msAbs >= h) {
102
- return Math.round(ms / h) + "h";
103
- }
104
- if (msAbs >= m) {
105
- return Math.round(ms / m) + "m";
106
- }
107
- if (msAbs >= s) {
108
- return Math.round(ms / s) + "s";
109
- }
110
- return ms + "ms";
86
+ return msAbs >= d ? Math.round(ms / d) + "d" : msAbs >= h ? Math.round(ms / h) + "h" : msAbs >= m ? Math.round(ms / m) + "m" : msAbs >= s ? Math.round(ms / s) + "s" : ms + "ms";
111
87
  }
112
- __name(fmtShort, "fmtShort");
113
88
  function fmtLong(ms) {
114
89
  var msAbs = Math.abs(ms);
115
- if (msAbs >= d) {
116
- return plural(ms, msAbs, d, "day");
117
- }
118
- if (msAbs >= h) {
119
- return plural(ms, msAbs, h, "hour");
120
- }
121
- if (msAbs >= m) {
122
- return plural(ms, msAbs, m, "minute");
123
- }
124
- if (msAbs >= s) {
125
- return plural(ms, msAbs, s, "second");
126
- }
127
- return ms + " ms";
90
+ return msAbs >= d ? plural(ms, msAbs, d, "day") : msAbs >= h ? plural(ms, msAbs, h, "hour") : msAbs >= m ? plural(ms, msAbs, m, "minute") : msAbs >= s ? plural(ms, msAbs, s, "second") : ms + " ms";
128
91
  }
129
- __name(fmtLong, "fmtLong");
130
92
  function plural(ms, msAbs, n, name) {
131
93
  var isPlural = msAbs >= n * 1.5;
132
94
  return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
133
95
  }
134
- __name(plural, "plural");
135
96
  }
136
97
  });
137
98
 
@@ -139,186 +100,92 @@ var require_ms = __commonJS({
139
100
  var require_common = __commonJS({
140
101
  "../node_modules/debug/src/common.js"(exports, module) {
141
102
  function setup(env) {
142
- createDebug.debug = createDebug;
143
- createDebug.default = createDebug;
144
- createDebug.coerce = coerce;
145
- createDebug.disable = disable;
146
- createDebug.enable = enable;
147
- createDebug.enabled = enabled;
148
- createDebug.humanize = require_ms();
149
- createDebug.destroy = destroy;
150
- Object.keys(env).forEach((key) => {
103
+ createDebug.debug = createDebug, createDebug.default = createDebug, createDebug.coerce = coerce, createDebug.disable = disable, createDebug.enable = enable, createDebug.enabled = enabled, createDebug.humanize = require_ms(), createDebug.destroy = destroy, Object.keys(env).forEach((key) => {
151
104
  createDebug[key] = env[key];
152
- });
153
- createDebug.names = [];
154
- createDebug.skips = [];
155
- createDebug.formatters = {};
105
+ }), createDebug.names = [], createDebug.skips = [], createDebug.formatters = {};
156
106
  function selectColor(namespace) {
157
107
  let hash = 0;
158
- for (let i = 0; i < namespace.length; i++) {
159
- hash = (hash << 5) - hash + namespace.charCodeAt(i);
160
- hash |= 0;
161
- }
108
+ for (let i = 0; i < namespace.length; i++)
109
+ hash = (hash << 5) - hash + namespace.charCodeAt(i), hash |= 0;
162
110
  return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
163
111
  }
164
- __name(selectColor, "selectColor");
165
112
  createDebug.selectColor = selectColor;
166
113
  function createDebug(namespace) {
167
- let prevTime;
168
- let enableOverride = null;
169
- let namespacesCache;
170
- let enabledCache;
114
+ let prevTime, enableOverride = null, namespacesCache, enabledCache;
171
115
  function debug(...args) {
172
- if (!debug.enabled) {
116
+ if (!debug.enabled)
173
117
  return;
174
- }
175
- const self = debug;
176
- const curr = Number(/* @__PURE__ */ new Date());
177
- const ms = curr - (prevTime || curr);
178
- self.diff = ms;
179
- self.prev = prevTime;
180
- self.curr = curr;
181
- prevTime = curr;
182
- args[0] = createDebug.coerce(args[0]);
183
- if (typeof args[0] !== "string") {
184
- args.unshift("%O");
185
- }
118
+ let self = debug, curr = Number(/* @__PURE__ */ new Date()), ms = curr - (prevTime || curr);
119
+ self.diff = ms, self.prev = prevTime, self.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), typeof args[0] != "string" && args.unshift("%O");
186
120
  let index = 0;
187
121
  args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
188
- if (match === "%%") {
122
+ if (match === "%%")
189
123
  return "%";
190
- }
191
124
  index++;
192
- const formatter = createDebug.formatters[format];
193
- if (typeof formatter === "function") {
194
- const val = args[index];
195
- match = formatter.call(self, val);
196
- args.splice(index, 1);
197
- index--;
125
+ let formatter = createDebug.formatters[format];
126
+ if (typeof formatter == "function") {
127
+ let val = args[index];
128
+ match = formatter.call(self, val), args.splice(index, 1), index--;
198
129
  }
199
130
  return match;
200
- });
201
- createDebug.formatArgs.call(self, args);
202
- const logFn = self.log || createDebug.log;
203
- logFn.apply(self, args);
131
+ }), createDebug.formatArgs.call(self, args), (self.log || createDebug.log).apply(self, args);
204
132
  }
205
- __name(debug, "debug");
206
- debug.namespace = namespace;
207
- debug.useColors = createDebug.useColors();
208
- debug.color = createDebug.selectColor(namespace);
209
- debug.extend = extend;
210
- debug.destroy = createDebug.destroy;
211
- Object.defineProperty(debug, "enabled", {
212
- enumerable: true,
213
- configurable: false,
214
- get: /* @__PURE__ */ __name(() => {
215
- if (enableOverride !== null) {
216
- return enableOverride;
217
- }
218
- if (namespacesCache !== createDebug.namespaces) {
219
- namespacesCache = createDebug.namespaces;
220
- enabledCache = createDebug.enabled(namespace);
221
- }
222
- return enabledCache;
223
- }, "get"),
224
- set: /* @__PURE__ */ __name((v) => {
133
+ return debug.namespace = namespace, debug.useColors = createDebug.useColors(), debug.color = createDebug.selectColor(namespace), debug.extend = extend, debug.destroy = createDebug.destroy, Object.defineProperty(debug, "enabled", {
134
+ enumerable: !0,
135
+ configurable: !1,
136
+ get: () => enableOverride !== null ? enableOverride : (namespacesCache !== createDebug.namespaces && (namespacesCache = createDebug.namespaces, enabledCache = createDebug.enabled(namespace)), enabledCache),
137
+ set: (v) => {
225
138
  enableOverride = v;
226
- }, "set")
227
- });
228
- if (typeof createDebug.init === "function") {
229
- createDebug.init(debug);
230
- }
231
- return debug;
139
+ }
140
+ }), typeof createDebug.init == "function" && createDebug.init(debug), debug;
232
141
  }
233
- __name(createDebug, "createDebug");
234
142
  function extend(namespace, delimiter) {
235
- const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
236
- newDebug.log = this.log;
237
- return newDebug;
143
+ let newDebug = createDebug(this.namespace + (typeof delimiter > "u" ? ":" : delimiter) + namespace);
144
+ return newDebug.log = this.log, newDebug;
238
145
  }
239
- __name(extend, "extend");
240
146
  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(/\s+/g, ",").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
- }
147
+ createDebug.save(namespaces), createDebug.namespaces = namespaces, createDebug.names = [], createDebug.skips = [];
148
+ let split = (typeof namespaces == "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
149
+ for (let ns of split)
150
+ ns[0] === "-" ? createDebug.skips.push(ns.slice(1)) : createDebug.names.push(ns);
253
151
  }
254
- __name(enable, "enable");
255
152
  function matchesTemplate(search, template) {
256
- let searchIndex = 0;
257
- let templateIndex = 0;
258
- let starIndex = -1;
259
- let matchIndex = 0;
260
- while (searchIndex < search.length) {
261
- if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
262
- if (template[templateIndex] === "*") {
263
- starIndex = templateIndex;
264
- matchIndex = searchIndex;
265
- templateIndex++;
266
- } else {
267
- searchIndex++;
268
- templateIndex++;
269
- }
270
- } else if (starIndex !== -1) {
271
- templateIndex = starIndex + 1;
272
- matchIndex++;
273
- searchIndex = matchIndex;
274
- } else {
275
- return false;
276
- }
277
- }
278
- while (templateIndex < template.length && template[templateIndex] === "*") {
153
+ let searchIndex = 0, templateIndex = 0, starIndex = -1, matchIndex = 0;
154
+ for (; searchIndex < search.length; )
155
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*"))
156
+ template[templateIndex] === "*" ? (starIndex = templateIndex, matchIndex = searchIndex, templateIndex++) : (searchIndex++, templateIndex++);
157
+ else if (starIndex !== -1)
158
+ templateIndex = starIndex + 1, matchIndex++, searchIndex = matchIndex;
159
+ else
160
+ return !1;
161
+ for (; templateIndex < template.length && template[templateIndex] === "*"; )
279
162
  templateIndex++;
280
- }
281
163
  return templateIndex === template.length;
282
164
  }
283
- __name(matchesTemplate, "matchesTemplate");
284
165
  function disable() {
285
- const namespaces = [
166
+ let namespaces = [
286
167
  ...createDebug.names,
287
168
  ...createDebug.skips.map((namespace) => "-" + namespace)
288
169
  ].join(",");
289
- createDebug.enable("");
290
- return namespaces;
170
+ return createDebug.enable(""), namespaces;
291
171
  }
292
- __name(disable, "disable");
293
172
  function enabled(name) {
294
- for (const skip of createDebug.skips) {
295
- if (matchesTemplate(name, skip)) {
296
- return false;
297
- }
298
- }
299
- for (const ns of createDebug.names) {
300
- if (matchesTemplate(name, ns)) {
301
- return true;
302
- }
303
- }
304
- return false;
173
+ for (let skip of createDebug.skips)
174
+ if (matchesTemplate(name, skip))
175
+ return !1;
176
+ for (let ns of createDebug.names)
177
+ if (matchesTemplate(name, ns))
178
+ return !0;
179
+ return !1;
305
180
  }
306
- __name(enabled, "enabled");
307
181
  function coerce(val) {
308
- if (val instanceof Error) {
309
- return val.stack || val.message;
310
- }
311
- return val;
182
+ return val instanceof Error ? val.stack || val.message : val;
312
183
  }
313
- __name(coerce, "coerce");
314
184
  function destroy() {
315
185
  console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
316
186
  }
317
- __name(destroy, "destroy");
318
- createDebug.enable(createDebug.load());
319
- return createDebug;
187
+ return createDebug.enable(createDebug.load()), createDebug;
320
188
  }
321
- __name(setup, "setup");
322
189
  module.exports = setup;
323
190
  }
324
191
  });
@@ -332,12 +199,9 @@ var require_browser = __commonJS({
332
199
  exports.useColors = useColors;
333
200
  exports.storage = localstorage();
334
201
  exports.destroy = /* @__PURE__ */ (() => {
335
- let warned = false;
202
+ let warned = !1;
336
203
  return () => {
337
- if (!warned) {
338
- warned = true;
339
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
340
- }
204
+ warned || (warned = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
341
205
  };
342
206
  })();
343
207
  exports.colors = [
@@ -419,73 +283,49 @@ var require_browser = __commonJS({
419
283
  "#FFCC33"
420
284
  ];
421
285
  function useColors() {
422
- if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
423
- return true;
424
- }
425
- if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
426
- return false;
427
- }
286
+ if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs))
287
+ return !0;
288
+ if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))
289
+ return !1;
428
290
  let m;
429
- return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
430
- typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
291
+ return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
292
+ typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
431
293
  // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
432
- 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
433
- typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
294
+ typeof navigator < "u" && 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
295
+ typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
434
296
  }
435
- __name(useColors, "useColors");
436
297
  function formatArgs(args) {
437
- args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
438
- if (!this.useColors) {
298
+ if (args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff), !this.useColors)
439
299
  return;
440
- }
441
- const c = "color: " + this.color;
300
+ let c = "color: " + this.color;
442
301
  args.splice(1, 0, c, "color: inherit");
443
- let index = 0;
444
- let lastC = 0;
302
+ let index = 0, lastC = 0;
445
303
  args[0].replace(/%[a-zA-Z%]/g, (match) => {
446
- if (match === "%%") {
447
- return;
448
- }
449
- index++;
450
- if (match === "%c") {
451
- lastC = index;
452
- }
453
- });
454
- args.splice(lastC, 0, c);
304
+ match !== "%%" && (index++, match === "%c" && (lastC = index));
305
+ }), args.splice(lastC, 0, c);
455
306
  }
456
- __name(formatArgs, "formatArgs");
457
307
  exports.log = console.debug || console.log || (() => {
458
308
  });
459
309
  function save(namespaces) {
460
310
  try {
461
- if (namespaces) {
462
- exports.storage.setItem("debug", namespaces);
463
- } else {
464
- exports.storage.removeItem("debug");
465
- }
466
- } catch (error) {
311
+ namespaces ? exports.storage.setItem("debug", namespaces) : exports.storage.removeItem("debug");
312
+ } catch {
467
313
  }
468
314
  }
469
- __name(save, "save");
470
315
  function load() {
471
316
  let r;
472
317
  try {
473
318
  r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
474
- } catch (error) {
475
- }
476
- if (!r && typeof process !== "undefined" && "env" in process) {
477
- r = process.env.DEBUG;
319
+ } catch {
478
320
  }
479
- return r;
321
+ return !r && typeof process < "u" && "env" in process && (r = process.env.DEBUG), r;
480
322
  }
481
- __name(load, "load");
482
323
  function localstorage() {
483
324
  try {
484
325
  return localStorage;
485
- } catch (error) {
326
+ } catch {
486
327
  }
487
328
  }
488
- __name(localstorage, "localstorage");
489
329
  module.exports = require_common()(exports);
490
330
  var { formatters } = module.exports;
491
331
  formatters.j = function(v) {
@@ -503,9 +343,7 @@ var require_has_flag = __commonJS({
503
343
  "../node_modules/has-flag/index.js"(exports, module) {
504
344
  "use strict";
505
345
  module.exports = (flag, argv = process.argv) => {
506
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
507
- const position = argv.indexOf(prefix + flag);
508
- const terminatorPosition = argv.indexOf("--");
346
+ let prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--", position = argv.indexOf(prefix + flag), terminatorPosition = argv.indexOf("--");
509
347
  return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
510
348
  };
511
349
  }
@@ -515,75 +353,41 @@ var require_has_flag = __commonJS({
515
353
  var require_supports_color = __commonJS({
516
354
  "../node_modules/supports-color/index.js"(exports, module) {
517
355
  "use strict";
518
- var os = __require("os");
519
- var tty = __require("tty");
520
- var hasFlag = require_has_flag();
521
- var { env } = process;
522
- var forceColor;
523
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
524
- forceColor = 0;
525
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
526
- forceColor = 1;
527
- }
528
- if ("FORCE_COLOR" in env) {
529
- if (env.FORCE_COLOR === "true") {
530
- forceColor = 1;
531
- } else if (env.FORCE_COLOR === "false") {
532
- forceColor = 0;
533
- } else {
534
- forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
535
- }
536
- }
356
+ var os = __require("os"), tty = __require("tty"), hasFlag = require_has_flag(), { env } = process, forceColor;
357
+ hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never") ? forceColor = 0 : (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) && (forceColor = 1);
358
+ "FORCE_COLOR" in env && (env.FORCE_COLOR === "true" ? forceColor = 1 : env.FORCE_COLOR === "false" ? forceColor = 0 : forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3));
537
359
  function translateLevel(level) {
538
- if (level === 0) {
539
- return false;
540
- }
541
- return {
360
+ return level === 0 ? !1 : {
542
361
  level,
543
- hasBasic: true,
362
+ hasBasic: !0,
544
363
  has256: level >= 2,
545
364
  has16m: level >= 3
546
365
  };
547
366
  }
548
- __name(translateLevel, "translateLevel");
549
367
  function supportsColor(haveStream, streamIsTTY) {
550
- if (forceColor === 0) {
368
+ if (forceColor === 0)
551
369
  return 0;
552
- }
553
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
370
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor"))
554
371
  return 3;
555
- }
556
- if (hasFlag("color=256")) {
372
+ if (hasFlag("color=256"))
557
373
  return 2;
558
- }
559
- if (haveStream && !streamIsTTY && forceColor === void 0) {
374
+ if (haveStream && !streamIsTTY && forceColor === void 0)
560
375
  return 0;
561
- }
562
- const min = forceColor || 0;
563
- if (env.TERM === "dumb") {
376
+ let min = forceColor || 0;
377
+ if (env.TERM === "dumb")
564
378
  return min;
565
- }
566
379
  if (process.platform === "win32") {
567
- const osRelease = os.release().split(".");
568
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
569
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
570
- }
571
- return 1;
380
+ let osRelease = os.release().split(".");
381
+ return Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586 ? Number(osRelease[2]) >= 14931 ? 3 : 2 : 1;
572
382
  }
573
- if ("CI" in env) {
574
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
575
- return 1;
576
- }
577
- return min;
578
- }
579
- if ("TEAMCITY_VERSION" in env) {
383
+ if ("CI" in env)
384
+ return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship" ? 1 : min;
385
+ if ("TEAMCITY_VERSION" in env)
580
386
  return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
581
- }
582
- if (env.COLORTERM === "truecolor") {
387
+ if (env.COLORTERM === "truecolor")
583
388
  return 3;
584
- }
585
389
  if ("TERM_PROGRAM" in env) {
586
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
390
+ let version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
587
391
  switch (env.TERM_PROGRAM) {
588
392
  case "iTerm.app":
589
393
  return version >= 3 ? 3 : 2;
@@ -591,27 +395,16 @@ var require_supports_color = __commonJS({
591
395
  return 2;
592
396
  }
593
397
  }
594
- if (/-256(color)?$/i.test(env.TERM)) {
595
- return 2;
596
- }
597
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
598
- return 1;
599
- }
600
- if ("COLORTERM" in env) {
601
- return 1;
602
- }
603
- return min;
398
+ return /-256(color)?$/i.test(env.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM) || "COLORTERM" in env ? 1 : min;
604
399
  }
605
- __name(supportsColor, "supportsColor");
606
400
  function getSupportLevel(stream) {
607
- const level = supportsColor(stream, stream && stream.isTTY);
401
+ let level = supportsColor(stream, stream && stream.isTTY);
608
402
  return translateLevel(level);
609
403
  }
610
- __name(getSupportLevel, "getSupportLevel");
611
404
  module.exports = {
612
405
  supportsColor: getSupportLevel,
613
- stdout: translateLevel(supportsColor(true, tty.isatty(1))),
614
- stderr: translateLevel(supportsColor(true, tty.isatty(2)))
406
+ stdout: translateLevel(supportsColor(!0, tty.isatty(1))),
407
+ stderr: translateLevel(supportsColor(!0, tty.isatty(2)))
615
408
  };
616
409
  }
617
410
  });
@@ -619,8 +412,7 @@ var require_supports_color = __commonJS({
619
412
  // ../node_modules/debug/src/node.js
620
413
  var require_node = __commonJS({
621
414
  "../node_modules/debug/src/node.js"(exports, module) {
622
- var tty = __require("tty");
623
- var util = __require("util");
415
+ var tty = __require("tty"), util = __require("util");
624
416
  exports.init = init;
625
417
  exports.log = log;
626
418
  exports.formatArgs = formatArgs;
@@ -634,165 +426,131 @@ var require_node = __commonJS({
634
426
  );
635
427
  exports.colors = [6, 2, 3, 4, 5, 1];
636
428
  try {
637
- const supportsColor = require_supports_color();
638
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
639
- exports.colors = [
640
- 20,
641
- 21,
642
- 26,
643
- 27,
644
- 32,
645
- 33,
646
- 38,
647
- 39,
648
- 40,
649
- 41,
650
- 42,
651
- 43,
652
- 44,
653
- 45,
654
- 56,
655
- 57,
656
- 62,
657
- 63,
658
- 68,
659
- 69,
660
- 74,
661
- 75,
662
- 76,
663
- 77,
664
- 78,
665
- 79,
666
- 80,
667
- 81,
668
- 92,
669
- 93,
670
- 98,
671
- 99,
672
- 112,
673
- 113,
674
- 128,
675
- 129,
676
- 134,
677
- 135,
678
- 148,
679
- 149,
680
- 160,
681
- 161,
682
- 162,
683
- 163,
684
- 164,
685
- 165,
686
- 166,
687
- 167,
688
- 168,
689
- 169,
690
- 170,
691
- 171,
692
- 172,
693
- 173,
694
- 178,
695
- 179,
696
- 184,
697
- 185,
698
- 196,
699
- 197,
700
- 198,
701
- 199,
702
- 200,
703
- 201,
704
- 202,
705
- 203,
706
- 204,
707
- 205,
708
- 206,
709
- 207,
710
- 208,
711
- 209,
712
- 214,
713
- 215,
714
- 220,
715
- 221
716
- ];
717
- }
718
- } catch (error) {
429
+ let supportsColor = require_supports_color();
430
+ supportsColor && (supportsColor.stderr || supportsColor).level >= 2 && (exports.colors = [
431
+ 20,
432
+ 21,
433
+ 26,
434
+ 27,
435
+ 32,
436
+ 33,
437
+ 38,
438
+ 39,
439
+ 40,
440
+ 41,
441
+ 42,
442
+ 43,
443
+ 44,
444
+ 45,
445
+ 56,
446
+ 57,
447
+ 62,
448
+ 63,
449
+ 68,
450
+ 69,
451
+ 74,
452
+ 75,
453
+ 76,
454
+ 77,
455
+ 78,
456
+ 79,
457
+ 80,
458
+ 81,
459
+ 92,
460
+ 93,
461
+ 98,
462
+ 99,
463
+ 112,
464
+ 113,
465
+ 128,
466
+ 129,
467
+ 134,
468
+ 135,
469
+ 148,
470
+ 149,
471
+ 160,
472
+ 161,
473
+ 162,
474
+ 163,
475
+ 164,
476
+ 165,
477
+ 166,
478
+ 167,
479
+ 168,
480
+ 169,
481
+ 170,
482
+ 171,
483
+ 172,
484
+ 173,
485
+ 178,
486
+ 179,
487
+ 184,
488
+ 185,
489
+ 196,
490
+ 197,
491
+ 198,
492
+ 199,
493
+ 200,
494
+ 201,
495
+ 202,
496
+ 203,
497
+ 204,
498
+ 205,
499
+ 206,
500
+ 207,
501
+ 208,
502
+ 209,
503
+ 214,
504
+ 215,
505
+ 220,
506
+ 221
507
+ ]);
508
+ } catch {
719
509
  }
720
- exports.inspectOpts = Object.keys(process.env).filter((key) => {
721
- return /^debug_/i.test(key);
722
- }).reduce((obj, key) => {
723
- const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
724
- return k.toUpperCase();
725
- });
726
- let val = process.env[key];
727
- if (/^(yes|on|true|enabled)$/i.test(val)) {
728
- val = true;
729
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
730
- val = false;
731
- } else if (val === "null") {
732
- val = null;
733
- } else {
734
- val = Number(val);
735
- }
736
- obj[prop] = val;
737
- return obj;
510
+ exports.inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
511
+ let prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase()), val = process.env[key];
512
+ return /^(yes|on|true|enabled)$/i.test(val) ? val = !0 : /^(no|off|false|disabled)$/i.test(val) ? val = !1 : val === "null" ? val = null : val = Number(val), obj[prop] = val, obj;
738
513
  }, {});
739
514
  function useColors() {
740
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
515
+ return "colors" in exports.inspectOpts ? !!exports.inspectOpts.colors : tty.isatty(process.stderr.fd);
741
516
  }
742
- __name(useColors, "useColors");
743
517
  function formatArgs(args) {
744
- const { namespace: name, useColors: useColors2 } = this;
518
+ let { namespace: name, useColors: useColors2 } = this;
745
519
  if (useColors2) {
746
- const c = this.color;
747
- const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
748
- const prefix = ` ${colorCode};1m${name} \x1B[0m`;
749
- args[0] = prefix + args[0].split("\n").join("\n" + prefix);
750
- args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
751
- } else {
520
+ let c = this.color, colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c), prefix = ` ${colorCode};1m${name} \x1B[0m`;
521
+ args[0] = prefix + args[0].split(`
522
+ `).join(`
523
+ ` + prefix), args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
524
+ } else
752
525
  args[0] = getDate() + name + " " + args[0];
753
- }
754
526
  }
755
- __name(formatArgs, "formatArgs");
756
527
  function getDate() {
757
- if (exports.inspectOpts.hideDate) {
758
- return "";
759
- }
760
- return (/* @__PURE__ */ new Date()).toISOString() + " ";
528
+ return exports.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " ";
761
529
  }
762
- __name(getDate, "getDate");
763
530
  function log(...args) {
764
- return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
531
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + `
532
+ `);
765
533
  }
766
- __name(log, "log");
767
534
  function save(namespaces) {
768
- if (namespaces) {
769
- process.env.DEBUG = namespaces;
770
- } else {
771
- delete process.env.DEBUG;
772
- }
535
+ namespaces ? process.env.DEBUG = namespaces : delete process.env.DEBUG;
773
536
  }
774
- __name(save, "save");
775
537
  function load() {
776
538
  return process.env.DEBUG;
777
539
  }
778
- __name(load, "load");
779
540
  function init(debug) {
780
541
  debug.inspectOpts = {};
781
- const keys = Object.keys(exports.inspectOpts);
782
- for (let i = 0; i < keys.length; i++) {
542
+ let keys = Object.keys(exports.inspectOpts);
543
+ for (let i = 0; i < keys.length; i++)
783
544
  debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
784
- }
785
545
  }
786
- __name(init, "init");
787
546
  module.exports = require_common()(exports);
788
547
  var { formatters } = module.exports;
789
548
  formatters.o = function(v) {
790
- this.inspectOpts.colors = this.useColors;
791
- return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
549
+ return this.inspectOpts.colors = this.useColors, util.inspect(v, this.inspectOpts).split(`
550
+ `).map((str) => str.trim()).join(" ");
792
551
  };
793
552
  formatters.O = function(v) {
794
- this.inspectOpts.colors = this.useColors;
795
- return util.inspect(v, this.inspectOpts);
553
+ return this.inspectOpts.colors = this.useColors, util.inspect(v, this.inspectOpts);
796
554
  };
797
555
  }
798
556
  });
@@ -800,11 +558,7 @@ var require_node = __commonJS({
800
558
  // ../node_modules/debug/src/index.js
801
559
  var require_src = __commonJS({
802
560
  "../node_modules/debug/src/index.js"(exports, module) {
803
- if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
804
- module.exports = require_browser();
805
- } else {
806
- module.exports = require_node();
807
- }
561
+ typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? module.exports = require_browser() : module.exports = require_node();
808
562
  }
809
563
  });
810
564
 
@@ -823,19 +577,19 @@ var require_util = __commonJS({
823
577
  var unicode = require_unicode();
824
578
  module.exports = {
825
579
  isSpaceSeparator(c) {
826
- return typeof c === "string" && unicode.Space_Separator.test(c);
580
+ return typeof c == "string" && unicode.Space_Separator.test(c);
827
581
  },
828
582
  isIdStartChar(c) {
829
- return typeof c === "string" && (c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c === "$" || c === "_" || unicode.ID_Start.test(c));
583
+ return typeof c == "string" && (c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c === "$" || c === "_" || unicode.ID_Start.test(c));
830
584
  },
831
585
  isIdContinueChar(c) {
832
- return typeof c === "string" && (c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c >= "0" && c <= "9" || c === "$" || c === "_" || c === "\u200C" || c === "\u200D" || unicode.ID_Continue.test(c));
586
+ return typeof c == "string" && (c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c >= "0" && c <= "9" || c === "$" || c === "_" || c === "\u200C" || c === "\u200D" || unicode.ID_Continue.test(c));
833
587
  },
834
588
  isDigit(c) {
835
- return typeof c === "string" && /[0-9]/.test(c);
589
+ return typeof c == "string" && /[0-9]/.test(c);
836
590
  },
837
591
  isHexDigit(c) {
838
- return typeof c === "string" && /[0-9A-Fa-f]/.test(c);
592
+ return typeof c == "string" && /[0-9A-Fa-f]/.test(c);
839
593
  }
840
594
  };
841
595
  }
@@ -844,113 +598,57 @@ var require_util = __commonJS({
844
598
  // ../node_modules/json5/lib/parse.js
845
599
  var require_parse = __commonJS({
846
600
  "../node_modules/json5/lib/parse.js"(exports, module) {
847
- var util = require_util();
848
- var source;
849
- var parseState;
850
- var stack;
851
- var pos;
852
- var line;
853
- var column;
854
- var token;
855
- var key;
856
- var root;
857
- module.exports = /* @__PURE__ */ __name(function parse(text, reviver) {
858
- source = String(text);
859
- parseState = "start";
860
- stack = [];
861
- pos = 0;
862
- line = 1;
863
- column = 0;
864
- token = void 0;
865
- key = void 0;
866
- root = void 0;
867
- do {
868
- token = lex();
869
- parseStates[parseState]();
870
- } while (token.type !== "eof");
871
- if (typeof reviver === "function") {
872
- return internalize({ "": root }, "", reviver);
873
- }
874
- return root;
875
- }, "parse");
601
+ var util = require_util(), source, parseState, stack, pos, line, column, token, key, root;
602
+ module.exports = function(text, reviver) {
603
+ source = String(text), parseState = "start", stack = [], pos = 0, line = 1, column = 0, token = void 0, key = void 0, root = void 0;
604
+ do
605
+ token = lex(), parseStates[parseState]();
606
+ while (token.type !== "eof");
607
+ return typeof reviver == "function" ? internalize({ "": root }, "", reviver) : root;
608
+ };
876
609
  function internalize(holder, name, reviver) {
877
- const value = holder[name];
878
- if (value != null && typeof value === "object") {
879
- if (Array.isArray(value)) {
610
+ let value = holder[name];
611
+ if (value != null && typeof value == "object")
612
+ if (Array.isArray(value))
880
613
  for (let i = 0; i < value.length; i++) {
881
- const key2 = String(i);
882
- const replacement = internalize(value, key2, reviver);
883
- if (replacement === void 0) {
884
- delete value[key2];
885
- } else {
886
- Object.defineProperty(value, key2, {
887
- value: replacement,
888
- writable: true,
889
- enumerable: true,
890
- configurable: true
891
- });
892
- }
614
+ let key2 = String(i), replacement = internalize(value, key2, reviver);
615
+ replacement === void 0 ? delete value[key2] : Object.defineProperty(value, key2, {
616
+ value: replacement,
617
+ writable: !0,
618
+ enumerable: !0,
619
+ configurable: !0
620
+ });
893
621
  }
894
- } else {
895
- for (const key2 in value) {
896
- const replacement = internalize(value, key2, reviver);
897
- if (replacement === void 0) {
898
- delete value[key2];
899
- } else {
900
- Object.defineProperty(value, key2, {
901
- value: replacement,
902
- writable: true,
903
- enumerable: true,
904
- configurable: true
905
- });
906
- }
622
+ else
623
+ for (let key2 in value) {
624
+ let replacement = internalize(value, key2, reviver);
625
+ replacement === void 0 ? delete value[key2] : Object.defineProperty(value, key2, {
626
+ value: replacement,
627
+ writable: !0,
628
+ enumerable: !0,
629
+ configurable: !0
630
+ });
907
631
  }
908
- }
909
- }
910
632
  return reviver.call(holder, name, value);
911
633
  }
912
- __name(internalize, "internalize");
913
- var lexState;
914
- var buffer;
915
- var doubleQuote;
916
- var sign;
917
- var c;
634
+ var lexState, buffer, doubleQuote, sign, c;
918
635
  function lex() {
919
- lexState = "default";
920
- buffer = "";
921
- doubleQuote = false;
922
- sign = 1;
923
- for (; ; ) {
636
+ for (lexState = "default", buffer = "", doubleQuote = !1, sign = 1; ; ) {
924
637
  c = peek();
925
- const token2 = lexStates[lexState]();
926
- if (token2) {
638
+ let token2 = lexStates[lexState]();
639
+ if (token2)
927
640
  return token2;
928
- }
929
641
  }
930
642
  }
931
- __name(lex, "lex");
932
643
  function peek() {
933
- if (source[pos]) {
644
+ if (source[pos])
934
645
  return String.fromCodePoint(source.codePointAt(pos));
935
- }
936
646
  }
937
- __name(peek, "peek");
938
647
  function read() {
939
- const c2 = peek();
940
- if (c2 === "\n") {
941
- line++;
942
- column = 0;
943
- } else if (c2) {
944
- column += c2.length;
945
- } else {
946
- column++;
947
- }
948
- if (c2) {
949
- pos += c2.length;
950
- }
951
- return c2;
648
+ let c2 = peek();
649
+ return c2 === `
650
+ ` ? (line++, column = 0) : c2 ? column += c2.length : column++, c2 && (pos += c2.length), c2;
952
651
  }
953
- __name(read, "read");
954
652
  var lexStates = {
955
653
  default() {
956
654
  switch (c) {
@@ -960,19 +658,18 @@ var require_parse = __commonJS({
960
658
  case " ":
961
659
  case "\xA0":
962
660
  case "\uFEFF":
963
- case "\n":
661
+ case `
662
+ `:
964
663
  case "\r":
965
664
  case "\u2028":
966
665
  case "\u2029":
967
666
  read();
968
667
  return;
969
668
  case "/":
970
- read();
971
- lexState = "comment";
669
+ read(), lexState = "comment";
972
670
  return;
973
671
  case void 0:
974
- read();
975
- return newToken("eof");
672
+ return read(), newToken("eof");
976
673
  }
977
674
  if (util.isSpaceSeparator(c)) {
978
675
  read();
@@ -983,12 +680,10 @@ var require_parse = __commonJS({
983
680
  comment() {
984
681
  switch (c) {
985
682
  case "*":
986
- read();
987
- lexState = "multiLineComment";
683
+ read(), lexState = "multiLineComment";
988
684
  return;
989
685
  case "/":
990
- read();
991
- lexState = "singleLineComment";
686
+ read(), lexState = "singleLineComment";
992
687
  return;
993
688
  }
994
689
  throw invalidChar(read());
@@ -996,8 +691,7 @@ var require_parse = __commonJS({
996
691
  multiLineComment() {
997
692
  switch (c) {
998
693
  case "*":
999
- read();
1000
- lexState = "multiLineCommentAsterisk";
694
+ read(), lexState = "multiLineCommentAsterisk";
1001
695
  return;
1002
696
  case void 0:
1003
697
  throw invalidChar(read());
@@ -1010,27 +704,24 @@ var require_parse = __commonJS({
1010
704
  read();
1011
705
  return;
1012
706
  case "/":
1013
- read();
1014
- lexState = "default";
707
+ read(), lexState = "default";
1015
708
  return;
1016
709
  case void 0:
1017
710
  throw invalidChar(read());
1018
711
  }
1019
- read();
1020
- lexState = "multiLineComment";
712
+ read(), lexState = "multiLineComment";
1021
713
  },
1022
714
  singleLineComment() {
1023
715
  switch (c) {
1024
- case "\n":
716
+ case `
717
+ `:
1025
718
  case "\r":
1026
719
  case "\u2028":
1027
720
  case "\u2029":
1028
- read();
1029
- lexState = "default";
721
+ read(), lexState = "default";
1030
722
  return;
1031
723
  case void 0:
1032
- read();
1033
- return newToken("eof");
724
+ return read(), newToken("eof");
1034
725
  }
1035
726
  read();
1036
727
  },
@@ -1040,31 +731,20 @@ var require_parse = __commonJS({
1040
731
  case "[":
1041
732
  return newToken("punctuator", read());
1042
733
  case "n":
1043
- read();
1044
- literal("ull");
1045
- return newToken("null", null);
734
+ return read(), literal("ull"), newToken("null", null);
1046
735
  case "t":
1047
- read();
1048
- literal("rue");
1049
- return newToken("boolean", true);
736
+ return read(), literal("rue"), newToken("boolean", !0);
1050
737
  case "f":
1051
- read();
1052
- literal("alse");
1053
- return newToken("boolean", false);
738
+ return read(), literal("alse"), newToken("boolean", !1);
1054
739
  case "-":
1055
740
  case "+":
1056
- if (read() === "-") {
1057
- sign = -1;
1058
- }
1059
- lexState = "sign";
741
+ read() === "-" && (sign = -1), lexState = "sign";
1060
742
  return;
1061
743
  case ".":
1062
- buffer = read();
1063
- lexState = "decimalPointLeading";
744
+ buffer = read(), lexState = "decimalPointLeading";
1064
745
  return;
1065
746
  case "0":
1066
- buffer = read();
1067
- lexState = "zero";
747
+ buffer = read(), lexState = "zero";
1068
748
  return;
1069
749
  case "1":
1070
750
  case "2":
@@ -1075,44 +755,34 @@ var require_parse = __commonJS({
1075
755
  case "7":
1076
756
  case "8":
1077
757
  case "9":
1078
- buffer = read();
1079
- lexState = "decimalInteger";
758
+ buffer = read(), lexState = "decimalInteger";
1080
759
  return;
1081
760
  case "I":
1082
- read();
1083
- literal("nfinity");
1084
- return newToken("numeric", Infinity);
761
+ return read(), literal("nfinity"), newToken("numeric", 1 / 0);
1085
762
  case "N":
1086
- read();
1087
- literal("aN");
1088
- return newToken("numeric", NaN);
763
+ return read(), literal("aN"), newToken("numeric", NaN);
1089
764
  case '"':
1090
765
  case "'":
1091
- doubleQuote = read() === '"';
1092
- buffer = "";
1093
- lexState = "string";
766
+ doubleQuote = read() === '"', buffer = "", lexState = "string";
1094
767
  return;
1095
768
  }
1096
769
  throw invalidChar(read());
1097
770
  },
1098
771
  identifierNameStartEscape() {
1099
- if (c !== "u") {
772
+ if (c !== "u")
1100
773
  throw invalidChar(read());
1101
- }
1102
774
  read();
1103
- const u = unicodeEscape();
775
+ let u = unicodeEscape();
1104
776
  switch (u) {
1105
777
  case "$":
1106
778
  case "_":
1107
779
  break;
1108
780
  default:
1109
- if (!util.isIdStartChar(u)) {
781
+ if (!util.isIdStartChar(u))
1110
782
  throw invalidIdentifier();
1111
- }
1112
783
  break;
1113
784
  }
1114
- buffer += u;
1115
- lexState = "identifierName";
785
+ buffer += u, lexState = "identifierName";
1116
786
  },
1117
787
  identifierName() {
1118
788
  switch (c) {
@@ -1123,8 +793,7 @@ var require_parse = __commonJS({
1123
793
  buffer += read();
1124
794
  return;
1125
795
  case "\\":
1126
- read();
1127
- lexState = "identifierNameEscape";
796
+ read(), lexState = "identifierNameEscape";
1128
797
  return;
1129
798
  }
1130
799
  if (util.isIdContinueChar(c)) {
@@ -1134,11 +803,10 @@ var require_parse = __commonJS({
1134
803
  return newToken("identifier", buffer);
1135
804
  },
1136
805
  identifierNameEscape() {
1137
- if (c !== "u") {
806
+ if (c !== "u")
1138
807
  throw invalidChar(read());
1139
- }
1140
808
  read();
1141
- const u = unicodeEscape();
809
+ let u = unicodeEscape();
1142
810
  switch (u) {
1143
811
  case "$":
1144
812
  case "_":
@@ -1146,23 +814,19 @@ var require_parse = __commonJS({
1146
814
  case "\u200D":
1147
815
  break;
1148
816
  default:
1149
- if (!util.isIdContinueChar(u)) {
817
+ if (!util.isIdContinueChar(u))
1150
818
  throw invalidIdentifier();
1151
- }
1152
819
  break;
1153
820
  }
1154
- buffer += u;
1155
- lexState = "identifierName";
821
+ buffer += u, lexState = "identifierName";
1156
822
  },
1157
823
  sign() {
1158
824
  switch (c) {
1159
825
  case ".":
1160
- buffer = read();
1161
- lexState = "decimalPointLeading";
826
+ buffer = read(), lexState = "decimalPointLeading";
1162
827
  return;
1163
828
  case "0":
1164
- buffer = read();
1165
- lexState = "zero";
829
+ buffer = read(), lexState = "zero";
1166
830
  return;
1167
831
  case "1":
1168
832
  case "2":
@@ -1173,35 +837,27 @@ var require_parse = __commonJS({
1173
837
  case "7":
1174
838
  case "8":
1175
839
  case "9":
1176
- buffer = read();
1177
- lexState = "decimalInteger";
840
+ buffer = read(), lexState = "decimalInteger";
1178
841
  return;
1179
842
  case "I":
1180
- read();
1181
- literal("nfinity");
1182
- return newToken("numeric", sign * Infinity);
843
+ return read(), literal("nfinity"), newToken("numeric", sign * (1 / 0));
1183
844
  case "N":
1184
- read();
1185
- literal("aN");
1186
- return newToken("numeric", NaN);
845
+ return read(), literal("aN"), newToken("numeric", NaN);
1187
846
  }
1188
847
  throw invalidChar(read());
1189
848
  },
1190
849
  zero() {
1191
850
  switch (c) {
1192
851
  case ".":
1193
- buffer += read();
1194
- lexState = "decimalPoint";
852
+ buffer += read(), lexState = "decimalPoint";
1195
853
  return;
1196
854
  case "e":
1197
855
  case "E":
1198
- buffer += read();
1199
- lexState = "decimalExponent";
856
+ buffer += read(), lexState = "decimalExponent";
1200
857
  return;
1201
858
  case "x":
1202
859
  case "X":
1203
- buffer += read();
1204
- lexState = "hexadecimal";
860
+ buffer += read(), lexState = "hexadecimal";
1205
861
  return;
1206
862
  }
1207
863
  return newToken("numeric", sign * 0);
@@ -1209,13 +865,11 @@ var require_parse = __commonJS({
1209
865
  decimalInteger() {
1210
866
  switch (c) {
1211
867
  case ".":
1212
- buffer += read();
1213
- lexState = "decimalPoint";
868
+ buffer += read(), lexState = "decimalPoint";
1214
869
  return;
1215
870
  case "e":
1216
871
  case "E":
1217
- buffer += read();
1218
- lexState = "decimalExponent";
872
+ buffer += read(), lexState = "decimalExponent";
1219
873
  return;
1220
874
  }
1221
875
  if (util.isDigit(c)) {
@@ -1226,8 +880,7 @@ var require_parse = __commonJS({
1226
880
  },
1227
881
  decimalPointLeading() {
1228
882
  if (util.isDigit(c)) {
1229
- buffer += read();
1230
- lexState = "decimalFraction";
883
+ buffer += read(), lexState = "decimalFraction";
1231
884
  return;
1232
885
  }
1233
886
  throw invalidChar(read());
@@ -1236,13 +889,11 @@ var require_parse = __commonJS({
1236
889
  switch (c) {
1237
890
  case "e":
1238
891
  case "E":
1239
- buffer += read();
1240
- lexState = "decimalExponent";
892
+ buffer += read(), lexState = "decimalExponent";
1241
893
  return;
1242
894
  }
1243
895
  if (util.isDigit(c)) {
1244
- buffer += read();
1245
- lexState = "decimalFraction";
896
+ buffer += read(), lexState = "decimalFraction";
1246
897
  return;
1247
898
  }
1248
899
  return newToken("numeric", sign * Number(buffer));
@@ -1251,8 +902,7 @@ var require_parse = __commonJS({
1251
902
  switch (c) {
1252
903
  case "e":
1253
904
  case "E":
1254
- buffer += read();
1255
- lexState = "decimalExponent";
905
+ buffer += read(), lexState = "decimalExponent";
1256
906
  return;
1257
907
  }
1258
908
  if (util.isDigit(c)) {
@@ -1265,21 +915,18 @@ var require_parse = __commonJS({
1265
915
  switch (c) {
1266
916
  case "+":
1267
917
  case "-":
1268
- buffer += read();
1269
- lexState = "decimalExponentSign";
918
+ buffer += read(), lexState = "decimalExponentSign";
1270
919
  return;
1271
920
  }
1272
921
  if (util.isDigit(c)) {
1273
- buffer += read();
1274
- lexState = "decimalExponentInteger";
922
+ buffer += read(), lexState = "decimalExponentInteger";
1275
923
  return;
1276
924
  }
1277
925
  throw invalidChar(read());
1278
926
  },
1279
927
  decimalExponentSign() {
1280
928
  if (util.isDigit(c)) {
1281
- buffer += read();
1282
- lexState = "decimalExponentInteger";
929
+ buffer += read(), lexState = "decimalExponentInteger";
1283
930
  return;
1284
931
  }
1285
932
  throw invalidChar(read());
@@ -1293,8 +940,7 @@ var require_parse = __commonJS({
1293
940
  },
1294
941
  hexadecimal() {
1295
942
  if (util.isHexDigit(c)) {
1296
- buffer += read();
1297
- lexState = "hexadecimalInteger";
943
+ buffer += read(), lexState = "hexadecimalInteger";
1298
944
  return;
1299
945
  }
1300
946
  throw invalidChar(read());
@@ -1309,24 +955,20 @@ var require_parse = __commonJS({
1309
955
  string() {
1310
956
  switch (c) {
1311
957
  case "\\":
1312
- read();
1313
- buffer += escape();
958
+ read(), buffer += escape();
1314
959
  return;
1315
960
  case '"':
1316
- if (doubleQuote) {
1317
- read();
1318
- return newToken("string", buffer);
1319
- }
961
+ if (doubleQuote)
962
+ return read(), newToken("string", buffer);
1320
963
  buffer += read();
1321
964
  return;
1322
965
  case "'":
1323
- if (!doubleQuote) {
1324
- read();
1325
- return newToken("string", buffer);
1326
- }
966
+ if (!doubleQuote)
967
+ return read(), newToken("string", buffer);
1327
968
  buffer += read();
1328
969
  return;
1329
- case "\n":
970
+ case `
971
+ `:
1330
972
  case "\r":
1331
973
  throw invalidChar(read());
1332
974
  case "\u2028":
@@ -1350,32 +992,27 @@ var require_parse = __commonJS({
1350
992
  switch (c) {
1351
993
  case "$":
1352
994
  case "_":
1353
- buffer = read();
1354
- lexState = "identifierName";
995
+ buffer = read(), lexState = "identifierName";
1355
996
  return;
1356
997
  case "\\":
1357
- read();
1358
- lexState = "identifierNameStartEscape";
998
+ read(), lexState = "identifierNameStartEscape";
1359
999
  return;
1360
1000
  case "}":
1361
1001
  return newToken("punctuator", read());
1362
1002
  case '"':
1363
1003
  case "'":
1364
- doubleQuote = read() === '"';
1365
- lexState = "string";
1004
+ doubleQuote = read() === '"', lexState = "string";
1366
1005
  return;
1367
1006
  }
1368
1007
  if (util.isIdStartChar(c)) {
1369
- buffer += read();
1370
- lexState = "identifierName";
1008
+ buffer += read(), lexState = "identifierName";
1371
1009
  return;
1372
1010
  }
1373
1011
  throw invalidChar(read());
1374
1012
  },
1375
1013
  afterPropertyName() {
1376
- if (c === ":") {
1014
+ if (c === ":")
1377
1015
  return newToken("punctuator", read());
1378
- }
1379
1016
  throw invalidChar(read());
1380
1017
  },
1381
1018
  beforePropertyValue() {
@@ -1390,9 +1027,8 @@ var require_parse = __commonJS({
1390
1027
  throw invalidChar(read());
1391
1028
  },
1392
1029
  beforeArrayValue() {
1393
- if (c === "]") {
1030
+ if (c === "]")
1394
1031
  return newToken("punctuator", read());
1395
- }
1396
1032
  lexState = "value";
1397
1033
  },
1398
1034
  afterArrayValue() {
@@ -1415,61 +1051,44 @@ var require_parse = __commonJS({
1415
1051
  column
1416
1052
  };
1417
1053
  }
1418
- __name(newToken, "newToken");
1419
1054
  function literal(s) {
1420
- for (const c2 of s) {
1421
- const p = peek();
1422
- if (p !== c2) {
1055
+ for (let c2 of s) {
1056
+ if (peek() !== c2)
1423
1057
  throw invalidChar(read());
1424
- }
1425
1058
  read();
1426
1059
  }
1427
1060
  }
1428
- __name(literal, "literal");
1429
1061
  function escape() {
1430
- const c2 = peek();
1431
- switch (c2) {
1062
+ switch (peek()) {
1432
1063
  case "b":
1433
- read();
1434
- return "\b";
1064
+ return read(), "\b";
1435
1065
  case "f":
1436
- read();
1437
- return "\f";
1066
+ return read(), "\f";
1438
1067
  case "n":
1439
- read();
1440
- return "\n";
1068
+ return read(), `
1069
+ `;
1441
1070
  case "r":
1442
- read();
1443
- return "\r";
1071
+ return read(), "\r";
1444
1072
  case "t":
1445
- read();
1446
- return " ";
1073
+ return read(), " ";
1447
1074
  case "v":
1448
- read();
1449
- return "\v";
1075
+ return read(), "\v";
1450
1076
  case "0":
1451
- read();
1452
- if (util.isDigit(peek())) {
1077
+ if (read(), util.isDigit(peek()))
1453
1078
  throw invalidChar(read());
1454
- }
1455
1079
  return "\0";
1456
1080
  case "x":
1457
- read();
1458
- return hexEscape();
1081
+ return read(), hexEscape();
1459
1082
  case "u":
1460
- read();
1461
- return unicodeEscape();
1462
- case "\n":
1083
+ return read(), unicodeEscape();
1084
+ case `
1085
+ `:
1463
1086
  case "\u2028":
1464
1087
  case "\u2029":
1465
- read();
1466
- return "";
1088
+ return read(), "";
1467
1089
  case "\r":
1468
- read();
1469
- if (peek() === "\n") {
1470
- read();
1471
- }
1472
- return "";
1090
+ return read(), peek() === `
1091
+ ` && read(), "";
1473
1092
  case "1":
1474
1093
  case "2":
1475
1094
  case "3":
@@ -1485,48 +1104,33 @@ var require_parse = __commonJS({
1485
1104
  }
1486
1105
  return read();
1487
1106
  }
1488
- __name(escape, "escape");
1489
1107
  function hexEscape() {
1490
- let buffer2 = "";
1491
- let c2 = peek();
1492
- if (!util.isHexDigit(c2)) {
1493
- throw invalidChar(read());
1494
- }
1495
- buffer2 += read();
1496
- c2 = peek();
1497
- if (!util.isHexDigit(c2)) {
1108
+ let buffer2 = "", c2 = peek();
1109
+ if (!util.isHexDigit(c2) || (buffer2 += read(), c2 = peek(), !util.isHexDigit(c2)))
1498
1110
  throw invalidChar(read());
1499
- }
1500
- buffer2 += read();
1501
- return String.fromCodePoint(parseInt(buffer2, 16));
1111
+ return buffer2 += read(), String.fromCodePoint(parseInt(buffer2, 16));
1502
1112
  }
1503
- __name(hexEscape, "hexEscape");
1504
1113
  function unicodeEscape() {
1505
- let buffer2 = "";
1506
- let count = 4;
1507
- while (count-- > 0) {
1508
- const c2 = peek();
1509
- if (!util.isHexDigit(c2)) {
1114
+ let buffer2 = "", count = 4;
1115
+ for (; count-- > 0; ) {
1116
+ let c2 = peek();
1117
+ if (!util.isHexDigit(c2))
1510
1118
  throw invalidChar(read());
1511
- }
1512
1119
  buffer2 += read();
1513
1120
  }
1514
1121
  return String.fromCodePoint(parseInt(buffer2, 16));
1515
1122
  }
1516
- __name(unicodeEscape, "unicodeEscape");
1517
1123
  var parseStates = {
1518
1124
  start() {
1519
- if (token.type === "eof") {
1125
+ if (token.type === "eof")
1520
1126
  throw invalidEOF();
1521
- }
1522
1127
  push();
1523
1128
  },
1524
1129
  beforePropertyName() {
1525
1130
  switch (token.type) {
1526
1131
  case "identifier":
1527
1132
  case "string":
1528
- key = token.value;
1529
- parseState = "afterPropertyName";
1133
+ key = token.value, parseState = "afterPropertyName";
1530
1134
  return;
1531
1135
  case "punctuator":
1532
1136
  pop();
@@ -1536,21 +1140,18 @@ var require_parse = __commonJS({
1536
1140
  }
1537
1141
  },
1538
1142
  afterPropertyName() {
1539
- if (token.type === "eof") {
1143
+ if (token.type === "eof")
1540
1144
  throw invalidEOF();
1541
- }
1542
1145
  parseState = "beforePropertyValue";
1543
1146
  },
1544
1147
  beforePropertyValue() {
1545
- if (token.type === "eof") {
1148
+ if (token.type === "eof")
1546
1149
  throw invalidEOF();
1547
- }
1548
1150
  push();
1549
1151
  },
1550
1152
  beforeArrayValue() {
1551
- if (token.type === "eof") {
1153
+ if (token.type === "eof")
1552
1154
  throw invalidEOF();
1553
- }
1554
1155
  if (token.type === "punctuator" && token.value === "]") {
1555
1156
  pop();
1556
1157
  return;
@@ -1558,9 +1159,8 @@ var require_parse = __commonJS({
1558
1159
  push();
1559
1160
  },
1560
1161
  afterPropertyValue() {
1561
- if (token.type === "eof") {
1162
+ if (token.type === "eof")
1562
1163
  throw invalidEOF();
1563
- }
1564
1164
  switch (token.value) {
1565
1165
  case ",":
1566
1166
  parseState = "beforePropertyName";
@@ -1570,9 +1170,8 @@ var require_parse = __commonJS({
1570
1170
  }
1571
1171
  },
1572
1172
  afterArrayValue() {
1573
- if (token.type === "eof") {
1173
+ if (token.type === "eof")
1574
1174
  throw invalidEOF();
1575
- }
1576
1175
  switch (token.value) {
1577
1176
  case ",":
1578
1177
  parseState = "beforeArrayValue";
@@ -1604,74 +1203,43 @@ var require_parse = __commonJS({
1604
1203
  value = token.value;
1605
1204
  break;
1606
1205
  }
1607
- if (root === void 0) {
1206
+ if (root === void 0)
1608
1207
  root = value;
1609
- } else {
1610
- const parent = stack[stack.length - 1];
1611
- if (Array.isArray(parent)) {
1612
- parent.push(value);
1613
- } else {
1614
- Object.defineProperty(parent, key, {
1615
- value,
1616
- writable: true,
1617
- enumerable: true,
1618
- configurable: true
1619
- });
1620
- }
1208
+ else {
1209
+ let parent = stack[stack.length - 1];
1210
+ Array.isArray(parent) ? parent.push(value) : Object.defineProperty(parent, key, {
1211
+ value,
1212
+ writable: !0,
1213
+ enumerable: !0,
1214
+ configurable: !0
1215
+ });
1621
1216
  }
1622
- if (value !== null && typeof value === "object") {
1623
- stack.push(value);
1624
- if (Array.isArray(value)) {
1625
- parseState = "beforeArrayValue";
1626
- } else {
1627
- parseState = "beforePropertyName";
1628
- }
1629
- } else {
1630
- const current = stack[stack.length - 1];
1631
- if (current == null) {
1632
- parseState = "end";
1633
- } else if (Array.isArray(current)) {
1634
- parseState = "afterArrayValue";
1635
- } else {
1636
- parseState = "afterPropertyValue";
1637
- }
1217
+ if (value !== null && typeof value == "object")
1218
+ stack.push(value), Array.isArray(value) ? parseState = "beforeArrayValue" : parseState = "beforePropertyName";
1219
+ else {
1220
+ let current = stack[stack.length - 1];
1221
+ current == null ? parseState = "end" : Array.isArray(current) ? parseState = "afterArrayValue" : parseState = "afterPropertyValue";
1638
1222
  }
1639
1223
  }
1640
- __name(push, "push");
1641
1224
  function pop() {
1642
1225
  stack.pop();
1643
- const current = stack[stack.length - 1];
1644
- if (current == null) {
1645
- parseState = "end";
1646
- } else if (Array.isArray(current)) {
1647
- parseState = "afterArrayValue";
1648
- } else {
1649
- parseState = "afterPropertyValue";
1650
- }
1226
+ let current = stack[stack.length - 1];
1227
+ current == null ? parseState = "end" : Array.isArray(current) ? parseState = "afterArrayValue" : parseState = "afterPropertyValue";
1651
1228
  }
1652
- __name(pop, "pop");
1653
1229
  function invalidChar(c2) {
1654
- if (c2 === void 0) {
1655
- return syntaxError(`JSON5: invalid end of input at ${line}:${column}`);
1656
- }
1657
- return syntaxError(`JSON5: invalid character '${formatChar(c2)}' at ${line}:${column}`);
1230
+ return syntaxError(c2 === void 0 ? `JSON5: invalid end of input at ${line}:${column}` : `JSON5: invalid character '${formatChar(c2)}' at ${line}:${column}`);
1658
1231
  }
1659
- __name(invalidChar, "invalidChar");
1660
1232
  function invalidEOF() {
1661
1233
  return syntaxError(`JSON5: invalid end of input at ${line}:${column}`);
1662
1234
  }
1663
- __name(invalidEOF, "invalidEOF");
1664
1235
  function invalidIdentifier() {
1665
- column -= 5;
1666
- return syntaxError(`JSON5: invalid identifier character at ${line}:${column}`);
1236
+ return column -= 5, syntaxError(`JSON5: invalid identifier character at ${line}:${column}`);
1667
1237
  }
1668
- __name(invalidIdentifier, "invalidIdentifier");
1669
1238
  function separatorChar(c2) {
1670
1239
  console.warn(`JSON5: '${formatChar(c2)}' in strings is not valid ECMAScript; consider escaping`);
1671
1240
  }
1672
- __name(separatorChar, "separatorChar");
1673
1241
  function formatChar(c2) {
1674
- const replacements = {
1242
+ let replacements = {
1675
1243
  "'": "\\'",
1676
1244
  '"': '\\"',
1677
1245
  "\\": "\\\\",
@@ -1685,23 +1253,18 @@ var require_parse = __commonJS({
1685
1253
  "\u2028": "\\u2028",
1686
1254
  "\u2029": "\\u2029"
1687
1255
  };
1688
- if (replacements[c2]) {
1256
+ if (replacements[c2])
1689
1257
  return replacements[c2];
1690
- }
1691
1258
  if (c2 < " ") {
1692
- const hexString = c2.charCodeAt(0).toString(16);
1259
+ let hexString = c2.charCodeAt(0).toString(16);
1693
1260
  return "\\x" + ("00" + hexString).substring(hexString.length);
1694
1261
  }
1695
1262
  return c2;
1696
1263
  }
1697
- __name(formatChar, "formatChar");
1698
1264
  function syntaxError(message) {
1699
- const err = new SyntaxError(message);
1700
- err.lineNumber = line;
1701
- err.columnNumber = column;
1702
- return err;
1265
+ let err = new SyntaxError(message);
1266
+ return err.lineNumber = line, err.columnNumber = column, err;
1703
1267
  }
1704
- __name(syntaxError, "syntaxError");
1705
1268
  }
1706
1269
  });
1707
1270
 
@@ -1709,93 +1272,40 @@ var require_parse = __commonJS({
1709
1272
  var require_stringify = __commonJS({
1710
1273
  "../node_modules/json5/lib/stringify.js"(exports, module) {
1711
1274
  var util = require_util();
1712
- module.exports = /* @__PURE__ */ __name(function stringify(value, replacer, space) {
1713
- const stack = [];
1714
- let indent = "";
1715
- let propertyList;
1716
- let replacerFunc;
1717
- let gap = "";
1718
- let quote;
1719
- if (replacer != null && typeof replacer === "object" && !Array.isArray(replacer)) {
1720
- space = replacer.space;
1721
- quote = replacer.quote;
1722
- replacer = replacer.replacer;
1723
- }
1724
- if (typeof replacer === "function") {
1275
+ module.exports = function(value, replacer, space) {
1276
+ let stack = [], indent = "", propertyList, replacerFunc, gap = "", quote;
1277
+ if (replacer != null && typeof replacer == "object" && !Array.isArray(replacer) && (space = replacer.space, quote = replacer.quote, replacer = replacer.replacer), typeof replacer == "function")
1725
1278
  replacerFunc = replacer;
1726
- } else if (Array.isArray(replacer)) {
1279
+ else if (Array.isArray(replacer)) {
1727
1280
  propertyList = [];
1728
- for (const v of replacer) {
1281
+ for (let v of replacer) {
1729
1282
  let item;
1730
- if (typeof v === "string") {
1731
- item = v;
1732
- } else if (typeof v === "number" || v instanceof String || v instanceof Number) {
1733
- item = String(v);
1734
- }
1735
- if (item !== void 0 && propertyList.indexOf(item) < 0) {
1736
- propertyList.push(item);
1737
- }
1738
- }
1739
- }
1740
- if (space instanceof Number) {
1741
- space = Number(space);
1742
- } else if (space instanceof String) {
1743
- space = String(space);
1744
- }
1745
- if (typeof space === "number") {
1746
- if (space > 0) {
1747
- space = Math.min(10, Math.floor(space));
1748
- gap = " ".substr(0, space);
1283
+ typeof v == "string" ? item = v : (typeof v == "number" || v instanceof String || v instanceof Number) && (item = String(v)), item !== void 0 && propertyList.indexOf(item) < 0 && propertyList.push(item);
1749
1284
  }
1750
- } else if (typeof space === "string") {
1751
- gap = space.substr(0, 10);
1752
1285
  }
1753
- return serializeProperty("", { "": value });
1286
+ return space instanceof Number ? space = Number(space) : space instanceof String && (space = String(space)), typeof space == "number" ? space > 0 && (space = Math.min(10, Math.floor(space)), gap = " ".substr(0, space)) : typeof space == "string" && (gap = space.substr(0, 10)), serializeProperty("", { "": value });
1754
1287
  function serializeProperty(key, holder) {
1755
1288
  let value2 = holder[key];
1756
- if (value2 != null) {
1757
- if (typeof value2.toJSON5 === "function") {
1758
- value2 = value2.toJSON5(key);
1759
- } else if (typeof value2.toJSON === "function") {
1760
- value2 = value2.toJSON(key);
1761
- }
1762
- }
1763
- if (replacerFunc) {
1764
- value2 = replacerFunc.call(holder, key, value2);
1765
- }
1766
- if (value2 instanceof Number) {
1767
- value2 = Number(value2);
1768
- } else if (value2 instanceof String) {
1769
- value2 = String(value2);
1770
- } else if (value2 instanceof Boolean) {
1771
- value2 = value2.valueOf();
1772
- }
1773
- switch (value2) {
1289
+ switch (value2 != null && (typeof value2.toJSON5 == "function" ? value2 = value2.toJSON5(key) : typeof value2.toJSON == "function" && (value2 = value2.toJSON(key))), replacerFunc && (value2 = replacerFunc.call(holder, key, value2)), value2 instanceof Number ? value2 = Number(value2) : value2 instanceof String ? value2 = String(value2) : value2 instanceof Boolean && (value2 = value2.valueOf()), value2) {
1774
1290
  case null:
1775
1291
  return "null";
1776
- case true:
1292
+ case !0:
1777
1293
  return "true";
1778
- case false:
1294
+ case !1:
1779
1295
  return "false";
1780
1296
  }
1781
- if (typeof value2 === "string") {
1782
- return quoteString(value2, false);
1783
- }
1784
- if (typeof value2 === "number") {
1297
+ if (typeof value2 == "string")
1298
+ return quoteString(value2, !1);
1299
+ if (typeof value2 == "number")
1785
1300
  return String(value2);
1786
- }
1787
- if (typeof value2 === "object") {
1301
+ if (typeof value2 == "object")
1788
1302
  return Array.isArray(value2) ? serializeArray(value2) : serializeObject(value2);
1789
- }
1790
- return void 0;
1791
1303
  }
1792
- __name(serializeProperty, "serializeProperty");
1793
1304
  function quoteString(value2) {
1794
- const quotes = {
1305
+ let quotes = {
1795
1306
  "'": 0.1,
1796
1307
  '"': 0.2
1797
- };
1798
- const replacements = {
1308
+ }, replacements = {
1799
1309
  "'": "\\'",
1800
1310
  '"': '\\"',
1801
1311
  "\\": "\\\\",
@@ -1808,15 +1318,13 @@ var require_stringify = __commonJS({
1808
1318
  "\0": "\\0",
1809
1319
  "\u2028": "\\u2028",
1810
1320
  "\u2029": "\\u2029"
1811
- };
1812
- let product = "";
1321
+ }, product = "";
1813
1322
  for (let i = 0; i < value2.length; i++) {
1814
- const c = value2[i];
1323
+ let c = value2[i];
1815
1324
  switch (c) {
1816
1325
  case "'":
1817
1326
  case '"':
1818
- quotes[c]++;
1819
- product += c;
1327
+ quotes[c]++, product += c;
1820
1328
  continue;
1821
1329
  case "\0":
1822
1330
  if (util.isDigit(value2[i + 1])) {
@@ -1835,106 +1343,84 @@ var require_stringify = __commonJS({
1835
1343
  }
1836
1344
  product += c;
1837
1345
  }
1838
- const quoteChar = quote || Object.keys(quotes).reduce((a, b) => quotes[a] < quotes[b] ? a : b);
1839
- product = product.replace(new RegExp(quoteChar, "g"), replacements[quoteChar]);
1840
- return quoteChar + product + quoteChar;
1346
+ let quoteChar = quote || Object.keys(quotes).reduce((a, b) => quotes[a] < quotes[b] ? a : b);
1347
+ return product = product.replace(new RegExp(quoteChar, "g"), replacements[quoteChar]), quoteChar + product + quoteChar;
1841
1348
  }
1842
- __name(quoteString, "quoteString");
1843
1349
  function serializeObject(value2) {
1844
- if (stack.indexOf(value2) >= 0) {
1350
+ if (stack.indexOf(value2) >= 0)
1845
1351
  throw TypeError("Converting circular structure to JSON5");
1846
- }
1847
1352
  stack.push(value2);
1848
1353
  let stepback = indent;
1849
1354
  indent = indent + gap;
1850
- let keys = propertyList || Object.keys(value2);
1851
- let partial = [];
1852
- for (const key of keys) {
1853
- const propertyString = serializeProperty(key, value2);
1355
+ let keys = propertyList || Object.keys(value2), partial = [];
1356
+ for (let key of keys) {
1357
+ let propertyString = serializeProperty(key, value2);
1854
1358
  if (propertyString !== void 0) {
1855
1359
  let member = serializeKey(key) + ":";
1856
- if (gap !== "") {
1857
- member += " ";
1858
- }
1859
- member += propertyString;
1860
- partial.push(member);
1360
+ gap !== "" && (member += " "), member += propertyString, partial.push(member);
1861
1361
  }
1862
1362
  }
1863
1363
  let final;
1864
- if (partial.length === 0) {
1364
+ if (partial.length === 0)
1865
1365
  final = "{}";
1866
- } else {
1366
+ else {
1867
1367
  let properties;
1868
- if (gap === "") {
1869
- properties = partial.join(",");
1870
- final = "{" + properties + "}";
1871
- } else {
1872
- let separator = ",\n" + indent;
1873
- properties = partial.join(separator);
1874
- final = "{\n" + indent + properties + ",\n" + stepback + "}";
1368
+ if (gap === "")
1369
+ properties = partial.join(","), final = "{" + properties + "}";
1370
+ else {
1371
+ let separator = `,
1372
+ ` + indent;
1373
+ properties = partial.join(separator), final = `{
1374
+ ` + indent + properties + `,
1375
+ ` + stepback + "}";
1875
1376
  }
1876
1377
  }
1877
- stack.pop();
1878
- indent = stepback;
1879
- return final;
1378
+ return stack.pop(), indent = stepback, final;
1880
1379
  }
1881
- __name(serializeObject, "serializeObject");
1882
1380
  function serializeKey(key) {
1883
- if (key.length === 0) {
1884
- return quoteString(key, true);
1885
- }
1886
- const firstChar = String.fromCodePoint(key.codePointAt(0));
1887
- if (!util.isIdStartChar(firstChar)) {
1888
- return quoteString(key, true);
1889
- }
1890
- for (let i = firstChar.length; i < key.length; i++) {
1891
- if (!util.isIdContinueChar(String.fromCodePoint(key.codePointAt(i)))) {
1892
- return quoteString(key, true);
1893
- }
1894
- }
1381
+ if (key.length === 0)
1382
+ return quoteString(key, !0);
1383
+ let firstChar = String.fromCodePoint(key.codePointAt(0));
1384
+ if (!util.isIdStartChar(firstChar))
1385
+ return quoteString(key, !0);
1386
+ for (let i = firstChar.length; i < key.length; i++)
1387
+ if (!util.isIdContinueChar(String.fromCodePoint(key.codePointAt(i))))
1388
+ return quoteString(key, !0);
1895
1389
  return key;
1896
1390
  }
1897
- __name(serializeKey, "serializeKey");
1898
1391
  function serializeArray(value2) {
1899
- if (stack.indexOf(value2) >= 0) {
1392
+ if (stack.indexOf(value2) >= 0)
1900
1393
  throw TypeError("Converting circular structure to JSON5");
1901
- }
1902
1394
  stack.push(value2);
1903
1395
  let stepback = indent;
1904
1396
  indent = indent + gap;
1905
1397
  let partial = [];
1906
1398
  for (let i = 0; i < value2.length; i++) {
1907
- const propertyString = serializeProperty(String(i), value2);
1399
+ let propertyString = serializeProperty(String(i), value2);
1908
1400
  partial.push(propertyString !== void 0 ? propertyString : "null");
1909
1401
  }
1910
1402
  let final;
1911
- if (partial.length === 0) {
1403
+ if (partial.length === 0)
1912
1404
  final = "[]";
1913
- } else {
1914
- if (gap === "") {
1915
- let properties = partial.join(",");
1916
- final = "[" + properties + "]";
1917
- } else {
1918
- let separator = ",\n" + indent;
1919
- let properties = partial.join(separator);
1920
- final = "[\n" + indent + properties + ",\n" + stepback + "]";
1921
- }
1405
+ else if (gap === "")
1406
+ final = "[" + partial.join(",") + "]";
1407
+ else {
1408
+ let separator = `,
1409
+ ` + indent, properties = partial.join(separator);
1410
+ final = `[
1411
+ ` + indent + properties + `,
1412
+ ` + stepback + "]";
1922
1413
  }
1923
- stack.pop();
1924
- indent = stepback;
1925
- return final;
1414
+ return stack.pop(), indent = stepback, final;
1926
1415
  }
1927
- __name(serializeArray, "serializeArray");
1928
- }, "stringify");
1416
+ };
1929
1417
  }
1930
1418
  });
1931
1419
 
1932
1420
  // ../node_modules/json5/lib/index.js
1933
1421
  var require_lib = __commonJS({
1934
1422
  "../node_modules/json5/lib/index.js"(exports, module) {
1935
- var parse = require_parse();
1936
- var stringify = require_stringify();
1937
- var JSON5 = {
1423
+ var parse = require_parse(), stringify = require_stringify(), JSON5 = {
1938
1424
  parse,
1939
1425
  stringify
1940
1426
  };