@forsakringskassan/docs-generator 2.26.4 → 2.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +5 -5
  2. package/dist/{create-markdown-renderer-DRsx8BA_.js → create-markdown-renderer-B9Y9VYNq.mjs} +27 -33
  3. package/dist/create-markdown-renderer-B9Y9VYNq.mjs.map +1 -0
  4. package/dist/{index.d.ts → index.d.mts} +8 -0
  5. package/dist/{index.js → index.mjs} +195 -182
  6. package/dist/index.mjs.map +1 -0
  7. package/dist/markdown.mjs +41 -0
  8. package/dist/markdown.mjs.map +1 -0
  9. package/dist/processors/{motd.js → motd.mjs} +0 -2
  10. package/dist/processors/{selectable-version.js → selectable-version.mjs} +91 -92
  11. package/dist/{runtime-bootstrap.js → runtime-bootstrap.mjs} +0 -2
  12. package/dist/{runtime.js → runtime.mjs} +4 -10
  13. package/dist/tsconfig-path-bG7G_cK8.mjs +11 -0
  14. package/dist/tsconfig-path-bG7G_cK8.mjs.map +1 -0
  15. package/dist/tsdoc-metadata.json +1 -1
  16. package/dist/{vendor-DKOm4V-g.js → vendor-DiqWVUfS.mjs} +164 -551
  17. package/dist/vendor-DiqWVUfS.mjs.map +1 -0
  18. package/dist/{vue3-D18_q-Ol.js → vue3-BzNzaBbK.mjs} +12 -11
  19. package/dist/vue3-BzNzaBbK.mjs.map +1 -0
  20. package/dist/worker-BnI39lrZ.mjs +150 -0
  21. package/dist/worker-BnI39lrZ.mjs.map +1 -0
  22. package/package.json +18 -8
  23. package/dist/compile-example.js +0 -152
  24. package/dist/compile-example.js.map +0 -1
  25. package/dist/create-markdown-renderer-DRsx8BA_.js.map +0 -1
  26. package/dist/index.js.map +0 -1
  27. package/dist/markdown.js +0 -47
  28. package/dist/markdown.js.map +0 -1
  29. package/dist/vendor-DKOm4V-g.js.map +0 -1
  30. package/dist/vue3-D18_q-Ol.js.map +0 -1
  31. /package/dist/{markdown.d.ts → markdown.d.mts} +0 -0
  32. /package/dist/{runtime.d.ts → runtime.d.mts} +0 -0
@@ -1,59 +1,38 @@
1
- 'use strict';
2
-
3
- var node_url = require('node:url');
4
- var path$1 = require('node:path');
5
- var require$$0$1 = require('fs');
6
- var fs$2 = require('node:fs');
7
- var fs$1 = require('node:fs/promises');
8
- var node_events = require('node:events');
9
- var Stream = require('node:stream');
10
- var node_string_decoder = require('node:string_decoder');
11
- var require$$0$2 = require('@vue/compiler-sfc');
12
- var require$$1 = require('typescript');
13
- var require$$0$3 = require('constants');
14
- var require$$0$4 = require('stream');
15
- var require$$1$1 = require('util');
16
- var require$$5 = require('assert');
17
- var sysPath = require('path');
18
- var node_module = require('node:module');
19
- var require$$0$5 = require('readline');
20
- var require$$3 = require('events');
21
- var process$1 = require('node:process');
22
- var util = require('node:util');
23
- var node_child_process = require('node:child_process');
24
- var promises = require('node:stream/promises');
25
- var promises$1 = require('fs/promises');
26
- var require$$0$6 = require('os');
27
- var require$$1$5 = require('http');
28
- var require$$2$2 = require('https');
29
- var require$$2 = require('url');
30
- var require$$0$7 = require('buffer');
31
- var require$$1$2 = require('crypto');
32
- var require$$1$3 = require('net');
33
- var require$$2$1 = require('tls');
34
- var require$$1$4 = require('tty');
35
- var require$$0$8 = require('querystring');
36
-
37
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
38
- function _interopNamespaceDefault(e) {
39
- var n = Object.create(null);
40
- if (e) {
41
- Object.keys(e).forEach(function (k) {
42
- if (k !== 'default') {
43
- var d = Object.getOwnPropertyDescriptor(e, k);
44
- Object.defineProperty(n, k, d.get ? d : {
45
- enumerable: true,
46
- get: function () { return e[k]; }
47
- });
48
- }
49
- });
50
- }
51
- n.default = e;
52
- return Object.freeze(n);
53
- }
54
-
55
- var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs$2);
56
- var sysPath__namespace = /*#__PURE__*/_interopNamespaceDefault(sysPath);
1
+ import { createRequire as $createRequire } from "node:module";
2
+
3
+ const require = $createRequire(import.meta.url);
4
+
5
+ import { fileURLToPath, pathToFileURL } from 'node:url';
6
+ import path$1, { win32, posix } from 'node:path';
7
+ import require$$0$4, { realpathSync as realpathSync$1, readlinkSync, readdirSync, readdir as readdir$1, lstatSync, unwatchFile, watchFile, watch as watch$2, stat as stat$2 } from 'fs';
8
+ import * as fs$1 from 'node:fs';
9
+ import { readFileSync } from 'node:fs';
10
+ import { realpath, readlink, readdir, lstat } from 'node:fs/promises';
11
+ import { EventEmitter as EventEmitter$1 } from 'node:events';
12
+ import Stream from 'node:stream';
13
+ import { StringDecoder } from 'node:string_decoder';
14
+ import require$$0$1 from '@vue/compiler-sfc';
15
+ import require$$1 from 'typescript';
16
+ import require$$0$2 from 'constants';
17
+ import require$$0$3, { Readable } from 'stream';
18
+ import require$$1$1 from 'util';
19
+ import require$$5 from 'assert';
20
+ import * as sysPath from 'path';
21
+ import sysPath__default, { resolve, join, relative, sep as sep$1 } from 'path';
22
+ import { createRequire } from 'node:module';
23
+ import require$$0$5 from 'readline';
24
+ import require$$3, { EventEmitter as EventEmitter$2 } from 'events';
25
+ import { lstat as lstat$1, stat as stat$1, readdir as readdir$2, realpath as realpath$1, open } from 'fs/promises';
26
+ import require$$0$7, { type as type$2 } from 'os';
27
+ import require$$1$5 from 'http';
28
+ import require$$2$2 from 'https';
29
+ import require$$2 from 'url';
30
+ import require$$0$6 from 'buffer';
31
+ import require$$1$2 from 'crypto';
32
+ import require$$1$3 from 'net';
33
+ import require$$2$1 from 'tls';
34
+ import require$$1$4 from 'tty';
35
+ import require$$0$8 from 'querystring';
57
36
 
58
37
  /* eslint-disable no-bitwise */
59
38
 
@@ -12055,7 +12034,7 @@ const isStream = (s) => !!s &&
12055
12034
  */
12056
12035
  const isReadable = (s) => !!s &&
12057
12036
  typeof s === 'object' &&
12058
- s instanceof node_events.EventEmitter &&
12037
+ s instanceof EventEmitter$1 &&
12059
12038
  typeof s.pipe === 'function' &&
12060
12039
  // node core Writable streams have a pipe() method, but it throws
12061
12040
  s.pipe !== Stream.Writable.prototype.pipe;
@@ -12064,7 +12043,7 @@ const isReadable = (s) => !!s &&
12064
12043
  */
12065
12044
  const isWritable = (s) => !!s &&
12066
12045
  typeof s === 'object' &&
12067
- s instanceof node_events.EventEmitter &&
12046
+ s instanceof EventEmitter$1 &&
12068
12047
  typeof s.write === 'function' &&
12069
12048
  typeof s.end === 'function';
12070
12049
  const EOF = Symbol('EOF');
@@ -12170,7 +12149,7 @@ const isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !==
12170
12149
  * `Events` is the set of event handler signatures that this object
12171
12150
  * will emit, see {@link Minipass.Events}
12172
12151
  */
12173
- class Minipass extends node_events.EventEmitter {
12152
+ class Minipass extends EventEmitter$1 {
12174
12153
  [FLOWING] = false;
12175
12154
  [PAUSED] = false;
12176
12155
  [PIPES] = [];
@@ -12225,7 +12204,7 @@ class Minipass extends node_events.EventEmitter {
12225
12204
  }
12226
12205
  this[ASYNC] = !!options.async;
12227
12206
  this[DECODER] = this[ENCODING]
12228
- ? new node_string_decoder.StringDecoder(this[ENCODING])
12207
+ ? new StringDecoder(this[ENCODING])
12229
12208
  : null;
12230
12209
  //@ts-ignore - private option for debugging and testing
12231
12210
  if (options && options.debugExposeBuffer === true) {
@@ -13049,22 +13028,22 @@ class Minipass extends node_events.EventEmitter {
13049
13028
  }
13050
13029
  }
13051
13030
 
13052
- const realpathSync = require$$0$1.realpathSync.native;
13031
+ const realpathSync = realpathSync$1.native;
13053
13032
  const defaultFS = {
13054
- lstatSync: require$$0$1.lstatSync,
13055
- readdir: require$$0$1.readdir,
13056
- readdirSync: require$$0$1.readdirSync,
13057
- readlinkSync: require$$0$1.readlinkSync,
13033
+ lstatSync,
13034
+ readdir: readdir$1,
13035
+ readdirSync,
13036
+ readlinkSync,
13058
13037
  realpathSync,
13059
13038
  promises: {
13060
- lstat: fs$1.lstat,
13061
- readdir: fs$1.readdir,
13062
- readlink: fs$1.readlink,
13063
- realpath: fs$1.realpath,
13039
+ lstat,
13040
+ readdir,
13041
+ readlink,
13042
+ realpath,
13064
13043
  },
13065
13044
  };
13066
13045
  // if they just gave us require('fs') then use our default
13067
- const fsFromOption = (fsOption) => !fsOption || fsOption === defaultFS || fsOption === fs__namespace ?
13046
+ const fsFromOption = (fsOption) => !fsOption || fsOption === defaultFS || fsOption === fs$1 ?
13068
13047
  defaultFS
13069
13048
  : {
13070
13049
  ...defaultFS,
@@ -14219,7 +14198,7 @@ class PathWin32 extends PathBase {
14219
14198
  * @internal
14220
14199
  */
14221
14200
  getRootString(path) {
14222
- return path$1.win32.parse(path).root;
14201
+ return win32.parse(path).root;
14223
14202
  }
14224
14203
  /**
14225
14204
  * @internal
@@ -14339,7 +14318,7 @@ class PathScurryBase {
14339
14318
  constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS, } = {}) {
14340
14319
  this.#fs = fsFromOption(fs);
14341
14320
  if (cwd instanceof URL || cwd.startsWith('file://')) {
14342
- cwd = node_url.fileURLToPath(cwd);
14321
+ cwd = fileURLToPath(cwd);
14343
14322
  }
14344
14323
  // resolve and split root, and then add to the store.
14345
14324
  // this is the only time we call path.resolve()
@@ -14927,7 +14906,7 @@ class PathScurryWin32 extends PathScurryBase {
14927
14906
  sep = '\\';
14928
14907
  constructor(cwd = process.cwd(), opts = {}) {
14929
14908
  const { nocase = true } = opts;
14930
- super(cwd, path$1.win32, '\\', { ...opts, nocase });
14909
+ super(cwd, win32, '\\', { ...opts, nocase });
14931
14910
  this.nocase = nocase;
14932
14911
  for (let p = this.cwd; p; p = p.parent) {
14933
14912
  p.nocase = this.nocase;
@@ -14940,7 +14919,7 @@ class PathScurryWin32 extends PathScurryBase {
14940
14919
  // if the path starts with a single separator, it's not a UNC, and we'll
14941
14920
  // just get separator as the root, and driveFromUNC will return \
14942
14921
  // In that case, mount \ on the root from the cwd.
14943
- return path$1.win32.parse(dir).root.toUpperCase();
14922
+ return win32.parse(dir).root.toUpperCase();
14944
14923
  }
14945
14924
  /**
14946
14925
  * @internal
@@ -14969,7 +14948,7 @@ class PathScurryPosix extends PathScurryBase {
14969
14948
  sep = '/';
14970
14949
  constructor(cwd = process.cwd(), opts = {}) {
14971
14950
  const { nocase = false } = opts;
14972
- super(cwd, path$1.posix, '/', { ...opts, nocase });
14951
+ super(cwd, posix, '/', { ...opts, nocase });
14973
14952
  this.nocase = nocase;
14974
14953
  }
14975
14954
  /**
@@ -16091,7 +16070,7 @@ class Glob {
16091
16070
  this.cwd = '';
16092
16071
  }
16093
16072
  else if (opts.cwd instanceof URL || opts.cwd.startsWith('file://')) {
16094
- opts.cwd = node_url.fileURLToPath(opts.cwd);
16073
+ opts.cwd = fileURLToPath(opts.cwd);
16095
16074
  }
16096
16075
  this.cwd = opts.cwd || '';
16097
16076
  this.root = opts.root;
@@ -16339,7 +16318,7 @@ function requireRegisterTs () {
16339
16318
  if (hasRequiredRegisterTs) return registerTs;
16340
16319
  hasRequiredRegisterTs = 1;
16341
16320
  if (typeof commonjsRequire !== 'undefined') {
16342
- require$$0$2.registerTS(() => require$$1);
16321
+ require$$0$1.registerTS(() => require$$1);
16343
16322
  }
16344
16323
  return registerTs;
16345
16324
  }
@@ -16358,7 +16337,8 @@ function createDedent(options) {
16358
16337
  function dedent(strings, ...values) {
16359
16338
  const raw = typeof strings === "string" ? [strings] : strings.raw;
16360
16339
  const {
16361
- escapeSpecialCharacters = Array.isArray(strings)
16340
+ escapeSpecialCharacters = Array.isArray(strings),
16341
+ trimWhitespace = true
16362
16342
  } = options;
16363
16343
 
16364
16344
  // first, perform interpolation
@@ -16400,9 +16380,12 @@ function createDedent(options) {
16400
16380
  }
16401
16381
 
16402
16382
  // dedent eats leading and trailing whitespace too
16403
- result = result.trim();
16383
+ if (trimWhitespace) {
16384
+ result = result.trim();
16385
+ }
16386
+
16387
+ // handle escaped newlines at the end to ensure they don't get stripped too
16404
16388
  if (escapeSpecialCharacters) {
16405
- // handle escaped newlines at the end to ensure they don't get stripped too
16406
16389
  result = result.replace(/\\n/g, "\n");
16407
16390
  }
16408
16391
  return result;
@@ -21296,7 +21279,7 @@ var hasRequiredPolyfills;
21296
21279
  function requirePolyfills () {
21297
21280
  if (hasRequiredPolyfills) return polyfills;
21298
21281
  hasRequiredPolyfills = 1;
21299
- var constants = require$$0$3;
21282
+ var constants = require$$0$2;
21300
21283
 
21301
21284
  var origCwd = process.cwd;
21302
21285
  var cwd = null;
@@ -21660,7 +21643,7 @@ var hasRequiredLegacyStreams;
21660
21643
  function requireLegacyStreams () {
21661
21644
  if (hasRequiredLegacyStreams) return legacyStreams;
21662
21645
  hasRequiredLegacyStreams = 1;
21663
- var Stream = require$$0$4.Stream;
21646
+ var Stream = require$$0$3.Stream;
21664
21647
 
21665
21648
  legacyStreams = legacy;
21666
21649
 
@@ -21818,7 +21801,7 @@ var hasRequiredGracefulFs;
21818
21801
  function requireGracefulFs () {
21819
21802
  if (hasRequiredGracefulFs) return gracefulFs;
21820
21803
  hasRequiredGracefulFs = 1;
21821
- var fs = require$$0$1;
21804
+ var fs = require$$0$4;
21822
21805
  var polyfills = requirePolyfills();
21823
21806
  var legacy = requireLegacyStreams();
21824
21807
  var clone = requireClone();
@@ -22433,7 +22416,7 @@ var hasRequiredUtils$2;
22433
22416
  function requireUtils$2 () {
22434
22417
  if (hasRequiredUtils$2) return utils$2;
22435
22418
  hasRequiredUtils$2 = 1;
22436
- const path = sysPath;
22419
+ const path = sysPath__default;
22437
22420
 
22438
22421
  // https://github.com/nodejs/node/issues/8987
22439
22422
  // https://github.com/libuv/libuv/pull/1088
@@ -22579,7 +22562,7 @@ function requireStat () {
22579
22562
  hasRequiredStat = 1;
22580
22563
 
22581
22564
  const fs = requireFs();
22582
- const path = sysPath;
22565
+ const path = sysPath__default;
22583
22566
  const u = requireUniversalify().fromPromise;
22584
22567
 
22585
22568
  function getStats (src, dest, opts) {
@@ -22745,7 +22728,7 @@ function requireCopy$1 () {
22745
22728
  hasRequiredCopy$1 = 1;
22746
22729
 
22747
22730
  const fs = requireFs();
22748
- const path = sysPath;
22731
+ const path = sysPath__default;
22749
22732
  const { mkdirs } = requireMkdirs();
22750
22733
  const { pathExists } = requirePathExists();
22751
22734
  const { utimesMillis } = requireUtimes();
@@ -22935,7 +22918,7 @@ function requireCopySync () {
22935
22918
  hasRequiredCopySync = 1;
22936
22919
 
22937
22920
  const fs = requireGracefulFs();
22938
- const path = sysPath;
22921
+ const path = sysPath__default;
22939
22922
  const mkdirsSync = requireMkdirs().mkdirsSync;
22940
22923
  const utimesMillisSync = requireUtimes().utimesMillisSync;
22941
22924
  const stat = requireStat();
@@ -23155,7 +23138,7 @@ function requireEmpty () {
23155
23138
 
23156
23139
  const u = requireUniversalify().fromPromise;
23157
23140
  const fs = requireFs();
23158
- const path = sysPath;
23141
+ const path = sysPath__default;
23159
23142
  const mkdir = requireMkdirs();
23160
23143
  const remove = requireRemove();
23161
23144
 
@@ -23201,7 +23184,7 @@ function requireFile () {
23201
23184
  hasRequiredFile = 1;
23202
23185
 
23203
23186
  const u = requireUniversalify().fromPromise;
23204
- const path = sysPath;
23187
+ const path = sysPath__default;
23205
23188
  const fs = requireFs();
23206
23189
  const mkdir = requireMkdirs();
23207
23190
 
@@ -23275,7 +23258,7 @@ function requireLink () {
23275
23258
  hasRequiredLink = 1;
23276
23259
 
23277
23260
  const u = requireUniversalify().fromPromise;
23278
- const path = sysPath;
23261
+ const path = sysPath__default;
23279
23262
  const fs = requireFs();
23280
23263
  const mkdir = requireMkdirs();
23281
23264
  const { pathExists } = requirePathExists();
@@ -23346,7 +23329,7 @@ function requireSymlinkPaths () {
23346
23329
  if (hasRequiredSymlinkPaths) return symlinkPaths_1;
23347
23330
  hasRequiredSymlinkPaths = 1;
23348
23331
 
23349
- const path = sysPath;
23332
+ const path = sysPath__default;
23350
23333
  const fs = requireFs();
23351
23334
  const { pathExists } = requirePathExists();
23352
23335
 
@@ -23498,7 +23481,7 @@ function requireSymlink () {
23498
23481
  hasRequiredSymlink = 1;
23499
23482
 
23500
23483
  const u = requireUniversalify().fromPromise;
23501
- const path = sysPath;
23484
+ const path = sysPath__default;
23502
23485
  const fs = requireFs();
23503
23486
 
23504
23487
  const { mkdirs, mkdirsSync } = requireMkdirs();
@@ -23629,7 +23612,7 @@ function requireJsonfile$1 () {
23629
23612
  try {
23630
23613
  _fs = requireGracefulFs();
23631
23614
  } catch (_) {
23632
- _fs = require$$0$1;
23615
+ _fs = require$$0$4;
23633
23616
  }
23634
23617
  const universalify = requireUniversalify();
23635
23618
  const { stringify, stripBom } = requireUtils$1();
@@ -23744,7 +23727,7 @@ function requireOutputFile () {
23744
23727
 
23745
23728
  const u = requireUniversalify().fromPromise;
23746
23729
  const fs = requireFs();
23747
- const path = sysPath;
23730
+ const path = sysPath__default;
23748
23731
  const mkdir = requireMkdirs();
23749
23732
  const pathExists = requirePathExists().pathExists;
23750
23733
 
@@ -23846,7 +23829,7 @@ function requireMove$1 () {
23846
23829
  hasRequiredMove$1 = 1;
23847
23830
 
23848
23831
  const fs = requireFs();
23849
- const path = sysPath;
23832
+ const path = sysPath__default;
23850
23833
  const { copy } = requireCopy();
23851
23834
  const { remove } = requireRemove();
23852
23835
  const { mkdirp } = requireMkdirs();
@@ -23913,7 +23896,7 @@ function requireMoveSync () {
23913
23896
  hasRequiredMoveSync = 1;
23914
23897
 
23915
23898
  const fs = requireGracefulFs();
23916
- const path = sysPath;
23899
+ const path = sysPath__default;
23917
23900
  const copySync = requireCopy().copySync;
23918
23901
  const removeSync = requireRemove().removeSync;
23919
23902
  const mkdirpSync = requireMkdirs().mkdirpSync;
@@ -26354,8 +26337,8 @@ function requireResolvePackagePath () {
26354
26337
  // credit goes to https://github.com/davecombs
26355
26338
  // extracted in part from: https://github.com/stefanpenner/hash-for-dep/blob/15b2ebcf22024ceb2eb7907f8c412ae40f87b15e/lib/resolve-package-path.js#L1
26356
26339
  //
26357
- const fs = require$$0$1;
26358
- const path = sysPath;
26340
+ const fs = require$$0$4;
26341
+ const path = sysPath__default;
26359
26342
  const pathRoot = requirePathRoot();
26360
26343
  const rethrow_unless_code_1 = __importDefault(requireRethrowUnlessCode());
26361
26344
  /*
@@ -26663,7 +26646,7 @@ function requireLib$1 () {
26663
26646
  var __importDefault = (lib$1 && lib$1.__importDefault) || function (mod) {
26664
26647
  return (mod && mod.__esModule) ? mod : { "default": mod };
26665
26648
  };
26666
- const path_1 = __importDefault(sysPath);
26649
+ const path_1 = __importDefault(sysPath__default);
26667
26650
  const resolve_package_path_1 = __importDefault(requireResolvePackagePath());
26668
26651
  const rethrow_unless_code_1 = __importDefault(requireRethrowUnlessCode());
26669
26652
  const ALLOWED_ERROR_CODES = [
@@ -26812,7 +26795,7 @@ function getPackageNameFromPath(input) {
26812
26795
 
26813
26796
  // src/importer.js
26814
26797
  var { findUpPackagePath } = resolvePackagePath;
26815
- var require2 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('vendor-DKOm4V-g.js', document.baseURI).href)));
26798
+ var require2 = createRequire(import.meta.url);
26816
26799
  var WEBPACK_NODE_MODULE_PREFIX = "~";
26817
26800
  var selfPackageJson = null;
26818
26801
  var selfPackageJsonPath = null;
@@ -26836,7 +26819,7 @@ var moduleImporter = {
26836
26819
  return null;
26837
26820
  }
26838
26821
  packageJson = JSON.parse(
26839
- fs$2.readFileSync(packagePath, { encoding: "utf-8" })
26822
+ readFileSync(packagePath, { encoding: "utf-8" })
26840
26823
  );
26841
26824
  }
26842
26825
  const moduleDirectory = path$1.dirname(packagePath);
@@ -26846,7 +26829,7 @@ var moduleImporter = {
26846
26829
  });
26847
26830
  if (match && match.length === 1) {
26848
26831
  return new URL(
26849
- node_url.pathToFileURL(path$1.join(moduleDirectory, match[0]))
26832
+ pathToFileURL(path$1.join(moduleDirectory, match[0]))
26850
26833
  );
26851
26834
  }
26852
26835
  } catch {
@@ -26855,7 +26838,7 @@ var moduleImporter = {
26855
26838
  const match = i(packageJson, { fields: ["sass", "main"] });
26856
26839
  if (match) {
26857
26840
  return new URL(
26858
- node_url.pathToFileURL(path$1.join(moduleDirectory, match))
26841
+ pathToFileURL(path$1.join(moduleDirectory, match))
26859
26842
  );
26860
26843
  }
26861
26844
  }
@@ -26875,7 +26858,7 @@ var moduleImporter = {
26875
26858
  variant
26876
26859
  );
26877
26860
  const resolved = require2.resolve(moduleName);
26878
- return new URL(node_url.pathToFileURL(resolved));
26861
+ return new URL(pathToFileURL(resolved));
26879
26862
  } catch (err) {
26880
26863
  if (err.code !== "MODULE_NOT_FOUND") {
26881
26864
  throw err;
@@ -26889,7 +26872,7 @@ function setSelfPackage() {
26889
26872
  if (!selfPackageJson) {
26890
26873
  selfPackageJsonPath = findUpPackagePath(process.cwd());
26891
26874
  selfPackageJson = JSON.parse(
26892
- fs$2.readFileSync(selfPackageJsonPath, { encoding: "utf-8" })
26875
+ readFileSync(selfPackageJsonPath, { encoding: "utf-8" })
26893
26876
  );
26894
26877
  }
26895
26878
  }
@@ -28367,358 +28350,6 @@ function requireCliProgress () {
28367
28350
  var cliProgressExports = requireCliProgress();
28368
28351
  var cliProgress = /*@__PURE__*/getDefaultExportFromCjs(cliProgressExports);
28369
28352
 
28370
- const getContext = raw => ({
28371
- start: process$1.hrtime.bigint(),
28372
- command: raw.map(part => getCommandPart(util.stripVTControlCharacters(part))).join(' '),
28373
- state: {stdout: '', stderr: '', output: ''},
28374
- });
28375
-
28376
- const getCommandPart = part => /[^\w./-]/.test(part)
28377
- ? `'${part.replaceAll('\'', '\'\\\'\'')}'`
28378
- : part;
28379
-
28380
- const getOptions = ({
28381
- stdin,
28382
- stdout,
28383
- stderr,
28384
- stdio = [stdin, stdout, stderr],
28385
- env: envOption,
28386
- preferLocal,
28387
- cwd: cwdOption = '.',
28388
- ...options
28389
- }) => {
28390
- const cwd = cwdOption instanceof URL ? node_url.fileURLToPath(cwdOption) : path$1.resolve(cwdOption);
28391
- const env = envOption ? {...process$1.env, ...envOption} : undefined;
28392
- const input = stdio[0]?.string;
28393
- return {
28394
- ...options,
28395
- input,
28396
- stdio: input === undefined ? stdio : ['pipe', ...stdio.slice(1)],
28397
- env: preferLocal ? addLocalPath(env ?? process$1.env, cwd) : env,
28398
- cwd,
28399
- };
28400
- };
28401
-
28402
- const addLocalPath = ({Path = '', PATH = Path, ...env}, cwd) => {
28403
- const pathParts = PATH.split(path$1.delimiter);
28404
- const localPaths = getLocalPaths([], path$1.resolve(cwd))
28405
- .map(localPath => path$1.join(localPath, 'node_modules/.bin'))
28406
- .filter(localPath => !pathParts.includes(localPath));
28407
- return {...env, PATH: [...localPaths, PATH].filter(Boolean).join(path$1.delimiter)};
28408
- };
28409
-
28410
- const getLocalPaths = (localPaths, localPath) => localPaths.at(-1) === localPath
28411
- ? localPaths
28412
- : getLocalPaths([...localPaths, localPath], path$1.resolve(localPath, '..'));
28413
-
28414
- // When setting `shell: true` under-the-hood, we must manually escape the file and arguments.
28415
- // This ensures arguments are properly split, and prevents command injection.
28416
- const applyForceShell = async (file, commandArguments, options) => await shouldForceShell(file, options)
28417
- ? [escapeFile(file), commandArguments.map(argument => escapeArgument(argument)), {...options, shell: true}]
28418
- : [file, commandArguments, options];
28419
-
28420
- // On Windows, running most executable files (except *.exe and *.com) requires using a shell.
28421
- // This includes *.cmd and *.bat, which itself includes Node modules binaries.
28422
- // We detect this situation and automatically:
28423
- // - Set the `shell: true` option
28424
- // - Escape shell-specific characters
28425
- const shouldForceShell = async (file, {shell, cwd, env = process$1.env}) => process$1.platform === 'win32'
28426
- && !shell
28427
- && !(await isExe(file, cwd, env));
28428
-
28429
- // Detect whether the executable file is a *.exe or *.com file.
28430
- // Windows allows omitting file extensions (present in the `PATHEXT` environment variable).
28431
- // Therefore we must use the `PATH` environment variable and make `stat` calls to check this.
28432
- // Environment variables are case-insensitive on Windows, so we check both `PATH` and `Path`.
28433
- // eslint-disable-next-line no-return-assign
28434
- const isExe = async (file, cwd, {Path = '', PATH = Path}) =>
28435
- // If the *.exe or *.com file extension was not omitted.
28436
- // Windows common file systems are case-insensitive.
28437
- exeExtensions.some(extension => file.toLowerCase().endsWith(extension))
28438
- // Use returned assignment to keep code small
28439
- || (EXE_MEMO[`${file}\0${cwd}\0${PATH}`] ??= await mIsExe(file, cwd, PATH));
28440
-
28441
- // Memoize the following function, for performance
28442
- const EXE_MEMO = {};
28443
-
28444
- const mIsExe = async (file, cwd, PATH) => {
28445
- const parts = PATH
28446
- // `PATH` is ;-separated on Windows
28447
- .split(path$1.delimiter)
28448
- // `PATH` allows leading/trailing ; on Windows
28449
- .filter(Boolean)
28450
- // `PATH` parts can be double quoted on Windows
28451
- .map(part => part.replace(/^"(.*)"$/, '$1'));
28452
-
28453
- // For performance, parallelize and stop iteration as soon as an *.exe of *.com file is found
28454
- try {
28455
- await Promise.all(exeExtensions
28456
- .flatMap(extension =>
28457
- [cwd, ...parts].map(part => `${path$1.resolve(part, file)}${extension}`))
28458
- .map(async possibleFile => {
28459
- try {
28460
- await fs$1.stat(possibleFile);
28461
- } catch {
28462
- return;
28463
- }
28464
-
28465
- // eslint-disable-next-line no-throw-literal
28466
- throw 0;
28467
- }));
28468
- } catch {
28469
- return true;
28470
- }
28471
-
28472
- return false;
28473
- };
28474
-
28475
- // Other file extensions require using a shell
28476
- const exeExtensions = ['.exe', '.com'];
28477
-
28478
- // `cmd.exe` escaping for arguments.
28479
- // Taken from https://github.com/moxystudio/node-cross-spawn
28480
- const escapeArgument = argument => escapeFile(escapeFile(`"${argument
28481
- .replaceAll(/(\\*)"/g, '$1$1\\"')
28482
- .replace(/(\\*)$/, '$1$1')}"`));
28483
-
28484
- // `cmd.exe` escaping for file and arguments.
28485
- const escapeFile = file => file.replaceAll(/([()\][%!^"`<>&|;, *?])/g, '^$1');
28486
-
28487
- const getResult = async (nodeChildProcess, {input}, context) => {
28488
- const instance = await nodeChildProcess;
28489
- if (input !== undefined) {
28490
- instance.stdin.end(input);
28491
- }
28492
-
28493
- const onClose = node_events.once(instance, 'close');
28494
-
28495
- try {
28496
- await Promise.race([
28497
- onClose,
28498
- ...instance.stdio.filter(Boolean).map(stream => onStreamError(stream)),
28499
- ]);
28500
- checkFailure(context, getErrorOutput(instance));
28501
- return getOutputs(context);
28502
- } catch (error) {
28503
- await Promise.allSettled([onClose]);
28504
- throw getResultError(error, instance, context);
28505
- }
28506
- };
28507
-
28508
- const onStreamError = async stream => {
28509
- for await (const [error] of node_events.on(stream, 'error')) {
28510
- // Ignore errors that are due to closing errors when the subprocesses exit normally, or due to piping
28511
- if (!['ERR_STREAM_PREMATURE_CLOSE', 'EPIPE'].includes(error?.code)) {
28512
- throw error;
28513
- }
28514
- }
28515
- };
28516
-
28517
- const checkFailure = ({command}, {exitCode, signalName}) => {
28518
- if (signalName !== undefined) {
28519
- throw new SubprocessError(`Command was terminated with ${signalName}: ${command}`);
28520
- }
28521
-
28522
- if (exitCode !== undefined) {
28523
- throw new SubprocessError(`Command failed with exit code ${exitCode}: ${command}`);
28524
- }
28525
- };
28526
-
28527
- const getResultError = (error, instance, context) => Object.assign(
28528
- getErrorInstance(error, context),
28529
- getErrorOutput(instance),
28530
- getOutputs(context),
28531
- );
28532
-
28533
- const getErrorInstance = (error, {command}) => error instanceof SubprocessError
28534
- ? error
28535
- : new SubprocessError(`Command failed: ${command}`, {cause: error});
28536
-
28537
- class SubprocessError extends Error {
28538
- name = 'SubprocessError';
28539
- }
28540
-
28541
- const getErrorOutput = ({exitCode, signalCode}) => ({
28542
- // `exitCode` can be a negative number (`errno`) when the `error` event is emitted on the `instance`
28543
- ...(exitCode < 1 ? {} : {exitCode}),
28544
- ...(signalCode === null ? {} : {signalName: signalCode}),
28545
- });
28546
-
28547
- const getOutputs = ({state: {stdout, stderr, output}, command, start}) => ({
28548
- stdout: getOutput(stdout),
28549
- stderr: getOutput(stderr),
28550
- output: getOutput(output),
28551
- command,
28552
- durationMs: Number(process$1.hrtime.bigint() - start) / 1e6,
28553
- });
28554
-
28555
- const getOutput = output => output.at(-1) === '\n'
28556
- ? output.slice(0, output.at(-2) === '\r' ? -2 : -1)
28557
- : output;
28558
-
28559
- const spawnSubprocess = async (file, commandArguments, options, context) => {
28560
- try {
28561
- // When running `node`, keep the current Node version and CLI flags.
28562
- // Not applied with file paths to `.../node` since those indicate a clear intent to use a specific Node version.
28563
- // This also provides a way to opting out, e.g. using `process.execPath` instead of `node` to discard current CLI flags.
28564
- // Does not work with shebangs, but those don't work cross-platform anyway.
28565
- [file, commandArguments] = ['node', 'node.exe'].includes(file.toLowerCase())
28566
- ? [process$1.execPath, [...process$1.execArgv.filter(flag => !flag.startsWith('--inspect')), ...commandArguments]]
28567
- : [file, commandArguments];
28568
-
28569
- const instance = node_child_process.spawn(...await applyForceShell(file, commandArguments, options));
28570
- bufferOutput(instance.stdout, context, 'stdout');
28571
- bufferOutput(instance.stderr, context, 'stderr');
28572
-
28573
- // The `error` event is caught by `once(instance, 'spawn')` and `once(instance, 'close')`.
28574
- // But it creates an uncaught exception if it happens exactly one tick after 'spawn'.
28575
- // This prevents that.
28576
- instance.once('error', () => {});
28577
-
28578
- await node_events.once(instance, 'spawn');
28579
- return instance;
28580
- } catch (error) {
28581
- throw getResultError(error, {}, context);
28582
- }
28583
- };
28584
-
28585
- const bufferOutput = (stream, {state}, streamName) => {
28586
- if (stream) {
28587
- stream.setEncoding('utf8');
28588
- if (!state.isIterating) {
28589
- state.isIterating = false;
28590
- stream.on('data', chunk => {
28591
- state[streamName] += chunk;
28592
- state.output += chunk;
28593
- });
28594
- }
28595
- }
28596
- };
28597
-
28598
- const handlePipe = async subprocesses => {
28599
- // Ensure both subprocesses have exited before resolving, and that we handle errors from both
28600
- const [[from, to]] = await Promise.all([Promise.allSettled(subprocesses), pipeStreams(subprocesses)]);
28601
-
28602
- // If both subprocesses fail, throw destination error to use a predictable order and avoid race conditions
28603
- if (to.reason) {
28604
- to.reason.pipedFrom = from.reason ?? from.value;
28605
- throw to.reason;
28606
- }
28607
-
28608
- if (from.reason) {
28609
- throw from.reason;
28610
- }
28611
-
28612
- return {...to.value, pipedFrom: from.value};
28613
- };
28614
-
28615
- const pipeStreams = async subprocesses => {
28616
- try {
28617
- const [{stdout}, {stdin}] = await Promise.all(subprocesses.map(({nodeChildProcess}) => nodeChildProcess));
28618
- if (stdin === null) {
28619
- throw new Error('The "stdin" option must be set on the first "spawn()" call in the pipeline.');
28620
- }
28621
-
28622
- if (stdout === null) {
28623
- throw new Error('The "stdout" option must be set on the last "spawn()" call in the pipeline.');
28624
- }
28625
-
28626
- // Do not `await` nor handle stream errors since this is already done by each subprocess
28627
- // eslint-disable-next-line promise/prefer-await-to-then
28628
- promises.pipeline(stdout, stdin).catch(() => {});
28629
- } catch (error) {
28630
- await Promise.allSettled(subprocesses.map(({nodeChildProcess}) => closeStdin(nodeChildProcess)));
28631
- throw error;
28632
- }
28633
- };
28634
-
28635
- const closeStdin = async nodeChildProcess => {
28636
- const {stdin} = await nodeChildProcess;
28637
- stdin.end();
28638
- };
28639
-
28640
- const lineIterator = async function * (subprocess, {state}, streamName) {
28641
- // Prevent buffering when iterating.
28642
- // This would defeat one of the main goals of iterating: low memory consumption.
28643
- if (state.isIterating === false) {
28644
- throw new Error(`The subprocess must be iterated right away, for example:
28645
- for await (const line of spawn(...)) { ... }`);
28646
- }
28647
-
28648
- state.isIterating = true;
28649
-
28650
- try {
28651
- const {[streamName]: stream} = await subprocess.nodeChildProcess;
28652
- if (!stream) {
28653
- return;
28654
- }
28655
-
28656
- let buffer = '';
28657
- for await (const chunk of stream.iterator({destroyOnReturn: false})) {
28658
- const lines = `${buffer}${chunk}`.split(/\r?\n/);
28659
- buffer = lines.pop(); // Keep last line in buffer as it may not be complete
28660
- yield * lines;
28661
- }
28662
-
28663
- if (buffer) {
28664
- yield buffer; // Yield any remaining data as the last line
28665
- }
28666
- } finally {
28667
- await subprocess;
28668
- }
28669
- };
28670
-
28671
- // Merge two async iterators into one
28672
- const combineAsyncIterators = async function * (...iterators) {
28673
- try {
28674
- let promises = [];
28675
- while (iterators.length > 0) {
28676
- promises = iterators.map((iterator, index) => promises[index] ?? getNext(iterator));
28677
- // eslint-disable-next-line no-await-in-loop
28678
- const [{value, done}, index] = await Promise.race(promises
28679
- .map((promise, index) => Promise.all([promise, index])));
28680
-
28681
- const [iterator] = iterators.splice(index, 1);
28682
- promises.splice(index, 1);
28683
-
28684
- if (!done) {
28685
- iterators.push(iterator);
28686
- yield value;
28687
- }
28688
- }
28689
- } finally {
28690
- await Promise.all(iterators.map(iterator => iterator.return()));
28691
- }
28692
- };
28693
-
28694
- const getNext = async iterator => {
28695
- try {
28696
- return await iterator.next();
28697
- } catch (error) {
28698
- await iterator.throw(error);
28699
- }
28700
- };
28701
-
28702
- function spawn(file, second, third, previous) {
28703
- const [commandArguments = [], options = {}] = Array.isArray(second) ? [second, third] : [[], second];
28704
- const context = getContext([file, ...commandArguments]);
28705
- const spawnOptions = getOptions(options);
28706
- const nodeChildProcess = spawnSubprocess(file, commandArguments, spawnOptions, context);
28707
- let subprocess = getResult(nodeChildProcess, spawnOptions, context);
28708
- Object.assign(subprocess, {nodeChildProcess});
28709
- subprocess = previous ? handlePipe([previous, subprocess]) : subprocess;
28710
-
28711
- const stdout = lineIterator(subprocess, context, 'stdout');
28712
- const stderr = lineIterator(subprocess, context, 'stderr');
28713
- return Object.assign(subprocess, {
28714
- nodeChildProcess,
28715
- stdout,
28716
- stderr,
28717
- [Symbol.asyncIterator]: () => combineAsyncIterators(stdout, stderr),
28718
- pipe: (file, second, third) => spawn(file, second, third, subprocess),
28719
- });
28720
- }
28721
-
28722
28353
  // Process definition lists
28723
28354
  //
28724
28355
  function deflist_plugin (md) {
@@ -46244,7 +45875,7 @@ const normalizeFilter = (filter) => {
46244
45875
  }
46245
45876
  return emptyFn;
46246
45877
  };
46247
- class ReaddirpStream extends require$$0$4.Readable {
45878
+ class ReaddirpStream extends Readable {
46248
45879
  constructor(options = {}) {
46249
45880
  super({
46250
45881
  objectMode: true,
@@ -46255,7 +45886,7 @@ class ReaddirpStream extends require$$0$4.Readable {
46255
45886
  const { root, type } = opts;
46256
45887
  this._fileFilter = normalizeFilter(opts.fileFilter);
46257
45888
  this._directoryFilter = normalizeFilter(opts.directoryFilter);
46258
- const statMethod = opts.lstat ? promises$1.lstat : promises$1.stat;
45889
+ const statMethod = opts.lstat ? lstat$1 : stat$1;
46259
45890
  // Use bigint stats if it's windows and stat() supports options (node 10+).
46260
45891
  if (wantBigintFsStats) {
46261
45892
  this._stat = (path) => statMethod(path, { bigint: true });
@@ -46267,7 +45898,7 @@ class ReaddirpStream extends require$$0$4.Readable {
46267
45898
  this._wantsDir = DIR_TYPES.has(type);
46268
45899
  this._wantsFile = FILE_TYPES.has(type);
46269
45900
  this._wantsEverything = type === EVERYTHING_TYPE;
46270
- this._root = sysPath.resolve(root);
45901
+ this._root = resolve(root);
46271
45902
  this._isDirent = !opts.alwaysStat;
46272
45903
  this._statsProp = this._isDirent ? 'dirent' : 'stats';
46273
45904
  this._rdOptions = { encoding: 'utf8', withFileTypes: this._isDirent };
@@ -46336,7 +45967,7 @@ class ReaddirpStream extends require$$0$4.Readable {
46336
45967
  async _exploreDir(path, depth) {
46337
45968
  let files;
46338
45969
  try {
46339
- files = await promises$1.readdir(path, this._rdOptions);
45970
+ files = await readdir$2(path, this._rdOptions);
46340
45971
  }
46341
45972
  catch (error) {
46342
45973
  this._onError(error);
@@ -46347,8 +45978,8 @@ class ReaddirpStream extends require$$0$4.Readable {
46347
45978
  let entry;
46348
45979
  const basename = this._isDirent ? dirent.name : dirent;
46349
45980
  try {
46350
- const fullPath = sysPath.resolve(sysPath.join(path, basename));
46351
- entry = { path: sysPath.relative(this._root, fullPath), fullPath, basename };
45981
+ const fullPath = resolve(join(path, basename));
45982
+ entry = { path: relative(this._root, fullPath), fullPath, basename };
46352
45983
  entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
46353
45984
  }
46354
45985
  catch (err) {
@@ -46379,14 +46010,14 @@ class ReaddirpStream extends require$$0$4.Readable {
46379
46010
  if (stats && stats.isSymbolicLink()) {
46380
46011
  const full = entry.fullPath;
46381
46012
  try {
46382
- const entryRealPath = await promises$1.realpath(full);
46383
- const entryRealPathStats = await promises$1.lstat(entryRealPath);
46013
+ const entryRealPath = await realpath$1(full);
46014
+ const entryRealPathStats = await lstat$1(entryRealPath);
46384
46015
  if (entryRealPathStats.isFile()) {
46385
46016
  return 'file';
46386
46017
  }
46387
46018
  if (entryRealPathStats.isDirectory()) {
46388
46019
  const len = entryRealPath.length;
46389
- if (full.startsWith(entryRealPath) && full.substr(len, 1) === sysPath.sep) {
46020
+ if (full.startsWith(entryRealPath) && full.substr(len, 1) === sep$1) {
46390
46021
  const recursiveError = new Error(`Circular symlink detected: "${full}" points to "${entryRealPath}"`);
46391
46022
  // @ts-ignore
46392
46023
  recursiveError.code = RECURSIVE_ERROR_CODE;
@@ -46440,7 +46071,7 @@ const isWindows = pl === 'win32';
46440
46071
  const isMacos = pl === 'darwin';
46441
46072
  const isLinux = pl === 'linux';
46442
46073
  const isFreeBSD = pl === 'freebsd';
46443
- const isIBMi = require$$0$6.type() === 'OS400';
46074
+ const isIBMi = type$2() === 'OS400';
46444
46075
  const EVENTS = {
46445
46076
  ALL: 'all',
46446
46077
  READY: 'ready',
@@ -46454,7 +46085,7 @@ const EVENTS = {
46454
46085
  };
46455
46086
  const EV = EVENTS;
46456
46087
  const THROTTLE_MODE_WATCH = 'watch';
46457
- const statMethods = { lstat: promises$1.lstat, stat: promises$1.stat };
46088
+ const statMethods = { lstat: lstat$1, stat: stat$1 };
46458
46089
  const KEY_LISTENERS = 'listeners';
46459
46090
  const KEY_ERR = 'errHandlers';
46460
46091
  const KEY_RAW = 'rawEmitters';
@@ -46494,7 +46125,7 @@ const binaryExtensions = new Set([
46494
46125
  'xmind', 'xpi', 'xpm', 'xwd', 'xz',
46495
46126
  'z', 'zip', 'zipx',
46496
46127
  ]);
46497
- const isBinaryPath = (filePath) => binaryExtensions.has(sysPath__namespace.extname(filePath).slice(1).toLowerCase());
46128
+ const isBinaryPath = (filePath) => binaryExtensions.has(sysPath.extname(filePath).slice(1).toLowerCase());
46498
46129
  // TODO: emit errors properly. Example: EMFILE on Macos.
46499
46130
  const foreach = (val, fn) => {
46500
46131
  if (val instanceof Set) {
@@ -46547,11 +46178,11 @@ function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
46547
46178
  // emit based on events occurring for files from a directory's watcher in
46548
46179
  // case the file's watcher misses it (and rely on throttling to de-dupe)
46549
46180
  if (evPath && path !== evPath) {
46550
- fsWatchBroadcast(sysPath__namespace.resolve(path, evPath), KEY_LISTENERS, sysPath__namespace.join(path, evPath));
46181
+ fsWatchBroadcast(sysPath.resolve(path, evPath), KEY_LISTENERS, sysPath.join(path, evPath));
46551
46182
  }
46552
46183
  };
46553
46184
  try {
46554
- return require$$0$1.watch(path, {
46185
+ return watch$2(path, {
46555
46186
  persistent: options.persistent,
46556
46187
  }, handleEvent);
46557
46188
  }
@@ -46607,7 +46238,7 @@ const setFsWatchListener = (path, fullPath, options, handlers) => {
46607
46238
  // Workaround for https://github.com/joyent/node/issues/4337
46608
46239
  if (isWindows && error.code === 'EPERM') {
46609
46240
  try {
46610
- const fd = await promises$1.open(path, 'r');
46241
+ const fd = await open(path, 'r');
46611
46242
  await fd.close();
46612
46243
  broadcastErr(error);
46613
46244
  }
@@ -46673,7 +46304,7 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
46673
46304
  // doesn't seem worthwhile for the added complexity.
46674
46305
  // listeners = cont.listeners;
46675
46306
  // rawEmitters = cont.rawEmitters;
46676
- require$$0$1.unwatchFile(fullPath);
46307
+ unwatchFile(fullPath);
46677
46308
  cont = undefined;
46678
46309
  }
46679
46310
  if (cont) {
@@ -46688,7 +46319,7 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
46688
46319
  listeners: listener,
46689
46320
  rawEmitters: rawEmitter,
46690
46321
  options,
46691
- watcher: require$$0$1.watchFile(fullPath, options, (curr, prev) => {
46322
+ watcher: watchFile(fullPath, options, (curr, prev) => {
46692
46323
  foreach(cont.rawEmitters, (rawEmitter) => {
46693
46324
  rawEmitter(EV.CHANGE, fullPath, { curr, prev });
46694
46325
  });
@@ -46708,7 +46339,7 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
46708
46339
  delFromSet(cont, KEY_RAW, rawEmitter);
46709
46340
  if (isEmptySet(cont.listeners)) {
46710
46341
  FsWatchFileInstances.delete(fullPath);
46711
- require$$0$1.unwatchFile(fullPath);
46342
+ unwatchFile(fullPath);
46712
46343
  cont.options = cont.watcher = undefined;
46713
46344
  Object.freeze(cont);
46714
46345
  }
@@ -46730,11 +46361,11 @@ class NodeFsHandler {
46730
46361
  */
46731
46362
  _watchWithNodeFs(path, listener) {
46732
46363
  const opts = this.fsw.options;
46733
- const directory = sysPath__namespace.dirname(path);
46734
- const basename = sysPath__namespace.basename(path);
46364
+ const directory = sysPath.dirname(path);
46365
+ const basename = sysPath.basename(path);
46735
46366
  const parent = this.fsw._getWatchedDir(directory);
46736
46367
  parent.add(basename);
46737
- const absolutePath = sysPath__namespace.resolve(path);
46368
+ const absolutePath = sysPath.resolve(path);
46738
46369
  const options = {
46739
46370
  persistent: opts.persistent,
46740
46371
  };
@@ -46766,8 +46397,8 @@ class NodeFsHandler {
46766
46397
  if (this.fsw.closed) {
46767
46398
  return;
46768
46399
  }
46769
- const dirname = sysPath__namespace.dirname(file);
46770
- const basename = sysPath__namespace.basename(file);
46400
+ const dirname = sysPath.dirname(file);
46401
+ const basename = sysPath.basename(file);
46771
46402
  const parent = this.fsw._getWatchedDir(dirname);
46772
46403
  // stats is always present
46773
46404
  let prevStats = stats;
@@ -46779,7 +46410,7 @@ class NodeFsHandler {
46779
46410
  return;
46780
46411
  if (!newStats || newStats.mtimeMs === 0) {
46781
46412
  try {
46782
- const newStats = await promises$1.stat(file);
46413
+ const newStats = await stat$1(file);
46783
46414
  if (this.fsw.closed)
46784
46415
  return;
46785
46416
  // Check that change event was not fired because of changed only accessTime.
@@ -46844,7 +46475,7 @@ class NodeFsHandler {
46844
46475
  this.fsw._incrReadyCount();
46845
46476
  let linkPath;
46846
46477
  try {
46847
- linkPath = await promises$1.realpath(path);
46478
+ linkPath = await realpath$1(path);
46848
46479
  }
46849
46480
  catch (e) {
46850
46481
  this.fsw._emitReady();
@@ -46874,7 +46505,7 @@ class NodeFsHandler {
46874
46505
  }
46875
46506
  _handleRead(directory, initialAdd, wh, target, dir, depth, throttler) {
46876
46507
  // Normalize the directory name on Windows
46877
- directory = sysPath__namespace.join(directory, '');
46508
+ directory = sysPath.join(directory, '');
46878
46509
  throttler = this.fsw._throttle('readdir', directory, 1000);
46879
46510
  if (!throttler)
46880
46511
  return;
@@ -46893,7 +46524,7 @@ class NodeFsHandler {
46893
46524
  return;
46894
46525
  }
46895
46526
  const item = entry.path;
46896
- let path = sysPath__namespace.join(directory, item);
46527
+ let path = sysPath.join(directory, item);
46897
46528
  current.add(item);
46898
46529
  if (entry.stats.isSymbolicLink() &&
46899
46530
  (await this._handleSymlink(entry, directory, path, item))) {
@@ -46909,7 +46540,7 @@ class NodeFsHandler {
46909
46540
  if (item === target || (!target && !previous.has(item))) {
46910
46541
  this.fsw._incrReadyCount();
46911
46542
  // ensure relativeness of path is preserved in case of watcher reuse
46912
- path = sysPath__namespace.join(dir, sysPath__namespace.relative(dir, path));
46543
+ path = sysPath.join(dir, sysPath.relative(dir, path));
46913
46544
  this._addToNodeFs(path, initialAdd, wh, depth + 1);
46914
46545
  }
46915
46546
  })
@@ -46954,13 +46585,13 @@ class NodeFsHandler {
46954
46585
  * @returns closer for the watcher instance.
46955
46586
  */
46956
46587
  async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath) {
46957
- const parentDir = this.fsw._getWatchedDir(sysPath__namespace.dirname(dir));
46958
- const tracked = parentDir.has(sysPath__namespace.basename(dir));
46588
+ const parentDir = this.fsw._getWatchedDir(sysPath.dirname(dir));
46589
+ const tracked = parentDir.has(sysPath.basename(dir));
46959
46590
  if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) {
46960
46591
  this.fsw._emit(EV.ADD_DIR, dir, stats);
46961
46592
  }
46962
46593
  // ensure dir is tracked (harmless if redundant)
46963
- parentDir.add(sysPath__namespace.basename(dir));
46594
+ parentDir.add(sysPath.basename(dir));
46964
46595
  this.fsw._getWatchedDir(dir);
46965
46596
  let throttler;
46966
46597
  let closer;
@@ -47012,8 +46643,8 @@ class NodeFsHandler {
47012
46643
  const follow = this.fsw.options.followSymlinks;
47013
46644
  let closer;
47014
46645
  if (stats.isDirectory()) {
47015
- const absPath = sysPath__namespace.resolve(path);
47016
- const targetPath = follow ? await promises$1.realpath(path) : path;
46646
+ const absPath = sysPath.resolve(path);
46647
+ const targetPath = follow ? await realpath$1(path) : path;
47017
46648
  if (this.fsw.closed)
47018
46649
  return;
47019
46650
  closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
@@ -47025,10 +46656,10 @@ class NodeFsHandler {
47025
46656
  }
47026
46657
  }
47027
46658
  else if (stats.isSymbolicLink()) {
47028
- const targetPath = follow ? await promises$1.realpath(path) : path;
46659
+ const targetPath = follow ? await realpath$1(path) : path;
47029
46660
  if (this.fsw.closed)
47030
46661
  return;
47031
- const parent = sysPath__namespace.dirname(wh.watchPath);
46662
+ const parent = sysPath.dirname(wh.watchPath);
47032
46663
  this.fsw._getWatchedDir(parent).add(wh.watchPath);
47033
46664
  this.fsw._emit(EV.ADD, wh.watchPath, stats);
47034
46665
  closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath);
@@ -47036,7 +46667,7 @@ class NodeFsHandler {
47036
46667
  return;
47037
46668
  // preserve this symlink's target path
47038
46669
  if (targetPath !== undefined) {
47039
- this.fsw._symlinkPaths.set(sysPath__namespace.resolve(path), targetPath);
46670
+ this.fsw._symlinkPaths.set(sysPath.resolve(path), targetPath);
47040
46671
  }
47041
46672
  }
47042
46673
  else {
@@ -47082,11 +46713,11 @@ function createPattern(matcher) {
47082
46713
  if (matcher.path === string)
47083
46714
  return true;
47084
46715
  if (matcher.recursive) {
47085
- const relative = sysPath__namespace.relative(matcher.path, string);
46716
+ const relative = sysPath.relative(matcher.path, string);
47086
46717
  if (!relative) {
47087
46718
  return false;
47088
46719
  }
47089
- return !relative.startsWith('..') && !sysPath__namespace.isAbsolute(relative);
46720
+ return !relative.startsWith('..') && !sysPath.isAbsolute(relative);
47090
46721
  }
47091
46722
  return false;
47092
46723
  };
@@ -47096,7 +46727,7 @@ function createPattern(matcher) {
47096
46727
  function normalizePath(path) {
47097
46728
  if (typeof path !== 'string')
47098
46729
  throw new Error('string expected');
47099
- path = sysPath__namespace.normalize(path);
46730
+ path = sysPath.normalize(path);
47100
46731
  path = path.replace(/\\/g, '/');
47101
46732
  let prepend = false;
47102
46733
  if (path.startsWith('//'))
@@ -47156,21 +46787,21 @@ const toUnix = (string) => {
47156
46787
  };
47157
46788
  // Our version of upath.normalize
47158
46789
  // TODO: this is not equal to path-normalize module - investigate why
47159
- const normalizePathToUnix = (path) => toUnix(sysPath__namespace.normalize(toUnix(path)));
46790
+ const normalizePathToUnix = (path) => toUnix(sysPath.normalize(toUnix(path)));
47160
46791
  // TODO: refactor
47161
46792
  const normalizeIgnored = (cwd = '') => (path) => {
47162
46793
  if (typeof path === 'string') {
47163
- return normalizePathToUnix(sysPath__namespace.isAbsolute(path) ? path : sysPath__namespace.join(cwd, path));
46794
+ return normalizePathToUnix(sysPath.isAbsolute(path) ? path : sysPath.join(cwd, path));
47164
46795
  }
47165
46796
  else {
47166
46797
  return path;
47167
46798
  }
47168
46799
  };
47169
46800
  const getAbsolutePath = (path, cwd) => {
47170
- if (sysPath__namespace.isAbsolute(path)) {
46801
+ if (sysPath.isAbsolute(path)) {
47171
46802
  return path;
47172
46803
  }
47173
- return sysPath__namespace.join(cwd, path);
46804
+ return sysPath.join(cwd, path);
47174
46805
  };
47175
46806
  const EMPTY_SET = Object.freeze(new Set());
47176
46807
  /**
@@ -47198,11 +46829,11 @@ class DirEntry {
47198
46829
  return;
47199
46830
  const dir = this.path;
47200
46831
  try {
47201
- await promises$1.readdir(dir);
46832
+ await readdir$2(dir);
47202
46833
  }
47203
46834
  catch (err) {
47204
46835
  if (this._removeWatcher) {
47205
- this._removeWatcher(sysPath__namespace.dirname(dir), sysPath__namespace.basename(dir));
46836
+ this._removeWatcher(sysPath.dirname(dir), sysPath.basename(dir));
47206
46837
  }
47207
46838
  }
47208
46839
  }
@@ -47234,7 +46865,7 @@ class WatchHelper {
47234
46865
  const watchPath = path;
47235
46866
  this.path = path = path.replace(REPLACER_RE, '');
47236
46867
  this.watchPath = watchPath;
47237
- this.fullWatchPath = sysPath__namespace.resolve(watchPath);
46868
+ this.fullWatchPath = sysPath.resolve(watchPath);
47238
46869
  this.dirParts = [];
47239
46870
  this.dirParts.forEach((parts) => {
47240
46871
  if (parts.length > 1)
@@ -47244,7 +46875,7 @@ class WatchHelper {
47244
46875
  this.statMethod = follow ? STAT_METHOD_F : STAT_METHOD_L;
47245
46876
  }
47246
46877
  entryPath(entry) {
47247
- return sysPath__namespace.join(this.watchPath, sysPath__namespace.relative(this.watchPath, entry.fullPath));
46878
+ return sysPath.join(this.watchPath, sysPath.relative(this.watchPath, entry.fullPath));
47248
46879
  }
47249
46880
  filterPath(entry) {
47250
46881
  const { stats } = entry;
@@ -47266,7 +46897,7 @@ class WatchHelper {
47266
46897
  * .add(directories)
47267
46898
  * .on('add', path => log('File', path, 'was added'))
47268
46899
  */
47269
- class FSWatcher extends require$$3.EventEmitter {
46900
+ class FSWatcher extends EventEmitter$2 {
47270
46901
  // Not indenting methods for history sake; for now.
47271
46902
  constructor(_opts = {}) {
47272
46903
  super();
@@ -47400,7 +47031,7 @@ class FSWatcher extends require$$3.EventEmitter {
47400
47031
  return;
47401
47032
  results.forEach((item) => {
47402
47033
  if (item)
47403
- this.add(sysPath__namespace.dirname(item), sysPath__namespace.basename(_origAdd || item));
47034
+ this.add(sysPath.dirname(item), sysPath.basename(_origAdd || item));
47404
47035
  });
47405
47036
  });
47406
47037
  return this;
@@ -47415,10 +47046,10 @@ class FSWatcher extends require$$3.EventEmitter {
47415
47046
  const { cwd } = this.options;
47416
47047
  paths.forEach((path) => {
47417
47048
  // convert to absolute path unless relative path already matches
47418
- if (!sysPath__namespace.isAbsolute(path) && !this._closers.has(path)) {
47049
+ if (!sysPath.isAbsolute(path) && !this._closers.has(path)) {
47419
47050
  if (cwd)
47420
- path = sysPath__namespace.join(cwd, path);
47421
- path = sysPath__namespace.resolve(path);
47051
+ path = sysPath.join(cwd, path);
47052
+ path = sysPath.resolve(path);
47422
47053
  }
47423
47054
  this._closePath(path);
47424
47055
  this._addIgnoredPath(path);
@@ -47472,7 +47103,7 @@ class FSWatcher extends require$$3.EventEmitter {
47472
47103
  getWatched() {
47473
47104
  const watchList = {};
47474
47105
  this._watched.forEach((entry, dir) => {
47475
- const key = this.options.cwd ? sysPath__namespace.relative(this.options.cwd, dir) : dir;
47106
+ const key = this.options.cwd ? sysPath.relative(this.options.cwd, dir) : dir;
47476
47107
  const index = key || ONE_DOT;
47477
47108
  watchList[index] = entry.getChildren().sort();
47478
47109
  });
@@ -47498,9 +47129,9 @@ class FSWatcher extends require$$3.EventEmitter {
47498
47129
  return;
47499
47130
  const opts = this.options;
47500
47131
  if (isWindows)
47501
- path = sysPath__namespace.normalize(path);
47132
+ path = sysPath.normalize(path);
47502
47133
  if (opts.cwd)
47503
- path = sysPath__namespace.relative(opts.cwd, path);
47134
+ path = sysPath.relative(opts.cwd, path);
47504
47135
  const args = [path];
47505
47136
  if (stats != null)
47506
47137
  args.push(stats);
@@ -47556,10 +47187,10 @@ class FSWatcher extends require$$3.EventEmitter {
47556
47187
  if (opts.alwaysStat &&
47557
47188
  stats === undefined &&
47558
47189
  (event === EVENTS.ADD || event === EVENTS.ADD_DIR || event === EVENTS.CHANGE)) {
47559
- const fullPath = opts.cwd ? sysPath__namespace.join(opts.cwd, path) : path;
47190
+ const fullPath = opts.cwd ? sysPath.join(opts.cwd, path) : path;
47560
47191
  let stats;
47561
47192
  try {
47562
- stats = await promises$1.stat(fullPath);
47193
+ stats = await stat$1(fullPath);
47563
47194
  }
47564
47195
  catch (err) {
47565
47196
  // do nothing
@@ -47639,13 +47270,13 @@ class FSWatcher extends require$$3.EventEmitter {
47639
47270
  const pollInterval = awf.pollInterval;
47640
47271
  let timeoutHandler;
47641
47272
  let fullPath = path;
47642
- if (this.options.cwd && !sysPath__namespace.isAbsolute(path)) {
47643
- fullPath = sysPath__namespace.join(this.options.cwd, path);
47273
+ if (this.options.cwd && !sysPath.isAbsolute(path)) {
47274
+ fullPath = sysPath.join(this.options.cwd, path);
47644
47275
  }
47645
47276
  const now = new Date();
47646
47277
  const writes = this._pendingWrites;
47647
47278
  function awaitWriteFinishFn(prevStat) {
47648
- require$$0$1.stat(fullPath, (err, curStat) => {
47279
+ stat$2(fullPath, (err, curStat) => {
47649
47280
  if (err || !writes.has(path)) {
47650
47281
  if (err && err.code !== 'ENOENT')
47651
47282
  awfEmit(err);
@@ -47711,7 +47342,7 @@ class FSWatcher extends require$$3.EventEmitter {
47711
47342
  * @param directory path of the directory
47712
47343
  */
47713
47344
  _getWatchedDir(directory) {
47714
- const dir = sysPath__namespace.resolve(directory);
47345
+ const dir = sysPath.resolve(directory);
47715
47346
  if (!this._watched.has(dir))
47716
47347
  this._watched.set(dir, new DirEntry(dir, this._boundRemove));
47717
47348
  return this._watched.get(dir);
@@ -47737,8 +47368,8 @@ class FSWatcher extends require$$3.EventEmitter {
47737
47368
  // if what is being deleted is a directory, get that directory's paths
47738
47369
  // for recursive deleting and cleaning of watched object
47739
47370
  // if it is not a directory, nestedDirectoryChildren will be empty array
47740
- const path = sysPath__namespace.join(directory, item);
47741
- const fullPath = sysPath__namespace.resolve(path);
47371
+ const path = sysPath.join(directory, item);
47372
+ const fullPath = sysPath.resolve(path);
47742
47373
  isDirectory =
47743
47374
  isDirectory != null ? isDirectory : this._watched.has(path) || this._watched.has(fullPath);
47744
47375
  // prevent duplicate handling in case of arriving here nearly simultaneously
@@ -47770,7 +47401,7 @@ class FSWatcher extends require$$3.EventEmitter {
47770
47401
  // If we wait for this file to be fully written, cancel the wait.
47771
47402
  let relPath = path;
47772
47403
  if (this.options.cwd)
47773
- relPath = sysPath__namespace.relative(this.options.cwd, path);
47404
+ relPath = sysPath.relative(this.options.cwd, path);
47774
47405
  if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
47775
47406
  const event = this._pendingWrites.get(relPath).cancelWait();
47776
47407
  if (event === EVENTS.ADD)
@@ -47791,8 +47422,8 @@ class FSWatcher extends require$$3.EventEmitter {
47791
47422
  */
47792
47423
  _closePath(path) {
47793
47424
  this._closeFile(path);
47794
- const dir = sysPath__namespace.dirname(path);
47795
- this._getWatchedDir(dir).remove(sysPath__namespace.basename(path));
47425
+ const dir = sysPath.dirname(path);
47426
+ this._getWatchedDir(dir).remove(sysPath.basename(path));
47796
47427
  }
47797
47428
  /**
47798
47429
  * Closes only file-specific watchers
@@ -47864,7 +47495,7 @@ function requireSafeBuffer () {
47864
47495
  hasRequiredSafeBuffer = 1;
47865
47496
  (function (module, exports) {
47866
47497
  /* eslint-disable node/no-deprecated-api */
47867
- var buffer = require$$0$7;
47498
+ var buffer = require$$0$6;
47868
47499
  var Buffer = buffer.Buffer;
47869
47500
 
47870
47501
  // alternative to using Object.keys for old browsers
@@ -47982,7 +47613,7 @@ function requireStreams () {
47982
47613
  **/
47983
47614
 
47984
47615
 
47985
- var Stream = require$$0$4.Stream,
47616
+ var Stream = require$$0$3.Stream,
47986
47617
  util = require$$1$1;
47987
47618
 
47988
47619
 
@@ -50194,7 +49825,7 @@ function requireProxy () {
50194
49825
  hasRequiredProxy = 1;
50195
49826
 
50196
49827
  var Buffer = requireSafeBuffer().Buffer,
50197
- Stream = require$$0$4.Stream,
49828
+ Stream = require$$0$3.Stream,
50198
49829
  url = require$$2,
50199
49830
  util = require$$1$1,
50200
49831
  Base = requireBase(),
@@ -50945,7 +50576,7 @@ function requireApi () {
50945
50576
  if (hasRequiredApi) return api;
50946
50577
  hasRequiredApi = 1;
50947
50578
 
50948
- var Stream = require$$0$4.Stream,
50579
+ var Stream = require$$0$3.Stream,
50949
50580
  util = require$$1$1,
50950
50581
  driver = requireDriver(),
50951
50582
  EventTarget = requireEvent_target(),
@@ -51250,7 +50881,7 @@ function requireEventsource () {
51250
50881
  if (hasRequiredEventsource) return eventsource;
51251
50882
  hasRequiredEventsource = 1;
51252
50883
 
51253
- var Stream = require$$0$4.Stream,
50884
+ var Stream = require$$0$3.Stream,
51254
50885
  util = require$$1$1,
51255
50886
  driver = requireDriver(),
51256
50887
  Headers = requireHeaders(),
@@ -52174,7 +51805,7 @@ var hasRequiredSupportsColor;
52174
51805
  function requireSupportsColor () {
52175
51806
  if (hasRequiredSupportsColor) return supportsColor_1;
52176
51807
  hasRequiredSupportsColor = 1;
52177
- const os = require$$0$6;
51808
+ const os = require$$0$7;
52178
51809
  const tty = require$$1$4;
52179
51810
  const hasFlag = requireHasFlag();
52180
51811
 
@@ -53040,7 +52671,7 @@ function requireString_decoder () {
53040
52671
  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
53041
52672
  // USE OR OTHER DEALINGS IN THE SOFTWARE.
53042
52673
 
53043
- var Buffer = require$$0$7.Buffer;
52674
+ var Buffer = require$$0$6.Buffer;
53044
52675
 
53045
52676
  var isBufferEncoding = Buffer.isEncoding
53046
52677
  || function(encoding) {
@@ -56609,7 +56240,7 @@ function requireServer () {
56609
56240
 
56610
56241
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
56611
56242
 
56612
- var _fs = require$$0$1;
56243
+ var _fs = require$$0$4;
56613
56244
 
56614
56245
  var _fs2 = _interopRequireDefault(_fs);
56615
56246
 
@@ -57074,23 +56705,5 @@ function requireSrc () {
57074
56705
  var srcExports = requireSrc();
57075
56706
  var tinylr = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
57076
56707
 
57077
- exports.HighlightJS = HighlightJS;
57078
- exports.MarkdownIt = MarkdownIt;
57079
- exports.cliProgress = cliProgress;
57080
- exports.closest = closest;
57081
- exports.createInstance = createInstance;
57082
- exports.createTwoFilesPatch = createTwoFilesPatch;
57083
- exports.dedent = dedent;
57084
- exports.deflist_plugin = deflist_plugin;
57085
- exports.distance = distance;
57086
- exports.fm = fm;
57087
- exports.fse = fse;
57088
- exports.glob = glob;
57089
- exports.globSync = globSync;
57090
- exports.isCI = isCI;
57091
- exports.minimatch = minimatch;
57092
- exports.moduleImporter = moduleImporter;
57093
- exports.spawn = spawn;
57094
- exports.tinylr = tinylr;
57095
- exports.watch = watch$1;
57096
- //# sourceMappingURL=vendor-DKOm4V-g.js.map
56708
+ export { HighlightJS as H, MarkdownIt as M, deflist_plugin as a, closest as b, createTwoFilesPatch as c, dedent as d, distance as e, fm as f, globSync as g, glob as h, isCI as i, moduleImporter as j, cliProgress as k, createInstance as l, minimatch as m, fse as n, tinylr as t, watch$1 as w };
56709
+ //# sourceMappingURL=vendor-DiqWVUfS.mjs.map