pkgroll 2.23.1 → 2.24.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.
- package/LICENSE +379 -0
- package/README.md +25 -0
- package/dist/cli.mjs +39 -25
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -19,3 +19,382 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
----------- BUNDLED DEPENDENCIES -----------
|
|
24
|
+
|
|
25
|
+
## @jridgewell/gen-mapping@0.3.13
|
|
26
|
+
License: MIT
|
|
27
|
+
By: Justin Ridgewell
|
|
28
|
+
Repository: git+https://github.com/jridgewell/sourcemaps.git
|
|
29
|
+
|
|
30
|
+
> Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
|
31
|
+
>
|
|
32
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
33
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
34
|
+
> in the Software without restriction, including without limitation the rights
|
|
35
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
36
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
37
|
+
> furnished to do so, subject to the following conditions:
|
|
38
|
+
>
|
|
39
|
+
> The above copyright notice and this permission notice shall be included in
|
|
40
|
+
> all copies or substantial portions of the Software.
|
|
41
|
+
>
|
|
42
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
43
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
44
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
45
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
46
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
47
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
48
|
+
> SOFTWARE.
|
|
49
|
+
|
|
50
|
+
---------------------------------------
|
|
51
|
+
|
|
52
|
+
## @jridgewell/remapping@2.3.5
|
|
53
|
+
License: MIT
|
|
54
|
+
By: Justin Ridgewell
|
|
55
|
+
Repository: git+https://github.com/jridgewell/sourcemaps.git
|
|
56
|
+
|
|
57
|
+
> Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
|
58
|
+
>
|
|
59
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
60
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
61
|
+
> in the Software without restriction, including without limitation the rights
|
|
62
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
63
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
64
|
+
> furnished to do so, subject to the following conditions:
|
|
65
|
+
>
|
|
66
|
+
> The above copyright notice and this permission notice shall be included in
|
|
67
|
+
> all copies or substantial portions of the Software.
|
|
68
|
+
>
|
|
69
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
70
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
71
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
72
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
73
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
74
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
75
|
+
> SOFTWARE.
|
|
76
|
+
|
|
77
|
+
---------------------------------------
|
|
78
|
+
|
|
79
|
+
## @jridgewell/resolve-uri@3.1.2
|
|
80
|
+
License: MIT
|
|
81
|
+
By: Justin Ridgewell
|
|
82
|
+
Repository: https://github.com/jridgewell/resolve-uri
|
|
83
|
+
|
|
84
|
+
> Copyright 2019 Justin Ridgewell <jridgewell@google.com>
|
|
85
|
+
>
|
|
86
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
87
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
88
|
+
> in the Software without restriction, including without limitation the rights
|
|
89
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
90
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
91
|
+
> furnished to do so, subject to the following conditions:
|
|
92
|
+
>
|
|
93
|
+
> The above copyright notice and this permission notice shall be included in
|
|
94
|
+
> all copies or substantial portions of the Software.
|
|
95
|
+
>
|
|
96
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
97
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
98
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
99
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
100
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
101
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
102
|
+
> SOFTWARE.
|
|
103
|
+
|
|
104
|
+
---------------------------------------
|
|
105
|
+
|
|
106
|
+
## @jridgewell/sourcemap-codec@1.5.5
|
|
107
|
+
License: MIT
|
|
108
|
+
By: Justin Ridgewell
|
|
109
|
+
Repository: git+https://github.com/jridgewell/sourcemaps.git
|
|
110
|
+
|
|
111
|
+
> Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
|
112
|
+
>
|
|
113
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
114
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
115
|
+
> in the Software without restriction, including without limitation the rights
|
|
116
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
117
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
118
|
+
> furnished to do so, subject to the following conditions:
|
|
119
|
+
>
|
|
120
|
+
> The above copyright notice and this permission notice shall be included in
|
|
121
|
+
> all copies or substantial portions of the Software.
|
|
122
|
+
>
|
|
123
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
124
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
125
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
126
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
127
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
128
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
129
|
+
> SOFTWARE.
|
|
130
|
+
|
|
131
|
+
---------------------------------------
|
|
132
|
+
|
|
133
|
+
## @jridgewell/trace-mapping@0.3.31
|
|
134
|
+
License: MIT
|
|
135
|
+
By: Justin Ridgewell
|
|
136
|
+
Repository: git+https://github.com/jridgewell/sourcemaps.git
|
|
137
|
+
|
|
138
|
+
> Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
|
139
|
+
>
|
|
140
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
141
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
142
|
+
> in the Software without restriction, including without limitation the rights
|
|
143
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
144
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
145
|
+
> furnished to do so, subject to the following conditions:
|
|
146
|
+
>
|
|
147
|
+
> The above copyright notice and this permission notice shall be included in
|
|
148
|
+
> all copies or substantial portions of the Software.
|
|
149
|
+
>
|
|
150
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
151
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
152
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
153
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
154
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
155
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
156
|
+
> SOFTWARE.
|
|
157
|
+
|
|
158
|
+
---------------------------------------
|
|
159
|
+
|
|
160
|
+
## cleye@2.0.0
|
|
161
|
+
License: MIT
|
|
162
|
+
By: Hiroki Osame
|
|
163
|
+
Repository: privatenumber/cleye
|
|
164
|
+
|
|
165
|
+
> MIT License
|
|
166
|
+
>
|
|
167
|
+
> Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
|
168
|
+
>
|
|
169
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
170
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
171
|
+
> in the Software without restriction, including without limitation the rights
|
|
172
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
173
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
174
|
+
> furnished to do so, subject to the following conditions:
|
|
175
|
+
>
|
|
176
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
177
|
+
> copies or substantial portions of the Software.
|
|
178
|
+
>
|
|
179
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
180
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
181
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
182
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
183
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
184
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
185
|
+
> SOFTWARE.
|
|
186
|
+
|
|
187
|
+
---------------------------------------
|
|
188
|
+
|
|
189
|
+
## convert-source-map@2.0.0
|
|
190
|
+
License: MIT
|
|
191
|
+
By: Thorsten Lorenz
|
|
192
|
+
Repository: git://github.com/thlorenz/convert-source-map.git
|
|
193
|
+
|
|
194
|
+
> Copyright 2013 Thorsten Lorenz.
|
|
195
|
+
> All rights reserved.
|
|
196
|
+
>
|
|
197
|
+
> Permission is hereby granted, free of charge, to any person
|
|
198
|
+
> obtaining a copy of this software and associated documentation
|
|
199
|
+
> files (the "Software"), to deal in the Software without
|
|
200
|
+
> restriction, including without limitation the rights to use,
|
|
201
|
+
> copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
202
|
+
> copies of the Software, and to permit persons to whom the
|
|
203
|
+
> Software is furnished to do so, subject to the following
|
|
204
|
+
> conditions:
|
|
205
|
+
>
|
|
206
|
+
> The above copyright notice and this permission notice shall be
|
|
207
|
+
> included in all copies or substantial portions of the Software.
|
|
208
|
+
>
|
|
209
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
210
|
+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
211
|
+
> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
212
|
+
> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
213
|
+
> HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
214
|
+
> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
215
|
+
> FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
216
|
+
> OTHER DEALINGS IN THE SOFTWARE.
|
|
217
|
+
|
|
218
|
+
---------------------------------------
|
|
219
|
+
|
|
220
|
+
## empathic@2.0.0
|
|
221
|
+
License: MIT
|
|
222
|
+
By: Luke Edwards
|
|
223
|
+
Repository: lukeed/empathic
|
|
224
|
+
|
|
225
|
+
> MIT License
|
|
226
|
+
>
|
|
227
|
+
> Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
|
|
228
|
+
>
|
|
229
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
230
|
+
>
|
|
231
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
232
|
+
>
|
|
233
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
234
|
+
|
|
235
|
+
---------------------------------------
|
|
236
|
+
|
|
237
|
+
## estree-walker@3.0.3
|
|
238
|
+
License: MIT
|
|
239
|
+
By: Rich Harris
|
|
240
|
+
Repository: https://github.com/Rich-Harris/estree-walker
|
|
241
|
+
|
|
242
|
+
> Copyright (c) 2015-20 [these people](https://github.com/Rich-Harris/estree-walker/graphs/contributors)
|
|
243
|
+
>
|
|
244
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
245
|
+
>
|
|
246
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
247
|
+
>
|
|
248
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
249
|
+
|
|
250
|
+
---------------------------------------
|
|
251
|
+
|
|
252
|
+
## get-tsconfig@4.13.0
|
|
253
|
+
License: MIT
|
|
254
|
+
By: Hiroki Osame
|
|
255
|
+
Repository: privatenumber/get-tsconfig
|
|
256
|
+
|
|
257
|
+
> MIT License
|
|
258
|
+
>
|
|
259
|
+
> Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
|
260
|
+
>
|
|
261
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
262
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
263
|
+
> in the Software without restriction, including without limitation the rights
|
|
264
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
265
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
266
|
+
> furnished to do so, subject to the following conditions:
|
|
267
|
+
>
|
|
268
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
269
|
+
> copies or substantial portions of the Software.
|
|
270
|
+
>
|
|
271
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
272
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
273
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
274
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
275
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
276
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
277
|
+
> SOFTWARE.
|
|
278
|
+
|
|
279
|
+
---------------------------------------
|
|
280
|
+
|
|
281
|
+
## kolorist@1.8.0
|
|
282
|
+
License: MIT
|
|
283
|
+
By: Marvin Hagemeister
|
|
284
|
+
Repository: https://github.com/marvinhagemeister/kolorist.git
|
|
285
|
+
|
|
286
|
+
> The MIT License (MIT)
|
|
287
|
+
>
|
|
288
|
+
> Copyright (c) 2020-present Marvin Hagemeister
|
|
289
|
+
>
|
|
290
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
291
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
292
|
+
> in the Software without restriction, including without limitation the rights
|
|
293
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
294
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
295
|
+
> furnished to do so, subject to the following conditions:
|
|
296
|
+
>
|
|
297
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
298
|
+
> copies or substantial portions of the Software.
|
|
299
|
+
>
|
|
300
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
301
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
302
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
303
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
304
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
305
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
306
|
+
> SOFTWARE.
|
|
307
|
+
|
|
308
|
+
---------------------------------------
|
|
309
|
+
|
|
310
|
+
## resolve-pkg-maps@1.0.0
|
|
311
|
+
License: MIT
|
|
312
|
+
By: Hiroki Osame
|
|
313
|
+
Repository: privatenumber/resolve-pkg-maps
|
|
314
|
+
|
|
315
|
+
> MIT License
|
|
316
|
+
>
|
|
317
|
+
> Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
|
318
|
+
>
|
|
319
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
320
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
321
|
+
> in the Software without restriction, including without limitation the rights
|
|
322
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
323
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
324
|
+
> furnished to do so, subject to the following conditions:
|
|
325
|
+
>
|
|
326
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
327
|
+
> copies or substantial portions of the Software.
|
|
328
|
+
>
|
|
329
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
330
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
331
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
332
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
333
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
334
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
335
|
+
> SOFTWARE.
|
|
336
|
+
|
|
337
|
+
---------------------------------------
|
|
338
|
+
|
|
339
|
+
## rollup-plugin-dts@6.3.0
|
|
340
|
+
License: LGPL-3.0-only
|
|
341
|
+
By: Arpad Borsos
|
|
342
|
+
Repository: git+https://github.com/Swatinem/rollup-plugin-dts.git
|
|
343
|
+
|
|
344
|
+
---------------------------------------
|
|
345
|
+
|
|
346
|
+
## terminal-columns@2.0.0
|
|
347
|
+
License: MIT
|
|
348
|
+
By: Hiroki Osame
|
|
349
|
+
Repository: privatenumber/terminal-columns
|
|
350
|
+
|
|
351
|
+
> MIT License
|
|
352
|
+
>
|
|
353
|
+
> Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
|
354
|
+
>
|
|
355
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
356
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
357
|
+
> in the Software without restriction, including without limitation the rights
|
|
358
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
359
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
360
|
+
> furnished to do so, subject to the following conditions:
|
|
361
|
+
>
|
|
362
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
363
|
+
> copies or substantial portions of the Software.
|
|
364
|
+
>
|
|
365
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
366
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
367
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
368
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
369
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
370
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
371
|
+
> SOFTWARE.
|
|
372
|
+
|
|
373
|
+
---------------------------------------
|
|
374
|
+
|
|
375
|
+
## type-flag@4.0.2
|
|
376
|
+
License: MIT
|
|
377
|
+
By: Hiroki Osame
|
|
378
|
+
Repository: privatenumber/type-flag
|
|
379
|
+
|
|
380
|
+
> MIT License
|
|
381
|
+
>
|
|
382
|
+
> Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
|
383
|
+
>
|
|
384
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
385
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
386
|
+
> in the Software without restriction, including without limitation the rights
|
|
387
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
388
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
389
|
+
> furnished to do so, subject to the following conditions:
|
|
390
|
+
>
|
|
391
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
392
|
+
> copies or substantial portions of the Software.
|
|
393
|
+
>
|
|
394
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
395
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
396
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
397
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
398
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
399
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
400
|
+
> SOFTWARE.
|
package/README.md
CHANGED
|
@@ -354,6 +354,31 @@ Clean dist directory before bundling:
|
|
|
354
354
|
pkgroll --clean-dist
|
|
355
355
|
```
|
|
356
356
|
|
|
357
|
+
### License extraction
|
|
358
|
+
Generate a file containing licenses for all bundled dependencies:
|
|
359
|
+
```sh
|
|
360
|
+
pkgroll --license
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
This collects license information from all `devDependencies` that are bundled into your package and writes them to a LICENSE file. This helps ensure compliance with open-source license requirements.
|
|
364
|
+
|
|
365
|
+
#### Custom output path
|
|
366
|
+
Specify a custom output file:
|
|
367
|
+
```sh
|
|
368
|
+
pkgroll --license=THIRD-PARTY-LICENSES.txt
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
#### Auto-detection
|
|
372
|
+
When no path is specified, pkgroll looks for existing LICENSE files (`LICENSE`, `LICENSE.txt`, `LICENSE.md`, `LICENCE`, `LICENCE.txt`, `LICENCE.md`) in your project root. If none exist, it creates a `LICENSE` file.
|
|
373
|
+
|
|
374
|
+
#### Content placement
|
|
375
|
+
If the LICENSE file already has a `----------- BUNDLED DEPENDENCIES -----------` marker, everything from the marker to the end of the file is replaced with the updated licenses. This preserves your project's license text above the marker.
|
|
376
|
+
|
|
377
|
+
If no marker is found, the bundled licenses (with the marker) are appended to the end of the file. Subsequent runs will find the marker and replace in-place.
|
|
378
|
+
|
|
379
|
+
> [!NOTE]
|
|
380
|
+
> License extraction is skipped in watch mode since it's typically only needed for final builds.
|
|
381
|
+
|
|
357
382
|
### Source maps
|
|
358
383
|
Pass in the `--sourcemap` flag to emit source map files for both JavaScript and TypeScript declaration outputs:
|
|
359
384
|
|
package/dist/cli.mjs
CHANGED
|
@@ -1,31 +1,45 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var Nu=Object.defineProperty;var l=(e,t)=>Nu(e,"name",{value:t,configurable:!0});import R,{existsSync as Ru}from"node:fs";import g,{resolve as _u,isAbsolute as Wu,dirname as Mu,join as Lu}from"node:path";import Uu from"tty";import{rollup as Vu,watch as zu}from"rollup";import{importTrace as nt,patchErrorWithTrace as qu}from"rollup-plugin-import-trace";import U from"node:fs/promises";import{parse as Ju}from"yaml";import Z from"node:path/posix";import Ku from"@rollup/plugin-node-resolve";import Gu from"@rollup/plugin-commonjs";import Hu from"@rollup/plugin-json";import Yu from"@rollup/plugin-alias";import Zu from"@rollup/plugin-dynamic-import-vars";import{transform as rt}from"esbuild";import Qu,{builtinModules as Xu}from"node:module";import se from"magic-string";import en from"fs";import tn from"os";import un from"path";import{attachScopes as nn}from"rollup-pluginutils";import"node:url";import{init as rn,parse as sn}from"cjs-module-lexer";var on=Object.defineProperty,j=l((e,t)=>on(e,"name",{value:t,configurable:!0}),"a$1");const an="known-flag",ln="unknown-flag",cn="argument",Dn=/\B([A-Z])/g,fn=j(e=>e.replaceAll(Dn,"-$1").toLowerCase(),"camelToKebab"),{hasOwnProperty:pn}=Object.prototype,Q=j((e,t)=>pn.call(e,t),"hasOwn"),Ae=j(e=>typeof e=="function"?[e,!1]:Array.isArray(e)?[e[0],!0]:Ae(e.type),"parseFlagType"),st=j((e,t)=>e===Boolean?t!=="false":t,"normalizeBoolean"),ot=j((e,t)=>typeof t=="boolean"?t:e===Number&&t===""?Number.NaN:e(t),"applyParser"),dn=/[\s.:=]/,Fn=j(e=>{const t=`Flag name "${e}"`;if(e.length===0)throw new Error(`${t} cannot be empty`);if(e.length===1)throw new Error(`${t} must be longer than a character`);const n=e.match(dn);if(n)throw new Error(`${t} cannot contain "${n?.[0]}"`)},"validateFlagName"),$e=j((e,t,n)=>{if(Q(e,t))throw new Error(`Duplicate flags named "${t}"`);e[t]=n},"setFlag"),hn=j(e=>{const t={};for(const n in e){if(!Q(e,n))continue;Fn(n);const u=e[n],r=[[],...Ae(u),u];$e(t,n,r);const s=fn(n);if(n!==s&&$e(t,s,r),"alias"in u&&typeof u.alias=="string"){const{alias:o}=u,i=`Flag alias "${o}" for flag "${n}"`;if(o.length===0)throw new Error(`${i} cannot be empty`);if(o.length>1)throw new Error(`${i} must be a single character`);$e(t,o,r)}}return t},"createRegistry"),mn=j((e,t)=>{const n={};for(const u in e){if(!Q(e,u))continue;const[r,,s,o]=t[u];if(r.length===0&&"default"in o){let{default:i}=o;typeof i=="function"&&(i=i()),n[u]=i}else n[u]=s?r:r.pop()}return n},"finalizeFlags"),oe="--",gn=3,Cn=/^-{1,2}\w/,it=j(e=>{if(!Cn.test(e))return;const t=!e.startsWith(oe);let n=e.slice(t?1:2),u,r=-1;for(const s of["=",":","."]){const o=n.indexOf(s);o!==-1&&(r===-1||o<r)&&(r=o)}return r!==-1&&(u=n.slice(r+1),n=n.slice(0,r)),[n,u,t]},"parseFlagArgv"),at=j((e,{onFlag:t,onArgument:n})=>{let u;const r=j((s,o)=>{if(typeof u!="function")return!0;u(s,o),u=void 0},"triggerValueCallback");for(let s=0;s<e.length;s+=1){const o=e[s];if(o===oe){r();const a=e.slice(s+1);n?.(a,[s],!0);break}const i=it(o);if(i){if(r(),!t)continue;const[a,c,D]=i;if(D)for(let F=0;F<a.length;F+=1){r();const f=F===a.length-1;u=t(a[F],f?c:void 0,[s,F+1,f])}else u=t(a,c,[s])}else r(o,[s])&&n?.([o],[s])}r()},"argvIterator"),lt=j((e,t)=>{for(let n=t.length-1;n>=0;n-=1){const[u,r,s]=t[n];if(r){const o=e[u];let i=o.slice(0,r);if(s||(i+=o.slice(r+1)),i!=="-"){e[u]=i;continue}}e.splice(u,1)}},"spliceFromArgv"),En=j((e,t=process.argv.slice(2),{ignore:n}={})=>{const u=[],r=hn(e),s={},o=[];return o[oe]=[],at(t,{onFlag(i,a,c){const D=(c.length===gn||i.length>1)&&Q(r,i);if(!n?.(D?an:ln,i,a)){if(D){const[F,f]=r[i],d=st(f,a),C=j((m,w)=>{u.push(c),w&&u.push(w),F.push(ot(f,m||""))},"getFollowingValue");return d===void 0?C:C(d)}Q(s,i)||(s[i]=[]),s[i].push(a===void 0?!0:a),u.push(c)}},onArgument:j((i,a,c)=>{n?.(cn,t[a[0]])||(o.push(...i),c?(o[oe]=i,t.splice(a[0])):u.push(a))},"onArgument")}),lt(t,u),{flags:mn(e,r),unknownFlags:s,_:o}},"typeFlag");j((e,t,n=process.argv.slice(2))=>{const u=new Set(e.split(",").map(a=>it(a)?.[0])),[r,s]=Ae(t),o=[],i=[];return at(n,{onFlag:j((a,c,D)=>{if(!u.has(a)||!s&&o.length>0)return;const F=st(r,c),f=j((d,C)=>{i.push(D),C&&i.push(C),o.push(ot(r,d||""))},"getFollowingValue");return F===void 0?f:f(F)},"onFlag")}),lt(n,i),s?o:o[0]},"getFlag");var yn=Object.defineProperty,y=l((e,t)=>yn(e,"name",{value:t,configurable:!0}),"n");const Bn=y(e=>{const t=process.stdout.columns??Number.POSITIVE_INFINITY;return typeof e=="function"&&(e=e(t)),e||(e={}),Array.isArray(e)?{columns:e,stdoutColumns:t}:{columns:e.columns??[],stdoutColumns:e.stdoutColumns??t}},"getOptions");function ct({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}l(ct,"j$1"),y(ct,"ansiRegex");const wn=ct();function xe(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(wn,"")}l(xe,"w$2"),y(xe,"stripAnsi");function Dt(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}l(Dt,"P"),y(Dt,"isAmbiguous");function ft(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}l(ft,"z$1"),y(ft,"isFullWidth");function pt(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}l(pt,"G$2"),y(pt,"isWide");function dt(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}l(dt,"Z$2"),y(dt,"validate");function Ft(e,{ambiguousAsWide:t=!1}={}){return dt(e),ft(e)||pt(e)||t&&Dt(e)?2:1}l(Ft,"V$2"),y(Ft,"eastAsianWidth");var bn=y(()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"emojiRegex");const vn=new Intl.Segmenter,An=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function W(e,t={}){if(typeof e!="string"||e.length===0)return 0;const{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:u=!1}=t;if(u||(e=xe(e)),e.length===0)return 0;let r=0;const s={ambiguousAsWide:!n};for(const{segment:o}of vn.segment(e)){const i=o.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!An.test(o)){if(bn().test(o)){r+=2;continue}r+=Ft(i,s)}}return r}l(W,"d$1"),y(W,"stringWidth");const ht=y(e=>Math.max(...e.split(`
|
|
3
|
-
`).map(t=>W(t))),"getLongestLineWidth")
|
|
4
|
-
`),c=[...a];let D=0;for(const[F,f]of c.entries()){if(
|
|
5
|
-
`?(s&&(
|
|
6
|
-
`&&(r&&
|
|
2
|
+
var Mn=Object.defineProperty;var l=(e,t)=>Mn(e,"name",{value:t,configurable:!0});import _,{existsSync as Un}from"node:fs";import h,{resolve as Vn,isAbsolute as zn,dirname as qn,join as Jn}from"node:path";import Kn from"tty";import{rollup as Gn,watch as Hn}from"rollup";import{importTrace as rt,patchErrorWithTrace as Yn}from"rollup-plugin-import-trace";import P from"node:fs/promises";import{parse as Zn}from"yaml";import Z from"node:path/posix";import Qn from"@rollup/plugin-node-resolve";import Xn from"@rollup/plugin-commonjs";import eu from"@rollup/plugin-json";import tu from"@rollup/plugin-alias";import nu from"@rollup/plugin-dynamic-import-vars";import{transform as st}from"esbuild";import uu,{builtinModules as ru}from"node:module";import se from"magic-string";import su from"fs";import ou from"os";import iu from"path";import{attachScopes as au}from"rollup-pluginutils";import"node:url";import{init as lu,parse as cu}from"cjs-module-lexer";var Du=Object.defineProperty,j=l((e,t)=>Du(e,"name",{value:t,configurable:!0}),"a$1");const fu="known-flag",du="unknown-flag",pu="argument",Fu=/\B([A-Z])/g,mu=j(e=>e.replaceAll(Fu,"-$1").toLowerCase(),"camelToKebab"),{hasOwnProperty:hu}=Object.prototype,Q=j((e,t)=>hu.call(e,t),"hasOwn"),Ae=j(e=>typeof e=="function"?[e,!1]:Array.isArray(e)?[e[0],!0]:Ae(e.type),"parseFlagType"),ot=j((e,t)=>e===Boolean?t!=="false":t,"normalizeBoolean"),it=j((e,t)=>typeof t=="boolean"?t:e===Number&&t===""?Number.NaN:e(t),"applyParser"),gu=/[\s.:=]/,Cu=j(e=>{const t=`Flag name "${e}"`;if(e.length===0)throw new Error(`${t} cannot be empty`);if(e.length===1)throw new Error(`${t} must be longer than a character`);const u=e.match(gu);if(u)throw new Error(`${t} cannot contain "${u?.[0]}"`)},"validateFlagName"),$e=j((e,t,u)=>{if(Q(e,t))throw new Error(`Duplicate flags named "${t}"`);e[t]=u},"setFlag"),Eu=j(e=>{const t={};for(const u in e){if(!Q(e,u))continue;Cu(u);const n=e[u],r=[[],...Ae(n),n];$e(t,u,r);const s=mu(u);if(u!==s&&$e(t,s,r),"alias"in n&&typeof n.alias=="string"){const{alias:o}=n,i=`Flag alias "${o}" for flag "${u}"`;if(o.length===0)throw new Error(`${i} cannot be empty`);if(o.length>1)throw new Error(`${i} must be a single character`);$e(t,o,r)}}return t},"createRegistry"),yu=j((e,t)=>{const u={};for(const n in e){if(!Q(e,n))continue;const[r,,s,o]=t[n];if(r.length===0&&"default"in o){let{default:i}=o;typeof i=="function"&&(i=i()),u[n]=i}else u[n]=s?r:r.pop()}return u},"finalizeFlags"),oe="--",Bu=3,wu=/^-{1,2}\w/,at=j(e=>{if(!wu.test(e))return;const t=!e.startsWith(oe);let u=e.slice(t?1:2),n,r=-1;for(const s of["=",":","."]){const o=u.indexOf(s);o!==-1&&(r===-1||o<r)&&(r=o)}return r!==-1&&(n=u.slice(r+1),u=u.slice(0,r)),[u,n,t]},"parseFlagArgv"),lt=j((e,{onFlag:t,onArgument:u})=>{let n;const r=j((s,o)=>{if(typeof n!="function")return!0;n(s,o),n=void 0},"triggerValueCallback");for(let s=0;s<e.length;s+=1){const o=e[s];if(o===oe){r();const a=e.slice(s+1);u?.(a,[s],!0);break}const i=at(o);if(i){if(r(),!t)continue;const[a,c,D]=i;if(D)for(let F=0;F<a.length;F+=1){r();const f=F===a.length-1;n=t(a[F],f?c:void 0,[s,F+1,f])}else n=t(a,c,[s])}else r(o,[s])&&u?.([o],[s])}r()},"argvIterator"),ct=j((e,t)=>{for(let u=t.length-1;u>=0;u-=1){const[n,r,s]=t[u];if(r){const o=e[n];let i=o.slice(0,r);if(s||(i+=o.slice(r+1)),i!=="-"){e[n]=i;continue}}e.splice(n,1)}},"spliceFromArgv"),bu=j((e,t=process.argv.slice(2),{ignore:u}={})=>{const n=[],r=Eu(e),s={},o=[];return o[oe]=[],lt(t,{onFlag(i,a,c){const D=(c.length===Bu||i.length>1)&&Q(r,i);if(!u?.(D?fu:du,i,a)){if(D){const[F,f]=r[i],p=ot(f,a),C=j((g,w)=>{n.push(c),w&&n.push(w),F.push(it(f,g||""))},"getFollowingValue");return p===void 0?C:C(p)}Q(s,i)||(s[i]=[]),s[i].push(a===void 0?!0:a),n.push(c)}},onArgument:j((i,a,c)=>{u?.(pu,t[a[0]])||(o.push(...i),c?(o[oe]=i,t.splice(a[0])):n.push(a))},"onArgument")}),ct(t,n),{flags:yu(e,r),unknownFlags:s,_:o}},"typeFlag");j((e,t,u=process.argv.slice(2))=>{const n=new Set(e.split(",").map(a=>at(a)?.[0])),[r,s]=Ae(t),o=[],i=[];return lt(u,{onFlag:j((a,c,D)=>{if(!n.has(a)||!s&&o.length>0)return;const F=ot(r,c),f=j((p,C)=>{i.push(D),C&&i.push(C),o.push(it(r,p||""))},"getFollowingValue");return F===void 0?f:f(F)},"onFlag")}),ct(u,i),s?o:o[0]},"getFlag");var vu=Object.defineProperty,y=l((e,t)=>vu(e,"name",{value:t,configurable:!0}),"n");const Au=y(e=>{const t=process.stdout.columns??Number.POSITIVE_INFINITY;return typeof e=="function"&&(e=e(t)),e||(e={}),Array.isArray(e)?{columns:e,stdoutColumns:t}:{columns:e.columns??[],stdoutColumns:e.stdoutColumns??t}},"getOptions");function Dt({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}l(Dt,"j$1"),y(Dt,"ansiRegex");const $u=Dt();function xe(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace($u,"")}l(xe,"w$2"),y(xe,"stripAnsi");function ft(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}l(ft,"P"),y(ft,"isAmbiguous");function dt(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}l(dt,"z$1"),y(dt,"isFullWidth");function pt(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}l(pt,"G$2"),y(pt,"isWide");function Ft(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}l(Ft,"Z$2"),y(Ft,"validate");function mt(e,{ambiguousAsWide:t=!1}={}){return Ft(e),dt(e)||pt(e)||t&&ft(e)?2:1}l(mt,"V$2"),y(mt,"eastAsianWidth");var xu=y(()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"emojiRegex");const ku=new Intl.Segmenter,ju=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function W(e,t={}){if(typeof e!="string"||e.length===0)return 0;const{ambiguousIsNarrow:u=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=xe(e)),e.length===0)return 0;let r=0;const s={ambiguousAsWide:!u};for(const{segment:o}of ku.segment(e)){const i=o.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!ju.test(o)){if(xu().test(o)){r+=2;continue}r+=mt(i,s)}}return r}l(W,"d$1"),y(W,"stringWidth");const ht=y(e=>Math.max(...e.split(`
|
|
3
|
+
`).map(t=>W(t))),"getLongestLineWidth"),Su=y(e=>{const t=[];for(const u of e){const{length:n}=u,r=n-t.length;for(let s=0;s<r;s+=1)t.push(0);for(let s=0;s<n;s+=1){const o=ht(u[s]);o>t[s]&&(t[s]=o)}}return t},"getColumnContentWidths"),gt=/^\d+%$/,Ct={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Ou=y((e,t)=>{const u=[];for(let n=0;n<e.length;n+=1){const r=t[n]??"auto";if(typeof r=="number"||r==="auto"||r==="content-width"||typeof r=="string"&>.test(r)){u.push({...Ct,width:r,contentWidth:e[n]});continue}if(r&&typeof r=="object"){const s={...Ct,...r,contentWidth:e[n]};s.horizontalPadding=s.paddingLeft+s.paddingRight,u.push(s);continue}throw new Error(`Invalid column width: ${JSON.stringify(r)}`)}return u},"initColumns"),Tu=y((e,t)=>{for(const u of e){const{width:n}=u;if(n==="content-width"&&(u.width=u.contentWidth),n==="auto"){const a=Math.min(20,u.contentWidth);u.width=a,u.autoOverflow=u.contentWidth-a}if(typeof n=="string"&>.test(n)){const a=Number.parseFloat(n.slice(0,-1))/100;u.width=Math.floor(t*a)-(u.paddingLeft+u.paddingRight)}const{horizontalPadding:r}=u,s=1,o=s+r;if(o>=t){const a=o-t,c=Math.ceil(u.paddingLeft/r*a),D=a-c;u.paddingLeft-=c,u.paddingRight-=D,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";const i=t-u.horizontalPadding;u.width=Math.max(Math.min(u.width,i),s)}},"resolveColumnWidths"),Et=y(()=>Object.assign([],{columns:0}),"makeRow"),Pu=y((e,t)=>{const u=[Et()];let[n]=u;for(const r of e){const s=r.width+r.horizontalPadding;n.columns+s>t&&(n=Et(),u.push(n)),n.push(r),n.columns+=s}for(const r of u){const s=r.reduce((f,p)=>f+p.width+p.horizontalPadding,0);let o=t-s;if(o===0)continue;const i=r.filter(f=>"autoOverflow"in f),a=i.filter(f=>f.autoOverflow>0),c=a.reduce((f,p)=>f+p.autoOverflow,0),D=Math.min(c,o);for(const f of a){const p=Math.floor(f.autoOverflow/c*D);f.width+=p,o-=p}const F=Math.floor(o/i.length);for(let f=0;f<i.length;f+=1){const p=i[f];f===i.length-1?p.width+=o:p.width+=F,o-=F}}return u},"balanceAuto"),Iu=y((e,t,u)=>{const n=Ou(u,t);return Tu(n,e),Pu(n,e)},"computeColumnWidths"),ke=10,yt=y((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),Bt=y((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),wt=y((e=0)=>(t,u,n)=>`\x1B[${38+e};2;${t};${u};${n}m`,"wrapAnsi16m"),x={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(x.modifier);const Nu=Object.keys(x.color),Ru=Object.keys(x.bgColor);[...Nu,...Ru];function bt(){const e=new Map;for(const[t,u]of Object.entries(x)){for(const[n,r]of Object.entries(u))x[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},u[n]=x[n],e.set(r[0],r[1]);Object.defineProperty(x,t,{value:u,enumerable:!1})}return Object.defineProperty(x,"codes",{value:e,enumerable:!1}),x.color.close="\x1B[39m",x.bgColor.close="\x1B[49m",x.color.ansi=yt(),x.color.ansi256=Bt(),x.color.ansi16m=wt(),x.bgColor.ansi=yt(ke),x.bgColor.ansi256=Bt(ke),x.bgColor.ansi16m=wt(ke),Object.defineProperties(x,{rgbToAnsi256:{value:y((t,u,n)=>t===u&&u===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(u/255*5)+Math.round(n/255*5),"value"),enumerable:!1},hexToRgb:{value:y(t=>{const u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!u)return[0,0,0];let[n]=u;n.length===3&&(n=[...n].map(s=>s+s).join(""));const r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:y(t=>x.rgbToAnsi256(...x.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value:y(t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let u,n,r;if(t>=232)u=((t-232)*10+8)/255,n=u,r=u;else{t-=16;const i=t%36;u=Math.floor(t/36)/5,n=Math.floor(i/6)/5,r=i%6/5}const s=Math.max(u,n,r)*2;if(s===0)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(u));return s===2&&(o+=60),o},"value"),enumerable:!1},rgbToAnsi:{value:y((t,u,n)=>x.ansi256ToAnsi(x.rgbToAnsi256(t,u,n)),"value"),enumerable:!1},hexToAnsi:{value:y(t=>x.ansi256ToAnsi(x.hexToAnsi256(t)),"value"),enumerable:!1}}),x}l(bt,"FD"),y(bt,"assembleStyles");const _u=bt(),ie=new Set(["\x1B","\x9B"]),Lu=39,je="\x07",vt="[",Wu="]",At="m",ae=`${Wu}8;;`,$t=y(e=>`${ie.values().next().value}${vt}${e}${At}`,"wrapAnsiCode"),xt=y(e=>`${ie.values().next().value}${ae}${e}${je}`,"wrapAnsiHyperlink"),Mu=y(e=>e.split(" ").map(t=>W(t)),"wordLengths"),Se=y((e,t,u)=>{const n=[...t];let r=!1,s=!1,o=W(xe(e.at(-1)));for(const[i,a]of n.entries()){const c=W(a);if(o+c<=u?e[e.length-1]+=a:(e.push(a),o=0),ie.has(a)&&(r=!0,s=n.slice(i+1,i+1+ae.length).join("")===ae),r){s?a===je&&(r=!1,s=!1):a===At&&(r=!1);continue}o+=c,o===u&&i<n.length-1&&(e.push(""),o=0)}!o&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},"wrapWord"),Uu=y(e=>{const t=e.split(" ");let u=t.length;for(;u>0&&!(W(t[u-1])>0);)u--;return u===t.length?e:t.slice(0,u).join(" ")+t.slice(u).join("")},"stringVisibleTrimSpacesRight"),Vu=y((e,t,u={})=>{if(u.trim!==!1&&e.trim()==="")return"";let n="",r,s;const o=Mu(e);let i=[""];for(const[F,f]of e.split(" ").entries()){u.trim!==!1&&(i[i.length-1]=i.at(-1).trimStart());let p=W(i.at(-1));if(F!==0&&(p>=t&&(u.wordWrap===!1||u.trim===!1)&&(i.push(""),p=0),(p>0||u.trim===!1)&&(i[i.length-1]+=" ",p++)),u.hard&&o[F]>t){const C=t-p,g=1+Math.floor((o[F]-C-1)/t);Math.floor((o[F]-1)/t)<g&&i.push(""),Se(i,f,t);continue}if(p+o[F]>t&&p>0&&o[F]>0){if(u.wordWrap===!1&&p<t){Se(i,f,t);continue}i.push("")}if(p+o[F]>t&&u.wordWrap===!1){Se(i,f,t);continue}i[i.length-1]+=f}u.trim!==!1&&(i=i.map(F=>Uu(F)));const a=i.join(`
|
|
4
|
+
`),c=[...a];let D=0;for(const[F,f]of c.entries()){if(n+=f,ie.has(f)){const{groups:C}=new RegExp(`(?:\\${vt}(?<code>\\d+)m|\\${ae}(?<uri>.*)${je})`).exec(a.slice(D))||{groups:{}};if(C.code!==void 0){const g=Number.parseFloat(C.code);r=g===Lu?void 0:g}else C.uri!==void 0&&(s=C.uri.length===0?void 0:C.uri)}const p=_u.codes.get(Number(r));c[F+1]===`
|
|
5
|
+
`?(s&&(n+=xt("")),r&&p&&(n+=$t(p))):f===`
|
|
6
|
+
`&&(r&&p&&(n+=$t(r)),s&&(n+=xt(s))),D+=f.length}return n},"exec");function kt(e,t,u){return String(e).normalize().replaceAll(`\r
|
|
7
7
|
`,`
|
|
8
8
|
`).split(`
|
|
9
|
-
`).map(
|
|
10
|
-
`)}l(
|
|
11
|
-
`);if(a.postprocess){const{postprocess:F}=a;D=D.map((f,
|
|
12
|
-
`))}return
|
|
13
|
-
`)},"renderRow"),
|
|
14
|
-
`)},"terminalColumns"),
|
|
15
|
-
`}}l(
|
|
16
|
-
`}}l(
|
|
17
|
-
`):t.usage}}:void 0;if(e.name){const
|
|
18
|
-
`)}}}}l(
|
|
19
|
-
`)),
|
|
20
|
-
`:"")+(
|
|
21
|
-
`}table({tableData:t,tableOptions:
|
|
22
|
-
`);if("type"in t&&this[t.type]){const
|
|
23
|
-
`),u(),process.exit(1);e[a]=c}}l(ce,"v$1"),A(ce,"mapParametersToArguments");function Mt(e){return e===void 0||e!==!1}l(Mt,"G$1"),A(Mt,"helpEnabled");function Te(e,t,n,u){const r={...t.flags},s=t.version&&!("version"in r);s&&(r.version={type:Boolean,description:"Show version"});const{help:o}=t,i=Mt(o);i&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const a=En(r,u,{ignore:t.ignoreArgv}),c=A(()=>{console.log(t.version)},"showVersion");if(s&&a.flags.version===!0)return c(),process.exit(0);const D=new Zn,F=i&&o?.render?o.render:m=>D.render(m),f=A(m=>{const w=Hn({...t,...m?{help:m}:{},flags:r});console.log(F(w,D))},"showHelp");if(i&&a.flags.help===!0)return f(),process.exit(0);if(t.parameters){let{parameters:m}=t,w=a._;const O=m.indexOf("--"),$=m.slice(O+1),p=Object.create(null);if(O>-1&&$.length>0){m=m.slice(0,O);const b=a._["--"];w=w.slice(0,-b.length||void 0),ce(p,le(m),w,f),ce(p,le($),b,f)}else ce(p,le(m),w,f);Object.assign(a._,p)}const d={...a,showVersion:c,showHelp:f},C={command:e,...d};if(typeof n=="function"){const m=n(d);if(m&&"then"in m)return Object.assign(Promise.resolve(m),C)}return C}l(Te,"j"),A(Te,"cliBase");function Lt(e,t){const n=new Map;for(const u of t){const r=[u.options.name],{alias:s}=u.options;s&&(Array.isArray(s)?r.push(...s):r.push(s));for(const o of r){if(n.has(o))throw new Error(`Duplicate command name found: ${_(o)}`);n.set(o,u)}}return n.get(e)}l(Lt,"K$1"),A(Lt,"getCommand");function Ut(e,t,n=process.argv.slice(2)){if(!e)throw new Error("Options is required");if("name"in e&&(!e.name||!Se(e.name)))throw new Error(`Invalid script name: ${_(e.name)}`);const u=n[0];if(e.commands&&u&&Se(u)){const r=Lt(u,e.commands);if(r)return Te(r.options.name,{...r.options,parent:e},r.callback,n.slice(1))}return Te(void 0,e,t,n)}l(Ut,"Q$1"),A(Ut,"cli");function Xn(e,t){if(!e)throw new Error("Command options are required");const{name:n}=e;if(n===void 0)throw new Error("Command name is required");if(!Se(n))throw new Error(`Invalid command name ${JSON.stringify(n)}. Command names must be one word.`);return{options:e,callback:t}}l(Xn,"X$1"),A(Xn,"command");var er="2.23.1";const M=l(e=>R.promises.access(e).then(()=>!0,()=>!1),"fsExists");let V=!0;const J=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let X=0;if(J.process&&J.process.env&&J.process.stdout){const{FORCE_COLOR:e,NODE_DISABLE_COLORS:t,NO_COLOR:n,TERM:u,COLORTERM:r}=J.process.env;t||n||e==="0"?V=!1:e==="1"||e==="2"||e==="3"?V=!0:u==="dumb"?V=!1:"CI"in J.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in J.process.env)?V=!0:V=process.stdout.isTTY,V&&(process.platform==="win32"||r&&(r==="truecolor"||r==="24bit")?X=3:u&&(u.endsWith("-256color")||u.endsWith("256"))?X=2:X=1)}let Vt={enabled:V,supportLevel:X};function tr(e,t,n=1){const u=`\x1B[${e}m`,r=`\x1B[${t}m`,s=new RegExp(`\\x1b\\[${t}m`,"g");return o=>Vt.enabled&&Vt.supportLevel>=n?u+(""+o).replace(s,u)+r:""+o}l(tr,"kolorist");const ur=tr(2,22),De=l(e=>e.replaceAll("\\","/"),"slash"),T=l((e,t)=>(!g.isAbsolute(e)&&!e.startsWith(".")&&!e.startsWith("/")&&(e=`./${e}`),t&&!e.endsWith("/")&&(e+="/"),e),"normalizePath"),nr=l(()=>new Date().toLocaleTimeString(),"currentTime"),K=l((...e)=>console.log(ur(nr()),...e),"log"),rr=process.cwd(),fe=l(e=>T(g.relative(rr,e)),"formatPath"),sr=l(async e=>{const t=await U.readFile(e,"utf8");try{return Ju(t)}catch(n){throw new Error(`Failed to parse ${fe(e)}: ${n.message}`)}},"readPackageYaml"),zt=l(async e=>{const t=await U.readFile(e,"utf8");try{return JSON.parse(t)}catch(n){throw new Error(`Failed to parse ${fe(e)}: ${n.message}`)}},"readPackageJson"),or=l(async e=>{const t=g.join(e,"package.yaml");if(await M(t))return{packageJson:await sr(t),packageJsonPath:t};const n=g.join(e,"package.json");if(await M(n))return{packageJson:await zt(n),packageJsonPath:n};throw new Error(`package.json not found at: ${n} (also checked for package.yaml)`)},"readPackage"),ir=l(e=>{let t=!1;if(e.includes("=")){const[n,u]=e.split("=");e=u,t=n==="bin"||n==="binary"}return{type:"legacy",source:"cli",outputPath:T(e),isExecutable:t}},"parseCliInputFlag"),ar=l(({imports:e},t)=>{const n={};if(e)for(const u in e){if(u.startsWith("#"))continue;const r=e[u];typeof r=="string"&&(n[u]=g.join(t,r))}return n},"getAliases"),lr=l(e=>{const{publishConfig:t}=e;if(!t)return;const n=["bin","main","exports","types","module"];for(const u of n)t[u]&&(e[u]=t[u])},"applyPublishConfig"),z=l(e=>{if(e.endsWith(".mjs"))return"module";if(e.endsWith(".cjs"))return"commonjs";if(e.endsWith(".d.ts")||e.endsWith(".d.cts")||e.endsWith(".d.mts"))return"types"},"getFileType"),cr=l(e=>e[0]===".","isPath"),qt=l(e=>e.slice(1).filter(t=>typeof t=="string"&&t[0]!=="."),"getConditions"),pe=l((e,t,n,u=[n])=>{if(!e)return[];if(typeof e=="string")return[{source:{type:"package.json",path:[...u]},type:n,conditions:[],format:z(e)||t,outputPath:T(e)}];if(Array.isArray(e))return e.flatMap((s,o)=>{const i=[...u,o];return typeof s=="string"?cr(s)?{source:{type:"package.json",path:[...i]},type:n,conditions:qt(i),format:z(s)||t,outputPath:T(s)}:[]:pe(s,t,n,i)});const r=n==="imports"&&u.length===1;return Object.entries(e).flatMap(([s,o])=>{if(r&&s[0]!=="#")return[];const i=[...u,s];if(typeof o=="string"){const a=qt(i),c={type:n,source:{type:"package.json",path:i},outputPath:T(o),conditions:a};return a.includes("types")?{...c,format:"types"}:{...c,format:z(o)||t}}return pe(o,t,n,i)})},"parsePackageMap"),Dr=l((e,t)=>{const n=[],u=e.main;u&&n.push({source:{type:"package.json",path:["main"]},type:"legacy",format:z(u)??t,outputPath:T(u)});const r=e.module;r&&n.push({source:{type:"package.json",path:["module"]},type:"legacy",format:"module",outputPath:T(r)});const s=e.types;s&&n.push({source:{type:"package.json",path:["types"]},type:"legacy",format:"types",outputPath:T(s)});const{bin:o}=e;if(o)if(typeof o=="string")n.push({source:{type:"package.json",path:["bin"]},type:"binary",format:z(o)??t,outputPath:T(o)});else for(const[i,a]of Object.entries(o))n.push({source:{type:"package.json",path:["bin",i]},type:"binary",format:z(a)??t,outputPath:T(a)});if(e.exports){const i=pe(e.exports,t,"exports");n.push(...i)}if(e.imports){const i=pe(e.imports,t,"imports");n.push(...i)}return n},"getPkgEntryPoints"),fr=l(async(e,t)=>{for(const n of t){const u=e+n;if(await M(u))return{srcExtension:n,sourcePath:u}}},"tryExtensions"),Pe={".d.ts":[".d.ts",".d.mts",".d.cts",".ts",".tsx",".mts",".cts"],".d.mts":[".d.mts",".d.ts",".d.cts",".ts",".tsx",".mts",".cts"],".d.cts":[".d.cts",".d.ts",".d.mts",".ts",".tsx",".mts",".cts"],".js":[".js",".ts",".tsx",".mts",".cts"],".mjs":[".mjs",".js",".cjs",".mts",".cts",".ts",".tsx"],".cjs":[".cjs",".js",".mjs",".mts",".cts",".ts",".tsx"]},Jt=Object.keys(Pe),pr=l(async(e,t)=>{const{outputPath:n}=e,u=Jt.find(o=>n.endsWith(o));if(!u)return{error:`Unsupported extension (must be ${Jt.join("|")})`,exportEntry:e};const r=n.slice(t.dist.length,-u.length),s=await fr(Z.join(t.srcResolved,r),Pe[u]);return s?{exportEntry:e,distExtension:u,srcdist:t,...s}:{error:`Source file not found: ${Z.join(t.src,r)}(${Pe[u].join("|")})`,exportEntry:e}},"getSourcePath"),dr=l(async e=>{try{return await U.readdir(e,{withFileTypes:!0})}catch(t){const{code:n}=t;if(n==="ENOENT")return[];throw t}},"safeReaddir"),Kt=l(async(e,t)=>{const n=await dr(e);return(await Promise.all(n.map(async r=>{const s=Z.join(e,r.name);return r.isDirectory()?Kt(s,t):r.isFile()?Z.relative(t,s):[]}))).flat()},"getDirectoryFilesRecursive"),Gt=new Map,Ht=l(async e=>{let t=Gt.get(e);return t||(t=Kt(e,e),Gt.set(e,t)),t},"getDirectoryFiles"),de=/\.[^./]+$/,Yt=l((e,t)=>{const n=t.at(-1);if(!e.endsWith(n))return;if(t.some(r=>r.includes("/"))){const r=e.split("/").filter(Boolean);for(let s=1;s<=r.length;s+=1){const o=r.slice(0,s).join("/"),i=o+t.join(o);if(i===e)return i}}else for(let r=1;r<=e.length;r+=1){const s=e.slice(0,r),o=s+t.join(s);if(o===e)return o}},"extractWildcardMatch"),Fr=l(async(e,t)=>{const n=Array.from(t).sort((r,s)=>s.dist.length-r.dist.length);return(await Promise.all(e.map(async r=>{if(typeof r.source=="string"||r.source.path[0]!=="exports"&&r.source.path[0]!=="imports"||!r.outputPath.includes("*"))return[r];const s=r.source.path[1];if(!s.includes("*"))return[r];const o=r.outputPath.match(/\.d\.[cm]?ts$/)||r.outputPath.match(de);if(!o)return[{exportEntry:r,error:`Wildcard pattern must include a file extension (e.g., ".mjs", ".cjs"). Pattern: ${s}`}];const[i]=o,a=r.outputPath.slice(0,-i.length),[c,...D]=a.split("*"),F=c.lastIndexOf("/"),f=F===-1?c:c.slice(0,F+1),d=F>=0?c.slice(F+1):"",C=l($=>{const p=$.replace(de,""),b=p.split("/").at(-1)||"";if(d&&!b.startsWith(d))return!1;if(D.length===1){const B=D[0];return!(B&&!(B.includes("/")?p:b).endsWith(B))}const k=d?b.slice(d.length):p;return!!Yt(k,D)},"matchesPattern");if(f==="./")return(await Promise.all(n.map(async p=>{const b=p.srcResolved;return(await Ht(b)).flatMap(B=>{if(!C(B))return[];const E=B.replace(de,"");return[{...r,outputPath:p.dist+E+i}]})}))).flat();const m=n.find(({dist:$})=>f===$||f.startsWith($));if(!m)return[];const w=g.posix.join(m.srcResolved,f.slice(m.dist.length));return(await Ht(w)).flatMap($=>{if(!C($))return[];const p=$.replace(de,"");if(D.length>1){const b=Yt(p,D);return[{...r,outputPath:f+b+i}]}return[{...r,outputPath:f+p+i}]})}))).flat()},"expandBuildOutputWildcards"),hr=l(async(e,t,n)=>{lr(t);const u=t.type??"commonjs",r=await Fr(Dr(t,u),e);n.length>0&&r.push(...n.map(o=>({...o,format:z(o.outputPath)??u})));const s=new Map;return await Promise.all(r.map(async o=>{if("error"in o)return o;const i=e.find(({dist:c})=>o.outputPath.startsWith(c));if(!i)return{exportEntry:o,error:"Ignoring file outside of dist directories"};const a=s.get(o.outputPath);if(a){if(a.format!==o.format)throw new Error(`Conflicting export types "${a.format}" & "${o.format}" found for ${o.outputPath}`)}else s.set(o.outputPath,o);return await pr(o,i)}))},"getBuildEntryPoints"),ee=Symbol("entry"),mr=l(e=>({name:"esbuild-transform",transform:{filter:{id:/\.([cm]?[jt]s|[jt]sx)$/},async handler(t,n){const u=await rt(t,{...e,supported:{"import-meta":!0},loader:"default",sourcefile:n.replace(/\.[cm]ts/,".ts")});return{code:u.code,map:u.map||null}}}}),"esbuildTransform"),gr=l(e=>{if(e==="es")return"esm";if(e==="cjs"||e==="iife")return e},"getEsbuildFormat"),Cr=l(e=>({name:"esbuild-minify",renderChunk:l(async(t,n,u)=>{const r=await rt(t,{...e,format:gr(u.format),minify:!0,keepNames:!0});return{code:r.code,map:r.map||null}},"renderChunk")}),"esbuildMinify"),Ie=l((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2],"compareSemver"),Zt=l(({target:e})=>{const t=e.some(n=>{if(n=n.trim(),!n.startsWith("node"))return;const u=n.slice(4).split(".").map(Number),r=[u[0],u[1]??0,u[2]??0];return!(Ie(r,[12,20,0])>=0&&Ie(r,[13,0,0])<0||Ie(r,[14,13,1])>=0)});return{name:"node-builtins",resolveId:l(n=>{const u=n.startsWith("node:");if(t&&u&&(n=n.slice(5)),Xu.includes(n)||u)return{id:n,external:!0}},"resolveId")}},"nodeBuiltins"),Er=l(e=>{const t=e.filter(u=>u.exportEntry.type==="binary");if(t.length===0)return{name:"patch-binary"};let n;return{name:"patch-binary",options:l(()=>{n=new Set(t.flatMap(u=>u.inputNames))},"options"),renderChunk:l((u,r,s)=>{if(!r.isEntry||!r.facadeModuleId||!n.has(r.name))return;const o=new se(u);return o.prepend(`#!/usr/bin/env node
|
|
24
|
-
`),{code:o.toString(),map:s.sourcemap?o.generateMap({hires:!0}):void 0}},"renderChunk"),writeBundle:l(async(
|
|
25
|
-
`;break;case 114:
|
|
26
|
-
`),i++,c=
|
|
9
|
+
`).map(n=>Vu(n,t,u)).join(`
|
|
10
|
+
`)}l(kt,"BD"),y(kt,"wrapAnsi");const jt=y(e=>Array.from({length:e}).fill(""),"emptyLines"),zu=y((e,t)=>{const u=[];let n=0;for(const r of e){let s=0;const o=r.map(a=>{let c=t[n]??"";n+=1,a.preprocess&&(c=a.preprocess(c)),ht(c)>a.width&&(c=kt(c,a.width,{hard:!0}));let D=c.split(`
|
|
11
|
+
`);if(a.postprocess){const{postprocess:F}=a;D=D.map((f,p)=>F.call(a,f,p))}return a.paddingTop&&D.unshift(...jt(a.paddingTop)),a.paddingBottom&&D.push(...jt(a.paddingBottom)),D.length>s&&(s=D.length),{...a,lines:D}}),i=[];for(let a=0;a<s;a+=1){const c=o.map(D=>{const F=D.lines[a]??"",f=Number.isFinite(D.width)?" ".repeat(D.width-W(F)):"";let p=D.paddingLeftString;return D.align==="right"&&(p+=f),p+=F,D.align==="left"&&(p+=f),p+D.paddingRightString}).join("");i.push(c)}u.push(i.join(`
|
|
12
|
+
`))}return u.join(`
|
|
13
|
+
`)},"renderRow"),qu=y((e,t)=>{if(!e||e.length===0)return"";const u=Su(e),n=u.length;if(n===0)return"";const{stdoutColumns:r,columns:s}=Au(t);if(s.length>n)throw new Error(`${s.length} columns defined, but only ${n} columns found`);const o=Iu(r,s,u);return e.map(i=>zu(o,i)).join(`
|
|
14
|
+
`)},"terminalColumns"),Ju=["<",">","=",">=","<="],Ku=y(e=>{if(!Ju.includes(e))throw new TypeError(`Invalid breakpoint operator: ${e}`)},"assertOperator"),Gu=y(e=>{const t=Object.keys(e).map(u=>{const[n,r]=u.split(" ");Ku(n);const s=Number.parseInt(r,10);if(Number.isNaN(s))throw new TypeError(`Invalid breakpoint value: ${r}`);const o=e[u];return{operator:n,breakpoint:s,value:o}}).sort((u,n)=>n.breakpoint-u.breakpoint);return u=>t.find(({operator:n,breakpoint:r})=>n==="="&&u===r||n===">"&&u>r||n==="<"&&u<r||n===">="&&u>=r||n==="<="&&u<=r)?.value},"breakpoints");var Hu=Object.defineProperty,A=l((e,t)=>Hu(e,"name",{value:t,configurable:!0}),"s$1");const Yu=A(e=>e.replaceAll(/[\W_]([a-z\d])?/gi,(t,u)=>u?u.toUpperCase():""),"camelCase"),Zu=A(e=>e.replaceAll(/\B([A-Z])/g,"-$1").toLowerCase(),"kebabCase"),Qu={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:A(e=>e.trim(),"preprocess")},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function St(e){let t=!1;return{type:"table",data:{tableData:Object.keys(e).sort((u,n)=>u.localeCompare(n)).map(u=>{const n=e[u],r="alias"in n;return r&&(t=!0),{name:u,flag:n,flagFormatted:`--${Zu(u)}`,aliasesEnabled:t,aliasFormatted:r?`-${n.alias}`:void 0}}).map(u=>(u.aliasesEnabled=t,[{type:"flagName",data:u},{type:"flagDescription",data:u}])),tableBreakpoints:Qu}}}l(St,"T"),A(St,"renderFlags");const Ot=A(e=>!e||(e.version??(e.help?e.help.version:void 0)),"getVersion"),Tt=A(e=>{const t="parent"in e&&e.parent?.name;return(t?`${t} `:"")+e.name},"getName");function Pt(e){const t=[];e.name&&t.push(Tt(e));const u=Ot(e)??("parent"in e&&Ot(e.parent));if(u&&t.push(`v${u}`),t.length!==0)return{id:"name",type:"text",data:`${t.join(" ")}
|
|
15
|
+
`}}l(Pt,"k"),A(Pt,"getNameAndVersion");function It(e){const{help:t}=e;if(!(!t||!t.description))return{id:"description",type:"text",data:`${t.description}
|
|
16
|
+
`}}l(It,"_$1"),A(It,"getDescription");function Nt(e){const t=e.help||{};if("usage"in t)return t.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(t.usage)?t.usage.join(`
|
|
17
|
+
`):t.usage}}:void 0;if(e.name){const u=[],n=[Tt(e)];if(e.flags&&Object.keys(e.flags).length>0&&n.push("[flags...]"),e.parameters&&e.parameters.length>0){const{parameters:r}=e,s=r.indexOf("--"),o=s!==-1&&r.slice(s+1).some(i=>i.startsWith("<"));n.push(r.map(i=>i!=="--"?i:o?"--":"[--]").join(" "))}if(n.length>1&&u.push(n.join(" ")),"commands"in e&&e.commands?.length&&u.push(`${e.name} <command>`),u.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:u.join(`
|
|
18
|
+
`)}}}}l(Nt,"F"),A(Nt,"getUsage");function Rt(e){return!("commands"in e)||!e.commands?.length?void 0:{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:e.commands.map(t=>[t.options.name,t.options.help?t.options.help.description:""]),tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}l(Rt,"H$1"),A(Rt,"getCommands");function _t(e){if(!(!e.flags||Object.keys(e.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:St(e.flags),indentBody:0}}}l(_t,"U"),A(_t,"getFlags");function Lt(e){const{help:t}=e;if(!t||!t.examples||t.examples.length===0)return;let{examples:u}=t;if(Array.isArray(u)&&(u=u.join(`
|
|
19
|
+
`)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}l(Lt,"V$1"),A(Lt,"getExamples");function Wt(e){if(!("alias"in e)||!e.alias)return;const{alias:t}=e;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(t)?t.join(", "):t}}}l(Wt,"J$1"),A(Wt,"getAliases");const Xu=A(e=>[Pt,It,Nt,Rt,_t,Lt,Wt].map(t=>t(e)).filter(Boolean),"generateHelp"),er=Kn.WriteStream.prototype.hasColors();class tr{static{l(this,"z")}static{A(this,"Renderers")}text(t){return t}bold(t){return er?`\x1B[1m${t}\x1B[22m`:t.toLocaleUpperCase()}indentText({text:t,spaces:u}){return t.replaceAll(/^/gm," ".repeat(u))}heading(t){return this.bold(t)}section({title:t,body:u,indentBody:n=2}){return`${(t?`${this.heading(t)}
|
|
20
|
+
`:"")+(u?this.indentText({text:this.render(u),spaces:n}):"")}
|
|
21
|
+
`}table({tableData:t,tableOptions:u,tableBreakpoints:n}){return qu(t.map(r=>r.map(s=>this.render(s))),n?Gu(n):u)}flagParameter(t){return t===Boolean?"":t===String?"<string>":t===Number?"<number>":Array.isArray(t)?this.flagParameter(t[0]):"<value>"}flagOperator(t){return" "}flagName(t){const{flag:u,flagFormatted:n,aliasesEnabled:r,aliasFormatted:s}=t;let o="";if(s?o+=`${s}, `:r&&(o+=" "),o+=n,"placeholder"in u&&typeof u.placeholder=="string")o+=`${this.flagOperator(t)}${u.placeholder}`;else{const i=this.flagParameter("type"in u?u.type:u);i&&(o+=`${this.flagOperator(t)}${i}`)}return o}flagDefault(t){return JSON.stringify(t)}flagDescription({flag:t}){let u="description"in t?t.description??"":"";if("default"in t){let{default:n}=t;typeof n=="function"&&(n=n()),n&&(u+=` (default: ${this.flagDefault(n)})`)}return u}render(t){if(typeof t=="string")return t;if(Array.isArray(t))return t.map(u=>this.render(u)).join(`
|
|
22
|
+
`);if("type"in t&&this[t.type]){const u=this[t.type];if(typeof u=="function")return u.call(this,t.data)}throw new Error(`Invalid node type: ${JSON.stringify(t)}`)}}const Oe=A(e=>e.length>0&&!e.includes(" "),"isValidScriptName"),{stringify:L}=JSON,nr=/[|\\{}()[\]^$+*?.]/;function le(e){const t=[];let u,n;for(const r of e){if(n)throw new Error(`Invalid parameter: Spread parameter ${L(n)} must be last`);const s=r[0],o=r.at(-1);let i;if(s==="<"&&o===">"&&(i=!0,u))throw new Error(`Invalid parameter: Required parameter ${L(r)} cannot come after optional parameter ${L(u)}`);if(s==="["&&o==="]"&&(i=!1,u=r),i===void 0)throw new Error(`Invalid parameter: ${L(r)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let a=r.slice(1,-1);const c=a.slice(-3)==="...";c&&(n=r,a=a.slice(0,-3));const D=a.match(nr);if(D)throw new Error(`Invalid parameter: ${L(r)}. Invalid character found ${L(D[0])}`);t.push({name:a,required:i,spread:c})}return t}l(le,"b"),A(le,"parseParameters");function ce(e,t,u,n){for(let r=0;r<t.length;r+=1){const{name:s,required:o,spread:i}=t[r],a=Yu(s);if(a in e)throw new Error(`Invalid parameter: ${L(s)} is used more than once.`);const c=i?u.slice(r):u[r];if(i&&(r=t.length),o&&(!c||i&&c.length===0))return console.error(`Error: Missing required parameter ${L(s)}
|
|
23
|
+
`),n(),process.exit(1);e[a]=c}}l(ce,"v$1"),A(ce,"mapParametersToArguments");function Mt(e){return e===void 0||e!==!1}l(Mt,"G$1"),A(Mt,"helpEnabled");function Te(e,t,u,n){const r={...t.flags},s=t.version&&!("version"in r);s&&(r.version={type:Boolean,description:"Show version"});const{help:o}=t,i=Mt(o);i&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const a=bu(r,n,{ignore:t.ignoreArgv}),c=A(()=>{console.log(t.version)},"showVersion");if(s&&a.flags.version===!0)return c(),process.exit(0);const D=new tr,F=i&&o?.render?o.render:g=>D.render(g),f=A(g=>{const w=Xu({...t,...g?{help:g}:{},flags:r});console.log(F(w,D))},"showHelp");if(i&&a.flags.help===!0)return f(),process.exit(0);if(t.parameters){let{parameters:g}=t,w=a._;const S=g.indexOf("--"),$=g.slice(S+1),d=Object.create(null);if(S>-1&&$.length>0){g=g.slice(0,S);const b=a._["--"];w=w.slice(0,-b.length||void 0),ce(d,le(g),w,f),ce(d,le($),b,f)}else ce(d,le(g),w,f);Object.assign(a._,d)}const p={...a,showVersion:c,showHelp:f},C={command:e,...p};if(typeof u=="function"){const g=u(p);if(g&&"then"in g)return Object.assign(Promise.resolve(g),C)}return C}l(Te,"j"),A(Te,"cliBase");function Ut(e,t){const u=new Map;for(const n of t){const r=[n.options.name],{alias:s}=n.options;s&&(Array.isArray(s)?r.push(...s):r.push(s));for(const o of r){if(u.has(o))throw new Error(`Duplicate command name found: ${L(o)}`);u.set(o,n)}}return u.get(e)}l(Ut,"K$1"),A(Ut,"getCommand");function Vt(e,t,u=process.argv.slice(2)){if(!e)throw new Error("Options is required");if("name"in e&&(!e.name||!Oe(e.name)))throw new Error(`Invalid script name: ${L(e.name)}`);const n=u[0];if(e.commands&&n&&Oe(n)){const r=Ut(n,e.commands);if(r)return Te(r.options.name,{...r.options,parent:e},r.callback,u.slice(1))}return Te(void 0,e,t,u)}l(Vt,"Q$1"),A(Vt,"cli");function ur(e,t){if(!e)throw new Error("Command options are required");const{name:u}=e;if(u===void 0)throw new Error("Command name is required");if(!Oe(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:e,callback:t}}l(ur,"X$1"),A(ur,"command");var rr="2.24.0";const M=l(e=>_.promises.access(e).then(()=>!0,()=>!1),"fsExists");let V=!0;const J=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let X=0;if(J.process&&J.process.env&&J.process.stdout){const{FORCE_COLOR:e,NODE_DISABLE_COLORS:t,NO_COLOR:u,TERM:n,COLORTERM:r}=J.process.env;t||u||e==="0"?V=!1:e==="1"||e==="2"||e==="3"?V=!0:n==="dumb"?V=!1:"CI"in J.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in J.process.env)?V=!0:V=process.stdout.isTTY,V&&(process.platform==="win32"||r&&(r==="truecolor"||r==="24bit")?X=3:n&&(n.endsWith("-256color")||n.endsWith("256"))?X=2:X=1)}let zt={enabled:V,supportLevel:X};function sr(e,t,u=1){const n=`\x1B[${e}m`,r=`\x1B[${t}m`,s=new RegExp(`\\x1b\\[${t}m`,"g");return o=>zt.enabled&&zt.supportLevel>=u?n+(""+o).replace(s,n)+r:""+o}l(sr,"kolorist");const or=sr(2,22),De=l(e=>e.replaceAll("\\","/"),"slash"),T=l((e,t)=>(!h.isAbsolute(e)&&!e.startsWith(".")&&!e.startsWith("/")&&(e=`./${e}`),t&&!e.endsWith("/")&&(e+="/"),e),"normalizePath"),ir=l(()=>new Date().toLocaleTimeString(),"currentTime"),K=l((...e)=>console.log(or(ir()),...e),"log"),ar=process.cwd(),fe=l(e=>T(h.relative(ar,e)),"formatPath"),lr=l(async e=>{const t=await P.readFile(e,"utf8");try{return Zn(t)}catch(u){throw new Error(`Failed to parse ${fe(e)}: ${u.message}`)}},"readPackageYaml"),qt=l(async e=>{const t=await P.readFile(e,"utf8");try{return JSON.parse(t)}catch(u){throw new Error(`Failed to parse ${fe(e)}: ${u.message}`)}},"readPackageJson"),cr=l(async e=>{const t=h.join(e,"package.yaml");if(await M(t))return{packageJson:await lr(t),packageJsonPath:t};const u=h.join(e,"package.json");if(await M(u))return{packageJson:await qt(u),packageJsonPath:u};throw new Error(`package.json not found at: ${u} (also checked for package.yaml)`)},"readPackage"),Dr=l(e=>{let t=!1;if(e.includes("=")){const[u,n]=e.split("=");e=n,t=u==="bin"||u==="binary"}return{type:"legacy",source:"cli",outputPath:T(e),isExecutable:t}},"parseCliInputFlag"),fr=l(({imports:e},t)=>{const u={};if(e)for(const n in e){if(n.startsWith("#"))continue;const r=e[n];typeof r=="string"&&(u[n]=h.join(t,r))}return u},"getAliases"),dr=l(e=>{const{publishConfig:t}=e;if(!t)return;const u=["bin","main","exports","types","module"];for(const n of u)t[n]&&(e[n]=t[n])},"applyPublishConfig"),z=l(e=>{if(e.endsWith(".mjs"))return"module";if(e.endsWith(".cjs"))return"commonjs";if(e.endsWith(".d.ts")||e.endsWith(".d.cts")||e.endsWith(".d.mts"))return"types"},"getFileType"),pr=l(e=>e[0]===".","isPath"),Jt=l(e=>e.slice(1).filter(t=>typeof t=="string"&&t[0]!=="."),"getConditions"),de=l((e,t,u,n=[u])=>{if(!e)return[];if(typeof e=="string")return[{source:{type:"package.json",path:[...n]},type:u,conditions:[],format:z(e)||t,outputPath:T(e)}];if(Array.isArray(e))return e.flatMap((s,o)=>{const i=[...n,o];return typeof s=="string"?pr(s)?{source:{type:"package.json",path:[...i]},type:u,conditions:Jt(i),format:z(s)||t,outputPath:T(s)}:[]:de(s,t,u,i)});const r=u==="imports"&&n.length===1;return Object.entries(e).flatMap(([s,o])=>{if(r&&s[0]!=="#")return[];const i=[...n,s];if(typeof o=="string"){const a=Jt(i),c={type:u,source:{type:"package.json",path:i},outputPath:T(o),conditions:a};return a.includes("types")?{...c,format:"types"}:{...c,format:z(o)||t}}return de(o,t,u,i)})},"parsePackageMap"),Fr=l((e,t)=>{const u=[],n=e.main;n&&u.push({source:{type:"package.json",path:["main"]},type:"legacy",format:z(n)??t,outputPath:T(n)});const r=e.module;r&&u.push({source:{type:"package.json",path:["module"]},type:"legacy",format:"module",outputPath:T(r)});const s=e.types;s&&u.push({source:{type:"package.json",path:["types"]},type:"legacy",format:"types",outputPath:T(s)});const{bin:o}=e;if(o)if(typeof o=="string")u.push({source:{type:"package.json",path:["bin"]},type:"binary",format:z(o)??t,outputPath:T(o)});else for(const[i,a]of Object.entries(o))u.push({source:{type:"package.json",path:["bin",i]},type:"binary",format:z(a)??t,outputPath:T(a)});if(e.exports){const i=de(e.exports,t,"exports");u.push(...i)}if(e.imports){const i=de(e.imports,t,"imports");u.push(...i)}return u},"getPkgEntryPoints"),mr=l(async(e,t)=>{for(const u of t){const n=e+u;if(await M(n))return{srcExtension:u,sourcePath:n}}},"tryExtensions"),Pe={".d.ts":[".d.ts",".d.mts",".d.cts",".ts",".tsx",".mts",".cts"],".d.mts":[".d.mts",".d.ts",".d.cts",".ts",".tsx",".mts",".cts"],".d.cts":[".d.cts",".d.ts",".d.mts",".ts",".tsx",".mts",".cts"],".js":[".js",".ts",".tsx",".mts",".cts"],".mjs":[".mjs",".js",".cjs",".mts",".cts",".ts",".tsx"],".cjs":[".cjs",".js",".mjs",".mts",".cts",".ts",".tsx"]},Kt=Object.keys(Pe),hr=l(async(e,t)=>{const{outputPath:u}=e,n=Kt.find(o=>u.endsWith(o));if(!n)return{error:`Unsupported extension (must be ${Kt.join("|")})`,exportEntry:e};const r=u.slice(t.dist.length,-n.length),s=await mr(Z.join(t.srcResolved,r),Pe[n]);return s?{exportEntry:e,distExtension:n,srcdist:t,...s}:{error:`Source file not found: ${Z.join(t.src,r)}(${Pe[n].join("|")})`,exportEntry:e}},"getSourcePath"),gr=l(async e=>{try{return await P.readdir(e,{withFileTypes:!0})}catch(t){const{code:u}=t;if(u==="ENOENT")return[];throw t}},"safeReaddir"),Gt=l(async(e,t)=>{const u=await gr(e);return(await Promise.all(u.map(async r=>{const s=Z.join(e,r.name);return r.isDirectory()?Gt(s,t):r.isFile()?Z.relative(t,s):[]}))).flat()},"getDirectoryFilesRecursive"),Ht=new Map,Yt=l(async e=>{let t=Ht.get(e);return t||(t=Gt(e,e),Ht.set(e,t)),t},"getDirectoryFiles"),pe=/\.[^./]+$/,Zt=l((e,t)=>{const u=t.at(-1);if(!e.endsWith(u))return;if(t.some(r=>r.includes("/"))){const r=e.split("/").filter(Boolean);for(let s=1;s<=r.length;s+=1){const o=r.slice(0,s).join("/"),i=o+t.join(o);if(i===e)return i}}else for(let r=1;r<=e.length;r+=1){const s=e.slice(0,r),o=s+t.join(s);if(o===e)return o}},"extractWildcardMatch"),Cr=l(async(e,t)=>{const u=Array.from(t).sort((r,s)=>s.dist.length-r.dist.length);return(await Promise.all(e.map(async r=>{if(typeof r.source=="string"||r.source.path[0]!=="exports"&&r.source.path[0]!=="imports"||!r.outputPath.includes("*"))return[r];const s=r.source.path[1];if(!s.includes("*"))return[r];const o=r.outputPath.match(/\.d\.[cm]?ts$/)||r.outputPath.match(pe);if(!o)return[{exportEntry:r,error:`Wildcard pattern must include a file extension (e.g., ".mjs", ".cjs"). Pattern: ${s}`}];const[i]=o,a=r.outputPath.slice(0,-i.length),[c,...D]=a.split("*"),F=c.lastIndexOf("/"),f=F===-1?c:c.slice(0,F+1),p=F>=0?c.slice(F+1):"",C=l($=>{const d=$.replace(pe,""),b=d.split("/").at(-1)||"";if(p&&!b.startsWith(p))return!1;if(D.length===1){const B=D[0];return!(B&&!(B.includes("/")?d:b).endsWith(B))}const k=p?b.slice(p.length):d;return!!Zt(k,D)},"matchesPattern");if(f==="./")return(await Promise.all(u.map(async d=>{const b=d.srcResolved;return(await Yt(b)).flatMap(B=>{if(!C(B))return[];const E=B.replace(pe,"");return[{...r,outputPath:d.dist+E+i}]})}))).flat();const g=u.find(({dist:$})=>f===$||f.startsWith($));if(!g)return[];const w=h.posix.join(g.srcResolved,f.slice(g.dist.length));return(await Yt(w)).flatMap($=>{if(!C($))return[];const d=$.replace(pe,"");if(D.length>1){const b=Zt(d,D);return[{...r,outputPath:f+b+i}]}return[{...r,outputPath:f+d+i}]})}))).flat()},"expandBuildOutputWildcards"),Er=l(async(e,t,u)=>{dr(t);const n=t.type??"commonjs",r=await Cr(Fr(t,n),e);u.length>0&&r.push(...u.map(o=>({...o,format:z(o.outputPath)??n})));const s=new Map;return await Promise.all(r.map(async o=>{if("error"in o)return o;const i=e.find(({dist:c})=>o.outputPath.startsWith(c));if(!i)return{exportEntry:o,error:"Ignoring file outside of dist directories"};const a=s.get(o.outputPath);if(a){if(a.format!==o.format)throw new Error(`Conflicting export types "${a.format}" & "${o.format}" found for ${o.outputPath}`)}else s.set(o.outputPath,o);return await hr(o,i)}))},"getBuildEntryPoints"),ee=Symbol("entry"),yr=l(e=>({name:"esbuild-transform",transform:{filter:{id:/\.([cm]?[jt]s|[jt]sx)$/},async handler(t,u){const n=await st(t,{...e,supported:{"import-meta":!0},loader:"default",sourcefile:u.replace(/\.[cm]ts/,".ts")});return{code:n.code,map:n.map||null}}}}),"esbuildTransform"),Br=l(e=>{if(e==="es")return"esm";if(e==="cjs"||e==="iife")return e},"getEsbuildFormat"),wr=l(e=>({name:"esbuild-minify",renderChunk:l(async(t,u,n)=>{const r=await st(t,{...e,format:Br(n.format),minify:!0,keepNames:!0});return{code:r.code,map:r.map||null}},"renderChunk")}),"esbuildMinify"),Ie=l((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2],"compareSemver"),Qt=l(({target:e})=>{const t=e.some(u=>{if(u=u.trim(),!u.startsWith("node"))return;const n=u.slice(4).split(".").map(Number),r=[n[0],n[1]??0,n[2]??0];return!(Ie(r,[12,20,0])>=0&&Ie(r,[13,0,0])<0||Ie(r,[14,13,1])>=0)});return{name:"node-builtins",resolveId:l(u=>{const n=u.startsWith("node:");if(t&&n&&(u=u.slice(5)),ru.includes(u)||n)return{id:u,external:!0}},"resolveId")}},"nodeBuiltins"),br=l(e=>{const t=e.filter(n=>n.exportEntry.type==="binary");if(t.length===0)return{name:"patch-binary"};let u;return{name:"patch-binary",options:l(()=>{u=new Set(t.flatMap(n=>n.inputNames))},"options"),renderChunk:l((n,r,s)=>{if(!r.isEntry||!r.facadeModuleId||!u.has(r.name))return;const o=new se(n);return o.prepend(`#!/usr/bin/env node
|
|
24
|
+
`),{code:o.toString(),map:s.sourcemap?o.generateMap({hires:!0}):void 0}},"renderChunk"),writeBundle:l(async(n,r)=>{const s=new Set(Object.keys(r).map(o=>T(Z.join(n.dir,o))));await Promise.all(t.map(async({exportEntry:o})=>{const{outputPath:i}=o;s.has(i)&&await _.promises.chmod(i,493)}))},"writeBundle")}},"patchBinary"),Xt=l(e=>{const t=e.indexOf("/");if(t===-1)return[e,void 0];if(e[0]==="@"){const u=e.indexOf("/",t+1);return u===-1?[e,void 0]:[e.slice(0,u),e.slice(u+1)]}return[e.slice(0,t),e.slice(t+1)]},"parseSpecifier"),en=l(e=>{const t=e[0];return!(t==="."||t==="/"||t==="#"||h.isAbsolute(e))},"isBareSpecifier"),Ne=l((e,t=process.cwd())=>De(h.relative(t,e)).split("/").includes("node_modules"),"isFromNodeModules"),tn=l(()=>{const e=/\.(?:[mc]?js|jsx)$/;return{name:"resolve-js-to-ts",async resolveId(t,u,n){if(u&&e.test(t)){if(!Ne(u)){const i=t.replace(/js(x?)$/,"ts$1");return this.resolve(i,u,{...n,skipSelf:!0})}const r=await this.resolve(t,u,{...n,skipSelf:!0});if(r)return r;const s=t.replace(/js(x?)$/,"ts$1"),o=await this.resolve(s,u,{...n,skipSelf:!0});if(o)return o}return null}}},"resolveJsToTs"),nn=l(e=>e!==null&&typeof e=="object","A"),G=l((e,t)=>Object.assign(new Error(`[${e}]: ${t}`),{code:e}),"a"),un="ERR_INVALID_PACKAGE_CONFIG",Re="ERR_INVALID_PACKAGE_TARGET",vr="ERR_PACKAGE_PATH_NOT_EXPORTED",Ar=/^\d+$/,$r=/^(\.{1,2}|node_modules)$/i,xr=/\/|\\/;var rn=(e=>(e.Export="exports",e.Import="imports",e))(rn||{});const _e=l((e,t,u,n,r)=>{if(t==null)return[];if(typeof t=="string"){const[s,...o]=t.split(xr);if(s===".."||o.some(i=>$r.test(i)))throw G(Re,`Invalid "${e}" target "${t}" defined in the package config`);return[r?t.replace(/\*/g,r):t]}if(Array.isArray(t))return t.flatMap(s=>_e(e,s,u,n,r));if(nn(t)){for(const s of Object.keys(t)){if(Ar.test(s))throw G(un,"Cannot contain numeric property keys");if(s==="default"||n.includes(s))return _e(e,t[s],u,n,r)}return[]}throw G(Re,`Invalid "${e}" target "${t}"`)},"f"),te="*",kr=l((e,t)=>{const u=e.indexOf(te),n=t.indexOf(te);return u===n?t.length>e.length:n>u},"m");function jr(e,t){if(!t.includes(te)&&e.hasOwnProperty(t))return[t];let u,n;for(const r of Object.keys(e))if(r.includes(te)){const[s,o,i]=r.split(te);if(i===void 0&&t.startsWith(s)&&t.endsWith(o)){const a=t.slice(s.length,-o.length||void 0);a&&(!u||kr(u,r))&&(u=r,n=a)}}return[u,n]}l(jr,"d");const Sr=l(e=>Object.keys(e).reduce((t,u)=>{const n=u===""||u[0]!==".";if(t===void 0||t===n)return n;throw G(un,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),Or=/^\w+:/,Tr=l((e,t,u)=>{if(!e)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof e=="string"||Array.isArray(e)||nn(e)&&Sr(e))&&(e={".":e});const[n,r]=jr(e,t),s=_e(rn.Export,e[n],t,u,r);if(s.length===0)throw G(vr,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const o of s)if(!o.startsWith("./")&&!Or.test(o))throw G(Re,`Invalid "exports" target "${o}" defined in the package config`);return s},"v");var Pr=Object.defineProperty,m=l((e,t)=>Pr(e,"name",{value:t,configurable:!0}),"o");function I(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}l(I,"h"),m(I,"slash");const Le=m(e=>{const t=_[e];return(u,...n)=>{const r=`${e}:${n.join(":")}`;let s=u?.get(r);return s===void 0&&(s=Reflect.apply(t,_,n),u?.set(r,s)),s}},"cacheFs"),N=Le("existsSync"),Ir=Le("readFileSync"),Fe=Le("statSync"),sn=m((e,t,u)=>{for(;;){const n=h.posix.join(e,t);if(N(u,n))return n;const r=h.dirname(e);if(r===e)return;e=r}},"findUp"),We=/^\.{1,2}(\/.*)?$/,Me=m(e=>{const t=I(e);return We.test(t)?t:`./${t}`},"normalizeRelativePath");function on(e,t=!1){const u=e.length;let n=0,r="",s=0,o=16,i=0,a=0,c=0,D=0,F=0;function f(d,b){let k=0,B=0;for(;k<d;){let E=e.charCodeAt(n);if(E>=48&&E<=57)B=B*16+E-48;else if(E>=65&&E<=70)B=B*16+E-65+10;else if(E>=97&&E<=102)B=B*16+E-97+10;else break;n++,k++}return k<d&&(B=-1),B}l(f,"y"),m(f,"scanHexDigits");function p(d){n=d,r="",s=0,o=16,F=0}l(p,"v"),m(p,"setPosition");function C(){let d=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&q(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&q(e.charCodeAt(n)))for(n++;n<e.length&&q(e.charCodeAt(n));)n++;else return F=3,e.substring(d,n);let b=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&q(e.charCodeAt(n))){for(n++;n<e.length&&q(e.charCodeAt(n));)n++;b=n}else F=3;return e.substring(d,b)}l(C,"j"),m(C,"scanNumber");function g(){let d="",b=n;for(;;){if(n>=u){d+=e.substring(b,n),F=2;break}const k=e.charCodeAt(n);if(k===34){d+=e.substring(b,n),n++;break}if(k===92){if(d+=e.substring(b,n),n++,n>=u){F=2;break}switch(e.charCodeAt(n++)){case 34:d+='"';break;case 92:d+="\\";break;case 47:d+="/";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+=`
|
|
25
|
+
`;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:const B=f(4);B>=0?d+=String.fromCharCode(B):F=4;break;default:F=5}b=n;continue}if(k>=0&&k<=31)if(H(k)){d+=e.substring(b,n),F=2;break}else F=6;n++}return d}l(g,"d"),m(g,"scanString");function w(){if(r="",F=0,s=n,a=i,D=c,n>=u)return s=u,o=17;let d=e.charCodeAt(n);if(me(d)){do n++,r+=String.fromCharCode(d),d=e.charCodeAt(n);while(me(d));return o=15}if(H(d))return n++,r+=String.fromCharCode(d),d===13&&e.charCodeAt(n)===10&&(n++,r+=`
|
|
26
|
+
`),i++,c=n,o=14;switch(d){case 123:return n++,o=1;case 125:return n++,o=2;case 91:return n++,o=3;case 93:return n++,o=4;case 58:return n++,o=6;case 44:return n++,o=5;case 34:return n++,r=g(),o=10;case 47:const b=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<u&&!H(e.charCodeAt(n));)n++;return r=e.substring(b,n),o=12}if(e.charCodeAt(n+1)===42){n+=2;const k=u-1;let B=!1;for(;n<k;){const E=e.charCodeAt(n);if(E===42&&e.charCodeAt(n+1)===47){n+=2,B=!0;break}n++,H(E)&&(E===13&&e.charCodeAt(n)===10&&n++,i++,c=n)}return B||(n++,F=1),r=e.substring(b,n),o=13}return r+=String.fromCharCode(d),n++,o=16;case 45:if(r+=String.fromCharCode(d),n++,n===u||!q(e.charCodeAt(n)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r+=C(),o=11;default:for(;n<u&&S(d);)n++,d=e.charCodeAt(n);if(s!==n){switch(r=e.substring(s,n),r){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return r+=String.fromCharCode(d),n++,o=16}}l(w,"A"),m(w,"scanNext");function S(d){if(me(d)||H(d))return!1;switch(d){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}l(S,"E"),m(S,"isUnknownContentCharacter");function $(){let d;do d=w();while(d>=12&&d<=15);return d}return l($,"B"),m($,"scanNextNonTrivia"),{setPosition:p,getPosition:m(()=>n,"getPosition"),scan:t?$:w,getToken:m(()=>o,"getToken"),getTokenValue:m(()=>r,"getTokenValue"),getTokenOffset:m(()=>s,"getTokenOffset"),getTokenLength:m(()=>n-s,"getTokenLength"),getTokenStartLine:m(()=>a,"getTokenStartLine"),getTokenStartCharacter:m(()=>s-D,"getTokenStartCharacter"),getTokenError:m(()=>F,"getTokenError")}}l(on,"Le"),m(on,"createScanner");function me(e){return e===32||e===9}l(me,"X"),m(me,"isWhiteSpace");function H(e){return e===10||e===13}l(H,"S"),m(H,"isLineBreak");function q(e){return e>=48&&e<=57}l(q,"$"),m(q,"isDigit");var an;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(an||(an={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const Y=200;new Array(Y).fill(0).map((e,t)=>`
|
|
27
27
|
`+" ".repeat(t)),new Array(Y).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(Y).fill(0).map((e,t)=>`\r
|
|
28
28
|
`+" ".repeat(t)),new Array(Y).fill(0).map((e,t)=>`
|
|
29
29
|
`+" ".repeat(t)),new Array(Y).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(Y).fill(0).map((e,t)=>`\r
|
|
30
|
-
`+" ".repeat(t));var me;(function(e){e.DEFAULT={allowTrailingComma:!1}})(me||(me={}));function iu(e,t=[],n=me.DEFAULT){let u=null,r=[];const s=[];function o(i){Array.isArray(r)?r.push(i):u!==null&&(r[u]=i)}return l(o,"r"),h(o,"onValue"),au(e,{onObjectBegin:h(()=>{const i={};o(i),s.push(r),r=i,u=null},"onObjectBegin"),onObjectProperty:h(i=>{u=i},"onObjectProperty"),onObjectEnd:h(()=>{r=s.pop()},"onObjectEnd"),onArrayBegin:h(()=>{const i=[];o(i),s.push(r),r=i,u=null},"onArrayBegin"),onArrayEnd:h(()=>{r=s.pop()},"onArrayEnd"),onLiteralValue:o,onError:h((i,a,c)=>{t.push({error:i,offset:a,length:c})},"onError")},n),r[0]}l(iu,"$e"),h(iu,"parse$1");function au(e,t,n=me.DEFAULT){const u=su(e,!1),r=[];let s=0;function o(v){return v?()=>s===0&&v(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}l(o,"r"),h(o,"toNoArgVisit");function i(v){return v?S=>s===0&&v(S,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}l(i,"f"),h(i,"toOneArgVisit");function a(v){return v?S=>s===0&&v(S,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),()=>r.slice()):()=>!0}l(a,"u"),h(a,"toOneArgVisitWithPath");function c(v){return v?()=>{s>0?s++:v(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),()=>r.slice())===!1&&(s=1)}:()=>!0}l(c,"g"),h(c,"toBeginVisit");function D(v){return v?()=>{s>0&&s--,s===0&&v(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter())}:()=>!0}l(D,"w"),h(D,"toEndVisit");const F=c(t.onObjectBegin),f=a(t.onObjectProperty),d=D(t.onObjectEnd),C=c(t.onArrayBegin),m=D(t.onArrayEnd),w=a(t.onLiteralValue),O=i(t.onSeparator),$=o(t.onComment),p=i(t.onError),b=n&&n.disallowComments,k=n&&n.allowTrailingComma;function B(){for(;;){const v=u.scan();switch(u.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:b||E(11);break;case 2:E(12);break;case 6:E(16);break}switch(v){case 12:case 13:b?E(10):$();break;case 16:E(1);break;case 15:case 14:break;default:return v}}}l(B,"T"),h(B,"scanNext");function E(v,S=[],ut=[]){if(p(v),S.length+ut.length>0){let re=u.getToken();for(;re!==17;){if(S.indexOf(re)!==-1){B();break}else if(ut.indexOf(re)!==-1)break;re=B()}}}l(E,"p"),h(E,"handleError");function ve(v){const S=u.getTokenValue();return v?w(S):(f(S),r.push(S)),B(),!0}l(ve,"U"),h(ve,"parseString");function Qe(){switch(u.getToken()){case 11:const v=u.getTokenValue();let S=Number(v);isNaN(S)&&(E(2),S=0),w(S);break;case 7:w(null);break;case 8:w(!0);break;case 9:w(!1);break;default:return!1}return B(),!0}l(Qe,"a"),h(Qe,"parseLiteral");function Xe(){return u.getToken()!==10?(E(3,[],[2,5]),!1):(ve(!1),u.getToken()===6?(O(":"),B(),ne()||E(4,[],[2,5])):E(5,[],[2,5]),r.pop(),!0)}l(Xe,"N"),h(Xe,"parseProperty");function et(){F(),B();let v=!1;for(;u.getToken()!==2&&u.getToken()!==17;){if(u.getToken()===5){if(v||E(4,[],[]),O(","),B(),u.getToken()===2&&k)break}else v&&E(6,[],[]);Xe()||E(4,[],[2,5]),v=!0}return d(),u.getToken()!==2?E(7,[2],[]):B(),!0}l(et,"_e"),h(et,"parseObject");function tt(){C(),B();let v=!0,S=!1;for(;u.getToken()!==4&&u.getToken()!==17;){if(u.getToken()===5){if(S||E(4,[],[]),O(","),B(),u.getToken()===4&&k)break}else S&&E(6,[],[]);v?(r.push(0),v=!1):r[r.length-1]++,ne()||E(4,[],[4,5]),S=!0}return m(),v||r.pop(),u.getToken()!==4?E(8,[4],[]):B(),!0}l(tt,"ye"),h(tt,"parseArray");function ne(){switch(u.getToken()){case 3:return tt();case 1:return et();case 10:return ve(!0);default:return Qe()}}return l(ne,"z"),h(ne,"parseValue"),B(),u.getToken()===17?n.allowEmptyContent?!0:(E(4,[],[]),!1):ne()?(u.getToken()!==17&&E(9,[],[]),!0):(E(4,[],[]),!1)}l(au,"xe"),h(au,"visit");var lu;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(lu||(lu={}));var cu;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(cu||(cu={}));const Sr=iu;var Du;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Du||(Du={}));const fu=h((e,t)=>Sr(Or(t,e,"utf8")),"readJsonc"),Ue=Symbol("implicitBaseUrl"),L="${configDir}",Tr=h(()=>{const{findPnpApi:e}=Qu;return e&&e(process.cwd())},"getPnpApi"),Ve=h((e,t,n,u)=>{const r=`resolveFromPackageJsonPath:${e}:${t}:${n}`;if(u!=null&&u.has(r))return u.get(r);const s=fu(e,u);if(!s)return;let o=t||"tsconfig.json";if(!n&&s.exports)try{const[i]=kr(s.exports,t,["require","types"]);o=i}catch{return!1}else!t&&s.tsconfig&&(o=s.tsconfig);return o=g.join(e,"..",o),u?.set(r,o),o},"resolveFromPackageJsonPath"),ze="package.json",qe="tsconfig.json",Pr=h((e,t,n)=>{let u=e;if(e===".."&&(u=g.join(u,qe)),e[0]==="."&&(u=g.resolve(t,u)),g.isAbsolute(u)){if(I(n,u)){if(Fe(n,u).isFile())return u}else if(!u.endsWith(".json")){const d=`${u}.json`;if(I(n,d))return d}return}const[r,...s]=e.split("/"),o=r[0]==="@"?`${r}/${s.shift()}`:r,i=s.join("/"),a=Tr();if(a){const{resolveRequest:d}=a;try{if(o===e){const C=d(g.join(o,ze),t);if(C){const m=Ve(C,i,!1,n);if(m&&I(n,m))return m}}else{let C;try{C=d(e,t,{extensions:[".json"]})}catch{C=d(g.join(e,qe),t)}if(C)return C}}catch{}}const c=ru(g.resolve(t),g.join("node_modules",o),n);if(!c||!Fe(n,c).isDirectory())return;const D=g.join(c,ze);if(I(n,D)){const d=Ve(D,i,!1,n);if(d===!1)return;if(d&&I(n,d)&&Fe(n,d).isFile())return d}const F=g.join(c,i),f=F.endsWith(".json");if(!f){const d=`${F}.json`;if(I(n,d))return d}if(I(n,F)){if(Fe(n,F).isDirectory()){const d=g.join(F,ze);if(I(n,d)){const m=Ve(d,"",!0,n);if(m&&I(n,m))return m}const C=g.join(F,qe);if(I(n,C))return C}else if(f)return F}},"resolveExtendsPath"),Je=h((e,t)=>Le(g.relative(e,t)),"pathRelative"),pu=["files","include","exclude"],du=h((e,t,n)=>{const u=g.join(t,n),r=g.relative(e,u);return P(r)||"./"},"resolveAndRelativize"),Ir=h((e,t,n)=>{const u=g.relative(e,t);if(!u)return n;const r=n.startsWith("./")?n.slice(2):n;return P(`${u}/${r}`)},"prefixPattern"),Nr=h((e,t,n,u)=>{const r=Pr(e,t,u);if(!r)throw new Error(`File '${e}' not found.`);if(n.has(r))throw new Error(`Circularity detected while resolving configuration: ${r}`);n.add(r);const s=g.dirname(r),o=Fu(r,u,n);delete o.references;const{compilerOptions:i}=o;if(i){const{baseUrl:a}=i;a&&!a.startsWith(L)&&(i.baseUrl=du(t,s,a));const{outDir:c}=i;c&&!c.startsWith(L)&&(i.outDir=du(t,s,c))}for(const a of pu){const c=o[a];c&&(o[a]=c.map(D=>D.startsWith(L)?D:Ir(t,s,D)))}return o},"resolveExtends"),Rr=["outDir","declarationDir"],Fu=h((e,t,n=new Set)=>{let u;try{u=fu(e,t)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e}`)}if(typeof u!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);const r=g.dirname(e);if(u.compilerOptions){const{compilerOptions:s}=u;s.paths&&!s.baseUrl&&(s[Ue]=r)}if(u.extends){const s=Array.isArray(u.extends)?u.extends:[u.extends];delete u.extends;for(const o of s.reverse()){const i=Nr(o,r,new Set(n),t),a={...i,...u,compilerOptions:{...i.compilerOptions,...u.compilerOptions}};i.watchOptions&&(a.watchOptions={...i.watchOptions,...u.watchOptions}),u=a}}if(u.compilerOptions){const{compilerOptions:s}=u,o=["baseUrl","rootDir"];for(const i of o){const a=s[i];if(a&&!a.startsWith(L)){const c=g.resolve(r,a),D=Je(r,c);s[i]=D}}for(const i of Rr){let a=s[i];a&&(Array.isArray(u.exclude)||(u.exclude=[]),u.exclude.includes(a)||u.exclude.push(a),a.startsWith(L)||(a=Le(a)),s[i]=a)}}else u.compilerOptions={};if(u.include?(u.include=u.include.map(P),u.files&&delete u.files):u.files&&(u.files=u.files.map(s=>s.startsWith(L)?s:Le(s))),u.watchOptions){const{watchOptions:s}=u;s.excludeDirectories&&(s.excludeDirectories=s.excludeDirectories.map(o=>P(g.resolve(r,o))))}return u},"_parseTsconfig"),ge=h((e,t)=>{if(e.startsWith(L))return P(g.join(t,e.slice(L.length)))},"interpolateConfigDir"),_r=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],Wr=h(e=>{if(e.strict){const t=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const n of t)e[n]===void 0&&(e[n]=!0)}if(e.target){let t=e.target.toLowerCase();t==="es2015"&&(t="es6"),e.target=t,t==="esnext"&&(e.module!=null||(e.module="es6"),e.useDefineForClassFields!=null||(e.useDefineForClassFields=!0)),(t==="es6"||t==="es2016"||t==="es2017"||t==="es2018"||t==="es2019"||t==="es2020"||t==="es2021"||t==="es2022"||t==="es2023"||t==="es2024")&&(e.module!=null||(e.module="es6")),(t==="es2022"||t==="es2023"||t==="es2024")&&(e.useDefineForClassFields!=null||(e.useDefineForClassFields=!0))}if(e.module){let t=e.module.toLowerCase();t==="es2015"&&(t="es6"),e.module=t,(t==="es6"||t==="es2020"||t==="es2022"||t==="esnext"||t==="none"||t==="system"||t==="umd"||t==="amd")&&(e.moduleResolution!=null||(e.moduleResolution="classic")),t==="system"&&(e.allowSyntheticDefaultImports!=null||(e.allowSyntheticDefaultImports=!0)),(t==="node16"||t==="nodenext"||t==="preserve")&&(e.esModuleInterop!=null||(e.esModuleInterop=!0),e.allowSyntheticDefaultImports!=null||(e.allowSyntheticDefaultImports=!0)),(t==="node16"||t==="nodenext")&&(e.moduleDetection!=null||(e.moduleDetection="force"),e.useDefineForClassFields!=null||(e.useDefineForClassFields=!0)),t==="node16"&&(e.target!=null||(e.target="es2022"),e.moduleResolution!=null||(e.moduleResolution="node16")),t==="nodenext"&&(e.target!=null||(e.target="esnext"),e.moduleResolution!=null||(e.moduleResolution="nodenext")),t==="preserve"&&(e.moduleResolution!=null||(e.moduleResolution="bundler"))}if(e.moduleResolution){let t=e.moduleResolution.toLowerCase();t==="node"&&(t="node10"),e.moduleResolution=t,(t==="node16"||t==="nodenext"||t==="bundler")&&(e.resolvePackageJsonExports!=null||(e.resolvePackageJsonExports=!0),e.resolvePackageJsonImports!=null||(e.resolvePackageJsonImports=!0)),t==="bundler"&&(e.allowSyntheticDefaultImports!=null||(e.allowSyntheticDefaultImports=!0),e.resolveJsonModule!=null||(e.resolveJsonModule=!0))}e.esModuleInterop&&(e.allowSyntheticDefaultImports!=null||(e.allowSyntheticDefaultImports=!0)),e.verbatimModuleSyntax&&(e.isolatedModules!=null||(e.isolatedModules=!0),e.preserveConstEnums!=null||(e.preserveConstEnums=!0)),e.isolatedModules&&(e.preserveConstEnums!=null||(e.preserveConstEnums=!0)),e.rewriteRelativeImportExtensions&&(e.allowImportingTsExtensions!=null||(e.allowImportingTsExtensions=!0))},"normalizeCompilerOptions"),hu=h((e,t=new Map)=>{const n=g.resolve(e),u=Fu(n,t),r=g.dirname(n),{compilerOptions:s}=u;if(s){for(const i of _r){const a=s[i];if(a){const c=ge(a,r);s[i]=c?Je(r,c):a}}for(const i of["rootDirs","typeRoots"]){const a=s[i];a&&(s[i]=a.map(c=>{const D=ge(c,r);return D?Je(r,D):c}))}const{paths:o}=s;if(o)for(const i of Object.keys(o))o[i]=o[i].map(a=>{var c;return(c=ge(a,r))!=null?c:a});Wr(s)}for(const o of pu){const i=u[o];i&&(u[o]=i.map(a=>{var c;return(c=ge(a,r))!=null?c:a}))}return u},"parseTsconfig"),Mr=h((e=process.cwd(),t="tsconfig.json",n=new Map)=>{const u=ru(P(e),t,n);if(!u)return null;const r=hu(u,n);return{path:u,config:r}},"getTsconfig"),Lr=/\*/g,mu=h((e,t)=>{const n=e.match(Lr);if(n&&n.length>1)throw new Error(t)},"assertStarCount"),Ur=h(e=>{if(e.includes("*")){const[t,n]=e.split("*");return{prefix:t,suffix:n}}return e},"parsePattern"),Vr=h(({prefix:e,suffix:t},n)=>n.startsWith(e)&&n.endsWith(t),"isPatternMatch"),zr=h((e,t,n)=>Object.entries(e).map(([u,r])=>(mu(u,`Pattern '${u}' can have at most one '*' character.`),{pattern:Ur(u),substitutions:r.map(s=>{if(mu(s,`Substitution '${s}' in pattern '${u}' can have at most one '*' character.`),!t&&!Me.test(s))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return g.resolve(n,s)})})),"parsePaths"),qr=h(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:n,paths:u}=t;if(!n&&!u)return null;const r=Ue in t&&t[Ue],s=g.resolve(g.dirname(e.path),n||r||"."),o=u?zr(u,n,s):[];return i=>{if(Me.test(i))return[];const a=[];for(const f of o){if(f.pattern===i)return f.substitutions.map(P);typeof f.pattern!="string"&&a.push(f)}let c,D=-1;for(const f of a)Vr(f.pattern,i)&&f.pattern.prefix.length>D&&(D=f.pattern.prefix.length,c=f);if(!c)return n?[P(g.join(s,i))]:[];const F=i.slice(c.pattern.prefix.length,i.length-c.pattern.suffix.length);return c.substitutions.map(f=>P(f.replace("*",F)))}},"createPathsMatcher");var Jr=Object.defineProperty,Ce=h((e,t)=>Jr(e,"name",{value:t,configurable:!0}),"s");const gu=Ce(e=>{let t="";for(let n=0;n<e.length;n+=1){const u=e[n],r=u.toUpperCase();t+=u===r?u.toLowerCase():r}return t},"invertCase"),Ke=new Map,Cu=Ce((e,t)=>{const n=un.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(n,""),!t.existsSync(gu(n))}finally{try{t.unlinkSync(n)}catch{}}},"checkDirectoryCaseWithWrite"),Kr=Ce((e,t,n)=>{try{return Cu(e,n)}catch(u){if(t===void 0)return Cu(tn.tmpdir(),n);throw u}},"checkDirectoryCaseWithFallback"),Gr=Ce((e,t=en,n=!0)=>{const u=e??process.cwd();if(n&&Ke.has(u))return Ke.get(u);let r;const s=gu(u);return s!==u&&t.existsSync(u)?r=!t.existsSync(s):r=Kr(u,e,t),n&&Ke.set(u,r),r},"isFsCaseSensitive"),{join:Ee}=g.posix,Ge={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},Hr=h(e=>{const t=[...Ge.ts],n=[...Ge.cts],u=[...Ge.mts];return e!=null&&e.allowJs&&(t.push(".js",".jsx"),n.push(".cjs"),u.push(".mjs")),[...t,...n,...u]},"getSupportedExtensions"),Yr=h(e=>{const t=[];if(!e)return t;const{outDir:n,declarationDir:u}=e;return n&&t.push(n),u&&t.push(u),t},"getDefaultExcludeSpec"),Eu=h(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),Zr=["node_modules","bower_components","jspm_packages"],He=`(?!(${Zr.join("|")})(/|$))`,Qr=/(?:^|\/)[^.*?]+$/,yu="**/*",ye="[^/]",Ye="[^./]",Bu=process.platform==="win32";h(({config:e,path:t},n=Gr())=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!g.isAbsolute(t))throw new Error("The tsconfig path must be absolute");Bu&&(t=P(t));const u=g.dirname(t),{files:r,include:s,exclude:o,compilerOptions:i}=e,a=r?.map(C=>Ee(u,C)),c=Hr(i),D=n?"":"i",F=(o||Yr(i)).map(C=>{const m=Ee(u,C),w=Eu(m).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${ye}*`).replaceAll(String.raw`\?`,ye);return new RegExp(`^${w}($|/)`,D)}),f=r||s?s:[yu],d=f?f.map(C=>{let m=Ee(u,C);Qr.test(m)&&(m=Ee(m,yu));const w=Eu(m).replaceAll(String.raw`/\*\*`,`(/${He}${Ye}${ye}*)*?`).replaceAll(/(\/)?\\\*/g,(O,$)=>{const p=`(${Ye}|(\\.(?!min\\.js$))?)*`;return $?`/${He}${Ye}${p}`:p}).replaceAll(/(\/)?\\\?/g,(O,$)=>{const p=ye;return $?`/${He}${p}`:p});return new RegExp(`^${w}$`,D)}):void 0;return C=>{if(!g.isAbsolute(C))throw new Error("filePath must be absolute");if(Bu&&(C=P(C)),a!=null&&a.includes(C)||!(!c.some(m=>C.endsWith(m))||F.some(m=>m.test(C)))&&d&&d.some(m=>m.test(C)))return e}},"createFilesMatcher");const wu="resolve-tsconfig-paths",Xr=l(e=>e[0]===".","isRelative"),es=l(e=>e[0]==="/"||/^[\s\S]:/.test(e),"isAbsolute"),bu=l(e=>{const t=qr(e);return t?{name:wu,async resolveId(n,u,r){if(!u||Xr(n)||es(n)||n.startsWith("\0"))return null;const s=t(n);for(const o of s){const i=await this.resolve(o,u,{skipSelf:!0,...r});if(i)return i}return null}}:{name:wu}},"resolveTsconfigPaths"),vu=/^#!.*/,ts=l(()=>({name:"strip-hashbang",transform:l(e=>{if(!vu.test(e))return null;const t=new se(e);return t.replace(vu,""),{code:t.toString(),map:t.generateMap({hires:!0})}},"transform")}),"stripHashbang");class us{static{l(this,"WalkerBase")}constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:l(()=>this.should_skip=!0,"skip"),remove:l(()=>this.should_remove=!0,"remove"),replace:l(t=>this.replacement=t,"replace")}}replace(t,n,u,r){t&&n&&(u!=null?t[n][u]=r:t[n]=r)}remove(t,n,u){t&&n&&(u!=null?t[n].splice(u,1):delete t[n])}}class ns extends us{static{l(this,"SyncWalker")}constructor(t,n){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:l(()=>this.should_skip=!0,"skip"),remove:l(()=>this.should_remove=!0,"remove"),replace:l(u=>this.replacement=u,"replace")},this.enter=t,this.leave=n}visit(t,n,u,r){if(t){if(this.enter){const o=this.should_skip,i=this.should_remove,a=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,n,u,r),this.replacement&&(t=this.replacement,this.replace(n,u,r,t)),this.should_remove&&this.remove(n,u,r);const c=this.should_skip,D=this.should_remove;if(this.should_skip=o,this.should_remove=i,this.replacement=a,c)return t;if(D)return null}let s;for(s in t){const o=t[s];if(o&&typeof o=="object")if(Array.isArray(o)){const i=o;for(let a=0;a<i.length;a+=1){const c=i[a];Au(c)&&(this.visit(c,t,s,a)||a--)}}else Au(o)&&this.visit(o,t,s,null)}if(this.leave){const o=this.replacement,i=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,n,u,r),this.replacement&&(t=this.replacement,this.replace(n,u,r,t)),this.should_remove&&this.remove(n,u,r);const a=this.should_remove;if(this.replacement=o,this.should_remove=i,a)return null}}return t}}function Au(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}l(Au,"isNode");function rs(e,{enter:t,leave:n}){return new ns(t,n).visit(e,null)}l(rs,"walk");const ss=l(()=>{const e='import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);';return{name:"esmInjectCreateRequire",renderChunk(t,n,u){if(u.format!=="es"||!/\brequire\b/.test(t))return null;const r=this.parse(t);let s=nn(r,"scope"),o=!1;if(rs(r,{enter(a,c){a.scope&&(s=a.scope),!(a.type!=="Identifier"||a.name!=="require")&&(c?.type==="Property"&&c.key===a&&!c.compute||c?.type!=="MemberExpression"&&(s.contains("require")||(o=!0,this.skip())))},leave:l(a=>{a.scope&&(s=s.parent)},"leave")}),!o)return null;const i=new se(t);return i.prepend(e),{code:i.toString(),map:i.generateMap({hires:!0})}}}},"esmInjectCreateRequire"),Be="\0natives:",os=l(e=>{const t=`${e}/natives`,n=new Map;return{name:"native-modules",buildStart:l(()=>{n.clear()},"buildStart"),async resolveId(u,r){if(u.startsWith(Be)||!u.endsWith(".node"))return null;const s=r?g.resolve(g.dirname(r),u):g.resolve(u);try{await U.access(s)}catch{return this.warn(`Native module not found: ${s}`),null}const o=g.basename(s);let i=o,a=1;const c=new Set(Array.from(n.values()).map(F=>g.basename(F)));for(;c.has(i);){const F=g.extname(o);i=`${g.basename(o,F)}_${a}${F}`,a+=1}const D=g.join(t,i);return n.set(s,D),Be+s},load(u){if(!u.startsWith(Be))return null;const r=u.slice(Be.length),s=n.get(r);return s?`export default require("${`./${De(g.relative(e,s))}`}");`:this.error(`Could not find staged native module for: ${r}`)},generateBundle:l(async()=>{n.size!==0&&(await U.mkdir(t,{recursive:!0}),await Promise.all(Array.from(n.entries()).map(([u,r])=>U.copyFile(u,r))))},"generateBundle")}},"nativeModules"),$u=l(()=>{const e=R.realpathSync.native(process.cwd());return{name:"external-pkg-imports",resolveId(t,n){return t[0]!=="#"||n&&Ne(n,e)?null:{id:t,external:!0}}}},"externalPkgImports");function xu(e,t){return Wu(e)?e:_u(t||".",e)}l(xu,"absolute");function is(e,t){let{last:n,cwd:u}=t||{},r=xu(e,u),s=xu(n||"/",u),o,i=[];for(;o!==s&&(i.push(r),r=Mu(o=r),r!==o););return i}l(is,"up$1");function as(e,t){let n,u,r=t&&t.cwd||"";for(n of is(r,t))if(u=Lu(n,e),Ru(u))return u}l(as,"up");const ls=l(async e=>{const t=await U.stat(e).catch(()=>{});if(t){if(t.isFile())return e;if(t.isDirectory()){const r=g.join(e,"index.js");if(await M(r))return r;const s=g.join(e,"index.json");if(await M(s))return s}}const n=`${e}.js`;if(await M(n))return n;const u=`${e}.json`;return await M(u)?u:null},"tryResolveImplicit"),cs=l(()=>({name:"resolve-implicit-externals",async resolveId(e,t,n){if(!Xt(e))return null;const[u,r]=Qt(e);if(!r)return null;const s=await this.resolve(e,t,{...n,skipSelf:!0});if(!s||!s.external)return s;const o=t?g.dirname(t):process.cwd(),i=as(`node_modules/${u}/package.json`,{cwd:o});if(!i)return s;const a=await zt(i),c=g.dirname(i);if(a.exports)return s;const D=g.join(c,r),F=await ls(D);if(!F)return s;const f=De(g.relative(c,F)),d=`${u}/${f}`;return{...s,id:d}}}),"resolveImplicitExternals"),we="@types/",ku=l(e=>e[0]==="@"?`${we}${e.slice(1).replace("/","__")}`:`${we}${e}`,"getAtTypesPackageName"),Ds=l(e=>{const t=e.slice(we.length);return t.includes("__")?`@${t.replace("__","/")}`:t},"getOriginalPackageName"),fs=["peerDependencies","dependencies","optionalDependencies"],ju=l((e,t)=>{const n=R.realpathSync.native(process.cwd()),u=new Set,r=new Set(Object.keys(e.devDependencies||{}));for(const s of fs){const o=e[s];if(o)for(const i of Object.keys(o))u.add(i),i.startsWith(we)&&u.add(Ds(i))}return{name:"externalize-dependencies",async resolveId(s,o,i){if(!Xt(s))return null;const[a]=Qt(s);if(u.has(a)){if(t?.forTypes){const c=ku(a);r.has(c)&&console.warn(`Recommendation: "${c}" is bundled (devDependencies) but "${a}" is externalized. Place "${c}" in dependencies/peerDependencies as well so users don't have missing types.`)}return{id:s,external:!0}}if(r.has(a)){const c=await this.resolve(s,o,{...i,skipSelf:!0});if(!c){const D=`Could not resolve "${s}" even though it's declared in package.json. Try re-installing node_modules.`;throw console.error(D),new Error(D)}if(t?.forTypes){const D=ku(a);u.has(D)&&console.warn(`Recommendation: "${D}" is externalized but "${a}" is bundled (devDependencies). This may cause type mismatches for consumers. Consider moving "${a}" to dependencies or "${D}" to devDependencies.`)}return c}return o&&!Ne(o,n)&&!t?.skipUnlistedWarnings&&console.warn(`"${a}" imported by "${De(o)}" but not declared in package.json. Will be bundled to prevent failure at runtime.`),null}}},"externalizeDependencies"),be=l(e=>e.replace("\0","").split("?")[0],"cleanRollupId"),ps=l(e=>{try{return sn(e)}catch{return{exports:[],reexports:[]}}},"safeParse"),ds=l(()=>{const e=new Map,t=l((n,u=new Set)=>{const r=be(n);if(u.has(r))return[];u.add(r);const s=e.get(r);if(!s)return[];const o=[...s.exports];for(const i of s.reexports)o.push(...t(i,u));return o},"getFinalExports");return{name:"cjs-annotate-exports",buildStart:l(async()=>{await rn(),e.clear()},"buildStart"),async transform(n,u){const r=be(u);if(!/\.c?js$/.test(r)||!n.includes("exports"))return;const{exports:s,reexports:o}=ps(n);if(s.length===0&&o.length===0)return;const a=(await Promise.all(o.map(async c=>{const D=await this.resolve(c,u);return D?be(D.id):""}))).filter(Boolean);e.set(r,{exports:s,reexports:a})},renderChunk:{order:"post",handler(n,u,r){if(r.format!=="cjs"||!u.isEntry||!u.facadeModuleId)return null;const s=be(u.facadeModuleId),o=[...new Set(t(s))];if(o.length>0){const i=new se(n);return i.append(`
|
|
31
|
-
0&&(module.exports={${o.join(",")}});`),{code:i.toString(),map:i.generateMap({hires:!0})}}}}}},"cjsAnnotateExports"),
|
|
30
|
+
`+" ".repeat(t));var he;(function(e){e.DEFAULT={allowTrailingComma:!1}})(he||(he={}));function ln(e,t=[],u=he.DEFAULT){let n=null,r=[];const s=[];function o(i){Array.isArray(r)?r.push(i):n!==null&&(r[n]=i)}return l(o,"r"),m(o,"onValue"),cn(e,{onObjectBegin:m(()=>{const i={};o(i),s.push(r),r=i,n=null},"onObjectBegin"),onObjectProperty:m(i=>{n=i},"onObjectProperty"),onObjectEnd:m(()=>{r=s.pop()},"onObjectEnd"),onArrayBegin:m(()=>{const i=[];o(i),s.push(r),r=i,n=null},"onArrayBegin"),onArrayEnd:m(()=>{r=s.pop()},"onArrayEnd"),onLiteralValue:o,onError:m((i,a,c)=>{t.push({error:i,offset:a,length:c})},"onError")},u),r[0]}l(ln,"$e"),m(ln,"parse$1");function cn(e,t,u=he.DEFAULT){const n=on(e,!1),r=[];let s=0;function o(v){return v?()=>s===0&&v(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}l(o,"r"),m(o,"toNoArgVisit");function i(v){return v?O=>s===0&&v(O,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}l(i,"f"),m(i,"toOneArgVisit");function a(v){return v?O=>s===0&&v(O,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>r.slice()):()=>!0}l(a,"u"),m(a,"toOneArgVisitWithPath");function c(v){return v?()=>{s>0?s++:v(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>r.slice())===!1&&(s=1)}:()=>!0}l(c,"g"),m(c,"toBeginVisit");function D(v){return v?()=>{s>0&&s--,s===0&&v(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}l(D,"w"),m(D,"toEndVisit");const F=c(t.onObjectBegin),f=a(t.onObjectProperty),p=D(t.onObjectEnd),C=c(t.onArrayBegin),g=D(t.onArrayEnd),w=a(t.onLiteralValue),S=i(t.onSeparator),$=o(t.onComment),d=i(t.onError),b=u&&u.disallowComments,k=u&&u.allowTrailingComma;function B(){for(;;){const v=n.scan();switch(n.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:b||E(11);break;case 2:E(12);break;case 6:E(16);break}switch(v){case 12:case 13:b?E(10):$();break;case 16:E(1);break;case 15:case 14:break;default:return v}}}l(B,"T"),m(B,"scanNext");function E(v,O=[],ut=[]){if(d(v),O.length+ut.length>0){let re=n.getToken();for(;re!==17;){if(O.indexOf(re)!==-1){B();break}else if(ut.indexOf(re)!==-1)break;re=B()}}}l(E,"p"),m(E,"handleError");function ve(v){const O=n.getTokenValue();return v?w(O):(f(O),r.push(O)),B(),!0}l(ve,"U"),m(ve,"parseString");function Xe(){switch(n.getToken()){case 11:const v=n.getTokenValue();let O=Number(v);isNaN(O)&&(E(2),O=0),w(O);break;case 7:w(null);break;case 8:w(!0);break;case 9:w(!1);break;default:return!1}return B(),!0}l(Xe,"a"),m(Xe,"parseLiteral");function et(){return n.getToken()!==10?(E(3,[],[2,5]),!1):(ve(!1),n.getToken()===6?(S(":"),B(),ue()||E(4,[],[2,5])):E(5,[],[2,5]),r.pop(),!0)}l(et,"N"),m(et,"parseProperty");function tt(){F(),B();let v=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(v||E(4,[],[]),S(","),B(),n.getToken()===2&&k)break}else v&&E(6,[],[]);et()||E(4,[],[2,5]),v=!0}return p(),n.getToken()!==2?E(7,[2],[]):B(),!0}l(tt,"_e"),m(tt,"parseObject");function nt(){C(),B();let v=!0,O=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(O||E(4,[],[]),S(","),B(),n.getToken()===4&&k)break}else O&&E(6,[],[]);v?(r.push(0),v=!1):r[r.length-1]++,ue()||E(4,[],[4,5]),O=!0}return g(),v||r.pop(),n.getToken()!==4?E(8,[4],[]):B(),!0}l(nt,"ye"),m(nt,"parseArray");function ue(){switch(n.getToken()){case 3:return nt();case 1:return tt();case 10:return ve(!0);default:return Xe()}}return l(ue,"z"),m(ue,"parseValue"),B(),n.getToken()===17?u.allowEmptyContent?!0:(E(4,[],[]),!1):ue()?(n.getToken()!==17&&E(9,[],[]),!0):(E(4,[],[]),!1)}l(cn,"xe"),m(cn,"visit");var Dn;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Dn||(Dn={}));var fn;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(fn||(fn={}));const Nr=ln;var dn;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(dn||(dn={}));const pn=m((e,t)=>Nr(Ir(t,e,"utf8")),"readJsonc"),Ue=Symbol("implicitBaseUrl"),U="${configDir}",Rr=m(()=>{const{findPnpApi:e}=uu;return e&&e(process.cwd())},"getPnpApi"),Ve=m((e,t,u,n)=>{const r=`resolveFromPackageJsonPath:${e}:${t}:${u}`;if(n!=null&&n.has(r))return n.get(r);const s=pn(e,n);if(!s)return;let o=t||"tsconfig.json";if(!u&&s.exports)try{const[i]=Tr(s.exports,t,["require","types"]);o=i}catch{return!1}else!t&&s.tsconfig&&(o=s.tsconfig);return o=h.join(e,"..",o),n?.set(r,o),o},"resolveFromPackageJsonPath"),ze="package.json",qe="tsconfig.json",_r=m((e,t,u)=>{let n=e;if(e===".."&&(n=h.join(n,qe)),e[0]==="."&&(n=h.resolve(t,n)),h.isAbsolute(n)){if(N(u,n)){if(Fe(u,n).isFile())return n}else if(!n.endsWith(".json")){const p=`${n}.json`;if(N(u,p))return p}return}const[r,...s]=e.split("/"),o=r[0]==="@"?`${r}/${s.shift()}`:r,i=s.join("/"),a=Rr();if(a){const{resolveRequest:p}=a;try{if(o===e){const C=p(h.join(o,ze),t);if(C){const g=Ve(C,i,!1,u);if(g&&N(u,g))return g}}else{let C;try{C=p(e,t,{extensions:[".json"]})}catch{C=p(h.join(e,qe),t)}if(C)return C}}catch{}}const c=sn(h.resolve(t),h.join("node_modules",o),u);if(!c||!Fe(u,c).isDirectory())return;const D=h.join(c,ze);if(N(u,D)){const p=Ve(D,i,!1,u);if(p===!1)return;if(p&&N(u,p)&&Fe(u,p).isFile())return p}const F=h.join(c,i),f=F.endsWith(".json");if(!f){const p=`${F}.json`;if(N(u,p))return p}if(N(u,F)){if(Fe(u,F).isDirectory()){const p=h.join(F,ze);if(N(u,p)){const g=Ve(p,"",!0,u);if(g&&N(u,g))return g}const C=h.join(F,qe);if(N(u,C))return C}else if(f)return F}},"resolveExtendsPath"),Je=m((e,t)=>Me(h.relative(e,t)),"pathRelative"),Fn=["files","include","exclude"],mn=m((e,t,u)=>{const n=h.join(t,u),r=h.relative(e,n);return I(r)||"./"},"resolveAndRelativize"),Lr=m((e,t,u)=>{const n=h.relative(e,t);if(!n)return u;const r=u.startsWith("./")?u.slice(2):u;return I(`${n}/${r}`)},"prefixPattern"),Wr=m((e,t,u,n)=>{const r=_r(e,t,n);if(!r)throw new Error(`File '${e}' not found.`);if(u.has(r))throw new Error(`Circularity detected while resolving configuration: ${r}`);u.add(r);const s=h.dirname(r),o=hn(r,n,u);delete o.references;const{compilerOptions:i}=o;if(i){const{baseUrl:a}=i;a&&!a.startsWith(U)&&(i.baseUrl=mn(t,s,a));const{outDir:c}=i;c&&!c.startsWith(U)&&(i.outDir=mn(t,s,c))}for(const a of Fn){const c=o[a];c&&(o[a]=c.map(D=>D.startsWith(U)?D:Lr(t,s,D)))}return o},"resolveExtends"),Mr=["outDir","declarationDir"],hn=m((e,t,u=new Set)=>{let n;try{n=pn(e,t)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e}`)}if(typeof n!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);const r=h.dirname(e);if(n.compilerOptions){const{compilerOptions:s}=n;s.paths&&!s.baseUrl&&(s[Ue]=r)}if(n.extends){const s=Array.isArray(n.extends)?n.extends:[n.extends];delete n.extends;for(const o of s.reverse()){const i=Wr(o,r,new Set(u),t),a={...i,...n,compilerOptions:{...i.compilerOptions,...n.compilerOptions}};i.watchOptions&&(a.watchOptions={...i.watchOptions,...n.watchOptions}),n=a}}if(n.compilerOptions){const{compilerOptions:s}=n,o=["baseUrl","rootDir"];for(const i of o){const a=s[i];if(a&&!a.startsWith(U)){const c=h.resolve(r,a),D=Je(r,c);s[i]=D}}for(const i of Mr){let a=s[i];a&&(Array.isArray(n.exclude)||(n.exclude=[]),n.exclude.includes(a)||n.exclude.push(a),a.startsWith(U)||(a=Me(a)),s[i]=a)}}else n.compilerOptions={};if(n.include?(n.include=n.include.map(I),n.files&&delete n.files):n.files&&(n.files=n.files.map(s=>s.startsWith(U)?s:Me(s))),n.watchOptions){const{watchOptions:s}=n;s.excludeDirectories&&(s.excludeDirectories=s.excludeDirectories.map(o=>I(h.resolve(r,o))))}return n},"_parseTsconfig"),ge=m((e,t)=>{if(e.startsWith(U))return I(h.join(t,e.slice(U.length)))},"interpolateConfigDir"),Ur=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],Vr=m(e=>{if(e.strict){const t=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const u of t)e[u]===void 0&&(e[u]=!0)}if(e.target){let t=e.target.toLowerCase();t==="es2015"&&(t="es6"),e.target=t,t==="esnext"&&(e.module!=null||(e.module="es6"),e.useDefineForClassFields!=null||(e.useDefineForClassFields=!0)),(t==="es6"||t==="es2016"||t==="es2017"||t==="es2018"||t==="es2019"||t==="es2020"||t==="es2021"||t==="es2022"||t==="es2023"||t==="es2024")&&(e.module!=null||(e.module="es6")),(t==="es2022"||t==="es2023"||t==="es2024")&&(e.useDefineForClassFields!=null||(e.useDefineForClassFields=!0))}if(e.module){let t=e.module.toLowerCase();t==="es2015"&&(t="es6"),e.module=t,(t==="es6"||t==="es2020"||t==="es2022"||t==="esnext"||t==="none"||t==="system"||t==="umd"||t==="amd")&&(e.moduleResolution!=null||(e.moduleResolution="classic")),t==="system"&&(e.allowSyntheticDefaultImports!=null||(e.allowSyntheticDefaultImports=!0)),(t==="node16"||t==="nodenext"||t==="preserve")&&(e.esModuleInterop!=null||(e.esModuleInterop=!0),e.allowSyntheticDefaultImports!=null||(e.allowSyntheticDefaultImports=!0)),(t==="node16"||t==="nodenext")&&(e.moduleDetection!=null||(e.moduleDetection="force"),e.useDefineForClassFields!=null||(e.useDefineForClassFields=!0)),t==="node16"&&(e.target!=null||(e.target="es2022"),e.moduleResolution!=null||(e.moduleResolution="node16")),t==="nodenext"&&(e.target!=null||(e.target="esnext"),e.moduleResolution!=null||(e.moduleResolution="nodenext")),t==="preserve"&&(e.moduleResolution!=null||(e.moduleResolution="bundler"))}if(e.moduleResolution){let t=e.moduleResolution.toLowerCase();t==="node"&&(t="node10"),e.moduleResolution=t,(t==="node16"||t==="nodenext"||t==="bundler")&&(e.resolvePackageJsonExports!=null||(e.resolvePackageJsonExports=!0),e.resolvePackageJsonImports!=null||(e.resolvePackageJsonImports=!0)),t==="bundler"&&(e.allowSyntheticDefaultImports!=null||(e.allowSyntheticDefaultImports=!0),e.resolveJsonModule!=null||(e.resolveJsonModule=!0))}e.esModuleInterop&&(e.allowSyntheticDefaultImports!=null||(e.allowSyntheticDefaultImports=!0)),e.verbatimModuleSyntax&&(e.isolatedModules!=null||(e.isolatedModules=!0),e.preserveConstEnums!=null||(e.preserveConstEnums=!0)),e.isolatedModules&&(e.preserveConstEnums!=null||(e.preserveConstEnums=!0)),e.rewriteRelativeImportExtensions&&(e.allowImportingTsExtensions!=null||(e.allowImportingTsExtensions=!0))},"normalizeCompilerOptions"),gn=m((e,t=new Map)=>{const u=h.resolve(e),n=hn(u,t),r=h.dirname(u),{compilerOptions:s}=n;if(s){for(const i of Ur){const a=s[i];if(a){const c=ge(a,r);s[i]=c?Je(r,c):a}}for(const i of["rootDirs","typeRoots"]){const a=s[i];a&&(s[i]=a.map(c=>{const D=ge(c,r);return D?Je(r,D):c}))}const{paths:o}=s;if(o)for(const i of Object.keys(o))o[i]=o[i].map(a=>{var c;return(c=ge(a,r))!=null?c:a});Vr(s)}for(const o of Fn){const i=n[o];i&&(n[o]=i.map(a=>{var c;return(c=ge(a,r))!=null?c:a}))}return n},"parseTsconfig"),zr=m((e=process.cwd(),t="tsconfig.json",u=new Map)=>{const n=sn(I(e),t,u);if(!n)return null;const r=gn(n,u);return{path:n,config:r}},"getTsconfig"),qr=/\*/g,Cn=m((e,t)=>{const u=e.match(qr);if(u&&u.length>1)throw new Error(t)},"assertStarCount"),Jr=m(e=>{if(e.includes("*")){const[t,u]=e.split("*");return{prefix:t,suffix:u}}return e},"parsePattern"),Kr=m(({prefix:e,suffix:t},u)=>u.startsWith(e)&&u.endsWith(t),"isPatternMatch"),Gr=m((e,t,u)=>Object.entries(e).map(([n,r])=>(Cn(n,`Pattern '${n}' can have at most one '*' character.`),{pattern:Jr(n),substitutions:r.map(s=>{if(Cn(s,`Substitution '${s}' in pattern '${n}' can have at most one '*' character.`),!t&&!We.test(s))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return h.resolve(u,s)})})),"parsePaths"),Hr=m(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:u,paths:n}=t;if(!u&&!n)return null;const r=Ue in t&&t[Ue],s=h.resolve(h.dirname(e.path),u||r||"."),o=n?Gr(n,u,s):[];return i=>{if(We.test(i))return[];const a=[];for(const f of o){if(f.pattern===i)return f.substitutions.map(I);typeof f.pattern!="string"&&a.push(f)}let c,D=-1;for(const f of a)Kr(f.pattern,i)&&f.pattern.prefix.length>D&&(D=f.pattern.prefix.length,c=f);if(!c)return u?[I(h.join(s,i))]:[];const F=i.slice(c.pattern.prefix.length,i.length-c.pattern.suffix.length);return c.substitutions.map(f=>I(f.replace("*",F)))}},"createPathsMatcher");var Yr=Object.defineProperty,Ce=m((e,t)=>Yr(e,"name",{value:t,configurable:!0}),"s");const En=Ce(e=>{let t="";for(let u=0;u<e.length;u+=1){const n=e[u],r=n.toUpperCase();t+=n===r?n.toLowerCase():r}return t},"invertCase"),Ke=new Map,yn=Ce((e,t)=>{const u=iu.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(u,""),!t.existsSync(En(u))}finally{try{t.unlinkSync(u)}catch{}}},"checkDirectoryCaseWithWrite"),Zr=Ce((e,t,u)=>{try{return yn(e,u)}catch(n){if(t===void 0)return yn(ou.tmpdir(),u);throw n}},"checkDirectoryCaseWithFallback"),Qr=Ce((e,t=su,u=!0)=>{const n=e??process.cwd();if(u&&Ke.has(n))return Ke.get(n);let r;const s=En(n);return s!==n&&t.existsSync(n)?r=!t.existsSync(s):r=Zr(n,e,t),u&&Ke.set(n,r),r},"isFsCaseSensitive"),{join:Ee}=h.posix,Ge={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},Xr=m(e=>{const t=[...Ge.ts],u=[...Ge.cts],n=[...Ge.mts];return e!=null&&e.allowJs&&(t.push(".js",".jsx"),u.push(".cjs"),n.push(".mjs")),[...t,...u,...n]},"getSupportedExtensions"),es=m(e=>{const t=[];if(!e)return t;const{outDir:u,declarationDir:n}=e;return u&&t.push(u),n&&t.push(n),t},"getDefaultExcludeSpec"),Bn=m(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),ts=["node_modules","bower_components","jspm_packages"],He=`(?!(${ts.join("|")})(/|$))`,ns=/(?:^|\/)[^.*?]+$/,wn="**/*",ye="[^/]",Ye="[^./]",bn=process.platform==="win32";m(({config:e,path:t},u=Qr())=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!h.isAbsolute(t))throw new Error("The tsconfig path must be absolute");bn&&(t=I(t));const n=h.dirname(t),{files:r,include:s,exclude:o,compilerOptions:i}=e,a=r?.map(C=>Ee(n,C)),c=Xr(i),D=u?"":"i",F=(o||es(i)).map(C=>{const g=Ee(n,C),w=Bn(g).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${ye}*`).replaceAll(String.raw`\?`,ye);return new RegExp(`^${w}($|/)`,D)}),f=r||s?s:[wn],p=f?f.map(C=>{let g=Ee(n,C);ns.test(g)&&(g=Ee(g,wn));const w=Bn(g).replaceAll(String.raw`/\*\*`,`(/${He}${Ye}${ye}*)*?`).replaceAll(/(\/)?\\\*/g,(S,$)=>{const d=`(${Ye}|(\\.(?!min\\.js$))?)*`;return $?`/${He}${Ye}${d}`:d}).replaceAll(/(\/)?\\\?/g,(S,$)=>{const d=ye;return $?`/${He}${d}`:d});return new RegExp(`^${w}$`,D)}):void 0;return C=>{if(!h.isAbsolute(C))throw new Error("filePath must be absolute");if(bn&&(C=I(C)),a!=null&&a.includes(C)||!(!c.some(g=>C.endsWith(g))||F.some(g=>g.test(C)))&&p&&p.some(g=>g.test(C)))return e}},"createFilesMatcher");const vn="resolve-tsconfig-paths",us=l(e=>e[0]===".","isRelative"),rs=l(e=>e[0]==="/"||/^[\s\S]:/.test(e),"isAbsolute"),An=l(e=>{const t=Hr(e);return t?{name:vn,async resolveId(u,n,r){if(!n||us(u)||rs(u)||u.startsWith("\0"))return null;const s=t(u);for(const o of s){const i=await this.resolve(o,n,{skipSelf:!0,...r});if(i)return i}return null}}:{name:vn}},"resolveTsconfigPaths"),$n=/^#!.*/,ss=l(()=>({name:"strip-hashbang",transform:l(e=>{if(!$n.test(e))return null;const t=new se(e);return t.replace($n,""),{code:t.toString(),map:t.generateMap({hires:!0})}},"transform")}),"stripHashbang");class os{static{l(this,"WalkerBase")}constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:l(()=>this.should_skip=!0,"skip"),remove:l(()=>this.should_remove=!0,"remove"),replace:l(t=>this.replacement=t,"replace")}}replace(t,u,n,r){t&&u&&(n!=null?t[u][n]=r:t[u]=r)}remove(t,u,n){t&&u&&(n!=null?t[u].splice(n,1):delete t[u])}}class is extends os{static{l(this,"SyncWalker")}constructor(t,u){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:l(()=>this.should_skip=!0,"skip"),remove:l(()=>this.should_remove=!0,"remove"),replace:l(n=>this.replacement=n,"replace")},this.enter=t,this.leave=u}visit(t,u,n,r){if(t){if(this.enter){const o=this.should_skip,i=this.should_remove,a=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,u,n,r),this.replacement&&(t=this.replacement,this.replace(u,n,r,t)),this.should_remove&&this.remove(u,n,r);const c=this.should_skip,D=this.should_remove;if(this.should_skip=o,this.should_remove=i,this.replacement=a,c)return t;if(D)return null}let s;for(s in t){const o=t[s];if(o&&typeof o=="object")if(Array.isArray(o)){const i=o;for(let a=0;a<i.length;a+=1){const c=i[a];xn(c)&&(this.visit(c,t,s,a)||a--)}}else xn(o)&&this.visit(o,t,s,null)}if(this.leave){const o=this.replacement,i=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,u,n,r),this.replacement&&(t=this.replacement,this.replace(u,n,r,t)),this.should_remove&&this.remove(u,n,r);const a=this.should_remove;if(this.replacement=o,this.should_remove=i,a)return null}}return t}}function xn(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}l(xn,"isNode");function as(e,{enter:t,leave:u}){return new is(t,u).visit(e,null)}l(as,"walk");const ls=l(()=>{const e='import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);';return{name:"esmInjectCreateRequire",renderChunk(t,u,n){if(n.format!=="es"||!/\brequire\b/.test(t))return null;const r=this.parse(t);let s=au(r,"scope"),o=!1;if(as(r,{enter(a,c){a.scope&&(s=a.scope),!(a.type!=="Identifier"||a.name!=="require")&&(c?.type==="Property"&&c.key===a&&!c.compute||c?.type!=="MemberExpression"&&(s.contains("require")||(o=!0,this.skip())))},leave:l(a=>{a.scope&&(s=s.parent)},"leave")}),!o)return null;const i=new se(t);return i.prepend(e),{code:i.toString(),map:i.generateMap({hires:!0})}}}},"esmInjectCreateRequire"),Be="\0natives:",cs=l(e=>{const t=`${e}/natives`,u=new Map;return{name:"native-modules",buildStart:l(()=>{u.clear()},"buildStart"),async resolveId(n,r){if(n.startsWith(Be)||!n.endsWith(".node"))return null;const s=r?h.resolve(h.dirname(r),n):h.resolve(n);try{await P.access(s)}catch{return this.warn(`Native module not found: ${s}`),null}const o=h.basename(s);let i=o,a=1;const c=new Set(Array.from(u.values()).map(F=>h.basename(F)));for(;c.has(i);){const F=h.extname(o);i=`${h.basename(o,F)}_${a}${F}`,a+=1}const D=h.join(t,i);return u.set(s,D),Be+s},load(n){if(!n.startsWith(Be))return null;const r=n.slice(Be.length),s=u.get(r);return s?`export default require("${`./${De(h.relative(e,s))}`}");`:this.error(`Could not find staged native module for: ${r}`)},generateBundle:l(async()=>{u.size!==0&&(await P.mkdir(t,{recursive:!0}),await Promise.all(Array.from(u.entries()).map(([n,r])=>P.copyFile(n,r))))},"generateBundle")}},"nativeModules"),kn=l(()=>{const e=_.realpathSync.native(process.cwd());return{name:"external-pkg-imports",resolveId(t,u){return t[0]!=="#"||u&&Ne(u,e)?null:{id:t,external:!0}}}},"externalPkgImports");function jn(e,t){return zn(e)?e:Vn(t||".",e)}l(jn,"absolute");function Ds(e,t){let{last:u,cwd:n}=t||{},r=jn(e,n),s=jn(u||"/",n),o,i=[];for(;o!==s&&(i.push(r),r=qn(o=r),r!==o););return i}l(Ds,"up$1");function fs(e,t){let u,n,r=t&&t.cwd||"";for(u of Ds(r,t))if(n=Jn(u,e),Un(n))return n}l(fs,"up");const ds=l(async e=>{const t=await P.stat(e).catch(()=>{});if(t){if(t.isFile())return e;if(t.isDirectory()){const r=h.join(e,"index.js");if(await M(r))return r;const s=h.join(e,"index.json");if(await M(s))return s}}const u=`${e}.js`;if(await M(u))return u;const n=`${e}.json`;return await M(n)?n:null},"tryResolveImplicit"),ps=l(()=>({name:"resolve-implicit-externals",async resolveId(e,t,u){if(!en(e))return null;const[n,r]=Xt(e);if(!r)return null;const s=await this.resolve(e,t,{...u,skipSelf:!0});if(!s||!s.external)return s;const o=t?h.dirname(t):process.cwd(),i=fs(`node_modules/${n}/package.json`,{cwd:o});if(!i)return s;const a=await qt(i),c=h.dirname(i);if(a.exports)return s;const D=h.join(c,r),F=await ds(D);if(!F)return s;const f=De(h.relative(c,F)),p=`${n}/${f}`;return{...s,id:p}}}),"resolveImplicitExternals"),we="@types/",Sn=l(e=>e[0]==="@"?`${we}${e.slice(1).replace("/","__")}`:`${we}${e}`,"getAtTypesPackageName"),Fs=l(e=>{const t=e.slice(we.length);return t.includes("__")?`@${t.replace("__","/")}`:t},"getOriginalPackageName"),ms=["peerDependencies","dependencies","optionalDependencies"],On=l((e,t)=>{const u=_.realpathSync.native(process.cwd()),n=new Set,r=new Set(Object.keys(e.devDependencies||{}));for(const s of ms){const o=e[s];if(o)for(const i of Object.keys(o))n.add(i),i.startsWith(we)&&n.add(Fs(i))}return{name:"externalize-dependencies",async resolveId(s,o,i){if(!en(s))return null;const[a]=Xt(s);if(n.has(a)){if(t?.forTypes){const c=Sn(a);r.has(c)&&console.warn(`Recommendation: "${c}" is bundled (devDependencies) but "${a}" is externalized. Place "${c}" in dependencies/peerDependencies as well so users don't have missing types.`)}return{id:s,external:!0}}if(r.has(a)){const c=await this.resolve(s,o,{...i,skipSelf:!0});if(!c){const D=`Could not resolve "${s}" even though it's declared in package.json. Try re-installing node_modules.`;throw console.error(D),new Error(D)}if(t?.forTypes){const D=Sn(a);n.has(D)&&console.warn(`Recommendation: "${D}" is externalized but "${a}" is bundled (devDependencies). This may cause type mismatches for consumers. Consider moving "${a}" to dependencies or "${D}" to devDependencies.`)}return c}return o&&!Ne(o,u)&&!t?.skipUnlistedWarnings&&console.warn(`"${a}" imported by "${De(o)}" but not declared in package.json. Will be bundled to prevent failure at runtime.`),null}}},"externalizeDependencies"),be=l(e=>e.replace("\0","").split("?")[0],"cleanRollupId"),hs=l(e=>{try{return cu(e)}catch{return{exports:[],reexports:[]}}},"safeParse"),gs=l(()=>{const e=new Map,t=l((u,n=new Set)=>{const r=be(u);if(n.has(r))return[];n.add(r);const s=e.get(r);if(!s)return[];const o=[...s.exports];for(const i of s.reexports)o.push(...t(i,n));return o},"getFinalExports");return{name:"cjs-annotate-exports",buildStart:l(async()=>{await lu(),e.clear()},"buildStart"),async transform(u,n){const r=be(n);if(!/\.c?js$/.test(r)||!u.includes("exports"))return;const{exports:s,reexports:o}=hs(u);if(s.length===0&&o.length===0)return;const a=(await Promise.all(o.map(async c=>{const D=await this.resolve(c,n);return D?be(D.id):""}))).filter(Boolean);e.set(r,{exports:s,reexports:a})},renderChunk:{order:"post",handler(u,n,r){if(r.format!=="cjs"||!n.isEntry||!n.facadeModuleId)return null;const s=be(n.facadeModuleId),o=[...new Set(t(s))];if(o.length>0){const i=new se(u);return i.append(`
|
|
31
|
+
0&&(module.exports={${o.join(",")}});`),{code:i.toString(),map:i.generateMap({hires:!0})}}}}}},"cjsAnnotateExports"),Cs=["LICENSE","LICENSE.txt","LICENSE.md","LICENCE","LICENCE.txt","LICENCE.md"],Tn="----------- BUNDLED DEPENDENCIES -----------",Es=/-{2,} BUNDLED DEPENDENCIES -{2,}/,Ze=l(e=>P.access(e).then(()=>!0,()=>!1),"fileExists"),Pn=l(async e=>{for(const t of Cs){const u=h.join(e,t);if(await Ze(u))return u}},"findLicenseFile"),In=l(e=>{if(!e)return null;if(typeof e=="object")return e.name??null;const t=e.indexOf("<"),u=e.indexOf("(");let n=e.length;return t>0&&(n=t),u>0&&u<n&&(n=u),e.slice(0,n).trim()||null},"parsePersonName"),ys=l(e=>{const t=new Set;for(const u of Object.values(e))if(u.type==="chunk")for(const[n,r]of Object.entries(u.modules))r.renderedLength>0&&t.add(n);return t},"getRenderedModuleIds"),Bs=l(async(e,t)=>{const u=await Pn(t),n=u?await P.readFile(u,"utf8"):null,r=In(e.author),s=e.contributors,o=Array.isArray(s)?s.map(In).filter(Boolean):[],{repository:i}=e,a=i?typeof i=="string"?i:i.url:null;return{name:e.name,version:e.version,license:e.license??null,author:r,contributors:o,repository:a,licenseText:n}},"buildDependencyInfo"),ws=l(async(e,t)=>{let u=h.dirname(e);for(;u!==h.dirname(u);){if(t.has(u))return t.get(u);const n=h.join(u,"package.json");if(await Ze(n)){const r=JSON.parse(await P.readFile(n,"utf8"));if(r.name&&r.version){const s=r.private?null:await Bs(r,u);return t.set(u,s),s}}u=h.dirname(u)}return null},"findDependencyForModule"),bs=l(async e=>{const t=ys(e),u=new Map,n=new Map;for(const r of t){if(!/[/\\]node_modules[/\\]/.test(r))continue;const s=await ws(r,u);if(s){const o=`${s.name}@${s.version}`;n.has(o)||n.set(o,s)}}return[...n.values()]},"collectBundledDependencies"),vs=l(e=>{const t=[`## ${e.name}@${e.version}`];e.license&&t.push(`License: ${e.license}`);const u=new Set;e.author&&u.add(e.author);for(const n of e.contributors)u.add(n);if(u.size>0&&t.push(`By: ${[...u].join(", ")}`),e.repository&&t.push(`Repository: ${e.repository}`),e.licenseText){const n=e.licenseText.trim().replaceAll(/\r\n?/g,`
|
|
32
|
+
`).split(`
|
|
33
|
+
`).map(r=>`> ${r}`).join(`
|
|
34
|
+
`);t.push("",n)}return t.join(`
|
|
35
|
+
`)},"formatDependency"),As=l(e=>{if(e.length===0)return`${Tn}
|
|
36
|
+
|
|
37
|
+
No bundled dependencies.`;const n=e.slice().sort((r,s)=>r.name!==s.name?r.name<s.name?-1:1:r.version<s.version?-1:r.version>s.version?1:0).map(vs).join(`
|
|
38
|
+
|
|
39
|
+
---------------------------------------
|
|
40
|
+
|
|
41
|
+
`);return`${Tn}
|
|
42
|
+
|
|
43
|
+
${n}`},"formatLicenseContent"),$s=l(async(e,t)=>{const u=As(t);if(!await Ze(e)){await P.mkdir(h.dirname(e),{recursive:!0}),await P.writeFile(e,u,"utf8"),console.log(`License file created: ${e}`);return}const n=await P.readFile(e,"utf8"),r=Es.exec(n);let s;r?s=n.slice(0,r.index)+u:s=`${n.trimEnd()}
|
|
44
|
+
|
|
45
|
+
${u}`,n!==s&&(await P.writeFile(e,s,"utf8"),console.log(`License file updated: ${e}`))},"writeLicenseFile"),xs=l(e=>{const t=process.cwd();let u=!1;return{name:"pkgroll-license",async generateBundle(n,r){if(this.meta.watchMode||u)return;u=!0;const s=await bs(r);let o;typeof e=="string"?o=h.resolve(t,e):o=await Pn(t)??h.join(t,"LICENSE"),await $s(o,s)}}},"licensePlugin"),ks=l((e,t,u,n,r,s)=>{const o=Object.fromEntries(e.env.map(({key:c,value:D})=>[`process.env.${c}`,JSON.stringify(D)])),i=Object.fromEntries(e.define.map(({key:c,value:D})=>[c,D])),a={target:e.target,sourcemap:e.sourcemap,tsconfigRaw:r?.config,define:{...o,...i}};return{input:{},preserveEntrySignatures:"strict",plugins:[rt(),Qt(e),...r?[An(r)]:[],tu({entries:u}),kn(),ps(),On(t),tn(),Qn({extensions:[".mjs",".js",".ts",".jsx",".tsx",".json"],exportConditions:e.exportCondition}),ss(),eu(),yr(a),gs(),Xn({ignoreDynamicRequires:!0,extensions:[".js",".ts",".jsx",".tsx"],transformMixedEsModules:!0}),nu({warnOnError:!0}),ls(),cs(s),...e.minify?[wr(a)]:[],br(n),...e.license?[xs(e.license)]:[]],output:[]}},"getPkgConfig"),js=l(async(e,t,u)=>{const[n,r]=await Promise.all([import("./rollup-plugin-dts-DArk-PDL.mjs"),import("./local-typescript-loader-CSvrvK-x.mjs")]);return{input:{},preserveEntrySignatures:"strict",plugins:[rt(),kn(),Qt(e),...u?[An(u)]:[],On(t,{skipUnlistedWarnings:!0,forTypes:!0}),tn(),n.default({respectExternal:!0,compilerOptions:{composite:!1,preserveSymlinks:!1,module:r.default.ModuleKind.Preserve,moduleResolution:r.default.ModuleResolutionKind.Bundler},tsconfig:u?.path,sourcemap:!!(e.sourcemap||u?.config.compilerOptions?.declarationMap)})],output:[]}},"getDtsConfig"),Ss=l(e=>{if(e.length===0)return"";const t=e.map(s=>s.split("/")),u=t[0],n=Math.min(...t.map(s=>s.length)),r=[];for(let s=0;s<n;s+=1){const o=u[s];if(t.every(i=>i[s]===o))r.push(o);else break}return r.length===0?"/":r.join("/")||"/"},"getCommonPath"),Os=l(async(e,t,u,n,r,s)=>{const o=T(Ss(e.map(({dist:c})=>c)),!0);for(const c of e)c.distPrefix=c.dist.slice(o.length);const i=e,a=Object.create(null);for(const c of t){const{sourcePath:D,srcExtension:F,distExtension:f,exportEntry:p}=c,C=c.srcdist,g=C.distPrefix+D.slice(C.srcResolved.length,-F.length);if(c.inputNames=[g],p.format==="types"){let d=a.dts;d||(d=await js(u,r,s),a.dts=d),d.input[g]||(d.input[g]=D);const b=d.output;if(b[f])b[f][ee].inputNames.push(g);else{const k={dir:o,entryFileNames:`[name]${f}`,chunkFileNames:`${C.distPrefix}[name]-[hash]${f}`,exports:"auto",format:"esm",sourcemap:u.sourcemap||s?.config.compilerOptions?.declarationMap,[ee]:c};b.push(k),b[f]=k}continue}let w=a.pkg;if(!w){const d=i[0].dist;w=ks(u,r,n,t,s,d),a.pkg=w}w.input[g]||(w.input[g]=D);const S=w.output,$=`${p.format}-${f}`;if(S[$])S[$][ee].inputNames.push(g);else{const d={dir:o,exports:"auto",format:p.format,sourcemap:u.sourcemap,entryFileNames:`[name]${f}`,chunkFileNames:`${C.distPrefix}[name]-[hash]${f}`,[ee]:c};S.push(d),S[$]=d}}return Object.values(a)},"getRollupConfigs"),Ts=l(e=>{if(!e)return zr();const t=h.resolve(e),u=gn(t);return{path:t,config:u}},"getTsconfig"),Ps=l(async e=>{await M(e)&&await _.promises.rm(e,{recursive:!0,force:!0})},"cleanDist"),Is=/^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u,Ns=new Set(["do","if","in","for","int","new","try","var","byte","case","char","else","enum","goto","long","null","this","true","void","with","break","catch","class","const","false","final","float","short","super","throw","while","delete","double","export","import","native","public","return","static","switch","throws","typeof","boolean","default","extends","finally","package","private","abstract","continue","debugger","function","volatile","interface","protected","transient","implements","instanceof","synchronized"]),Rs=l(e=>!Is.test(e)||Ns.has(e),"propertyNeedsQuotes"),_s=l(e=>e.map((t,u)=>typeof t=="number"?`[${t}]`:Rs(t)?`[${JSON.stringify(t)}]`:u>0?`.${t}`:t).join(""),"prettyPath"),Ls=l(e=>({name:"filter-unnecessary-outputs",generateBundle:l((t,u)=>{const n=Object.keys(u).filter(o=>u[o].type==="chunk"),r=[];for(const o of n){const i=u[o];i.isEntry&&e.includes(i.name)&&r.push(o)}const s=new Set;for(;r.length>0;){const o=r.shift(),i=u[o];if(!i||s.has(o))continue;s.add(o);const a=[...i.imports,...i.dynamicImports];for(const c of a)r.push(c)}for(const o of n)s.has(o)||delete u[o]},"generateBundle")}),"filterUnnecessaryOutputs"),{stringify:Nn}=JSON,Rn=l(e=>{const[t,u]=e.split("=",2);return{key:t,value:u}},"keyValue"),R=Vt({name:"pkgroll",version:rr,flags:{input:{type:[Dr],alias:"i",description:"Dist paths for source files to bundle (Only use if you cannot use package.json entries)"},src:{type:String,description:"Source directory (Deprecated, use `srcdist` instead)",default:"./src"},dist:{type:String,description:"Distribution directory (Deprecated, use `srcdist` instead)",default:"./dist"},srcdist:{type:[String],description:"Source and distribution folder pairs (eg. default `src:dist`)"},minify:{type:Boolean,description:"Minify output",alias:"m",default:!1},target:{type:[String],default:[`node${process.versions.node}`],description:"Environments to support. `target` in tsconfig.json is automatically added. Defaults to the current Node.js version.",alias:"t"},tsconfig:{type:String,description:"Custom tsconfig.json file path",alias:"p"},watch:{type:Boolean,description:"Watch mode",alias:"w",default:!1},env:{type:[Rn],description:"Compile-time environment variables (eg. --env.NODE_ENV=production)"},define:{type:[Rn],description:"Targeted strings to replace (eg. --define.process.env.NODE_ENV='production')"},exportCondition:{type:[String],description:"Export conditions for resolving dependency export and import maps (eg. --export-condition=node)"},sourcemap:{type:l(e=>{if(e==="")return!0;if(e==="inline")return e;throw new Error(`Invalid sourcemap option ${Nn(e)}`)},"type"),description:"Sourcemap generation. Provide `inline` option for inline sourcemap (eg. --sourcemap, --sourcemap=inline)"},cleanDist:{type:Boolean,description:"Clean dist before bundling",default:!1},license:{type:l(e=>e===""?!0:e,"type"),description:"Generate licenses for bundled dependencies. Optionally specify output path (eg. --license, --license=NOTICES.txt)"}},help:{description:"Minimalistic package bundler",render:l((e,t)=>(t.flagOperator=u=>u.name==="env"?".key=":" ",t.render(e)),"render")}}),Qe=process.cwd(),ne=[];if(R.flags.srcdist.length>0)for(const e of R.flags.srcdist){const[t,u]=e.split(":",2);if(!t||!u)throw new Error(`Invalid src:dist pair ${Nn(e)}. Expected format: src:dist`);ne.push({src:T(t,!0),srcResolved:T(_.realpathSync.native(t),!0),dist:T(u,!0)})}else ne.push({src:T(R.flags.src,!0),srcResolved:T(_.realpathSync.native(R.flags.src),!0),dist:T(R.flags.dist,!0)});const _n=Ts(R.flags.tsconfig),Ln=_n?.config.compilerOptions?.target;Ln&&R.flags.target.push(Ln);const Wn=l(async()=>{const{packageJson:e}=await cr(Qe),t=await Er(ne,e,R.flags.input);for(const n of t)if("error"in n){const{exportEntry:r}=n,s=typeof r.source=="string"?r.source:`${r.source.type}#${_s(r.source.path)}`;console.warn(`Warning (${s}):`,n.error)}const u=t.filter(n=>!("error"in n));if(u.length===0)throw new Error("No entry points found");return Os(ne,u,R.flags,fr(e,Qe),e,_n)},"generateRollupConfigs");(async()=>{if(R.flags.cleanDist&&await Promise.all(ne.map(({dist:e})=>Ps(e))),R.flags.watch){K("Watch initialized");let e=[];const t=l(async()=>{e=(await Wn()).map(s=>{const o=Hn(s);return o.on("event",async i=>{if(i.code==="BUNDLE_START"){const a=Array.isArray(i.input)?i.input:Object.values(i.input);K("Building",...a.map(fe))}if(i.code==="BUNDLE_END")try{await Promise.all(s.output.map(c=>i.result.write(c)));const a=Array.isArray(i.input)?i.input:Object.values(i.input);K("Built",...a.map(fe))}finally{await i.result.close()}i.code==="ERROR"&&(K("Error:",i.error.message),await i.result?.close())}),o})},"startWatchers"),u=l(async()=>{await Promise.all(e.map(r=>r.close())),e=[]},"closeWatchers");await t();let n;_.watch(h.join(Qe,"package.json"),()=>{clearTimeout(n),n=setTimeout(async()=>{K("package.json changed, restarting...");try{await u(),await t()}catch(r){K("Error:",r.message)}},100)})}else{const e=await Wn();await Promise.all(e.map(async t=>{const u=await Gn(t);try{await Promise.all(t.output.map(n=>{const r=n[ee].inputNames;return n.plugins=[Ls(r)],u.write(n)}))}finally{await u.close()}}))}})().catch(e=>{Yn(e),console.error("Error:",e instanceof Error?e.message:String(e)),process.exit(1)});
|