storybook 10.1.0-alpha.8 → 10.1.0-beta.0

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 (198) 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-FDWKXLBI.js → chunk-2XZMBGTA.js} +44 -109
  5. package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
  6. package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
  7. package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
  8. package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
  9. package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
  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-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
  15. package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
  16. package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
  17. package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
  18. package/dist/_browser-chunks/chunk-FQ7SLVLR.js +66 -0
  19. package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
  20. package/dist/_browser-chunks/chunk-GFY5R5EY.js +47 -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-OWPZQM2D.js → chunk-L4RMQ7D7.js} +60 -110
  26. package/dist/_browser-chunks/chunk-P4F4UVXX.js +951 -0
  27. package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
  28. package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
  29. package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
  30. package/dist/_browser-chunks/chunk-SS2NHR7W.js +2969 -0
  31. package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
  32. package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
  33. package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -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-CAVLW7PM.js → syntaxhighlighter-IQDEPFLK.js} +704 -1848
  39. package/dist/_node-chunks/{builder-manager-57OYTFQ5.js → builder-manager-BDAQHXFI.js} +510 -1019
  40. package/dist/_node-chunks/camelcase-3C7DZZPX.js +37 -0
  41. package/dist/_node-chunks/chunk-2IIQTGNE.js +6024 -0
  42. package/dist/_node-chunks/chunk-56U5LEMP.js +3043 -0
  43. package/dist/_node-chunks/chunk-7LIRCAQE.js +20 -0
  44. package/dist/_node-chunks/chunk-7RN6TXKP.js +603 -0
  45. package/dist/_node-chunks/chunk-7SJ7PZNL.js +4523 -0
  46. package/dist/_node-chunks/{chunk-2GK7NW46.js → chunk-BG4RDXG7.js} +8 -10
  47. package/dist/_node-chunks/chunk-CBQKMXLQ.js +18 -0
  48. package/dist/_node-chunks/chunk-CN2IW2KQ.js +1564 -0
  49. package/dist/_node-chunks/chunk-CQMAU6UQ.js +943 -0
  50. package/dist/_node-chunks/{chunk-RG4Z25PY.js → chunk-D6ND3TVY.js} +116 -276
  51. package/dist/_node-chunks/chunk-DC355CYB.js +61 -0
  52. package/dist/_node-chunks/{chunk-EBYCXVVR.js → chunk-EVK2SBW5.js} +292 -688
  53. package/dist/_node-chunks/chunk-IXWEUXJ2.js +119 -0
  54. package/dist/_node-chunks/{chunk-6F6CCOXH.js → chunk-KVRF22SH.js} +469 -983
  55. package/dist/_node-chunks/chunk-LEDP4QQW.js +919 -0
  56. package/dist/_node-chunks/{chunk-C4KEDJ6O.js → chunk-MMVV6DGG.js} +8133 -8887
  57. package/dist/_node-chunks/chunk-O5CGEVRI.js +29 -0
  58. package/dist/_node-chunks/chunk-OZZO56XN.js +299 -0
  59. package/dist/_node-chunks/chunk-POT2EVGD.js +78 -0
  60. package/dist/_node-chunks/chunk-R5YGFSTV.js +3781 -0
  61. package/dist/_node-chunks/chunk-SQCTM2OS.js +23 -0
  62. package/dist/_node-chunks/chunk-UFOFO5H7.js +54 -0
  63. package/dist/_node-chunks/chunk-VBF7ALJF.js +72 -0
  64. package/dist/_node-chunks/chunk-W6MAMTUF.js +70 -0
  65. package/dist/_node-chunks/chunk-WURL4XOT.js +46662 -0
  66. package/dist/_node-chunks/chunk-XGK6MVKR.js +61 -0
  67. package/dist/_node-chunks/chunk-YV3GDSDT.js +765 -0
  68. package/dist/_node-chunks/{chunk-RSHLCHYY.js → chunk-YWV55YW3.js} +15 -24
  69. package/dist/_node-chunks/dist-KEP4IFRN.js +121 -0
  70. package/dist/_node-chunks/globby-4WUBTDCN.js +3452 -0
  71. package/dist/_node-chunks/lib-JVOEKTYM.js +366 -0
  72. package/dist/_node-chunks/mdx-N42X6CFJ-C5WFYYXR.js +14329 -0
  73. package/dist/_node-chunks/p-limit-LDY632RS.js +116 -0
  74. package/dist/actions/decorator.js +21 -42
  75. package/dist/actions/index.js +3 -3
  76. package/dist/babel/index.d.ts +671 -335
  77. package/dist/babel/index.js +10 -11
  78. package/dist/bin/core.js +601 -1548
  79. package/dist/bin/dispatcher.js +36 -36
  80. package/dist/bin/loader.js +24 -38
  81. package/dist/channels/index.js +98 -234
  82. package/dist/cli/index.d.ts +1479 -133
  83. package/dist/cli/index.js +30 -8540
  84. package/dist/client-logger/index.js +31 -61
  85. package/dist/common/index.d.ts +139 -62
  86. package/dist/common/index.js +66 -51
  87. package/dist/components/index.d.ts +575 -273
  88. package/dist/components/index.js +14863 -4313
  89. package/dist/core-events/index.js +2 -66
  90. package/dist/core-server/index.d.ts +3 -2
  91. package/dist/core-server/index.js +2910 -8519
  92. package/dist/core-server/presets/common-manager.css +2 -2
  93. package/dist/core-server/presets/common-manager.js +2521 -5233
  94. package/dist/core-server/presets/common-override-preset.js +31 -60
  95. package/dist/core-server/presets/common-preset.js +663 -962
  96. package/dist/csf/index.js +534 -1179
  97. package/dist/csf-tools/index.js +9 -9
  98. package/dist/docs-tools/index.js +6 -6
  99. package/dist/highlight/index.js +2 -2
  100. package/dist/instrumenter/index.js +199 -415
  101. package/dist/manager/globals-runtime.js +59044 -67141
  102. package/dist/manager/globals.js +2 -3
  103. package/dist/manager/manager-stores.d.ts +1 -0
  104. package/dist/manager/manager-stores.js +23 -0
  105. package/dist/manager/runtime.js +11511 -10953
  106. package/dist/manager-api/index.d.ts +1811 -2
  107. package/dist/manager-api/index.js +1348 -2401
  108. package/dist/manager-errors.d.ts +9 -0
  109. package/dist/manager-errors.js +3 -3
  110. package/dist/mocking-utils/index.d.ts +1126 -0
  111. package/dist/mocking-utils/index.js +1181 -0
  112. package/dist/node-logger/index.d.ts +192 -24
  113. package/dist/node-logger/index.js +23 -4471
  114. package/dist/preview/globals.js +2 -3
  115. package/dist/preview/runtime.js +10799 -22393
  116. package/dist/preview-api/index.d.ts +1 -1
  117. package/dist/preview-api/index.js +13 -13
  118. package/dist/preview-errors.d.ts +9 -0
  119. package/dist/preview-errors.js +4 -4
  120. package/dist/router/index.js +347 -899
  121. package/dist/server-errors.d.ts +34 -1
  122. package/dist/server-errors.js +17 -10
  123. package/dist/telemetry/index.d.ts +24 -3
  124. package/dist/telemetry/index.js +25 -24
  125. package/dist/test/index.js +6131 -11916
  126. package/dist/theming/create.d.ts +1 -0
  127. package/dist/theming/create.js +4 -4
  128. package/dist/theming/index.d.ts +3366 -2599
  129. package/dist/theming/index.js +501 -1091
  130. package/dist/types/index.d.ts +72 -8
  131. package/dist/types/index.js +27 -12
  132. package/dist/viewport/index.js +3 -3
  133. package/package.json +26 -17
  134. package/dist/_browser-chunks/Color-7ZNS6F6B.js +0 -1676
  135. package/dist/_browser-chunks/WithTooltip-SK46ZJ2J.js +0 -13
  136. package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
  137. package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
  138. package/dist/_browser-chunks/chunk-BOOOPFZF.js +0 -2335
  139. package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
  140. package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
  141. package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
  142. package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
  143. package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
  144. package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
  145. package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
  146. package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
  147. package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
  148. package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
  149. package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
  150. package/dist/_browser-chunks/chunk-RNE2IUTB.js +0 -1300
  151. package/dist/_browser-chunks/chunk-RW5PKMWM.js +0 -4182
  152. package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
  153. package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
  154. package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
  155. package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
  156. package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
  157. package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
  158. package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
  159. package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
  160. package/dist/_node-chunks/camelcase-2KEDZHZ2.js +0 -18
  161. package/dist/_node-chunks/chunk-34NNXTBR.js +0 -28
  162. package/dist/_node-chunks/chunk-3N2A3KZX.js +0 -420
  163. package/dist/_node-chunks/chunk-5P7P5KDN.js +0 -90
  164. package/dist/_node-chunks/chunk-5WBRBDXI.js +0 -79
  165. package/dist/_node-chunks/chunk-7PWTU7T2.js +0 -697
  166. package/dist/_node-chunks/chunk-CHRHQ7AZ.js +0 -4272
  167. package/dist/_node-chunks/chunk-D4EGQLJI.js +0 -64656
  168. package/dist/_node-chunks/chunk-EKCURTKU.js +0 -1544
  169. package/dist/_node-chunks/chunk-GBVPPW4H.js +0 -1657
  170. package/dist/_node-chunks/chunk-J6VOKT2F.js +0 -220
  171. package/dist/_node-chunks/chunk-JLBYSGXS.js +0 -69
  172. package/dist/_node-chunks/chunk-LLCELSUL.js +0 -1198
  173. package/dist/_node-chunks/chunk-NS4OCQ4F.js +0 -61
  174. package/dist/_node-chunks/chunk-NXVLFYDR.js +0 -1518
  175. package/dist/_node-chunks/chunk-NZPWAJOZ.js +0 -304
  176. package/dist/_node-chunks/chunk-OYFSIV3I.js +0 -6712
  177. package/dist/_node-chunks/chunk-OZ43LMDF.js +0 -5029
  178. package/dist/_node-chunks/chunk-Q5HJHFF2.js +0 -61
  179. package/dist/_node-chunks/chunk-QHER4CEN.js +0 -34
  180. package/dist/_node-chunks/chunk-RF2PJM54.js +0 -1531
  181. package/dist/_node-chunks/chunk-S3OHGEE3.js +0 -101
  182. package/dist/_node-chunks/chunk-S5XOMVSV.js +0 -2256
  183. package/dist/_node-chunks/chunk-SGXQZ47H.js +0 -1586
  184. package/dist/_node-chunks/chunk-TDU6OVUH.js +0 -111
  185. package/dist/_node-chunks/chunk-TYQQFNQX.js +0 -1250
  186. package/dist/_node-chunks/chunk-WNGLARN2.js +0 -4741
  187. package/dist/_node-chunks/chunk-YUOVDCXL.js +0 -18
  188. package/dist/_node-chunks/dist-O5FB7YUW.js +0 -175
  189. package/dist/_node-chunks/globby-3NMV7WHX.js +0 -5222
  190. package/dist/_node-chunks/lib-VZD7BRSA.js +0 -518
  191. package/dist/_node-chunks/mdx-N42X6CFJ-3RP7RKKU.js +0 -22017
  192. package/dist/_node-chunks/p-limit-LIKBTXEJ.js +0 -168
  193. package/dist/_node-chunks/plugin-2NYZBK4A.js +0 -129
  194. package/dist/_node-chunks/plugin-6QGMO7J7.js +0 -159
  195. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-Z2JI6J2H.js +0 -69102
  196. package/dist/_node-chunks/webpack-mock-plugin-D4BE2SSI.js +0 -124
  197. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +0 -36
  198. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +0 -33
@@ -0,0 +1,943 @@
1
+ import CJS_COMPAT_NODE_URL_hjmvusgt1gv from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjmvusgt1gv from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjmvusgt1gv from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_hjmvusgt1gv.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjmvusgt1gv.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjmvusgt1gv.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ __commonJS,
14
+ __require
15
+ } from "./chunk-UFOFO5H7.js";
16
+
17
+ // ../node_modules/picomatch/lib/constants.js
18
+ var require_constants = __commonJS({
19
+ "../node_modules/picomatch/lib/constants.js"(exports, module) {
20
+ "use strict";
21
+ var path = __require("path"), WIN_SLASH = "\\\\/", WIN_NO_SLASH = `[^${WIN_SLASH}]`, DOT_LITERAL = "\\.", PLUS_LITERAL = "\\+", QMARK_LITERAL = "\\?", SLASH_LITERAL = "\\/", ONE_CHAR = "(?=.)", QMARK = "[^/]", END_ANCHOR = `(?:${SLASH_LITERAL}|$)`, START_ANCHOR = `(?:^|${SLASH_LITERAL})`, DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`, NO_DOT = `(?!${DOT_LITERAL})`, NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`, NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`, NO_DOTS_SLASH = `(?!${DOTS_SLASH})`, QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`, STAR = `${QMARK}*?`, POSIX_CHARS = {
22
+ DOT_LITERAL,
23
+ PLUS_LITERAL,
24
+ QMARK_LITERAL,
25
+ SLASH_LITERAL,
26
+ ONE_CHAR,
27
+ QMARK,
28
+ END_ANCHOR,
29
+ DOTS_SLASH,
30
+ NO_DOT,
31
+ NO_DOTS,
32
+ NO_DOT_SLASH,
33
+ NO_DOTS_SLASH,
34
+ QMARK_NO_DOT,
35
+ STAR,
36
+ START_ANCHOR
37
+ }, WINDOWS_CHARS = {
38
+ ...POSIX_CHARS,
39
+ SLASH_LITERAL: `[${WIN_SLASH}]`,
40
+ QMARK: WIN_NO_SLASH,
41
+ STAR: `${WIN_NO_SLASH}*?`,
42
+ DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
43
+ NO_DOT: `(?!${DOT_LITERAL})`,
44
+ NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
45
+ NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
46
+ NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
47
+ QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
48
+ START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
49
+ END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
50
+ }, POSIX_REGEX_SOURCE = {
51
+ alnum: "a-zA-Z0-9",
52
+ alpha: "a-zA-Z",
53
+ ascii: "\\x00-\\x7F",
54
+ blank: " \\t",
55
+ cntrl: "\\x00-\\x1F\\x7F",
56
+ digit: "0-9",
57
+ graph: "\\x21-\\x7E",
58
+ lower: "a-z",
59
+ print: "\\x20-\\x7E ",
60
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
61
+ space: " \\t\\r\\n\\v\\f",
62
+ upper: "A-Z",
63
+ word: "A-Za-z0-9_",
64
+ xdigit: "A-Fa-f0-9"
65
+ };
66
+ module.exports = {
67
+ MAX_LENGTH: 1024 * 64,
68
+ POSIX_REGEX_SOURCE,
69
+ // regular expressions
70
+ REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
71
+ REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
72
+ REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
73
+ REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
74
+ REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
75
+ REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
76
+ // Replace globs with equivalent patterns to reduce parsing time.
77
+ REPLACEMENTS: {
78
+ "***": "*",
79
+ "**/**": "**",
80
+ "**/**/**": "**"
81
+ },
82
+ // Digits
83
+ CHAR_0: 48,
84
+ /* 0 */
85
+ CHAR_9: 57,
86
+ /* 9 */
87
+ // Alphabet chars.
88
+ CHAR_UPPERCASE_A: 65,
89
+ /* A */
90
+ CHAR_LOWERCASE_A: 97,
91
+ /* a */
92
+ CHAR_UPPERCASE_Z: 90,
93
+ /* Z */
94
+ CHAR_LOWERCASE_Z: 122,
95
+ /* z */
96
+ CHAR_LEFT_PARENTHESES: 40,
97
+ /* ( */
98
+ CHAR_RIGHT_PARENTHESES: 41,
99
+ /* ) */
100
+ CHAR_ASTERISK: 42,
101
+ /* * */
102
+ // Non-alphabetic chars.
103
+ CHAR_AMPERSAND: 38,
104
+ /* & */
105
+ CHAR_AT: 64,
106
+ /* @ */
107
+ CHAR_BACKWARD_SLASH: 92,
108
+ /* \ */
109
+ CHAR_CARRIAGE_RETURN: 13,
110
+ /* \r */
111
+ CHAR_CIRCUMFLEX_ACCENT: 94,
112
+ /* ^ */
113
+ CHAR_COLON: 58,
114
+ /* : */
115
+ CHAR_COMMA: 44,
116
+ /* , */
117
+ CHAR_DOT: 46,
118
+ /* . */
119
+ CHAR_DOUBLE_QUOTE: 34,
120
+ /* " */
121
+ CHAR_EQUAL: 61,
122
+ /* = */
123
+ CHAR_EXCLAMATION_MARK: 33,
124
+ /* ! */
125
+ CHAR_FORM_FEED: 12,
126
+ /* \f */
127
+ CHAR_FORWARD_SLASH: 47,
128
+ /* / */
129
+ CHAR_GRAVE_ACCENT: 96,
130
+ /* ` */
131
+ CHAR_HASH: 35,
132
+ /* # */
133
+ CHAR_HYPHEN_MINUS: 45,
134
+ /* - */
135
+ CHAR_LEFT_ANGLE_BRACKET: 60,
136
+ /* < */
137
+ CHAR_LEFT_CURLY_BRACE: 123,
138
+ /* { */
139
+ CHAR_LEFT_SQUARE_BRACKET: 91,
140
+ /* [ */
141
+ CHAR_LINE_FEED: 10,
142
+ /* \n */
143
+ CHAR_NO_BREAK_SPACE: 160,
144
+ /* \u00A0 */
145
+ CHAR_PERCENT: 37,
146
+ /* % */
147
+ CHAR_PLUS: 43,
148
+ /* + */
149
+ CHAR_QUESTION_MARK: 63,
150
+ /* ? */
151
+ CHAR_RIGHT_ANGLE_BRACKET: 62,
152
+ /* > */
153
+ CHAR_RIGHT_CURLY_BRACE: 125,
154
+ /* } */
155
+ CHAR_RIGHT_SQUARE_BRACKET: 93,
156
+ /* ] */
157
+ CHAR_SEMICOLON: 59,
158
+ /* ; */
159
+ CHAR_SINGLE_QUOTE: 39,
160
+ /* ' */
161
+ CHAR_SPACE: 32,
162
+ /* */
163
+ CHAR_TAB: 9,
164
+ /* \t */
165
+ CHAR_UNDERSCORE: 95,
166
+ /* _ */
167
+ CHAR_VERTICAL_LINE: 124,
168
+ /* | */
169
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
170
+ /* \uFEFF */
171
+ SEP: path.sep,
172
+ /**
173
+ * Create EXTGLOB_CHARS
174
+ */
175
+ extglobChars(chars) {
176
+ return {
177
+ "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` },
178
+ "?": { type: "qmark", open: "(?:", close: ")?" },
179
+ "+": { type: "plus", open: "(?:", close: ")+" },
180
+ "*": { type: "star", open: "(?:", close: ")*" },
181
+ "@": { type: "at", open: "(?:", close: ")" }
182
+ };
183
+ },
184
+ /**
185
+ * Create GLOB_CHARS
186
+ */
187
+ globChars(win32) {
188
+ return win32 === !0 ? WINDOWS_CHARS : POSIX_CHARS;
189
+ }
190
+ };
191
+ }
192
+ });
193
+
194
+ // ../node_modules/picomatch/lib/utils.js
195
+ var require_utils = __commonJS({
196
+ "../node_modules/picomatch/lib/utils.js"(exports) {
197
+ "use strict";
198
+ var path = __require("path"), win32 = process.platform === "win32", {
199
+ REGEX_BACKSLASH,
200
+ REGEX_REMOVE_BACKSLASH,
201
+ REGEX_SPECIAL_CHARS,
202
+ REGEX_SPECIAL_CHARS_GLOBAL
203
+ } = require_constants();
204
+ exports.isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val);
205
+ exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
206
+ exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
207
+ exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
208
+ exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
209
+ exports.removeBackslashes = (str) => str.replace(REGEX_REMOVE_BACKSLASH, (match) => match === "\\" ? "" : match);
210
+ exports.supportsLookbehinds = () => {
211
+ let segs = process.version.slice(1).split(".").map(Number);
212
+ return segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10;
213
+ };
214
+ exports.isWindows = (options) => options && typeof options.windows == "boolean" ? options.windows : win32 === !0 || path.sep === "\\";
215
+ exports.escapeLast = (input, char, lastIdx) => {
216
+ let idx = input.lastIndexOf(char, lastIdx);
217
+ return idx === -1 ? input : input[idx - 1] === "\\" ? exports.escapeLast(input, char, idx - 1) : `${input.slice(0, idx)}\\${input.slice(idx)}`;
218
+ };
219
+ exports.removePrefix = (input, state = {}) => {
220
+ let output = input;
221
+ return output.startsWith("./") && (output = output.slice(2), state.prefix = "./"), output;
222
+ };
223
+ exports.wrapOutput = (input, state = {}, options = {}) => {
224
+ let prepend = options.contains ? "" : "^", append = options.contains ? "" : "$", output = `${prepend}(?:${input})${append}`;
225
+ return state.negated === !0 && (output = `(?:^(?!${output}).*$)`), output;
226
+ };
227
+ }
228
+ });
229
+
230
+ // ../node_modules/picomatch/lib/scan.js
231
+ var require_scan = __commonJS({
232
+ "../node_modules/picomatch/lib/scan.js"(exports, module) {
233
+ "use strict";
234
+ var utils = require_utils(), {
235
+ CHAR_ASTERISK,
236
+ /* * */
237
+ CHAR_AT,
238
+ /* @ */
239
+ CHAR_BACKWARD_SLASH,
240
+ /* \ */
241
+ CHAR_COMMA,
242
+ /* , */
243
+ CHAR_DOT,
244
+ /* . */
245
+ CHAR_EXCLAMATION_MARK,
246
+ /* ! */
247
+ CHAR_FORWARD_SLASH,
248
+ /* / */
249
+ CHAR_LEFT_CURLY_BRACE,
250
+ /* { */
251
+ CHAR_LEFT_PARENTHESES,
252
+ /* ( */
253
+ CHAR_LEFT_SQUARE_BRACKET,
254
+ /* [ */
255
+ CHAR_PLUS,
256
+ /* + */
257
+ CHAR_QUESTION_MARK,
258
+ /* ? */
259
+ CHAR_RIGHT_CURLY_BRACE,
260
+ /* } */
261
+ CHAR_RIGHT_PARENTHESES,
262
+ /* ) */
263
+ CHAR_RIGHT_SQUARE_BRACKET
264
+ /* ] */
265
+ } = require_constants(), isPathSeparator = (code) => code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH, depth = (token) => {
266
+ token.isPrefix !== !0 && (token.depth = token.isGlobstar ? 1 / 0 : 1);
267
+ }, scan = (input, options) => {
268
+ let opts = options || {}, length = input.length - 1, scanToEnd = opts.parts === !0 || opts.scanToEnd === !0, slashes = [], tokens = [], parts = [], str = input, index = -1, start = 0, lastIndex = 0, isBrace = !1, isBracket = !1, isGlob = !1, isExtglob = !1, isGlobstar = !1, braceEscaped = !1, backslashes = !1, negated = !1, negatedExtglob = !1, finished = !1, braces = 0, prev, code, token = { value: "", depth: 0, isGlob: !1 }, eos = () => index >= length, peek = () => str.charCodeAt(index + 1), advance = () => (prev = code, str.charCodeAt(++index));
269
+ for (; index < length; ) {
270
+ code = advance();
271
+ let next;
272
+ if (code === CHAR_BACKWARD_SLASH) {
273
+ backslashes = token.backslashes = !0, code = advance(), code === CHAR_LEFT_CURLY_BRACE && (braceEscaped = !0);
274
+ continue;
275
+ }
276
+ if (braceEscaped === !0 || code === CHAR_LEFT_CURLY_BRACE) {
277
+ for (braces++; eos() !== !0 && (code = advance()); ) {
278
+ if (code === CHAR_BACKWARD_SLASH) {
279
+ backslashes = token.backslashes = !0, advance();
280
+ continue;
281
+ }
282
+ if (code === CHAR_LEFT_CURLY_BRACE) {
283
+ braces++;
284
+ continue;
285
+ }
286
+ if (braceEscaped !== !0 && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
287
+ if (isBrace = token.isBrace = !0, isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
288
+ continue;
289
+ break;
290
+ }
291
+ if (braceEscaped !== !0 && code === CHAR_COMMA) {
292
+ if (isBrace = token.isBrace = !0, isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
293
+ continue;
294
+ break;
295
+ }
296
+ if (code === CHAR_RIGHT_CURLY_BRACE && (braces--, braces === 0)) {
297
+ braceEscaped = !1, isBrace = token.isBrace = !0, finished = !0;
298
+ break;
299
+ }
300
+ }
301
+ if (scanToEnd === !0)
302
+ continue;
303
+ break;
304
+ }
305
+ if (code === CHAR_FORWARD_SLASH) {
306
+ if (slashes.push(index), tokens.push(token), token = { value: "", depth: 0, isGlob: !1 }, finished === !0) continue;
307
+ if (prev === CHAR_DOT && index === start + 1) {
308
+ start += 2;
309
+ continue;
310
+ }
311
+ lastIndex = index + 1;
312
+ continue;
313
+ }
314
+ if (opts.noext !== !0 && (code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK) === !0 && peek() === CHAR_LEFT_PARENTHESES) {
315
+ if (isGlob = token.isGlob = !0, isExtglob = token.isExtglob = !0, finished = !0, code === CHAR_EXCLAMATION_MARK && index === start && (negatedExtglob = !0), scanToEnd === !0) {
316
+ for (; eos() !== !0 && (code = advance()); ) {
317
+ if (code === CHAR_BACKWARD_SLASH) {
318
+ backslashes = token.backslashes = !0, code = advance();
319
+ continue;
320
+ }
321
+ if (code === CHAR_RIGHT_PARENTHESES) {
322
+ isGlob = token.isGlob = !0, finished = !0;
323
+ break;
324
+ }
325
+ }
326
+ continue;
327
+ }
328
+ break;
329
+ }
330
+ if (code === CHAR_ASTERISK) {
331
+ if (prev === CHAR_ASTERISK && (isGlobstar = token.isGlobstar = !0), isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
332
+ continue;
333
+ break;
334
+ }
335
+ if (code === CHAR_QUESTION_MARK) {
336
+ if (isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
337
+ continue;
338
+ break;
339
+ }
340
+ if (code === CHAR_LEFT_SQUARE_BRACKET) {
341
+ for (; eos() !== !0 && (next = advance()); ) {
342
+ if (next === CHAR_BACKWARD_SLASH) {
343
+ backslashes = token.backslashes = !0, advance();
344
+ continue;
345
+ }
346
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
347
+ isBracket = token.isBracket = !0, isGlob = token.isGlob = !0, finished = !0;
348
+ break;
349
+ }
350
+ }
351
+ if (scanToEnd === !0)
352
+ continue;
353
+ break;
354
+ }
355
+ if (opts.nonegate !== !0 && code === CHAR_EXCLAMATION_MARK && index === start) {
356
+ negated = token.negated = !0, start++;
357
+ continue;
358
+ }
359
+ if (opts.noparen !== !0 && code === CHAR_LEFT_PARENTHESES) {
360
+ if (isGlob = token.isGlob = !0, scanToEnd === !0) {
361
+ for (; eos() !== !0 && (code = advance()); ) {
362
+ if (code === CHAR_LEFT_PARENTHESES) {
363
+ backslashes = token.backslashes = !0, code = advance();
364
+ continue;
365
+ }
366
+ if (code === CHAR_RIGHT_PARENTHESES) {
367
+ finished = !0;
368
+ break;
369
+ }
370
+ }
371
+ continue;
372
+ }
373
+ break;
374
+ }
375
+ if (isGlob === !0) {
376
+ if (finished = !0, scanToEnd === !0)
377
+ continue;
378
+ break;
379
+ }
380
+ }
381
+ opts.noext === !0 && (isExtglob = !1, isGlob = !1);
382
+ let base = str, prefix = "", glob = "";
383
+ start > 0 && (prefix = str.slice(0, start), str = str.slice(start), lastIndex -= start), base && isGlob === !0 && lastIndex > 0 ? (base = str.slice(0, lastIndex), glob = str.slice(lastIndex)) : isGlob === !0 ? (base = "", glob = str) : base = str, base && base !== "" && base !== "/" && base !== str && isPathSeparator(base.charCodeAt(base.length - 1)) && (base = base.slice(0, -1)), opts.unescape === !0 && (glob && (glob = utils.removeBackslashes(glob)), base && backslashes === !0 && (base = utils.removeBackslashes(base)));
384
+ let state = {
385
+ prefix,
386
+ input,
387
+ start,
388
+ base,
389
+ glob,
390
+ isBrace,
391
+ isBracket,
392
+ isGlob,
393
+ isExtglob,
394
+ isGlobstar,
395
+ negated,
396
+ negatedExtglob
397
+ };
398
+ if (opts.tokens === !0 && (state.maxDepth = 0, isPathSeparator(code) || tokens.push(token), state.tokens = tokens), opts.parts === !0 || opts.tokens === !0) {
399
+ let prevIndex;
400
+ for (let idx = 0; idx < slashes.length; idx++) {
401
+ let n = prevIndex ? prevIndex + 1 : start, i = slashes[idx], value = input.slice(n, i);
402
+ opts.tokens && (idx === 0 && start !== 0 ? (tokens[idx].isPrefix = !0, tokens[idx].value = prefix) : tokens[idx].value = value, depth(tokens[idx]), state.maxDepth += tokens[idx].depth), (idx !== 0 || value !== "") && parts.push(value), prevIndex = i;
403
+ }
404
+ if (prevIndex && prevIndex + 1 < input.length) {
405
+ let value = input.slice(prevIndex + 1);
406
+ parts.push(value), opts.tokens && (tokens[tokens.length - 1].value = value, depth(tokens[tokens.length - 1]), state.maxDepth += tokens[tokens.length - 1].depth);
407
+ }
408
+ state.slashes = slashes, state.parts = parts;
409
+ }
410
+ return state;
411
+ };
412
+ module.exports = scan;
413
+ }
414
+ });
415
+
416
+ // ../node_modules/picomatch/lib/parse.js
417
+ var require_parse = __commonJS({
418
+ "../node_modules/picomatch/lib/parse.js"(exports, module) {
419
+ "use strict";
420
+ var constants = require_constants(), utils = require_utils(), {
421
+ MAX_LENGTH,
422
+ POSIX_REGEX_SOURCE,
423
+ REGEX_NON_SPECIAL_CHARS,
424
+ REGEX_SPECIAL_CHARS_BACKREF,
425
+ REPLACEMENTS
426
+ } = constants, expandRange = (args, options) => {
427
+ if (typeof options.expandRange == "function")
428
+ return options.expandRange(...args, options);
429
+ args.sort();
430
+ let value = `[${args.join("-")}]`;
431
+ try {
432
+ new RegExp(value);
433
+ } catch {
434
+ return args.map((v) => utils.escapeRegex(v)).join("..");
435
+ }
436
+ return value;
437
+ }, syntaxError = (type, char) => `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`, parse = (input, options) => {
438
+ if (typeof input != "string")
439
+ throw new TypeError("Expected a string");
440
+ input = REPLACEMENTS[input] || input;
441
+ let opts = { ...options }, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH, len = input.length;
442
+ if (len > max)
443
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
444
+ let bos = { type: "bos", value: "", output: opts.prepend || "" }, tokens = [bos], capture = opts.capture ? "" : "?:", win32 = utils.isWindows(options), PLATFORM_CHARS = constants.globChars(win32), EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS), {
445
+ DOT_LITERAL,
446
+ PLUS_LITERAL,
447
+ SLASH_LITERAL,
448
+ ONE_CHAR,
449
+ DOTS_SLASH,
450
+ NO_DOT,
451
+ NO_DOT_SLASH,
452
+ NO_DOTS_SLASH,
453
+ QMARK,
454
+ QMARK_NO_DOT,
455
+ STAR,
456
+ START_ANCHOR
457
+ } = PLATFORM_CHARS, globstar = (opts2) => `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`, nodot = opts.dot ? "" : NO_DOT, qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT, star = opts.bash === !0 ? globstar(opts) : STAR;
458
+ opts.capture && (star = `(${star})`), typeof opts.noext == "boolean" && (opts.noextglob = opts.noext);
459
+ let state = {
460
+ input,
461
+ index: -1,
462
+ start: 0,
463
+ dot: opts.dot === !0,
464
+ consumed: "",
465
+ output: "",
466
+ prefix: "",
467
+ backtrack: !1,
468
+ negated: !1,
469
+ brackets: 0,
470
+ braces: 0,
471
+ parens: 0,
472
+ quotes: 0,
473
+ globstar: !1,
474
+ tokens
475
+ };
476
+ input = utils.removePrefix(input, state), len = input.length;
477
+ let extglobs = [], braces = [], stack = [], prev = bos, value, eos = () => state.index === len - 1, peek = state.peek = (n = 1) => input[state.index + n], advance = state.advance = () => input[++state.index] || "", remaining = () => input.slice(state.index + 1), consume = (value2 = "", num = 0) => {
478
+ state.consumed += value2, state.index += num;
479
+ }, append = (token) => {
480
+ state.output += token.output != null ? token.output : token.value, consume(token.value);
481
+ }, negate = () => {
482
+ let count = 1;
483
+ for (; peek() === "!" && (peek(2) !== "(" || peek(3) === "?"); )
484
+ advance(), state.start++, count++;
485
+ return count % 2 === 0 ? !1 : (state.negated = !0, state.start++, !0);
486
+ }, increment = (type) => {
487
+ state[type]++, stack.push(type);
488
+ }, decrement = (type) => {
489
+ state[type]--, stack.pop();
490
+ }, push = (tok) => {
491
+ if (prev.type === "globstar") {
492
+ let isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace"), isExtglob = tok.extglob === !0 || extglobs.length && (tok.type === "pipe" || tok.type === "paren");
493
+ tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob && (state.output = state.output.slice(0, -prev.output.length), prev.type = "star", prev.value = "*", prev.output = star, state.output += prev.output);
494
+ }
495
+ if (extglobs.length && tok.type !== "paren" && (extglobs[extglobs.length - 1].inner += tok.value), (tok.value || tok.output) && append(tok), prev && prev.type === "text" && tok.type === "text") {
496
+ prev.value += tok.value, prev.output = (prev.output || "") + tok.value;
497
+ return;
498
+ }
499
+ tok.prev = prev, tokens.push(tok), prev = tok;
500
+ }, extglobOpen = (type, value2) => {
501
+ let token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" };
502
+ token.prev = prev, token.parens = state.parens, token.output = state.output;
503
+ let output = (opts.capture ? "(" : "") + token.open;
504
+ increment("parens"), push({ type, value: value2, output: state.output ? "" : ONE_CHAR }), push({ type: "paren", extglob: !0, value: advance(), output }), extglobs.push(token);
505
+ }, extglobClose = (token) => {
506
+ let output = token.close + (opts.capture ? ")" : ""), rest;
507
+ if (token.type === "negate") {
508
+ let extglobStar = star;
509
+ if (token.inner && token.inner.length > 1 && token.inner.includes("/") && (extglobStar = globstar(opts)), (extglobStar !== star || eos() || /^\)+$/.test(remaining())) && (output = token.close = `)$))${extglobStar}`), token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
510
+ let expression = parse(rest, { ...options, fastpaths: !1 }).output;
511
+ output = token.close = `)${expression})${extglobStar})`;
512
+ }
513
+ token.prev.type === "bos" && (state.negatedExtglob = !0);
514
+ }
515
+ push({ type: "paren", extglob: !0, value, output }), decrement("parens");
516
+ };
517
+ if (opts.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(input)) {
518
+ let backslashes = !1, output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => first === "\\" ? (backslashes = !0, m) : first === "?" ? esc ? esc + first + (rest ? QMARK.repeat(rest.length) : "") : index === 0 ? qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "") : QMARK.repeat(chars.length) : first === "." ? DOT_LITERAL.repeat(chars.length) : first === "*" ? esc ? esc + first + (rest ? star : "") : star : esc ? m : `\\${m}`);
519
+ return backslashes === !0 && (opts.unescape === !0 ? output = output.replace(/\\/g, "") : output = output.replace(/\\+/g, (m) => m.length % 2 === 0 ? "\\\\" : m ? "\\" : "")), output === input && opts.contains === !0 ? (state.output = input, state) : (state.output = utils.wrapOutput(output, state, options), state);
520
+ }
521
+ for (; !eos(); ) {
522
+ if (value = advance(), value === "\0")
523
+ continue;
524
+ if (value === "\\") {
525
+ let next = peek();
526
+ if (next === "/" && opts.bash !== !0 || next === "." || next === ";")
527
+ continue;
528
+ if (!next) {
529
+ value += "\\", push({ type: "text", value });
530
+ continue;
531
+ }
532
+ let match = /^\\+/.exec(remaining()), slashes = 0;
533
+ if (match && match[0].length > 2 && (slashes = match[0].length, state.index += slashes, slashes % 2 !== 0 && (value += "\\")), opts.unescape === !0 ? value = advance() : value += advance(), state.brackets === 0) {
534
+ push({ type: "text", value });
535
+ continue;
536
+ }
537
+ }
538
+ if (state.brackets > 0 && (value !== "]" || prev.value === "[" || prev.value === "[^")) {
539
+ if (opts.posix !== !1 && value === ":") {
540
+ let inner = prev.value.slice(1);
541
+ if (inner.includes("[") && (prev.posix = !0, inner.includes(":"))) {
542
+ let idx = prev.value.lastIndexOf("["), pre = prev.value.slice(0, idx), rest2 = prev.value.slice(idx + 2), posix = POSIX_REGEX_SOURCE[rest2];
543
+ if (posix) {
544
+ prev.value = pre + posix, state.backtrack = !0, advance(), !bos.output && tokens.indexOf(prev) === 1 && (bos.output = ONE_CHAR);
545
+ continue;
546
+ }
547
+ }
548
+ }
549
+ (value === "[" && peek() !== ":" || value === "-" && peek() === "]") && (value = `\\${value}`), value === "]" && (prev.value === "[" || prev.value === "[^") && (value = `\\${value}`), opts.posix === !0 && value === "!" && prev.value === "[" && (value = "^"), prev.value += value, append({ value });
550
+ continue;
551
+ }
552
+ if (state.quotes === 1 && value !== '"') {
553
+ value = utils.escapeRegex(value), prev.value += value, append({ value });
554
+ continue;
555
+ }
556
+ if (value === '"') {
557
+ state.quotes = state.quotes === 1 ? 0 : 1, opts.keepQuotes === !0 && push({ type: "text", value });
558
+ continue;
559
+ }
560
+ if (value === "(") {
561
+ increment("parens"), push({ type: "paren", value });
562
+ continue;
563
+ }
564
+ if (value === ")") {
565
+ if (state.parens === 0 && opts.strictBrackets === !0)
566
+ throw new SyntaxError(syntaxError("opening", "("));
567
+ let extglob = extglobs[extglobs.length - 1];
568
+ if (extglob && state.parens === extglob.parens + 1) {
569
+ extglobClose(extglobs.pop());
570
+ continue;
571
+ }
572
+ push({ type: "paren", value, output: state.parens ? ")" : "\\)" }), decrement("parens");
573
+ continue;
574
+ }
575
+ if (value === "[") {
576
+ if (opts.nobracket === !0 || !remaining().includes("]")) {
577
+ if (opts.nobracket !== !0 && opts.strictBrackets === !0)
578
+ throw new SyntaxError(syntaxError("closing", "]"));
579
+ value = `\\${value}`;
580
+ } else
581
+ increment("brackets");
582
+ push({ type: "bracket", value });
583
+ continue;
584
+ }
585
+ if (value === "]") {
586
+ if (opts.nobracket === !0 || prev && prev.type === "bracket" && prev.value.length === 1) {
587
+ push({ type: "text", value, output: `\\${value}` });
588
+ continue;
589
+ }
590
+ if (state.brackets === 0) {
591
+ if (opts.strictBrackets === !0)
592
+ throw new SyntaxError(syntaxError("opening", "["));
593
+ push({ type: "text", value, output: `\\${value}` });
594
+ continue;
595
+ }
596
+ decrement("brackets");
597
+ let prevValue = prev.value.slice(1);
598
+ if (prev.posix !== !0 && prevValue[0] === "^" && !prevValue.includes("/") && (value = `/${value}`), prev.value += value, append({ value }), opts.literalBrackets === !1 || utils.hasRegexChars(prevValue))
599
+ continue;
600
+ let escaped = utils.escapeRegex(prev.value);
601
+ if (state.output = state.output.slice(0, -prev.value.length), opts.literalBrackets === !0) {
602
+ state.output += escaped, prev.value = escaped;
603
+ continue;
604
+ }
605
+ prev.value = `(${capture}${escaped}|${prev.value})`, state.output += prev.value;
606
+ continue;
607
+ }
608
+ if (value === "{" && opts.nobrace !== !0) {
609
+ increment("braces");
610
+ let open = {
611
+ type: "brace",
612
+ value,
613
+ output: "(",
614
+ outputIndex: state.output.length,
615
+ tokensIndex: state.tokens.length
616
+ };
617
+ braces.push(open), push(open);
618
+ continue;
619
+ }
620
+ if (value === "}") {
621
+ let brace = braces[braces.length - 1];
622
+ if (opts.nobrace === !0 || !brace) {
623
+ push({ type: "text", value, output: value });
624
+ continue;
625
+ }
626
+ let output = ")";
627
+ if (brace.dots === !0) {
628
+ let arr = tokens.slice(), range = [];
629
+ for (let i = arr.length - 1; i >= 0 && (tokens.pop(), arr[i].type !== "brace"); i--)
630
+ arr[i].type !== "dots" && range.unshift(arr[i].value);
631
+ output = expandRange(range, opts), state.backtrack = !0;
632
+ }
633
+ if (brace.comma !== !0 && brace.dots !== !0) {
634
+ let out = state.output.slice(0, brace.outputIndex), toks = state.tokens.slice(brace.tokensIndex);
635
+ brace.value = brace.output = "\\{", value = output = "\\}", state.output = out;
636
+ for (let t of toks)
637
+ state.output += t.output || t.value;
638
+ }
639
+ push({ type: "brace", value, output }), decrement("braces"), braces.pop();
640
+ continue;
641
+ }
642
+ if (value === "|") {
643
+ extglobs.length > 0 && extglobs[extglobs.length - 1].conditions++, push({ type: "text", value });
644
+ continue;
645
+ }
646
+ if (value === ",") {
647
+ let output = value, brace = braces[braces.length - 1];
648
+ brace && stack[stack.length - 1] === "braces" && (brace.comma = !0, output = "|"), push({ type: "comma", value, output });
649
+ continue;
650
+ }
651
+ if (value === "/") {
652
+ if (prev.type === "dot" && state.index === state.start + 1) {
653
+ state.start = state.index + 1, state.consumed = "", state.output = "", tokens.pop(), prev = bos;
654
+ continue;
655
+ }
656
+ push({ type: "slash", value, output: SLASH_LITERAL });
657
+ continue;
658
+ }
659
+ if (value === ".") {
660
+ if (state.braces > 0 && prev.type === "dot") {
661
+ prev.value === "." && (prev.output = DOT_LITERAL);
662
+ let brace = braces[braces.length - 1];
663
+ prev.type = "dots", prev.output += value, prev.value += value, brace.dots = !0;
664
+ continue;
665
+ }
666
+ if (state.braces + state.parens === 0 && prev.type !== "bos" && prev.type !== "slash") {
667
+ push({ type: "text", value, output: DOT_LITERAL });
668
+ continue;
669
+ }
670
+ push({ type: "dot", value, output: DOT_LITERAL });
671
+ continue;
672
+ }
673
+ if (value === "?") {
674
+ if (!(prev && prev.value === "(") && opts.noextglob !== !0 && peek() === "(" && peek(2) !== "?") {
675
+ extglobOpen("qmark", value);
676
+ continue;
677
+ }
678
+ if (prev && prev.type === "paren") {
679
+ let next = peek(), output = value;
680
+ if (next === "<" && !utils.supportsLookbehinds())
681
+ throw new Error("Node.js v10 or higher is required for regex lookbehinds");
682
+ (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) && (output = `\\${value}`), push({ type: "text", value, output });
683
+ continue;
684
+ }
685
+ if (opts.dot !== !0 && (prev.type === "slash" || prev.type === "bos")) {
686
+ push({ type: "qmark", value, output: QMARK_NO_DOT });
687
+ continue;
688
+ }
689
+ push({ type: "qmark", value, output: QMARK });
690
+ continue;
691
+ }
692
+ if (value === "!") {
693
+ if (opts.noextglob !== !0 && peek() === "(" && (peek(2) !== "?" || !/[!=<:]/.test(peek(3)))) {
694
+ extglobOpen("negate", value);
695
+ continue;
696
+ }
697
+ if (opts.nonegate !== !0 && state.index === 0) {
698
+ negate();
699
+ continue;
700
+ }
701
+ }
702
+ if (value === "+") {
703
+ if (opts.noextglob !== !0 && peek() === "(" && peek(2) !== "?") {
704
+ extglobOpen("plus", value);
705
+ continue;
706
+ }
707
+ if (prev && prev.value === "(" || opts.regex === !1) {
708
+ push({ type: "plus", value, output: PLUS_LITERAL });
709
+ continue;
710
+ }
711
+ if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) {
712
+ push({ type: "plus", value });
713
+ continue;
714
+ }
715
+ push({ type: "plus", value: PLUS_LITERAL });
716
+ continue;
717
+ }
718
+ if (value === "@") {
719
+ if (opts.noextglob !== !0 && peek() === "(" && peek(2) !== "?") {
720
+ push({ type: "at", extglob: !0, value, output: "" });
721
+ continue;
722
+ }
723
+ push({ type: "text", value });
724
+ continue;
725
+ }
726
+ if (value !== "*") {
727
+ (value === "$" || value === "^") && (value = `\\${value}`);
728
+ let match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
729
+ match && (value += match[0], state.index += match[0].length), push({ type: "text", value });
730
+ continue;
731
+ }
732
+ if (prev && (prev.type === "globstar" || prev.star === !0)) {
733
+ prev.type = "star", prev.star = !0, prev.value += value, prev.output = star, state.backtrack = !0, state.globstar = !0, consume(value);
734
+ continue;
735
+ }
736
+ let rest = remaining();
737
+ if (opts.noextglob !== !0 && /^\([^?]/.test(rest)) {
738
+ extglobOpen("star", value);
739
+ continue;
740
+ }
741
+ if (prev.type === "star") {
742
+ if (opts.noglobstar === !0) {
743
+ consume(value);
744
+ continue;
745
+ }
746
+ let prior = prev.prev, before = prior.prev, isStart = prior.type === "slash" || prior.type === "bos", afterStar = before && (before.type === "star" || before.type === "globstar");
747
+ if (opts.bash === !0 && (!isStart || rest[0] && rest[0] !== "/")) {
748
+ push({ type: "star", value, output: "" });
749
+ continue;
750
+ }
751
+ let isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace"), isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren");
752
+ if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) {
753
+ push({ type: "star", value, output: "" });
754
+ continue;
755
+ }
756
+ for (; rest.slice(0, 3) === "/**"; ) {
757
+ let after = input[state.index + 4];
758
+ if (after && after !== "/")
759
+ break;
760
+ rest = rest.slice(3), consume("/**", 3);
761
+ }
762
+ if (prior.type === "bos" && eos()) {
763
+ prev.type = "globstar", prev.value += value, prev.output = globstar(opts), state.output = prev.output, state.globstar = !0, consume(value);
764
+ continue;
765
+ }
766
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
767
+ state.output = state.output.slice(0, -(prior.output + prev.output).length), prior.output = `(?:${prior.output}`, prev.type = "globstar", prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)"), prev.value += value, state.globstar = !0, state.output += prior.output + prev.output, consume(value);
768
+ continue;
769
+ }
770
+ if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
771
+ let end = rest[1] !== void 0 ? "|$" : "";
772
+ state.output = state.output.slice(0, -(prior.output + prev.output).length), prior.output = `(?:${prior.output}`, prev.type = "globstar", prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`, prev.value += value, state.output += prior.output + prev.output, state.globstar = !0, consume(value + advance()), push({ type: "slash", value: "/", output: "" });
773
+ continue;
774
+ }
775
+ if (prior.type === "bos" && rest[0] === "/") {
776
+ prev.type = "globstar", prev.value += value, prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`, state.output = prev.output, state.globstar = !0, consume(value + advance()), push({ type: "slash", value: "/", output: "" });
777
+ continue;
778
+ }
779
+ state.output = state.output.slice(0, -prev.output.length), prev.type = "globstar", prev.output = globstar(opts), prev.value += value, state.output += prev.output, state.globstar = !0, consume(value);
780
+ continue;
781
+ }
782
+ let token = { type: "star", value, output: star };
783
+ if (opts.bash === !0) {
784
+ token.output = ".*?", (prev.type === "bos" || prev.type === "slash") && (token.output = nodot + token.output), push(token);
785
+ continue;
786
+ }
787
+ if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === !0) {
788
+ token.output = value, push(token);
789
+ continue;
790
+ }
791
+ (state.index === state.start || prev.type === "slash" || prev.type === "dot") && (prev.type === "dot" ? (state.output += NO_DOT_SLASH, prev.output += NO_DOT_SLASH) : opts.dot === !0 ? (state.output += NO_DOTS_SLASH, prev.output += NO_DOTS_SLASH) : (state.output += nodot, prev.output += nodot), peek() !== "*" && (state.output += ONE_CHAR, prev.output += ONE_CHAR)), push(token);
792
+ }
793
+ for (; state.brackets > 0; ) {
794
+ if (opts.strictBrackets === !0) throw new SyntaxError(syntaxError("closing", "]"));
795
+ state.output = utils.escapeLast(state.output, "["), decrement("brackets");
796
+ }
797
+ for (; state.parens > 0; ) {
798
+ if (opts.strictBrackets === !0) throw new SyntaxError(syntaxError("closing", ")"));
799
+ state.output = utils.escapeLast(state.output, "("), decrement("parens");
800
+ }
801
+ for (; state.braces > 0; ) {
802
+ if (opts.strictBrackets === !0) throw new SyntaxError(syntaxError("closing", "}"));
803
+ state.output = utils.escapeLast(state.output, "{"), decrement("braces");
804
+ }
805
+ if (opts.strictSlashes !== !0 && (prev.type === "star" || prev.type === "bracket") && push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` }), state.backtrack === !0) {
806
+ state.output = "";
807
+ for (let token of state.tokens)
808
+ state.output += token.output != null ? token.output : token.value, token.suffix && (state.output += token.suffix);
809
+ }
810
+ return state;
811
+ };
812
+ parse.fastpaths = (input, options) => {
813
+ let opts = { ...options }, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH, len = input.length;
814
+ if (len > max)
815
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
816
+ input = REPLACEMENTS[input] || input;
817
+ let win32 = utils.isWindows(options), {
818
+ DOT_LITERAL,
819
+ SLASH_LITERAL,
820
+ ONE_CHAR,
821
+ DOTS_SLASH,
822
+ NO_DOT,
823
+ NO_DOTS,
824
+ NO_DOTS_SLASH,
825
+ STAR,
826
+ START_ANCHOR
827
+ } = constants.globChars(win32), nodot = opts.dot ? NO_DOTS : NO_DOT, slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT, capture = opts.capture ? "" : "?:", state = { negated: !1, prefix: "" }, star = opts.bash === !0 ? ".*?" : STAR;
828
+ opts.capture && (star = `(${star})`);
829
+ let globstar = (opts2) => opts2.noglobstar === !0 ? star : `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`, create = (str) => {
830
+ switch (str) {
831
+ case "*":
832
+ return `${nodot}${ONE_CHAR}${star}`;
833
+ case ".*":
834
+ return `${DOT_LITERAL}${ONE_CHAR}${star}`;
835
+ case "*.*":
836
+ return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
837
+ case "*/*":
838
+ return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;
839
+ case "**":
840
+ return nodot + globstar(opts);
841
+ case "**/*":
842
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;
843
+ case "**/*.*":
844
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
845
+ case "**/.*":
846
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
847
+ default: {
848
+ let match = /^(.*?)\.(\w+)$/.exec(str);
849
+ if (!match) return;
850
+ let source2 = create(match[1]);
851
+ return source2 ? source2 + DOT_LITERAL + match[2] : void 0;
852
+ }
853
+ }
854
+ }, output = utils.removePrefix(input, state), source = create(output);
855
+ return source && opts.strictSlashes !== !0 && (source += `${SLASH_LITERAL}?`), source;
856
+ };
857
+ module.exports = parse;
858
+ }
859
+ });
860
+
861
+ // ../node_modules/picomatch/lib/picomatch.js
862
+ var require_picomatch = __commonJS({
863
+ "../node_modules/picomatch/lib/picomatch.js"(exports, module) {
864
+ "use strict";
865
+ var path = __require("path"), scan = require_scan(), parse = require_parse(), utils = require_utils(), constants = require_constants(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
866
+ if (Array.isArray(glob)) {
867
+ let fns = glob.map((input) => picomatch(input, options, returnState));
868
+ return (str) => {
869
+ for (let isMatch of fns) {
870
+ let state2 = isMatch(str);
871
+ if (state2) return state2;
872
+ }
873
+ return !1;
874
+ };
875
+ }
876
+ let isState = isObject(glob) && glob.tokens && glob.input;
877
+ if (glob === "" || typeof glob != "string" && !isState)
878
+ throw new TypeError("Expected pattern to be a non-empty string");
879
+ let opts = options || {}, posix = utils.isWindows(options), regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, !1, !0), state = regex.state;
880
+ delete regex.state;
881
+ let isIgnored = () => !1;
882
+ if (opts.ignore) {
883
+ let ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
884
+ isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
885
+ }
886
+ let matcher = (input, returnObject = !1) => {
887
+ let { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix }), result = { glob, state, regex, posix, input, output, match, isMatch };
888
+ return typeof opts.onResult == "function" && opts.onResult(result), isMatch === !1 ? (result.isMatch = !1, returnObject ? result : !1) : isIgnored(input) ? (typeof opts.onIgnore == "function" && opts.onIgnore(result), result.isMatch = !1, returnObject ? result : !1) : (typeof opts.onMatch == "function" && opts.onMatch(result), returnObject ? result : !0);
889
+ };
890
+ return returnState && (matcher.state = state), matcher;
891
+ };
892
+ picomatch.test = (input, regex, options, { glob, posix } = {}) => {
893
+ if (typeof input != "string")
894
+ throw new TypeError("Expected input to be a string");
895
+ if (input === "")
896
+ return { isMatch: !1, output: "" };
897
+ let opts = options || {}, format = opts.format || (posix ? utils.toPosixSlashes : null), match = input === glob, output = match && format ? format(input) : input;
898
+ return match === !1 && (output = format ? format(input) : input, match = output === glob), (match === !1 || opts.capture === !0) && (opts.matchBase === !0 || opts.basename === !0 ? match = picomatch.matchBase(input, regex, options, posix) : match = regex.exec(output)), { isMatch: !!match, match, output };
899
+ };
900
+ picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path.basename(input));
901
+ picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
902
+ picomatch.parse = (pattern, options) => Array.isArray(pattern) ? pattern.map((p) => picomatch.parse(p, options)) : parse(pattern, { ...options, fastpaths: !1 });
903
+ picomatch.scan = (input, options) => scan(input, options);
904
+ picomatch.compileRe = (state, options, returnOutput = !1, returnState = !1) => {
905
+ if (returnOutput === !0)
906
+ return state.output;
907
+ let opts = options || {}, prepend = opts.contains ? "" : "^", append = opts.contains ? "" : "$", source = `${prepend}(?:${state.output})${append}`;
908
+ state && state.negated === !0 && (source = `^(?!${source}).*$`);
909
+ let regex = picomatch.toRegex(source, options);
910
+ return returnState === !0 && (regex.state = state), regex;
911
+ };
912
+ picomatch.makeRe = (input, options = {}, returnOutput = !1, returnState = !1) => {
913
+ if (!input || typeof input != "string")
914
+ throw new TypeError("Expected a non-empty string");
915
+ let parsed = { negated: !1, fastpaths: !0 };
916
+ return options.fastpaths !== !1 && (input[0] === "." || input[0] === "*") && (parsed.output = parse.fastpaths(input, options)), parsed.output || (parsed = parse(input, options)), picomatch.compileRe(parsed, options, returnOutput, returnState);
917
+ };
918
+ picomatch.toRegex = (source, options) => {
919
+ try {
920
+ let opts = options || {};
921
+ return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
922
+ } catch (err) {
923
+ if (options && options.debug === !0) throw err;
924
+ return /$^/;
925
+ }
926
+ };
927
+ picomatch.constants = constants;
928
+ module.exports = picomatch;
929
+ }
930
+ });
931
+
932
+ // ../node_modules/picomatch/index.js
933
+ var require_picomatch2 = __commonJS({
934
+ "../node_modules/picomatch/index.js"(exports, module) {
935
+ "use strict";
936
+ module.exports = require_picomatch();
937
+ }
938
+ });
939
+
940
+ export {
941
+ require_utils,
942
+ require_picomatch2 as require_picomatch
943
+ };