dimcode-darwin-x64 0.0.78 → 0.1.0-alpha.10

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 (254) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +2 -0
  3. package/bin/dimcode +2 -2
  4. package/licenses/grok-build/LICENSE +204 -0
  5. package/licenses/grok-build/NOTICE +14 -0
  6. package/licenses/grok-build/xai-ratatui-inline/NOTICE +15 -0
  7. package/licenses/grok-build/xai-ratatui-textarea/NOTICE +8 -0
  8. package/package.json +12 -3
  9. package/release-manifest.json +19 -0
  10. package/bin/node_modules/skills/bin/cli.mjs +0 -14
  11. package/bin/node_modules/skills/dist/_chunks/libs/@clack/core.mjs +0 -767
  12. package/bin/node_modules/skills/dist/_chunks/libs/@clack/prompts.mjs +0 -334
  13. package/bin/node_modules/skills/dist/_chunks/libs/@kwsites/file-exists.mjs +0 -562
  14. package/bin/node_modules/skills/dist/_chunks/libs/@kwsites/promise-deferred.mjs +0 -37
  15. package/bin/node_modules/skills/dist/_chunks/libs/@vercel/detect-agent.mjs +0 -138
  16. package/bin/node_modules/skills/dist/_chunks/libs/simple-git.mjs +0 -3584
  17. package/bin/node_modules/skills/dist/_chunks/libs/xdg-basedir.mjs +0 -14
  18. package/bin/node_modules/skills/dist/_chunks/rolldown-runtime.mjs +0 -24
  19. package/bin/node_modules/skills/dist/cli.d.mts +0 -1
  20. package/bin/node_modules/skills/dist/cli.mjs +0 -5484
  21. package/bin/node_modules/skills/package.json +0 -127
  22. package/bin/node_modules/yaml/LICENSE +0 -13
  23. package/bin/node_modules/yaml/README.md +0 -172
  24. package/bin/node_modules/yaml/bin.mjs +0 -11
  25. package/bin/node_modules/yaml/browser/dist/compose/compose-collection.js +0 -88
  26. package/bin/node_modules/yaml/browser/dist/compose/compose-doc.js +0 -43
  27. package/bin/node_modules/yaml/browser/dist/compose/compose-node.js +0 -109
  28. package/bin/node_modules/yaml/browser/dist/compose/compose-scalar.js +0 -86
  29. package/bin/node_modules/yaml/browser/dist/compose/composer.js +0 -219
  30. package/bin/node_modules/yaml/browser/dist/compose/resolve-block-map.js +0 -115
  31. package/bin/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +0 -198
  32. package/bin/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +0 -49
  33. package/bin/node_modules/yaml/browser/dist/compose/resolve-end.js +0 -37
  34. package/bin/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +0 -207
  35. package/bin/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +0 -225
  36. package/bin/node_modules/yaml/browser/dist/compose/resolve-props.js +0 -146
  37. package/bin/node_modules/yaml/browser/dist/compose/util-contains-newline.js +0 -34
  38. package/bin/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +0 -26
  39. package/bin/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +0 -15
  40. package/bin/node_modules/yaml/browser/dist/compose/util-map-includes.js +0 -13
  41. package/bin/node_modules/yaml/browser/dist/doc/Document.js +0 -335
  42. package/bin/node_modules/yaml/browser/dist/doc/anchors.js +0 -71
  43. package/bin/node_modules/yaml/browser/dist/doc/applyReviver.js +0 -55
  44. package/bin/node_modules/yaml/browser/dist/doc/createNode.js +0 -88
  45. package/bin/node_modules/yaml/browser/dist/doc/directives.js +0 -176
  46. package/bin/node_modules/yaml/browser/dist/errors.js +0 -57
  47. package/bin/node_modules/yaml/browser/dist/index.js +0 -17
  48. package/bin/node_modules/yaml/browser/dist/log.js +0 -11
  49. package/bin/node_modules/yaml/browser/dist/nodes/Alias.js +0 -116
  50. package/bin/node_modules/yaml/browser/dist/nodes/Collection.js +0 -147
  51. package/bin/node_modules/yaml/browser/dist/nodes/Node.js +0 -38
  52. package/bin/node_modules/yaml/browser/dist/nodes/Pair.js +0 -36
  53. package/bin/node_modules/yaml/browser/dist/nodes/Scalar.js +0 -24
  54. package/bin/node_modules/yaml/browser/dist/nodes/YAMLMap.js +0 -144
  55. package/bin/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +0 -113
  56. package/bin/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +0 -63
  57. package/bin/node_modules/yaml/browser/dist/nodes/identity.js +0 -36
  58. package/bin/node_modules/yaml/browser/dist/nodes/toJS.js +0 -37
  59. package/bin/node_modules/yaml/browser/dist/parse/cst-scalar.js +0 -214
  60. package/bin/node_modules/yaml/browser/dist/parse/cst-stringify.js +0 -61
  61. package/bin/node_modules/yaml/browser/dist/parse/cst-visit.js +0 -97
  62. package/bin/node_modules/yaml/browser/dist/parse/cst.js +0 -98
  63. package/bin/node_modules/yaml/browser/dist/parse/lexer.js +0 -721
  64. package/bin/node_modules/yaml/browser/dist/parse/line-counter.js +0 -39
  65. package/bin/node_modules/yaml/browser/dist/parse/parser.js +0 -975
  66. package/bin/node_modules/yaml/browser/dist/public-api.js +0 -102
  67. package/bin/node_modules/yaml/browser/dist/schema/Schema.js +0 -37
  68. package/bin/node_modules/yaml/browser/dist/schema/common/map.js +0 -17
  69. package/bin/node_modules/yaml/browser/dist/schema/common/null.js +0 -15
  70. package/bin/node_modules/yaml/browser/dist/schema/common/seq.js +0 -17
  71. package/bin/node_modules/yaml/browser/dist/schema/common/string.js +0 -14
  72. package/bin/node_modules/yaml/browser/dist/schema/core/bool.js +0 -19
  73. package/bin/node_modules/yaml/browser/dist/schema/core/float.js +0 -43
  74. package/bin/node_modules/yaml/browser/dist/schema/core/int.js +0 -38
  75. package/bin/node_modules/yaml/browser/dist/schema/core/schema.js +0 -23
  76. package/bin/node_modules/yaml/browser/dist/schema/json/schema.js +0 -62
  77. package/bin/node_modules/yaml/browser/dist/schema/tags.js +0 -96
  78. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +0 -58
  79. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +0 -26
  80. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +0 -46
  81. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +0 -71
  82. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +0 -67
  83. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +0 -74
  84. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +0 -78
  85. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +0 -39
  86. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +0 -93
  87. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +0 -101
  88. package/bin/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +0 -146
  89. package/bin/node_modules/yaml/browser/dist/stringify/stringify.js +0 -129
  90. package/bin/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +0 -153
  91. package/bin/node_modules/yaml/browser/dist/stringify/stringifyComment.js +0 -20
  92. package/bin/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +0 -85
  93. package/bin/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +0 -25
  94. package/bin/node_modules/yaml/browser/dist/stringify/stringifyPair.js +0 -150
  95. package/bin/node_modules/yaml/browser/dist/stringify/stringifyString.js +0 -336
  96. package/bin/node_modules/yaml/browser/dist/util.js +0 -11
  97. package/bin/node_modules/yaml/browser/dist/visit.js +0 -233
  98. package/bin/node_modules/yaml/browser/index.js +0 -5
  99. package/bin/node_modules/yaml/browser/package.json +0 -3
  100. package/bin/node_modules/yaml/dist/cli.d.ts +0 -8
  101. package/bin/node_modules/yaml/dist/cli.mjs +0 -201
  102. package/bin/node_modules/yaml/dist/compose/compose-collection.d.ts +0 -11
  103. package/bin/node_modules/yaml/dist/compose/compose-collection.js +0 -90
  104. package/bin/node_modules/yaml/dist/compose/compose-doc.d.ts +0 -7
  105. package/bin/node_modules/yaml/dist/compose/compose-doc.js +0 -45
  106. package/bin/node_modules/yaml/dist/compose/compose-node.d.ts +0 -29
  107. package/bin/node_modules/yaml/dist/compose/compose-node.js +0 -112
  108. package/bin/node_modules/yaml/dist/compose/compose-scalar.d.ts +0 -5
  109. package/bin/node_modules/yaml/dist/compose/compose-scalar.js +0 -88
  110. package/bin/node_modules/yaml/dist/compose/composer.d.ts +0 -63
  111. package/bin/node_modules/yaml/dist/compose/composer.js +0 -224
  112. package/bin/node_modules/yaml/dist/compose/resolve-block-map.d.ts +0 -6
  113. package/bin/node_modules/yaml/dist/compose/resolve-block-map.js +0 -117
  114. package/bin/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +0 -11
  115. package/bin/node_modules/yaml/dist/compose/resolve-block-scalar.js +0 -200
  116. package/bin/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +0 -6
  117. package/bin/node_modules/yaml/dist/compose/resolve-block-seq.js +0 -51
  118. package/bin/node_modules/yaml/dist/compose/resolve-end.d.ts +0 -6
  119. package/bin/node_modules/yaml/dist/compose/resolve-end.js +0 -39
  120. package/bin/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +0 -7
  121. package/bin/node_modules/yaml/dist/compose/resolve-flow-collection.js +0 -209
  122. package/bin/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +0 -10
  123. package/bin/node_modules/yaml/dist/compose/resolve-flow-scalar.js +0 -227
  124. package/bin/node_modules/yaml/dist/compose/resolve-props.d.ts +0 -23
  125. package/bin/node_modules/yaml/dist/compose/resolve-props.js +0 -148
  126. package/bin/node_modules/yaml/dist/compose/util-contains-newline.d.ts +0 -2
  127. package/bin/node_modules/yaml/dist/compose/util-contains-newline.js +0 -36
  128. package/bin/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +0 -2
  129. package/bin/node_modules/yaml/dist/compose/util-empty-scalar-position.js +0 -28
  130. package/bin/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +0 -3
  131. package/bin/node_modules/yaml/dist/compose/util-flow-indent-check.js +0 -17
  132. package/bin/node_modules/yaml/dist/compose/util-map-includes.d.ts +0 -4
  133. package/bin/node_modules/yaml/dist/compose/util-map-includes.js +0 -15
  134. package/bin/node_modules/yaml/dist/doc/Document.d.ts +0 -141
  135. package/bin/node_modules/yaml/dist/doc/Document.js +0 -337
  136. package/bin/node_modules/yaml/dist/doc/anchors.d.ts +0 -24
  137. package/bin/node_modules/yaml/dist/doc/anchors.js +0 -76
  138. package/bin/node_modules/yaml/dist/doc/applyReviver.d.ts +0 -9
  139. package/bin/node_modules/yaml/dist/doc/applyReviver.js +0 -57
  140. package/bin/node_modules/yaml/dist/doc/createNode.d.ts +0 -17
  141. package/bin/node_modules/yaml/dist/doc/createNode.js +0 -90
  142. package/bin/node_modules/yaml/dist/doc/directives.d.ts +0 -49
  143. package/bin/node_modules/yaml/dist/doc/directives.js +0 -178
  144. package/bin/node_modules/yaml/dist/errors.d.ts +0 -21
  145. package/bin/node_modules/yaml/dist/errors.js +0 -62
  146. package/bin/node_modules/yaml/dist/index.d.ts +0 -25
  147. package/bin/node_modules/yaml/dist/index.js +0 -50
  148. package/bin/node_modules/yaml/dist/log.d.ts +0 -3
  149. package/bin/node_modules/yaml/dist/log.js +0 -19
  150. package/bin/node_modules/yaml/dist/nodes/Alias.d.ts +0 -29
  151. package/bin/node_modules/yaml/dist/nodes/Alias.js +0 -118
  152. package/bin/node_modules/yaml/dist/nodes/Collection.d.ts +0 -73
  153. package/bin/node_modules/yaml/dist/nodes/Collection.js +0 -151
  154. package/bin/node_modules/yaml/dist/nodes/Node.d.ts +0 -53
  155. package/bin/node_modules/yaml/dist/nodes/Node.js +0 -40
  156. package/bin/node_modules/yaml/dist/nodes/Pair.d.ts +0 -22
  157. package/bin/node_modules/yaml/dist/nodes/Pair.js +0 -39
  158. package/bin/node_modules/yaml/dist/nodes/Scalar.d.ts +0 -47
  159. package/bin/node_modules/yaml/dist/nodes/Scalar.js +0 -27
  160. package/bin/node_modules/yaml/dist/nodes/YAMLMap.d.ts +0 -53
  161. package/bin/node_modules/yaml/dist/nodes/YAMLMap.js +0 -147
  162. package/bin/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +0 -60
  163. package/bin/node_modules/yaml/dist/nodes/YAMLSeq.js +0 -115
  164. package/bin/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +0 -4
  165. package/bin/node_modules/yaml/dist/nodes/addPairToJSMap.js +0 -65
  166. package/bin/node_modules/yaml/dist/nodes/identity.d.ts +0 -23
  167. package/bin/node_modules/yaml/dist/nodes/identity.js +0 -53
  168. package/bin/node_modules/yaml/dist/nodes/toJS.d.ts +0 -29
  169. package/bin/node_modules/yaml/dist/nodes/toJS.js +0 -39
  170. package/bin/node_modules/yaml/dist/options.d.ts +0 -350
  171. package/bin/node_modules/yaml/dist/parse/cst-scalar.d.ts +0 -64
  172. package/bin/node_modules/yaml/dist/parse/cst-scalar.js +0 -218
  173. package/bin/node_modules/yaml/dist/parse/cst-stringify.d.ts +0 -8
  174. package/bin/node_modules/yaml/dist/parse/cst-stringify.js +0 -63
  175. package/bin/node_modules/yaml/dist/parse/cst-visit.d.ts +0 -39
  176. package/bin/node_modules/yaml/dist/parse/cst-visit.js +0 -99
  177. package/bin/node_modules/yaml/dist/parse/cst.d.ts +0 -109
  178. package/bin/node_modules/yaml/dist/parse/cst.js +0 -112
  179. package/bin/node_modules/yaml/dist/parse/lexer.d.ts +0 -87
  180. package/bin/node_modules/yaml/dist/parse/lexer.js +0 -723
  181. package/bin/node_modules/yaml/dist/parse/line-counter.d.ts +0 -22
  182. package/bin/node_modules/yaml/dist/parse/line-counter.js +0 -41
  183. package/bin/node_modules/yaml/dist/parse/parser.d.ts +0 -84
  184. package/bin/node_modules/yaml/dist/parse/parser.js +0 -980
  185. package/bin/node_modules/yaml/dist/public-api.d.ts +0 -44
  186. package/bin/node_modules/yaml/dist/public-api.js +0 -107
  187. package/bin/node_modules/yaml/dist/schema/Schema.d.ts +0 -17
  188. package/bin/node_modules/yaml/dist/schema/Schema.js +0 -39
  189. package/bin/node_modules/yaml/dist/schema/common/map.d.ts +0 -2
  190. package/bin/node_modules/yaml/dist/schema/common/map.js +0 -19
  191. package/bin/node_modules/yaml/dist/schema/common/null.d.ts +0 -4
  192. package/bin/node_modules/yaml/dist/schema/common/null.js +0 -17
  193. package/bin/node_modules/yaml/dist/schema/common/seq.d.ts +0 -2
  194. package/bin/node_modules/yaml/dist/schema/common/seq.js +0 -19
  195. package/bin/node_modules/yaml/dist/schema/common/string.d.ts +0 -2
  196. package/bin/node_modules/yaml/dist/schema/common/string.js +0 -16
  197. package/bin/node_modules/yaml/dist/schema/core/bool.d.ts +0 -4
  198. package/bin/node_modules/yaml/dist/schema/core/bool.js +0 -21
  199. package/bin/node_modules/yaml/dist/schema/core/float.d.ts +0 -4
  200. package/bin/node_modules/yaml/dist/schema/core/float.js +0 -47
  201. package/bin/node_modules/yaml/dist/schema/core/int.d.ts +0 -4
  202. package/bin/node_modules/yaml/dist/schema/core/int.js +0 -42
  203. package/bin/node_modules/yaml/dist/schema/core/schema.d.ts +0 -1
  204. package/bin/node_modules/yaml/dist/schema/core/schema.js +0 -25
  205. package/bin/node_modules/yaml/dist/schema/json/schema.d.ts +0 -2
  206. package/bin/node_modules/yaml/dist/schema/json/schema.js +0 -64
  207. package/bin/node_modules/yaml/dist/schema/json-schema.d.ts +0 -69
  208. package/bin/node_modules/yaml/dist/schema/tags.d.ts +0 -48
  209. package/bin/node_modules/yaml/dist/schema/tags.js +0 -99
  210. package/bin/node_modules/yaml/dist/schema/types.d.ts +0 -92
  211. package/bin/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +0 -2
  212. package/bin/node_modules/yaml/dist/schema/yaml-1.1/binary.js +0 -70
  213. package/bin/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +0 -7
  214. package/bin/node_modules/yaml/dist/schema/yaml-1.1/bool.js +0 -29
  215. package/bin/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +0 -4
  216. package/bin/node_modules/yaml/dist/schema/yaml-1.1/float.js +0 -50
  217. package/bin/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +0 -5
  218. package/bin/node_modules/yaml/dist/schema/yaml-1.1/int.js +0 -76
  219. package/bin/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +0 -9
  220. package/bin/node_modules/yaml/dist/schema/yaml-1.1/merge.js +0 -71
  221. package/bin/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +0 -22
  222. package/bin/node_modules/yaml/dist/schema/yaml-1.1/omap.js +0 -77
  223. package/bin/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +0 -10
  224. package/bin/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +0 -82
  225. package/bin/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +0 -1
  226. package/bin/node_modules/yaml/dist/schema/yaml-1.1/schema.js +0 -41
  227. package/bin/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +0 -28
  228. package/bin/node_modules/yaml/dist/schema/yaml-1.1/set.js +0 -96
  229. package/bin/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +0 -6
  230. package/bin/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +0 -105
  231. package/bin/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +0 -34
  232. package/bin/node_modules/yaml/dist/stringify/foldFlowLines.js +0 -151
  233. package/bin/node_modules/yaml/dist/stringify/stringify.d.ts +0 -21
  234. package/bin/node_modules/yaml/dist/stringify/stringify.js +0 -132
  235. package/bin/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +0 -17
  236. package/bin/node_modules/yaml/dist/stringify/stringifyCollection.js +0 -155
  237. package/bin/node_modules/yaml/dist/stringify/stringifyComment.d.ts +0 -10
  238. package/bin/node_modules/yaml/dist/stringify/stringifyComment.js +0 -24
  239. package/bin/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +0 -4
  240. package/bin/node_modules/yaml/dist/stringify/stringifyDocument.js +0 -87
  241. package/bin/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +0 -2
  242. package/bin/node_modules/yaml/dist/stringify/stringifyNumber.js +0 -27
  243. package/bin/node_modules/yaml/dist/stringify/stringifyPair.d.ts +0 -3
  244. package/bin/node_modules/yaml/dist/stringify/stringifyPair.js +0 -152
  245. package/bin/node_modules/yaml/dist/stringify/stringifyString.d.ts +0 -9
  246. package/bin/node_modules/yaml/dist/stringify/stringifyString.js +0 -338
  247. package/bin/node_modules/yaml/dist/test-events.d.ts +0 -4
  248. package/bin/node_modules/yaml/dist/test-events.js +0 -134
  249. package/bin/node_modules/yaml/dist/util.d.ts +0 -16
  250. package/bin/node_modules/yaml/dist/util.js +0 -28
  251. package/bin/node_modules/yaml/dist/visit.d.ts +0 -102
  252. package/bin/node_modules/yaml/dist/visit.js +0 -236
  253. package/bin/node_modules/yaml/package.json +0 -97
  254. package/bin/node_modules/yaml/util.js +0 -2
@@ -1,562 +0,0 @@
1
- import { n as __require, t as __commonJSMin } from "../../rolldown-runtime.mjs";
2
- var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3
- var s = 1e3;
4
- var m = s * 60;
5
- var h = m * 60;
6
- var d = h * 24;
7
- var w = d * 7;
8
- var y = d * 365.25;
9
- module.exports = function(val, options) {
10
- options = options || {};
11
- var type = typeof val;
12
- if (type === "string" && val.length > 0) return parse(val);
13
- else if (type === "number" && isFinite(val)) return options.long ? fmtLong(val) : fmtShort(val);
14
- throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
15
- };
16
- function parse(str) {
17
- str = String(str);
18
- if (str.length > 100) return;
19
- 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(str);
20
- if (!match) return;
21
- var n = parseFloat(match[1]);
22
- switch ((match[2] || "ms").toLowerCase()) {
23
- case "years":
24
- case "year":
25
- case "yrs":
26
- case "yr":
27
- case "y": return n * y;
28
- case "weeks":
29
- case "week":
30
- case "w": return n * w;
31
- case "days":
32
- case "day":
33
- case "d": return n * d;
34
- case "hours":
35
- case "hour":
36
- case "hrs":
37
- case "hr":
38
- case "h": return n * h;
39
- case "minutes":
40
- case "minute":
41
- case "mins":
42
- case "min":
43
- case "m": return n * m;
44
- case "seconds":
45
- case "second":
46
- case "secs":
47
- case "sec":
48
- case "s": return n * s;
49
- case "milliseconds":
50
- case "millisecond":
51
- case "msecs":
52
- case "msec":
53
- case "ms": return n;
54
- default: return;
55
- }
56
- }
57
- function fmtShort(ms) {
58
- var msAbs = Math.abs(ms);
59
- if (msAbs >= d) return Math.round(ms / d) + "d";
60
- if (msAbs >= h) return Math.round(ms / h) + "h";
61
- if (msAbs >= m) return Math.round(ms / m) + "m";
62
- if (msAbs >= s) return Math.round(ms / s) + "s";
63
- return ms + "ms";
64
- }
65
- function fmtLong(ms) {
66
- var msAbs = Math.abs(ms);
67
- if (msAbs >= d) return plural(ms, msAbs, d, "day");
68
- if (msAbs >= h) return plural(ms, msAbs, h, "hour");
69
- if (msAbs >= m) return plural(ms, msAbs, m, "minute");
70
- if (msAbs >= s) return plural(ms, msAbs, s, "second");
71
- return ms + " ms";
72
- }
73
- function plural(ms, msAbs, n, name) {
74
- var isPlural = msAbs >= n * 1.5;
75
- return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
76
- }
77
- }));
78
- var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
79
- function setup(env) {
80
- createDebug.debug = createDebug;
81
- createDebug.default = createDebug;
82
- createDebug.coerce = coerce;
83
- createDebug.disable = disable;
84
- createDebug.enable = enable;
85
- createDebug.enabled = enabled;
86
- createDebug.humanize = require_ms();
87
- createDebug.destroy = destroy;
88
- Object.keys(env).forEach((key) => {
89
- createDebug[key] = env[key];
90
- });
91
- createDebug.names = [];
92
- createDebug.skips = [];
93
- createDebug.formatters = {};
94
- function selectColor(namespace) {
95
- let hash = 0;
96
- for (let i = 0; i < namespace.length; i++) {
97
- hash = (hash << 5) - hash + namespace.charCodeAt(i);
98
- hash |= 0;
99
- }
100
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
101
- }
102
- createDebug.selectColor = selectColor;
103
- function createDebug(namespace) {
104
- let prevTime;
105
- let enableOverride = null;
106
- let namespacesCache;
107
- let enabledCache;
108
- function debug(...args) {
109
- if (!debug.enabled) return;
110
- const self = debug;
111
- const curr = Number(/* @__PURE__ */ new Date());
112
- self.diff = curr - (prevTime || curr);
113
- self.prev = prevTime;
114
- self.curr = curr;
115
- prevTime = curr;
116
- args[0] = createDebug.coerce(args[0]);
117
- if (typeof args[0] !== "string") args.unshift("%O");
118
- let index = 0;
119
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
120
- if (match === "%%") return "%";
121
- index++;
122
- const formatter = createDebug.formatters[format];
123
- if (typeof formatter === "function") {
124
- const val = args[index];
125
- match = formatter.call(self, val);
126
- args.splice(index, 1);
127
- index--;
128
- }
129
- return match;
130
- });
131
- createDebug.formatArgs.call(self, args);
132
- (self.log || createDebug.log).apply(self, args);
133
- }
134
- debug.namespace = namespace;
135
- debug.useColors = createDebug.useColors();
136
- debug.color = createDebug.selectColor(namespace);
137
- debug.extend = extend;
138
- debug.destroy = createDebug.destroy;
139
- Object.defineProperty(debug, "enabled", {
140
- enumerable: true,
141
- configurable: false,
142
- get: () => {
143
- if (enableOverride !== null) return enableOverride;
144
- if (namespacesCache !== createDebug.namespaces) {
145
- namespacesCache = createDebug.namespaces;
146
- enabledCache = createDebug.enabled(namespace);
147
- }
148
- return enabledCache;
149
- },
150
- set: (v) => {
151
- enableOverride = v;
152
- }
153
- });
154
- if (typeof createDebug.init === "function") createDebug.init(debug);
155
- return debug;
156
- }
157
- function extend(namespace, delimiter) {
158
- const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
159
- newDebug.log = this.log;
160
- return newDebug;
161
- }
162
- function enable(namespaces) {
163
- createDebug.save(namespaces);
164
- createDebug.namespaces = namespaces;
165
- createDebug.names = [];
166
- createDebug.skips = [];
167
- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
168
- for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
169
- else createDebug.names.push(ns);
170
- }
171
- function matchesTemplate(search, template) {
172
- let searchIndex = 0;
173
- let templateIndex = 0;
174
- let starIndex = -1;
175
- let matchIndex = 0;
176
- while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
177
- starIndex = templateIndex;
178
- matchIndex = searchIndex;
179
- templateIndex++;
180
- } else {
181
- searchIndex++;
182
- templateIndex++;
183
- }
184
- else if (starIndex !== -1) {
185
- templateIndex = starIndex + 1;
186
- matchIndex++;
187
- searchIndex = matchIndex;
188
- } else return false;
189
- while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
190
- return templateIndex === template.length;
191
- }
192
- function disable() {
193
- const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
194
- createDebug.enable("");
195
- return namespaces;
196
- }
197
- function enabled(name) {
198
- for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
199
- for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
200
- return false;
201
- }
202
- function coerce(val) {
203
- if (val instanceof Error) return val.stack || val.message;
204
- return val;
205
- }
206
- function destroy() {
207
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
208
- }
209
- createDebug.enable(createDebug.load());
210
- return createDebug;
211
- }
212
- module.exports = setup;
213
- }));
214
- var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
215
- exports.formatArgs = formatArgs;
216
- exports.save = save;
217
- exports.load = load;
218
- exports.useColors = useColors;
219
- exports.storage = localstorage();
220
- exports.destroy = (() => {
221
- let warned = false;
222
- return () => {
223
- if (!warned) {
224
- warned = true;
225
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
226
- }
227
- };
228
- })();
229
- exports.colors = [
230
- "#0000CC",
231
- "#0000FF",
232
- "#0033CC",
233
- "#0033FF",
234
- "#0066CC",
235
- "#0066FF",
236
- "#0099CC",
237
- "#0099FF",
238
- "#00CC00",
239
- "#00CC33",
240
- "#00CC66",
241
- "#00CC99",
242
- "#00CCCC",
243
- "#00CCFF",
244
- "#3300CC",
245
- "#3300FF",
246
- "#3333CC",
247
- "#3333FF",
248
- "#3366CC",
249
- "#3366FF",
250
- "#3399CC",
251
- "#3399FF",
252
- "#33CC00",
253
- "#33CC33",
254
- "#33CC66",
255
- "#33CC99",
256
- "#33CCCC",
257
- "#33CCFF",
258
- "#6600CC",
259
- "#6600FF",
260
- "#6633CC",
261
- "#6633FF",
262
- "#66CC00",
263
- "#66CC33",
264
- "#9900CC",
265
- "#9900FF",
266
- "#9933CC",
267
- "#9933FF",
268
- "#99CC00",
269
- "#99CC33",
270
- "#CC0000",
271
- "#CC0033",
272
- "#CC0066",
273
- "#CC0099",
274
- "#CC00CC",
275
- "#CC00FF",
276
- "#CC3300",
277
- "#CC3333",
278
- "#CC3366",
279
- "#CC3399",
280
- "#CC33CC",
281
- "#CC33FF",
282
- "#CC6600",
283
- "#CC6633",
284
- "#CC9900",
285
- "#CC9933",
286
- "#CCCC00",
287
- "#CCCC33",
288
- "#FF0000",
289
- "#FF0033",
290
- "#FF0066",
291
- "#FF0099",
292
- "#FF00CC",
293
- "#FF00FF",
294
- "#FF3300",
295
- "#FF3333",
296
- "#FF3366",
297
- "#FF3399",
298
- "#FF33CC",
299
- "#FF33FF",
300
- "#FF6600",
301
- "#FF6633",
302
- "#FF9900",
303
- "#FF9933",
304
- "#FFCC00",
305
- "#FFCC33"
306
- ];
307
- function useColors() {
308
- if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
309
- if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
310
- let m;
311
- 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 && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
312
- }
313
- function formatArgs(args) {
314
- args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
315
- if (!this.useColors) return;
316
- const c = "color: " + this.color;
317
- args.splice(1, 0, c, "color: inherit");
318
- let index = 0;
319
- let lastC = 0;
320
- args[0].replace(/%[a-zA-Z%]/g, (match) => {
321
- if (match === "%%") return;
322
- index++;
323
- if (match === "%c") lastC = index;
324
- });
325
- args.splice(lastC, 0, c);
326
- }
327
- exports.log = console.debug || console.log || (() => {});
328
- function save(namespaces) {
329
- try {
330
- if (namespaces) exports.storage.setItem("debug", namespaces);
331
- else exports.storage.removeItem("debug");
332
- } catch (error) {}
333
- }
334
- function load() {
335
- let r;
336
- try {
337
- r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
338
- } catch (error) {}
339
- if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
340
- return r;
341
- }
342
- function localstorage() {
343
- try {
344
- return localStorage;
345
- } catch (error) {}
346
- }
347
- module.exports = require_common()(exports);
348
- const { formatters } = module.exports;
349
- formatters.j = function(v) {
350
- try {
351
- return JSON.stringify(v);
352
- } catch (error) {
353
- return "[UnexpectedJSONParseError]: " + error.message;
354
- }
355
- };
356
- }));
357
- var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
358
- const tty = __require("tty");
359
- const util = __require("util");
360
- exports.init = init;
361
- exports.log = log;
362
- exports.formatArgs = formatArgs;
363
- exports.save = save;
364
- exports.load = load;
365
- exports.useColors = useColors;
366
- exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
367
- exports.colors = [
368
- 6,
369
- 2,
370
- 3,
371
- 4,
372
- 5,
373
- 1
374
- ];
375
- try {
376
- const supportsColor = __require("supports-color");
377
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
378
- 20,
379
- 21,
380
- 26,
381
- 27,
382
- 32,
383
- 33,
384
- 38,
385
- 39,
386
- 40,
387
- 41,
388
- 42,
389
- 43,
390
- 44,
391
- 45,
392
- 56,
393
- 57,
394
- 62,
395
- 63,
396
- 68,
397
- 69,
398
- 74,
399
- 75,
400
- 76,
401
- 77,
402
- 78,
403
- 79,
404
- 80,
405
- 81,
406
- 92,
407
- 93,
408
- 98,
409
- 99,
410
- 112,
411
- 113,
412
- 128,
413
- 129,
414
- 134,
415
- 135,
416
- 148,
417
- 149,
418
- 160,
419
- 161,
420
- 162,
421
- 163,
422
- 164,
423
- 165,
424
- 166,
425
- 167,
426
- 168,
427
- 169,
428
- 170,
429
- 171,
430
- 172,
431
- 173,
432
- 178,
433
- 179,
434
- 184,
435
- 185,
436
- 196,
437
- 197,
438
- 198,
439
- 199,
440
- 200,
441
- 201,
442
- 202,
443
- 203,
444
- 204,
445
- 205,
446
- 206,
447
- 207,
448
- 208,
449
- 209,
450
- 214,
451
- 215,
452
- 220,
453
- 221
454
- ];
455
- } catch (error) {}
456
- exports.inspectOpts = Object.keys(process.env).filter((key) => {
457
- return /^debug_/i.test(key);
458
- }).reduce((obj, key) => {
459
- const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
460
- return k.toUpperCase();
461
- });
462
- let val = process.env[key];
463
- if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
464
- else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
465
- else if (val === "null") val = null;
466
- else val = Number(val);
467
- obj[prop] = val;
468
- return obj;
469
- }, {});
470
- function useColors() {
471
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
472
- }
473
- function formatArgs(args) {
474
- const { namespace: name, useColors } = this;
475
- if (useColors) {
476
- const c = this.color;
477
- const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
478
- const prefix = ` ${colorCode};1m${name} \u001B[0m`;
479
- args[0] = prefix + args[0].split("\n").join("\n" + prefix);
480
- args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
481
- } else args[0] = getDate() + name + " " + args[0];
482
- }
483
- function getDate() {
484
- if (exports.inspectOpts.hideDate) return "";
485
- return (/* @__PURE__ */ new Date()).toISOString() + " ";
486
- }
487
- function log(...args) {
488
- return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
489
- }
490
- function save(namespaces) {
491
- if (namespaces) process.env.DEBUG = namespaces;
492
- else delete process.env.DEBUG;
493
- }
494
- function load() {
495
- return process.env.DEBUG;
496
- }
497
- function init(debug) {
498
- debug.inspectOpts = {};
499
- const keys = Object.keys(exports.inspectOpts);
500
- for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
501
- }
502
- module.exports = require_common()(exports);
503
- const { formatters } = module.exports;
504
- formatters.o = function(v) {
505
- this.inspectOpts.colors = this.useColors;
506
- return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
507
- };
508
- formatters.O = function(v) {
509
- this.inspectOpts.colors = this.useColors;
510
- return util.inspect(v, this.inspectOpts);
511
- };
512
- }));
513
- var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
514
- if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
515
- else module.exports = require_node();
516
- }));
517
- var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
518
- var __importDefault = exports && exports.__importDefault || function(mod) {
519
- return mod && mod.__esModule ? mod : { "default": mod };
520
- };
521
- Object.defineProperty(exports, "__esModule", { value: true });
522
- const fs_1 = __require("fs");
523
- const log = __importDefault(require_src$1()).default("@kwsites/file-exists");
524
- function check(path, isFile, isDirectory) {
525
- log(`checking %s`, path);
526
- try {
527
- const stat = fs_1.statSync(path);
528
- if (stat.isFile() && isFile) {
529
- log(`[OK] path represents a file`);
530
- return true;
531
- }
532
- if (stat.isDirectory() && isDirectory) {
533
- log(`[OK] path represents a directory`);
534
- return true;
535
- }
536
- log(`[FAIL] path represents something other than a file or directory`);
537
- return false;
538
- } catch (e) {
539
- if (e.code === "ENOENT") {
540
- log(`[FAIL] path is not accessible: %o`, e);
541
- return false;
542
- }
543
- log(`[FATAL] %o`, e);
544
- throw e;
545
- }
546
- }
547
- function exists(path, type = exports.READABLE) {
548
- return check(path, (type & exports.FILE) > 0, (type & exports.FOLDER) > 0);
549
- }
550
- exports.exists = exists;
551
- exports.FILE = 1;
552
- exports.FOLDER = 2;
553
- exports.READABLE = exports.FILE + exports.FOLDER;
554
- }));
555
- var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
556
- function __export(m) {
557
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
558
- }
559
- Object.defineProperty(exports, "__esModule", { value: true });
560
- __export(require_src());
561
- }));
562
- export { require_src$1 as n, require_dist as t };
@@ -1,37 +0,0 @@
1
- import { t as __commonJSMin } from "../../rolldown-runtime.mjs";
2
- var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.createDeferred = exports.deferred = void 0;
5
- function deferred() {
6
- let done;
7
- let fail;
8
- let status = "pending";
9
- return {
10
- promise: new Promise((_done, _fail) => {
11
- done = _done;
12
- fail = _fail;
13
- }),
14
- done(result) {
15
- if (status === "pending") {
16
- status = "resolved";
17
- done(result);
18
- }
19
- },
20
- fail(error) {
21
- if (status === "pending") {
22
- status = "rejected";
23
- fail(error);
24
- }
25
- },
26
- get fulfilled() {
27
- return status !== "pending";
28
- },
29
- get status() {
30
- return status;
31
- }
32
- };
33
- }
34
- exports.deferred = deferred;
35
- exports.createDeferred = deferred;
36
- }));
37
- export { require_dist as t };