@visulima/fs 6.0.0 → 6.0.2
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/CHANGELOG.md +4 -0
- package/LICENSE.md +130 -1
- package/dist/eol.js +3 -3
- package/dist/glob-parent.js +1 -1
- package/dist/glob.d.ts +54 -2
- package/dist/glob.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/ini.d.ts +2 -2
- package/dist/ini.js +1 -1
- package/dist/is-glob.js +1 -1
- package/dist/json5.d.ts +2 -2
- package/dist/json5.js +1 -1
- package/dist/jsonc.d.ts +2 -2
- package/dist/jsonc.js +1 -1
- package/dist/match.js +1 -1
- package/dist/packem_shared/FIND_UP_STOP-pQqZdUPw.js +1 -0
- package/dist/packem_shared/_commonjsHelpers-CqkleIqs.js +1 -0
- package/dist/packem_shared/assertValidFileOrDirectoryPath-CAHgg-jK.js +1 -0
- package/dist/packem_shared/build-rm-options-_U1T9rOz.js +1 -0
- package/dist/packem_shared/collect-DXVMgRiZ.js +1 -0
- package/dist/packem_shared/collectSync-jjcJdHox.js +1 -0
- package/dist/packem_shared/copy-Cv8Vvdrc.js +1 -0
- package/dist/packem_shared/copySync-JIxmcGrd.js +1 -0
- package/dist/packem_shared/emptyDir-DQ1LfO2i.js +1 -0
- package/dist/packem_shared/emptyDirSync-BXDqirP1.js +1 -0
- package/dist/packem_shared/ensureDir-qy_X-WeG.js +1 -0
- package/dist/packem_shared/{ensureDirSync-B0w9WMwE.js → ensureDirSync-ONFJBCbg.js} +1 -1
- package/dist/packem_shared/{ensureFile-waD4hDO8.js → ensureFile-q1ozF6q5.js} +1 -1
- package/dist/packem_shared/ensureFileSync-B6eR38N_.js +1 -0
- package/dist/packem_shared/ensureLink-BpsTVGAm.js +1 -0
- package/dist/packem_shared/ensureLinkSync-B5moWvh3.js +1 -0
- package/dist/packem_shared/ensureSymlink-BF0BwVPy.js +1 -0
- package/dist/packem_shared/ensureSymlinkSync-D-JzDuD7.js +1 -0
- package/dist/packem_shared/findUp-BlQ1EUhu.js +1 -0
- package/dist/packem_shared/findUpSync-CF1OXVQw.js +1 -0
- package/dist/packem_shared/glob-Cyk1H9ZL.js +1 -0
- package/dist/packem_shared/globSync-Cm0u7eCn.js +1 -0
- package/dist/packem_shared/index-CBWLeiRp.js +1 -0
- package/dist/packem_shared/index-DDkv7LRn.js +1 -0
- package/dist/packem_shared/index-DGueExxA.js +1 -0
- package/dist/packem_shared/index-ovH_d7Hf.js +11 -0
- package/dist/packem_shared/indexToLineColumn-BHKDfaPx-DS9KxkE-.js +6 -0
- package/dist/packem_shared/ini-preserve-D3Z1KcgN.js +4 -0
- package/dist/packem_shared/is-stats-identical-DOh8_0KH.js +1 -0
- package/dist/packem_shared/isAccessible-CqNOFdZu.js +1 -0
- package/dist/packem_shared/isAccessibleSync-DYKTrrvc.js +1 -0
- package/dist/packem_shared/json-value.d-DZqAihX4.d.ts +29 -0
- package/dist/packem_shared/jsonc-merge-BGm21l00.js +2 -0
- package/dist/packem_shared/map-read-error-8dAe6Qhr.js +1 -0
- package/dist/packem_shared/move-DG3P4i6Y.js +1 -0
- package/dist/packem_shared/parseJson-gfl5PTTo.js +1 -0
- package/dist/packem_shared/readFile-DbKGLwIK.js +1 -0
- package/dist/packem_shared/readFileSync-CTTHkZ_p.js +1 -0
- package/dist/packem_shared/readIni-C9VUitQm.js +1 -0
- package/dist/packem_shared/readIniSync-DhMbhDPx.js +1 -0
- package/dist/packem_shared/readJson-CClJlGok.js +1 -0
- package/dist/packem_shared/readJson5-D33tgtEU.js +1 -0
- package/dist/packem_shared/readJson5Sync-DEd-ejtp.js +1 -0
- package/dist/packem_shared/readJsonSync-CbryXYxN.js +1 -0
- package/dist/packem_shared/readJsonc-Cp1KzmVx.js +1 -0
- package/dist/packem_shared/readJsoncSync-sE30rJ5W.js +1 -0
- package/dist/packem_shared/readToml-jD08lZRN.js +1 -0
- package/dist/packem_shared/readTomlSync-0J8gIalg.js +1 -0
- package/dist/packem_shared/readYaml-C63_W9Qg.js +1 -0
- package/dist/packem_shared/readYamlSync-CuyDW6xR.js +1 -0
- package/dist/packem_shared/remove-4ofpEuH1.js +1 -0
- package/dist/packem_shared/removeSync-g1D5kONg.js +1 -0
- package/dist/packem_shared/resolve-symlink-target-D4Pb9Fjw.js +1 -0
- package/dist/packem_shared/sanitize-B1LHjdjC.js +1 -0
- package/dist/packem_shared/stripJsonComments-Do7s7No5.js +1 -0
- package/dist/packem_shared/to-uint-8-array-DlTu4L-l.js +1 -0
- package/dist/packem_shared/{types.d-CgCO6qUp.d.ts → types.d-B-T1rDxl.d.ts} +1 -1
- package/dist/packem_shared/walk-Brue5N30.js +1 -0
- package/dist/packem_shared/walk-include-aizKyl9e.js +1 -0
- package/dist/packem_shared/walkSync-BWGgTwUy.js +1 -0
- package/dist/packem_shared/writeFile-BIBP7wbK.js +1 -0
- package/dist/packem_shared/writeFileSync-DJoHk3Ks.js +1 -0
- package/dist/packem_shared/writeIni--gog68qN.js +4 -0
- package/dist/packem_shared/writeIniSync-BL_z8aMQ.js +4 -0
- package/dist/packem_shared/writeJson-DmN1UqZc.js +4 -0
- package/dist/packem_shared/writeJson5-CPRmF2K7.js +4 -0
- package/dist/packem_shared/writeJson5Sync-BiUfm-cZ.js +4 -0
- package/dist/packem_shared/writeJsonSync-BiFyXQ5h.js +4 -0
- package/dist/packem_shared/writeJsonc-B4ahk9a2.js +4 -0
- package/dist/packem_shared/writeJsoncSync-lBv1IFDo.js +4 -0
- package/dist/packem_shared/writeToml-Frvwh0Kn.js +1 -0
- package/dist/packem_shared/writeTomlSync-BvKdlKvE.js +1 -0
- package/dist/packem_shared/writeYaml-C4IGXTOo.js +1 -0
- package/dist/packem_shared/writeYamlSync-BAbWtkvq.js +1 -0
- package/dist/size.js +1 -1
- package/dist/toml.d.ts +1 -1
- package/dist/toml.js +1 -1
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/dist/yaml.d.ts +2 -2
- package/dist/yaml.js +1 -1
- package/package.json +2 -2
- package/dist/packem_shared/FIND_UP_STOP-CAwY1qU7.js +0 -1
- package/dist/packem_shared/_commonjsHelpers-CWAkuNXM.js +0 -1
- package/dist/packem_shared/assertValidFileOrDirectoryPath-BTlt945W.js +0 -1
- package/dist/packem_shared/build-rm-options-avnusYx-.js +0 -1
- package/dist/packem_shared/collect-Dbo3K4iq.js +0 -1
- package/dist/packem_shared/collectSync-BLLtRqQ4.js +0 -1
- package/dist/packem_shared/copy-DiR5_5iA.js +0 -1
- package/dist/packem_shared/copySync-DffsYlhb.js +0 -1
- package/dist/packem_shared/emptyDir-BlBeczk0.js +0 -1
- package/dist/packem_shared/emptyDirSync-DfUZ9Ejz.js +0 -1
- package/dist/packem_shared/ensureDir-BEiomfxz.js +0 -1
- package/dist/packem_shared/ensureFileSync-CG07zjV7.js +0 -1
- package/dist/packem_shared/ensureLink-Dz-PDWa5.js +0 -1
- package/dist/packem_shared/ensureLinkSync-BZH7TaSQ.js +0 -1
- package/dist/packem_shared/ensureSymlink-Byi6ajoE.js +0 -1
- package/dist/packem_shared/ensureSymlinkSync-D7OCsAd8.js +0 -1
- package/dist/packem_shared/findUp-BHCEMf5y.js +0 -1
- package/dist/packem_shared/findUpSync-BKJsHMQN.js +0 -1
- package/dist/packem_shared/glob-BUjyjdE8.js +0 -1
- package/dist/packem_shared/glob-sync.d-SlQXhcIG.d.ts +0 -54
- package/dist/packem_shared/globSync-Bk9TUV7x.js +0 -1
- package/dist/packem_shared/index-B2MhYg3r.js +0 -1
- package/dist/packem_shared/index-BHy3Kcr7.js +0 -11
- package/dist/packem_shared/index-CPZbuHkp.js +0 -1
- package/dist/packem_shared/index-LUKYN3u3.js +0 -1
- package/dist/packem_shared/indexToLineColumn-BfkIsWHQ-DQJmePiQ.js +0 -6
- package/dist/packem_shared/ini-preserve-D1DopDLd.js +0 -4
- package/dist/packem_shared/is-stats-identical-l1GRN4Qu.js +0 -1
- package/dist/packem_shared/isAccessible-B7guOm3k.js +0 -1
- package/dist/packem_shared/isAccessibleSync-XH4YleJW.js +0 -1
- package/dist/packem_shared/jsonc-merge-Bkw73TLW.js +0 -2
- package/dist/packem_shared/map-read-error-CR3rQUxx.js +0 -1
- package/dist/packem_shared/move-KhPRvsRd.js +0 -1
- package/dist/packem_shared/parseJson-lm3MUNdf.js +0 -1
- package/dist/packem_shared/readFile-VgxUDrNH.js +0 -1
- package/dist/packem_shared/readFileSync-CloFeQw8.js +0 -1
- package/dist/packem_shared/readIni-CEXHWn92.js +0 -1
- package/dist/packem_shared/readIniSync-DsxVHypc.js +0 -1
- package/dist/packem_shared/readJson-DV2KxaEJ.js +0 -1
- package/dist/packem_shared/readJson5-S68aVros.js +0 -1
- package/dist/packem_shared/readJson5Sync-Bi9Rv46R.js +0 -1
- package/dist/packem_shared/readJsonSync-DweZd5ZA.js +0 -1
- package/dist/packem_shared/readJsonc-Dqh-elUt.js +0 -1
- package/dist/packem_shared/readJsoncSync-Dy2PZG5g.js +0 -1
- package/dist/packem_shared/readToml-CN_xnICv.js +0 -1
- package/dist/packem_shared/readTomlSync-B9TVGzen.js +0 -1
- package/dist/packem_shared/readYaml-BT3HBFQv.js +0 -1
- package/dist/packem_shared/readYamlSync-Cx-zy2cS.js +0 -1
- package/dist/packem_shared/remove-D_CUIlBL.js +0 -1
- package/dist/packem_shared/removeSync-F4nKiwrU.js +0 -1
- package/dist/packem_shared/resolve-symlink-target-CWrn0v4P.js +0 -1
- package/dist/packem_shared/sanitize-aEqeyx4d.js +0 -1
- package/dist/packem_shared/stripJsonComments-Bfcn2PKv.js +0 -1
- package/dist/packem_shared/to-uint-8-array-7sXMoZwU.js +0 -1
- package/dist/packem_shared/walk-B211aFS7.js +0 -1
- package/dist/packem_shared/walk-include-2NQzWTCI.js +0 -1
- package/dist/packem_shared/walkSync-VeMvHYLk.js +0 -1
- package/dist/packem_shared/writeFile-Dnba9aVe.js +0 -1
- package/dist/packem_shared/writeFileSync-pW8o2DG1.js +0 -1
- package/dist/packem_shared/writeIni-DgZ-0EUD.js +0 -4
- package/dist/packem_shared/writeIniSync-Buz4Cove.js +0 -4
- package/dist/packem_shared/writeJson-vexC7dw2.js +0 -4
- package/dist/packem_shared/writeJson5-DeW_smOs.js +0 -4
- package/dist/packem_shared/writeJson5Sync-Cz5pwaPh.js +0 -4
- package/dist/packem_shared/writeJsonSync-DJLfN5iT.js +0 -4
- package/dist/packem_shared/writeJsonc-BqJQS0Mk.js +0 -4
- package/dist/packem_shared/writeJsoncSync-CchlR2KW.js +0 -4
- package/dist/packem_shared/writeToml-Bn-wQdaM.js +0 -1
- package/dist/packem_shared/writeTomlSync-CTv4RXkJ.js +0 -1
- package/dist/packem_shared/writeYaml-CpWDXOUF.js +0 -1
- package/dist/packem_shared/writeYamlSync-9MG5_lNI.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## @visulima/fs [6.0.2](https://github.com/visulima/visulima/compare/%40visulima%2Ffs%406.0.1...%40visulima%2Ffs%406.0.2) (2026-08-18)
|
|
2
|
+
|
|
3
|
+
## @visulima/fs [6.0.1](https://github.com/visulima/visulima/compare/%40visulima%2Ffs%406.0.0...%40visulima%2Ffs%406.0.1) (2026-08-17)
|
|
4
|
+
|
|
1
5
|
## @visulima/fs [6.0.0](https://github.com/visulima/visulima/compare/%40visulima%2Ffs%405.1.0...%40visulima%2Ffs%406.0.0) (2026-08-08)
|
|
2
6
|
|
|
3
7
|
|
package/LICENSE.md
CHANGED
|
@@ -312,7 +312,7 @@ Repository: git+https://github.com/SuperchupuDev/tinyglobby.git
|
|
|
312
312
|
|
|
313
313
|
# Licenses of bundled types
|
|
314
314
|
The published @visulima/fs artifact additionally contains code with the following licenses:
|
|
315
|
-
MIT
|
|
315
|
+
MIT, (MIT OR CC0-1.0)
|
|
316
316
|
|
|
317
317
|
# Bundled types:
|
|
318
318
|
## @visulima/yaml
|
|
@@ -403,4 +403,133 @@ Repository: git+https://github.com/SuperchupuDev/tinyglobby.git
|
|
|
403
403
|
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
404
404
|
> SOFTWARE.
|
|
405
405
|
|
|
406
|
+
---------------------------------------
|
|
407
|
+
|
|
408
|
+
## type-fest
|
|
409
|
+
License: (MIT OR CC0-1.0)
|
|
410
|
+
By: Sindre Sorhus
|
|
411
|
+
Repository: sindresorhus/type-fest
|
|
412
|
+
|
|
413
|
+
> Creative Commons Legal Code
|
|
414
|
+
>
|
|
415
|
+
> CC0 1.0 Universal
|
|
416
|
+
>
|
|
417
|
+
> CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
418
|
+
> LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
419
|
+
> ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
420
|
+
> INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
421
|
+
> REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
422
|
+
> PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
423
|
+
> THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
424
|
+
> HEREUNDER.
|
|
425
|
+
>
|
|
426
|
+
> Statement of Purpose
|
|
427
|
+
>
|
|
428
|
+
> The laws of most jurisdictions throughout the world automatically confer
|
|
429
|
+
> exclusive Copyright and Related Rights (defined below) upon the creator
|
|
430
|
+
> and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
431
|
+
> authorship and/or a database (each, a "Work").
|
|
432
|
+
>
|
|
433
|
+
> Certain owners wish to permanently relinquish those rights to a Work for
|
|
434
|
+
> the purpose of contributing to a commons of creative, cultural and
|
|
435
|
+
> scientific works ("Commons") that the public can reliably and without fear
|
|
436
|
+
> of later claims of infringement build upon, modify, incorporate in other
|
|
437
|
+
> works, reuse and redistribute as freely as possible in any form whatsoever
|
|
438
|
+
> and for any purposes, including without limitation commercial purposes.
|
|
439
|
+
> These owners may contribute to the Commons to promote the ideal of a free
|
|
440
|
+
> culture and the further production of creative, cultural and scientific
|
|
441
|
+
> works, or to gain reputation or greater distribution for their Work in
|
|
442
|
+
> part through the use and efforts of others.
|
|
443
|
+
>
|
|
444
|
+
> For these and/or other purposes and motivations, and without any
|
|
445
|
+
> expectation of additional consideration or compensation, the person
|
|
446
|
+
> associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
447
|
+
> is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
448
|
+
> elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
449
|
+
> terms, with knowledge of his or her Copyright and Related Rights in the
|
|
450
|
+
> Work and the meaning and intended legal effect of CC0 on those rights.
|
|
451
|
+
>
|
|
452
|
+
> 1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
453
|
+
> protected by copyright and related or neighboring rights ("Copyright and
|
|
454
|
+
> Related Rights"). Copyright and Related Rights include, but are not
|
|
455
|
+
> limited to, the following:
|
|
456
|
+
>
|
|
457
|
+
> i. the right to reproduce, adapt, distribute, perform, display,
|
|
458
|
+
> communicate, and translate a Work;
|
|
459
|
+
> ii. moral rights retained by the original author(s) and/or performer(s);
|
|
460
|
+
> iii. publicity and privacy rights pertaining to a person's image or
|
|
461
|
+
> likeness depicted in a Work;
|
|
462
|
+
> iv. rights protecting against unfair competition in regards to a Work,
|
|
463
|
+
> subject to the limitations in paragraph 4(a), below;
|
|
464
|
+
> v. rights protecting the extraction, dissemination, use and reuse of data
|
|
465
|
+
> in a Work;
|
|
466
|
+
> vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
467
|
+
> European Parliament and of the Council of 11 March 1996 on the legal
|
|
468
|
+
> protection of databases, and under any national implementation
|
|
469
|
+
> thereof, including any amended or successor version of such
|
|
470
|
+
> directive); and
|
|
471
|
+
> vii. other similar, equivalent or corresponding rights throughout the
|
|
472
|
+
> world based on applicable law or treaty, and any national
|
|
473
|
+
> implementations thereof.
|
|
474
|
+
>
|
|
475
|
+
> 2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
476
|
+
> of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
477
|
+
> irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
478
|
+
> Affirmer's Copyright and Related Rights and associated claims and causes
|
|
479
|
+
> of action, whether now known or unknown (including existing as well as
|
|
480
|
+
> future claims and causes of action), in the Work (i) in all territories
|
|
481
|
+
> worldwide, (ii) for the maximum duration provided by applicable law or
|
|
482
|
+
> treaty (including future time extensions), (iii) in any current or future
|
|
483
|
+
> medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
484
|
+
> including without limitation commercial, advertising or promotional
|
|
485
|
+
> purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
486
|
+
> member of the public at large and to the detriment of Affirmer's heirs and
|
|
487
|
+
> successors, fully intending that such Waiver shall not be subject to
|
|
488
|
+
> revocation, rescission, cancellation, termination, or any other legal or
|
|
489
|
+
> equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
490
|
+
> as contemplated by Affirmer's express Statement of Purpose.
|
|
491
|
+
>
|
|
492
|
+
> 3. Public License Fallback. Should any part of the Waiver for any reason
|
|
493
|
+
> be judged legally invalid or ineffective under applicable law, then the
|
|
494
|
+
> Waiver shall be preserved to the maximum extent permitted taking into
|
|
495
|
+
> account Affirmer's express Statement of Purpose. In addition, to the
|
|
496
|
+
> extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
497
|
+
> person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
498
|
+
> irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
499
|
+
> Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
500
|
+
> maximum duration provided by applicable law or treaty (including future
|
|
501
|
+
> time extensions), (iii) in any current or future medium and for any number
|
|
502
|
+
> of copies, and (iv) for any purpose whatsoever, including without
|
|
503
|
+
> limitation commercial, advertising or promotional purposes (the
|
|
504
|
+
> "License"). The License shall be deemed effective as of the date CC0 was
|
|
505
|
+
> applied by Affirmer to the Work. Should any part of the License for any
|
|
506
|
+
> reason be judged legally invalid or ineffective under applicable law, such
|
|
507
|
+
> partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
508
|
+
> of the License, and in such case Affirmer hereby affirms that he or she
|
|
509
|
+
> will not (i) exercise any of his or her remaining Copyright and Related
|
|
510
|
+
> Rights in the Work or (ii) assert any associated claims and causes of
|
|
511
|
+
> action with respect to the Work, in either case contrary to Affirmer's
|
|
512
|
+
> express Statement of Purpose.
|
|
513
|
+
>
|
|
514
|
+
> 4. Limitations and Disclaimers.
|
|
515
|
+
>
|
|
516
|
+
> a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
517
|
+
> surrendered, licensed or otherwise affected by this document.
|
|
518
|
+
> b. Affirmer offers the Work as-is and makes no representations or
|
|
519
|
+
> warranties of any kind concerning the Work, express, implied,
|
|
520
|
+
> statutory or otherwise, including without limitation warranties of
|
|
521
|
+
> title, merchantability, fitness for a particular purpose, non
|
|
522
|
+
> infringement, or the absence of latent or other defects, accuracy, or
|
|
523
|
+
> the present or absence of errors, whether or not discoverable, all to
|
|
524
|
+
> the greatest extent permissible under applicable law.
|
|
525
|
+
> c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
526
|
+
> that may apply to the Work or any use thereof, including without
|
|
527
|
+
> limitation any person's Copyright and Related Rights in the Work.
|
|
528
|
+
> Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
529
|
+
> consents, permissions or other rights required for any use of the
|
|
530
|
+
> Work.
|
|
531
|
+
> d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
532
|
+
> party to this document and has no duty or obligation with respect to
|
|
533
|
+
> this CC0 or use of the Work.
|
|
534
|
+
|
|
406
535
|
<!-- /TYPE_DEPENDENCIES -->
|
package/dist/eol.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{createRequire as
|
|
2
|
-
`,
|
|
3
|
-
`,
|
|
1
|
+
import{createRequire as f}from"node:module";const i=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,{platform:a}=i,s=/\r?\n/g,n=`
|
|
2
|
+
`,c=`\r
|
|
3
|
+
`,u=a==="win32"?c:n,p=t=>{const e=t.match(s);if(!e||e.length===0)return null;const r=e.filter(l=>l===c).length,o=e.length-r;return r>o?c:n},g=(t,e)=>t.replaceAll(s,e);export{c as CRLF,u as EOL,n as LF,p as detect,g as format};
|
package/dist/glob-parent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createRequire as
|
|
1
|
+
import{createRequire as m}from"node:module";import{g as h}from"./packem_shared/_commonjsHelpers-CqkleIqs.js";import{r as q}from"./packem_shared/index-ovH_d7Hf.js";let v;const _=a=>(v??=m(import.meta.url))(a),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,f=a=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[n,s]=o.versions.node.split(".").map(Number);if(n>22||n===22&&s>=3||n===20&&s>=16)return o.getBuiltinModule(a)}return _(a)},P=f("path"),j=f("os");var l,c;function x(){if(c)return l;c=1;var a=q(),n=P.posix.dirname,s=j.platform()==="win32",t="/",p=/\\/g,d=/\\([!*?|[\](){}])/g;l=function(e,i){var u=Object.assign({flipBackslashes:!0},i);u.flipBackslashes&&s&&e.indexOf(t)<0&&(e=e.replace(p,t)),b(e)&&(e+=t),e+="a";do e=n(e);while(g(e));return e.replace(d,"$1")};function b(r){var e=r.slice(-1),i;switch(e){case"}":i="{";break;case"]":i="[";break;default:return!1}var u=r.indexOf(i);return u<0?!1:r.slice(u+1,-1).includes(t)}function g(r){return/\([^()]+$/.test(r)||r[0]==="{"||r[0]==="["||/[^\\][{[]/.test(r)?!0:a(r)}return l}var $=x();const k=h($),R=(a,n)=>k(a,n);export{R as default};
|
package/dist/glob.d.ts
CHANGED
|
@@ -1,4 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
export type { G as GlobOptions } from "./packem_shared/types.d-CgCO6qUp.js";
|
|
1
|
+
import { H as GlobOptions } from "./packem_shared/types.d-B-T1rDxl.js";
|
|
3
2
|
import 'node:fs';
|
|
4
3
|
import 'fdir';
|
|
4
|
+
/**
|
|
5
|
+
* Asynchronously matches files on disk using one or more glob patterns.
|
|
6
|
+
*
|
|
7
|
+
* Powered by [`tinyglobby`](https://github.com/SuperchupuDev/tinyglobby); `tinyglobby` is bundled into the
|
|
8
|
+
* built output so it does not appear as a runtime dependency of `@visulima/fs`.
|
|
9
|
+
*
|
|
10
|
+
* Pattern forms:
|
|
11
|
+
*
|
|
12
|
+
* - Plain glob — `src/**\/*.ts`
|
|
13
|
+
* - Negated pattern — `!src/**\/*.spec.ts` inside `patterns` adds to the internal ignore list (same as passing it via `ignore`).
|
|
14
|
+
* - Negated ignore — a leading `!` inside {@link GlobOptions.ignore} _un-ignores_ entries that an earlier ignore pattern would drop, e.g. `ignore: ["dist/**", "!dist/index.d.ts"]`.
|
|
15
|
+
* @param patterns A single glob pattern or an array of glob patterns.
|
|
16
|
+
* @param options Optional glob options. See {@link GlobOptions}.
|
|
17
|
+
* @returns A promise resolving to the array of matched paths. Paths are relative to {@link GlobOptions.cwd} unless {@link GlobOptions.absolute} is `true`.
|
|
18
|
+
* @example
|
|
19
|
+
* ```javascript
|
|
20
|
+
* import { glob } from "@visulima/fs";
|
|
21
|
+
*
|
|
22
|
+
* const jsFiles = await glob("src/**\/*.{js,ts}", { cwd: process.cwd(), ignore: ["**\/node_modules/**"] });
|
|
23
|
+
* console.log(jsFiles);
|
|
24
|
+
*
|
|
25
|
+
* // Negated ignore: drop everything under `ignored/` except `ignored/keep.ts`.
|
|
26
|
+
* const keep = await glob("**\/*.ts", { ignore: ["ignored/**", "!ignored/keep.ts"] });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare const glob: (patterns: string | ReadonlyArray<string>, options?: GlobOptions) => Promise<string[]>;
|
|
30
|
+
/**
|
|
31
|
+
* Synchronously matches files on disk using one or more glob patterns.
|
|
32
|
+
*
|
|
33
|
+
* Synchronous counterpart of `glob`. Powered by [`tinyglobby`](https://github.com/SuperchupuDev/tinyglobby);
|
|
34
|
+
* bundled into the built output so it does not appear as a runtime dependency of `@visulima/fs`.
|
|
35
|
+
*
|
|
36
|
+
* Pattern forms:
|
|
37
|
+
*
|
|
38
|
+
* - Plain glob — `src/**\/*.ts`
|
|
39
|
+
* - Negated pattern — `!src/**\/*.spec.ts` inside `patterns` adds to the internal ignore list.
|
|
40
|
+
* - Negated ignore — a leading `!` inside {@link GlobOptions.ignore} _un-ignores_ entries that an earlier ignore pattern would drop, e.g. `ignore: ["dist/**", "!dist/index.d.ts"]`.
|
|
41
|
+
* @param patterns A single glob pattern or an array of glob patterns.
|
|
42
|
+
* @param options Optional glob options. See {@link GlobOptions}.
|
|
43
|
+
* @returns The array of matched paths. Paths are relative to {@link GlobOptions.cwd} unless {@link GlobOptions.absolute} is `true`.
|
|
44
|
+
* @example
|
|
45
|
+
* ```javascript
|
|
46
|
+
* import { globSync } from "@visulima/fs";
|
|
47
|
+
*
|
|
48
|
+
* const jsFiles = globSync(["src/**\/*.ts", "!**\/*.spec.ts"]);
|
|
49
|
+
* console.log(jsFiles);
|
|
50
|
+
*
|
|
51
|
+
* // Negated ignore: drop everything under `ignored/` except `ignored/keep.ts`.
|
|
52
|
+
* const keep = globSync("**\/*.ts", { ignore: ["ignored/**", "!ignored/keep.ts"] });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
declare const globSync: (patterns: string | ReadonlyArray<string>, options?: GlobOptions) => string[];
|
|
56
|
+
export { type GlobOptions, glob, globSync };
|
package/dist/glob.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"./packem_shared/glob-
|
|
1
|
+
import{default as e}from"./packem_shared/glob-Cyk1H9ZL.js";import{default as l}from"./packem_shared/globSync-Cm0u7eCn.js";export{e as glob,l as globSync};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { q as WalkOptions, F as FindUpName, r as FindUpOptions, s as FindUpNameSync, t as WalkEntry, u as ReadFileOptions, v as ContentType, w as ReadJsonOptions, l as JsonReviver, x as RetryOptions, y as WriteFileOptions, z as WriteJsonOptions } from "./packem_shared/types.d-
|
|
2
|
-
export { type A as CodeFrameLocation, type k as CodeFrameOptions, B as FIND_UP_STOP, D as F_OK, type E as FindUpNameFnResult, type
|
|
1
|
+
import { q as WalkOptions, F as FindUpName, r as FindUpOptions, s as FindUpNameSync, t as WalkEntry, u as ReadFileOptions, v as ContentType, w as ReadJsonOptions, l as JsonReviver, x as RetryOptions, y as WriteFileOptions, z as WriteJsonOptions } from "./packem_shared/types.d-B-T1rDxl.js";
|
|
2
|
+
export { type A as CodeFrameLocation, type k as CodeFrameOptions, B as FIND_UP_STOP, D as F_OK, type E as FindUpNameFnResult, type G as FindUpNameSyncFnResult, type H as GlobOptions, type o as JsonReplacer, K as R_OK, type L as ReadFileEncoding, M as W_OK, X as X_OK } from "./packem_shared/types.d-B-T1rDxl.js";
|
|
3
3
|
import { symlink } from 'node:fs';
|
|
4
4
|
export { CRLF, EOL, LF, detect, format } from "./eol.js";
|
|
5
|
-
export {
|
|
5
|
+
export { glob, globSync } from "./glob.js";
|
|
6
6
|
export { type GlobParentOptions, default as globParent } from "./glob-parent.js";
|
|
7
7
|
export { type IsGlobOptions, default as isGlob } from "./is-glob.js";
|
|
8
8
|
export { type MatchOptions, match, matcher } from "./match.js";
|
|
9
|
-
import { JsonValue } from
|
|
9
|
+
import { J as JsonValue } from "./packem_shared/json-value.d-DZqAihX4.js";
|
|
10
10
|
import fs from 'fs';
|
|
11
11
|
import 'fdir';
|
|
12
12
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createRequire as h}from"node:module";import{FIND_UP_STOP as R,F_OK as P,R_OK as $,W_OK as J,X_OK as K}from"./packem_shared/FIND_UP_STOP-
|
|
1
|
+
import{createRequire as h}from"node:module";import{FIND_UP_STOP as R,F_OK as P,R_OK as $,W_OK as J,X_OK as K}from"./packem_shared/FIND_UP_STOP-pQqZdUPw.js";import{default as U}from"./packem_shared/copy-Cv8Vvdrc.js";import{default as M}from"./packem_shared/copySync-JIxmcGrd.js";import{default as B}from"./packem_shared/ensureDir-qy_X-WeG.js";import{default as N}from"./packem_shared/ensureDirSync-ONFJBCbg.js";import{default as G}from"./packem_shared/ensureFile-q1ozF6q5.js";import{default as X}from"./packem_shared/ensureFileSync-B6eR38N_.js";import{default as Q}from"./packem_shared/ensureLink-BpsTVGAm.js";import{default as Y}from"./packem_shared/ensureLinkSync-B5moWvh3.js";import{default as ee}from"./packem_shared/ensureSymlink-BF0BwVPy.js";import{default as te}from"./packem_shared/ensureSymlinkSync-D-JzDuD7.js";import{CRLF as se,EOL as ae,LF as ne,detect as fe,format as ie}from"./eol.js";import{default as le}from"./packem_shared/collect-DXVMgRiZ.js";import{default as pe}from"./packem_shared/collectSync-jjcJdHox.js";import{default as de}from"./packem_shared/findUp-BlQ1EUhu.js";import{default as ye}from"./packem_shared/findUpSync-CF1OXVQw.js";import{default as ve}from"./packem_shared/glob-Cyk1H9ZL.js";import{default as he}from"./packem_shared/globSync-Cm0u7eCn.js";import{default as be}from"./packem_shared/walk-Brue5N30.js";import{default as we}from"./packem_shared/walkSync-BWGgTwUy.js";import{default as Ce}from"./glob-parent.js";import{default as je}from"./packem_shared/isAccessible-CqNOFdZu.js";import{default as Oe}from"./packem_shared/isAccessibleSync-DYKTrrvc.js";import{default as Re}from"./is-glob.js";import{match as $e,matcher as Je}from"./match.js";import{move as Te,moveSync as Ue,rename as We,renameSync as Me}from"./packem_shared/move-DG3P4i6Y.js";import{default as Be}from"./packem_shared/readFile-DbKGLwIK.js";import{default as Ne}from"./packem_shared/readFileSync-CTTHkZ_p.js";import{default as Ge}from"./packem_shared/readJson-CClJlGok.js";import{default as Xe}from"./packem_shared/readJsonSync-CbryXYxN.js";import{default as Qe}from"./packem_shared/emptyDir-DQ1LfO2i.js";import{default as Ye}from"./packem_shared/emptyDirSync-BXDqirP1.js";import{default as er}from"./packem_shared/remove-4ofpEuH1.js";import{default as tr}from"./packem_shared/removeSync-g1D5kONg.js";import{sanitize as sr}from"./packem_shared/sanitize-B1LHjdjC.js";import{default as nr}from"./packem_shared/writeFile-BIBP7wbK.js";import{default as ir}from"./packem_shared/writeFileSync-DJoHk3Ks.js";import{default as lr}from"./packem_shared/writeJson-DmN1UqZc.js";import{default as pr}from"./packem_shared/writeJsonSync-BiFyXQ5h.js";let F;const b=n=>(F??=h(import.meta.url))(n),f=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,u=n=>{if(typeof f<"u"&&f.versions&&f.versions.node){const[s,i]=f.versions.node.split(".").map(Number);if(s>22||s===22&&i>=3||s===20&&i>=16)return f.getBuiltinModule(n)}return b(n)},g=u("fs"),w=u("os"),k=u("path");var l={},x;function C(){if(x)return l;x=1;var n=Object.defineProperty,s=(o,e)=>n(o,"name",{value:e,configurable:!0}),i=g,y=w,S=k;const p=s(o=>{let e="";for(let r=0;r<o.length;r+=1){const t=o[r],a=t.toUpperCase();e+=t===a?t.toLowerCase():a}return e},"invertCase"),c=new Map,m=s((o,e)=>{const r=S.join(o,`.is-fs-case-sensitive-test-${process.pid}`);try{return e.writeFileSync(r,""),!e.existsSync(p(r))}finally{try{e.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),v=s((o,e,r)=>{try{return m(o,r)}catch(t){if(e===void 0)return m(y.tmpdir(),r);throw t}},"checkDirectoryCaseWithFallback"),_=s((o,e=i,r=!0)=>{const t=o??process.cwd();if(r&&c.has(t))return c.get(t);let a;const d=p(t);return d!==t&&e.existsSync(t)?a=!e.existsSync(d):a=v(t,o,e),r&&c.set(t,a),a},"isFsCaseSensitive");return l.isFsCaseSensitive=_,l}var D=C();const q=D.isFsCaseSensitive;export{se as CRLF,ae as EOL,R as FIND_UP_STOP,P as F_OK,ne as LF,$ as R_OK,J as W_OK,K as X_OK,le as collect,pe as collectSync,U as copy,M as copySync,fe as detect,Qe as emptyDir,Ye as emptyDirSync,B as ensureDir,N as ensureDirSync,G as ensureFile,X as ensureFileSync,Q as ensureLink,Y as ensureLinkSync,ee as ensureSymlink,te as ensureSymlinkSync,de as findUp,ye as findUpSync,ie as format,ve as glob,Ce as globParent,he as globSync,je as isAccessible,Oe as isAccessibleSync,q as isFsCaseSensitive,Re as isGlob,$e as match,Je as matcher,Te as move,Ue as moveSync,Be as readFile,Ne as readFileSync,Ge as readJson,Xe as readJsonSync,er as remove,tr as removeSync,We as rename,Me as renameSync,sr as sanitize,be as walk,we as walkSync,nr as writeFile,ir as writeFileSync,lr as writeJson,pr as writeJsonSync};
|
package/dist/ini.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CompressionType, R as ReadIniOptions, W as WriteIniOptions } from "./packem_shared/types.d-
|
|
2
|
-
export type { I as IniEncodeOptions, a as IniLineEnding } from "./packem_shared/types.d-
|
|
1
|
+
import { C as CompressionType, R as ReadIniOptions, W as WriteIniOptions } from "./packem_shared/types.d-B-T1rDxl.js";
|
|
2
|
+
export type { I as IniEncodeOptions, a as IniLineEnding } from "./packem_shared/types.d-B-T1rDxl.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'fdir';
|
|
5
5
|
/**
|
package/dist/ini.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as a}from"./packem_shared/readIni-
|
|
1
|
+
import{default as a}from"./packem_shared/readIni-C9VUitQm.js";import{default as f}from"./packem_shared/readIniSync-DhMbhDPx.js";import{default as d}from"./packem_shared/writeIni--gog68qN.js";import{default as n}from"./packem_shared/writeIniSync-BL_z8aMQ.js";export{a as readIni,f as readIniSync,d as writeIni,n as writeIniSync};
|
package/dist/is-glob.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as s}from"./packem_shared/_commonjsHelpers-
|
|
1
|
+
import{g as s}from"./packem_shared/_commonjsHelpers-CqkleIqs.js";import{r as t}from"./packem_shared/index-ovH_d7Hf.js";var l=t();const a=s(l),m=(o,r)=>a(o,r);export{m as default};
|
package/dist/json5.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CompressionType, b as ReadJson5Options, J as Json5Reviver, c as WriteJson5Options } from "./packem_shared/types.d-
|
|
2
|
-
export type { d as Json5Replacer } from "./packem_shared/types.d-
|
|
1
|
+
import { C as CompressionType, b as ReadJson5Options, J as Json5Reviver, c as WriteJson5Options } from "./packem_shared/types.d-B-T1rDxl.js";
|
|
2
|
+
export type { d as Json5Replacer } from "./packem_shared/types.d-B-T1rDxl.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'fdir';
|
|
5
5
|
declare function readJson5<R = unknown>(path: URL | string, options?: ReadJson5Options<CompressionType>): Promise<R>;
|
package/dist/json5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"./packem_shared/readJson5-
|
|
1
|
+
import{default as r}from"./packem_shared/readJson5-D33tgtEU.js";import{default as t}from"./packem_shared/readJson5Sync-DEd-ejtp.js";import{default as s}from"./packem_shared/writeJson5-CPRmF2K7.js";import{default as n}from"./packem_shared/writeJson5Sync-BiUfm-cZ.js";export{r as readJson5,t as readJson5Sync,s as writeJson5,n as writeJson5Sync};
|
package/dist/jsonc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CompressionType, e as ReadJsoncOptions, f as WriteJsoncOptions } from "./packem_shared/types.d-
|
|
2
|
-
export type { g as JsoncFormattingOptions, h as JsoncParseOptions } from "./packem_shared/types.d-
|
|
1
|
+
import { C as CompressionType, e as ReadJsoncOptions, f as WriteJsoncOptions } from "./packem_shared/types.d-B-T1rDxl.js";
|
|
2
|
+
export type { g as JsoncFormattingOptions, h as JsoncParseOptions } from "./packem_shared/types.d-B-T1rDxl.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'fdir';
|
|
5
5
|
/**
|
package/dist/jsonc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"./packem_shared/readJsonc-
|
|
1
|
+
import{default as r}from"./packem_shared/readJsonc-Cp1KzmVx.js";import{default as t}from"./packem_shared/readJsoncSync-sE30rJ5W.js";import{default as s}from"./packem_shared/writeJsonc-B4ahk9a2.js";import{default as d}from"./packem_shared/writeJsoncSync-lBv1IFDo.js";export{r as readJsonc,t as readJsoncSync,s as writeJsonc,d as writeJsoncSync};
|
package/dist/match.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{p as s}from"./packem_shared/index-DDkv7LRn.js";const i=(r,c,o)=>{const t=s(c,o);return Array.isArray(r)?r.some(n=>t(n)):t(r)},m=(r,c)=>{const o=s(r,c);return t=>o(t)};export{i as match,m as matcher};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=0,_=4,n=2,t=1,s=Symbol("findUpStop"),c=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;export{s as FIND_UP_STOP,o as F_OK,c as INTERNAL_STRIP_JSON_REGEX,_ as R_OK,n as W_OK,t as X_OK};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}export{e as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const n=t=>{if(!t||!(t instanceof URL)&&typeof t!="string")throw new TypeError("Path must be a non-empty string or URL.")};export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=e=>{const r={force:!0,recursive:!0};return e?.maxRetries!==void 0&&(r.maxRetries=e.maxRetries),e?.retryDelay!==void 0&&(r.retryDelay=e.retryDelay),r};export{t as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import a from"./walk-Brue5N30.js";const c=async(r,s={})=>{Array.isArray(s.extensions)||(s.extensions=["js","mjs","cjs","ts"]);const t=[];for await(const e of a(r,s))t.push(e.path);return t};export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n from"./walkSync-BWGgTwUy.js";const o=(t,s={})=>{Array.isArray(s.extensions)||(s.extensions=["js","mjs","cjs","ts"]);const r=[];for(const e of n(t,s))r.push(e.path);return r};export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as h}from"node:module";import{toPath as n}from"@visulima/path/utils";import E from"./AlreadyExistsError-DEb3UWja.js";import c from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";let y;const v=e=>(y??=h(import.meta.url))(e),t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=e=>{if(typeof t<"u"&&t.versions&&t.versions.node){const[r,s]=t.versions.node.split(".").map(Number);if(r>22||r===22&&s>=3||r===20&&s>=16)return t.getBuiltinModule(e)}return v(e)},{cp:j}=g("node:fs/promises"),T=async(e,r,s={})=>{c(e),c(r);const{dereference:a=!1,errorOnExist:l=!0,filter:f,overwrite:p=!0,preserveTimestamps:u=!1,recursive:d=!0,verbatimSymlinks:m=!1}=s,_=n(e),o=n(r);try{await j(_,o,{dereference:a,errorOnExist:l,filter:f,force:p,preserveTimestamps:u,recursive:d,verbatimSymlinks:m})}catch(i){throw i?.code==="ERR_FS_CP_EEXIST"?new E(`destination already exists, copy '${o}'`):i}};export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as y}from"node:module";import{toPath as n}from"@visulima/path/utils";import E from"./AlreadyExistsError-DEb3UWja.js";import c from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";let h;const v=e=>(h??=y(import.meta.url))(e),t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=e=>{if(typeof t<"u"&&t.versions&&t.versions.node){const[r,o]=t.versions.node.split(".").map(Number);if(r>22||r===22&&o>=3||r===20&&o>=16)return t.getBuiltinModule(e)}return v(e)},{cpSync:j}=g("node:fs"),T=(e,r,o={})=>{c(e),c(r);const{dereference:a=!1,errorOnExist:l=!0,filter:f,overwrite:u=!0,preserveTimestamps:p=!1,recursive:d=!0,verbatimSymlinks:_=!1}=o,m=n(e),s=n(r);try{j(m,s,{dereference:a,errorOnExist:l,filter:f,force:u,preserveTimestamps:p,recursive:d,verbatimSymlinks:_})}catch(i){throw i?.code==="ERR_FS_CP_EEXIST"?new E(`destination already exists, copy '${s}'`):i}};export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as c}from"node:module";import{join as _}from"@visulima/path";import{toPath as d}from"@visulima/path/utils";import j from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";import{b as y}from"./build-rm-options-_U1T9rOz.js";let a;const m=e=>(a??=c(import.meta.url))(e),t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,s=e=>{if(typeof t<"u"&&t.versions&&t.versions.node){const[o,r]=t.versions.node.split(".").map(Number);if(o>22||o===22&&r>=3||o===20&&r>=16)return t.getBuiltinModule(e)}return m(e)},{existsSync:u}=s("node:fs"),{mkdir:f,readdir:p,rm:l}=s("node:fs/promises"),R=async(e,o)=>{if(j(e),!u(e)){await f(e,{recursive:!0});return}const r=await p(e),i=y(o);for(const n of r)await l(_(d(e),n),i)};export{R as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as i}from"node:module";import{join as l}from"@visulima/path";import{toPath as _}from"@visulima/path/utils";import d from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";import{b as y}from"./build-rm-options-_U1T9rOz.js";let n;const c=e=>(n??=i(import.meta.url))(e),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,m=e=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[r,t]=o.versions.node.split(".").map(Number);if(r>22||r===22&&t>=3||r===20&&t>=16)return o.getBuiltinModule(e)}return c(e)},{existsSync:u,mkdirSync:a,readdirSync:f,rmSync:p}=m("node:fs"),q=(e,r)=>{if(d(e),!u(e)){a(e,{recursive:!0});return}const t=y(r);for(const s of f(e))p(l(_(e),s),t)};export{q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as n}from"node:module";import l from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";import{g as i}from"./get-file-info-type-DzWpohDB.js";let c;const a=r=>(c??=n(import.meta.url))(r),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,u=r=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,t]=s.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return s.getBuiltinModule(r)}return a(r)},{lstat:o,mkdir:f}=u("node:fs/promises"),h=async r=>{l(r);try{const e=await o(r);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(i(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{await f(r,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const t=await o(r);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(i(t))}'`,{cause:e})}};export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createRequire as n}from"node:module";import
|
|
1
|
+
import{createRequire as n}from"node:module";import l from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";import{g as i}from"./get-file-info-type-DzWpohDB.js";let c;const u=r=>(c??=n(import.meta.url))(r),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,a=r=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[e,t]=o.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return o.getBuiltinModule(r)}return u(r)},{lstatSync:s,mkdirSync:f}=a("node:fs"),h=r=>{l(r);try{const e=s(r);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(i(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{f(r,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const t=s(r);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(i(t))}'`,{cause:e})}};export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createRequire as
|
|
1
|
+
import{createRequire as s}from"node:module";import{dirname as u}from"@visulima/path";import{toPath as m}from"@visulima/path/utils";import l from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";import f from"./ensureDir-qy_X-WeG.js";import{g as d}from"./get-file-info-type-DzWpohDB.js";let i;const n=e=>(i??=s(import.meta.url))(e),t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,a=e=>{if(typeof t<"u"&&t.versions&&t.versions.node){const[r,o]=t.versions.node.split(".").map(Number);if(r>22||r===22&&o>=3||r===20&&o>=16)return t.getBuiltinModule(e)}return n(e)},{lstat:c,writeFile:p}=a("node:fs/promises"),F=async e=>{l(e);try{const r=await c(e);if(!r.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(d(r))}'`)}catch(r){if(r.code==="ENOENT"){await f(u(m(e))),await p(e,new Uint8Array);return}throw r}};export{F as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as s}from"node:module";import{dirname as p}from"@visulima/path";import{toPath as l}from"@visulima/path/utils";import m from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";import f from"./ensureDirSync-ONFJBCbg.js";import{g as d}from"./get-file-info-type-DzWpohDB.js";let i;const n=e=>(i??=s(import.meta.url))(e),t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,c=e=>{if(typeof t<"u"&&t.versions&&t.versions.node){const[r,o]=t.versions.node.split(".").map(Number);if(r>22||r===22&&o>=3||r===20&&o>=16)return t.getBuiltinModule(e)}return n(e)},{lstatSync:a,writeFileSync:u}=c("node:fs"),F=e=>{m(e);try{const r=a(e);if(!r.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(d(r))}'`)}catch(r){if(r.code==="ENOENT"){f(p(l(e))),u(e,new Uint8Array);return}throw r}};export{F as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as p}from"node:module";import{toNamespacedPath as n,dirname as h}from"@visulima/path";import{toPath as c}from"@visulima/path/utils";import l from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";import g from"./ensureDir-qy_X-WeG.js";import{i as y}from"./is-stats-identical-DOh8_0KH.js";let f;const u=e=>(f??=p(import.meta.url))(e),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=e=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[r,t]=s.versions.node.split(".").map(Number);if(r>22||r===22&&t>=3||r===20&&t>=16)return s.getBuiltinModule(e)}return u(e)},{lstat:i,link:d}=_("node:fs/promises"),v=async(e,r)=>{l(e),l(r),e=n(c(e)),r=n(c(r));let t;try{t=await i(r)}catch{}let a;try{a=await i(e)}catch(m){const o=m;throw o.message=o.message.replace("lstat","ensureLink"),o}t&&y(a,t)||(await g(h(r)),await d(e,r))};export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as p}from"node:module";import{toNamespacedPath as c,dirname as h}from"@visulima/path";import{toPath as a}from"@visulima/path/utils";import l from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";import y from"./ensureDirSync-ONFJBCbg.js";import{i as g}from"./is-stats-identical-DOh8_0KH.js";let f;const u=e=>(f??=p(import.meta.url))(e),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=e=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[r,t]=s.versions.node.split(".").map(Number);if(r>22||r===22&&t>=3||r===20&&t>=16)return s.getBuiltinModule(e)}return u(e)},{lstatSync:n,linkSync:d}=_("node:fs"),v=(e,r)=>{l(e),l(r),e=c(a(e)),r=c(a(r));let t;try{t=n(r)}catch{}let i;try{i=n(e)}catch(m){const o=m;throw o.message=o.message.replace("lstat","ensureLink"),o}t&&g(i,t)||(y(h(r)),d(e,r))};export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as S}from"node:module";import{toNamespacedPath as f,dirname as b,resolve as v}from"@visulima/path";import{toPath as m}from"@visulima/path/utils";import u from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";import E from"./ensureDir-qy_X-WeG.js";import{g as y}from"./get-file-info-type-DzWpohDB.js";import{i as R}from"./is-stats-identical-DOh8_0KH.js";import{r as $}from"./resolve-symlink-target-D4Pb9Fjw.js";import h from"./AlreadyExistsError-DEb3UWja.js";let g;const P=e=>(g??=S(import.meta.url))(e),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,T=e=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[t,r]=s.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return s.getBuiltinModule(e)}return P(e)},{lstat:l,stat:d,symlink:j,readlink:I}=T("node:fs/promises"),q=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),V=async(e,t,r)=>{u(e),u(t);const o=$(e,t);t=f(m(t));try{if((await l(t)).isSymbolicLink()){const[i,c]=await Promise.all([d(o),d(t)]);if(R(i,c))return}}catch{}const w=await l(o),_=y(w);await E(b(t));let a=r??"file";r||(q?a="junction":a=_==="dir"?"dir":"file");try{await j(f(m(o)),t,a)}catch(n){if(n.code!=="EEXIST")throw n;const i=await l(t);if(!i.isSymbolicLink())throw new h(`A ${String(y(i))} already exists at the path: ${t}`);const c=await I(t),p=f(v(c));if(p!==o)throw new h(`A symlink targeting to an undesired path already exists: ${t} -> ${p}`)}};export{V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as P}from"node:module";import{toNamespacedPath as d,dirname as v,resolve as E}from"@visulima/path";import{toPath as y}from"@visulima/path/utils";import u from"./assertValidFileOrDirectoryPath-CAHgg-jK.js";import R from"./ensureDirSync-ONFJBCbg.js";import{g as m}from"./get-file-info-type-DzWpohDB.js";import{i as S}from"./is-stats-identical-DOh8_0KH.js";import{r as $}from"./resolve-symlink-target-D4Pb9Fjw.js";import h from"./AlreadyExistsError-DEb3UWja.js";let T;const w=r=>(T??=P(import.meta.url))(r),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,j=r=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[t,e]=s.versions.node.split(".").map(Number);if(t>22||t===22&&e>=3||t===20&&e>=16)return s.getBuiltinModule(r)}return w(r)},{lstatSync:l,statSync:n,symlinkSync:I,readlinkSync:b}=j("node:fs"),q=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE),V=(r,t,e)=>{u(r),u(t);const o=$(r,t);t=d(y(t));try{if(l(t).isSymbolicLink()&&S(n(o),n(t))){const i=n(o),f=n(t);if(S(i,f))return}}catch{}const _=l(o),g=m(_);R(v(t));let c=e??"file";e||(q?c="junction":c=g==="dir"?"dir":"file");try{I(d(y(o)),t,c)}catch(a){if(a.code!=="EEXIST")throw a;const i=l(t);if(!i.isSymbolicLink())throw new h(`A ${String(m(i))} already exists at the path: ${t}`);const f=b(t),p=d(E(f));if(p!==o)throw new h(`A symlink targeting to an undesired path already exists: ${t} -> ${p}`)}};export{V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as m}from"node:module";import{resolve as c,parse as j,isAbsolute as P,dirname as T}from"@visulima/path";import{toPath as f}from"@visulima/path/utils";import{FIND_UP_STOP as q}from"./FIND_UP_STOP-pQqZdUPw.js";let g;const w=t=>(g??=m(import.meta.url))(t),o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,b=t=>{if(typeof o<"u"&&o.versions&&o.versions.node){const[e,i]=o.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return o.getBuiltinModule(t)}return w(t)},{stat:v,lstat:A}=b("node:fs/promises"),F=async(t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const i=e.cwd?f(e.cwd):process.cwd();let s=c(i);const{root:a}=j(s),d=f(e.stopAt??a),y=c(s,d),u=e.type??"file",_=async function(n){return typeof t=="function"?[await t(n)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]};e.allowSymlinks??=!0;const h=e.allowSymlinks?v:A;for(;s;){const n=await _(s);for(let r of n){if(r===q)return;if(r===void 0)continue;Buffer.isBuffer(r)?r=r.toString():r instanceof URL&&(r=f(r));const l=P(r)?r:c(s,r);try{const p=await h(l);if(u==="file"&&p.isFile()||u==="directory"&&p.isDirectory())return l}catch{}}if(s===y||s===a)break;s=T(s)}};export{F as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as h}from"node:module";import{resolve as c,parse as A,isAbsolute as S,dirname as j}from"@visulima/path";import{toPath as f}from"@visulima/path/utils";import{FIND_UP_STOP as P}from"./FIND_UP_STOP-pQqZdUPw.js";let g;const m=t=>(g??=h(import.meta.url))(t),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,w=t=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,i]=s.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return s.getBuiltinModule(t)}return m(t)},{statSync:b,lstatSync:v}=w("node:fs"),k=(t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const i=e.cwd?f(e.cwd):process.cwd();let o=c(i);const{root:u}=A(o),y=f(e.stopAt??u),d=c(o,y),l=e.type??"file",p=function(r){return typeof t=="function"?[t(r)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]};e.allowSymlinks??=!0;const _=e.allowSymlinks?b:v;for(;o;){for(let r of p(o)){if(r===P)return;if(r===void 0)continue;Buffer.isBuffer(r)?r=r.toString():r instanceof URL&&(r=f(r));const n=S(r)?r:c(o,r);try{const a=_(n);if(l==="file"&&a.isFile()||l==="directory"&&a.isDirectory())return n}catch{}}if(o===d||o===u)break;o=j(o)}};export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./index-DGueExxA.js";const l=async(a,o)=>await t(a,o);export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as a}from"./index-DGueExxA.js";const g=(o,t)=>a(o,t);export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const h=/^(?:( )+|\t+)/,a="space";function E(e,t,n){return e&&t===a&&n===1}function I(e,t){const n=new Map;let o=0,c,s;for(const i of e.split(/\n/g)){if(!i)continue;const u=i.match(h);if(u===null)o=0,c="";else{const d=u[0].length,r=u[1]?a:"tab";if(E(t,r,d))continue;r!==c&&(o=0),c=r;let l=1,p=0;const y=d-o;if(o=d,y===0)l=0,p=1;else{const T=Math.abs(y);if(E(t,r,T))continue;s=N(r,T)}const f=n.get(s);n.set(s,f===void 0?[1,0]:[f[0]+l,f[1]+p])}}return n}function N(e,t){return(e===a?"s":"t")+String(t)}function g(e){const n=e[0]==="s"?a:"tab",o=Number(e.slice(1));return{type:n,amount:o}}function m(e){let t,n=0,o=0;for(const[c,[s,i]]of e)(s>n||s===n&&i>o)&&(n=s,o=i,t=c);return t}function _(e,t){return(e===a?" ":" ").repeat(t)}function k(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=I(e,!0);t.size===0&&(t=I(e,!1));const n=m(t);let o,c=0,s="";return n!==void 0&&({type:o,amount:c}=g(n),s=_(o,c)),{amount:c,type:o,indent:s}}export{k as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as wt}from"./_commonjsHelpers-CqkleIqs.js";var gt={},bt,Ct;function _t(){if(Ct)return bt;Ct=1;const g="\\\\/",d=`[^${g}]`,q=0,F=Symbol("unignore"),O="\\.",c="\\+",a="\\?",i="\\/",f="(?=.)",v="[^/]",y=`(?:${i}|$)`,M=`(?:^|${i})`,I=`${O}{1,2}${y}`,w=`(?!${O})`,K=`(?!${M}${I})`,it=`(?!${O}{0,1}${y})`,j=`(?!${I})`,tt=`[^.${i}]`,z=`${v}*?`,l={DOT_LITERAL:O,PLUS_LITERAL:c,QMARK_LITERAL:a,SLASH_LITERAL:i,ONE_CHAR:f,QMARK:v,END_ANCHOR:y,DOTS_SLASH:I,NO_DOT:w,NO_DOTS:K,NO_DOT_SLASH:it,NO_DOTS_SLASH:j,QMARK_NO_DOT:tt,STAR:z,START_ANCHOR:M,SEP:"/"},t={...l,SLASH_LITERAL:`[${g}]`,QMARK:d,STAR:`${d}*?`,DOTS_SLASH:`${O}{1,2}(?:[${g}]|$)`,NO_DOT:`(?!${O})`,NO_DOTS:`(?!(?:^|[${g}])${O}{1,2}(?:[${g}]|$))`,NO_DOT_SLASH:`(?!${O}{0,1}(?:[${g}]|$))`,NO_DOTS_SLASH:`(?!${O}{1,2}(?:[${g}]|$))`,QMARK_NO_DOT:`[^.${g}]`,START_ANCHOR:`(?:^|[${g}])`,END_ANCHOR:`(?:[${g}]|$)`,SEP:"\\"},E={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return bt={DEFAULT_MAX_EXTGLOB_RECURSION:q,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,UNIGNORE:F,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(h){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${h.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(h){return h===!0?t:l}},bt}var $t;function Et(){return $t||($t=1,(function(g){const{REGEX_BACKSLASH:d,REGEX_REMOVE_BACKSLASH:q,REGEX_SPECIAL_CHARS:F,REGEX_SPECIAL_CHARS_GLOBAL:O}=_t();g.isObject=c=>c!==null&&typeof c=="object"&&!Array.isArray(c),g.hasRegexChars=c=>F.test(c),g.isRegexChar=c=>c.length===1&&g.hasRegexChars(c),g.escapeRegex=c=>c.replace(O,"\\$1"),g.toPosixSlashes=c=>c.replace(d,"/"),g.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const c=navigator.platform.toLowerCase();return c==="win32"||c==="windows"}return process.platform?process.platform==="win32":!1},g.removeBackslashes=c=>c.replace(q,a=>a==="\\"?"":a),g.escapeLast=(c,a,i)=>{const f=c.lastIndexOf(a,i);return f===-1?c:c[f-1]==="\\"?g.escapeLast(c,a,f-1):`${c.slice(0,f)}\\${c.slice(f)}`},g.removePrefix=(c,a={})=>{let i=c;return i.startsWith("./")&&(i=i.slice(2),a.prefix="./"),i},g.wrapOutput=(c,a={},i={})=>{const f=i.contains?"":"^",v=i.contains?"":"$";let y=`${f}(?:${c})${v}`;return a.negated===!0&&(y=`(?:^(?!${y}).*$)`),y},g.basename=(c,{windows:a}={})=>{const i=c.split(a?/[\\/]/:"/"),f=i[i.length-1];return f===""?i[i.length-2]:f}})(gt)),gt}var xt,Ht;function Nt(){if(Ht)return xt;Ht=1;const g=Et(),{CHAR_ASTERISK:d,CHAR_AT:q,CHAR_BACKWARD_SLASH:F,CHAR_COMMA:O,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:i,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:v,CHAR_LEFT_SQUARE_BRACKET:y,CHAR_PLUS:M,CHAR_QUESTION_MARK:I,CHAR_RIGHT_CURLY_BRACE:w,CHAR_RIGHT_PARENTHESES:K,CHAR_RIGHT_SQUARE_BRACKET:it}=_t(),j=s=>s===i||s===F,tt=s=>{s.isPrefix!==!0&&(s.depth=s.isGlobstar?1/0:1)};return xt=(s,l)=>{const t=l||{},E=s.length-1,h=t.parts===!0||t.scanToEnd===!0,A=[],p=[],R=[];let P=s,U=-1,B=0,et=0,Q=!1,rt=!1,N=!1,at=!1,ft=!1,nt=!1,H=!1,st=!1,ht=!1,W=!1,X=0,V,_,S={value:"",depth:0,isGlob:!1};const n=()=>U>=E,Z=()=>P.charCodeAt(U+1),G=()=>(V=_,P.charCodeAt(++U));for(;U<E;){_=G();let C;if(_===F){H=S.backslashes=!0,_=G(),_===f&&(nt=!0);continue}if(nt===!0||_===f){for(X++;n()!==!0&&(_=G());){if(_===F){H=S.backslashes=!0,G();continue}if(_===f){X++;continue}if(nt!==!0&&_===c&&(_=G())===c){if(Q=S.isBrace=!0,N=S.isGlob=!0,W=!0,h===!0)continue;break}if(nt!==!0&&_===O){if(Q=S.isBrace=!0,N=S.isGlob=!0,W=!0,h===!0)continue;break}if(_===w&&(X--,X===0)){nt=!1,Q=S.isBrace=!0,W=!0;break}}if(h===!0)continue;break}if(_===i){if(A.push(U),p.push(S),S={value:"",depth:0,isGlob:!1},W===!0)continue;if(V===c&&U===B+1){B+=2;continue}et=U+1;continue}if(t.noext!==!0&&(_===M||_===q||_===d||_===I||_===a)===!0&&Z()===v){if(N=S.isGlob=!0,at=S.isExtglob=!0,W=!0,_===a&&U===B&&(ht=!0),h===!0){for(;n()!==!0&&(_=G());){if(_===F){H=S.backslashes=!0,_=G();continue}if(_===K){N=S.isGlob=!0,W=!0;break}}continue}break}if(_===d){if(V===d&&(ft=S.isGlobstar=!0),N=S.isGlob=!0,W=!0,h===!0)continue;break}if(_===I){if(N=S.isGlob=!0,W=!0,h===!0)continue;break}if(_===y){for(;n()!==!0&&(C=G());){if(C===F){H=S.backslashes=!0,G();continue}if(C===it){rt=S.isBracket=!0,N=S.isGlob=!0,W=!0;break}}if(h===!0)continue;break}if(t.nonegate!==!0&&_===a&&U===B){st=S.negated=!0,B++;continue}if(t.noparen!==!0&&_===v){if(N=S.isGlob=!0,h===!0){for(;n()!==!0&&(_=G());){if(_===v){H=S.backslashes=!0,_=G();continue}if(_===K){W=!0;break}}continue}break}if(N===!0){if(W=!0,h===!0)continue;break}}t.noext===!0&&(at=!1,N=!1);let k=P,e="",r="";B>0&&(e=P.slice(0,B),P=P.slice(B),et-=B),k&&N===!0&&et>0?(k=P.slice(0,et),r=P.slice(et)):N===!0?(k="",r=P):k=P,k&&k!==""&&k!=="/"&&k!==P&&j(k.charCodeAt(k.length-1))&&(k=k.slice(0,-1)),t.unescape===!0&&(r&&(r=g.removeBackslashes(r)),k&&H===!0&&(k=g.removeBackslashes(k)));const J={prefix:e,input:s,start:B,base:k,glob:r,isBrace:Q,isBracket:rt,isGlob:N,isExtglob:at,isGlobstar:ft,negated:st,negatedExtglob:ht};if(t.tokens===!0&&(J.maxDepth=0,j(_)||p.push(S),J.tokens=p),t.parts===!0||t.tokens===!0){let C;for(let L=0;L<A.length;L++){const ct=C?C+1:B,Y=A[L],lt=s.slice(ct,Y);t.tokens&&(L===0&&B!==0?(p[L].isPrefix=!0,p[L].value=e):p[L].value=lt,tt(p[L]),J.maxDepth+=p[L].depth),(L!==0||lt!=="")&&R.push(lt),C=Y}if(C&&C+1<s.length){const L=s.slice(C+1);R.push(L),t.tokens&&(p[p.length-1].value=L,tt(p[p.length-1]),J.maxDepth+=p[p.length-1].depth)}J.slashes=A,J.parts=R}return J},xt}var St,mt;function kt(){if(mt)return St;mt=1;const g=_t(),d=Et(),{MAX_LENGTH:q,POSIX_REGEX_SOURCE:F,REGEX_NON_SPECIAL_CHARS:O,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:a}=g,i=(s,l)=>{if(typeof l.expandRange=="function")return l.expandRange(...s,l);s.sort();const t=`[${s.join("-")}]`;try{new RegExp(t)}catch{return s.map(h=>d.escapeRegex(h)).join("..")}return t},f=(s,l)=>`Missing ${s}: "${l}" - use "\\\\${l}" to match literal characters`,v=s=>{const l=[];let t=0,E=0,h=0,A="",p=!1;for(const R of s){if(p===!0){A+=R,p=!1;continue}if(R==="\\"){A+=R,p=!0;continue}if(R==='"'){h=h===1?0:1,A+=R;continue}if(h===0){if(R==="[")t++;else if(R==="]"&&t>0)t--;else if(t===0){if(R==="(")E++;else if(R===")"&&E>0)E--;else if(R==="|"&&E===0){l.push(A),A="";continue}}}A+=R}return l.push(A),l},y=s=>{let l=!1;for(const t of s){if(l===!0){l=!1;continue}if(t==="\\"){l=!0;continue}if(/[?*+@!()[\]{}]/.test(t))return!1}return!0},M=s=>{let l=s.trim(),t=!0;for(;t===!0;)t=!1,/^@\([^\\()[\]{}|]+\)$/.test(l)&&(l=l.slice(2,-1),t=!0);if(y(l))return l.replace(/\\(.)/g,"$1")},I=s=>{const l=s.map(M).filter(Boolean);for(let t=0;t<l.length;t++)for(let E=t+1;E<l.length;E++){const h=l[t],A=l[E],p=h[0];if(!(!p||h!==p.repeat(h.length)||A!==p.repeat(A.length))&&(h===A||h.startsWith(A)||A.startsWith(h)))return!0}return!1},w=(s,l=!0)=>{if(s[0]!=="+"&&s[0]!=="*"||s[1]!=="(")return;let t=0,E=0,h=0,A=!1;for(let p=1;p<s.length;p++){const R=s[p];if(A===!0){A=!1;continue}if(R==="\\"){A=!0;continue}if(R==='"'){h=h===1?0:1;continue}if(h!==1){if(R==="["){t++;continue}if(R==="]"&&t>0){t--;continue}if(!(t>0)){if(R==="("){E++;continue}if(R===")"&&(E--,E===0))return l===!0&&p!==s.length-1?void 0:{type:s[0],body:s.slice(2,p),end:p}}}}},K=s=>`${s.length===1?d.escapeRegex(s[0]):`[${s.map(t=>d.escapeRegex(t)).join("")}]`}*`,it=s=>{let l=0;const t=[];for(;l<s.length;){const E=w(s.slice(l),!1);if(!E||E.type!=="*")return;const h=v(E.body).map(p=>p.trim());if(h.length!==1)return;const A=M(h[0]);if(!A||A.length!==1)return;t.push(A),l+=E.end+1}if(!(t.length<1))return t},j=s=>{let l=0,t=s.trim(),E=w(t);for(;E;)l++,t=E.body.trim(),E=w(t);return l},tt=(s,l)=>{if(l.maxExtglobRecursion===!1)return{risky:!1};const t=typeof l.maxExtglobRecursion=="number"?l.maxExtglobRecursion:g.DEFAULT_MAX_EXTGLOB_RECURSION,E=v(s).map(R=>R.trim());if(E.length>1&&(E.some(R=>R==="")||E.some(R=>/^[*?]+$/.test(R))||I(E)))return{risky:!0};const h=[];let A=!1,p=!0;for(const R of E){const P=it(R);if(P){A=!0,h.push(...P);continue}const U=M(R);if(U&&U.length===1){h.push(U);continue}if(p=!1,j(R)>t)return{risky:!0}}return A?p?{risky:!0,safeOutput:K([...new Set(h)])}:{risky:!0}:{risky:!1}},z=(s,l)=>{if(typeof s!="string")throw new TypeError("Expected a string");s=a[s]||s;const t={...l},E=typeof t.maxLength=="number"?Math.min(q,t.maxLength):q;let h=s.length;if(h>E)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${E}`);const A={type:"bos",value:"",output:t.prepend||""},p=[A],R=t.capture?"":"?:",P=g.globChars(t.windows),U=g.extglobChars(P),{DOT_LITERAL:B,PLUS_LITERAL:et,SLASH_LITERAL:Q,ONE_CHAR:rt,DOTS_SLASH:N,NO_DOT:at,NO_DOT_SLASH:ft,NO_DOTS_SLASH:nt,QMARK:H,QMARK_NO_DOT:st,STAR:ht,START_ANCHOR:W}=P,X=o=>`(${R}(?:(?!${W}${o.dot?N:B}).)*?)`,V=t.dot?"":at,_=t.dot?H:st;let S=t.bash===!0?X(t):ht;t.capture&&(S=`(${S})`),typeof t.noext=="boolean"&&(t.noextglob=t.noext);const n={input:s,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:p};s=d.removePrefix(s,n),h=s.length;const Z=[],G=[],k=[];let e=A,r;const J=()=>n.index===h-1,C=n.peek=(o=1)=>s[n.index+o],L=n.advance=()=>s[++n.index]||"",ct=()=>s.slice(n.index+1),Y=(o="",T=0)=>{n.consumed+=o,n.index+=T},lt=o=>{n.output+=o.output!=null?o.output:o.value,Y(o.value)},Tt=()=>{let o=1;for(;C()==="!"&&(C(2)!=="("||C(3)==="?");)L(),n.start++,o++;return o%2===0?!1:(n.negated=!0,n.start++,!0)},Rt=o=>{n[o]++,k.push(o)},pt=o=>{n[o]--,k.pop()},b=o=>{if(e.type==="globstar"){const T=n.braces>0&&(o.type==="comma"||o.type==="brace"),u=o.extglob===!0||Z.length&&(o.type==="pipe"||o.type==="paren");o.type!=="slash"&&o.type!=="paren"&&!T&&!u&&(n.output=n.output.slice(0,-e.output.length),e.type="star",e.value="*",e.output=S,n.output+=e.output)}if(Z.length&&o.type!=="paren"&&(Z[Z.length-1].inner+=o.value),(o.value||o.output)&<(o),e&&e.type==="text"&&o.type==="text"){e.output=(e.output||e.value)+o.value,e.value+=o.value;return}o.prev=e,p.push(o),e=o},At=(o,T)=>{const u={...U[T],conditions:1,inner:""};u.prev=e,u.parens=n.parens,u.output=n.output,u.startIndex=n.index,u.tokensIndex=p.length;const x=(t.capture?"(":"")+u.open;Rt("parens"),b({type:o,value:T,output:n.output?"":rt}),b({type:"paren",extglob:!0,value:L(),output:x}),Z.push(u)},vt=o=>{const T=s.slice(o.startIndex,n.index+1),u=s.slice(o.startIndex+2,n.index),x=tt(u,t);if((o.type==="plus"||o.type==="star")&&x.risky){const $=x.safeOutput?(o.output?"":rt)+(t.capture?`(${x.safeOutput})`:x.safeOutput):void 0,ut=p[o.tokensIndex];ut.type="text",ut.value=T,ut.output=$||d.escapeRegex(T);for(let ot=o.tokensIndex+1;ot<p.length;ot++)p[ot].value="",p[ot].output="",delete p[ot].suffix;n.output=o.output+ut.output,n.backtrack=!0,b({type:"paren",extglob:!0,value:r,output:""}),pt("parens");return}let m=o.close+(t.capture?")":""),D;if(o.type==="negate"){let $=S;if(o.inner&&o.inner.length>1&&o.inner.includes("/")&&($=X(t)),($!==S||J()||/^\)+$/.test(ct()))&&(m=o.close=`)$))${$}`),o.inner.includes("*")&&(D=ct())&&/^\.[^\\/.]+$/.test(D)){const ut=z(D,{...l,fastpaths:!1}).output;m=o.close=`)${ut})${$})`}o.prev.type==="bos"&&(n.negatedExtglob=!0)}b({type:"paren",extglob:!0,value:r,output:m}),pt("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(s)){let o=!1,T=s.replace(c,(u,x,m,D,$,ut)=>D==="\\"?(o=!0,u):D==="?"?x?x+D+($?H.repeat($.length):""):ut===0?_+($?H.repeat($.length):""):H.repeat(m.length):D==="."?B.repeat(m.length):D==="*"?x?x+D+($?S:""):S:x?u:`\\${u}`);return o===!0&&(t.unescape===!0?T=T.replace(/\\/g,""):T=T.replace(/\\+/g,u=>u.length%2===0?"\\\\":u?"\\":"")),T===s&&t.contains===!0?(n.output=s,n):(n.output=d.wrapOutput(T,n,l),n)}for(;!J();){if(r=L(),r==="\0")continue;if(r==="\\"){const u=C();if(u==="/"&&t.bash!==!0||u==="."||u===";")continue;if(!u){r+="\\",b({type:"text",value:r});continue}const x=/^\\+/.exec(ct());let m=0;if(x&&x[0].length>2&&(m=x[0].length,n.index+=m,m%2!==0&&(r+="\\")),t.unescape===!0?r=L():r+=L(),n.brackets===0){b({type:"text",value:r});continue}}if(n.brackets>0&&(r!=="]"||e.value==="["||e.value==="[^")){if(t.posix!==!1&&r===":"){const u=e.value.slice(1);if(u.includes("[")&&(e.posix=!0,u.includes(":"))){const x=e.value.lastIndexOf("["),m=e.value.slice(0,x),D=e.value.slice(x+2),$=F[D];if($){e.value=m+$,n.backtrack=!0,L(),!A.output&&p.indexOf(e)===1&&(A.output=rt);continue}}}(r==="["&&C()!==":"||r==="-"&&C()==="]")&&(r=`\\${r}`),r==="]"&&(e.value==="["||e.value==="[^")&&(r=`\\${r}`),t.posix===!0&&r==="!"&&e.value==="["&&(r="^"),e.value+=r,lt({value:r});continue}if(n.quotes===1&&r!=='"'){r=d.escapeRegex(r),e.value+=r,lt({value:r});continue}if(r==='"'){n.quotes=n.quotes===1?0:1,t.keepQuotes===!0&&b({type:"text",value:r});continue}if(r==="("){Rt("parens"),b({type:"paren",value:r});continue}if(r===")"){if(n.parens===0&&t.strictBrackets===!0)throw new SyntaxError(f("opening","("));const u=Z[Z.length-1];if(u&&n.parens===u.parens+1){vt(Z.pop());continue}b({type:"paren",value:r,output:n.parens?")":"\\)"}),pt("parens");continue}if(r==="["){if(t.nobracket===!0||!ct().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw new SyntaxError(f("closing","]"));r=`\\${r}`}else Rt("brackets");b({type:"bracket",value:r});continue}if(r==="]"){if(t.nobracket===!0||e&&e.type==="bracket"&&e.value.length===1){b({type:"text",value:r,output:`\\${r}`});continue}if(n.brackets===0){if(t.strictBrackets===!0)throw new SyntaxError(f("opening","["));b({type:"text",value:r,output:`\\${r}`});continue}pt("brackets");const u=e.value.slice(1);if(e.posix!==!0&&u[0]==="^"&&!u.includes("/")&&(r=`/${r}`),e.value+=r,lt({value:r}),t.literalBrackets===!1||d.hasRegexChars(u))continue;const x=d.escapeRegex(e.value);if(n.output=n.output.slice(0,-e.value.length),t.literalBrackets===!0){n.output+=x,e.value=x;continue}e.value=`(${R}${x}|${e.value})`,n.output+=e.value;continue}if(r==="{"&&t.nobrace!==!0){Rt("braces");const u={type:"brace",value:r,output:"(",outputIndex:n.output.length,tokensIndex:n.tokens.length};G.push(u),b(u);continue}if(r==="}"){const u=G[G.length-1];if(t.nobrace===!0||!u){b({type:"text",value:r,output:r});continue}let x=")";if(u.dots===!0){const m=p.slice(),D=[];for(let $=m.length-1;$>=0&&(p.pop(),m[$].type!=="brace");$--)m[$].type!=="dots"&&D.unshift(m[$].value);x=i(D,t),n.backtrack=!0}if(u.comma!==!0&&u.dots!==!0){const m=n.output.slice(0,u.outputIndex),D=n.tokens.slice(u.tokensIndex);u.value=u.output="\\{",r=x="\\}",n.output=m;for(const $ of D)n.output+=$.output||$.value}b({type:"brace",value:r,output:x}),pt("braces"),G.pop();continue}if(r==="|"){Z.length>0&&Z[Z.length-1].conditions++,b({type:"text",value:r});continue}if(r===","){let u=r;const x=G[G.length-1];x&&k[k.length-1]==="braces"&&(x.comma=!0,u="|"),b({type:"comma",value:r,output:u});continue}if(r==="/"){if(e.type==="dot"&&n.index===n.start+1){n.start=n.index+1,n.consumed="",n.output="",p.pop(),e=A;continue}b({type:"slash",value:r,output:Q});continue}if(r==="."){if(n.braces>0&&e.type==="dot"){e.value==="."&&(e.output=B);const u=G[G.length-1];e.type="dots",e.output+=r,e.value+=r,u.dots=!0;continue}if(n.braces+n.parens===0&&e.type!=="bos"&&e.type!=="slash"){b({type:"text",value:r,output:B});continue}b({type:"dot",value:r,output:B});continue}if(r==="?"){if(!(e&&e.value==="(")&&t.noextglob!==!0&&C()==="("&&C(2)!=="?"){At("qmark",r);continue}if(e&&e.type==="paren"){const x=C();let m=r;(e.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(ct()))&&(m=`\\${r}`),b({type:"text",value:r,output:m});continue}if(t.dot!==!0&&(e.type==="slash"||e.type==="bos")){b({type:"qmark",value:r,output:st});continue}b({type:"qmark",value:r,output:H});continue}if(r==="!"){if(t.noextglob!==!0&&C()==="("&&(C(2)!=="?"||!/[!=<:]/.test(C(3)))){At("negate",r);continue}if(t.nonegate!==!0&&n.index===0){Tt();continue}}if(r==="+"){if(t.noextglob!==!0&&C()==="("&&C(2)!=="?"){At("plus",r);continue}if(e&&e.value==="("||t.regex===!1){b({type:"plus",value:r,output:et});continue}if(e&&(e.type==="bracket"||e.type==="paren"||e.type==="brace")||n.parens>0){b({type:"plus",value:r});continue}b({type:"plus",value:et});continue}if(r==="@"){if(t.noextglob!==!0&&C()==="("&&C(2)!=="?"){b({type:"at",extglob:!0,value:r,output:""});continue}b({type:"text",value:r});continue}if(r!=="*"){(r==="$"||r==="^")&&(r=`\\${r}`);const u=O.exec(ct());u&&(r+=u[0],n.index+=u[0].length),b({type:"text",value:r});continue}if(e&&(e.type==="globstar"||e.star===!0)){e.type="star",e.star=!0,e.value+=r,e.output=S,n.backtrack=!0,n.globstar=!0,Y(r);continue}let o=ct();if(t.noextglob!==!0&&/^\([^?]/.test(o)){At("star",r);continue}if(e.type==="star"){if(t.noglobstar===!0){Y(r);continue}const u=e.prev,x=u.prev,m=u.type==="slash"||u.type==="bos",D=x&&(x.type==="star"||x.type==="globstar");if(t.bash===!0&&(!m||o[0]&&o[0]!=="/")){b({type:"star",value:r,output:""});continue}const $=n.braces>0&&(u.type==="comma"||u.type==="brace"),ut=Z.length&&(u.type==="pipe"||u.type==="paren");if(!m&&u.type!=="paren"&&!$&&!ut){b({type:"star",value:r,output:""});continue}for(;o.slice(0,3)==="/**";){const ot=s[n.index+4];if(ot&&ot!=="/")break;o=o.slice(3),Y("/**",3)}if(u.type==="bos"&&J()){e.type="globstar",e.value+=r,e.output=X(t),n.output=e.output,n.globstar=!0,Y(r);continue}if(u.type==="slash"&&u.prev.type!=="bos"&&!D&&J()){n.output=n.output.slice(0,-(u.output+e.output).length),u.output=`(?:${u.output}`,e.type="globstar",e.output=X(t)+(t.strictSlashes?")":"|$)"),e.value+=r,n.globstar=!0,n.output+=u.output+e.output,Y(r);continue}if(u.type==="slash"&&u.prev.type!=="bos"&&o[0]==="/"){const ot=o[1]!==void 0?"|$":"";n.output=n.output.slice(0,-(u.output+e.output).length),u.output=`(?:${u.output}`,e.type="globstar",e.output=`${X(t)}${Q}|${Q}${ot})`,e.value+=r,n.output+=u.output+e.output,n.globstar=!0,Y(r+L()),b({type:"slash",value:"/",output:""});continue}if(u.type==="bos"&&o[0]==="/"){e.type="globstar",e.value+=r,e.output=`(?:^|${Q}|${X(t)}${Q})`,n.output=e.output,n.globstar=!0,Y(r+L()),b({type:"slash",value:"/",output:""});continue}if($&&o[0]==="/"){e.type="globstar",e.value+=r,e.output=`(?:^|${Q}|${X(t)}${Q})`,n.output+=e.output,n.globstar=!0,Y(r+L()),b({type:"slash",value:"/",output:""});continue}n.output=n.output.slice(0,-e.output.length),e.type="globstar",e.output=X(t),e.value+=r,n.output+=e.output,n.globstar=!0,Y(r);continue}const T={type:"star",value:r,output:S};if(t.bash===!0){T.output=".*?",(e.type==="bos"||e.type==="slash")&&(T.output=V+T.output),b(T);continue}if(e&&(e.type==="bracket"||e.type==="paren")&&t.regex===!0){T.output=r,b(T);continue}(n.index===n.start||e.type==="slash"||e.type==="dot")&&(e.type==="dot"?(n.output+=ft,e.output+=ft):t.dot===!0?(n.output+=nt,e.output+=nt):(n.output+=V,e.output+=V),C()!=="*"&&(n.output+=rt,e.output+=rt)),b(T)}for(;n.brackets>0;){if(t.strictBrackets===!0)throw new SyntaxError(f("closing","]"));n.output=d.escapeLast(n.output,"["),pt("brackets")}for(;n.parens>0;){if(t.strictBrackets===!0)throw new SyntaxError(f("closing",")"));n.output=d.escapeLast(n.output,"("),pt("parens")}for(;n.braces>0;){if(t.strictBrackets===!0)throw new SyntaxError(f("closing","}"));n.output=d.escapeLast(n.output,"{"),pt("braces")}if(t.strictSlashes!==!0&&(e.type==="star"||e.type==="bracket")&&b({type:"maybe_slash",value:"",output:`${Q}?`}),n.backtrack===!0){n.output="";for(const o of n.tokens)n.output+=o.output!=null?o.output:o.value,o.suffix&&(n.output+=o.suffix)}return n};return z.fastpaths=(s,l)=>{const t={...l},E=typeof t.maxLength=="number"?Math.min(q,t.maxLength):q,h=s.length;if(h>E)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${E}`);s=a[s]||s;const{DOT_LITERAL:A,SLASH_LITERAL:p,ONE_CHAR:R,DOTS_SLASH:P,NO_DOT:U,NO_DOTS:B,NO_DOTS_SLASH:et,STAR:Q,START_ANCHOR:rt}=g.globChars(t.windows),N=t.dot?B:U,at=t.dot?et:U,ft=t.capture?"":"?:",nt={negated:!1,prefix:""};let H=t.bash===!0?".*?":Q;t.capture&&(H=`(${H})`);const st=V=>V.noglobstar===!0?H:`(${ft}(?:(?!${rt}${V.dot?P:A}).)*?)`,ht=V=>{switch(V){case"*":return`${N}${R}${H}`;case".*":return`${A}${R}${H}`;case"*.*":return`${N}${H}${A}${R}${H}`;case"*/*":return`${N}${H}${p}${R}${at}${H}`;case"**":return N+st(t);case"**/*":return`(?:${N}${st(t)}${p})?${at}${R}${H}`;case"**/*.*":return`(?:${N}${st(t)}${p})?${at}${H}${A}${R}${H}`;case"**/.*":return`(?:${N}${st(t)}${p})?${A}${R}${H}`;default:{const _=/^(.*?)\.(\w+)$/.exec(V);if(!_)return;const S=ht(_[1]);return S?S+A+_[2]:void 0}}},W=d.removePrefix(s,nt);let X=ht(W);return X&&t.strictSlashes!==!0&&(X+=`${p}?`),X},St=z,St}var yt,Ot;function It(){if(Ot)return yt;Ot=1;const g=Nt(),d=kt(),q=Et(),F=_t(),O=a=>a&&typeof a=="object"&&!Array.isArray(a),c=(a,i,f=!1)=>{if(Array.isArray(a)){const j=a.map(z=>c(z,i,f));return z=>{for(const s of j){const l=s(z);if(l)return l}return!1}}const v=O(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!v)throw new TypeError("Expected pattern to be a non-empty string");const y=i||{},M=y.windows,I=v?c.compileRe(a,i):c.makeRe(a,i,!1,!0),w=I.state;delete I.state;let K=()=>!1;if(y.ignore){const j={...i,ignore:null,onMatch:null,onResult:null};K=c(y.ignore,j,f)}const it=(j,tt=!1)=>{const{isMatch:z,match:s,output:l}=c.test(j,I,i,{glob:a,posix:M}),t={glob:a,state:w,regex:I,posix:M,input:j,output:l,match:s,isMatch:z};if(typeof y.onResult=="function"&&y.onResult(t),z===!1)return t.isMatch=!1,tt?t:!1;t:if(K(j)){if(typeof y.onIgnore=="function"&&y.onIgnore(t)===F.UNIGNORE){t.isMatch=!0;break t}return t.isMatch=!1,tt?t:!1}return typeof y.onMatch=="function"&&y.onMatch(t),tt?t:!0};return f&&(it.state=w),it};return c.test=(a,i,f,{glob:v,posix:y}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const M=f||{},I=M.format||(y?q.toPosixSlashes:null);let w=a===v,K=w&&I?I(a):a;return w===!1&&(K=I?I(a):a,w=K===v),(w===!1||M.capture===!0)&&(M.matchBase===!0||M.basename===!0?w=c.matchBase(a,i,f,y):w=i.exec(K)),{isMatch:!!w,match:w,output:K}},c.matchBase=(a,i,f,v=f&&f.windows)=>(i instanceof RegExp?i:c.makeRe(i,f)).test(q.basename(a,{windows:v})),c.isMatch=(a,i,f)=>c(i,f)(a),c.parse=(a,i)=>Array.isArray(a)?a.map(f=>c.parse(f,i)):d(a,{...i,fastpaths:!1}),c.scan=(a,i)=>g(a,i),c.compileRe=(a,i,f=!1,v=!1)=>{if(f===!0)return a.output;const y=i||{},M=y.contains?"":"^",I=y.contains?"":"$";let w=`${M}(?:${a.output})${I}`;a&&a.negated===!0&&(w=`^(?!${w}).*$`);const K=c.toRegex(w,i);return v===!0&&(K.state=a),K},c.makeRe=(a,i={},f=!1,v=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-empty string");let y={negated:!1,fastpaths:!0};return i.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(y.output=d.fastpaths(a,i)),y.output||(y=d(a,i)),c.compileRe(y,i,f,v)},c.toRegex=(a,i)=>{try{const f=i||{};return new RegExp(a,f.flags||(f.nocase?"i":""))}catch(f){if(i&&i.debug===!0)throw f;return/$^/}},c.constants=F,yt=c,yt}var dt,Lt;function Bt(){if(Lt)return dt;Lt=1;const g=It(),d=Et();function q(F,O,c=!1){return O&&(O.windows===null||O.windows===void 0)&&(O={...O,windows:d.isWindows()}),g(F,O,c)}return Object.assign(q,g),dt=q,dt}var Gt=Bt();const Dt=wt(Gt);export{Dt as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as ot}from"node:module";import{p as _}from"./index-DDkv7LRn.js";let ct;const lt=t=>(ct??=ot(import.meta.url))(t),D=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,F=t=>{if(typeof D<"u"&&D.versions&&D.versions.node){const[e,s]=D.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return D.getBuiltinModule(t)}return lt(t)},W=F("fs"),ut={...W,default:W},{statSync:at,stat:ht,realpathSync:ft,realpath:pt,readdirSync:gt,readdir:dt}=F("fs"),{sep:z,basename:yt,dirname:O,resolve:G,normalize:mt,relative:St,posix:P,isAbsolute:bt}=F("path"),{fileURLToPath:vt}=F("url"),{createRequire:wt}=F("module");var I=wt(import.meta.url);function Pt(t){let e=mt(t);return e.length>1&&e[e.length-1]===z&&(e=e.substring(0,e.length-1)),e}const _t=/[\\/]/g;function U(t,e){return t.replace(_t,e)}const kt=/^[a-z]:[\\/]$/i;function Dt(t){return t==="/"||kt.test(t)}function $(t,e){const{resolvePaths:s,normalizePath:n,pathSeparator:r}=e,o=process.platform==="win32"&&t.includes("/")||t.startsWith(".");if(s&&(t=G(t)),(n||o)&&(t=Pt(t)),t===".")return"";const i=t[t.length-1]!==r;return U(i?t+r:t,r)}function Y(t,e){return e+t}function Et(t,e){return function(s,n){return n.startsWith(t)?n.slice(t.length)+s:U(St(t,n),e.pathSeparator)+e.pathSeparator+s}}function Ft(t){return t}function Rt(t,e,s){return e+t+s}function xt(t,e){const{relativePaths:s,includeBasePath:n}=e;return s&&t?Et(t,e):n?Y:Ft}function At(t){return function(e,s){s.push(e.substring(t.length)||".")}}function $t(t){return function(e,s,n){const r=e.substring(t.length)||".";n.every(o=>o(r,!0))&&s.push(r)}}const Ct=(t,e)=>{e.push(t||".")},Ot=(t,e,s)=>{const n=t||".";s.every(r=>r(n,!0))&&e.push(n)},qt=()=>{};function jt(t,e){const{includeDirs:s,filters:n,relativePaths:r}=e;return s?r?n&&n.length?$t(t):At(t):n&&n.length?Ot:Ct:qt}const Wt=(t,e,s,n)=>{n.every(r=>r(t,!1))&&s.files++},It=(t,e,s,n)=>{n.every(r=>r(t,!1))&&e.push(t)},Mt=(t,e,s,n)=>{s.files++},Bt=(t,e)=>{e.push(t)},Lt=()=>{};function Nt(t){const{excludeFiles:e,filters:s,onlyCounts:n}=t;return e?Lt:s&&s.length?n?Wt:It:n?Mt:Bt}const Tt=t=>t,zt=()=>[""].slice(0,0);function Gt(t){return t.group?zt:Tt}const Ut=(t,e,s)=>{t.push({directory:e,files:s,dir:e})},Yt=()=>{};function Qt(t){return t.group?Ut:Yt}const Ht=function(t,e,s){const{queue:n,fs:r,options:{suppressErrors:o}}=e;n.enqueue(),r.realpath(t,(i,c)=>{if(i)return n.dequeue(o?null:i,e);r.stat(c,(g,f)=>{if(g)return n.dequeue(o?null:g,e);if(f.isDirectory()&&Q(t,c,e))return n.dequeue(null,e);s(f,c),n.dequeue(null,e)})})},Xt=function(t,e,s){const{queue:n,fs:r,options:{suppressErrors:o}}=e;n.enqueue();try{const i=r.realpathSync(t),c=r.statSync(i);if(c.isDirectory()&&Q(t,i,e))return;s(c,i)}catch(i){if(!o)throw i}};function Kt(t,e){return!t.resolveSymlinks||t.excludeSymlinks?null:e?Xt:Ht}function Q(t,e,s){if(s.options.useRealPaths)return Vt(e,s);let n=O(t),r=1;for(;n!==s.root&&r<2;){const o=s.symlinks.get(n);!!o&&(o===e||o.startsWith(e)||e.startsWith(o))?r++:n=O(n)}return s.symlinks.set(t,e),r>1}function Vt(t,e){return e.visited.includes(t+e.options.pathSeparator)}const Zt=t=>t.counts,Jt=t=>t.groups,te=t=>t.paths,ee=t=>t.paths.slice(0,t.options.maxFiles),se=(t,e,s)=>(R(e,s,t.counts,t.options.suppressErrors),null),ne=(t,e,s)=>(R(e,s,t.paths,t.options.suppressErrors),null),re=(t,e,s)=>(R(e,s,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),ie=(t,e,s)=>(R(e,s,t.groups,t.options.suppressErrors),null);function R(t,e,s,n){e(t&&!n?t:null,s)}function oe(t,e){const{onlyCounts:s,group:n,maxFiles:r}=t;return s?e?Zt:se:n?e?Jt:ie:r?e?ee:re:e?te:ne}const H={withFileTypes:!0},ce=(t,e,s,n,r)=>{if(t.queue.enqueue(),n<0)return t.queue.dequeue(null,t);const{fs:o}=t;t.visited.push(e),t.counts.directories++,o.readdir(e||".",H,(i,c=[])=>{r(c,s,n),t.queue.dequeue(t.options.suppressErrors?null:i,t)})},le=(t,e,s,n,r)=>{const{fs:o}=t;if(n<0)return;t.visited.push(e),t.counts.directories++;let i=[];try{i=o.readdirSync(e||".",H)}catch(c){if(!t.options.suppressErrors)throw c}r(i,s,n)};function ue(t){return t?le:ce}var ae=class{count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},he=class{_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},fe=class{aborted=!1;abort(){this.aborted=!0}},X=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(t,e,s){this.isSynchronous=!s,this.callbackInvoker=oe(e,this.isSynchronous),this.root=$(t,e),this.state={root:Dt(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new he,options:e,queue:new ae((n,r)=>this.callbackInvoker(r,n,s)),symlinks:new Map,visited:[""].slice(0,0),controller:new fe,fs:e.fs||ut},this.joinPath=xt(this.root,e),this.pushDirectory=jt(this.root,e),this.pushFile=Nt(e),this.getArray=Gt(e),this.groupFiles=Qt(e),this.resolveSymlink=Kt(e,this.isSynchronous),this.walkDirectory=ue(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(t,e,s)=>{const{paths:n,options:{filters:r,resolveSymlinks:o,excludeSymlinks:i,exclude:c,maxFiles:g,signal:f,useRealPaths:b,pathSeparator:p},controller:h}=this.state;if(h.aborted||f&&f.aborted||g&&n.length>g)return;const d=this.getArray(this.state.paths);for(let a=0;a<t.length;++a){const l=t[a];if(l.isFile()||l.isSymbolicLink()&&!o&&!i){const u=this.joinPath(l.name,e);this.pushFile(u,d,this.state.counts,r)}else if(l.isDirectory()){let u=Rt(l.name,e,this.state.options.pathSeparator);if(c&&c(l.name,u))continue;this.pushDirectory(u,n,r),this.walkDirectory(this.state,u,u,s-1,this.walk)}else if(this.resolveSymlink&&l.isSymbolicLink()){let u=Y(l.name,e);this.resolveSymlink(u,this.state,(m,y)=>{if(m.isDirectory()){if(y=$(y,this.state.options),c&&c(l.name,b?y:u+p))return;this.walkDirectory(this.state,y,b?y:u+p,s-1,this.walk)}else{y=b?y:u;const k=yt(y),x=$(O(y),this.state.options);y=this.joinPath(k,x),this.pushFile(y,d,this.state.counts,r)}})}}this.groupFiles(this.state.groups,e,d)}};function pe(t,e){return new Promise((s,n)=>{K(t,e,(r,o)=>{if(r)return n(r);s(o)})})}function K(t,e,s){new X(t,e,s).start()}function ge(t,e){return new X(t,e).start()}var M=class{constructor(t,e){this.root=t,this.options=e}withPromise(){return pe(this.root,this.options)}withCallback(t){K(this.root,this.options,t)}sync(){return ge(this.root,this.options)}};let V=null;try{I.resolve("picomatch"),V=I("picomatch")}catch{}var de=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:z,filters:[]};globFunction;constructor(t){this.options={...this.options,...t},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(t){return this.options.pathSeparator=t,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(t){return this.options.maxDepth=t,this}withMaxFiles(t){return this.options.maxFiles=t,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:t=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=t,this.withFullPaths()}withAbortSignal(t){return this.options.signal=t,this}normalize(){return this.options.normalizePath=!0,this}filter(t){return this.options.filters.push(t),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(t){return this.options.exclude=t,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(t){return new M(t||".",this.options)}withGlobFunction(t){return this.globFunction=t,this}crawlWithOptions(t,e){return this.options={...this.options,...e},new M(t||".",this.options)}glob(...t){return this.globFunction?this.globWithOptions(t):this.globWithOptions(t,{dot:!0})}globWithOptions(t,...e){const s=this.globFunction||V;if(!s)throw new Error("Please specify a glob function to use glob matching.");var n=this.globCache[t.join("\0")];return n||(n=s(t,...e),this.globCache[t.join("\0")]=n),this.options.filters.push(r=>n(r)),this}};const ye=Array.isArray,Z=/\\/g,me=/^[A-Za-z]:$/,J=process.platform==="win32",Se=/^(\/?\.\.)+$/;function B(t,e={}){const s=t.length,n=Array(s),r=Array(s);let o,i;for(o=0;o<s;o++){const c=tt(t[o]);n[o]=c;const g=c.length,f=Array(g);for(i=0;i<g;i++)f[i]=_(c[i],e);r[o]=f}return c=>{const g=c.split("/");if(g[0]===".."&&Se.test(c))return!0;for(o=0;o<s;o++){const f=n[o],b=r[o],p=g.length,h=Math.min(p,f.length);for(i=0;i<h;){const d=f[i];if(d.includes("/"))return!0;if(!b[i](g[i]))break;if(!e.noglobstar&&d==="**")return!0;i++}if(i===p)return!0}return!1}}const be=/^[A-Z]:\/$/i,ve=J?t=>be.test(t):t=>t==="/";function L(t,e,s){if(t===e||e.startsWith(`${t}/`)){if(s){const r=t.length+ +!ve(t);return(o,i)=>o.slice(r,i?-1:void 0)||"."}const n=e.slice(t.length+1);return n?(r,o)=>{if(r===".")return n;const i=`${n}/${r}`;return o?i.slice(0,-1):i}:(r,o)=>o&&r!=="."?r.slice(0,-1):r}return s?n=>P.relative(t,n)||".":n=>P.relative(t,`${e}/${n}`)||"."}function we(t,e){if(e.startsWith(`${t}/`)){const s=e.slice(t.length+1);return n=>`${s}/${n}`}return s=>{const n=P.relative(t,`${e}/${s}`);return s[s.length-1]==="/"&&n!==""?`${n}/`:n||"."}}function N(t){return t.replace(me,e=>`${e}/`)}const Pe={parts:!0};function tt(t){var e;const s=_.scan(t,Pe);return!((e=s.parts)===null||e===void 0)&&e.length?s.parts:[t]}const _e=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,ke=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,De=t=>t.replace(_e,"\\$&"),Ee=t=>t.replace(ke,"\\$&"),Fe=J?Ee:De;function Re(t,e){const s=_.scan(t);return s.isGlob||s.negated}function E(...t){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...t)}function et(t){return typeof t=="string"?[t]:t??[]}const xe=/^(\/?\.\.)+/,Ae=/\\(?=[()[\]{}!*+?@|])/g;function C(t,e,s,n){var r;const o=e.cwd;let i=t;t[t.length-1]==="/"&&(i=t.slice(0,-1));const c=i.lastIndexOf("/"),f=(c===-1?i:i.slice(c+1)).startsWith("!(");i[i.length-1]!=="*"&&!f&&e.expandDirectories&&(i+="/**");const b=Fe(o);i=bt(i.replace(Ae,""))?P.relative(b,i):P.normalize(i);const p=(r=xe.exec(i))===null||r===void 0?void 0:r[0],h=tt(i);if(p){const a=(p.length+1)/3;let l=0;const u=b.split("/");for(;l<a&&h[l+a]===u[u.length+l-a];)i=i.slice(0,(a-l-1)*3)+i.slice((a-l)*3+h[l+a].length+1)||".",l++;const m=P.join(o,p.slice(l*3));m[0]!=="."&&s.root.length>m.length&&(s.root=N(m),s.depthOffset=-a+l)}if(!n&&s.depthOffset>=0){var d;(d=s.commonPath)!==null&&d!==void 0||(s.commonPath=h);const a=[],l=Math.min(s.commonPath.length,h.length);for(let u=0;u<l;u++){const m=h[u];if(m==="**"&&!h[u+1]){a.pop();break}if(u===h.length-1||m!==s.commonPath[u]||Re(m))break;a.push(m)}s.depthOffset=a.length,s.commonPath=a,s.root=N(a.length>0?P.join(o,...a):o)}return i}function $e(t,e,s){const n=[],r=[],o=[];for(const i of t.ignore)i&&(i[0]!=="!"||i[1]==="("?r.push(C(i,t,s,!0)):o.push(i.slice(1)));for(const i of e)i&&(i[0]!=="!"||i[1]==="("?n.push(C(i,t,s,!1)):(i[1]!=="!"||i[2]==="(")&&r.push(C(i.slice(1),t,s,!0)));return{match:n,ignore:r,unignore:o}}function Ce(t,e){const s=t.cwd,n={root:s,depthOffset:0},r=$e(t,e,n);t.debug&&E("internal processing patterns:",r);const{absolute:o,caseSensitiveMatch:i,debug:c,dot:g,followSymbolicLinks:f,onlyDirectories:b}=t,p=n.root.replace(Z,""),h={dot:g,nobrace:t.braceExpansion===!1,nocase:!i,noextglob:t.extglob===!1,noglobstar:t.globstar===!1,posix:!0},d=r.unignore.length>0,a=d?_(r.unignore,h):void 0,l=d?B(r.unignore,h):void 0,u=_(r.match,{...h,ignore:r.ignore,onIgnore:a?v=>a(v.output)&&_.constants.UNIGNORE:void 0}),m=_(r.ignore,h),y=B(r.match,h),k=L(s,p,o),x=o?k:L(s,p,!0),rt=r.match.length>0&&r.match.every(v=>v==="**"||v==="**/*"),A=r.ignore.length>0||d||!rt?(v,w)=>{const S=x(w,!0);return S==="."||l&&l(S)?!1:!y(S)||m(S)}:void 0;let q;t.deep!==void 0&&(q=Math.round(t.deep-n.depthOffset));const it=new de({filters:[c?(v,w)=>{const S=k(v,w),j=u(S);return j&&E(`matched ${S}`),j}:(v,w)=>{const S=k(v,w);return u(S)}],exclude:c&&A?(v,w)=>{const S=A(v,w);return E(`${S?"skipped":"crawling"} ${w}`),S}:A,fs:t.fs,pathSeparator:"/",relativePaths:!o,resolvePaths:o,includeBasePath:o,resolveSymlinks:f,excludeSymlinks:!f,excludeFiles:b,includeDirs:b||!t.onlyFiles,maxDepth:q,signal:t.signal}).crawl(p);return t.debug&&E("internal properties:",{...n,root:p}),[it,s!==p&&!o&&we(s,p)]}function st(t,e){if(e)for(let s=t.length-1;s>=0;s--)t[s]=e(t[s]);return t}const T={caseSensitiveMatch:!0,debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function Oe(t){const e=Object.assign({},t);for(const s in T)e[s]===void 0&&Object.assign(e,{[s]:T[s]});return e.cwd=(e.cwd instanceof URL?vt(e.cwd):G(e.cwd||process.cwd())).replace(Z,"/"),e.ignore=et(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||dt,readdirSync:e.fs.readdirSync||gt,realpath:e.fs.realpath||pt,realpathSync:e.fs.realpathSync||ft,stat:e.fs.stat||ht,statSync:e.fs.statSync||at}),e.debug&&E("globbing with options:",e),e}function nt(t,e={}){var s;if(t&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const n=ye(t)||typeof t=="string",r=et((s=n?t:t.patterns)!==null&&s!==void 0?s:"**/*"),o=Oe(n?e:t);return r.length>0?Ce(o,r):[]}async function Ie(t,e){const[s,n]=nt(t,e);return s?st(await s.withPromise(),n):[]}function Me(t,e){const[s,n]=nt(t,e);return s?st(s.sync(),n):[]}export{Ie as a,Me as g};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var t,h;function I(){if(h)return t;h=1;/*!
|
|
2
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/return t=function(u){if(typeof u!="string"||u==="")return!1;for(var x;x=/(\\).|([@?!+*]\(.*\))/g.exec(u);){if(x[2])return!0;u=u.slice(x.index+x[0].length)}return!1},t}var v,g;function q(){if(g)return v;g=1;/*!
|
|
7
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
10
|
+
* Released under the MIT License.
|
|
11
|
+
*/var d=I(),u={"{":"}","(":")","[":"]"},x=function(i){if(i[0]==="!")return!0;for(var e=0,r=-2,n=-2,a=-2,l=-2,f=-2;e<i.length;){if(i[e]==="*"||i[e+1]==="?"&&/[\].+)]/.test(i[e])||n!==-1&&i[e]==="["&&i[e+1]!=="]"&&(n<e&&(n=i.indexOf("]",e)),n>e&&(f===-1||f>n||(f=i.indexOf("\\",e),f===-1||f>n)))||a!==-1&&i[e]==="{"&&i[e+1]!=="}"&&(a=i.indexOf("}",e),a>e&&(f=i.indexOf("\\",e),f===-1||f>a))||l!==-1&&i[e]==="("&&i[e+1]==="?"&&/[:!=]/.test(i[e+2])&&i[e+3]!==")"&&(l=i.indexOf(")",e),l>e&&(f=i.indexOf("\\",e),f===-1||f>l))||r!==-1&&i[e]==="("&&i[e+1]!=="|"&&(r<e&&(r=i.indexOf("|",e)),r!==-1&&i[r+1]!==")"&&(l=i.indexOf(")",r),l>r&&(f=i.indexOf("\\",r),f===-1||f>l))))return!0;if(i[e]==="\\"){var b=i[e+1];e+=2;var c=u[b];if(c){var o=i.indexOf(c,e);o!==-1&&(e=o+1)}if(i[e]==="!")return!0}else e++}return!1},O=function(i){if(i[0]==="!")return!0;for(var e=0;e<i.length;){if(/[*?{}()[\]]/.test(i[e]))return!0;if(i[e]==="\\"){var r=i[e+1];e+=2;var n=u[r];if(n){var a=i.indexOf(n,e);a!==-1&&(e=a+1)}if(i[e]==="!")return!0}else e++}return!1};return v=function(e,r){if(typeof e!="string"||e==="")return!1;if(d(e))return!0;var n=x;return r&&r.strict===!1&&(n=O),n(e)},v}export{q as r};
|