blockmine 1.0.0 → 1.0.1
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/README.md +6 -3
- package/backend/.env +7 -0
- package/backend/node_modules/.bin/blockminejs +16 -0
- package/backend/node_modules/.bin/blockminejs.cmd +17 -0
- package/backend/node_modules/.bin/blockminejs.ps1 +28 -0
- package/backend/node_modules/.bin/nodemon +16 -0
- package/backend/node_modules/.bin/nodemon.cmd +17 -0
- package/backend/node_modules/.bin/nodemon.ps1 +28 -0
- package/backend/node_modules/.bin/nodetouch +16 -0
- package/backend/node_modules/.bin/nodetouch.cmd +17 -0
- package/backend/node_modules/.bin/nodetouch.ps1 +28 -0
- package/backend/node_modules/.bin/prisma +16 -0
- package/backend/node_modules/.bin/prisma.cmd +17 -0
- package/backend/node_modules/.bin/prisma.ps1 +28 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.gz.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.gz.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.sha256 +1 -0
- package/backend/node_modules/.package-lock.json +2521 -0
- package/backend/node_modules/.prisma/client/client.d.ts +1 -0
- package/backend/node_modules/.prisma/client/client.js +4 -0
- package/backend/node_modules/.prisma/client/default.d.ts +1 -0
- package/backend/node_modules/.prisma/client/default.js +1 -0
- package/backend/node_modules/.prisma/client/deno/edge.d.ts +9 -0
- package/backend/node_modules/.prisma/client/edge.d.ts +1 -0
- package/backend/node_modules/.prisma/client/edge.js +263 -0
- package/backend/node_modules/.prisma/client/index-browser.js +258 -0
- package/backend/node_modules/.prisma/client/index.d.ts +15548 -0
- package/backend/node_modules/.prisma/client/index.js +286 -0
- package/backend/node_modules/.prisma/client/package.json +97 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node +0 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp14264 +0 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp18496 +0 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp24408 +0 -0
- package/backend/node_modules/.prisma/client/schema.prisma +136 -0
- package/backend/node_modules/.prisma/client/wasm.d.ts +1 -0
- package/backend/node_modules/.prisma/client/wasm.js +258 -0
- package/backend/node_modules/@prisma/debug/LICENSE +201 -0
- package/backend/node_modules/@prisma/debug/README.md +29 -0
- package/backend/node_modules/@prisma/debug/dist/index.d.ts +35 -0
- package/backend/node_modules/@prisma/debug/dist/index.js +236 -0
- package/backend/node_modules/@prisma/debug/dist/util.d.ts +2 -0
- package/backend/node_modules/@prisma/debug/dist/util.js +74 -0
- package/backend/node_modules/@prisma/debug/package.json +37 -0
- package/backend/node_modules/@prisma/engines/LICENSE +201 -0
- package/backend/node_modules/@prisma/engines/README.md +13 -0
- package/backend/node_modules/@prisma/engines/dist/index.d.ts +18 -0
- package/backend/node_modules/@prisma/engines/dist/index.js +113 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.d.ts +1 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.js +2048 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.d.ts +1 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.js +128 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +1 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +1 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +1 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +1 -0
- package/backend/node_modules/@prisma/engines/package.json +41 -0
- package/backend/node_modules/@prisma/engines/query_engine-windows.dll.node +0 -0
- package/backend/node_modules/@prisma/engines/schema-engine-windows.exe +0 -0
- package/backend/node_modules/@prisma/engines/scripts/postinstall.js +28 -0
- package/backend/node_modules/@prisma/engines-version/LICENSE +201 -0
- package/backend/node_modules/@prisma/engines-version/README.md +8 -0
- package/backend/node_modules/@prisma/engines-version/index.d.ts +1 -0
- package/backend/node_modules/@prisma/engines-version/index.js +5 -0
- package/backend/node_modules/@prisma/engines-version/package.json +27 -0
- package/backend/node_modules/@prisma/fetch-engine/LICENSE +201 -0
- package/backend/node_modules/@prisma/fetch-engine/README.md +8 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts +5 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts +1 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js +2385 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js +161 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js +66 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js +49 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js +2457 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js +1404 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js +2385 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js +44 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js +159 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js +8153 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js +70 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js +2786 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js +4232 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js +29 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts +1 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.js +28 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/download.d.ts +27 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/download.js +41 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts +6 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.js +30 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/env.d.ts +14 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/env.js +29 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getHash.d.ts +1 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getHash.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts +3 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/index.d.ts +5 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/index.js +49 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/log.d.ts +2 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/log.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js +371 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/utils.d.ts +11 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/utils.js +29 -0
- package/backend/node_modules/@prisma/fetch-engine/package.json +59 -0
- package/backend/node_modules/@prisma/get-platform/LICENSE +201 -0
- package/backend/node_modules/@prisma/get-platform/README.md +16 -0
- package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts +4 -0
- package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js +25 -0
- package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts +2 -0
- package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.js +26 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js +67 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js +34 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js +1 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js +62 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js +53 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js +367 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js +41 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js +14956 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js +43 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js +580 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js +70 -0
- package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts +8 -0
- package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.js +25 -0
- package/backend/node_modules/@prisma/get-platform/dist/getPlatform.d.ts +105 -0
- package/backend/node_modules/@prisma/get-platform/dist/getPlatform.js +38 -0
- package/backend/node_modules/@prisma/get-platform/dist/index.d.ts +7 -0
- package/backend/node_modules/@prisma/get-platform/dist/index.js +43 -0
- package/backend/node_modules/@prisma/get-platform/dist/link.d.ts +1 -0
- package/backend/node_modules/@prisma/get-platform/dist/link.js +26 -0
- package/backend/node_modules/@prisma/get-platform/dist/logger.d.ts +8 -0
- package/backend/node_modules/@prisma/get-platform/dist/logger.js +29 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts +8 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js +27 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts +1 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.js +28 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts +108 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js +27 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js +205 -0
- package/backend/node_modules/@prisma/get-platform/package.json +49 -0
- package/backend/node_modules/anymatch/LICENSE +15 -0
- package/backend/node_modules/anymatch/README.md +87 -0
- package/backend/node_modules/anymatch/index.d.ts +20 -0
- package/backend/node_modules/anymatch/index.js +104 -0
- package/backend/node_modules/anymatch/package.json +48 -0
- package/backend/node_modules/binary-extensions/binary-extensions.json +263 -0
- package/backend/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
- package/backend/node_modules/binary-extensions/index.d.ts +14 -0
- package/backend/node_modules/binary-extensions/index.js +1 -0
- package/backend/node_modules/binary-extensions/license +10 -0
- package/backend/node_modules/binary-extensions/package.json +40 -0
- package/backend/node_modules/binary-extensions/readme.md +25 -0
- package/backend/node_modules/brace-expansion/LICENSE +21 -0
- package/backend/node_modules/brace-expansion/README.md +129 -0
- package/backend/node_modules/brace-expansion/index.js +201 -0
- package/backend/node_modules/brace-expansion/package.json +47 -0
- package/backend/node_modules/braces/LICENSE +21 -0
- package/backend/node_modules/braces/README.md +586 -0
- package/backend/node_modules/braces/index.js +170 -0
- package/backend/node_modules/braces/lib/compile.js +60 -0
- package/backend/node_modules/braces/lib/constants.js +57 -0
- package/backend/node_modules/braces/lib/expand.js +113 -0
- package/backend/node_modules/braces/lib/parse.js +331 -0
- package/backend/node_modules/braces/lib/stringify.js +32 -0
- package/backend/node_modules/braces/lib/utils.js +122 -0
- package/backend/node_modules/braces/package.json +77 -0
- package/backend/node_modules/chokidar/LICENSE +21 -0
- package/backend/node_modules/chokidar/README.md +308 -0
- package/backend/node_modules/chokidar/index.js +973 -0
- package/backend/node_modules/chokidar/lib/constants.js +66 -0
- package/backend/node_modules/chokidar/lib/fsevents-handler.js +526 -0
- package/backend/node_modules/chokidar/lib/nodefs-handler.js +654 -0
- package/backend/node_modules/chokidar/package.json +70 -0
- package/backend/node_modules/chokidar/types/index.d.ts +192 -0
- package/backend/node_modules/concat-map/.travis.yml +4 -0
- package/backend/node_modules/concat-map/LICENSE +18 -0
- package/backend/node_modules/concat-map/README.markdown +62 -0
- package/backend/node_modules/concat-map/example/map.js +6 -0
- package/backend/node_modules/concat-map/index.js +13 -0
- package/backend/node_modules/concat-map/package.json +43 -0
- package/backend/node_modules/concat-map/test/map.js +39 -0
- package/backend/node_modules/debug/LICENSE +20 -0
- package/backend/node_modules/debug/README.md +481 -0
- package/backend/node_modules/debug/package.json +64 -0
- package/backend/node_modules/debug/src/browser.js +272 -0
- package/backend/node_modules/debug/src/common.js +292 -0
- package/backend/node_modules/debug/src/index.js +10 -0
- package/backend/node_modules/debug/src/node.js +263 -0
- package/backend/node_modules/fill-range/LICENSE +21 -0
- package/backend/node_modules/fill-range/README.md +237 -0
- package/backend/node_modules/fill-range/index.js +248 -0
- package/backend/node_modules/fill-range/package.json +74 -0
- package/backend/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/backend/node_modules/glob-parent/LICENSE +15 -0
- package/backend/node_modules/glob-parent/README.md +137 -0
- package/backend/node_modules/glob-parent/index.js +42 -0
- package/backend/node_modules/glob-parent/package.json +48 -0
- package/backend/node_modules/has-flag/index.js +8 -0
- package/backend/node_modules/has-flag/license +9 -0
- package/backend/node_modules/has-flag/package.json +44 -0
- package/backend/node_modules/has-flag/readme.md +70 -0
- package/backend/node_modules/ignore-by-default/LICENSE +14 -0
- package/backend/node_modules/ignore-by-default/README.md +26 -0
- package/backend/node_modules/ignore-by-default/index.js +12 -0
- package/backend/node_modules/ignore-by-default/package.json +34 -0
- package/backend/node_modules/is-binary-path/index.d.ts +17 -0
- package/backend/node_modules/is-binary-path/index.js +7 -0
- package/backend/node_modules/is-binary-path/license +9 -0
- package/backend/node_modules/is-binary-path/package.json +40 -0
- package/backend/node_modules/is-binary-path/readme.md +34 -0
- package/backend/node_modules/is-extglob/LICENSE +21 -0
- package/backend/node_modules/is-extglob/README.md +107 -0
- package/backend/node_modules/is-extglob/index.js +20 -0
- package/backend/node_modules/is-extglob/package.json +69 -0
- package/backend/node_modules/is-glob/LICENSE +21 -0
- package/backend/node_modules/is-glob/README.md +206 -0
- package/backend/node_modules/is-glob/index.js +150 -0
- package/backend/node_modules/is-glob/package.json +81 -0
- package/backend/node_modules/is-number/LICENSE +21 -0
- package/backend/node_modules/is-number/README.md +187 -0
- package/backend/node_modules/is-number/index.js +18 -0
- package/backend/node_modules/is-number/package.json +82 -0
- package/backend/node_modules/minimatch/LICENSE +15 -0
- package/backend/node_modules/minimatch/README.md +230 -0
- package/backend/node_modules/minimatch/minimatch.js +947 -0
- package/backend/node_modules/minimatch/package.json +33 -0
- package/backend/node_modules/ms/index.js +162 -0
- package/backend/node_modules/ms/license.md +21 -0
- package/backend/node_modules/ms/package.json +38 -0
- package/backend/node_modules/ms/readme.md +59 -0
- package/backend/node_modules/nodemon/.prettierrc.json +3 -0
- package/backend/node_modules/nodemon/LICENSE +21 -0
- package/backend/node_modules/nodemon/README.md +441 -0
- package/backend/node_modules/nodemon/bin/nodemon.js +16 -0
- package/backend/node_modules/nodemon/bin/windows-kill.exe +0 -0
- package/backend/node_modules/nodemon/doc/cli/authors.txt +8 -0
- package/backend/node_modules/nodemon/doc/cli/config.txt +44 -0
- package/backend/node_modules/nodemon/doc/cli/help.txt +29 -0
- package/backend/node_modules/nodemon/doc/cli/logo.txt +20 -0
- package/backend/node_modules/nodemon/doc/cli/options.txt +36 -0
- package/backend/node_modules/nodemon/doc/cli/topics.txt +8 -0
- package/backend/node_modules/nodemon/doc/cli/usage.txt +3 -0
- package/backend/node_modules/nodemon/doc/cli/whoami.txt +9 -0
- package/backend/node_modules/nodemon/index.d.ts +125 -0
- package/backend/node_modules/nodemon/jsconfig.json +7 -0
- package/backend/node_modules/nodemon/lib/cli/index.js +49 -0
- package/backend/node_modules/nodemon/lib/cli/parse.js +230 -0
- package/backend/node_modules/nodemon/lib/config/command.js +43 -0
- package/backend/node_modules/nodemon/lib/config/defaults.js +34 -0
- package/backend/node_modules/nodemon/lib/config/exec.js +234 -0
- package/backend/node_modules/nodemon/lib/config/index.js +93 -0
- package/backend/node_modules/nodemon/lib/config/load.js +225 -0
- package/backend/node_modules/nodemon/lib/help/index.js +27 -0
- package/backend/node_modules/nodemon/lib/index.js +1 -0
- package/backend/node_modules/nodemon/lib/monitor/index.js +4 -0
- package/backend/node_modules/nodemon/lib/monitor/match.js +287 -0
- package/backend/node_modules/nodemon/lib/monitor/run.js +562 -0
- package/backend/node_modules/nodemon/lib/monitor/signals.js +34 -0
- package/backend/node_modules/nodemon/lib/monitor/watch.js +244 -0
- package/backend/node_modules/nodemon/lib/nodemon.js +317 -0
- package/backend/node_modules/nodemon/lib/rules/add.js +89 -0
- package/backend/node_modules/nodemon/lib/rules/index.js +53 -0
- package/backend/node_modules/nodemon/lib/rules/parse.js +43 -0
- package/backend/node_modules/nodemon/lib/spawn.js +74 -0
- package/backend/node_modules/nodemon/lib/utils/bus.js +44 -0
- package/backend/node_modules/nodemon/lib/utils/clone.js +40 -0
- package/backend/node_modules/nodemon/lib/utils/colour.js +26 -0
- package/backend/node_modules/nodemon/lib/utils/index.js +103 -0
- package/backend/node_modules/nodemon/lib/utils/log.js +82 -0
- package/backend/node_modules/nodemon/lib/utils/merge.js +47 -0
- package/backend/node_modules/nodemon/lib/version.js +100 -0
- package/backend/node_modules/nodemon/package.json +75 -0
- package/backend/node_modules/picomatch/CHANGELOG.md +136 -0
- package/backend/node_modules/picomatch/LICENSE +21 -0
- package/backend/node_modules/picomatch/README.md +708 -0
- package/backend/node_modules/picomatch/index.js +3 -0
- package/backend/node_modules/picomatch/lib/constants.js +179 -0
- package/backend/node_modules/picomatch/lib/parse.js +1091 -0
- package/backend/node_modules/picomatch/lib/picomatch.js +342 -0
- package/backend/node_modules/picomatch/lib/scan.js +391 -0
- package/backend/node_modules/picomatch/lib/utils.js +64 -0
- package/backend/node_modules/picomatch/package.json +81 -0
- package/backend/node_modules/prisma/LICENSE +201 -0
- package/backend/node_modules/prisma/README.md +84 -0
- package/backend/node_modules/prisma/build/child.js +82915 -0
- package/backend/node_modules/prisma/build/index.js +2591 -0
- package/backend/node_modules/prisma/build/prisma_schema_build_bg.wasm +0 -0
- package/backend/node_modules/prisma/build/public/assets/alert.60ea9f84.svg +5 -0
- package/backend/node_modules/prisma/build/public/assets/array.1a36c222.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/boolean.9188b434.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/chevron-down.24f76e3c.svg +3 -0
- package/backend/node_modules/prisma/build/public/assets/cross.c2610cf5.svg +11 -0
- package/backend/node_modules/prisma/build/public/assets/datetime.a3bf710a.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/download.8d34b65a.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/ellipsis.a8c5a34a.svg +10 -0
- package/backend/node_modules/prisma/build/public/assets/enum.7ec0b64c.svg +6 -0
- package/backend/node_modules/prisma/build/public/assets/folder.d77b8eaf.svg +6 -0
- package/backend/node_modules/prisma/build/public/assets/hamburger.5fdadeac.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/index.js +1 -0
- package/backend/node_modules/prisma/build/public/assets/inter-all-400-normal.4c1f8a0d.woff +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-all-600-normal.d0a7c8a9.woff +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-400-normal.ac97a49e.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-600-normal.2c917f10.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-400-normal.f21a6a97.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-600-normal.bb31f197.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-400-normal.e9163df8.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-600-normal.e644d70f.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-400-normal.43addcc8.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-600-normal.7f437016.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-400-normal.27ae72da.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-600-normal.87d718a2.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-400-normal.5b02c69a.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-600-normal.88feb9e4.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-vietnamese-600-normal.8185dacd.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-all-400-normal.f86807b7.woff +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-cyrillic-400-normal.1ae57fe2.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-400-normal.80a5dc9e.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-ext-400-normal.6315c53c.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/logotype.a960b169.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/number.85ddf96b.svg +7 -0
- package/backend/node_modules/prisma/build/public/assets/object.0ba944a6.svg +5 -0
- package/backend/node_modules/prisma/build/public/assets/play.8811691e.svg +6 -0
- package/backend/node_modules/prisma/build/public/assets/plus.8fbf7ad3.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/refresh.d5448ccc.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/search.2ed766ce.svg +7 -0
- package/backend/node_modules/prisma/build/public/assets/settings.5ad25af2.svg +8 -0
- package/backend/node_modules/prisma/build/public/assets/string.ea615a24.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/tick-indeterminate.aec8a44d.svg +3 -0
- package/backend/node_modules/prisma/build/public/assets/tick.8cbb6a93.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/vendor.js +385 -0
- package/backend/node_modules/prisma/build/public/favicon.svg +5 -0
- package/backend/node_modules/prisma/build/public/http/databrowser.js +1 -0
- package/backend/node_modules/prisma/build/public/http/splash.js +1 -0
- package/backend/node_modules/prisma/build/public/icon-1024.png +0 -0
- package/backend/node_modules/prisma/build/public/index.css +1 -0
- package/backend/node_modules/prisma/build/public/pages/http/databrowser.html +21 -0
- package/backend/node_modules/prisma/build/public/pages/http/splash.html +21 -0
- package/backend/node_modules/prisma/build/xdg-open +1066 -0
- package/backend/node_modules/prisma/package.json +136 -0
- package/backend/node_modules/prisma/preinstall/index.js +7 -0
- package/backend/node_modules/prisma/prisma-client/README.md +27 -0
- package/backend/node_modules/prisma/prisma-client/default.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/default.js +3 -0
- package/backend/node_modules/prisma/prisma-client/edge.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/edge.js +4 -0
- package/backend/node_modules/prisma/prisma-client/extension.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/extension.js +4 -0
- package/backend/node_modules/prisma/prisma-client/generator-build/index.js +10351 -0
- package/backend/node_modules/prisma/prisma-client/index-browser.js +3 -0
- package/backend/node_modules/prisma/prisma-client/index.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/index.js +4 -0
- package/backend/node_modules/prisma/prisma-client/package.json +281 -0
- package/backend/node_modules/prisma/prisma-client/react-native.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/react-native.js +3 -0
- package/backend/node_modules/prisma/prisma-client/runtime/binary.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/runtime/binary.js +210 -0
- package/backend/node_modules/prisma/prisma-client/runtime/edge-esm.js +31 -0
- package/backend/node_modules/prisma/prisma-client/runtime/edge.js +31 -0
- package/backend/node_modules/prisma/prisma-client/runtime/index-browser.d.ts +365 -0
- package/backend/node_modules/prisma/prisma-client/runtime/index-browser.js +13 -0
- package/backend/node_modules/prisma/prisma-client/runtime/library.d.ts +3403 -0
- package/backend/node_modules/prisma/prisma-client/runtime/library.js +143 -0
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.mysql.js +2 -0
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.postgresql.js +2 -0
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.sqlite.js +2 -0
- package/backend/node_modules/prisma/prisma-client/runtime/react-native.d.ts +3403 -0
- package/backend/node_modules/prisma/prisma-client/runtime/react-native.js +80 -0
- package/backend/node_modules/prisma/prisma-client/scripts/colors.js +176 -0
- package/backend/node_modules/prisma/prisma-client/scripts/default-deno-edge.ts +9 -0
- package/backend/node_modules/prisma/prisma-client/scripts/default-index.d.ts +110 -0
- package/backend/node_modules/prisma/prisma-client/scripts/default-index.js +65 -0
- package/backend/node_modules/prisma/prisma-client/scripts/postinstall.d.ts +5 -0
- package/backend/node_modules/prisma/prisma-client/scripts/postinstall.js +410 -0
- package/backend/node_modules/prisma/prisma-client/sql.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/sql.js +4 -0
- package/backend/node_modules/prisma/prisma-client/sql.mjs +1 -0
- package/backend/node_modules/prisma/query_engine-windows.dll.node +0 -0
- package/backend/node_modules/prisma/scripts/preinstall-entry.js +10 -0
- package/backend/node_modules/pstree.remy/.travis.yml +8 -0
- package/backend/node_modules/pstree.remy/LICENSE +7 -0
- package/backend/node_modules/pstree.remy/README.md +26 -0
- package/backend/node_modules/pstree.remy/lib/index.js +37 -0
- package/backend/node_modules/pstree.remy/lib/tree.js +37 -0
- package/backend/node_modules/pstree.remy/lib/utils.js +53 -0
- package/backend/node_modules/pstree.remy/package.json +33 -0
- package/backend/node_modules/pstree.remy/tests/fixtures/index.js +13 -0
- package/backend/node_modules/pstree.remy/tests/fixtures/out1 +10 -0
- package/backend/node_modules/pstree.remy/tests/fixtures/out2 +29 -0
- package/backend/node_modules/pstree.remy/tests/index.test.js +51 -0
- package/backend/node_modules/readdirp/LICENSE +21 -0
- package/backend/node_modules/readdirp/README.md +122 -0
- package/backend/node_modules/readdirp/index.d.ts +43 -0
- package/backend/node_modules/readdirp/index.js +287 -0
- package/backend/node_modules/readdirp/package.json +122 -0
- package/backend/node_modules/simple-update-notifier/LICENSE +21 -0
- package/backend/node_modules/simple-update-notifier/README.md +82 -0
- package/backend/node_modules/simple-update-notifier/build/index.d.ts +13 -0
- package/backend/node_modules/simple-update-notifier/build/index.js +210 -0
- package/backend/node_modules/simple-update-notifier/package.json +100 -0
- package/backend/node_modules/simple-update-notifier/src/borderedText.ts +12 -0
- package/backend/node_modules/simple-update-notifier/src/cache.spec.ts +17 -0
- package/backend/node_modules/simple-update-notifier/src/cache.ts +44 -0
- package/backend/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +35 -0
- package/backend/node_modules/simple-update-notifier/src/getDistVersion.ts +29 -0
- package/backend/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +82 -0
- package/backend/node_modules/simple-update-notifier/src/hasNewVersion.ts +40 -0
- package/backend/node_modules/simple-update-notifier/src/index.spec.ts +27 -0
- package/backend/node_modules/simple-update-notifier/src/index.ts +34 -0
- package/backend/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +12 -0
- package/backend/node_modules/simple-update-notifier/src/types.ts +8 -0
- package/backend/node_modules/supports-color/browser.js +5 -0
- package/backend/node_modules/supports-color/index.js +131 -0
- package/backend/node_modules/supports-color/license +9 -0
- package/backend/node_modules/supports-color/package.json +53 -0
- package/backend/node_modules/supports-color/readme.md +66 -0
- package/backend/node_modules/to-regex-range/LICENSE +21 -0
- package/backend/node_modules/to-regex-range/README.md +305 -0
- package/backend/node_modules/to-regex-range/index.js +288 -0
- package/backend/node_modules/to-regex-range/package.json +88 -0
- package/backend/node_modules/touch/LICENSE +15 -0
- package/backend/node_modules/touch/README.md +52 -0
- package/backend/node_modules/touch/bin/nodetouch.js +112 -0
- package/backend/node_modules/touch/index.js +224 -0
- package/backend/node_modules/touch/package.json +25 -0
- package/backend/node_modules/undefsafe/.github/workflows/release.yml +25 -0
- package/backend/node_modules/undefsafe/.jscsrc +13 -0
- package/backend/node_modules/undefsafe/.jshintrc +16 -0
- package/backend/node_modules/undefsafe/.travis.yml +18 -0
- package/backend/node_modules/undefsafe/LICENSE +22 -0
- package/backend/node_modules/undefsafe/README.md +63 -0
- package/backend/node_modules/undefsafe/example.js +14 -0
- package/backend/node_modules/undefsafe/lib/undefsafe.js +125 -0
- package/backend/node_modules/undefsafe/package.json +34 -0
- package/backend/package.json +1 -14
- package/backend/prisma/dev.db +0 -0
- package/backend/storage/plugins/bot_1/anti-tp-keksik/index.js +59 -0
- package/backend/storage/plugins/bot_1/anti-tp-keksik/package.json +23 -0
- package/backend/storage/plugins/bot_1/auth-keksik-servers/index.js +66 -0
- package/backend/storage/plugins/bot_1/auth-keksik-servers/package.json +20 -0
- package/backend/storage/plugins/bot_1/clan-events-keksik/README.md +81 -0
- package/backend/storage/plugins/bot_1/clan-events-keksik/index.js +46 -0
- package/backend/storage/plugins/bot_1/clan-events-keksik/package.json +14 -0
- package/backend/storage/plugins/bot_1/clan-role-manager/README.md +64 -0
- package/backend/storage/plugins/bot_1/clan-role-manager/index.js +98 -0
- package/backend/storage/plugins/bot_1/clan-role-manager/package.json +13 -0
- package/backend/storage/plugins/bot_1/clan-welcome/index.js +32 -0
- package/backend/storage/plugins/bot_1/clan-welcome/package.json +22 -0
- package/backend/storage/plugins/bot_1/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_1/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_1/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_1/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_1/unlock-auth-keksik/index.js +35 -0
- package/backend/storage/plugins/bot_1/unlock-auth-keksik/package.json +18 -0
- package/backend/storage/plugins/bot_2/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_2/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_2/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_2/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_3/auth-keksik-servers/index.js +66 -0
- package/backend/storage/plugins/bot_3/auth-keksik-servers/package.json +20 -0
- package/backend/storage/plugins/bot_3/clan-events-keksik/README.md +81 -0
- package/backend/storage/plugins/bot_3/clan-events-keksik/index.js +46 -0
- package/backend/storage/plugins/bot_3/clan-events-keksik/package.json +14 -0
- package/backend/storage/plugins/bot_3/clan-welcome/index.js +32 -0
- package/backend/storage/plugins/bot_3/clan-welcome/package.json +22 -0
- package/backend/storage/plugins/bot_3/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_3/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_3/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_3/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_4/fly-keksik/index.js +111 -0
- package/backend/storage/plugins/bot_4/fly-keksik/package.json +59 -0
- package/backend/storage/plugins/bot_4/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_4/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_4/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_4/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_5/auth-keksik-servers/index.js +66 -0
- package/backend/storage/plugins/bot_5/auth-keksik-servers/package.json +20 -0
- package/backend/storage/plugins/bot_5/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_5/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_5/parser-keksik/index.js +117 -0
- package/backend/storage/plugins/bot_5/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_6/clan-events-keksik/README.md +81 -0
- package/backend/storage/plugins/bot_6/clan-events-keksik/index.js +46 -0
- package/backend/storage/plugins/bot_6/clan-events-keksik/package.json +14 -0
- package/backend/storage/plugins/bot_6/clan-welcome/index.js +32 -0
- package/backend/storage/plugins/bot_6/clan-welcome/package.json +22 -0
- package/backend/storage/plugins/bot_6/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_6/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_6/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_6/parser-keksik/package.json +40 -0
- package/package.json +29 -4
- package/frontend/package.json +0 -65
- package/image/1.png +0 -0
- package/image/2.png +0 -0
- package/image/3.png +0 -0
- package/image/logo.png +0 -0
- package/tailwind.config.js +0 -0
- package/vite.config.js +0 -0
|
@@ -0,0 +1,2786 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var chunk_RGVHWUUH_exports = {};
|
|
20
|
+
__export(chunk_RGVHWUUH_exports, {
|
|
21
|
+
require_p_map: () => require_p_map,
|
|
22
|
+
require_rimraf: () => require_rimraf
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(chunk_RGVHWUUH_exports);
|
|
25
|
+
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
|
26
|
+
var require_indent_string = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
27
|
+
"../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js"(exports, module2) {
|
|
28
|
+
"use strict";
|
|
29
|
+
module2.exports = (string, count = 1, options) => {
|
|
30
|
+
options = {
|
|
31
|
+
indent: " ",
|
|
32
|
+
includeEmptyLines: false,
|
|
33
|
+
...options
|
|
34
|
+
};
|
|
35
|
+
if (typeof string !== "string") {
|
|
36
|
+
throw new TypeError(
|
|
37
|
+
`Expected \`input\` to be a \`string\`, got \`${typeof string}\``
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
if (typeof count !== "number") {
|
|
41
|
+
throw new TypeError(
|
|
42
|
+
`Expected \`count\` to be a \`number\`, got \`${typeof count}\``
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
if (typeof options.indent !== "string") {
|
|
46
|
+
throw new TypeError(
|
|
47
|
+
`Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
if (count === 0) {
|
|
51
|
+
return string;
|
|
52
|
+
}
|
|
53
|
+
const regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
|
|
54
|
+
return string.replace(regex, options.indent.repeat(count));
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
var require_clean_stack = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
59
|
+
"../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module2) {
|
|
60
|
+
"use strict";
|
|
61
|
+
var os = (0, import_chunk_AH6QHEOA.__require)("os");
|
|
62
|
+
var extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/;
|
|
63
|
+
var pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/;
|
|
64
|
+
var homeDir = typeof os.homedir === "undefined" ? "" : os.homedir();
|
|
65
|
+
module2.exports = (stack, options) => {
|
|
66
|
+
options = Object.assign({ pretty: false }, options);
|
|
67
|
+
return stack.replace(/\\/g, "/").split("\n").filter((line) => {
|
|
68
|
+
const pathMatches = line.match(extractPathRegex);
|
|
69
|
+
if (pathMatches === null || !pathMatches[1]) {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
const match = pathMatches[1];
|
|
73
|
+
if (match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar")) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
return !pathRegex.test(match);
|
|
77
|
+
}).filter((line) => line.trim() !== "").map((line) => {
|
|
78
|
+
if (options.pretty) {
|
|
79
|
+
return line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~")));
|
|
80
|
+
}
|
|
81
|
+
return line;
|
|
82
|
+
}).join("\n");
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
var require_aggregate_error = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
87
|
+
"../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module2) {
|
|
88
|
+
"use strict";
|
|
89
|
+
var indentString = require_indent_string();
|
|
90
|
+
var cleanStack = require_clean_stack();
|
|
91
|
+
var cleanInternalStack = (stack) => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, "");
|
|
92
|
+
var AggregateError = class extends Error {
|
|
93
|
+
constructor(errors) {
|
|
94
|
+
if (!Array.isArray(errors)) {
|
|
95
|
+
throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
|
|
96
|
+
}
|
|
97
|
+
errors = [...errors].map((error) => {
|
|
98
|
+
if (error instanceof Error) {
|
|
99
|
+
return error;
|
|
100
|
+
}
|
|
101
|
+
if (error !== null && typeof error === "object") {
|
|
102
|
+
return Object.assign(new Error(error.message), error);
|
|
103
|
+
}
|
|
104
|
+
return new Error(error);
|
|
105
|
+
});
|
|
106
|
+
let message = errors.map((error) => {
|
|
107
|
+
return typeof error.stack === "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error);
|
|
108
|
+
}).join("\n");
|
|
109
|
+
message = "\n" + indentString(message, 4);
|
|
110
|
+
super(message);
|
|
111
|
+
this.name = "AggregateError";
|
|
112
|
+
Object.defineProperty(this, "_errors", { value: errors });
|
|
113
|
+
}
|
|
114
|
+
*[Symbol.iterator]() {
|
|
115
|
+
for (const error of this._errors) {
|
|
116
|
+
yield error;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
module2.exports = AggregateError;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
var require_p_map = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
124
|
+
"../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module2) {
|
|
125
|
+
"use strict";
|
|
126
|
+
var AggregateError = require_aggregate_error();
|
|
127
|
+
module2.exports = async (iterable, mapper, {
|
|
128
|
+
concurrency = Infinity,
|
|
129
|
+
stopOnError = true
|
|
130
|
+
} = {}) => {
|
|
131
|
+
return new Promise((resolve, reject) => {
|
|
132
|
+
if (typeof mapper !== "function") {
|
|
133
|
+
throw new TypeError("Mapper function is required");
|
|
134
|
+
}
|
|
135
|
+
if (!((Number.isSafeInteger(concurrency) || concurrency === Infinity) && concurrency >= 1)) {
|
|
136
|
+
throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
|
|
137
|
+
}
|
|
138
|
+
const result = [];
|
|
139
|
+
const errors = [];
|
|
140
|
+
const iterator = iterable[Symbol.iterator]();
|
|
141
|
+
let isRejected = false;
|
|
142
|
+
let isIterableDone = false;
|
|
143
|
+
let resolvingCount = 0;
|
|
144
|
+
let currentIndex = 0;
|
|
145
|
+
const next = () => {
|
|
146
|
+
if (isRejected) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const nextItem = iterator.next();
|
|
150
|
+
const index = currentIndex;
|
|
151
|
+
currentIndex++;
|
|
152
|
+
if (nextItem.done) {
|
|
153
|
+
isIterableDone = true;
|
|
154
|
+
if (resolvingCount === 0) {
|
|
155
|
+
if (!stopOnError && errors.length !== 0) {
|
|
156
|
+
reject(new AggregateError(errors));
|
|
157
|
+
} else {
|
|
158
|
+
resolve(result);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
resolvingCount++;
|
|
164
|
+
(async () => {
|
|
165
|
+
try {
|
|
166
|
+
const element = await nextItem.value;
|
|
167
|
+
result[index] = await mapper(element, index);
|
|
168
|
+
resolvingCount--;
|
|
169
|
+
next();
|
|
170
|
+
} catch (error) {
|
|
171
|
+
if (stopOnError) {
|
|
172
|
+
isRejected = true;
|
|
173
|
+
reject(error);
|
|
174
|
+
} else {
|
|
175
|
+
errors.push(error);
|
|
176
|
+
resolvingCount--;
|
|
177
|
+
next();
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
})();
|
|
181
|
+
};
|
|
182
|
+
for (let i = 0; i < concurrency; i++) {
|
|
183
|
+
next();
|
|
184
|
+
if (isIterableDone) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
var require_old = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
193
|
+
"../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(exports) {
|
|
194
|
+
"use strict";
|
|
195
|
+
var pathModule = (0, import_chunk_AH6QHEOA.__require)("path");
|
|
196
|
+
var isWindows = process.platform === "win32";
|
|
197
|
+
var fs = (0, import_chunk_AH6QHEOA.__require)("fs");
|
|
198
|
+
var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
|
199
|
+
function rethrow() {
|
|
200
|
+
var callback;
|
|
201
|
+
if (DEBUG) {
|
|
202
|
+
var backtrace = new Error();
|
|
203
|
+
callback = debugCallback;
|
|
204
|
+
} else
|
|
205
|
+
callback = missingCallback;
|
|
206
|
+
return callback;
|
|
207
|
+
function debugCallback(err) {
|
|
208
|
+
if (err) {
|
|
209
|
+
backtrace.message = err.message;
|
|
210
|
+
err = backtrace;
|
|
211
|
+
missingCallback(err);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
function missingCallback(err) {
|
|
215
|
+
if (err) {
|
|
216
|
+
if (process.throwDeprecation)
|
|
217
|
+
throw err;
|
|
218
|
+
else if (!process.noDeprecation) {
|
|
219
|
+
var msg = "fs: missing callback " + (err.stack || err.message);
|
|
220
|
+
if (process.traceDeprecation)
|
|
221
|
+
console.trace(msg);
|
|
222
|
+
else
|
|
223
|
+
console.error(msg);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
function maybeCallback(cb) {
|
|
229
|
+
return typeof cb === "function" ? cb : rethrow();
|
|
230
|
+
}
|
|
231
|
+
var normalize = pathModule.normalize;
|
|
232
|
+
if (isWindows) {
|
|
233
|
+
nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
|
|
234
|
+
} else {
|
|
235
|
+
nextPartRe = /(.*?)(?:[\/]+|$)/g;
|
|
236
|
+
}
|
|
237
|
+
var nextPartRe;
|
|
238
|
+
if (isWindows) {
|
|
239
|
+
splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
|
|
240
|
+
} else {
|
|
241
|
+
splitRootRe = /^[\/]*/;
|
|
242
|
+
}
|
|
243
|
+
var splitRootRe;
|
|
244
|
+
exports.realpathSync = function realpathSync(p, cache) {
|
|
245
|
+
p = pathModule.resolve(p);
|
|
246
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
|
247
|
+
return cache[p];
|
|
248
|
+
}
|
|
249
|
+
var original = p, seenLinks = {}, knownHard = {};
|
|
250
|
+
var pos;
|
|
251
|
+
var current;
|
|
252
|
+
var base;
|
|
253
|
+
var previous;
|
|
254
|
+
start();
|
|
255
|
+
function start() {
|
|
256
|
+
var m = splitRootRe.exec(p);
|
|
257
|
+
pos = m[0].length;
|
|
258
|
+
current = m[0];
|
|
259
|
+
base = m[0];
|
|
260
|
+
previous = "";
|
|
261
|
+
if (isWindows && !knownHard[base]) {
|
|
262
|
+
fs.lstatSync(base);
|
|
263
|
+
knownHard[base] = true;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
while (pos < p.length) {
|
|
267
|
+
nextPartRe.lastIndex = pos;
|
|
268
|
+
var result = nextPartRe.exec(p);
|
|
269
|
+
previous = current;
|
|
270
|
+
current += result[0];
|
|
271
|
+
base = previous + result[1];
|
|
272
|
+
pos = nextPartRe.lastIndex;
|
|
273
|
+
if (knownHard[base] || cache && cache[base] === base) {
|
|
274
|
+
continue;
|
|
275
|
+
}
|
|
276
|
+
var resolvedLink;
|
|
277
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
278
|
+
resolvedLink = cache[base];
|
|
279
|
+
} else {
|
|
280
|
+
var stat = fs.lstatSync(base);
|
|
281
|
+
if (!stat.isSymbolicLink()) {
|
|
282
|
+
knownHard[base] = true;
|
|
283
|
+
if (cache) cache[base] = base;
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
var linkTarget = null;
|
|
287
|
+
if (!isWindows) {
|
|
288
|
+
var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
|
|
289
|
+
if (seenLinks.hasOwnProperty(id)) {
|
|
290
|
+
linkTarget = seenLinks[id];
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
if (linkTarget === null) {
|
|
294
|
+
fs.statSync(base);
|
|
295
|
+
linkTarget = fs.readlinkSync(base);
|
|
296
|
+
}
|
|
297
|
+
resolvedLink = pathModule.resolve(previous, linkTarget);
|
|
298
|
+
if (cache) cache[base] = resolvedLink;
|
|
299
|
+
if (!isWindows) seenLinks[id] = linkTarget;
|
|
300
|
+
}
|
|
301
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
|
302
|
+
start();
|
|
303
|
+
}
|
|
304
|
+
if (cache) cache[original] = p;
|
|
305
|
+
return p;
|
|
306
|
+
};
|
|
307
|
+
exports.realpath = function realpath(p, cache, cb) {
|
|
308
|
+
if (typeof cb !== "function") {
|
|
309
|
+
cb = maybeCallback(cache);
|
|
310
|
+
cache = null;
|
|
311
|
+
}
|
|
312
|
+
p = pathModule.resolve(p);
|
|
313
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
|
314
|
+
return process.nextTick(cb.bind(null, null, cache[p]));
|
|
315
|
+
}
|
|
316
|
+
var original = p, seenLinks = {}, knownHard = {};
|
|
317
|
+
var pos;
|
|
318
|
+
var current;
|
|
319
|
+
var base;
|
|
320
|
+
var previous;
|
|
321
|
+
start();
|
|
322
|
+
function start() {
|
|
323
|
+
var m = splitRootRe.exec(p);
|
|
324
|
+
pos = m[0].length;
|
|
325
|
+
current = m[0];
|
|
326
|
+
base = m[0];
|
|
327
|
+
previous = "";
|
|
328
|
+
if (isWindows && !knownHard[base]) {
|
|
329
|
+
fs.lstat(base, function(err) {
|
|
330
|
+
if (err) return cb(err);
|
|
331
|
+
knownHard[base] = true;
|
|
332
|
+
LOOP();
|
|
333
|
+
});
|
|
334
|
+
} else {
|
|
335
|
+
process.nextTick(LOOP);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
function LOOP() {
|
|
339
|
+
if (pos >= p.length) {
|
|
340
|
+
if (cache) cache[original] = p;
|
|
341
|
+
return cb(null, p);
|
|
342
|
+
}
|
|
343
|
+
nextPartRe.lastIndex = pos;
|
|
344
|
+
var result = nextPartRe.exec(p);
|
|
345
|
+
previous = current;
|
|
346
|
+
current += result[0];
|
|
347
|
+
base = previous + result[1];
|
|
348
|
+
pos = nextPartRe.lastIndex;
|
|
349
|
+
if (knownHard[base] || cache && cache[base] === base) {
|
|
350
|
+
return process.nextTick(LOOP);
|
|
351
|
+
}
|
|
352
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
353
|
+
return gotResolvedLink(cache[base]);
|
|
354
|
+
}
|
|
355
|
+
return fs.lstat(base, gotStat);
|
|
356
|
+
}
|
|
357
|
+
function gotStat(err, stat) {
|
|
358
|
+
if (err) return cb(err);
|
|
359
|
+
if (!stat.isSymbolicLink()) {
|
|
360
|
+
knownHard[base] = true;
|
|
361
|
+
if (cache) cache[base] = base;
|
|
362
|
+
return process.nextTick(LOOP);
|
|
363
|
+
}
|
|
364
|
+
if (!isWindows) {
|
|
365
|
+
var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
|
|
366
|
+
if (seenLinks.hasOwnProperty(id)) {
|
|
367
|
+
return gotTarget(null, seenLinks[id], base);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
fs.stat(base, function(err2) {
|
|
371
|
+
if (err2) return cb(err2);
|
|
372
|
+
fs.readlink(base, function(err3, target) {
|
|
373
|
+
if (!isWindows) seenLinks[id] = target;
|
|
374
|
+
gotTarget(err3, target);
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
function gotTarget(err, target, base2) {
|
|
379
|
+
if (err) return cb(err);
|
|
380
|
+
var resolvedLink = pathModule.resolve(previous, target);
|
|
381
|
+
if (cache) cache[base2] = resolvedLink;
|
|
382
|
+
gotResolvedLink(resolvedLink);
|
|
383
|
+
}
|
|
384
|
+
function gotResolvedLink(resolvedLink) {
|
|
385
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
|
386
|
+
start();
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
var require_fs = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
392
|
+
"../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js"(exports, module2) {
|
|
393
|
+
"use strict";
|
|
394
|
+
module2.exports = realpath;
|
|
395
|
+
realpath.realpath = realpath;
|
|
396
|
+
realpath.sync = realpathSync;
|
|
397
|
+
realpath.realpathSync = realpathSync;
|
|
398
|
+
realpath.monkeypatch = monkeypatch;
|
|
399
|
+
realpath.unmonkeypatch = unmonkeypatch;
|
|
400
|
+
var fs = (0, import_chunk_AH6QHEOA.__require)("fs");
|
|
401
|
+
var origRealpath = fs.realpath;
|
|
402
|
+
var origRealpathSync = fs.realpathSync;
|
|
403
|
+
var version = process.version;
|
|
404
|
+
var ok = /^v[0-5]\./.test(version);
|
|
405
|
+
var old = require_old();
|
|
406
|
+
function newError(er) {
|
|
407
|
+
return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
|
|
408
|
+
}
|
|
409
|
+
function realpath(p, cache, cb) {
|
|
410
|
+
if (ok) {
|
|
411
|
+
return origRealpath(p, cache, cb);
|
|
412
|
+
}
|
|
413
|
+
if (typeof cache === "function") {
|
|
414
|
+
cb = cache;
|
|
415
|
+
cache = null;
|
|
416
|
+
}
|
|
417
|
+
origRealpath(p, cache, function(er, result) {
|
|
418
|
+
if (newError(er)) {
|
|
419
|
+
old.realpath(p, cache, cb);
|
|
420
|
+
} else {
|
|
421
|
+
cb(er, result);
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
function realpathSync(p, cache) {
|
|
426
|
+
if (ok) {
|
|
427
|
+
return origRealpathSync(p, cache);
|
|
428
|
+
}
|
|
429
|
+
try {
|
|
430
|
+
return origRealpathSync(p, cache);
|
|
431
|
+
} catch (er) {
|
|
432
|
+
if (newError(er)) {
|
|
433
|
+
return old.realpathSync(p, cache);
|
|
434
|
+
} else {
|
|
435
|
+
throw er;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
function monkeypatch() {
|
|
440
|
+
fs.realpath = realpath;
|
|
441
|
+
fs.realpathSync = realpathSync;
|
|
442
|
+
}
|
|
443
|
+
function unmonkeypatch() {
|
|
444
|
+
fs.realpath = origRealpath;
|
|
445
|
+
fs.realpathSync = origRealpathSync;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
var require_concat_map = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
450
|
+
"../../node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js"(exports, module2) {
|
|
451
|
+
"use strict";
|
|
452
|
+
module2.exports = function(xs, fn) {
|
|
453
|
+
var res = [];
|
|
454
|
+
for (var i = 0; i < xs.length; i++) {
|
|
455
|
+
var x = fn(xs[i], i);
|
|
456
|
+
if (isArray(x)) res.push.apply(res, x);
|
|
457
|
+
else res.push(x);
|
|
458
|
+
}
|
|
459
|
+
return res;
|
|
460
|
+
};
|
|
461
|
+
var isArray = Array.isArray || function(xs) {
|
|
462
|
+
return Object.prototype.toString.call(xs) === "[object Array]";
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
var require_balanced_match = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
467
|
+
"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module2) {
|
|
468
|
+
"use strict";
|
|
469
|
+
module2.exports = balanced;
|
|
470
|
+
function balanced(a, b, str) {
|
|
471
|
+
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
472
|
+
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
473
|
+
var r = range(a, b, str);
|
|
474
|
+
return r && {
|
|
475
|
+
start: r[0],
|
|
476
|
+
end: r[1],
|
|
477
|
+
pre: str.slice(0, r[0]),
|
|
478
|
+
body: str.slice(r[0] + a.length, r[1]),
|
|
479
|
+
post: str.slice(r[1] + b.length)
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
function maybeMatch(reg, str) {
|
|
483
|
+
var m = str.match(reg);
|
|
484
|
+
return m ? m[0] : null;
|
|
485
|
+
}
|
|
486
|
+
balanced.range = range;
|
|
487
|
+
function range(a, b, str) {
|
|
488
|
+
var begs, beg, left, right, result;
|
|
489
|
+
var ai = str.indexOf(a);
|
|
490
|
+
var bi = str.indexOf(b, ai + 1);
|
|
491
|
+
var i = ai;
|
|
492
|
+
if (ai >= 0 && bi > 0) {
|
|
493
|
+
if (a === b) {
|
|
494
|
+
return [ai, bi];
|
|
495
|
+
}
|
|
496
|
+
begs = [];
|
|
497
|
+
left = str.length;
|
|
498
|
+
while (i >= 0 && !result) {
|
|
499
|
+
if (i == ai) {
|
|
500
|
+
begs.push(i);
|
|
501
|
+
ai = str.indexOf(a, i + 1);
|
|
502
|
+
} else if (begs.length == 1) {
|
|
503
|
+
result = [begs.pop(), bi];
|
|
504
|
+
} else {
|
|
505
|
+
beg = begs.pop();
|
|
506
|
+
if (beg < left) {
|
|
507
|
+
left = beg;
|
|
508
|
+
right = bi;
|
|
509
|
+
}
|
|
510
|
+
bi = str.indexOf(b, i + 1);
|
|
511
|
+
}
|
|
512
|
+
i = ai < bi && ai >= 0 ? ai : bi;
|
|
513
|
+
}
|
|
514
|
+
if (begs.length) {
|
|
515
|
+
result = [left, right];
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
return result;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
var require_brace_expansion = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
523
|
+
"../../node_modules/.pnpm/brace-expansion@1.1.11/node_modules/brace-expansion/index.js"(exports, module2) {
|
|
524
|
+
"use strict";
|
|
525
|
+
var concatMap = require_concat_map();
|
|
526
|
+
var balanced = require_balanced_match();
|
|
527
|
+
module2.exports = expandTop;
|
|
528
|
+
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
529
|
+
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
530
|
+
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
531
|
+
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
532
|
+
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
533
|
+
function numeric(str) {
|
|
534
|
+
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
535
|
+
}
|
|
536
|
+
function escapeBraces(str) {
|
|
537
|
+
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
538
|
+
}
|
|
539
|
+
function unescapeBraces(str) {
|
|
540
|
+
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
541
|
+
}
|
|
542
|
+
function parseCommaParts(str) {
|
|
543
|
+
if (!str)
|
|
544
|
+
return [""];
|
|
545
|
+
var parts = [];
|
|
546
|
+
var m = balanced("{", "}", str);
|
|
547
|
+
if (!m)
|
|
548
|
+
return str.split(",");
|
|
549
|
+
var pre = m.pre;
|
|
550
|
+
var body = m.body;
|
|
551
|
+
var post = m.post;
|
|
552
|
+
var p = pre.split(",");
|
|
553
|
+
p[p.length - 1] += "{" + body + "}";
|
|
554
|
+
var postParts = parseCommaParts(post);
|
|
555
|
+
if (post.length) {
|
|
556
|
+
p[p.length - 1] += postParts.shift();
|
|
557
|
+
p.push.apply(p, postParts);
|
|
558
|
+
}
|
|
559
|
+
parts.push.apply(parts, p);
|
|
560
|
+
return parts;
|
|
561
|
+
}
|
|
562
|
+
function expandTop(str) {
|
|
563
|
+
if (!str)
|
|
564
|
+
return [];
|
|
565
|
+
if (str.substr(0, 2) === "{}") {
|
|
566
|
+
str = "\\{\\}" + str.substr(2);
|
|
567
|
+
}
|
|
568
|
+
return expand(escapeBraces(str), true).map(unescapeBraces);
|
|
569
|
+
}
|
|
570
|
+
function embrace(str) {
|
|
571
|
+
return "{" + str + "}";
|
|
572
|
+
}
|
|
573
|
+
function isPadded(el) {
|
|
574
|
+
return /^-?0\d/.test(el);
|
|
575
|
+
}
|
|
576
|
+
function lte(i, y) {
|
|
577
|
+
return i <= y;
|
|
578
|
+
}
|
|
579
|
+
function gte(i, y) {
|
|
580
|
+
return i >= y;
|
|
581
|
+
}
|
|
582
|
+
function expand(str, isTop) {
|
|
583
|
+
var expansions = [];
|
|
584
|
+
var m = balanced("{", "}", str);
|
|
585
|
+
if (!m || /\$$/.test(m.pre)) return [str];
|
|
586
|
+
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
587
|
+
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
588
|
+
var isSequence = isNumericSequence || isAlphaSequence;
|
|
589
|
+
var isOptions = m.body.indexOf(",") >= 0;
|
|
590
|
+
if (!isSequence && !isOptions) {
|
|
591
|
+
if (m.post.match(/,.*\}/)) {
|
|
592
|
+
str = m.pre + "{" + m.body + escClose + m.post;
|
|
593
|
+
return expand(str);
|
|
594
|
+
}
|
|
595
|
+
return [str];
|
|
596
|
+
}
|
|
597
|
+
var n;
|
|
598
|
+
if (isSequence) {
|
|
599
|
+
n = m.body.split(/\.\./);
|
|
600
|
+
} else {
|
|
601
|
+
n = parseCommaParts(m.body);
|
|
602
|
+
if (n.length === 1) {
|
|
603
|
+
n = expand(n[0], false).map(embrace);
|
|
604
|
+
if (n.length === 1) {
|
|
605
|
+
var post = m.post.length ? expand(m.post, false) : [""];
|
|
606
|
+
return post.map(function(p) {
|
|
607
|
+
return m.pre + n[0] + p;
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
var pre = m.pre;
|
|
613
|
+
var post = m.post.length ? expand(m.post, false) : [""];
|
|
614
|
+
var N;
|
|
615
|
+
if (isSequence) {
|
|
616
|
+
var x = numeric(n[0]);
|
|
617
|
+
var y = numeric(n[1]);
|
|
618
|
+
var width = Math.max(n[0].length, n[1].length);
|
|
619
|
+
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
620
|
+
var test = lte;
|
|
621
|
+
var reverse = y < x;
|
|
622
|
+
if (reverse) {
|
|
623
|
+
incr *= -1;
|
|
624
|
+
test = gte;
|
|
625
|
+
}
|
|
626
|
+
var pad = n.some(isPadded);
|
|
627
|
+
N = [];
|
|
628
|
+
for (var i = x; test(i, y); i += incr) {
|
|
629
|
+
var c;
|
|
630
|
+
if (isAlphaSequence) {
|
|
631
|
+
c = String.fromCharCode(i);
|
|
632
|
+
if (c === "\\")
|
|
633
|
+
c = "";
|
|
634
|
+
} else {
|
|
635
|
+
c = String(i);
|
|
636
|
+
if (pad) {
|
|
637
|
+
var need = width - c.length;
|
|
638
|
+
if (need > 0) {
|
|
639
|
+
var z = new Array(need + 1).join("0");
|
|
640
|
+
if (i < 0)
|
|
641
|
+
c = "-" + z + c.slice(1);
|
|
642
|
+
else
|
|
643
|
+
c = z + c;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
N.push(c);
|
|
648
|
+
}
|
|
649
|
+
} else {
|
|
650
|
+
N = concatMap(n, function(el) {
|
|
651
|
+
return expand(el, false);
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
for (var j = 0; j < N.length; j++) {
|
|
655
|
+
for (var k = 0; k < post.length; k++) {
|
|
656
|
+
var expansion = pre + N[j] + post[k];
|
|
657
|
+
if (!isTop || isSequence || expansion)
|
|
658
|
+
expansions.push(expansion);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
return expansions;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
var require_minimatch = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
666
|
+
"../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
667
|
+
"use strict";
|
|
668
|
+
module2.exports = minimatch;
|
|
669
|
+
minimatch.Minimatch = Minimatch;
|
|
670
|
+
var path = function() {
|
|
671
|
+
try {
|
|
672
|
+
return (0, import_chunk_AH6QHEOA.__require)("path");
|
|
673
|
+
} catch (e) {
|
|
674
|
+
}
|
|
675
|
+
}() || {
|
|
676
|
+
sep: "/"
|
|
677
|
+
};
|
|
678
|
+
minimatch.sep = path.sep;
|
|
679
|
+
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
680
|
+
var expand = require_brace_expansion();
|
|
681
|
+
var plTypes = {
|
|
682
|
+
"!": { open: "(?:(?!(?:", close: "))[^/]*?)" },
|
|
683
|
+
"?": { open: "(?:", close: ")?" },
|
|
684
|
+
"+": { open: "(?:", close: ")+" },
|
|
685
|
+
"*": { open: "(?:", close: ")*" },
|
|
686
|
+
"@": { open: "(?:", close: ")" }
|
|
687
|
+
};
|
|
688
|
+
var qmark = "[^/]";
|
|
689
|
+
var star = qmark + "*?";
|
|
690
|
+
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
691
|
+
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
692
|
+
var reSpecials = charSet("().*{}+?[]^$\\!");
|
|
693
|
+
function charSet(s) {
|
|
694
|
+
return s.split("").reduce(function(set, c) {
|
|
695
|
+
set[c] = true;
|
|
696
|
+
return set;
|
|
697
|
+
}, {});
|
|
698
|
+
}
|
|
699
|
+
var slashSplit = /\/+/;
|
|
700
|
+
minimatch.filter = filter;
|
|
701
|
+
function filter(pattern, options) {
|
|
702
|
+
options = options || {};
|
|
703
|
+
return function(p, i, list) {
|
|
704
|
+
return minimatch(p, pattern, options);
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
function ext(a, b) {
|
|
708
|
+
b = b || {};
|
|
709
|
+
var t = {};
|
|
710
|
+
Object.keys(a).forEach(function(k) {
|
|
711
|
+
t[k] = a[k];
|
|
712
|
+
});
|
|
713
|
+
Object.keys(b).forEach(function(k) {
|
|
714
|
+
t[k] = b[k];
|
|
715
|
+
});
|
|
716
|
+
return t;
|
|
717
|
+
}
|
|
718
|
+
minimatch.defaults = function(def) {
|
|
719
|
+
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
720
|
+
return minimatch;
|
|
721
|
+
}
|
|
722
|
+
var orig = minimatch;
|
|
723
|
+
var m = function minimatch2(p, pattern, options) {
|
|
724
|
+
return orig(p, pattern, ext(def, options));
|
|
725
|
+
};
|
|
726
|
+
m.Minimatch = function Minimatch2(pattern, options) {
|
|
727
|
+
return new orig.Minimatch(pattern, ext(def, options));
|
|
728
|
+
};
|
|
729
|
+
m.Minimatch.defaults = function defaults(options) {
|
|
730
|
+
return orig.defaults(ext(def, options)).Minimatch;
|
|
731
|
+
};
|
|
732
|
+
m.filter = function filter2(pattern, options) {
|
|
733
|
+
return orig.filter(pattern, ext(def, options));
|
|
734
|
+
};
|
|
735
|
+
m.defaults = function defaults(options) {
|
|
736
|
+
return orig.defaults(ext(def, options));
|
|
737
|
+
};
|
|
738
|
+
m.makeRe = function makeRe2(pattern, options) {
|
|
739
|
+
return orig.makeRe(pattern, ext(def, options));
|
|
740
|
+
};
|
|
741
|
+
m.braceExpand = function braceExpand2(pattern, options) {
|
|
742
|
+
return orig.braceExpand(pattern, ext(def, options));
|
|
743
|
+
};
|
|
744
|
+
m.match = function(list, pattern, options) {
|
|
745
|
+
return orig.match(list, pattern, ext(def, options));
|
|
746
|
+
};
|
|
747
|
+
return m;
|
|
748
|
+
};
|
|
749
|
+
Minimatch.defaults = function(def) {
|
|
750
|
+
return minimatch.defaults(def).Minimatch;
|
|
751
|
+
};
|
|
752
|
+
function minimatch(p, pattern, options) {
|
|
753
|
+
assertValidPattern(pattern);
|
|
754
|
+
if (!options) options = {};
|
|
755
|
+
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
756
|
+
return false;
|
|
757
|
+
}
|
|
758
|
+
return new Minimatch(pattern, options).match(p);
|
|
759
|
+
}
|
|
760
|
+
function Minimatch(pattern, options) {
|
|
761
|
+
if (!(this instanceof Minimatch)) {
|
|
762
|
+
return new Minimatch(pattern, options);
|
|
763
|
+
}
|
|
764
|
+
assertValidPattern(pattern);
|
|
765
|
+
if (!options) options = {};
|
|
766
|
+
pattern = pattern.trim();
|
|
767
|
+
if (!options.allowWindowsEscape && path.sep !== "/") {
|
|
768
|
+
pattern = pattern.split(path.sep).join("/");
|
|
769
|
+
}
|
|
770
|
+
this.options = options;
|
|
771
|
+
this.set = [];
|
|
772
|
+
this.pattern = pattern;
|
|
773
|
+
this.regexp = null;
|
|
774
|
+
this.negate = false;
|
|
775
|
+
this.comment = false;
|
|
776
|
+
this.empty = false;
|
|
777
|
+
this.partial = !!options.partial;
|
|
778
|
+
this.make();
|
|
779
|
+
}
|
|
780
|
+
Minimatch.prototype.debug = function() {
|
|
781
|
+
};
|
|
782
|
+
Minimatch.prototype.make = make;
|
|
783
|
+
function make() {
|
|
784
|
+
var pattern = this.pattern;
|
|
785
|
+
var options = this.options;
|
|
786
|
+
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
787
|
+
this.comment = true;
|
|
788
|
+
return;
|
|
789
|
+
}
|
|
790
|
+
if (!pattern) {
|
|
791
|
+
this.empty = true;
|
|
792
|
+
return;
|
|
793
|
+
}
|
|
794
|
+
this.parseNegate();
|
|
795
|
+
var set = this.globSet = this.braceExpand();
|
|
796
|
+
if (options.debug) this.debug = function debug() {
|
|
797
|
+
console.error.apply(console, arguments);
|
|
798
|
+
};
|
|
799
|
+
this.debug(this.pattern, set);
|
|
800
|
+
set = this.globParts = set.map(function(s) {
|
|
801
|
+
return s.split(slashSplit);
|
|
802
|
+
});
|
|
803
|
+
this.debug(this.pattern, set);
|
|
804
|
+
set = set.map(function(s, si, set2) {
|
|
805
|
+
return s.map(this.parse, this);
|
|
806
|
+
}, this);
|
|
807
|
+
this.debug(this.pattern, set);
|
|
808
|
+
set = set.filter(function(s) {
|
|
809
|
+
return s.indexOf(false) === -1;
|
|
810
|
+
});
|
|
811
|
+
this.debug(this.pattern, set);
|
|
812
|
+
this.set = set;
|
|
813
|
+
}
|
|
814
|
+
Minimatch.prototype.parseNegate = parseNegate;
|
|
815
|
+
function parseNegate() {
|
|
816
|
+
var pattern = this.pattern;
|
|
817
|
+
var negate = false;
|
|
818
|
+
var options = this.options;
|
|
819
|
+
var negateOffset = 0;
|
|
820
|
+
if (options.nonegate) return;
|
|
821
|
+
for (var i = 0, l = pattern.length; i < l && pattern.charAt(i) === "!"; i++) {
|
|
822
|
+
negate = !negate;
|
|
823
|
+
negateOffset++;
|
|
824
|
+
}
|
|
825
|
+
if (negateOffset) this.pattern = pattern.substr(negateOffset);
|
|
826
|
+
this.negate = negate;
|
|
827
|
+
}
|
|
828
|
+
minimatch.braceExpand = function(pattern, options) {
|
|
829
|
+
return braceExpand(pattern, options);
|
|
830
|
+
};
|
|
831
|
+
Minimatch.prototype.braceExpand = braceExpand;
|
|
832
|
+
function braceExpand(pattern, options) {
|
|
833
|
+
if (!options) {
|
|
834
|
+
if (this instanceof Minimatch) {
|
|
835
|
+
options = this.options;
|
|
836
|
+
} else {
|
|
837
|
+
options = {};
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
pattern = typeof pattern === "undefined" ? this.pattern : pattern;
|
|
841
|
+
assertValidPattern(pattern);
|
|
842
|
+
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
843
|
+
return [pattern];
|
|
844
|
+
}
|
|
845
|
+
return expand(pattern);
|
|
846
|
+
}
|
|
847
|
+
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
848
|
+
var assertValidPattern = function(pattern) {
|
|
849
|
+
if (typeof pattern !== "string") {
|
|
850
|
+
throw new TypeError("invalid pattern");
|
|
851
|
+
}
|
|
852
|
+
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
853
|
+
throw new TypeError("pattern is too long");
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
Minimatch.prototype.parse = parse;
|
|
857
|
+
var SUBPARSE = {};
|
|
858
|
+
function parse(pattern, isSub) {
|
|
859
|
+
assertValidPattern(pattern);
|
|
860
|
+
var options = this.options;
|
|
861
|
+
if (pattern === "**") {
|
|
862
|
+
if (!options.noglobstar)
|
|
863
|
+
return GLOBSTAR;
|
|
864
|
+
else
|
|
865
|
+
pattern = "*";
|
|
866
|
+
}
|
|
867
|
+
if (pattern === "") return "";
|
|
868
|
+
var re = "";
|
|
869
|
+
var hasMagic = !!options.nocase;
|
|
870
|
+
var escaping = false;
|
|
871
|
+
var patternListStack = [];
|
|
872
|
+
var negativeLists = [];
|
|
873
|
+
var stateChar;
|
|
874
|
+
var inClass = false;
|
|
875
|
+
var reClassStart = -1;
|
|
876
|
+
var classStart = -1;
|
|
877
|
+
var patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
878
|
+
var self = this;
|
|
879
|
+
function clearStateChar() {
|
|
880
|
+
if (stateChar) {
|
|
881
|
+
switch (stateChar) {
|
|
882
|
+
case "*":
|
|
883
|
+
re += star;
|
|
884
|
+
hasMagic = true;
|
|
885
|
+
break;
|
|
886
|
+
case "?":
|
|
887
|
+
re += qmark;
|
|
888
|
+
hasMagic = true;
|
|
889
|
+
break;
|
|
890
|
+
default:
|
|
891
|
+
re += "\\" + stateChar;
|
|
892
|
+
break;
|
|
893
|
+
}
|
|
894
|
+
self.debug("clearStateChar %j %j", stateChar, re);
|
|
895
|
+
stateChar = false;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
for (var i = 0, len = pattern.length, c; i < len && (c = pattern.charAt(i)); i++) {
|
|
899
|
+
this.debug("%s %s %s %j", pattern, i, re, c);
|
|
900
|
+
if (escaping && reSpecials[c]) {
|
|
901
|
+
re += "\\" + c;
|
|
902
|
+
escaping = false;
|
|
903
|
+
continue;
|
|
904
|
+
}
|
|
905
|
+
switch (c) {
|
|
906
|
+
case "/": {
|
|
907
|
+
return false;
|
|
908
|
+
}
|
|
909
|
+
case "\\":
|
|
910
|
+
clearStateChar();
|
|
911
|
+
escaping = true;
|
|
912
|
+
continue;
|
|
913
|
+
case "?":
|
|
914
|
+
case "*":
|
|
915
|
+
case "+":
|
|
916
|
+
case "@":
|
|
917
|
+
case "!":
|
|
918
|
+
this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c);
|
|
919
|
+
if (inClass) {
|
|
920
|
+
this.debug(" in class");
|
|
921
|
+
if (c === "!" && i === classStart + 1) c = "^";
|
|
922
|
+
re += c;
|
|
923
|
+
continue;
|
|
924
|
+
}
|
|
925
|
+
self.debug("call clearStateChar %j", stateChar);
|
|
926
|
+
clearStateChar();
|
|
927
|
+
stateChar = c;
|
|
928
|
+
if (options.noext) clearStateChar();
|
|
929
|
+
continue;
|
|
930
|
+
case "(":
|
|
931
|
+
if (inClass) {
|
|
932
|
+
re += "(";
|
|
933
|
+
continue;
|
|
934
|
+
}
|
|
935
|
+
if (!stateChar) {
|
|
936
|
+
re += "\\(";
|
|
937
|
+
continue;
|
|
938
|
+
}
|
|
939
|
+
patternListStack.push({
|
|
940
|
+
type: stateChar,
|
|
941
|
+
start: i - 1,
|
|
942
|
+
reStart: re.length,
|
|
943
|
+
open: plTypes[stateChar].open,
|
|
944
|
+
close: plTypes[stateChar].close
|
|
945
|
+
});
|
|
946
|
+
re += stateChar === "!" ? "(?:(?!(?:" : "(?:";
|
|
947
|
+
this.debug("plType %j %j", stateChar, re);
|
|
948
|
+
stateChar = false;
|
|
949
|
+
continue;
|
|
950
|
+
case ")":
|
|
951
|
+
if (inClass || !patternListStack.length) {
|
|
952
|
+
re += "\\)";
|
|
953
|
+
continue;
|
|
954
|
+
}
|
|
955
|
+
clearStateChar();
|
|
956
|
+
hasMagic = true;
|
|
957
|
+
var pl = patternListStack.pop();
|
|
958
|
+
re += pl.close;
|
|
959
|
+
if (pl.type === "!") {
|
|
960
|
+
negativeLists.push(pl);
|
|
961
|
+
}
|
|
962
|
+
pl.reEnd = re.length;
|
|
963
|
+
continue;
|
|
964
|
+
case "|":
|
|
965
|
+
if (inClass || !patternListStack.length || escaping) {
|
|
966
|
+
re += "\\|";
|
|
967
|
+
escaping = false;
|
|
968
|
+
continue;
|
|
969
|
+
}
|
|
970
|
+
clearStateChar();
|
|
971
|
+
re += "|";
|
|
972
|
+
continue;
|
|
973
|
+
case "[":
|
|
974
|
+
clearStateChar();
|
|
975
|
+
if (inClass) {
|
|
976
|
+
re += "\\" + c;
|
|
977
|
+
continue;
|
|
978
|
+
}
|
|
979
|
+
inClass = true;
|
|
980
|
+
classStart = i;
|
|
981
|
+
reClassStart = re.length;
|
|
982
|
+
re += c;
|
|
983
|
+
continue;
|
|
984
|
+
case "]":
|
|
985
|
+
if (i === classStart + 1 || !inClass) {
|
|
986
|
+
re += "\\" + c;
|
|
987
|
+
escaping = false;
|
|
988
|
+
continue;
|
|
989
|
+
}
|
|
990
|
+
var cs = pattern.substring(classStart + 1, i);
|
|
991
|
+
try {
|
|
992
|
+
RegExp("[" + cs + "]");
|
|
993
|
+
} catch (er) {
|
|
994
|
+
var sp = this.parse(cs, SUBPARSE);
|
|
995
|
+
re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
|
|
996
|
+
hasMagic = hasMagic || sp[1];
|
|
997
|
+
inClass = false;
|
|
998
|
+
continue;
|
|
999
|
+
}
|
|
1000
|
+
hasMagic = true;
|
|
1001
|
+
inClass = false;
|
|
1002
|
+
re += c;
|
|
1003
|
+
continue;
|
|
1004
|
+
default:
|
|
1005
|
+
clearStateChar();
|
|
1006
|
+
if (escaping) {
|
|
1007
|
+
escaping = false;
|
|
1008
|
+
} else if (reSpecials[c] && !(c === "^" && inClass)) {
|
|
1009
|
+
re += "\\";
|
|
1010
|
+
}
|
|
1011
|
+
re += c;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
if (inClass) {
|
|
1015
|
+
cs = pattern.substr(classStart + 1);
|
|
1016
|
+
sp = this.parse(cs, SUBPARSE);
|
|
1017
|
+
re = re.substr(0, reClassStart) + "\\[" + sp[0];
|
|
1018
|
+
hasMagic = hasMagic || sp[1];
|
|
1019
|
+
}
|
|
1020
|
+
for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
|
|
1021
|
+
var tail = re.slice(pl.reStart + pl.open.length);
|
|
1022
|
+
this.debug("setting tail", re, pl);
|
|
1023
|
+
tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(_, $1, $2) {
|
|
1024
|
+
if (!$2) {
|
|
1025
|
+
$2 = "\\";
|
|
1026
|
+
}
|
|
1027
|
+
return $1 + $1 + $2 + "|";
|
|
1028
|
+
});
|
|
1029
|
+
this.debug("tail=%j\n %s", tail, tail, pl, re);
|
|
1030
|
+
var t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type;
|
|
1031
|
+
hasMagic = true;
|
|
1032
|
+
re = re.slice(0, pl.reStart) + t + "\\(" + tail;
|
|
1033
|
+
}
|
|
1034
|
+
clearStateChar();
|
|
1035
|
+
if (escaping) {
|
|
1036
|
+
re += "\\\\";
|
|
1037
|
+
}
|
|
1038
|
+
var addPatternStart = false;
|
|
1039
|
+
switch (re.charAt(0)) {
|
|
1040
|
+
case "[":
|
|
1041
|
+
case ".":
|
|
1042
|
+
case "(":
|
|
1043
|
+
addPatternStart = true;
|
|
1044
|
+
}
|
|
1045
|
+
for (var n = negativeLists.length - 1; n > -1; n--) {
|
|
1046
|
+
var nl = negativeLists[n];
|
|
1047
|
+
var nlBefore = re.slice(0, nl.reStart);
|
|
1048
|
+
var nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
|
|
1049
|
+
var nlLast = re.slice(nl.reEnd - 8, nl.reEnd);
|
|
1050
|
+
var nlAfter = re.slice(nl.reEnd);
|
|
1051
|
+
nlLast += nlAfter;
|
|
1052
|
+
var openParensBefore = nlBefore.split("(").length - 1;
|
|
1053
|
+
var cleanAfter = nlAfter;
|
|
1054
|
+
for (i = 0; i < openParensBefore; i++) {
|
|
1055
|
+
cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
|
|
1056
|
+
}
|
|
1057
|
+
nlAfter = cleanAfter;
|
|
1058
|
+
var dollar = "";
|
|
1059
|
+
if (nlAfter === "" && isSub !== SUBPARSE) {
|
|
1060
|
+
dollar = "$";
|
|
1061
|
+
}
|
|
1062
|
+
var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast;
|
|
1063
|
+
re = newRe;
|
|
1064
|
+
}
|
|
1065
|
+
if (re !== "" && hasMagic) {
|
|
1066
|
+
re = "(?=.)" + re;
|
|
1067
|
+
}
|
|
1068
|
+
if (addPatternStart) {
|
|
1069
|
+
re = patternStart + re;
|
|
1070
|
+
}
|
|
1071
|
+
if (isSub === SUBPARSE) {
|
|
1072
|
+
return [re, hasMagic];
|
|
1073
|
+
}
|
|
1074
|
+
if (!hasMagic) {
|
|
1075
|
+
return globUnescape(pattern);
|
|
1076
|
+
}
|
|
1077
|
+
var flags = options.nocase ? "i" : "";
|
|
1078
|
+
try {
|
|
1079
|
+
var regExp = new RegExp("^" + re + "$", flags);
|
|
1080
|
+
} catch (er) {
|
|
1081
|
+
return new RegExp("$.");
|
|
1082
|
+
}
|
|
1083
|
+
regExp._glob = pattern;
|
|
1084
|
+
regExp._src = re;
|
|
1085
|
+
return regExp;
|
|
1086
|
+
}
|
|
1087
|
+
minimatch.makeRe = function(pattern, options) {
|
|
1088
|
+
return new Minimatch(pattern, options || {}).makeRe();
|
|
1089
|
+
};
|
|
1090
|
+
Minimatch.prototype.makeRe = makeRe;
|
|
1091
|
+
function makeRe() {
|
|
1092
|
+
if (this.regexp || this.regexp === false) return this.regexp;
|
|
1093
|
+
var set = this.set;
|
|
1094
|
+
if (!set.length) {
|
|
1095
|
+
this.regexp = false;
|
|
1096
|
+
return this.regexp;
|
|
1097
|
+
}
|
|
1098
|
+
var options = this.options;
|
|
1099
|
+
var twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
|
|
1100
|
+
var flags = options.nocase ? "i" : "";
|
|
1101
|
+
var re = set.map(function(pattern) {
|
|
1102
|
+
return pattern.map(function(p) {
|
|
1103
|
+
return p === GLOBSTAR ? twoStar : typeof p === "string" ? regExpEscape(p) : p._src;
|
|
1104
|
+
}).join("\\/");
|
|
1105
|
+
}).join("|");
|
|
1106
|
+
re = "^(?:" + re + ")$";
|
|
1107
|
+
if (this.negate) re = "^(?!" + re + ").*$";
|
|
1108
|
+
try {
|
|
1109
|
+
this.regexp = new RegExp(re, flags);
|
|
1110
|
+
} catch (ex) {
|
|
1111
|
+
this.regexp = false;
|
|
1112
|
+
}
|
|
1113
|
+
return this.regexp;
|
|
1114
|
+
}
|
|
1115
|
+
minimatch.match = function(list, pattern, options) {
|
|
1116
|
+
options = options || {};
|
|
1117
|
+
var mm = new Minimatch(pattern, options);
|
|
1118
|
+
list = list.filter(function(f) {
|
|
1119
|
+
return mm.match(f);
|
|
1120
|
+
});
|
|
1121
|
+
if (mm.options.nonull && !list.length) {
|
|
1122
|
+
list.push(pattern);
|
|
1123
|
+
}
|
|
1124
|
+
return list;
|
|
1125
|
+
};
|
|
1126
|
+
Minimatch.prototype.match = function match(f, partial) {
|
|
1127
|
+
if (typeof partial === "undefined") partial = this.partial;
|
|
1128
|
+
this.debug("match", f, this.pattern);
|
|
1129
|
+
if (this.comment) return false;
|
|
1130
|
+
if (this.empty) return f === "";
|
|
1131
|
+
if (f === "/" && partial) return true;
|
|
1132
|
+
var options = this.options;
|
|
1133
|
+
if (path.sep !== "/") {
|
|
1134
|
+
f = f.split(path.sep).join("/");
|
|
1135
|
+
}
|
|
1136
|
+
f = f.split(slashSplit);
|
|
1137
|
+
this.debug(this.pattern, "split", f);
|
|
1138
|
+
var set = this.set;
|
|
1139
|
+
this.debug(this.pattern, "set", set);
|
|
1140
|
+
var filename;
|
|
1141
|
+
var i;
|
|
1142
|
+
for (i = f.length - 1; i >= 0; i--) {
|
|
1143
|
+
filename = f[i];
|
|
1144
|
+
if (filename) break;
|
|
1145
|
+
}
|
|
1146
|
+
for (i = 0; i < set.length; i++) {
|
|
1147
|
+
var pattern = set[i];
|
|
1148
|
+
var file = f;
|
|
1149
|
+
if (options.matchBase && pattern.length === 1) {
|
|
1150
|
+
file = [filename];
|
|
1151
|
+
}
|
|
1152
|
+
var hit = this.matchOne(file, pattern, partial);
|
|
1153
|
+
if (hit) {
|
|
1154
|
+
if (options.flipNegate) return true;
|
|
1155
|
+
return !this.negate;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
if (options.flipNegate) return false;
|
|
1159
|
+
return this.negate;
|
|
1160
|
+
};
|
|
1161
|
+
Minimatch.prototype.matchOne = function(file, pattern, partial) {
|
|
1162
|
+
var options = this.options;
|
|
1163
|
+
this.debug(
|
|
1164
|
+
"matchOne",
|
|
1165
|
+
{ "this": this, file, pattern }
|
|
1166
|
+
);
|
|
1167
|
+
this.debug("matchOne", file.length, pattern.length);
|
|
1168
|
+
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
1169
|
+
this.debug("matchOne loop");
|
|
1170
|
+
var p = pattern[pi];
|
|
1171
|
+
var f = file[fi];
|
|
1172
|
+
this.debug(pattern, p, f);
|
|
1173
|
+
if (p === false) return false;
|
|
1174
|
+
if (p === GLOBSTAR) {
|
|
1175
|
+
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
1176
|
+
var fr = fi;
|
|
1177
|
+
var pr = pi + 1;
|
|
1178
|
+
if (pr === pl) {
|
|
1179
|
+
this.debug("** at the end");
|
|
1180
|
+
for (; fi < fl; fi++) {
|
|
1181
|
+
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") return false;
|
|
1182
|
+
}
|
|
1183
|
+
return true;
|
|
1184
|
+
}
|
|
1185
|
+
while (fr < fl) {
|
|
1186
|
+
var swallowee = file[fr];
|
|
1187
|
+
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
1188
|
+
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
1189
|
+
this.debug("globstar found match!", fr, fl, swallowee);
|
|
1190
|
+
return true;
|
|
1191
|
+
} else {
|
|
1192
|
+
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
1193
|
+
this.debug("dot detected!", file, fr, pattern, pr);
|
|
1194
|
+
break;
|
|
1195
|
+
}
|
|
1196
|
+
this.debug("globstar swallow a segment, and continue");
|
|
1197
|
+
fr++;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
if (partial) {
|
|
1201
|
+
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
1202
|
+
if (fr === fl) return true;
|
|
1203
|
+
}
|
|
1204
|
+
return false;
|
|
1205
|
+
}
|
|
1206
|
+
var hit;
|
|
1207
|
+
if (typeof p === "string") {
|
|
1208
|
+
hit = f === p;
|
|
1209
|
+
this.debug("string match", p, f, hit);
|
|
1210
|
+
} else {
|
|
1211
|
+
hit = f.match(p);
|
|
1212
|
+
this.debug("pattern match", p, f, hit);
|
|
1213
|
+
}
|
|
1214
|
+
if (!hit) return false;
|
|
1215
|
+
}
|
|
1216
|
+
if (fi === fl && pi === pl) {
|
|
1217
|
+
return true;
|
|
1218
|
+
} else if (fi === fl) {
|
|
1219
|
+
return partial;
|
|
1220
|
+
} else if (pi === pl) {
|
|
1221
|
+
return fi === fl - 1 && file[fi] === "";
|
|
1222
|
+
}
|
|
1223
|
+
throw new Error("wtf?");
|
|
1224
|
+
};
|
|
1225
|
+
function globUnescape(s) {
|
|
1226
|
+
return s.replace(/\\(.)/g, "$1");
|
|
1227
|
+
}
|
|
1228
|
+
function regExpEscape(s) {
|
|
1229
|
+
return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
});
|
|
1233
|
+
var require_inherits_browser = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1234
|
+
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports, module2) {
|
|
1235
|
+
"use strict";
|
|
1236
|
+
if (typeof Object.create === "function") {
|
|
1237
|
+
module2.exports = function inherits(ctor, superCtor) {
|
|
1238
|
+
if (superCtor) {
|
|
1239
|
+
ctor.super_ = superCtor;
|
|
1240
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
1241
|
+
constructor: {
|
|
1242
|
+
value: ctor,
|
|
1243
|
+
enumerable: false,
|
|
1244
|
+
writable: true,
|
|
1245
|
+
configurable: true
|
|
1246
|
+
}
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
};
|
|
1250
|
+
} else {
|
|
1251
|
+
module2.exports = function inherits(ctor, superCtor) {
|
|
1252
|
+
if (superCtor) {
|
|
1253
|
+
ctor.super_ = superCtor;
|
|
1254
|
+
var TempCtor = function() {
|
|
1255
|
+
};
|
|
1256
|
+
TempCtor.prototype = superCtor.prototype;
|
|
1257
|
+
ctor.prototype = new TempCtor();
|
|
1258
|
+
ctor.prototype.constructor = ctor;
|
|
1259
|
+
}
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
});
|
|
1264
|
+
var require_inherits = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1265
|
+
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports, module2) {
|
|
1266
|
+
"use strict";
|
|
1267
|
+
try {
|
|
1268
|
+
util = (0, import_chunk_AH6QHEOA.__require)("util");
|
|
1269
|
+
if (typeof util.inherits !== "function") throw "";
|
|
1270
|
+
module2.exports = util.inherits;
|
|
1271
|
+
} catch (e) {
|
|
1272
|
+
module2.exports = require_inherits_browser();
|
|
1273
|
+
}
|
|
1274
|
+
var util;
|
|
1275
|
+
}
|
|
1276
|
+
});
|
|
1277
|
+
var require_path_is_absolute = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1278
|
+
"../../node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports, module2) {
|
|
1279
|
+
"use strict";
|
|
1280
|
+
function posix(path) {
|
|
1281
|
+
return path.charAt(0) === "/";
|
|
1282
|
+
}
|
|
1283
|
+
function win32(path) {
|
|
1284
|
+
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
1285
|
+
var result = splitDeviceRe.exec(path);
|
|
1286
|
+
var device = result[1] || "";
|
|
1287
|
+
var isUnc = Boolean(device && device.charAt(1) !== ":");
|
|
1288
|
+
return Boolean(result[2] || isUnc);
|
|
1289
|
+
}
|
|
1290
|
+
module2.exports = process.platform === "win32" ? win32 : posix;
|
|
1291
|
+
module2.exports.posix = posix;
|
|
1292
|
+
module2.exports.win32 = win32;
|
|
1293
|
+
}
|
|
1294
|
+
});
|
|
1295
|
+
var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1296
|
+
"../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js"(exports) {
|
|
1297
|
+
"use strict";
|
|
1298
|
+
exports.setopts = setopts;
|
|
1299
|
+
exports.ownProp = ownProp;
|
|
1300
|
+
exports.makeAbs = makeAbs;
|
|
1301
|
+
exports.finish = finish;
|
|
1302
|
+
exports.mark = mark;
|
|
1303
|
+
exports.isIgnored = isIgnored;
|
|
1304
|
+
exports.childrenIgnored = childrenIgnored;
|
|
1305
|
+
function ownProp(obj, field) {
|
|
1306
|
+
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
1307
|
+
}
|
|
1308
|
+
var fs = (0, import_chunk_AH6QHEOA.__require)("fs");
|
|
1309
|
+
var path = (0, import_chunk_AH6QHEOA.__require)("path");
|
|
1310
|
+
var minimatch = require_minimatch();
|
|
1311
|
+
var isAbsolute = require_path_is_absolute();
|
|
1312
|
+
var Minimatch = minimatch.Minimatch;
|
|
1313
|
+
function alphasort(a, b) {
|
|
1314
|
+
return a.localeCompare(b, "en");
|
|
1315
|
+
}
|
|
1316
|
+
function setupIgnores(self, options) {
|
|
1317
|
+
self.ignore = options.ignore || [];
|
|
1318
|
+
if (!Array.isArray(self.ignore))
|
|
1319
|
+
self.ignore = [self.ignore];
|
|
1320
|
+
if (self.ignore.length) {
|
|
1321
|
+
self.ignore = self.ignore.map(ignoreMap);
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
function ignoreMap(pattern) {
|
|
1325
|
+
var gmatcher = null;
|
|
1326
|
+
if (pattern.slice(-3) === "/**") {
|
|
1327
|
+
var gpattern = pattern.replace(/(\/\*\*)+$/, "");
|
|
1328
|
+
gmatcher = new Minimatch(gpattern, { dot: true });
|
|
1329
|
+
}
|
|
1330
|
+
return {
|
|
1331
|
+
matcher: new Minimatch(pattern, { dot: true }),
|
|
1332
|
+
gmatcher
|
|
1333
|
+
};
|
|
1334
|
+
}
|
|
1335
|
+
function setopts(self, pattern, options) {
|
|
1336
|
+
if (!options)
|
|
1337
|
+
options = {};
|
|
1338
|
+
if (options.matchBase && -1 === pattern.indexOf("/")) {
|
|
1339
|
+
if (options.noglobstar) {
|
|
1340
|
+
throw new Error("base matching requires globstar");
|
|
1341
|
+
}
|
|
1342
|
+
pattern = "**/" + pattern;
|
|
1343
|
+
}
|
|
1344
|
+
self.silent = !!options.silent;
|
|
1345
|
+
self.pattern = pattern;
|
|
1346
|
+
self.strict = options.strict !== false;
|
|
1347
|
+
self.realpath = !!options.realpath;
|
|
1348
|
+
self.realpathCache = options.realpathCache || /* @__PURE__ */ Object.create(null);
|
|
1349
|
+
self.follow = !!options.follow;
|
|
1350
|
+
self.dot = !!options.dot;
|
|
1351
|
+
self.mark = !!options.mark;
|
|
1352
|
+
self.nodir = !!options.nodir;
|
|
1353
|
+
if (self.nodir)
|
|
1354
|
+
self.mark = true;
|
|
1355
|
+
self.sync = !!options.sync;
|
|
1356
|
+
self.nounique = !!options.nounique;
|
|
1357
|
+
self.nonull = !!options.nonull;
|
|
1358
|
+
self.nosort = !!options.nosort;
|
|
1359
|
+
self.nocase = !!options.nocase;
|
|
1360
|
+
self.stat = !!options.stat;
|
|
1361
|
+
self.noprocess = !!options.noprocess;
|
|
1362
|
+
self.absolute = !!options.absolute;
|
|
1363
|
+
self.fs = options.fs || fs;
|
|
1364
|
+
self.maxLength = options.maxLength || Infinity;
|
|
1365
|
+
self.cache = options.cache || /* @__PURE__ */ Object.create(null);
|
|
1366
|
+
self.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
|
|
1367
|
+
self.symlinks = options.symlinks || /* @__PURE__ */ Object.create(null);
|
|
1368
|
+
setupIgnores(self, options);
|
|
1369
|
+
self.changedCwd = false;
|
|
1370
|
+
var cwd = process.cwd();
|
|
1371
|
+
if (!ownProp(options, "cwd"))
|
|
1372
|
+
self.cwd = cwd;
|
|
1373
|
+
else {
|
|
1374
|
+
self.cwd = path.resolve(options.cwd);
|
|
1375
|
+
self.changedCwd = self.cwd !== cwd;
|
|
1376
|
+
}
|
|
1377
|
+
self.root = options.root || path.resolve(self.cwd, "/");
|
|
1378
|
+
self.root = path.resolve(self.root);
|
|
1379
|
+
if (process.platform === "win32")
|
|
1380
|
+
self.root = self.root.replace(/\\/g, "/");
|
|
1381
|
+
self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
|
|
1382
|
+
if (process.platform === "win32")
|
|
1383
|
+
self.cwdAbs = self.cwdAbs.replace(/\\/g, "/");
|
|
1384
|
+
self.nomount = !!options.nomount;
|
|
1385
|
+
options.nonegate = true;
|
|
1386
|
+
options.nocomment = true;
|
|
1387
|
+
options.allowWindowsEscape = false;
|
|
1388
|
+
self.minimatch = new Minimatch(pattern, options);
|
|
1389
|
+
self.options = self.minimatch.options;
|
|
1390
|
+
}
|
|
1391
|
+
function finish(self) {
|
|
1392
|
+
var nou = self.nounique;
|
|
1393
|
+
var all = nou ? [] : /* @__PURE__ */ Object.create(null);
|
|
1394
|
+
for (var i = 0, l = self.matches.length; i < l; i++) {
|
|
1395
|
+
var matches = self.matches[i];
|
|
1396
|
+
if (!matches || Object.keys(matches).length === 0) {
|
|
1397
|
+
if (self.nonull) {
|
|
1398
|
+
var literal = self.minimatch.globSet[i];
|
|
1399
|
+
if (nou)
|
|
1400
|
+
all.push(literal);
|
|
1401
|
+
else
|
|
1402
|
+
all[literal] = true;
|
|
1403
|
+
}
|
|
1404
|
+
} else {
|
|
1405
|
+
var m = Object.keys(matches);
|
|
1406
|
+
if (nou)
|
|
1407
|
+
all.push.apply(all, m);
|
|
1408
|
+
else
|
|
1409
|
+
m.forEach(function(m2) {
|
|
1410
|
+
all[m2] = true;
|
|
1411
|
+
});
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
if (!nou)
|
|
1415
|
+
all = Object.keys(all);
|
|
1416
|
+
if (!self.nosort)
|
|
1417
|
+
all = all.sort(alphasort);
|
|
1418
|
+
if (self.mark) {
|
|
1419
|
+
for (var i = 0; i < all.length; i++) {
|
|
1420
|
+
all[i] = self._mark(all[i]);
|
|
1421
|
+
}
|
|
1422
|
+
if (self.nodir) {
|
|
1423
|
+
all = all.filter(function(e) {
|
|
1424
|
+
var notDir = !/\/$/.test(e);
|
|
1425
|
+
var c = self.cache[e] || self.cache[makeAbs(self, e)];
|
|
1426
|
+
if (notDir && c)
|
|
1427
|
+
notDir = c !== "DIR" && !Array.isArray(c);
|
|
1428
|
+
return notDir;
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
if (self.ignore.length)
|
|
1433
|
+
all = all.filter(function(m2) {
|
|
1434
|
+
return !isIgnored(self, m2);
|
|
1435
|
+
});
|
|
1436
|
+
self.found = all;
|
|
1437
|
+
}
|
|
1438
|
+
function mark(self, p) {
|
|
1439
|
+
var abs = makeAbs(self, p);
|
|
1440
|
+
var c = self.cache[abs];
|
|
1441
|
+
var m = p;
|
|
1442
|
+
if (c) {
|
|
1443
|
+
var isDir = c === "DIR" || Array.isArray(c);
|
|
1444
|
+
var slash = p.slice(-1) === "/";
|
|
1445
|
+
if (isDir && !slash)
|
|
1446
|
+
m += "/";
|
|
1447
|
+
else if (!isDir && slash)
|
|
1448
|
+
m = m.slice(0, -1);
|
|
1449
|
+
if (m !== p) {
|
|
1450
|
+
var mabs = makeAbs(self, m);
|
|
1451
|
+
self.statCache[mabs] = self.statCache[abs];
|
|
1452
|
+
self.cache[mabs] = self.cache[abs];
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
return m;
|
|
1456
|
+
}
|
|
1457
|
+
function makeAbs(self, f) {
|
|
1458
|
+
var abs = f;
|
|
1459
|
+
if (f.charAt(0) === "/") {
|
|
1460
|
+
abs = path.join(self.root, f);
|
|
1461
|
+
} else if (isAbsolute(f) || f === "") {
|
|
1462
|
+
abs = f;
|
|
1463
|
+
} else if (self.changedCwd) {
|
|
1464
|
+
abs = path.resolve(self.cwd, f);
|
|
1465
|
+
} else {
|
|
1466
|
+
abs = path.resolve(f);
|
|
1467
|
+
}
|
|
1468
|
+
if (process.platform === "win32")
|
|
1469
|
+
abs = abs.replace(/\\/g, "/");
|
|
1470
|
+
return abs;
|
|
1471
|
+
}
|
|
1472
|
+
function isIgnored(self, path2) {
|
|
1473
|
+
if (!self.ignore.length)
|
|
1474
|
+
return false;
|
|
1475
|
+
return self.ignore.some(function(item) {
|
|
1476
|
+
return item.matcher.match(path2) || !!(item.gmatcher && item.gmatcher.match(path2));
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1479
|
+
function childrenIgnored(self, path2) {
|
|
1480
|
+
if (!self.ignore.length)
|
|
1481
|
+
return false;
|
|
1482
|
+
return self.ignore.some(function(item) {
|
|
1483
|
+
return !!(item.gmatcher && item.gmatcher.match(path2));
|
|
1484
|
+
});
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
});
|
|
1488
|
+
var require_sync = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1489
|
+
"../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js"(exports, module2) {
|
|
1490
|
+
"use strict";
|
|
1491
|
+
module2.exports = globSync;
|
|
1492
|
+
globSync.GlobSync = GlobSync;
|
|
1493
|
+
var rp = require_fs();
|
|
1494
|
+
var minimatch = require_minimatch();
|
|
1495
|
+
var Minimatch = minimatch.Minimatch;
|
|
1496
|
+
var Glob = require_glob().Glob;
|
|
1497
|
+
var util = (0, import_chunk_AH6QHEOA.__require)("util");
|
|
1498
|
+
var path = (0, import_chunk_AH6QHEOA.__require)("path");
|
|
1499
|
+
var assert = (0, import_chunk_AH6QHEOA.__require)("assert");
|
|
1500
|
+
var isAbsolute = require_path_is_absolute();
|
|
1501
|
+
var common = require_common();
|
|
1502
|
+
var setopts = common.setopts;
|
|
1503
|
+
var ownProp = common.ownProp;
|
|
1504
|
+
var childrenIgnored = common.childrenIgnored;
|
|
1505
|
+
var isIgnored = common.isIgnored;
|
|
1506
|
+
function globSync(pattern, options) {
|
|
1507
|
+
if (typeof options === "function" || arguments.length === 3)
|
|
1508
|
+
throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");
|
|
1509
|
+
return new GlobSync(pattern, options).found;
|
|
1510
|
+
}
|
|
1511
|
+
function GlobSync(pattern, options) {
|
|
1512
|
+
if (!pattern)
|
|
1513
|
+
throw new Error("must provide pattern");
|
|
1514
|
+
if (typeof options === "function" || arguments.length === 3)
|
|
1515
|
+
throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");
|
|
1516
|
+
if (!(this instanceof GlobSync))
|
|
1517
|
+
return new GlobSync(pattern, options);
|
|
1518
|
+
setopts(this, pattern, options);
|
|
1519
|
+
if (this.noprocess)
|
|
1520
|
+
return this;
|
|
1521
|
+
var n = this.minimatch.set.length;
|
|
1522
|
+
this.matches = new Array(n);
|
|
1523
|
+
for (var i = 0; i < n; i++) {
|
|
1524
|
+
this._process(this.minimatch.set[i], i, false);
|
|
1525
|
+
}
|
|
1526
|
+
this._finish();
|
|
1527
|
+
}
|
|
1528
|
+
GlobSync.prototype._finish = function() {
|
|
1529
|
+
assert.ok(this instanceof GlobSync);
|
|
1530
|
+
if (this.realpath) {
|
|
1531
|
+
var self = this;
|
|
1532
|
+
this.matches.forEach(function(matchset, index) {
|
|
1533
|
+
var set = self.matches[index] = /* @__PURE__ */ Object.create(null);
|
|
1534
|
+
for (var p in matchset) {
|
|
1535
|
+
try {
|
|
1536
|
+
p = self._makeAbs(p);
|
|
1537
|
+
var real = rp.realpathSync(p, self.realpathCache);
|
|
1538
|
+
set[real] = true;
|
|
1539
|
+
} catch (er) {
|
|
1540
|
+
if (er.syscall === "stat")
|
|
1541
|
+
set[self._makeAbs(p)] = true;
|
|
1542
|
+
else
|
|
1543
|
+
throw er;
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1548
|
+
common.finish(this);
|
|
1549
|
+
};
|
|
1550
|
+
GlobSync.prototype._process = function(pattern, index, inGlobStar) {
|
|
1551
|
+
assert.ok(this instanceof GlobSync);
|
|
1552
|
+
var n = 0;
|
|
1553
|
+
while (typeof pattern[n] === "string") {
|
|
1554
|
+
n++;
|
|
1555
|
+
}
|
|
1556
|
+
var prefix;
|
|
1557
|
+
switch (n) {
|
|
1558
|
+
case pattern.length:
|
|
1559
|
+
this._processSimple(pattern.join("/"), index);
|
|
1560
|
+
return;
|
|
1561
|
+
case 0:
|
|
1562
|
+
prefix = null;
|
|
1563
|
+
break;
|
|
1564
|
+
default:
|
|
1565
|
+
prefix = pattern.slice(0, n).join("/");
|
|
1566
|
+
break;
|
|
1567
|
+
}
|
|
1568
|
+
var remain = pattern.slice(n);
|
|
1569
|
+
var read;
|
|
1570
|
+
if (prefix === null)
|
|
1571
|
+
read = ".";
|
|
1572
|
+
else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p) {
|
|
1573
|
+
return typeof p === "string" ? p : "[*]";
|
|
1574
|
+
}).join("/"))) {
|
|
1575
|
+
if (!prefix || !isAbsolute(prefix))
|
|
1576
|
+
prefix = "/" + prefix;
|
|
1577
|
+
read = prefix;
|
|
1578
|
+
} else
|
|
1579
|
+
read = prefix;
|
|
1580
|
+
var abs = this._makeAbs(read);
|
|
1581
|
+
if (childrenIgnored(this, read))
|
|
1582
|
+
return;
|
|
1583
|
+
var isGlobStar = remain[0] === minimatch.GLOBSTAR;
|
|
1584
|
+
if (isGlobStar)
|
|
1585
|
+
this._processGlobStar(prefix, read, abs, remain, index, inGlobStar);
|
|
1586
|
+
else
|
|
1587
|
+
this._processReaddir(prefix, read, abs, remain, index, inGlobStar);
|
|
1588
|
+
};
|
|
1589
|
+
GlobSync.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar) {
|
|
1590
|
+
var entries = this._readdir(abs, inGlobStar);
|
|
1591
|
+
if (!entries)
|
|
1592
|
+
return;
|
|
1593
|
+
var pn = remain[0];
|
|
1594
|
+
var negate = !!this.minimatch.negate;
|
|
1595
|
+
var rawGlob = pn._glob;
|
|
1596
|
+
var dotOk = this.dot || rawGlob.charAt(0) === ".";
|
|
1597
|
+
var matchedEntries = [];
|
|
1598
|
+
for (var i = 0; i < entries.length; i++) {
|
|
1599
|
+
var e = entries[i];
|
|
1600
|
+
if (e.charAt(0) !== "." || dotOk) {
|
|
1601
|
+
var m;
|
|
1602
|
+
if (negate && !prefix) {
|
|
1603
|
+
m = !e.match(pn);
|
|
1604
|
+
} else {
|
|
1605
|
+
m = e.match(pn);
|
|
1606
|
+
}
|
|
1607
|
+
if (m)
|
|
1608
|
+
matchedEntries.push(e);
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
var len = matchedEntries.length;
|
|
1612
|
+
if (len === 0)
|
|
1613
|
+
return;
|
|
1614
|
+
if (remain.length === 1 && !this.mark && !this.stat) {
|
|
1615
|
+
if (!this.matches[index])
|
|
1616
|
+
this.matches[index] = /* @__PURE__ */ Object.create(null);
|
|
1617
|
+
for (var i = 0; i < len; i++) {
|
|
1618
|
+
var e = matchedEntries[i];
|
|
1619
|
+
if (prefix) {
|
|
1620
|
+
if (prefix.slice(-1) !== "/")
|
|
1621
|
+
e = prefix + "/" + e;
|
|
1622
|
+
else
|
|
1623
|
+
e = prefix + e;
|
|
1624
|
+
}
|
|
1625
|
+
if (e.charAt(0) === "/" && !this.nomount) {
|
|
1626
|
+
e = path.join(this.root, e);
|
|
1627
|
+
}
|
|
1628
|
+
this._emitMatch(index, e);
|
|
1629
|
+
}
|
|
1630
|
+
return;
|
|
1631
|
+
}
|
|
1632
|
+
remain.shift();
|
|
1633
|
+
for (var i = 0; i < len; i++) {
|
|
1634
|
+
var e = matchedEntries[i];
|
|
1635
|
+
var newPattern;
|
|
1636
|
+
if (prefix)
|
|
1637
|
+
newPattern = [prefix, e];
|
|
1638
|
+
else
|
|
1639
|
+
newPattern = [e];
|
|
1640
|
+
this._process(newPattern.concat(remain), index, inGlobStar);
|
|
1641
|
+
}
|
|
1642
|
+
};
|
|
1643
|
+
GlobSync.prototype._emitMatch = function(index, e) {
|
|
1644
|
+
if (isIgnored(this, e))
|
|
1645
|
+
return;
|
|
1646
|
+
var abs = this._makeAbs(e);
|
|
1647
|
+
if (this.mark)
|
|
1648
|
+
e = this._mark(e);
|
|
1649
|
+
if (this.absolute) {
|
|
1650
|
+
e = abs;
|
|
1651
|
+
}
|
|
1652
|
+
if (this.matches[index][e])
|
|
1653
|
+
return;
|
|
1654
|
+
if (this.nodir) {
|
|
1655
|
+
var c = this.cache[abs];
|
|
1656
|
+
if (c === "DIR" || Array.isArray(c))
|
|
1657
|
+
return;
|
|
1658
|
+
}
|
|
1659
|
+
this.matches[index][e] = true;
|
|
1660
|
+
if (this.stat)
|
|
1661
|
+
this._stat(e);
|
|
1662
|
+
};
|
|
1663
|
+
GlobSync.prototype._readdirInGlobStar = function(abs) {
|
|
1664
|
+
if (this.follow)
|
|
1665
|
+
return this._readdir(abs, false);
|
|
1666
|
+
var entries;
|
|
1667
|
+
var lstat;
|
|
1668
|
+
var stat;
|
|
1669
|
+
try {
|
|
1670
|
+
lstat = this.fs.lstatSync(abs);
|
|
1671
|
+
} catch (er) {
|
|
1672
|
+
if (er.code === "ENOENT") {
|
|
1673
|
+
return null;
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
var isSym = lstat && lstat.isSymbolicLink();
|
|
1677
|
+
this.symlinks[abs] = isSym;
|
|
1678
|
+
if (!isSym && lstat && !lstat.isDirectory())
|
|
1679
|
+
this.cache[abs] = "FILE";
|
|
1680
|
+
else
|
|
1681
|
+
entries = this._readdir(abs, false);
|
|
1682
|
+
return entries;
|
|
1683
|
+
};
|
|
1684
|
+
GlobSync.prototype._readdir = function(abs, inGlobStar) {
|
|
1685
|
+
var entries;
|
|
1686
|
+
if (inGlobStar && !ownProp(this.symlinks, abs))
|
|
1687
|
+
return this._readdirInGlobStar(abs);
|
|
1688
|
+
if (ownProp(this.cache, abs)) {
|
|
1689
|
+
var c = this.cache[abs];
|
|
1690
|
+
if (!c || c === "FILE")
|
|
1691
|
+
return null;
|
|
1692
|
+
if (Array.isArray(c))
|
|
1693
|
+
return c;
|
|
1694
|
+
}
|
|
1695
|
+
try {
|
|
1696
|
+
return this._readdirEntries(abs, this.fs.readdirSync(abs));
|
|
1697
|
+
} catch (er) {
|
|
1698
|
+
this._readdirError(abs, er);
|
|
1699
|
+
return null;
|
|
1700
|
+
}
|
|
1701
|
+
};
|
|
1702
|
+
GlobSync.prototype._readdirEntries = function(abs, entries) {
|
|
1703
|
+
if (!this.mark && !this.stat) {
|
|
1704
|
+
for (var i = 0; i < entries.length; i++) {
|
|
1705
|
+
var e = entries[i];
|
|
1706
|
+
if (abs === "/")
|
|
1707
|
+
e = abs + e;
|
|
1708
|
+
else
|
|
1709
|
+
e = abs + "/" + e;
|
|
1710
|
+
this.cache[e] = true;
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
this.cache[abs] = entries;
|
|
1714
|
+
return entries;
|
|
1715
|
+
};
|
|
1716
|
+
GlobSync.prototype._readdirError = function(f, er) {
|
|
1717
|
+
switch (er.code) {
|
|
1718
|
+
case "ENOTSUP":
|
|
1719
|
+
case "ENOTDIR":
|
|
1720
|
+
var abs = this._makeAbs(f);
|
|
1721
|
+
this.cache[abs] = "FILE";
|
|
1722
|
+
if (abs === this.cwdAbs) {
|
|
1723
|
+
var error = new Error(er.code + " invalid cwd " + this.cwd);
|
|
1724
|
+
error.path = this.cwd;
|
|
1725
|
+
error.code = er.code;
|
|
1726
|
+
throw error;
|
|
1727
|
+
}
|
|
1728
|
+
break;
|
|
1729
|
+
case "ENOENT":
|
|
1730
|
+
case "ELOOP":
|
|
1731
|
+
case "ENAMETOOLONG":
|
|
1732
|
+
case "UNKNOWN":
|
|
1733
|
+
this.cache[this._makeAbs(f)] = false;
|
|
1734
|
+
break;
|
|
1735
|
+
default:
|
|
1736
|
+
this.cache[this._makeAbs(f)] = false;
|
|
1737
|
+
if (this.strict)
|
|
1738
|
+
throw er;
|
|
1739
|
+
if (!this.silent)
|
|
1740
|
+
console.error("glob error", er);
|
|
1741
|
+
break;
|
|
1742
|
+
}
|
|
1743
|
+
};
|
|
1744
|
+
GlobSync.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar) {
|
|
1745
|
+
var entries = this._readdir(abs, inGlobStar);
|
|
1746
|
+
if (!entries)
|
|
1747
|
+
return;
|
|
1748
|
+
var remainWithoutGlobStar = remain.slice(1);
|
|
1749
|
+
var gspref = prefix ? [prefix] : [];
|
|
1750
|
+
var noGlobStar = gspref.concat(remainWithoutGlobStar);
|
|
1751
|
+
this._process(noGlobStar, index, false);
|
|
1752
|
+
var len = entries.length;
|
|
1753
|
+
var isSym = this.symlinks[abs];
|
|
1754
|
+
if (isSym && inGlobStar)
|
|
1755
|
+
return;
|
|
1756
|
+
for (var i = 0; i < len; i++) {
|
|
1757
|
+
var e = entries[i];
|
|
1758
|
+
if (e.charAt(0) === "." && !this.dot)
|
|
1759
|
+
continue;
|
|
1760
|
+
var instead = gspref.concat(entries[i], remainWithoutGlobStar);
|
|
1761
|
+
this._process(instead, index, true);
|
|
1762
|
+
var below = gspref.concat(entries[i], remain);
|
|
1763
|
+
this._process(below, index, true);
|
|
1764
|
+
}
|
|
1765
|
+
};
|
|
1766
|
+
GlobSync.prototype._processSimple = function(prefix, index) {
|
|
1767
|
+
var exists = this._stat(prefix);
|
|
1768
|
+
if (!this.matches[index])
|
|
1769
|
+
this.matches[index] = /* @__PURE__ */ Object.create(null);
|
|
1770
|
+
if (!exists)
|
|
1771
|
+
return;
|
|
1772
|
+
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
1773
|
+
var trail = /[\/\\]$/.test(prefix);
|
|
1774
|
+
if (prefix.charAt(0) === "/") {
|
|
1775
|
+
prefix = path.join(this.root, prefix);
|
|
1776
|
+
} else {
|
|
1777
|
+
prefix = path.resolve(this.root, prefix);
|
|
1778
|
+
if (trail)
|
|
1779
|
+
prefix += "/";
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
if (process.platform === "win32")
|
|
1783
|
+
prefix = prefix.replace(/\\/g, "/");
|
|
1784
|
+
this._emitMatch(index, prefix);
|
|
1785
|
+
};
|
|
1786
|
+
GlobSync.prototype._stat = function(f) {
|
|
1787
|
+
var abs = this._makeAbs(f);
|
|
1788
|
+
var needDir = f.slice(-1) === "/";
|
|
1789
|
+
if (f.length > this.maxLength)
|
|
1790
|
+
return false;
|
|
1791
|
+
if (!this.stat && ownProp(this.cache, abs)) {
|
|
1792
|
+
var c = this.cache[abs];
|
|
1793
|
+
if (Array.isArray(c))
|
|
1794
|
+
c = "DIR";
|
|
1795
|
+
if (!needDir || c === "DIR")
|
|
1796
|
+
return c;
|
|
1797
|
+
if (needDir && c === "FILE")
|
|
1798
|
+
return false;
|
|
1799
|
+
}
|
|
1800
|
+
var exists;
|
|
1801
|
+
var stat = this.statCache[abs];
|
|
1802
|
+
if (!stat) {
|
|
1803
|
+
var lstat;
|
|
1804
|
+
try {
|
|
1805
|
+
lstat = this.fs.lstatSync(abs);
|
|
1806
|
+
} catch (er) {
|
|
1807
|
+
if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) {
|
|
1808
|
+
this.statCache[abs] = false;
|
|
1809
|
+
return false;
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
if (lstat && lstat.isSymbolicLink()) {
|
|
1813
|
+
try {
|
|
1814
|
+
stat = this.fs.statSync(abs);
|
|
1815
|
+
} catch (er) {
|
|
1816
|
+
stat = lstat;
|
|
1817
|
+
}
|
|
1818
|
+
} else {
|
|
1819
|
+
stat = lstat;
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
this.statCache[abs] = stat;
|
|
1823
|
+
var c = true;
|
|
1824
|
+
if (stat)
|
|
1825
|
+
c = stat.isDirectory() ? "DIR" : "FILE";
|
|
1826
|
+
this.cache[abs] = this.cache[abs] || c;
|
|
1827
|
+
if (needDir && c === "FILE")
|
|
1828
|
+
return false;
|
|
1829
|
+
return c;
|
|
1830
|
+
};
|
|
1831
|
+
GlobSync.prototype._mark = function(p) {
|
|
1832
|
+
return common.mark(this, p);
|
|
1833
|
+
};
|
|
1834
|
+
GlobSync.prototype._makeAbs = function(f) {
|
|
1835
|
+
return common.makeAbs(this, f);
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
});
|
|
1839
|
+
var require_wrappy = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1840
|
+
"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(exports, module2) {
|
|
1841
|
+
"use strict";
|
|
1842
|
+
module2.exports = wrappy;
|
|
1843
|
+
function wrappy(fn, cb) {
|
|
1844
|
+
if (fn && cb) return wrappy(fn)(cb);
|
|
1845
|
+
if (typeof fn !== "function")
|
|
1846
|
+
throw new TypeError("need wrapper function");
|
|
1847
|
+
Object.keys(fn).forEach(function(k) {
|
|
1848
|
+
wrapper[k] = fn[k];
|
|
1849
|
+
});
|
|
1850
|
+
return wrapper;
|
|
1851
|
+
function wrapper() {
|
|
1852
|
+
var args = new Array(arguments.length);
|
|
1853
|
+
for (var i = 0; i < args.length; i++) {
|
|
1854
|
+
args[i] = arguments[i];
|
|
1855
|
+
}
|
|
1856
|
+
var ret = fn.apply(this, args);
|
|
1857
|
+
var cb2 = args[args.length - 1];
|
|
1858
|
+
if (typeof ret === "function" && ret !== cb2) {
|
|
1859
|
+
Object.keys(cb2).forEach(function(k) {
|
|
1860
|
+
ret[k] = cb2[k];
|
|
1861
|
+
});
|
|
1862
|
+
}
|
|
1863
|
+
return ret;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1868
|
+
var require_once = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1869
|
+
"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(exports, module2) {
|
|
1870
|
+
"use strict";
|
|
1871
|
+
var wrappy = require_wrappy();
|
|
1872
|
+
module2.exports = wrappy(once);
|
|
1873
|
+
module2.exports.strict = wrappy(onceStrict);
|
|
1874
|
+
once.proto = once(function() {
|
|
1875
|
+
Object.defineProperty(Function.prototype, "once", {
|
|
1876
|
+
value: function() {
|
|
1877
|
+
return once(this);
|
|
1878
|
+
},
|
|
1879
|
+
configurable: true
|
|
1880
|
+
});
|
|
1881
|
+
Object.defineProperty(Function.prototype, "onceStrict", {
|
|
1882
|
+
value: function() {
|
|
1883
|
+
return onceStrict(this);
|
|
1884
|
+
},
|
|
1885
|
+
configurable: true
|
|
1886
|
+
});
|
|
1887
|
+
});
|
|
1888
|
+
function once(fn) {
|
|
1889
|
+
var f = function() {
|
|
1890
|
+
if (f.called) return f.value;
|
|
1891
|
+
f.called = true;
|
|
1892
|
+
return f.value = fn.apply(this, arguments);
|
|
1893
|
+
};
|
|
1894
|
+
f.called = false;
|
|
1895
|
+
return f;
|
|
1896
|
+
}
|
|
1897
|
+
function onceStrict(fn) {
|
|
1898
|
+
var f = function() {
|
|
1899
|
+
if (f.called)
|
|
1900
|
+
throw new Error(f.onceError);
|
|
1901
|
+
f.called = true;
|
|
1902
|
+
return f.value = fn.apply(this, arguments);
|
|
1903
|
+
};
|
|
1904
|
+
var name = fn.name || "Function wrapped with `once`";
|
|
1905
|
+
f.onceError = name + " shouldn't be called more than once";
|
|
1906
|
+
f.called = false;
|
|
1907
|
+
return f;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
});
|
|
1911
|
+
var require_inflight = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1912
|
+
"../../node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js"(exports, module2) {
|
|
1913
|
+
"use strict";
|
|
1914
|
+
var wrappy = require_wrappy();
|
|
1915
|
+
var reqs = /* @__PURE__ */ Object.create(null);
|
|
1916
|
+
var once = require_once();
|
|
1917
|
+
module2.exports = wrappy(inflight);
|
|
1918
|
+
function inflight(key, cb) {
|
|
1919
|
+
if (reqs[key]) {
|
|
1920
|
+
reqs[key].push(cb);
|
|
1921
|
+
return null;
|
|
1922
|
+
} else {
|
|
1923
|
+
reqs[key] = [cb];
|
|
1924
|
+
return makeres(key);
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
function makeres(key) {
|
|
1928
|
+
return once(function RES() {
|
|
1929
|
+
var cbs = reqs[key];
|
|
1930
|
+
var len = cbs.length;
|
|
1931
|
+
var args = slice(arguments);
|
|
1932
|
+
try {
|
|
1933
|
+
for (var i = 0; i < len; i++) {
|
|
1934
|
+
cbs[i].apply(null, args);
|
|
1935
|
+
}
|
|
1936
|
+
} finally {
|
|
1937
|
+
if (cbs.length > len) {
|
|
1938
|
+
cbs.splice(0, len);
|
|
1939
|
+
process.nextTick(function() {
|
|
1940
|
+
RES.apply(null, args);
|
|
1941
|
+
});
|
|
1942
|
+
} else {
|
|
1943
|
+
delete reqs[key];
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
});
|
|
1947
|
+
}
|
|
1948
|
+
function slice(args) {
|
|
1949
|
+
var length = args.length;
|
|
1950
|
+
var array = [];
|
|
1951
|
+
for (var i = 0; i < length; i++) array[i] = args[i];
|
|
1952
|
+
return array;
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
});
|
|
1956
|
+
var require_glob = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1957
|
+
"../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js"(exports, module2) {
|
|
1958
|
+
"use strict";
|
|
1959
|
+
module2.exports = glob;
|
|
1960
|
+
var rp = require_fs();
|
|
1961
|
+
var minimatch = require_minimatch();
|
|
1962
|
+
var Minimatch = minimatch.Minimatch;
|
|
1963
|
+
var inherits = require_inherits();
|
|
1964
|
+
var EE = (0, import_chunk_AH6QHEOA.__require)("events").EventEmitter;
|
|
1965
|
+
var path = (0, import_chunk_AH6QHEOA.__require)("path");
|
|
1966
|
+
var assert = (0, import_chunk_AH6QHEOA.__require)("assert");
|
|
1967
|
+
var isAbsolute = require_path_is_absolute();
|
|
1968
|
+
var globSync = require_sync();
|
|
1969
|
+
var common = require_common();
|
|
1970
|
+
var setopts = common.setopts;
|
|
1971
|
+
var ownProp = common.ownProp;
|
|
1972
|
+
var inflight = require_inflight();
|
|
1973
|
+
var util = (0, import_chunk_AH6QHEOA.__require)("util");
|
|
1974
|
+
var childrenIgnored = common.childrenIgnored;
|
|
1975
|
+
var isIgnored = common.isIgnored;
|
|
1976
|
+
var once = require_once();
|
|
1977
|
+
function glob(pattern, options, cb) {
|
|
1978
|
+
if (typeof options === "function") cb = options, options = {};
|
|
1979
|
+
if (!options) options = {};
|
|
1980
|
+
if (options.sync) {
|
|
1981
|
+
if (cb)
|
|
1982
|
+
throw new TypeError("callback provided to sync glob");
|
|
1983
|
+
return globSync(pattern, options);
|
|
1984
|
+
}
|
|
1985
|
+
return new Glob(pattern, options, cb);
|
|
1986
|
+
}
|
|
1987
|
+
glob.sync = globSync;
|
|
1988
|
+
var GlobSync = glob.GlobSync = globSync.GlobSync;
|
|
1989
|
+
glob.glob = glob;
|
|
1990
|
+
function extend(origin, add) {
|
|
1991
|
+
if (add === null || typeof add !== "object") {
|
|
1992
|
+
return origin;
|
|
1993
|
+
}
|
|
1994
|
+
var keys = Object.keys(add);
|
|
1995
|
+
var i = keys.length;
|
|
1996
|
+
while (i--) {
|
|
1997
|
+
origin[keys[i]] = add[keys[i]];
|
|
1998
|
+
}
|
|
1999
|
+
return origin;
|
|
2000
|
+
}
|
|
2001
|
+
glob.hasMagic = function(pattern, options_) {
|
|
2002
|
+
var options = extend({}, options_);
|
|
2003
|
+
options.noprocess = true;
|
|
2004
|
+
var g = new Glob(pattern, options);
|
|
2005
|
+
var set = g.minimatch.set;
|
|
2006
|
+
if (!pattern)
|
|
2007
|
+
return false;
|
|
2008
|
+
if (set.length > 1)
|
|
2009
|
+
return true;
|
|
2010
|
+
for (var j = 0; j < set[0].length; j++) {
|
|
2011
|
+
if (typeof set[0][j] !== "string")
|
|
2012
|
+
return true;
|
|
2013
|
+
}
|
|
2014
|
+
return false;
|
|
2015
|
+
};
|
|
2016
|
+
glob.Glob = Glob;
|
|
2017
|
+
inherits(Glob, EE);
|
|
2018
|
+
function Glob(pattern, options, cb) {
|
|
2019
|
+
if (typeof options === "function") {
|
|
2020
|
+
cb = options;
|
|
2021
|
+
options = null;
|
|
2022
|
+
}
|
|
2023
|
+
if (options && options.sync) {
|
|
2024
|
+
if (cb)
|
|
2025
|
+
throw new TypeError("callback provided to sync glob");
|
|
2026
|
+
return new GlobSync(pattern, options);
|
|
2027
|
+
}
|
|
2028
|
+
if (!(this instanceof Glob))
|
|
2029
|
+
return new Glob(pattern, options, cb);
|
|
2030
|
+
setopts(this, pattern, options);
|
|
2031
|
+
this._didRealPath = false;
|
|
2032
|
+
var n = this.minimatch.set.length;
|
|
2033
|
+
this.matches = new Array(n);
|
|
2034
|
+
if (typeof cb === "function") {
|
|
2035
|
+
cb = once(cb);
|
|
2036
|
+
this.on("error", cb);
|
|
2037
|
+
this.on("end", function(matches) {
|
|
2038
|
+
cb(null, matches);
|
|
2039
|
+
});
|
|
2040
|
+
}
|
|
2041
|
+
var self = this;
|
|
2042
|
+
this._processing = 0;
|
|
2043
|
+
this._emitQueue = [];
|
|
2044
|
+
this._processQueue = [];
|
|
2045
|
+
this.paused = false;
|
|
2046
|
+
if (this.noprocess)
|
|
2047
|
+
return this;
|
|
2048
|
+
if (n === 0)
|
|
2049
|
+
return done();
|
|
2050
|
+
var sync = true;
|
|
2051
|
+
for (var i = 0; i < n; i++) {
|
|
2052
|
+
this._process(this.minimatch.set[i], i, false, done);
|
|
2053
|
+
}
|
|
2054
|
+
sync = false;
|
|
2055
|
+
function done() {
|
|
2056
|
+
--self._processing;
|
|
2057
|
+
if (self._processing <= 0) {
|
|
2058
|
+
if (sync) {
|
|
2059
|
+
process.nextTick(function() {
|
|
2060
|
+
self._finish();
|
|
2061
|
+
});
|
|
2062
|
+
} else {
|
|
2063
|
+
self._finish();
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
Glob.prototype._finish = function() {
|
|
2069
|
+
assert(this instanceof Glob);
|
|
2070
|
+
if (this.aborted)
|
|
2071
|
+
return;
|
|
2072
|
+
if (this.realpath && !this._didRealpath)
|
|
2073
|
+
return this._realpath();
|
|
2074
|
+
common.finish(this);
|
|
2075
|
+
this.emit("end", this.found);
|
|
2076
|
+
};
|
|
2077
|
+
Glob.prototype._realpath = function() {
|
|
2078
|
+
if (this._didRealpath)
|
|
2079
|
+
return;
|
|
2080
|
+
this._didRealpath = true;
|
|
2081
|
+
var n = this.matches.length;
|
|
2082
|
+
if (n === 0)
|
|
2083
|
+
return this._finish();
|
|
2084
|
+
var self = this;
|
|
2085
|
+
for (var i = 0; i < this.matches.length; i++)
|
|
2086
|
+
this._realpathSet(i, next);
|
|
2087
|
+
function next() {
|
|
2088
|
+
if (--n === 0)
|
|
2089
|
+
self._finish();
|
|
2090
|
+
}
|
|
2091
|
+
};
|
|
2092
|
+
Glob.prototype._realpathSet = function(index, cb) {
|
|
2093
|
+
var matchset = this.matches[index];
|
|
2094
|
+
if (!matchset)
|
|
2095
|
+
return cb();
|
|
2096
|
+
var found = Object.keys(matchset);
|
|
2097
|
+
var self = this;
|
|
2098
|
+
var n = found.length;
|
|
2099
|
+
if (n === 0)
|
|
2100
|
+
return cb();
|
|
2101
|
+
var set = this.matches[index] = /* @__PURE__ */ Object.create(null);
|
|
2102
|
+
found.forEach(function(p, i) {
|
|
2103
|
+
p = self._makeAbs(p);
|
|
2104
|
+
rp.realpath(p, self.realpathCache, function(er, real) {
|
|
2105
|
+
if (!er)
|
|
2106
|
+
set[real] = true;
|
|
2107
|
+
else if (er.syscall === "stat")
|
|
2108
|
+
set[p] = true;
|
|
2109
|
+
else
|
|
2110
|
+
self.emit("error", er);
|
|
2111
|
+
if (--n === 0) {
|
|
2112
|
+
self.matches[index] = set;
|
|
2113
|
+
cb();
|
|
2114
|
+
}
|
|
2115
|
+
});
|
|
2116
|
+
});
|
|
2117
|
+
};
|
|
2118
|
+
Glob.prototype._mark = function(p) {
|
|
2119
|
+
return common.mark(this, p);
|
|
2120
|
+
};
|
|
2121
|
+
Glob.prototype._makeAbs = function(f) {
|
|
2122
|
+
return common.makeAbs(this, f);
|
|
2123
|
+
};
|
|
2124
|
+
Glob.prototype.abort = function() {
|
|
2125
|
+
this.aborted = true;
|
|
2126
|
+
this.emit("abort");
|
|
2127
|
+
};
|
|
2128
|
+
Glob.prototype.pause = function() {
|
|
2129
|
+
if (!this.paused) {
|
|
2130
|
+
this.paused = true;
|
|
2131
|
+
this.emit("pause");
|
|
2132
|
+
}
|
|
2133
|
+
};
|
|
2134
|
+
Glob.prototype.resume = function() {
|
|
2135
|
+
if (this.paused) {
|
|
2136
|
+
this.emit("resume");
|
|
2137
|
+
this.paused = false;
|
|
2138
|
+
if (this._emitQueue.length) {
|
|
2139
|
+
var eq = this._emitQueue.slice(0);
|
|
2140
|
+
this._emitQueue.length = 0;
|
|
2141
|
+
for (var i = 0; i < eq.length; i++) {
|
|
2142
|
+
var e = eq[i];
|
|
2143
|
+
this._emitMatch(e[0], e[1]);
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
if (this._processQueue.length) {
|
|
2147
|
+
var pq = this._processQueue.slice(0);
|
|
2148
|
+
this._processQueue.length = 0;
|
|
2149
|
+
for (var i = 0; i < pq.length; i++) {
|
|
2150
|
+
var p = pq[i];
|
|
2151
|
+
this._processing--;
|
|
2152
|
+
this._process(p[0], p[1], p[2], p[3]);
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
};
|
|
2157
|
+
Glob.prototype._process = function(pattern, index, inGlobStar, cb) {
|
|
2158
|
+
assert(this instanceof Glob);
|
|
2159
|
+
assert(typeof cb === "function");
|
|
2160
|
+
if (this.aborted)
|
|
2161
|
+
return;
|
|
2162
|
+
this._processing++;
|
|
2163
|
+
if (this.paused) {
|
|
2164
|
+
this._processQueue.push([pattern, index, inGlobStar, cb]);
|
|
2165
|
+
return;
|
|
2166
|
+
}
|
|
2167
|
+
var n = 0;
|
|
2168
|
+
while (typeof pattern[n] === "string") {
|
|
2169
|
+
n++;
|
|
2170
|
+
}
|
|
2171
|
+
var prefix;
|
|
2172
|
+
switch (n) {
|
|
2173
|
+
case pattern.length:
|
|
2174
|
+
this._processSimple(pattern.join("/"), index, cb);
|
|
2175
|
+
return;
|
|
2176
|
+
case 0:
|
|
2177
|
+
prefix = null;
|
|
2178
|
+
break;
|
|
2179
|
+
default:
|
|
2180
|
+
prefix = pattern.slice(0, n).join("/");
|
|
2181
|
+
break;
|
|
2182
|
+
}
|
|
2183
|
+
var remain = pattern.slice(n);
|
|
2184
|
+
var read;
|
|
2185
|
+
if (prefix === null)
|
|
2186
|
+
read = ".";
|
|
2187
|
+
else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p) {
|
|
2188
|
+
return typeof p === "string" ? p : "[*]";
|
|
2189
|
+
}).join("/"))) {
|
|
2190
|
+
if (!prefix || !isAbsolute(prefix))
|
|
2191
|
+
prefix = "/" + prefix;
|
|
2192
|
+
read = prefix;
|
|
2193
|
+
} else
|
|
2194
|
+
read = prefix;
|
|
2195
|
+
var abs = this._makeAbs(read);
|
|
2196
|
+
if (childrenIgnored(this, read))
|
|
2197
|
+
return cb();
|
|
2198
|
+
var isGlobStar = remain[0] === minimatch.GLOBSTAR;
|
|
2199
|
+
if (isGlobStar)
|
|
2200
|
+
this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb);
|
|
2201
|
+
else
|
|
2202
|
+
this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb);
|
|
2203
|
+
};
|
|
2204
|
+
Glob.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar, cb) {
|
|
2205
|
+
var self = this;
|
|
2206
|
+
this._readdir(abs, inGlobStar, function(er, entries) {
|
|
2207
|
+
return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb);
|
|
2208
|
+
});
|
|
2209
|
+
};
|
|
2210
|
+
Glob.prototype._processReaddir2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) {
|
|
2211
|
+
if (!entries)
|
|
2212
|
+
return cb();
|
|
2213
|
+
var pn = remain[0];
|
|
2214
|
+
var negate = !!this.minimatch.negate;
|
|
2215
|
+
var rawGlob = pn._glob;
|
|
2216
|
+
var dotOk = this.dot || rawGlob.charAt(0) === ".";
|
|
2217
|
+
var matchedEntries = [];
|
|
2218
|
+
for (var i = 0; i < entries.length; i++) {
|
|
2219
|
+
var e = entries[i];
|
|
2220
|
+
if (e.charAt(0) !== "." || dotOk) {
|
|
2221
|
+
var m;
|
|
2222
|
+
if (negate && !prefix) {
|
|
2223
|
+
m = !e.match(pn);
|
|
2224
|
+
} else {
|
|
2225
|
+
m = e.match(pn);
|
|
2226
|
+
}
|
|
2227
|
+
if (m)
|
|
2228
|
+
matchedEntries.push(e);
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
var len = matchedEntries.length;
|
|
2232
|
+
if (len === 0)
|
|
2233
|
+
return cb();
|
|
2234
|
+
if (remain.length === 1 && !this.mark && !this.stat) {
|
|
2235
|
+
if (!this.matches[index])
|
|
2236
|
+
this.matches[index] = /* @__PURE__ */ Object.create(null);
|
|
2237
|
+
for (var i = 0; i < len; i++) {
|
|
2238
|
+
var e = matchedEntries[i];
|
|
2239
|
+
if (prefix) {
|
|
2240
|
+
if (prefix !== "/")
|
|
2241
|
+
e = prefix + "/" + e;
|
|
2242
|
+
else
|
|
2243
|
+
e = prefix + e;
|
|
2244
|
+
}
|
|
2245
|
+
if (e.charAt(0) === "/" && !this.nomount) {
|
|
2246
|
+
e = path.join(this.root, e);
|
|
2247
|
+
}
|
|
2248
|
+
this._emitMatch(index, e);
|
|
2249
|
+
}
|
|
2250
|
+
return cb();
|
|
2251
|
+
}
|
|
2252
|
+
remain.shift();
|
|
2253
|
+
for (var i = 0; i < len; i++) {
|
|
2254
|
+
var e = matchedEntries[i];
|
|
2255
|
+
var newPattern;
|
|
2256
|
+
if (prefix) {
|
|
2257
|
+
if (prefix !== "/")
|
|
2258
|
+
e = prefix + "/" + e;
|
|
2259
|
+
else
|
|
2260
|
+
e = prefix + e;
|
|
2261
|
+
}
|
|
2262
|
+
this._process([e].concat(remain), index, inGlobStar, cb);
|
|
2263
|
+
}
|
|
2264
|
+
cb();
|
|
2265
|
+
};
|
|
2266
|
+
Glob.prototype._emitMatch = function(index, e) {
|
|
2267
|
+
if (this.aborted)
|
|
2268
|
+
return;
|
|
2269
|
+
if (isIgnored(this, e))
|
|
2270
|
+
return;
|
|
2271
|
+
if (this.paused) {
|
|
2272
|
+
this._emitQueue.push([index, e]);
|
|
2273
|
+
return;
|
|
2274
|
+
}
|
|
2275
|
+
var abs = isAbsolute(e) ? e : this._makeAbs(e);
|
|
2276
|
+
if (this.mark)
|
|
2277
|
+
e = this._mark(e);
|
|
2278
|
+
if (this.absolute)
|
|
2279
|
+
e = abs;
|
|
2280
|
+
if (this.matches[index][e])
|
|
2281
|
+
return;
|
|
2282
|
+
if (this.nodir) {
|
|
2283
|
+
var c = this.cache[abs];
|
|
2284
|
+
if (c === "DIR" || Array.isArray(c))
|
|
2285
|
+
return;
|
|
2286
|
+
}
|
|
2287
|
+
this.matches[index][e] = true;
|
|
2288
|
+
var st = this.statCache[abs];
|
|
2289
|
+
if (st)
|
|
2290
|
+
this.emit("stat", e, st);
|
|
2291
|
+
this.emit("match", e);
|
|
2292
|
+
};
|
|
2293
|
+
Glob.prototype._readdirInGlobStar = function(abs, cb) {
|
|
2294
|
+
if (this.aborted)
|
|
2295
|
+
return;
|
|
2296
|
+
if (this.follow)
|
|
2297
|
+
return this._readdir(abs, false, cb);
|
|
2298
|
+
var lstatkey = "lstat\0" + abs;
|
|
2299
|
+
var self = this;
|
|
2300
|
+
var lstatcb = inflight(lstatkey, lstatcb_);
|
|
2301
|
+
if (lstatcb)
|
|
2302
|
+
self.fs.lstat(abs, lstatcb);
|
|
2303
|
+
function lstatcb_(er, lstat) {
|
|
2304
|
+
if (er && er.code === "ENOENT")
|
|
2305
|
+
return cb();
|
|
2306
|
+
var isSym = lstat && lstat.isSymbolicLink();
|
|
2307
|
+
self.symlinks[abs] = isSym;
|
|
2308
|
+
if (!isSym && lstat && !lstat.isDirectory()) {
|
|
2309
|
+
self.cache[abs] = "FILE";
|
|
2310
|
+
cb();
|
|
2311
|
+
} else
|
|
2312
|
+
self._readdir(abs, false, cb);
|
|
2313
|
+
}
|
|
2314
|
+
};
|
|
2315
|
+
Glob.prototype._readdir = function(abs, inGlobStar, cb) {
|
|
2316
|
+
if (this.aborted)
|
|
2317
|
+
return;
|
|
2318
|
+
cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb);
|
|
2319
|
+
if (!cb)
|
|
2320
|
+
return;
|
|
2321
|
+
if (inGlobStar && !ownProp(this.symlinks, abs))
|
|
2322
|
+
return this._readdirInGlobStar(abs, cb);
|
|
2323
|
+
if (ownProp(this.cache, abs)) {
|
|
2324
|
+
var c = this.cache[abs];
|
|
2325
|
+
if (!c || c === "FILE")
|
|
2326
|
+
return cb();
|
|
2327
|
+
if (Array.isArray(c))
|
|
2328
|
+
return cb(null, c);
|
|
2329
|
+
}
|
|
2330
|
+
var self = this;
|
|
2331
|
+
self.fs.readdir(abs, readdirCb(this, abs, cb));
|
|
2332
|
+
};
|
|
2333
|
+
function readdirCb(self, abs, cb) {
|
|
2334
|
+
return function(er, entries) {
|
|
2335
|
+
if (er)
|
|
2336
|
+
self._readdirError(abs, er, cb);
|
|
2337
|
+
else
|
|
2338
|
+
self._readdirEntries(abs, entries, cb);
|
|
2339
|
+
};
|
|
2340
|
+
}
|
|
2341
|
+
Glob.prototype._readdirEntries = function(abs, entries, cb) {
|
|
2342
|
+
if (this.aborted)
|
|
2343
|
+
return;
|
|
2344
|
+
if (!this.mark && !this.stat) {
|
|
2345
|
+
for (var i = 0; i < entries.length; i++) {
|
|
2346
|
+
var e = entries[i];
|
|
2347
|
+
if (abs === "/")
|
|
2348
|
+
e = abs + e;
|
|
2349
|
+
else
|
|
2350
|
+
e = abs + "/" + e;
|
|
2351
|
+
this.cache[e] = true;
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
this.cache[abs] = entries;
|
|
2355
|
+
return cb(null, entries);
|
|
2356
|
+
};
|
|
2357
|
+
Glob.prototype._readdirError = function(f, er, cb) {
|
|
2358
|
+
if (this.aborted)
|
|
2359
|
+
return;
|
|
2360
|
+
switch (er.code) {
|
|
2361
|
+
case "ENOTSUP":
|
|
2362
|
+
case "ENOTDIR":
|
|
2363
|
+
var abs = this._makeAbs(f);
|
|
2364
|
+
this.cache[abs] = "FILE";
|
|
2365
|
+
if (abs === this.cwdAbs) {
|
|
2366
|
+
var error = new Error(er.code + " invalid cwd " + this.cwd);
|
|
2367
|
+
error.path = this.cwd;
|
|
2368
|
+
error.code = er.code;
|
|
2369
|
+
this.emit("error", error);
|
|
2370
|
+
this.abort();
|
|
2371
|
+
}
|
|
2372
|
+
break;
|
|
2373
|
+
case "ENOENT":
|
|
2374
|
+
case "ELOOP":
|
|
2375
|
+
case "ENAMETOOLONG":
|
|
2376
|
+
case "UNKNOWN":
|
|
2377
|
+
this.cache[this._makeAbs(f)] = false;
|
|
2378
|
+
break;
|
|
2379
|
+
default:
|
|
2380
|
+
this.cache[this._makeAbs(f)] = false;
|
|
2381
|
+
if (this.strict) {
|
|
2382
|
+
this.emit("error", er);
|
|
2383
|
+
this.abort();
|
|
2384
|
+
}
|
|
2385
|
+
if (!this.silent)
|
|
2386
|
+
console.error("glob error", er);
|
|
2387
|
+
break;
|
|
2388
|
+
}
|
|
2389
|
+
return cb();
|
|
2390
|
+
};
|
|
2391
|
+
Glob.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar, cb) {
|
|
2392
|
+
var self = this;
|
|
2393
|
+
this._readdir(abs, inGlobStar, function(er, entries) {
|
|
2394
|
+
self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb);
|
|
2395
|
+
});
|
|
2396
|
+
};
|
|
2397
|
+
Glob.prototype._processGlobStar2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) {
|
|
2398
|
+
if (!entries)
|
|
2399
|
+
return cb();
|
|
2400
|
+
var remainWithoutGlobStar = remain.slice(1);
|
|
2401
|
+
var gspref = prefix ? [prefix] : [];
|
|
2402
|
+
var noGlobStar = gspref.concat(remainWithoutGlobStar);
|
|
2403
|
+
this._process(noGlobStar, index, false, cb);
|
|
2404
|
+
var isSym = this.symlinks[abs];
|
|
2405
|
+
var len = entries.length;
|
|
2406
|
+
if (isSym && inGlobStar)
|
|
2407
|
+
return cb();
|
|
2408
|
+
for (var i = 0; i < len; i++) {
|
|
2409
|
+
var e = entries[i];
|
|
2410
|
+
if (e.charAt(0) === "." && !this.dot)
|
|
2411
|
+
continue;
|
|
2412
|
+
var instead = gspref.concat(entries[i], remainWithoutGlobStar);
|
|
2413
|
+
this._process(instead, index, true, cb);
|
|
2414
|
+
var below = gspref.concat(entries[i], remain);
|
|
2415
|
+
this._process(below, index, true, cb);
|
|
2416
|
+
}
|
|
2417
|
+
cb();
|
|
2418
|
+
};
|
|
2419
|
+
Glob.prototype._processSimple = function(prefix, index, cb) {
|
|
2420
|
+
var self = this;
|
|
2421
|
+
this._stat(prefix, function(er, exists) {
|
|
2422
|
+
self._processSimple2(prefix, index, er, exists, cb);
|
|
2423
|
+
});
|
|
2424
|
+
};
|
|
2425
|
+
Glob.prototype._processSimple2 = function(prefix, index, er, exists, cb) {
|
|
2426
|
+
if (!this.matches[index])
|
|
2427
|
+
this.matches[index] = /* @__PURE__ */ Object.create(null);
|
|
2428
|
+
if (!exists)
|
|
2429
|
+
return cb();
|
|
2430
|
+
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
2431
|
+
var trail = /[\/\\]$/.test(prefix);
|
|
2432
|
+
if (prefix.charAt(0) === "/") {
|
|
2433
|
+
prefix = path.join(this.root, prefix);
|
|
2434
|
+
} else {
|
|
2435
|
+
prefix = path.resolve(this.root, prefix);
|
|
2436
|
+
if (trail)
|
|
2437
|
+
prefix += "/";
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
if (process.platform === "win32")
|
|
2441
|
+
prefix = prefix.replace(/\\/g, "/");
|
|
2442
|
+
this._emitMatch(index, prefix);
|
|
2443
|
+
cb();
|
|
2444
|
+
};
|
|
2445
|
+
Glob.prototype._stat = function(f, cb) {
|
|
2446
|
+
var abs = this._makeAbs(f);
|
|
2447
|
+
var needDir = f.slice(-1) === "/";
|
|
2448
|
+
if (f.length > this.maxLength)
|
|
2449
|
+
return cb();
|
|
2450
|
+
if (!this.stat && ownProp(this.cache, abs)) {
|
|
2451
|
+
var c = this.cache[abs];
|
|
2452
|
+
if (Array.isArray(c))
|
|
2453
|
+
c = "DIR";
|
|
2454
|
+
if (!needDir || c === "DIR")
|
|
2455
|
+
return cb(null, c);
|
|
2456
|
+
if (needDir && c === "FILE")
|
|
2457
|
+
return cb();
|
|
2458
|
+
}
|
|
2459
|
+
var exists;
|
|
2460
|
+
var stat = this.statCache[abs];
|
|
2461
|
+
if (stat !== void 0) {
|
|
2462
|
+
if (stat === false)
|
|
2463
|
+
return cb(null, stat);
|
|
2464
|
+
else {
|
|
2465
|
+
var type = stat.isDirectory() ? "DIR" : "FILE";
|
|
2466
|
+
if (needDir && type === "FILE")
|
|
2467
|
+
return cb();
|
|
2468
|
+
else
|
|
2469
|
+
return cb(null, type, stat);
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
var self = this;
|
|
2473
|
+
var statcb = inflight("stat\0" + abs, lstatcb_);
|
|
2474
|
+
if (statcb)
|
|
2475
|
+
self.fs.lstat(abs, statcb);
|
|
2476
|
+
function lstatcb_(er, lstat) {
|
|
2477
|
+
if (lstat && lstat.isSymbolicLink()) {
|
|
2478
|
+
return self.fs.stat(abs, function(er2, stat2) {
|
|
2479
|
+
if (er2)
|
|
2480
|
+
self._stat2(f, abs, null, lstat, cb);
|
|
2481
|
+
else
|
|
2482
|
+
self._stat2(f, abs, er2, stat2, cb);
|
|
2483
|
+
});
|
|
2484
|
+
} else {
|
|
2485
|
+
self._stat2(f, abs, er, lstat, cb);
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
};
|
|
2489
|
+
Glob.prototype._stat2 = function(f, abs, er, stat, cb) {
|
|
2490
|
+
if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) {
|
|
2491
|
+
this.statCache[abs] = false;
|
|
2492
|
+
return cb();
|
|
2493
|
+
}
|
|
2494
|
+
var needDir = f.slice(-1) === "/";
|
|
2495
|
+
this.statCache[abs] = stat;
|
|
2496
|
+
if (abs.slice(-1) === "/" && stat && !stat.isDirectory())
|
|
2497
|
+
return cb(null, false, stat);
|
|
2498
|
+
var c = true;
|
|
2499
|
+
if (stat)
|
|
2500
|
+
c = stat.isDirectory() ? "DIR" : "FILE";
|
|
2501
|
+
this.cache[abs] = this.cache[abs] || c;
|
|
2502
|
+
if (needDir && c === "FILE")
|
|
2503
|
+
return cb();
|
|
2504
|
+
return cb(null, c, stat);
|
|
2505
|
+
};
|
|
2506
|
+
}
|
|
2507
|
+
});
|
|
2508
|
+
var require_rimraf = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
2509
|
+
"../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module2) {
|
|
2510
|
+
"use strict";
|
|
2511
|
+
var assert = (0, import_chunk_AH6QHEOA.__require)("assert");
|
|
2512
|
+
var path = (0, import_chunk_AH6QHEOA.__require)("path");
|
|
2513
|
+
var fs = (0, import_chunk_AH6QHEOA.__require)("fs");
|
|
2514
|
+
var glob = void 0;
|
|
2515
|
+
try {
|
|
2516
|
+
glob = require_glob();
|
|
2517
|
+
} catch (_err) {
|
|
2518
|
+
}
|
|
2519
|
+
var defaultGlobOpts = {
|
|
2520
|
+
nosort: true,
|
|
2521
|
+
silent: true
|
|
2522
|
+
};
|
|
2523
|
+
var timeout = 0;
|
|
2524
|
+
var isWindows = process.platform === "win32";
|
|
2525
|
+
var defaults = (options) => {
|
|
2526
|
+
const methods = [
|
|
2527
|
+
"unlink",
|
|
2528
|
+
"chmod",
|
|
2529
|
+
"stat",
|
|
2530
|
+
"lstat",
|
|
2531
|
+
"rmdir",
|
|
2532
|
+
"readdir"
|
|
2533
|
+
];
|
|
2534
|
+
methods.forEach((m) => {
|
|
2535
|
+
options[m] = options[m] || fs[m];
|
|
2536
|
+
m = m + "Sync";
|
|
2537
|
+
options[m] = options[m] || fs[m];
|
|
2538
|
+
});
|
|
2539
|
+
options.maxBusyTries = options.maxBusyTries || 3;
|
|
2540
|
+
options.emfileWait = options.emfileWait || 1e3;
|
|
2541
|
+
if (options.glob === false) {
|
|
2542
|
+
options.disableGlob = true;
|
|
2543
|
+
}
|
|
2544
|
+
if (options.disableGlob !== true && glob === void 0) {
|
|
2545
|
+
throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");
|
|
2546
|
+
}
|
|
2547
|
+
options.disableGlob = options.disableGlob || false;
|
|
2548
|
+
options.glob = options.glob || defaultGlobOpts;
|
|
2549
|
+
};
|
|
2550
|
+
var rimraf = (p, options, cb) => {
|
|
2551
|
+
if (typeof options === "function") {
|
|
2552
|
+
cb = options;
|
|
2553
|
+
options = {};
|
|
2554
|
+
}
|
|
2555
|
+
assert(p, "rimraf: missing path");
|
|
2556
|
+
assert.equal(typeof p, "string", "rimraf: path should be a string");
|
|
2557
|
+
assert.equal(typeof cb, "function", "rimraf: callback function required");
|
|
2558
|
+
assert(options, "rimraf: invalid options argument provided");
|
|
2559
|
+
assert.equal(typeof options, "object", "rimraf: options should be object");
|
|
2560
|
+
defaults(options);
|
|
2561
|
+
let busyTries = 0;
|
|
2562
|
+
let errState = null;
|
|
2563
|
+
let n = 0;
|
|
2564
|
+
const next = (er) => {
|
|
2565
|
+
errState = errState || er;
|
|
2566
|
+
if (--n === 0)
|
|
2567
|
+
cb(errState);
|
|
2568
|
+
};
|
|
2569
|
+
const afterGlob = (er, results) => {
|
|
2570
|
+
if (er)
|
|
2571
|
+
return cb(er);
|
|
2572
|
+
n = results.length;
|
|
2573
|
+
if (n === 0)
|
|
2574
|
+
return cb();
|
|
2575
|
+
results.forEach((p2) => {
|
|
2576
|
+
const CB = (er2) => {
|
|
2577
|
+
if (er2) {
|
|
2578
|
+
if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries) {
|
|
2579
|
+
busyTries++;
|
|
2580
|
+
return setTimeout(() => rimraf_(p2, options, CB), busyTries * 100);
|
|
2581
|
+
}
|
|
2582
|
+
if (er2.code === "EMFILE" && timeout < options.emfileWait) {
|
|
2583
|
+
return setTimeout(() => rimraf_(p2, options, CB), timeout++);
|
|
2584
|
+
}
|
|
2585
|
+
if (er2.code === "ENOENT") er2 = null;
|
|
2586
|
+
}
|
|
2587
|
+
timeout = 0;
|
|
2588
|
+
next(er2);
|
|
2589
|
+
};
|
|
2590
|
+
rimraf_(p2, options, CB);
|
|
2591
|
+
});
|
|
2592
|
+
};
|
|
2593
|
+
if (options.disableGlob || !glob.hasMagic(p))
|
|
2594
|
+
return afterGlob(null, [p]);
|
|
2595
|
+
options.lstat(p, (er, stat) => {
|
|
2596
|
+
if (!er)
|
|
2597
|
+
return afterGlob(null, [p]);
|
|
2598
|
+
glob(p, options.glob, afterGlob);
|
|
2599
|
+
});
|
|
2600
|
+
};
|
|
2601
|
+
var rimraf_ = (p, options, cb) => {
|
|
2602
|
+
assert(p);
|
|
2603
|
+
assert(options);
|
|
2604
|
+
assert(typeof cb === "function");
|
|
2605
|
+
options.lstat(p, (er, st) => {
|
|
2606
|
+
if (er && er.code === "ENOENT")
|
|
2607
|
+
return cb(null);
|
|
2608
|
+
if (er && er.code === "EPERM" && isWindows)
|
|
2609
|
+
fixWinEPERM(p, options, er, cb);
|
|
2610
|
+
if (st && st.isDirectory())
|
|
2611
|
+
return rmdir(p, options, er, cb);
|
|
2612
|
+
options.unlink(p, (er2) => {
|
|
2613
|
+
if (er2) {
|
|
2614
|
+
if (er2.code === "ENOENT")
|
|
2615
|
+
return cb(null);
|
|
2616
|
+
if (er2.code === "EPERM")
|
|
2617
|
+
return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
|
|
2618
|
+
if (er2.code === "EISDIR")
|
|
2619
|
+
return rmdir(p, options, er2, cb);
|
|
2620
|
+
}
|
|
2621
|
+
return cb(er2);
|
|
2622
|
+
});
|
|
2623
|
+
});
|
|
2624
|
+
};
|
|
2625
|
+
var fixWinEPERM = (p, options, er, cb) => {
|
|
2626
|
+
assert(p);
|
|
2627
|
+
assert(options);
|
|
2628
|
+
assert(typeof cb === "function");
|
|
2629
|
+
options.chmod(p, 438, (er2) => {
|
|
2630
|
+
if (er2)
|
|
2631
|
+
cb(er2.code === "ENOENT" ? null : er);
|
|
2632
|
+
else
|
|
2633
|
+
options.stat(p, (er3, stats) => {
|
|
2634
|
+
if (er3)
|
|
2635
|
+
cb(er3.code === "ENOENT" ? null : er);
|
|
2636
|
+
else if (stats.isDirectory())
|
|
2637
|
+
rmdir(p, options, er, cb);
|
|
2638
|
+
else
|
|
2639
|
+
options.unlink(p, cb);
|
|
2640
|
+
});
|
|
2641
|
+
});
|
|
2642
|
+
};
|
|
2643
|
+
var fixWinEPERMSync = (p, options, er) => {
|
|
2644
|
+
assert(p);
|
|
2645
|
+
assert(options);
|
|
2646
|
+
try {
|
|
2647
|
+
options.chmodSync(p, 438);
|
|
2648
|
+
} catch (er2) {
|
|
2649
|
+
if (er2.code === "ENOENT")
|
|
2650
|
+
return;
|
|
2651
|
+
else
|
|
2652
|
+
throw er;
|
|
2653
|
+
}
|
|
2654
|
+
let stats;
|
|
2655
|
+
try {
|
|
2656
|
+
stats = options.statSync(p);
|
|
2657
|
+
} catch (er3) {
|
|
2658
|
+
if (er3.code === "ENOENT")
|
|
2659
|
+
return;
|
|
2660
|
+
else
|
|
2661
|
+
throw er;
|
|
2662
|
+
}
|
|
2663
|
+
if (stats.isDirectory())
|
|
2664
|
+
rmdirSync(p, options, er);
|
|
2665
|
+
else
|
|
2666
|
+
options.unlinkSync(p);
|
|
2667
|
+
};
|
|
2668
|
+
var rmdir = (p, options, originalEr, cb) => {
|
|
2669
|
+
assert(p);
|
|
2670
|
+
assert(options);
|
|
2671
|
+
assert(typeof cb === "function");
|
|
2672
|
+
options.rmdir(p, (er) => {
|
|
2673
|
+
if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM"))
|
|
2674
|
+
rmkids(p, options, cb);
|
|
2675
|
+
else if (er && er.code === "ENOTDIR")
|
|
2676
|
+
cb(originalEr);
|
|
2677
|
+
else
|
|
2678
|
+
cb(er);
|
|
2679
|
+
});
|
|
2680
|
+
};
|
|
2681
|
+
var rmkids = (p, options, cb) => {
|
|
2682
|
+
assert(p);
|
|
2683
|
+
assert(options);
|
|
2684
|
+
assert(typeof cb === "function");
|
|
2685
|
+
options.readdir(p, (er, files) => {
|
|
2686
|
+
if (er)
|
|
2687
|
+
return cb(er);
|
|
2688
|
+
let n = files.length;
|
|
2689
|
+
if (n === 0)
|
|
2690
|
+
return options.rmdir(p, cb);
|
|
2691
|
+
let errState;
|
|
2692
|
+
files.forEach((f) => {
|
|
2693
|
+
rimraf(path.join(p, f), options, (er2) => {
|
|
2694
|
+
if (errState)
|
|
2695
|
+
return;
|
|
2696
|
+
if (er2)
|
|
2697
|
+
return cb(errState = er2);
|
|
2698
|
+
if (--n === 0)
|
|
2699
|
+
options.rmdir(p, cb);
|
|
2700
|
+
});
|
|
2701
|
+
});
|
|
2702
|
+
});
|
|
2703
|
+
};
|
|
2704
|
+
var rimrafSync = (p, options) => {
|
|
2705
|
+
options = options || {};
|
|
2706
|
+
defaults(options);
|
|
2707
|
+
assert(p, "rimraf: missing path");
|
|
2708
|
+
assert.equal(typeof p, "string", "rimraf: path should be a string");
|
|
2709
|
+
assert(options, "rimraf: missing options");
|
|
2710
|
+
assert.equal(typeof options, "object", "rimraf: options should be object");
|
|
2711
|
+
let results;
|
|
2712
|
+
if (options.disableGlob || !glob.hasMagic(p)) {
|
|
2713
|
+
results = [p];
|
|
2714
|
+
} else {
|
|
2715
|
+
try {
|
|
2716
|
+
options.lstatSync(p);
|
|
2717
|
+
results = [p];
|
|
2718
|
+
} catch (er) {
|
|
2719
|
+
results = glob.sync(p, options.glob);
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
if (!results.length)
|
|
2723
|
+
return;
|
|
2724
|
+
for (let i = 0; i < results.length; i++) {
|
|
2725
|
+
const p2 = results[i];
|
|
2726
|
+
let st;
|
|
2727
|
+
try {
|
|
2728
|
+
st = options.lstatSync(p2);
|
|
2729
|
+
} catch (er) {
|
|
2730
|
+
if (er.code === "ENOENT")
|
|
2731
|
+
return;
|
|
2732
|
+
if (er.code === "EPERM" && isWindows)
|
|
2733
|
+
fixWinEPERMSync(p2, options, er);
|
|
2734
|
+
}
|
|
2735
|
+
try {
|
|
2736
|
+
if (st && st.isDirectory())
|
|
2737
|
+
rmdirSync(p2, options, null);
|
|
2738
|
+
else
|
|
2739
|
+
options.unlinkSync(p2);
|
|
2740
|
+
} catch (er) {
|
|
2741
|
+
if (er.code === "ENOENT")
|
|
2742
|
+
return;
|
|
2743
|
+
if (er.code === "EPERM")
|
|
2744
|
+
return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er);
|
|
2745
|
+
if (er.code !== "EISDIR")
|
|
2746
|
+
throw er;
|
|
2747
|
+
rmdirSync(p2, options, er);
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
};
|
|
2751
|
+
var rmdirSync = (p, options, originalEr) => {
|
|
2752
|
+
assert(p);
|
|
2753
|
+
assert(options);
|
|
2754
|
+
try {
|
|
2755
|
+
options.rmdirSync(p);
|
|
2756
|
+
} catch (er) {
|
|
2757
|
+
if (er.code === "ENOENT")
|
|
2758
|
+
return;
|
|
2759
|
+
if (er.code === "ENOTDIR")
|
|
2760
|
+
throw originalEr;
|
|
2761
|
+
if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")
|
|
2762
|
+
rmkidsSync(p, options);
|
|
2763
|
+
}
|
|
2764
|
+
};
|
|
2765
|
+
var rmkidsSync = (p, options) => {
|
|
2766
|
+
assert(p);
|
|
2767
|
+
assert(options);
|
|
2768
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
|
|
2769
|
+
const retries = isWindows ? 100 : 1;
|
|
2770
|
+
let i = 0;
|
|
2771
|
+
do {
|
|
2772
|
+
let threw = true;
|
|
2773
|
+
try {
|
|
2774
|
+
const ret = options.rmdirSync(p, options);
|
|
2775
|
+
threw = false;
|
|
2776
|
+
return ret;
|
|
2777
|
+
} finally {
|
|
2778
|
+
if (++i < retries && threw)
|
|
2779
|
+
continue;
|
|
2780
|
+
}
|
|
2781
|
+
} while (true);
|
|
2782
|
+
};
|
|
2783
|
+
module2.exports = rimraf;
|
|
2784
|
+
rimraf.sync = rimrafSync;
|
|
2785
|
+
}
|
|
2786
|
+
});
|